diff --git a/ChainSafe.Gaming.sln b/ChainSafe.Gaming.sln index d065f57ea..454ef47d6 100644 --- a/ChainSafe.Gaming.sln +++ b/ChainSafe.Gaming.sln @@ -45,6 +45,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ChainSafe.Gaming.Marketplac EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ChainSafe.Gaming.InProcessTransactionExecutor.Unity", "src\ChainSafe.Gaming.InProcessTransactionExecutor.Unity\ChainSafe.Gaming.InProcessTransactionExecutor.Unity.csproj", "{46C16E64-DC72-446D-B153-A2142691A151}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ChainSafe.Gaming.HyperPlay", "src\ChainSafe.Gaming.HyperPlay\ChainSafe.Gaming.HyperPlay.csproj", "{0859E3E2-5AB9-4997-9DE7-368EAB89313B}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -153,6 +155,12 @@ Global {46C16E64-DC72-446D-B153-A2142691A151}.Release|Any CPU.Build.0 = Release|Any CPU {46C16E64-DC72-446D-B153-A2142691A151}.Test|Any CPU.ActiveCfg = Test|Any CPU {46C16E64-DC72-446D-B153-A2142691A151}.Test|Any CPU.Build.0 = Test|Any CPU + {0859E3E2-5AB9-4997-9DE7-368EAB89313B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0859E3E2-5AB9-4997-9DE7-368EAB89313B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0859E3E2-5AB9-4997-9DE7-368EAB89313B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0859E3E2-5AB9-4997-9DE7-368EAB89313B}.Release|Any CPU.Build.0 = Release|Any CPU + {0859E3E2-5AB9-4997-9DE7-368EAB89313B}.Test|Any CPU.ActiveCfg = Debug|Any CPU + {0859E3E2-5AB9-4997-9DE7-368EAB89313B}.Test|Any CPU.Build.0 = Debug|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Packages/.gitignore b/Packages/.gitignore index 2b9291d09..7a710cb0d 100644 --- a/Packages/.gitignore +++ b/Packages/.gitignore @@ -93,6 +93,7 @@ crashlytics-build.properties /io.chainsafe.web3-unity.lootboxes/Samples~/* /io.chainsafe.web3-unity.ramp/Samples~/* /io.chainsafe.web3-unity.web3auth/Samples~/* +/io.chainsafe.web3-unity.marketplace/Samples~/* # Since the folder is called 'Debug', it's being ignored, so negate that !/io.chainsafe.web3-unity.web3auth/Runtime/Plugins/Web3AuthSDK/Debug \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets.meta b/Packages/io.chainsafe.web3-unity.hyperplay/Runtime.meta similarity index 77% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets.meta rename to Packages/io.chainsafe.web3-unity.hyperplay/Runtime.meta index 1a1e8a4b6..0c74a21f0 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets.meta +++ b/Packages/io.chainsafe.web3-unity.hyperplay/Runtime.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d84b7d300b833084abed3483765c9581 +guid: b570d148b322940459375542e91ef7af folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x.meta b/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Libraries.meta similarity index 77% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x.meta rename to Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Libraries.meta index 518391f58..ad8be91f0 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x.meta +++ b/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Libraries.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 1242ae82f93d51a4595405d6cce9d2df +guid: 6aa4f545932270b48acdc4de1df73b2d folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Libraries/ChainSafe.Gaming.HyperPlay.dll b/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Libraries/ChainSafe.Gaming.HyperPlay.dll new file mode 100644 index 000000000..243a74fa0 Binary files /dev/null and b/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Libraries/ChainSafe.Gaming.HyperPlay.dll differ diff --git a/Packages/io.chainsafe.web3-unity.lootboxes/Chainlink/Runtime/Libraries/ChainSafe.Gaming.Marketplace.dll.meta b/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Libraries/ChainSafe.Gaming.HyperPlay.dll.meta similarity index 89% rename from Packages/io.chainsafe.web3-unity.lootboxes/Chainlink/Runtime/Libraries/ChainSafe.Gaming.Marketplace.dll.meta rename to Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Libraries/ChainSafe.Gaming.HyperPlay.dll.meta index 69e264fa7..6caca247d 100644 --- a/Packages/io.chainsafe.web3-unity.lootboxes/Chainlink/Runtime/Libraries/ChainSafe.Gaming.Marketplace.dll.meta +++ b/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Libraries/ChainSafe.Gaming.HyperPlay.dll.meta @@ -1,34 +1,33 @@ -fileFormatVersion: 2 -guid: 9dc796e51d1e40edbc2a3664283a4fb5 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 1 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 1 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - Windows Store Apps: WindowsStoreApps - second: - enabled: 0 - settings: - CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: - +fileFormatVersion: 2 +guid: 7644de7694e5b45c4af089ace7407067 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 1 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 1 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData.meta b/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Scripts.meta similarity index 77% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData.meta rename to Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Scripts.meta index 179a72d62..91e399dbf 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData.meta +++ b/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Scripts.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 281e0a1fe85466842921663f31625fea +guid: 541b8003286f5264ca1ed22079546a3b folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Scripts/HyperPlayWeb3.cs b/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Scripts/HyperPlayWeb3.cs new file mode 100644 index 000000000..a6f0b9074 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Scripts/HyperPlayWeb3.cs @@ -0,0 +1,31 @@ +using System.Threading.Tasks; +using ChainSafe.Gaming.Evm.JsonRpc; +using ChainSafe.Gaming.UnityPackage; +using ChainSafe.Gaming.Web3.Build; +using ChainSafe.Gaming.Web3.Unity; + +namespace ChainSafe.Gaming.HyperPlay +{ + /// + /// Helper class to build preconfigured Web3 clients for HyperPlay. + /// + public static class HyperPlayWeb3 + { + /// + /// Builds a lightweight Web3 client with basic HyperPlay functionality. + /// + /// Your HyperPlay config. + /// A lightweight version of Web3 client with basic HyperPlay functionality. + public static ValueTask BuildLightweightWeb3(IHyperPlayConfig config) + { + var projectConfig = ProjectConfigUtilities.Load(); + + return new Web3Builder(projectConfig).Configure(services => + { + services.UseUnityEnvironment(); + services.UseRpcProvider(); + services.UseHyperPlay(config); + }).LaunchAsync(); + } + } +} \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Remote/TokenResponse.cs.meta b/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Scripts/HyperPlayWeb3.cs.meta similarity index 83% rename from Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Remote/TokenResponse.cs.meta rename to Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Scripts/HyperPlayWeb3.cs.meta index 5e425370f..1318e4172 100644 --- a/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Remote/TokenResponse.cs.meta +++ b/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Scripts/HyperPlayWeb3.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: cdbff94e2b4544d548b7e6f350cb0c96 +guid: 7fd38b3373d04c6408afb61a39c01a29 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/io.chainsafe.web3-unity.hyperplay.runtime.asmdef b/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/io.chainsafe.web3-unity.hyperplay.runtime.asmdef new file mode 100644 index 000000000..6944e4657 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/io.chainsafe.web3-unity.hyperplay.runtime.asmdef @@ -0,0 +1,16 @@ +{ + "name": "io.chainsafe.web3-unity.hyperplay.runtime", + "rootNamespace": "ChainSafe.Gaming.HyperPlay", + "references": [ + "GUID:5426c6b788696eb4c88f4198b59839eb" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/io.chainsafe.web3-unity.hyperplay.runtime.asmdef.meta b/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/io.chainsafe.web3-unity.hyperplay.runtime.asmdef.meta new file mode 100644 index 000000000..f7631ab52 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.hyperplay/Runtime/io.chainsafe.web3-unity.hyperplay.runtime.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 2de764c29718da4449911a17cfdde636 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask.meta b/Packages/io.chainsafe.web3-unity.hyperplay/Samples~/Web3.Unity HyperPlay Samples/Scenes.meta similarity index 77% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask.meta rename to Packages/io.chainsafe.web3-unity.hyperplay/Samples~/Web3.Unity HyperPlay Samples/Scenes.meta index 5dda5a07b..be3471699 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask.meta +++ b/Packages/io.chainsafe.web3-unity.hyperplay/Samples~/Web3.Unity HyperPlay Samples/Scenes.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8906c1d4d75519f41a5c5a326a6df71e +guid: d14fc9e97141fe548bdeadfc8bfa5fb0 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Packages/io.chainsafe.web3-unity.hyperplay/Samples~/Web3.Unity HyperPlay Samples/Scenes/SampleLogin - HyperPlay.unity b/Packages/io.chainsafe.web3-unity.hyperplay/Samples~/Web3.Unity HyperPlay Samples/Scenes/SampleLogin - HyperPlay.unity new file mode 100644 index 000000000..33c6ecd11 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.hyperplay/Samples~/Web3.Unity HyperPlay Samples/Scenes/SampleLogin - HyperPlay.unity @@ -0,0 +1,2145 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 3 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 12 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 0 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 512 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 256 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 1 + m_PVRDenoiserTypeDirect: 1 + m_PVRDenoiserTypeIndirect: 1 + m_PVRDenoiserTypeAO: 1 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 + m_LightingDataAsset: {fileID: 0} + m_LightingSettings: {fileID: 0} +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 3 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + buildHeightMesh: 0 + maxJobWorkers: 0 + preserveTilesOutsideBounds: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &210878633 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 210878634} + - component: {fileID: 210878636} + - component: {fileID: 210878635} + m_Layer: 5 + m_Name: Error Panel + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &210878634 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 210878633} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 751800059} + - {fileID: 1812470006} + m_Father: {fileID: 314965760} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: -8.4831} + m_SizeDelta: {x: 400, y: 167.1662} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &210878635 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 210878633} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 0.912, b: 0.912, a: 0.9490196} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &210878636 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 210878633} + m_CullTransparentMesh: 1 +--- !u!1 &314965759 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 314965760} + - component: {fileID: 314965761} + m_Layer: 5 + m_Name: Error + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 0 +--- !u!224 &314965760 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 314965759} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1042712191} + - {fileID: 210878634} + m_Father: {fileID: 2066044329} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &314965761 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 314965759} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9df78976caa7771429cfe2b9b96e1491, type: 3} + m_Name: + m_EditorClassIdentifier: + MessageLabel: {fileID: 1028782728} +--- !u!1 &433476712 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 433476714} + - component: {fileID: 433476718} + - component: {fileID: 433476717} + - component: {fileID: 433476716} + m_Layer: 0 + m_Name: Login Logic - HyperPlay + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &433476714 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 433476712} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &433476716 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 433476712} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3d2237df0314604419146b916b88d158, type: 3} + m_Name: + m_EditorClassIdentifier: + sceneToLoad: SampleMain +--- !u!114 &433476717 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 433476712} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d4bbed5530529ea46a1f41b407499dc5, type: 3} + m_Name: + m_EditorClassIdentifier: + rampConfig: {fileID: 11400000, guid: d1f58846e4fc71d4e90f287a86f328f9, type: 2} +--- !u!114 &433476718 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 433476712} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 16b51cbda3e44ff44a13173ffbde98b3, type: 3} + m_Name: + m_EditorClassIdentifier: + gelatoApiKey: 7MFQqyGS1Iui_e_MgmFW1BfbFeJ06g8nnL2oUTlIJug_ + errorPopup: {fileID: 314965761} + loginButton: {fileID: 2048731599} + rememberMeToggle: {fileID: 1755680257} +--- !u!1 &482586192 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 482586193} + - component: {fileID: 482586195} + - component: {fileID: 482586194} + m_Layer: 5 + m_Name: Background + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &482586193 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 482586192} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 859742331} + m_Father: {fileID: 1755680255} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 0.25, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: -44, y: 30} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &482586194 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 482586192} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 1 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &482586195 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 482586192} + m_CullTransparentMesh: 1 +--- !u!1 &669337707 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 669337708} + - component: {fileID: 669337710} + - component: {fileID: 669337709} + m_Layer: 5 + m_Name: Label + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &669337708 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 669337707} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1755680255} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.25, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: -75, y: 0} + m_SizeDelta: {x: -150, y: -30} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &669337709 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 669337707} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_text: Remember me + m_isRightToLeft: 0 + m_fontAsset: {fileID: 11400000, guid: b137a8f4bbcdafc439306c89bed89215, type: 2} + m_sharedMaterial: {fileID: 7077468325371864899, guid: b137a8f4bbcdafc439306c89bed89215, type: 2} + m_fontSharedMaterials: [] + m_fontMaterial: {fileID: 0} + m_fontMaterials: [] + m_fontColor32: + serializedVersion: 2 + rgba: 4294111986 + m_fontColor: {r: 0.95, g: 0.95, b: 0.95, a: 1} + m_enableVertexGradient: 0 + m_colorMode: 3 + m_fontColorGradient: + topLeft: {r: 1, g: 1, b: 1, a: 1} + topRight: {r: 1, g: 1, b: 1, a: 1} + bottomLeft: {r: 1, g: 1, b: 1, a: 1} + bottomRight: {r: 1, g: 1, b: 1, a: 1} + m_fontColorGradientPreset: {fileID: 0} + m_spriteAsset: {fileID: 0} + m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 + m_overrideHtmlColors: 0 + m_faceColor: + serializedVersion: 2 + rgba: 4294967295 + m_fontSize: 18 + m_fontSizeBase: 18 + m_fontWeight: 400 + m_enableAutoSizing: 0 + m_fontSizeMin: 8 + m_fontSizeMax: 36 + m_fontStyle: 0 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 512 + m_textAlignment: 65535 + m_characterSpacing: 0 + m_wordSpacing: 0 + m_lineSpacing: 0 + m_lineSpacingMax: 0 + m_paragraphSpacing: 0 + m_charWidthMaxAdj: 0 + m_enableWordWrapping: 0 + m_wordWrappingRatios: 0.4 + m_overflowMode: 0 + m_linkedTextComponent: {fileID: 0} + parentLinkedComponent: {fileID: 0} + m_enableKerning: 1 + m_enableExtraPadding: 0 + checkPaddingRequired: 0 + m_isRichText: 1 + m_parseCtrlCharacters: 1 + m_isOrthographic: 1 + m_isCullingEnabled: 0 + m_horizontalMapping: 0 + m_verticalMapping: 0 + m_uvLineOffset: 0 + m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 + m_VertexBufferAutoSizeReduction: 0 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: 0, z: 0, w: 0} + m_isUsingLegacyAnimationComponent: 0 + m_isVolumetricText: 0 + m_hasFontAssetChanged: 0 + m_baseMaterial: {fileID: 0} + m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!222 &669337710 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 669337707} + m_CullTransparentMesh: 1 +--- !u!1 &740974330 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 740974331} + - component: {fileID: 740974332} + m_Layer: 5 + m_Name: Column - HyperPlay + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &740974331 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 740974330} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 956735924} + m_Father: {fileID: 1135875169} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &740974332 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 740974330} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: -1 + m_PreferredWidth: 300 + m_PreferredHeight: -1 + m_FlexibleWidth: -1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 +--- !u!1 &751800058 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 751800059} + - component: {fileID: 751800061} + - component: {fileID: 751800060} + m_Layer: 5 + m_Name: Title - Error + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &751800059 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 751800058} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 210878634} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 50} + m_Pivot: {x: 0.5, y: 1} +--- !u!114 &751800060 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 751800058} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.412, g: 0.043672003, b: 0.043672003, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 24 + m_FontStyle: 1 + m_BestFit: 0 + m_MinSize: 2 + m_MaxSize: 40 + m_Alignment: 4 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: Error +--- !u!222 &751800061 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 751800058} + m_CullTransparentMesh: 1 +--- !u!1 &772918783 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 772918784} + - component: {fileID: 772918787} + - component: {fileID: 772918786} + - component: {fileID: 772918785} + m_Layer: 5 + m_Name: Button - Ok + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &772918784 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 772918783} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1558416531} + m_Father: {fileID: 1812470006} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 50} + m_Pivot: {x: 0.5, y: 0} +--- !u!114 &772918785 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 772918783} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 772918786} + m_OnClick: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 314965761} + m_TargetAssemblyTypeName: Scenes.ErrorPopup, Assembly-CSharp + m_MethodName: Close + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 +--- !u!114 &772918786 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 772918783} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &772918787 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 772918783} + m_CullTransparentMesh: 1 +--- !u!1 &789601276 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 789601277} + m_Layer: 5 + m_Name: Header + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &789601277 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 789601276} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1362301615} + - {fileID: 1572088723} + m_Father: {fileID: 2066044329} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0.725} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: -25} + m_SizeDelta: {x: -50, y: -50} + m_Pivot: {x: 0.5, y: 1} +--- !u!1 &859742330 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 859742331} + - component: {fileID: 859742333} + - component: {fileID: 859742332} + m_Layer: 5 + m_Name: Checkmark + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &859742331 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 859742330} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 482586193} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &859742332 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 859742330} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 0 + m_PreserveAspect: 1 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &859742333 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 859742330} + m_CullTransparentMesh: 1 +--- !u!1 &893732502 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 893732505} + - component: {fileID: 893732504} + - component: {fileID: 893732503} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!81 &893732503 +AudioListener: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 893732502} + m_Enabled: 1 +--- !u!20 &893732504 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 893732502} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: 0.101960786, g: 0.101960786, b: 0.10980392, a: 0} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_Iso: 200 + m_ShutterSpeed: 0.005 + m_Aperture: 16 + m_FocusDistance: 10 + m_FocalLength: 50 + m_BladeCount: 5 + m_Curvature: {x: 2, y: 11} + m_BarrelClipping: 0.25 + m_Anamorphism: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 60 + orthographic: 0 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &893732505 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 893732502} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &956735923 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 956735924} + - component: {fileID: 956735926} + - component: {fileID: 956735925} + m_Layer: 5 + m_Name: Container + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &956735924 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 956735923} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 2048731596} + - {fileID: 1755680255} + m_Father: {fileID: 740974331} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 1} +--- !u!114 &956735925 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 956735923} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalFit: 0 + m_VerticalFit: 2 +--- !u!114 &956735926 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 956735923} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Padding: + m_Left: 0 + m_Right: 0 + m_Top: 0 + m_Bottom: 0 + m_ChildAlignment: 0 + m_Spacing: 5 + m_ChildForceExpandWidth: 1 + m_ChildForceExpandHeight: 1 + m_ChildControlWidth: 1 + m_ChildControlHeight: 1 + m_ChildScaleWidth: 0 + m_ChildScaleHeight: 0 + m_ReverseArrangement: 0 +--- !u!1 &1028782727 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1028782730} + - component: {fileID: 1028782729} + - component: {fileID: 1028782728} + m_Layer: 5 + m_Name: Error message + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1028782728 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1028782727} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.05, g: 0.05, b: 0.05, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 20 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 0 + m_MaxSize: 40 + m_Alignment: 1 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: +--- !u!222 &1028782729 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1028782727} + m_CullTransparentMesh: 1 +--- !u!224 &1028782730 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1028782727} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1812470006} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &1042712190 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1042712191} + - component: {fileID: 1042712194} + - component: {fileID: 1042712193} + - component: {fileID: 1042712192} + m_Layer: 5 + m_Name: Fade + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1042712191 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1042712190} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 314965760} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1042712192 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1042712190} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 0 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 1042712193} + m_OnClick: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 314965761} + m_TargetAssemblyTypeName: Scenes.ErrorPopup, Assembly-CSharp + m_MethodName: Close + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 +--- !u!114 &1042712193 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1042712190} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0, g: 0, b: 0, a: 0.29803923} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1042712194 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1042712190} + m_CullTransparentMesh: 1 +--- !u!1 &1135875168 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1135875169} + - component: {fileID: 1135875171} + - component: {fileID: 1135875170} + m_Layer: 5 + m_Name: Container + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1135875169 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1135875168} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 740974331} + m_Father: {fileID: 2066044329} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 0.725} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 1} +--- !u!114 &1135875170 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1135875168} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalFit: 2 + m_VerticalFit: 2 +--- !u!114 &1135875171 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1135875168} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Padding: + m_Left: 25 + m_Right: 25 + m_Top: 25 + m_Bottom: 25 + m_ChildAlignment: 0 + m_Spacing: 50 + m_ChildForceExpandWidth: 1 + m_ChildForceExpandHeight: 1 + m_ChildControlWidth: 1 + m_ChildControlHeight: 1 + m_ChildScaleWidth: 0 + m_ChildScaleHeight: 0 + m_ReverseArrangement: 0 +--- !u!1 &1290034538 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1290034541} + - component: {fileID: 1290034540} + - component: {fileID: 1290034539} + m_Layer: 0 + m_Name: EventSystem + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1290034539 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1290034538} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} + m_Name: + m_EditorClassIdentifier: + m_SendPointerHoverToParent: 1 + m_HorizontalAxis: Horizontal + m_VerticalAxis: Vertical + m_SubmitButton: Submit + m_CancelButton: Cancel + m_InputActionsPerSecond: 10 + m_RepeatDelay: 0.5 + m_ForceModuleActive: 0 +--- !u!114 &1290034540 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1290034538} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_FirstSelected: {fileID: 0} + m_sendNavigationEvents: 1 + m_DragThreshold: 10 +--- !u!4 &1290034541 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1290034538} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1362301614 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1362301615} + - component: {fileID: 1362301617} + - component: {fileID: 1362301616} + m_Layer: 5 + m_Name: ChainSafe Logo + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1362301615 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1362301614} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 789601277} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0.25, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: -50} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1362301616 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1362301614} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: 804f4bf7fbf176544bd5efde4a0749ca, type: 3} + m_Type: 0 + m_PreserveAspect: 1 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1362301617 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1362301614} + m_CullTransparentMesh: 1 +--- !u!1 &1558416530 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1558416531} + - component: {fileID: 1558416533} + - component: {fileID: 1558416532} + m_Layer: 5 + m_Name: Text + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1558416531 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1558416530} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 772918784} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1558416532 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1558416530} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.05, g: 0.05, b: 0.05, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 19 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 1 + m_MaxSize: 40 + m_Alignment: 4 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: OK +--- !u!222 &1558416533 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1558416530} + m_CullTransparentMesh: 1 +--- !u!1 &1572088722 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1572088723} + - component: {fileID: 1572088725} + - component: {fileID: 1572088724} + m_Layer: 5 + m_Name: Title + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1572088723 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1572088722} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 789601277} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.25, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: -30, y: -30} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1572088724 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1572088722} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_text: HyperPlay Login + m_isRightToLeft: 0 + m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_fontSharedMaterials: [] + m_fontMaterial: {fileID: 0} + m_fontMaterials: [] + m_fontColor32: + serializedVersion: 2 + rgba: 4294111986 + m_fontColor: {r: 0.95, g: 0.95, b: 0.95, a: 1} + m_enableVertexGradient: 0 + m_colorMode: 3 + m_fontColorGradient: + topLeft: {r: 1, g: 1, b: 1, a: 1} + topRight: {r: 1, g: 1, b: 1, a: 1} + bottomLeft: {r: 1, g: 1, b: 1, a: 1} + bottomRight: {r: 1, g: 1, b: 1, a: 1} + m_fontColorGradientPreset: {fileID: 0} + m_spriteAsset: {fileID: 0} + m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 + m_overrideHtmlColors: 0 + m_faceColor: + serializedVersion: 2 + rgba: 4294967295 + m_fontSize: 40 + m_fontSizeBase: 48 + m_fontWeight: 400 + m_enableAutoSizing: 1 + m_fontSizeMin: 16 + m_fontSizeMax: 40 + m_fontStyle: 1 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 512 + m_textAlignment: 65535 + m_characterSpacing: 0 + m_wordSpacing: 0 + m_lineSpacing: 0 + m_lineSpacingMax: 0 + m_paragraphSpacing: 0 + m_charWidthMaxAdj: 0 + m_enableWordWrapping: 1 + m_wordWrappingRatios: 0.4 + m_overflowMode: 0 + m_linkedTextComponent: {fileID: 0} + parentLinkedComponent: {fileID: 0} + m_enableKerning: 1 + m_enableExtraPadding: 0 + checkPaddingRequired: 0 + m_isRichText: 1 + m_parseCtrlCharacters: 1 + m_isOrthographic: 1 + m_isCullingEnabled: 0 + m_horizontalMapping: 0 + m_verticalMapping: 0 + m_uvLineOffset: 0 + m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 + m_VertexBufferAutoSizeReduction: 0 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: 0, z: 0, w: 0} + m_isUsingLegacyAnimationComponent: 0 + m_isVolumetricText: 0 + m_hasFontAssetChanged: 0 + m_baseMaterial: {fileID: 0} + m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!222 &1572088725 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1572088722} + m_CullTransparentMesh: 1 +--- !u!1 &1755680254 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1755680255} + - component: {fileID: 1755680257} + - component: {fileID: 1755680256} + m_Layer: 5 + m_Name: Toggle - Remember Me + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1755680255 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1755680254} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 482586193} + - {fileID: 669337708} + m_Father: {fileID: 956735924} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1755680256 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1755680254} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: -1 + m_PreferredWidth: -1 + m_PreferredHeight: 50 + m_FlexibleWidth: -1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 +--- !u!114 &1755680257 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1755680254} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 482586194} + toggleTransition: 1 + graphic: {fileID: 859742332} + m_Group: {fileID: 0} + onValueChanged: + m_PersistentCalls: + m_Calls: [] + m_IsOn: 0 +--- !u!1 &1812470005 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1812470006} + m_Layer: 5 + m_Name: Content + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1812470006 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1812470005} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1028782730} + - {fileID: 772918784} + m_Father: {fileID: 210878634} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: -21} + m_SizeDelta: {x: -32, y: -58} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1001 &2048731595 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 956735924} + m_Modifications: + - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_Pivot.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_Pivot.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_RootOrder + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_AnchorMax.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_AnchorMin.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_SizeDelta.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_SizeDelta.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8775736491206355084, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_Name + value: Button - HyperPlay + objectReference: {fileID: 0} + - target: {fileID: 8781309615174179339, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_text + value: Login with HyperPlay + objectReference: {fileID: 0} + - target: {fileID: 8781309615174179339, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + propertyPath: m_fontSize + value: 18.85 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 8775736491206355084, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + insertIndex: -1 + addedObject: {fileID: 2048731598} + m_SourcePrefab: {fileID: 100100000, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} +--- !u!224 &2048731596 stripped +RectTransform: + m_CorrespondingSourceObject: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + m_PrefabInstance: {fileID: 2048731595} + m_PrefabAsset: {fileID: 0} +--- !u!1 &2048731597 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 8775736491206355084, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + m_PrefabInstance: {fileID: 2048731595} + m_PrefabAsset: {fileID: 0} +--- !u!114 &2048731598 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2048731597} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: -1 + m_PreferredWidth: -1 + m_PreferredHeight: 50 + m_FlexibleWidth: -1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 +--- !u!114 &2048731599 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 7324590823460843055, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + m_PrefabInstance: {fileID: 2048731595} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2048731597} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!1 &2066044325 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2066044329} + - component: {fileID: 2066044328} + - component: {fileID: 2066044327} + - component: {fileID: 2066044326} + m_Layer: 5 + m_Name: Canvas + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &2066044326 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2066044325} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreReversedGraphics: 1 + m_BlockingObjects: 0 + m_BlockingMask: + serializedVersion: 2 + m_Bits: 4294967295 +--- !u!114 &2066044327 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2066044325} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} + m_Name: + m_EditorClassIdentifier: + m_UiScaleMode: 1 + m_ReferencePixelsPerUnit: 100 + m_ScaleFactor: 1 + m_ReferenceResolution: {x: 1280, y: 720} + m_ScreenMatchMode: 0 + m_MatchWidthOrHeight: 1 + m_PhysicalUnit: 3 + m_FallbackScreenDPI: 96 + m_DefaultSpriteDPI: 96 + m_DynamicPixelsPerUnit: 1 + m_PresetInfoIsWorld: 0 +--- !u!223 &2066044328 +Canvas: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2066044325} + m_Enabled: 1 + serializedVersion: 3 + m_RenderMode: 0 + m_Camera: {fileID: 0} + m_PlaneDistance: 100 + m_PixelPerfect: 0 + m_ReceivesEvents: 1 + m_OverrideSorting: 0 + m_OverridePixelPerfect: 0 + m_SortingBucketNormalizedSize: 0 + m_VertexColorAlwaysGammaSpace: 0 + m_AdditionalShaderChannelsFlag: 25 + m_UpdateRectTransformForStandalone: 0 + m_SortingLayerID: 0 + m_SortingOrder: 0 + m_TargetDisplay: 0 +--- !u!224 &2066044329 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2066044325} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0, y: 0, z: 0} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 789601277} + - {fileID: 1135875169} + - {fileID: 314965760} + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0, y: 0} +--- !u!1660057539 &9223372036854775807 +SceneRoots: + m_ObjectHideFlags: 0 + m_Roots: + - {fileID: 893732505} + - {fileID: 1290034541} + - {fileID: 433476714} + - {fileID: 2066044329} diff --git a/Packages/io.chainsafe.web3-unity.hyperplay/Samples~/Web3.Unity HyperPlay Samples/Scenes/SampleLogin - HyperPlay.unity.meta b/Packages/io.chainsafe.web3-unity.hyperplay/Samples~/Web3.Unity HyperPlay Samples/Scenes/SampleLogin - HyperPlay.unity.meta new file mode 100644 index 000000000..fe08f9ae5 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.hyperplay/Samples~/Web3.Unity HyperPlay Samples/Scenes/SampleLogin - HyperPlay.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: a31aa87c0b8cd954bb4b14166cc257dd +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity.hyperplay/Samples~/Web3.Unity HyperPlay Samples/Scripts.meta b/Packages/io.chainsafe.web3-unity.hyperplay/Samples~/Web3.Unity HyperPlay Samples/Scripts.meta new file mode 100644 index 000000000..634ad428e --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.hyperplay/Samples~/Web3.Unity HyperPlay Samples/Scripts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2d9c25322424d4f41a30626fdfd56e0e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity.hyperplay/Samples~/Web3.Unity HyperPlay Samples/Scripts/HyperPlayLoginProvider.cs b/Packages/io.chainsafe.web3-unity.hyperplay/Samples~/Web3.Unity HyperPlay Samples/Scripts/HyperPlayLoginProvider.cs new file mode 100644 index 000000000..7ccf6694d --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.hyperplay/Samples~/Web3.Unity HyperPlay Samples/Scripts/HyperPlayLoginProvider.cs @@ -0,0 +1,57 @@ +using ChainSafe.Gaming.HyperPlay; +using ChainSafe.Gaming.UnityPackage.Common; +using ChainSafe.Gaming.Web3.Build; +using Microsoft.Extensions.DependencyInjection; +using Scenes; +using UnityEngine; +using UnityEngine.UI; + +/// +/// Login using HyperPlay desktop client. +/// +public class HyperPlayLoginProvider : LoginProvider, IWeb3BuilderServiceAdapter +{ + [SerializeField] private Button loginButton; + [SerializeField] private Toggle rememberMeToggle; + + private bool _storedSessionAvailable; + + protected override async void Initialize() + { + base.Initialize(); + + _storedSessionAvailable = false; + + await using (var lightWeb3 = await HyperPlayWeb3.BuildLightweightWeb3(new HyperPlayConfig())) + { + var data = lightWeb3.ServiceProvider.GetService(); + + _storedSessionAvailable = data.RememberSession; + } + + if (_storedSessionAvailable) // auto-login + { + Debug.Log("Proceeding with auto-login."); + + await TryLogin(); + } + + loginButton.onClick.AddListener(OnLoginClicked); + } + + public Web3Builder ConfigureServices(Web3Builder web3Builder) + { + return web3Builder.Configure(services => + { + services.UseHyperPlay(new HyperPlayConfig + { + RememberSession = rememberMeToggle.isOn || _storedSessionAvailable, + }).UseHyperPlaySigner().UseHyperPlayTransactionExecutor(); + }); + } + + private async void OnLoginClicked() + { + await TryLogin(); + } +} diff --git a/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155.cs.meta b/Packages/io.chainsafe.web3-unity.hyperplay/Samples~/Web3.Unity HyperPlay Samples/Scripts/HyperPlayLoginProvider.cs.meta similarity index 83% rename from Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155.cs.meta rename to Packages/io.chainsafe.web3-unity.hyperplay/Samples~/Web3.Unity HyperPlay Samples/Scripts/HyperPlayLoginProvider.cs.meta index 5f5e2f3da..4e7edde78 100644 --- a/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155.cs.meta +++ b/Packages/io.chainsafe.web3-unity.hyperplay/Samples~/Web3.Unity HyperPlay Samples/Scripts/HyperPlayLoginProvider.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: c08a3b38196e24b31a3e35b41053a2cf +guid: 16b51cbda3e44ff44a13173ffbde98b3 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Packages/io.chainsafe.web3-unity.hyperplay/package.json b/Packages/io.chainsafe.web3-unity.hyperplay/package.json new file mode 100644 index 000000000..262bd237b --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.hyperplay/package.json @@ -0,0 +1,33 @@ +{ + "name": "io.chainsafe.web3-unity.hyperplay", + "version": "1.0.0", + "displayName": "web3.unity SDK HyperPlay", + "description": "This package includes the integration of HyperPlay, which you can use with our Gaming SDK.", + "license": "LGPL-3.0-only", + "licensesUrl": "https://github.com/ChainSafe/web3.unity/blob/main/LICENSE", + "documentationUrl": "https://docs.gaming.chainsafe.io/", + "dependencies": { + "com.unity.nuget.newtonsoft-json": "3.0.2", + "io.chainsafe.web3-unity": "2.6.0" + }, + "keywords": [ + "web3", + "ethereum", + "evm", + "blockchain", + "nft", + "hyperplay" + ], + "author": { + "name": "ChainSafe Gaming", + "email": "bd@chainsafe.io", + "url": "https://gaming.chainsafe.io/" + }, + "samples": [ + { + "displayName": "HyperPlay Usage Sample", + "description": "Contains example of integration and usage of HyperPlay functionality.", + "path": "Samples~/Web3.Unity HyperPlay Samples" + } + ] +} \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity.hyperplay/package.json.meta b/Packages/io.chainsafe.web3-unity.hyperplay/package.json.meta new file mode 100644 index 000000000..2829a4dde --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.hyperplay/package.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 3536bd3009300f64ca0dd11bfea1da39 +PackageManifestImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity.lootboxes/Chainlink/Runtime/Libraries/ChainSafe.Gaming.Lootboxes.Chainlink.dll b/Packages/io.chainsafe.web3-unity.lootboxes/Chainlink/Runtime/Libraries/ChainSafe.Gaming.Lootboxes.Chainlink.dll index dfc24b78f..37db94b04 100644 Binary files a/Packages/io.chainsafe.web3-unity.lootboxes/Chainlink/Runtime/Libraries/ChainSafe.Gaming.Lootboxes.Chainlink.dll and b/Packages/io.chainsafe.web3-unity.lootboxes/Chainlink/Runtime/Libraries/ChainSafe.Gaming.Lootboxes.Chainlink.dll differ diff --git a/Packages/io.chainsafe.web3-unity.lootboxes/Chainlink/Runtime/Libraries/Chainsafe.Gaming.Chainlink.dll b/Packages/io.chainsafe.web3-unity.lootboxes/Chainlink/Runtime/Libraries/Chainsafe.Gaming.Chainlink.dll index 1c048147d..48650c0f3 100644 Binary files a/Packages/io.chainsafe.web3-unity.lootboxes/Chainlink/Runtime/Libraries/Chainsafe.Gaming.Chainlink.dll and b/Packages/io.chainsafe.web3-unity.lootboxes/Chainlink/Runtime/Libraries/Chainsafe.Gaming.Chainlink.dll differ diff --git a/Packages/io.chainsafe.web3-unity.lootboxes/Samples~/Chainlink Lootbox Samples/Scripts/Scene/Rewards/Erc1155NftRewardFactory.cs b/Packages/io.chainsafe.web3-unity.lootboxes/Samples~/Chainlink Lootbox Samples/Scripts/Scene/Rewards/Erc1155NftRewardFactory.cs index 03fe534f8..71774ef9b 100644 --- a/Packages/io.chainsafe.web3-unity.lootboxes/Samples~/Chainlink Lootbox Samples/Scripts/Scene/Rewards/Erc1155NftRewardFactory.cs +++ b/Packages/io.chainsafe.web3-unity.lootboxes/Samples~/Chainlink Lootbox Samples/Scripts/Scene/Rewards/Erc1155NftRewardFactory.cs @@ -6,6 +6,7 @@ using Scripts.EVM.Token; using UnityEngine; using UnityEngine.Networking; +using ChainSafe.Gaming.Ipfs; namespace LootBoxes.Chainlink.Scene { @@ -57,7 +58,7 @@ public async Task Create(Erc1155NftReward data) private static async Task DownloadImage(string imageUri) { - var request = UnityWebRequestTexture.GetTexture(imageUri.UnpackUriIfIpfs()); + var request = UnityWebRequestTexture.GetTexture(IpfsHelper.RollupIpfsUri(imageUri)); await request.SendWebRequest(); diff --git a/Packages/io.chainsafe.web3-unity.lootboxes/Samples~/Chainlink Lootbox Samples/Scripts/StringExtensions.cs b/Packages/io.chainsafe.web3-unity.lootboxes/Samples~/Chainlink Lootbox Samples/Scripts/StringExtensions.cs index a2d4baf6b..86c15e498 100644 --- a/Packages/io.chainsafe.web3-unity.lootboxes/Samples~/Chainlink Lootbox Samples/Scripts/StringExtensions.cs +++ b/Packages/io.chainsafe.web3-unity.lootboxes/Samples~/Chainlink Lootbox Samples/Scripts/StringExtensions.cs @@ -2,14 +2,6 @@ public static class StringExtensions { - public static string UnpackUriIfIpfs(this string originalUri) - { - if (!originalUri.StartsWith("ipfs://")) - return originalUri; - - return originalUri.Replace("ipfs://", "https://ipfs.io/ipfs/"); - } - public static string ToHexString(this Color color) { var r = (int)(color.r * 255); diff --git a/Packages/io.chainsafe.web3-unity.lootboxes/package.json b/Packages/io.chainsafe.web3-unity.lootboxes/package.json index 4c03b61d5..fb0b3150b 100644 --- a/Packages/io.chainsafe.web3-unity.lootboxes/package.json +++ b/Packages/io.chainsafe.web3-unity.lootboxes/package.json @@ -1,13 +1,13 @@ { "name": "io.chainsafe.web3-unity.lootboxes", - "version": "2.5.5", + "version": "2.6.0", "displayName": "web3.unity SDK Lootboxes", "description": "This additional package provides you with sample scene and sample scripts for opening lootboxes of various types", "license": "LGPL-3.0-only", "licensesUrl": "https://github.com/ChainSafe/web3.unity/blob/main/LICENSE", "documentationUrl": "https://docs.gaming.chainsafe.io/", "dependencies": { - "io.chainsafe.web3-unity": "2.5.5" + "io.chainsafe.web3-unity": "2.6.0" }, "keywords": [ "web3", diff --git a/Packages/io.chainsafe.web3-unity.marketplace/Editor.meta b/Packages/io.chainsafe.web3-unity.marketplace/Editor.meta new file mode 100644 index 000000000..b97cf0f0a --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.marketplace/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 079c8322735d43a44b851753cad52f5e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity.marketplace/Editor/CscImporter.cs b/Packages/io.chainsafe.web3-unity.marketplace/Editor/CscImporter.cs new file mode 100644 index 000000000..2a33642e6 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.marketplace/Editor/CscImporter.cs @@ -0,0 +1,49 @@ +using UnityEditor; +using System.IO; +using UnityEngine; + +[InitializeOnLoad] +public class CscRspChecker +{ + private static string defineSymbol = "MARKETPLACE_AVAILABLE"; + private static string cscRspPath = Path.Combine(Application.dataPath, "csc.rsp"); + private static bool initialized; + + static CscRspChecker() + { + + CheckAndCreateCscRsp(); + } + + private static void CheckAndCreateCscRsp() + { + if (File.Exists(cscRspPath)) + { + // Read all lines from the file + var lines = File.ReadAllLines(cscRspPath); + var containsDefine = false; + // Check if any line contains the required define + foreach (var line in lines) + { + if (line.Contains($"-define:{defineSymbol}")) + { + containsDefine = true; + break; + } + } + // If define is not found, append it to the file + if (!containsDefine) + { + File.AppendAllText(cscRspPath, $"\n-define:{defineSymbol}"); + Debug.Log($"{defineSymbol} define added to csc.rsp file."); + } + } + else + { + // If the file does not exist, create it and add define + File.WriteAllText(cscRspPath, $"-define:{defineSymbol}"); + Debug.Log($"csc.rsp file created with {defineSymbol} define."); + } + initialized = true; + } +} \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc20.cs.meta b/Packages/io.chainsafe.web3-unity.marketplace/Editor/CscImporter.cs.meta similarity index 83% rename from Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc20.cs.meta rename to Packages/io.chainsafe.web3-unity.marketplace/Editor/CscImporter.cs.meta index b0e9a2140..1103d5417 100644 --- a/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc20.cs.meta +++ b/Packages/io.chainsafe.web3-unity.marketplace/Editor/CscImporter.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8ddf9b9e7e8044c65b37afde7fc153d6 +guid: 0182abe6c136df64992eed91e4d911af MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Packages/io.chainsafe.web3-unity.marketplace/Runtime.meta b/Packages/io.chainsafe.web3-unity.marketplace/Runtime.meta new file mode 100644 index 000000000..c73932036 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.marketplace/Runtime.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d332d9b15b9441c4990ccf8277bd2fd2 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity.marketplace/Runtime/Scripts.meta b/Packages/io.chainsafe.web3-unity.marketplace/Runtime/Scripts.meta new file mode 100644 index 000000000..4fb026768 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.marketplace/Runtime/Scripts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9c12c3d86a0c0b541b9ec244ea4c1458 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity.marketplace/Runtime/Scripts/Marketplace.meta b/Packages/io.chainsafe.web3-unity.marketplace/Runtime/Scripts/Marketplace.meta new file mode 100644 index 000000000..794a0c34c --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.marketplace/Runtime/Scripts/Marketplace.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f0f9d73ee8157af45a4e30aaebd4d926 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity.marketplace/Runtime/Scripts/Marketplace/Marketplace.cs b/Packages/io.chainsafe.web3-unity.marketplace/Runtime/Scripts/Marketplace/Marketplace.cs new file mode 100644 index 000000000..4d7a6df11 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.marketplace/Runtime/Scripts/Marketplace/Marketplace.cs @@ -0,0 +1,445 @@ +using System; +using System.Collections.Generic; +using System.Numerics; +using System.Threading.Tasks; +using ChainSafe.Gaming.UnityPackage; +using ChainSafe.Gaming.UnityPackage.Model; +using ChainSafe.Gaming.Web3; +using Nethereum.Hex.HexTypes; +using Newtonsoft.Json; +using Scripts.EVM.Remote; +using Scripts.EVM.Token; +using UnityEngine; +using UnityEngine.Networking; + +namespace Scripts.EVM.Marketplace +{ + public class Marketplace + { + #region Methods + + /// + /// Gets all items in a project. + /// Path: https://api.gaming.chainsafe.io/v1/projects/{projectID}/items + /// + /// MarketplaceModel.Root + public static async Task GetProjectItems() + { + var path = $"/items?chainId={Web3Accessor.Web3.ChainConfig.ChainId}"; + var response = await CSServer.GetData(path); + return response; + } + + /// + /// Gets all items in a marketplace. + /// Path: https://api.gaming.chainsafe.io/v1/projects/{projectID}/marketplaces/{marketplaceID}/items + /// + /// MarketplaceID to query + /// MarketplaceModel.Root + public static async Task GetMarketplaceItems(string marketplaceId) + { + var path = $"/marketplaces/{marketplaceId}/items"; + var response = await CSServer.GetData(path); + return response; + } + + /// + /// Gets items listed by token id. + /// Path: https://api.gaming.chainsafe.io/v1/projects/{projectID}/marketplaces/{marketplaceID}/items/{itemID} + /// + /// MarketplaceID to query + /// TokenID to query + /// MarketplaceModel.Item + public static async Task GetItem(string marketplaceId, string tokenId) + { + var path = $"/marketplaces/{marketplaceId}/items/{tokenId}"; + var response = await CSServer.GetData(path); + return response; + } + + /// + /// Gets all tokens in a project. + /// Path: https://api.gaming.chainsafe.io/v1/projects/{projectID}/tokens + /// + /// NftTokenModel.Root + public static async Task GetProjectTokens() + { + var path = $"/tokens?chainId={Web3Accessor.Web3.ChainConfig.ChainId}"; + var response = await CSServer.GetData(path); + return response; + } + + /// + /// Gets all tokens in a 721 collection. + /// Path: https://api.gaming.chainsafe.io/v1/projects/{projectID}/collections/{collectionID}/tokens + /// + /// CollectionID721 to query + /// NftTokenModel.Root + public static async Task GetCollectionTokens721(string collectionId721) + { + var path = $"/collections/{collectionId721}/tokens"; + var response = await CSServer.GetData(path); + return response; + } + + /// + /// Gets all tokens in a 1155 collection. + /// Path https://api.gaming.chainsafe.io/v1/projects/{projectID}/collections/{collectionID}/tokens + /// + /// CollectionID1155 to query + /// NftTokenModel.Root + public static async Task GetCollectionTokens1155(string collectionId1155) + { + var path = $"/collections/{collectionId1155}/tokens"; + var response = await CSServer.GetData(path); + return response; + } + + /// + /// Gets the information of a token in a collection via id. + /// Path: https://api.gaming.chainsafe.io/v1/projects/{projectID}/collections/{collectionID}/tokens/:tokenID + /// Token id is optional + /// + /// CollectionID to query + /// TokenID to query + /// NftTokenModel.Token + public static async Task GetCollectionToken(string collectionId, string tokenId) + { + var path = $"/collections/{collectionId}/tokens/{tokenId}"; + var response = await CSServer.GetData(path); + return response; + } + + /// + /// Gets the owners of a token id in a collection. + /// Path: https://api.gaming.chainsafe.io/v1/projects/{projectID}/collections/{collectionID}/tokens/{tokenID}/owners + /// + /// CollectionID to query + /// TokenID to query + /// NftTokenModel.Token + public static async Task GetTokenOwners(string collectionId, string tokenId) + { + var path = $"/collections/{collectionId}/tokens/{tokenId}/owners"; + var response = await CSServer.GetData(path); + return response; + } + + /// + /// Creates a 721 collection + /// /// Path https://api.gaming.chainsafe.io/v1/projects/8524f420-ecd1-4cfd-a651-706ade97cac7/collections + /// + /// Bearer token to access dashboard services + /// Name of the 721 collection being created + /// Description of the 721 collection being created + /// If minting is public or not + /// Contract send data object + public static async Task Create721Collection(string _bearerToken, string _name, string _description, bool _isMintingPublic) + { + var logoImageData = await UploadPlatforms.GetImageData(); + var bannerImageData = await UploadPlatforms.GetImageData(); + var formData = new List + { + new MultipartFormDataSection("name", _name), + new MultipartFormDataSection("description", _description), + new MultipartFormDataSection("owner", Web3Accessor.Web3.Signer.PublicAddress), + new MultipartFormDataSection("chain_id", Web3Accessor.Web3.ChainConfig.ChainId), + new MultipartFormDataSection("projectID", Web3Accessor.Web3.ProjectConfig.ProjectId), + new MultipartFormFileSection("logo", logoImageData, "logo.png", "image/png"), + new MultipartFormFileSection("banner", bannerImageData, "banner.png", "image/png"), + new MultipartFormDataSection("isImported", "true"), + new MultipartFormDataSection("contractAddress", ChainSafeContracts.MarketplaceContracts[Web3Accessor.Web3.ChainConfig.ChainId]), + new MultipartFormDataSection("type", "erc721") + }; + var path = "/collections"; + var collectionResponse = await CSServer.CreateData(_bearerToken, path, formData); + var collectionData = JsonConvert.DeserializeObject(collectionResponse); + var method = "create721Collection"; + object[] args = + { + Web3Accessor.Web3.ProjectConfig.ProjectId, + collectionData.id, + _name, + collectionData.type, + collectionData.banner, + _isMintingPublic + }; + var data = await Evm.ContractSend(Web3Accessor.Web3, method, Token.ABI.MarketplaceFactory, ChainSafeContracts.MarketplaceContracts[Web3Accessor.Web3.ChainConfig.ChainId], args); + return data; + } + + /// + /// Creates a 1155 collection + /// Path https://api.gaming.chainsafe.io/v1/projects/8524f420-ecd1-4cfd-a651-706ade97cac7/collections/ + /// + /// Bearer token to access dashboard services + /// Name of the 1155 collection being created + /// Description of the 1155 collection being created + /// If minting is public or not + /// Contract send data object + public static async Task Create1155Collection(string _bearerToken, string _name, string _description, bool _isMintingPublic) + { + try + { + var logoImageData = await UploadPlatforms.GetImageData(); + var bannerImageData = await UploadPlatforms.GetImageData(); + var formData = new List + { + new MultipartFormDataSection("name", _name), + new MultipartFormDataSection("description", _description), + new MultipartFormDataSection("owner", Web3Accessor.Web3.Signer.PublicAddress), + new MultipartFormDataSection("chain_id", Web3Accessor.Web3.ChainConfig.ChainId), + new MultipartFormDataSection("projectID", Web3Accessor.Web3.ProjectConfig.ProjectId), + new MultipartFormFileSection("logo", logoImageData, "logo.png", "image/png"), + new MultipartFormFileSection("banner", bannerImageData, "banner.png", "image/png"), + new MultipartFormDataSection("isImported", "true"), + new MultipartFormDataSection("contractAddress", ChainSafeContracts.MarketplaceContracts[Web3Accessor.Web3.ChainConfig.ChainId]), + new MultipartFormDataSection("type", "erc1155") + }; + var path = "/collections"; + var collectionResponse = await CSServer.CreateData(_bearerToken, path, formData); + var collectionData = JsonConvert.DeserializeObject(collectionResponse); + var method = "create1155Collection"; + object[] args = + { + Web3Accessor.Web3.ProjectConfig.ProjectId, + collectionData.id, + collectionData.banner, + _isMintingPublic + }; + var data = await Evm.ContractSend(Web3Accessor.Web3, method, Token.ABI.MarketplaceFactory, ChainSafeContracts.MarketplaceContracts[Web3Accessor.Web3.ChainConfig.ChainId], args); + return data; + } + catch (Web3Exception e) + { + Console.WriteLine(e); + throw; + } + } + + /// + /// /// Mints a 721 collection nft to the collection + /// + /// 721 collection contract to mint from/to + /// URI in full format i.e https://ipfs.chainsafe.io/ipfs/bafyjvzacdj4apx52hvbyjkwyf7i6a7t3pcqd4kw4xxfc67hgvn3a + /// Contract send data object + public static async Task Mint721CollectionNft(string _collectionContract, string _uri) + { + try + { + var method = "mint"; + object[] args = + { + Web3Accessor.Web3.Signer.PublicAddress, + _uri + }; + var data = await Evm.ContractSend(Web3Accessor.Web3, method, Token.ABI.GeneralErc721, _collectionContract, args); + return data; + } + catch (Web3Exception e) + { + Console.WriteLine(e); + throw; + } + } + + /// + /// Mints a 1155 collection nft to the collection + /// + /// 1155 collection contract to mint from/to + /// URI in full format i.e https://ipfs.chainsafe.io/ipfs/bafyjvzacdj4apx52hvbyjkwyf7i6a7t3pcqd4kw4xxfc67hgvn3a + /// Amount of Nfts to mint + /// Contract send data object + public static async Task Mint1155CollectionNft(string _collectionContract, string _uri, string _amount) + { + try + { + var method = "mint"; + var amount = BigInteger.Parse(_amount); + object[] args = + { + Web3Accessor.Web3.Signer.PublicAddress, + _uri, + amount + }; + var data = await Evm.ContractSend(Web3Accessor.Web3, method, Token.ABI.GeneralErc1155, _collectionContract, args); + return data; + } + catch (Web3Exception e) + { + Console.WriteLine(e); + throw; + } + } + + /// + /// Deletes a collection that isn't on chain yet by ID + /// Path https://api.gaming.chainsafe.io/v1/projects/8524f420-ecd1-4cfd-a651-706ade97cac7/collections/e38e9465-fb9b-4316-8d1d-c77e81b50d6a + /// + /// Bearer token to access dashboard services + /// Collection ID to delete + /// Server response + public static async Task DeleteCollection(string _bearerToken, string _collectionId) + { + var path = $"/collections/{_collectionId}"; + var response = await CSServer.DeleteData(_bearerToken, path); + return response; + } + + /// + /// Creates a marketplace + /// Path: https://api.gaming.chainsafe.io/v1/projects/8524f420-ecd1-4cfd-a651-706ade97cac7/marketplaces + /// + /// Bearer token to access dashboard services + /// Marketplace name + /// Marketplace description + /// If whitelisting is enabled or not + /// Contract send data object + public static async Task CreateMarketplace(string _bearerToken, string _name, string _description, bool _whitelisting) + { + try + { + var bannerImageData = await UploadPlatforms.GetImageData(); + var formData = new List + { + new MultipartFormDataSection("name", _name), + new MultipartFormDataSection("description", _description), + new MultipartFormDataSection("chain_id", Web3Accessor.Web3.ChainConfig.ChainId), + new MultipartFormFileSection("banner", bannerImageData, "banner.png", "image/png") + }; + var path = "/marketplaces"; + var marketplaceResponse = await CSServer.CreateData(_bearerToken, path, formData); + Debug.Log(marketplaceResponse); + var collectionData = JsonConvert.DeserializeObject(marketplaceResponse); + var method = "createMarketplace"; + object[] args = + { + Web3Accessor.Web3.ProjectConfig.ProjectId, + collectionData.id, + _whitelisting + }; + var data = await Evm.ContractSend(Web3Accessor.Web3, method, Token.ABI.MarketplaceFactory, ChainSafeContracts.MarketplaceContracts[Web3Accessor.Web3.ChainConfig.ChainId] , args); + return data; + } + catch (Web3Exception e) + { + Console.WriteLine(e); + throw; + } + } + + /// + /// Deletes a marketplace that isn't on chain yet by ID + /// Path: https://api.gaming.chainsafe.io/v1/projects/8524f420-ecd1-4cfd-a651-706ade97cac7/marketplaces/{marketplaceId} + /// + /// Bearer token to access dashboard services + /// Marketplace ID to delete + /// Server response + public static async Task DeleteMarketplace(string _bearerToken, string _marketplaceId) + { + var path = $"/marketplaces/{_marketplaceId}"; + var response = await CSServer.DeleteData(_bearerToken, path); + return response; + } + + /// + /// Approves the marketplace to list 721 Nfts + /// + /// Nft contract to approve + /// Marketplace to approve + /// Permission being granted + /// Contract send data object + public static async Task SetApprovalMarketplace(string _nftContract, string _marketplaceContract, string _type, bool _permission) + { + try + { + var method = "setApprovalForAll"; + object[] args = + { + _marketplaceContract, + _permission + }; + var abi = _type == "721" ? Token.ABI.GeneralErc721 : Token.ABI.GeneralErc1155; + var data = await Evm.ContractSend(Web3Accessor.Web3, method, abi, _nftContract, args); + return data; + } + catch (Web3Exception e) + { + Console.WriteLine(e); + throw; + } + } + + public static async Task PurchaseNft(string _marketplaceContract, string _itemId, string _amountToSend) + { + try + { + var method = "purchaseItem"; + BigInteger itemId = BigInteger.Parse(_itemId); + object[] args = + { + itemId + }; + var data = await Evm.ContractSend(Web3Accessor.Web3, method, Token.ABI.Marketplace, _marketplaceContract, args, new HexBigInteger(_amountToSend)); + return data; + } + catch (Web3Exception e) + { + Console.WriteLine(e); + throw; + } + } + + /// + /// Lists Nfts to the marketplace + /// + /// Marketplace contract to list to + /// Nft contract to list from + /// Toked ID to list + /// Price in wei to list for + /// Contract send data object + public static async Task ListNftsToMarketplace(string _marketplaceContract, string _nftContract, string _tokenId, string _priceInWei) + { + try + { + var method = "listItem"; + BigInteger priceInWei = BigInteger.Parse(_priceInWei); + BigInteger tokenId = BigInteger.Parse(_tokenId); + BigInteger deadline = DateTimeOffset.UtcNow.AddDays(7).ToUnixTimeSeconds(); + object[] args = + { + _nftContract, + tokenId, + priceInWei, + deadline + }; + var data = await Evm.ContractSend(Web3Accessor.Web3, method, Token.ABI.Marketplace, _marketplaceContract, args); + return data; + } + catch (Web3Exception e) + { + Console.WriteLine(e); + throw; + } + } + + #region Utilities + + /// + /// Prints json properties in the console on new lines. + /// + /// The object to print out + public static void PrintObject(object obj) + { + var properties = obj.GetType().GetProperties(); + foreach (var property in properties) + { + var value = property.GetValue(obj); + Debug.Log($"{property.Name}: {value}"); + } + } + + #endregion + + #endregion + } +} \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity.marketplace/Runtime/Scripts/Marketplace/Marketplace.cs.meta b/Packages/io.chainsafe.web3-unity.marketplace/Runtime/Scripts/Marketplace/Marketplace.cs.meta new file mode 100644 index 000000000..af836158c --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.marketplace/Runtime/Scripts/Marketplace/Marketplace.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 3ab3c8bddd9446f7abfeaf76b325c2d7 +timeCreated: 1715161261 \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity.marketplace/Runtime/io.chainsafe.web3-unity.marketplace.runtime.asmdef b/Packages/io.chainsafe.web3-unity.marketplace/Runtime/io.chainsafe.web3-unity.marketplace.runtime.asmdef new file mode 100644 index 000000000..3334b59fa --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.marketplace/Runtime/io.chainsafe.web3-unity.marketplace.runtime.asmdef @@ -0,0 +1,23 @@ +{ + "name": "io.chainsafe.web3-unity.marketplace.runtime", + "rootNamespace": "ChainSafe.Gaming.Marketplace", + "references": [ + "GUID:5426c6b788696eb4c88f4198b59839eb", + "GUID:1e69005fbbf5a4cd0a6c61596a74886e" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [ + { + "name": "Unity", + "expression": "", + "define": "MARKETPLACE_AVAILABLE" + } + ], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity.marketplace/Runtime/io.chainsafe.web3-unity.marketplace.runtime.asmdef.meta b/Packages/io.chainsafe.web3-unity.marketplace/Runtime/io.chainsafe.web3-unity.marketplace.runtime.asmdef.meta new file mode 100644 index 000000000..86440f7f7 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.marketplace/Runtime/io.chainsafe.web3-unity.marketplace.runtime.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: beb3cfa44e4e012468271dba212943b0 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity.marketplace/package.json b/Packages/io.chainsafe.web3-unity.marketplace/package.json new file mode 100644 index 000000000..32e01f9c0 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.marketplace/package.json @@ -0,0 +1,27 @@ +{ + "name": "io.chainsafe.web3-unity.marketplace", + "version": "1.0.0", + "displayName": "web3.unity SDK Marketplace", + "description": "This package includes the integration of ChainSafe's marketplace service, which you can use with our Gaming SDK.", + "license": "LGPL-3.0-only", + "licensesUrl": "https://github.com/ChainSafe/web3.unity/blob/main/LICENSE", + "documentationUrl": "https://docs.gaming.chainsafe.io/", + "dependencies": { + "com.unity.nuget.newtonsoft-json": "3.0.2", + "io.chainsafe.web3-unity": "2.6.0" + }, + "keywords": [ + "web3", + "ethereum", + "evm", + "blockchain", + "nft", + "marketplace" + ], + "author": { + "name": "ChainSafe Gaming", + "email": "bd@chainsafe.io", + "url": "https://gaming.chainsafe.io/" + }, + "samples": [] +} \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity.marketplace/package.json.meta b/Packages/io.chainsafe.web3-unity.marketplace/package.json.meta new file mode 100644 index 000000000..217ee69ec --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.marketplace/package.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 699ac64965427964d8c84088828c5fc2 +PackageManifestImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampExchangerWebGL.cs b/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampExchangerWebGL.cs index ab6950c67..41087ed9b 100644 --- a/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampExchangerWebGL.cs +++ b/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampExchangerWebGL.cs @@ -49,7 +49,7 @@ public RampExchangerWebGL(IRampExchangerConfig config, ISigner signer) public async Task BuyCrypto(RampBuyWidgetSettings settings) { - var userAddress = settings.OverrideUserAddress ?? await signer.GetAddress(); + var userAddress = settings.OverrideUserAddress ?? signer.PublicAddress; var hostLogoUrl = settings.OverrideHostLogoUrl ?? config.HostLogoUrl; var hostAppName = settings.OverrideHostAppName ?? config.HostAppName; var webhookStatusUrl = config.WebhookStatusUrl ?? settings.OverrideWebhookStatusUrl; @@ -71,7 +71,7 @@ public async Task BuyCrypto(RampBuyWidgetSettings settings) public async Task SellCrypto(RampSellWidgetSettings settings) { - var userAddress = settings.OverrideUserAddress ?? await signer.GetAddress(); + var userAddress = settings.OverrideUserAddress ?? signer.PublicAddress; var hostLogoUrl = settings.OverrideHostLogoUrl ?? config.HostLogoUrl; var hostAppName = settings.OverrideHostAppName ?? config.HostAppName; var offrampWebhookV3Url = config.OfframpWebHookV3Url ?? settings.OverrideOfframpWebHookV3Url; @@ -93,7 +93,7 @@ public async Task SellCrypto(RampSellWidgetSettings settings) public async Task BuyOrSellCrypto(RampBuyOrSellWidgetSettings settings) { - var userAddress = settings.OverrideUserAddress ?? await signer.GetAddress(); + var userAddress = settings.OverrideUserAddress ?? signer.PublicAddress; var hostLogoUrl = settings.OverrideHostLogoUrl ?? config.HostLogoUrl; var hostAppName = settings.OverrideHostAppName ?? config.HostAppName; var webhookStatusUrl = config.WebhookStatusUrl ?? settings.OverrideWebhookStatusUrl; diff --git a/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampExchangeriOS.cs b/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampExchangeriOS.cs index 9dc7f8f32..8e0b619c9 100644 --- a/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampExchangeriOS.cs +++ b/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampExchangeriOS.cs @@ -35,7 +35,7 @@ public RampExchangeriOS(IRampExchangerConfig config, ISigner signer) public async Task BuyCrypto(RampBuyWidgetSettings settings) { - var userAddress = settings.OverrideUserAddress ?? await signer.GetAddress(); + var userAddress = settings.OverrideUserAddress ?? signer.PublicAddress; var hostLogoUrl = settings.OverrideHostLogoUrl ?? config.HostLogoUrl; var hostAppName = settings.OverrideHostAppName ?? config.HostAppName; var webhookStatusUrl = config.WebhookStatusUrl ?? settings.OverrideWebhookStatusUrl; @@ -57,7 +57,7 @@ public async Task BuyCrypto(RampBuyWidgetSettings settings) public async Task SellCrypto(RampSellWidgetSettings settings) { - var userAddress = settings.OverrideUserAddress ?? await signer.GetAddress(); + var userAddress = settings.OverrideUserAddress ?? signer.PublicAddress; var hostLogoUrl = settings.OverrideHostLogoUrl ?? config.HostLogoUrl; var hostAppName = settings.OverrideHostAppName ?? config.HostAppName; var offrampWebhookV3Url = config.OfframpWebHookV3Url ?? settings.OverrideOfframpWebHookV3Url; @@ -78,7 +78,7 @@ public async Task SellCrypto(RampSellWidgetSettings settings) public async Task BuyOrSellCrypto(RampBuyOrSellWidgetSettings settings) { - var userAddress = settings.OverrideUserAddress ?? await signer.GetAddress(); + var userAddress = settings.OverrideUserAddress ?? signer.PublicAddress; var hostLogoUrl = settings.OverrideHostLogoUrl ?? config.HostLogoUrl; var hostAppName = settings.OverrideHostAppName ?? config.HostAppName; var webhookStatusUrl = config.WebhookStatusUrl ?? settings.OverrideWebhookStatusUrl; diff --git a/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampPostProcessorBuild.cs b/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampPostProcessorBuild.cs new file mode 100644 index 000000000..81da47be0 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampPostProcessorBuild.cs @@ -0,0 +1,51 @@ +#if UNITY_EDITOR +using UnityEditor; +using UnityEditor.Build; +using UnityEditor.Build.Reporting; +using UnityEngine; + +namespace ChainSafe.Gaming.Exchangers.Ramp +{ + public class RampProcessBuild : IPreprocessBuildWithReport, IPostprocessBuildWithReport + { + private const string RAMP_AVAILABLE = "RAMP_AVAILABLE"; + + //Use it as the last callback order so everything else gets to do it first. + public int callbackOrder => int.MaxValue; + + private static string _previousSymbols; + + public void OnPostprocessBuild(BuildReport report) + { +#if UNITY_WEBGL || UNITY_IOS + RemoveDefineSymbol(RAMP_AVAILABLE); +#endif + } + + public void OnPreprocessBuild(BuildReport report) + { +#if UNITY_WEBGL || UNITY_IOS + AddDefineSymbol(RAMP_AVAILABLE); +#endif + } + + private static void AddDefineSymbol(string symbol) + { + _previousSymbols = + PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup); + if (!_previousSymbols.Contains(symbol)) + PlayerSettings.SetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup, + _previousSymbols + ";" + symbol); + } + + private static void RemoveDefineSymbol(string symbol) + { + var symbols = + PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup); + if (symbols.Contains(symbol)) + PlayerSettings.SetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup, + _previousSymbols); + } + } +} +#endif \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc721.cs.meta b/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampPostProcessorBuild.cs.meta similarity index 83% rename from Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc721.cs.meta rename to Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampPostProcessorBuild.cs.meta index 0e0cea078..63dc957df 100644 --- a/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc721.cs.meta +++ b/Packages/io.chainsafe.web3-unity.ramp/Runtime/Scripts/RampPostProcessorBuild.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 0cc525932e1f34ad7b1d2140d47856aa +guid: ed6de7d4f0ffcfb4ebbe37dd30d8dcfe MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Packages/io.chainsafe.web3-unity.ramp/Samples~/Web3.Unity Ramp Samples/RampSample.cs b/Packages/io.chainsafe.web3-unity.ramp/Samples~/Web3.Unity Ramp Samples/RampSample.cs index 77dae4f12..5a9125ade 100644 --- a/Packages/io.chainsafe.web3-unity.ramp/Samples~/Web3.Unity Ramp Samples/RampSample.cs +++ b/Packages/io.chainsafe.web3-unity.ramp/Samples~/Web3.Unity Ramp Samples/RampSample.cs @@ -1,9 +1,6 @@ #define RAMP_AVAILABLE -using ChainSafe.Gaming.Evm.JsonRpc; + using ChainSafe.Gaming.UnityPackage; -using ChainSafe.Gaming.Wallets; -using ChainSafe.Gaming.Web3.Build; -using ChainSafe.Gaming.Web3.Unity; using UnityEngine; using UnityEngine.UI; @@ -11,41 +8,22 @@ namespace ChainSafe.Gaming.Exchangers.Ramp.Sample { public class RampSample : MonoBehaviour { - public RampExchangerConfigSO Config; public Button OnRampButton; public Button OffRampButton; public Button OnRampOffRampButton; - private Web3.Web3 web3; - - private async void Awake() + private void Awake() { - // todo figure out how to handle login when other packages' samples were not loaded - web3 = await new Web3Builder(ProjectConfigUtilities.Load()) - .Configure(services => - { - services.UseUnityEnvironment(); - services.UseRpcProvider(); - services.UseWebGLWallet(); // todo use WalletConnect for other platforms (for all platforms probably) - services.UseRampExchanger(Config); - }).LaunchAsync(); - // Subscribe to buttons OnRampButton.onClick.AddListener(OnRampPressed); OffRampButton.onClick.AddListener(OffRampPressed); OnRampOffRampButton.onClick.AddListener(OnRampOffRampPressed); - - // Subscribe to Ramp events - web3.RampExchanger().OnRampPurchaseCreated += data - => Debug.Log($"On-Ramp purchase created {data.CryptoAmount} {data.Asset.Name}"); - web3.RampExchanger().OffRampSaleCreated += data - => Debug.Log($"Off-Ramp sale created {data.Fiat.Amount:C} {data.Fiat.CurrencySymbol}"); } private async void OnRampPressed() { // Show "Buy Crypto" widget - var purchaseData = await web3.RampExchanger().BuyCrypto( + var purchaseData = await Web3Accessor.Web3.RampExchanger().BuyCrypto( new RampBuyWidgetSettings { // For more info on widget settings check https://docs.ramp.network/configuration @@ -59,14 +37,14 @@ private async void OnRampPressed() SwapAmount = 5, SelectedCountryCode = "RS" }); - + Debug.Log($"Purchase request: {purchaseData}"); } private async void OffRampPressed() { // Show "Sell Crypto" widget - var saleData = await web3.RampExchanger().SellCrypto( + var saleData = await Web3Accessor.Web3.RampExchanger().SellCrypto( new RampSellWidgetSettings { // For more info on widget settings check https://docs.ramp.network/configuration @@ -76,16 +54,16 @@ private async void OffRampPressed() FiatValue = 100, UserEmailAddress = "test@test.com", SwapAmount = 5, - SelectedCountryCode = "RS" + SelectedCountryCode = "RS" }); - + Debug.Log($"OffRamp: {saleData}"); } private async void OnRampOffRampPressed() { // Show "Buy or Sell Crypto" widget - var rampTransactionData = await web3.RampExchanger().BuyOrSellCrypto( + var rampTransactionData = await Web3Accessor.Web3.RampExchanger().BuyOrSellCrypto( new RampBuyOrSellWidgetSettings { // For more info on widget settings check https://docs.ramp.network/configuration @@ -98,7 +76,7 @@ private async void OnRampOffRampPressed() SwapAmount = 5, SelectedCountryCode = "RS" }); - + Debug.Log(rampTransactionData.ToString()); } } diff --git a/Packages/io.chainsafe.web3-unity.ramp/Samples~/Web3.Unity Ramp Samples/SampleRampIntegration.unity b/Packages/io.chainsafe.web3-unity.ramp/Samples~/Web3.Unity Ramp Samples/SampleRampIntegration.unity index 144434c18..642875532 100644 --- a/Packages/io.chainsafe.web3-unity.ramp/Samples~/Web3.Unity Ramp Samples/SampleRampIntegration.unity +++ b/Packages/io.chainsafe.web3-unity.ramp/Samples~/Web3.Unity Ramp Samples/SampleRampIntegration.unity @@ -156,11 +156,11 @@ RectTransform: m_Father: {fileID: 1437209537} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 100, y: -32} - m_SizeDelta: {x: 142, y: 139.5} - m_Pivot: {x: 0, y: 1} + m_AnchorMin: {x: 0.5, y: 1} + m_AnchorMax: {x: 0.5, y: 1} + m_AnchoredPosition: {x: 0, y: -50} + m_SizeDelta: {x: 100, y: 100} + m_Pivot: {x: 0.5, y: 1} --- !u!114 &349367927 MonoBehaviour: m_ObjectHideFlags: 0 @@ -540,10 +540,10 @@ RectTransform: m_Father: {fileID: 1437209537} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: -20} - m_SizeDelta: {x: -140, y: -460} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 1, y: 0.5} + m_AnchoredPosition: {x: 0, y: -60.49} + m_SizeDelta: {x: -140, y: 260} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &1322442768 MonoBehaviour: @@ -911,10 +911,10 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 48 + m_fontSize: 21.85 m_fontSizeBase: 48 m_fontWeight: 400 - m_enableAutoSizing: 0 + m_enableAutoSizing: 1 m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 @@ -1005,7 +1005,6 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: ea0121760e62b10498829475cd3a2c64, type: 3} m_Name: m_EditorClassIdentifier: - Config: {fileID: 11400000, guid: d1f58846e4fc71d4e90f287a86f328f9, type: 2} OnRampButton: {fileID: 466463145} OffRampButton: {fileID: 1136607895} OnRampOffRampButton: {fileID: 1929062630} diff --git a/Packages/io.chainsafe.web3-unity.ramp/package.json b/Packages/io.chainsafe.web3-unity.ramp/package.json index 794695f94..1ce2aff8c 100644 --- a/Packages/io.chainsafe.web3-unity.ramp/package.json +++ b/Packages/io.chainsafe.web3-unity.ramp/package.json @@ -1,6 +1,6 @@ { "name": "io.chainsafe.web3-unity.ramp", - "version": "1.0.0", + "version": "2.6.0", "displayName": "web3.unity SDK Ramp", "description": "This package includes the integration of Ramp's ramp service, which you can use with our Gaming SDK.", "license": "LGPL-3.0-only", @@ -8,7 +8,7 @@ "documentationUrl": "https://docs.gaming.chainsafe.io/", "dependencies": { "com.unity.nuget.newtonsoft-json": "3.0.2", - "io.chainsafe.web3-unity": "2.5.0" + "io.chainsafe.web3-unity": "2.6.0" }, "keywords": [ "web3", diff --git a/Packages/io.chainsafe.web3-unity.web3auth/Editor/Web3AuthSDK/Editor/CreateDeepLink.cs b/Packages/io.chainsafe.web3-unity.web3auth/Editor/Web3AuthSDK/Editor/CreateDeepLink.cs index 17ffa91f3..3246060b4 100644 --- a/Packages/io.chainsafe.web3-unity.web3auth/Editor/Web3AuthSDK/Editor/CreateDeepLink.cs +++ b/Packages/io.chainsafe.web3-unity.web3auth/Editor/Web3AuthSDK/Editor/CreateDeepLink.cs @@ -9,7 +9,7 @@ public class CreateDeepLink : EditorWindow TextField uri; - [MenuItem("Window/ChainSafe SDK/Web3Auth/Generate Deep Link")] + [MenuItem("ChainSafe SDK/Web3Auth/Generate Deep Link")] public static void ShowExample() { CreateDeepLink wnd = GetWindow(); diff --git a/Packages/io.chainsafe.web3-unity.web3auth/Runtime/Plugins/Web3AuthSDK/Debug/Web3AuthDebug.cs b/Packages/io.chainsafe.web3-unity.web3auth/Runtime/Plugins/Web3AuthSDK/Debug/Web3AuthDebug.cs index c6ce4a646..e7e899761 100644 --- a/Packages/io.chainsafe.web3-unity.web3auth/Runtime/Plugins/Web3AuthSDK/Debug/Web3AuthDebug.cs +++ b/Packages/io.chainsafe.web3-unity.web3auth/Runtime/Plugins/Web3AuthSDK/Debug/Web3AuthDebug.cs @@ -15,7 +15,7 @@ public class Web3AuthDebug : EditorWindow [SerializeField] public int index; - [MenuItem("Window/Web3Auth/Deep Linking Debug")] + [MenuItem("ChainSafe SDK/Web3Auth/Deep Linking Debug")] public static void ShowExample() { Web3AuthDebug wnd = GetWindow(); diff --git a/Packages/io.chainsafe.web3-unity.web3auth/Runtime/Web3AuthWallet.cs b/Packages/io.chainsafe.web3-unity.web3auth/Runtime/Web3AuthWallet.cs index 9464df72b..37683cd3b 100644 --- a/Packages/io.chainsafe.web3-unity.web3auth/Runtime/Web3AuthWallet.cs +++ b/Packages/io.chainsafe.web3-unity.web3auth/Runtime/Web3AuthWallet.cs @@ -5,10 +5,10 @@ using ChainSafe.Gaming.InProcessSigner; using ChainSafe.Gaming.InProcessTransactionExecutor; using ChainSafe.Gaming.InProcessTransactionExecutor.Unity; -using ChainSafe.Gaming.Web3; using ChainSafe.Gaming.Web3.Analytics; using ChainSafe.Gaming.Web3.Core; using ChainSafe.Gaming.Web3.Core.Evm; +using ChainSafe.Gaming.Web3.Environment; using Nethereum.Signer; using UnityEngine; using TWeb3Auth = Web3Auth; @@ -26,6 +26,7 @@ public class Web3AuthWallet : ISigner, ITransactionExecutor, ILifecycleParticipa private TWeb3Auth coreInstance; private InProcessSigner signer; private InProcessTransactionExecutor transactionExecutor; + private IMainThreadRunner mainThreadRunner; private readonly IAnalyticsClient analyticsClient; /// @@ -34,13 +35,19 @@ public class Web3AuthWallet : ISigner, ITransactionExecutor, ILifecycleParticipa /// The configuration for the Web3Auth wallet. /// The configuration for the target blockchain. /// The RPC provider for blockchain interaction. - public Web3AuthWallet(Web3AuthWalletConfig config, IRpcProvider rpcProvider, IAnalyticsClient analyticsClient) + public Web3AuthWallet(Web3AuthWalletConfig config, IRpcProvider rpcProvider, IMainThreadRunner mainThreadRunner, IAnalyticsClient analyticsClient) { this.config = config; this.rpcProvider = rpcProvider; + this.mainThreadRunner = mainThreadRunner; this.analyticsClient = analyticsClient; } + /// + /// Gets the blockchain address associated with this wallet. + /// + public string PublicAddress => signer.PublicAddress; + /// /// Asynchronously prepares the Web3Auth wallet for operation, triggered when initializing the module in the dependency injection work flow. /// @@ -50,10 +57,7 @@ public async ValueTask WillStartAsync() analyticsClient.CaptureEvent(new AnalyticsEvent() { - ChainId = analyticsClient.ChainConfig.ChainId, - Network = analyticsClient.ChainConfig.Network, EventName = $"Web3Auth Initialized", - ProjectId = analyticsClient.ProjectConfig.ProjectId, PackageName = "io.chainsafe.web3-unity.web3auth", }); coreInstance = CreateCoreInstance(); @@ -68,7 +72,7 @@ public async ValueTask WillStartAsync() var signerConfig = new InProcessSignerConfig { PrivateKey = privateKey }; signer = new InProcessSigner(signerConfig); - transactionExecutor = new InProcessTransactionExecutor(signer, analyticsClient.ChainConfig, rpcProvider, new RpcClientWrapper(analyticsClient.ChainConfig)); + transactionExecutor = new InProcessTransactionExecutor(signer, analyticsClient.ChainConfig, rpcProvider, mainThreadRunner, new RpcClientWrapper(analyticsClient.ChainConfig)); void Web3Auth_OnLogin(Web3AuthResponse response) { @@ -98,12 +102,6 @@ void Web3Auth_OnLogout() } } - /// - /// Gets the blockchain address associated with this wallet. - /// - /// A that represents the asynchronous operation and returns the blockchain address as a string. - public Task GetAddress() => signer.GetAddress(); - /// /// Signs a message using the private key associated with this wallet. /// diff --git a/Packages/io.chainsafe.web3-unity.web3auth/Samples~/Web3.Unity Web3Auth/Scenes/SampleLogin - Web3Auth.meta b/Packages/io.chainsafe.web3-unity.web3auth/Samples~/Web3.Unity Web3Auth/Scenes/SampleLogin - Web3Auth.meta new file mode 100644 index 000000000..b4eae20d6 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity.web3auth/Samples~/Web3.Unity Web3Auth/Scenes/SampleLogin - Web3Auth.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4a0d35cae9132bd48886c358c7a15c98 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity.web3auth/Samples~/Web3.Unity Web3Auth/Scenes/SampleLogin - Web3Auth.unity b/Packages/io.chainsafe.web3-unity.web3auth/Samples~/Web3.Unity Web3Auth/Scenes/SampleLogin - Web3Auth.unity index 8df790664..2871fe896 100644 --- a/Packages/io.chainsafe.web3-unity.web3auth/Samples~/Web3.Unity Web3Auth/Scenes/SampleLogin - Web3Auth.unity +++ b/Packages/io.chainsafe.web3-unity.web3auth/Samples~/Web3.Unity Web3Auth/Scenes/SampleLogin - Web3Auth.unity @@ -104,7 +104,7 @@ NavMeshSettings: serializedVersion: 2 m_ObjectHideFlags: 0 m_BuildSettings: - serializedVersion: 2 + serializedVersion: 3 agentTypeID: 0 agentRadius: 0.5 agentHeight: 2 @@ -117,7 +117,7 @@ NavMeshSettings: cellSize: 0.16666667 manualTileSize: 0 tileSize: 256 - accuratePlacement: 0 + buildHeightMesh: 0 maxJobWorkers: 0 preserveTilesOutsideBounds: 0 debug: @@ -155,7 +155,6 @@ RectTransform: m_Children: - {fileID: 1079369615} m_Father: {fileID: 118889340} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} @@ -233,7 +232,6 @@ RectTransform: - {fileID: 57877276} - {fileID: 1214381517} m_Father: {fileID: 221640018348301908} - m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} @@ -344,7 +342,6 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 1897816690} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 1, y: 1} @@ -425,7 +422,6 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 337558420} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} @@ -558,7 +554,6 @@ RectTransform: - {fileID: 279657856} - {fileID: 1897816690} m_Father: {fileID: 1799608973} - m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} @@ -618,9 +613,17 @@ Camera: m_projectionMatrixMode: 1 m_GateFitMode: 2 m_FOVAxisMode: 0 + m_Iso: 200 + m_ShutterSpeed: 0.005 + m_Aperture: 16 + m_FocusDistance: 10 + m_FocalLength: 50 + m_BladeCount: 5 + m_Curvature: {x: 2, y: 11} + m_BarrelClipping: 0.25 + m_Anamorphism: 0 m_SensorSize: {x: 36, y: 24} m_LensShift: {x: 0, y: 0} - m_FocalLength: 50 m_NormalizedViewPortRect: serializedVersion: 2 x: 0 @@ -654,13 +657,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 359109759} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: -10} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &771332079 GameObject: @@ -694,7 +697,6 @@ RectTransform: m_Children: - {fileID: 221640018553606200} m_Father: {fileID: 1799608973} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 0.725} @@ -814,7 +816,6 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 1520162125} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} @@ -881,13 +882,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1025578980} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1079369614 GameObject: @@ -920,7 +921,6 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 57877276} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} @@ -996,7 +996,6 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 118889340} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} @@ -1133,7 +1132,6 @@ RectTransform: m_Children: - {fileID: 1640414611} m_Father: {fileID: 1520162125} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 0} @@ -1265,7 +1263,6 @@ RectTransform: - {fileID: 804898219} - {fileID: 1387636276} m_Father: {fileID: 1897816690} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} @@ -1303,7 +1300,6 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 1387636276} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} @@ -1378,13 +1374,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1679801098} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &1679801100 MonoBehaviour: @@ -1518,7 +1514,9 @@ Canvas: m_OverrideSorting: 0 m_OverridePixelPerfect: 0 m_SortingBucketNormalizedSize: 0 + m_VertexColorAlwaysGammaSpace: 0 m_AdditionalShaderChannelsFlag: 25 + m_UpdateRectTransformForStandalone: 0 m_SortingLayerID: 0 m_SortingOrder: 0 m_TargetDisplay: 0 @@ -1538,7 +1536,6 @@ RectTransform: - {fileID: 771332080} - {fileID: 337558420} m_Father: {fileID: 0} - m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} @@ -1578,7 +1575,6 @@ RectTransform: - {fileID: 249944481} - {fileID: 1520162125} m_Father: {fileID: 337558420} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} @@ -1654,7 +1650,6 @@ RectTransform: - {fileID: 2063401255} - {fileID: 2017486156} m_Father: {fileID: 1799608973} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0.725} m_AnchorMax: {x: 1, y: 1} @@ -1692,7 +1687,6 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 1941751038} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.25, y: 0} m_AnchorMax: {x: 1, y: 1} @@ -1827,7 +1821,6 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 1941751038} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0.25, y: 1} @@ -1897,6 +1890,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 221640018348301908} m_Modifications: - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} @@ -1996,12 +1990,19 @@ PrefabInstance: value: 17.9 objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 8775736491206355084, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + insertIndex: -1 + addedObject: {fileID: 221640017808192961} m_SourcePrefab: {fileID: 100100000, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} --- !u!1001 &221640018061849258 PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 221640018348301908} m_Modifications: - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} @@ -2101,6 +2102,12 @@ PrefabInstance: value: 17.9 objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 8775736491206355084, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + insertIndex: -1 + addedObject: {fileID: 221640018061849263} m_SourcePrefab: {fileID: 100100000, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} --- !u!114 &221640018061849263 MonoBehaviour: @@ -2143,7 +2150,6 @@ RectTransform: - {fileID: 118889340} - {fileID: 221640018720180776} m_Father: {fileID: 221640018553606200} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} @@ -2222,7 +2228,6 @@ RectTransform: m_Children: - {fileID: 221640018348301908} m_Father: {fileID: 771332080} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} @@ -2279,7 +2284,6 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 221640018348301908} - m_RootOrder: 7 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} @@ -2406,6 +2410,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 221640018348301908} m_Modifications: - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} @@ -2505,6 +2510,12 @@ PrefabInstance: value: 17.9 objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 8775736491206355084, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + insertIndex: -1 + addedObject: {fileID: 221640018859585639} m_SourcePrefab: {fileID: 100100000, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} --- !u!114 &221640018859585639 MonoBehaviour: @@ -2531,6 +2542,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 221640018348301908} m_Modifications: - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} @@ -2658,6 +2670,12 @@ PrefabInstance: value: 17.9 objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 8775736491206355084, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + insertIndex: -1 + addedObject: {fileID: 221640019303666004} m_SourcePrefab: {fileID: 100100000, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} --- !u!114 &221640019303666004 MonoBehaviour: @@ -2684,6 +2702,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 221640018348301908} m_Modifications: - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} @@ -2783,6 +2802,12 @@ PrefabInstance: value: 17.9 objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 8775736491206355084, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + insertIndex: -1 + addedObject: {fileID: 221640019533962428} m_SourcePrefab: {fileID: 100100000, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} --- !u!114 &221640019533962428 MonoBehaviour: @@ -2809,6 +2834,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 221640018348301908} m_Modifications: - target: {fileID: 4764608378852082086, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} @@ -2908,6 +2934,12 @@ PrefabInstance: value: 17.9 objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 8775736491206355084, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} + insertIndex: -1 + addedObject: {fileID: 221640019796147401} m_SourcePrefab: {fileID: 100100000, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} --- !u!114 &221640019796147401 MonoBehaviour: @@ -3055,3 +3087,11 @@ GameObject: m_CorrespondingSourceObject: {fileID: 8775736491206355084, guid: 50ad8ea555027414b8ddfc03fc7d41ab, type: 3} m_PrefabInstance: {fileID: 221640018061849258} m_PrefabAsset: {fileID: 0} +--- !u!1660057539 &9223372036854775807 +SceneRoots: + m_ObjectHideFlags: 0 + m_Roots: + - {fileID: 359109762} + - {fileID: 1025578983} + - {fileID: 1679801099} + - {fileID: 1799608973} diff --git a/Packages/io.chainsafe.web3-unity.web3auth/Samples~/Web3.Unity Web3Auth/Scripts/Web3AuthLoginProvider.cs b/Packages/io.chainsafe.web3-unity.web3auth/Samples~/Web3.Unity Web3Auth/Scripts/Web3AuthLoginProvider.cs index 065be2035..01cddf3ec 100644 --- a/Packages/io.chainsafe.web3-unity.web3auth/Samples~/Web3.Unity Web3Auth/Scripts/Web3AuthLoginProvider.cs +++ b/Packages/io.chainsafe.web3-unity.web3auth/Samples~/Web3.Unity Web3Auth/Scripts/Web3AuthLoginProvider.cs @@ -1,11 +1,7 @@ using System; -using System.Collections; using System.Collections.Generic; -using System.Threading.Tasks; -using ChainSafe.Gaming.Exchangers.Ramp; using ChainSafe.Gaming.UnityPackage; using ChainSafe.Gaming.UnityPackage.Common; -using ChainSafe.Gaming.Web3; using ChainSafe.Gaming.Web3.Analytics; using ChainSafe.Gaming.Web3.Build; using ChainSafe.GamingSdk.Web3Auth; @@ -95,11 +91,7 @@ private void LogAnalytics(Provider provider) IAnalyticsClient client = (IAnalyticsClient)Web3Accessor.Web3.ServiceProvider.GetService(typeof(IAnalyticsClient)); client.CaptureEvent(new AnalyticsEvent() { - ChainId = Web3Accessor.Web3.ChainConfig.ChainId, - Network = Web3Accessor.Web3.ChainConfig.Network, - ProjectId = Web3Accessor.Web3.ProjectConfig.ProjectId, EventName = $"Login provider {provider}", - Version = client.AnalyticsVersion, PackageName = "io.chainsafe.web3-unity.web3auth", }); } diff --git a/Packages/io.chainsafe.web3-unity.web3auth/package.json b/Packages/io.chainsafe.web3-unity.web3auth/package.json index 17079a779..0eea08e77 100644 --- a/Packages/io.chainsafe.web3-unity.web3auth/package.json +++ b/Packages/io.chainsafe.web3-unity.web3auth/package.json @@ -1,6 +1,6 @@ { "name": "io.chainsafe.web3-unity.web3auth", - "version": "2.5.5", + "version": "2.6.0", "displayName": "web3.unity SDK Web3Auth", "description": "web3.unity is an open-source gaming SDK written in C# and developed by ChainSafe Gaming. It connects games built in the Unity game engine to the blockchain. The library currently supports games built for web browsers (WebGL), iOS/Android mobile, and desktop. web3.unity is compatible with most EVM-based chains such as Ethereum, Polygon, Moonbeam, Cronos, Nervos, and Binance Smart Chain, letting developers easily choose and switch between them to create the best in-game experience.", "license": "LGPL-3.0-only", @@ -8,7 +8,7 @@ "documentationUrl": "https://docs.gaming.chainsafe.io/", "dependencies": { "com.unity.nuget.newtonsoft-json": "3.0.2", - "io.chainsafe.web3-unity": "2.5.5" + "io.chainsafe.web3-unity": "2.6.0" }, "keywords": [ "web3", diff --git a/Packages/io.chainsafe.web3-unity/Editor/ABIConverter.cs b/Packages/io.chainsafe.web3-unity/Editor/ABIConverter.cs index 65419cc73..4ac499058 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/ABIConverter.cs +++ b/Packages/io.chainsafe.web3-unity/Editor/ABIConverter.cs @@ -11,7 +11,7 @@ public class ABIWindow : EditorWindow Vector2 TextArea; // Where is the window menu located - [MenuItem("Window/ChainSafe SDK/ABI Converter")] + [MenuItem("ChainSafe SDK/ABI Converter")] // Show our window public static void ShowWindow() diff --git a/Packages/io.chainsafe.web3-unity/Editor/MarketplaceDefineLeftoverCheck.cs b/Packages/io.chainsafe.web3-unity/Editor/MarketplaceDefineLeftoverCheck.cs new file mode 100644 index 000000000..64df33351 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity/Editor/MarketplaceDefineLeftoverCheck.cs @@ -0,0 +1,83 @@ +#if MARKETPLACE_AVAILABLE +using System.Collections.Generic; +using System.IO; +using System.Linq; +using UnityEditor; +using UnityEditor.PackageManager; +using UnityEditor.PackageManager.Requests; +using UnityEngine; + +[InitializeOnLoad] +public static class MarketplaceDefineLeftoverCheck +{ + // To store package list request + private static ListRequest listRequest; + + // The package name you want to check + private static string packageName = "io.chainsafe.web3-unity.marketplace"; + + static MarketplaceDefineLeftoverCheck() + { + Events.registeredPackages += OnPackagesChanged; + } + + private static void OnPackagesChanged(PackageRegistrationEventArgs obj) + { + if (obj.removed.Any(x => x.name == packageName)) + { + RemoveCrcRspDefine(); + } + } + + + private static void CheckForPackage() + { + listRequest = Client.List(false); // Start the package list request + while (listRequest.IsCompleted == false) ; + Debug.Log("OK I AM HERE"); + var packageFound = false; + foreach (var package in listRequest.Result) + { + Debug.Log(package.name); + if (package.name == packageName) + { + packageFound = true; + break; + } + } + + if(!packageFound) + RemoveCrcRspDefine(); + } + + private static void RemoveCrcRspDefine() + { + Debug.Log("HHHH"); + var cscRspPath = Path.Combine(Application.dataPath, "csc.rsp"); + if (!File.Exists(cscRspPath)) + return; + // Read all lines from the file + var lines = File.ReadAllLines(cscRspPath); + + if(lines.Length == 1 && lines[0].Contains("-define:MARKETPLACE_AVAILABLE")) + { + AssetDatabase.DeleteAsset("Assets/csc.rsp"); + return; + } + + + // Initialize a list to hold modified lines + var modifiedLines = new List(); + + // Check each line and replace the text + foreach (var line in lines) + { + var modifiedLine = line.Replace("-define:MARKETPLACE_AVAILABLE", ""); + modifiedLines.Add(modifiedLine); + } + + // Write the modified lines back to the file + File.WriteAllLines(cscRspPath, modifiedLines.ToArray()); + } +} +#endif diff --git a/Packages/io.chainsafe.web3-unity/Editor/MarketplaceDefineLeftoverCheck.cs.meta b/Packages/io.chainsafe.web3-unity/Editor/MarketplaceDefineLeftoverCheck.cs.meta new file mode 100644 index 000000000..4e42b8f2d --- /dev/null +++ b/Packages/io.chainsafe.web3-unity/Editor/MarketplaceDefineLeftoverCheck.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 082d4d909f45f0944b8fe02c6f06764c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/ReportBug.cs b/Packages/io.chainsafe.web3-unity/Editor/ReportBug.cs index 9704d951f..443d7a049 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/ReportBug.cs +++ b/Packages/io.chainsafe.web3-unity/Editor/ReportBug.cs @@ -17,7 +17,7 @@ public class ReportBug : EditorWindow Texture2D logo = null; // Initializes window - [MenuItem("Window/ChainSafe SDK/Report Bug")] + [MenuItem("ChainSafe SDK/Report Bug")] public static void ShowWindow() { // show existing window instance. If one doesn't exist, make one. diff --git a/Packages/io.chainsafe.web3-unity/Editor/ServerSettings.cs b/Packages/io.chainsafe.web3-unity/Editor/ServerSettings.cs index 63a628bb7..44b610b2b 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/ServerSettings.cs +++ b/Packages/io.chainsafe.web3-unity/Editor/ServerSettings.cs @@ -1,21 +1,20 @@ -using UnityEditor; -using UnityEngine; using System; using System.Collections.Generic; -using System.Threading.Tasks; -using UnityEngine.Networking; -using Newtonsoft.Json; using System.IO; using System.Linq; using System.Text; +using System.Threading.Tasks; using ChainSafe.Gaming.UnityPackage; -using Microsoft.IdentityModel.Tokens; +using Newtonsoft.Json; +using UnityEditor; using UnityEditor.Experimental.GraphView; +using UnityEngine; using UnityEngine.Events; +using UnityEngine.Networking; using ChainInfo = ChainSafe.Gaming.UnityPackage.Model; /// -/// Allows the developer to alter chain configuration via GUI +/// Allows the developer to alter chain configuration via GUI /// public class ChainSafeServerSettings : EditorWindow { @@ -37,8 +36,9 @@ public class ChainSafeServerSettings : EditorWindow private string symbol; private string rpc; private string newRpc; + public string previousProjectId; - Texture2D logo = null; + private Texture2D logo; // Search window private StringListSearchProvider searchProvider; @@ -48,15 +48,23 @@ public class ChainSafeServerSettings : EditorWindow private List chainList; private int selectedChainIndex; private int selectedRpcIndex; + private FetchingStatus fetchingStatus = FetchingStatus.NotFetching; + + private enum FetchingStatus + { + NotFetching, + Fetching, + Fetched + } #endregion #region Methods /// - /// Checks if data is already entered, sets default values if not + /// Checks if data is already entered, sets default values if not /// - void Awake() + private void Awake() { // Get saved settings or revert to default var projectConfig = ProjectConfigUtilities.Load(); @@ -70,11 +78,10 @@ void Awake() onDropDownChange = new UnityEvent(); onDropDownChange.AddListener(UpdateServerMenuInfo); // Fetch supported chains - FetchSupportedChains(); } /// - /// Updates the values in the server settings area when an item is selected + /// Updates the values in the server settings area when an item is selected /// public void UpdateServerMenuInfo() { @@ -101,24 +108,26 @@ public void UpdateServerMenuInfo() } /// - /// Fetches the supported EVM chains list from Chainlist's github json + /// Fetches the supported EVM chains list from Chainlist's github json /// private async void FetchSupportedChains() { - using UnityWebRequest webRequest = UnityWebRequest.Get("https://chainid.network/chains.json"); + using var webRequest = UnityWebRequest.Get("https://chainid.network/chains.json"); await EditorUtilities.SendAndWait(webRequest); if (webRequest.result != UnityWebRequest.Result.Success) { Debug.LogError("Error Getting Supported Chains: " + webRequest.error); return; } + var json = webRequest.downloadHandler.text; chainList = JsonConvert.DeserializeObject>(json); chainList = chainList.OrderBy(x => x.name).ToList(); + fetchingStatus = FetchingStatus.Fetched; } // Initializes window - [MenuItem("Window/ChainSafe SDK/Server Settings")] + [MenuItem("ChainSafe SDK/Server Settings", false, 1)] public static void ShowWindow() { // Show existing window instance. If one doesn't exist, make one. @@ -126,18 +135,17 @@ public static void ShowWindow() } /// - /// Called when menu is opened, loads Chainsafe Logo + /// Called when menu is opened, loads Chainsafe Logo /// private void OnEnable() { if (!logo) - { - logo = AssetDatabase.LoadAssetAtPath("Packages/io.chainsafe.web3-unity/Editor/Textures/ChainSafeLogo.png"); - } + logo = AssetDatabase.LoadAssetAtPath( + "Packages/io.chainsafe.web3-unity/Editor/Textures/ChainSafeLogo.png"); } /// - /// Displayed content + /// Displayed content /// private void OnGUI() { @@ -145,16 +153,28 @@ private void OnGUI() EditorGUILayout.BeginVertical("box"); GUILayout.Label(logo, GUILayout.MaxWidth(250f), GUILayout.MaxHeight(250f)); EditorGUILayout.EndVertical(); + EditorGUI.BeginChangeCheck(); // Text GUILayout.Label("Welcome To The ChainSafe SDK!", EditorStyles.boldLabel); - GUILayout.Label("Here you can enter all the information needed to get your game started on the blockchain!", EditorStyles.label); + GUILayout.Label("Here you can enter all the information needed to get your game started on the blockchain!", + EditorStyles.label); // Inputs projectID = EditorGUILayout.TextField("Project ID", projectID); // Search menu // Null check to stop the recursive loop before the web request has completed - if (chainList == null) return; + if (chainList == null) + { + if (fetchingStatus == FetchingStatus.NotFetching || fetchingStatus == FetchingStatus.Fetched) + { + fetchingStatus = FetchingStatus.Fetching; + FetchSupportedChains(); + } + + return; + } + // Set string array from chainList to pass into the menu - string[] chainOptions = chainList.Select(x => x.name).ToArray(); + var chainOptions = chainList.Select(x => x.name).ToArray(); // Display the dynamically updating Popup EditorGUILayout.BeginHorizontal(); EditorGUILayout.PrefixLabel("Select Chain"); @@ -163,8 +183,10 @@ private void OnGUI() { searchProvider = CreateInstance(); searchProvider.Initialize(chainOptions, x => { chain = x; }); - SearchWindow.Open(new SearchWindowContext(GUIUtility.GUIToScreenPoint(Event.current.mousePosition)), searchProvider); + SearchWindow.Open(new SearchWindowContext(GUIUtility.GUIToScreenPoint(Event.current.mousePosition)), + searchProvider); } + EditorGUILayout.EndHorizontal(); network = EditorGUILayout.TextField("Network: ", network); chainID = EditorGUILayout.TextField("Chain ID: ", chainID); @@ -172,8 +194,9 @@ private void OnGUI() EditorGUILayout.BeginHorizontal(); EditorGUILayout.PrefixLabel("Select RPC"); // Remove "https://" so the user doesn't have to click through 2 levels for the rpc options - string[] rpcOptions = chainList[selectedChainIndex].rpc.Where(rpc => rpc.StartsWith("https")).Select(rpc => rpc.Substring(8)).ToArray(); - string selectedRpc = rpcOptions[selectedRpcIndex]; + var rpcOptions = chainList[selectedChainIndex].rpc.Where(rpc => rpc.StartsWith("https")) + .Select(rpc => rpc.Substring(8)).ToArray(); + var selectedRpc = rpcOptions[selectedRpcIndex]; // Show the rpc drop down menu if (GUILayout.Button(selectedRpc, EditorStyles.popup)) { @@ -184,8 +207,10 @@ private void OnGUI() // Add "https://" back rpc = "https://" + x; }); - SearchWindow.Open(new SearchWindowContext(GUIUtility.GUIToScreenPoint(Event.current.mousePosition)), searchProvider); + SearchWindow.Open(new SearchWindowContext(GUIUtility.GUIToScreenPoint(Event.current.mousePosition)), + searchProvider); } + EditorGUILayout.EndHorizontal(); // Allows for a custom rpc rpc = EditorGUILayout.TextField("RPC: ", rpc); @@ -193,19 +218,12 @@ private void OnGUI() // Buttons // Register - if (GUILayout.Button("Need To Register?")) - { - Application.OpenURL("https://dashboard.gaming.chainsafe.io/"); - } + if (GUILayout.Button("Need To Register?")) Application.OpenURL("https://dashboard.gaming.chainsafe.io/"); // Docs - if (GUILayout.Button("Check Out Our Docs!")) - { - Application.OpenURL("https://docs.gaming.chainsafe.io/"); - } + if (GUILayout.Button("Check Out Our Docs!")) Application.OpenURL("https://docs.gaming.chainsafe.io/"); // Save button - if (GUILayout.Button("Save Settings")) + if (EditorGUI.EndChangeCheck()) { - Debug.Log("Saving Settings!"); var projectConfig = ProjectConfigUtilities.CreateOrLoad(); projectConfig.ProjectId = projectID; projectConfig.ChainId = chainID; @@ -214,16 +232,22 @@ private void OnGUI() projectConfig.Symbol = symbol; projectConfig.Rpc = rpc; ProjectConfigUtilities.Save(projectConfig); - ValidateProjectID(projectID); + if(projectID != previousProjectId) + ValidateProjectID(projectID); + previousProjectId = projectConfig.ProjectId; } - GUILayout.Label("Reminder: Your ProjectID Must Be Valid To Save & Build With Our SDK. You Can Register For One On Our Website At Dashboard.Gaming.Chainsafe.io", EditorStyles.label); + + GUILayout.Label( + "Reminder: Your ProjectID Must Be Valid To Save & Build With Our SDK. You Can Register For One On Our Website At Dashboard.Gaming.Chainsafe.io", + EditorStyles.label); } /// - /// Validates the project ID via ChainSafe's backend & writes values to the network js file, static so it can be called externally + /// Validates the project ID via ChainSafe's backend & writes values to the network js file, static so it can be called + /// externally /// /// - static async void ValidateProjectID(string projectID) + private static async void ValidateProjectID(string projectID) { try { @@ -242,14 +266,14 @@ static async void ValidateProjectID(string projectID) } /// - /// Validates the project ID via ChainSafe's backend + /// Validates the project ID via ChainSafe's backend /// private static async Task ValidateProjectIDAsync(string projectID) { var form = new WWWForm(); form.AddField("projectId", projectID); Debug.Log("Checking Project ID!"); - using UnityWebRequest www = UnityWebRequest.Post("https://api.gaming.chainsafe.io/project/checkId", form); + using var www = UnityWebRequest.Post("https://api.gaming.chainsafe.io/project/checkId", form); await EditorUtilities.SendAndWait(www); const string dbgProjectIDMessage = "Project ID is not valid! Please go to https://dashboard.daming.chainsafe.io to get a new Project ID"; @@ -274,7 +298,7 @@ private static async Task ValidateProjectIDAsync(string projectID) } /// - /// Writes values to the network js file + /// Writes values to the network js file /// public static void WriteNetworkFile() { @@ -283,8 +307,8 @@ public static void WriteNetworkFile() var projectConfig = ProjectConfigUtilities.CreateOrLoad(); // declares paths to write our javascript files to - string path1 = "Assets/WebGLTemplates/Web3GL-2020x/network.js"; - string path2 = "Assets/WebGLTemplates/Web3GL-MetaMask/network.js"; + var path1 = "Assets/WebGLTemplates/Web3GL-2020x/network.js"; + var path2 = "Assets/WebGLTemplates/Web3GL-MetaMask/network.js"; if (AssetDatabase.IsValidFolder(Path.GetDirectoryName(path1))) { @@ -303,7 +327,8 @@ public static void WriteNetworkFile() } else { - Debug.LogWarning($"{Path.GetDirectoryName(path1)} is missing, network.js file will not be updated for this template"); + Debug.LogWarning( + $"{Path.GetDirectoryName(path1)} is missing, network.js file will not be updated for this template"); } if (AssetDatabase.IsValidFolder(Path.GetDirectoryName(path2))) @@ -316,7 +341,8 @@ public static void WriteNetworkFile() } else { - Debug.LogWarning($"{Path.GetDirectoryName(path2)} is missing, network.js file will not be updated for this template"); + Debug.LogWarning( + $"{Path.GetDirectoryName(path2)} is missing, network.js file will not be updated for this template"); } AssetDatabase.Refresh(); @@ -326,9 +352,8 @@ public static void WriteNetworkFile() private class ValidateProjectIDResponse { - [JsonProperty("response")] - public bool Response { get; set; } + [JsonProperty("response")] public bool Response { get; set; } } #endregion -} +} \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLResourceEmbedding.cs b/Packages/io.chainsafe.web3-unity/Editor/WebGLResourceEmbedding.cs new file mode 100644 index 000000000..667b58955 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity/Editor/WebGLResourceEmbedding.cs @@ -0,0 +1,15 @@ +#if UNITY_WEBGL +using UnityEditor; +using UnityEditor.Build; +using UnityEditor.Build.Reporting; + +public class WebGLResourceEmbedding : IPreprocessBuildWithReport +{ + + public int callbackOrder => 1; + public void OnPreprocessBuild(BuildReport report) + { + PlayerSettings.SetPropertyBool("useEmbeddedResources", true, BuildTargetGroup.WebGL); + } +} +#endif \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLResourceEmbedding.cs.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLResourceEmbedding.cs.meta new file mode 100644 index 000000000..98ba59388 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity/Editor/WebGLResourceEmbedding.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d390021521442774fb72d426648d230e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplateSync.cs b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplateSync.cs index 232e46253..e7612d839 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplateSync.cs +++ b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplateSync.cs @@ -50,7 +50,8 @@ private static bool DirectoryInSync(DirectoryInfo reference, DirectoryInfo check return true; } - internal static void Syncronize() + [MenuItem("ChainSafe SDK/Sync WebGL Templates")] + public static void Syncronize() { AssetDatabase.DisallowAutoRefresh(); diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask.meta new file mode 100644 index 000000000..5e28b3b1e --- /dev/null +++ b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b98e49a660b4f314387d7cc2aebcf23a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData.meta similarity index 77% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData.meta rename to Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData.meta index cb06c2273..f75cdc1c8 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData.meta +++ b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 03ae2ba2e368a214bb4f5ee4ae032ba1 +guid: 58b23f202b1d2af4eacd0e98c15d74c6 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/favicon.ico b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/favicon.ico new file mode 100644 index 000000000..07db39385 Binary files /dev/null and b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/favicon.ico differ diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/favicon.ico.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/favicon.ico.meta similarity index 74% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/favicon.ico.meta rename to Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/favicon.ico.meta index c234dbe07..60b65e97a 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/favicon.ico.meta +++ b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/favicon.ico.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 385301c25513b104eb56716fee71716d +guid: 3ced9fc94cfaa3247af792f73f143fde DefaultImporter: externalObjects: {} userData: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/fullscreen-button.png b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/fullscreen-button.png similarity index 100% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/fullscreen-button.png rename to Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/fullscreen-button.png diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/fullscreen-button.png.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/fullscreen-button.png.meta similarity index 74% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/fullscreen-button.png.meta rename to Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/fullscreen-button.png.meta index f571bba40..2e90b6692 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/fullscreen-button.png.meta +++ b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/fullscreen-button.png.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8d5e201eebea6c84f8bd5b2588272cec +guid: 967881e20f31b1049af771e8c45f9219 DefaultImporter: externalObjects: {} userData: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/progress-bar-empty-dark.png b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/progress-bar-empty-dark.png similarity index 100% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/progress-bar-empty-dark.png rename to Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/progress-bar-empty-dark.png diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/progress-bar-empty-dark.png.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/progress-bar-empty-dark.png.meta similarity index 74% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/progress-bar-empty-dark.png.meta rename to Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/progress-bar-empty-dark.png.meta index c7f3bcef3..fdec1ec4a 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/progress-bar-empty-dark.png.meta +++ b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/progress-bar-empty-dark.png.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 0b285cac0ffc78c45bd85800e265960e +guid: b2ec634067486b9408b471e5970cb22b DefaultImporter: externalObjects: {} userData: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/progress-bar-empty-light.png b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/progress-bar-empty-light.png similarity index 100% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/progress-bar-empty-light.png rename to Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/progress-bar-empty-light.png diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/progress-bar-empty-light.png.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/progress-bar-empty-light.png.meta similarity index 74% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/progress-bar-empty-light.png.meta rename to Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/progress-bar-empty-light.png.meta index fec88c78c..88a07dc1d 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/progress-bar-empty-light.png.meta +++ b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/progress-bar-empty-light.png.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 81e504b02493e2d489a5f7873e562677 +guid: f4f1a86987f698246a4c8c3a83db277b DefaultImporter: externalObjects: {} userData: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/progress-bar-full-dark.png b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/progress-bar-full-dark.png similarity index 100% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/progress-bar-full-dark.png rename to Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/progress-bar-full-dark.png diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/progress-bar-full-dark.png.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/progress-bar-full-dark.png.meta similarity index 74% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/progress-bar-full-dark.png.meta rename to Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/progress-bar-full-dark.png.meta index 7a629d9f2..57482f86b 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/progress-bar-full-dark.png.meta +++ b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/progress-bar-full-dark.png.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8f790f16d39788f4bab1cc9541b8be4f +guid: 736232a14c9ab6a449b5f01a2bcbdeca DefaultImporter: externalObjects: {} userData: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/progress-bar-full-light.png b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/progress-bar-full-light.png similarity index 100% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/progress-bar-full-light.png rename to Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/progress-bar-full-light.png diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/progress-bar-full-light.png.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/progress-bar-full-light.png.meta similarity index 74% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/progress-bar-full-light.png.meta rename to Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/progress-bar-full-light.png.meta index bea866aed..b086cb0cb 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/progress-bar-full-light.png.meta +++ b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/progress-bar-full-light.png.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ddba6bb134c3c5d4f9013ab3e954a083 +guid: 15761b5793c0bf24893d844848111f64 DefaultImporter: externalObjects: {} userData: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/style.css b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/style.css similarity index 89% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/style.css rename to Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/style.css index 1d2a3da24..69ae8bfec 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/style.css +++ b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/style.css @@ -6,7 +6,7 @@ body { padding: 0; margin: 0 } .unity-mobile #unity-canvas { width: 100%; height: 100% } #unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none } #unity-logo { width: 154px; height: 130px; background: url('unity-logo-{{{ SPLASH_SCREEN_STYLE.toLowerCase() }}}.png') no-repeat center } -#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; background: url('progress-bar-empty-{{{ SPLASH_SCREEN_STYLE.toLowerCase() }}}.png') no-repeat center } +#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-{{{ SPLASH_SCREEN_STYLE.toLowerCase() }}}.png') no-repeat center } #unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-{{{ SPLASH_SCREEN_STYLE.toLowerCase() }}}.png') no-repeat center } #unity-footer { position: relative } .unity-mobile #unity-footer { display: none } @@ -14,4 +14,3 @@ body { padding: 0; margin: 0 } #unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px } #unity-fullscreen-button { float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center } #unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none } -.web3modal-modal-card { font-family: sans-serif} \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/style.css.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/style.css.meta similarity index 74% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/style.css.meta rename to Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/style.css.meta index e90797359..5fc19cea6 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/style.css.meta +++ b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/style.css.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 3864d184dd8bdb5478c7c1f749f3e79b +guid: 8930e829333101342a7e2c8d66e66407 DefaultImporter: externalObjects: {} userData: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/unity-logo-dark.png b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/unity-logo-dark.png new file mode 100644 index 000000000..2c3323841 Binary files /dev/null and b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/unity-logo-dark.png differ diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/unity-logo-dark.png.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/unity-logo-dark.png.meta similarity index 74% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/unity-logo-dark.png.meta rename to Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/unity-logo-dark.png.meta index 06e1f2ec8..6cb6c3542 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/unity-logo-dark.png.meta +++ b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/unity-logo-dark.png.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: fd8cc130a5979ed40a6bbdc53fbfd83e +guid: 0bc95895a1c13714285e6418371483a2 DefaultImporter: externalObjects: {} userData: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/unity-logo-light.png b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/unity-logo-light.png new file mode 100644 index 000000000..9f0ab84b9 Binary files /dev/null and b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/unity-logo-light.png differ diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/unity-logo-light.png.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/unity-logo-light.png.meta similarity index 74% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/unity-logo-light.png.meta rename to Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/unity-logo-light.png.meta index 65b7c0916..7d906a6ea 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/unity-logo-light.png.meta +++ b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/unity-logo-light.png.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 9b40a874905262444a6853092df97661 +guid: 7b18552a7b8b3af499e56dbb903fe300 DefaultImporter: externalObjects: {} userData: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/webgl-logo.png b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/webgl-logo.png new file mode 100644 index 000000000..338b1ae11 Binary files /dev/null and b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/webgl-logo.png differ diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/webgl-logo.png.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/webgl-logo.png.meta similarity index 74% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/webgl-logo.png.meta rename to Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/webgl-logo.png.meta index dd5905343..d91db6667 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/webgl-logo.png.meta +++ b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/TemplateData/webgl-logo.png.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: c314a9a52fd626a499860af88dab9d1c +guid: 2dc72fbd2c856ca44b3179fe166c0485 DefaultImporter: externalObjects: {} userData: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/index.html b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/index.html similarity index 83% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/index.html rename to Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/index.html index 760dfd7b7..5b590cea2 100644 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/index.html +++ b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/index.html @@ -6,9 +6,6 @@ Unity WebGL Player | {{{ PRODUCT_NAME }}} - - -
@@ -63,7 +60,9 @@ var config = { dataUrl: buildUrl + "/{{{ DATA_FILENAME }}}", frameworkUrl: buildUrl + "/{{{ FRAMEWORK_FILENAME }}}", +#if USE_WASM codeUrl: buildUrl + "/{{{ CODE_FILENAME }}}", +#endif #if MEMORY_FILENAME memoryUrl: buildUrl + "/{{{ MEMORY_FILENAME }}}", #endif @@ -71,9 +70,9 @@ symbolsUrl: buildUrl + "/{{{ SYMBOLS_FILENAME }}}", #endif streamingAssetsUrl: "StreamingAssets", - companyName: "{{{ COMPANY_NAME }}}", - productName: "{{{ PRODUCT_NAME }}}", - productVersion: "{{{ PRODUCT_VERSION }}}", + companyName: {{{ JSON.stringify(COMPANY_NAME) }}}, + productName: {{{ JSON.stringify(PRODUCT_NAME) }}}, + productVersion: {{{ JSON.stringify(PRODUCT_VERSION) }}}, showBanner: unityShowBanner, }; @@ -85,15 +84,27 @@ // config.matchWebGLToCanvasSize = false; if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) { + // Mobile device style: fill the whole browser client area with the game canvas: + + var meta = document.createElement('meta'); + meta.name = 'viewport'; + meta.content = 'width=device-width, height=device-height, initial-scale=1.0, user-scalable=no, shrink-to-fit=yes'; + document.getElementsByTagName('head')[0].appendChild(meta); container.className = "unity-mobile"; - // Avoid draining fillrate performance on mobile devices, - // and default/override low DPI mode on mobile browsers. - config.devicePixelRatio = 1; + canvas.className = "unity-mobile"; + + // To lower canvas resolution on mobile devices to gain some + // performance, uncomment the following line: + // config.devicePixelRatio = 1; + unityShowBanner('WebGL builds are not supported on mobile devices.'); } else { + // Desktop style: Render the game canvas in a window that can be maximized to fullscreen: + canvas.style.width = "{{{ WIDTH }}}px"; canvas.style.height = "{{{ HEIGHT }}}px"; } + #if BACKGROUND_FILENAME canvas.style.background = "url('" + buildUrl + "/{{{ BACKGROUND_FILENAME.replace(/'/g, '%27') }}}') center / cover"; #endif diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/index.html.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/index.html.meta new file mode 100644 index 000000000..2d4ef28aa --- /dev/null +++ b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/index.html.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: a67863790fe2d674cbb6a73ff2b3e862 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/thumbnail.png b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/thumbnail.png similarity index 100% rename from Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/thumbnail.png rename to Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/thumbnail.png diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/thumbnail.png.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/thumbnail.png.meta new file mode 100644 index 000000000..5a01b3131 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/MetaMask/thumbnail.png.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: ceb0a42d83f79844b99a58b49d8d54f5 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/favicon.ico b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/favicon.ico deleted file mode 100644 index dd6bf7e9c..000000000 Binary files a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/favicon.ico and /dev/null differ diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/unity-logo-dark.png b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/unity-logo-dark.png deleted file mode 100644 index 597665d0c..000000000 Binary files a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/unity-logo-dark.png and /dev/null differ diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/unity-logo-light.png b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/unity-logo-light.png deleted file mode 100644 index ad281ab10..000000000 Binary files a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/unity-logo-light.png and /dev/null differ diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/webgl-logo.png b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/webgl-logo.png deleted file mode 100644 index ed9efa2b6..000000000 Binary files a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/TemplateData/webgl-logo.png and /dev/null differ diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/Index-5a58a04a-286652f5.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/Index-5a58a04a-286652f5.js deleted file mode 100644 index d6c5bfb71..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/Index-5a58a04a-286652f5.js +++ /dev/null @@ -1,73 +0,0 @@ -import{b6 as R,b7 as I,b8 as M,bs as O,b9 as pe,ba as _,bf as w,bc as G,bd as T,be as V,bg as C,bi as Y,aI as _e,aH as we,bh as H,bq as h,br as p,bF as Ce,bm as D,bx as L,c3 as B,bn as F,bB as g,bb as P,bD as me,cb as ze,cc as Te,cd as je,bI as xe,bJ as Le,bL as Se,bS as Pe,bp as A,bY as Z,bZ as Ee,ce as Ne,cf as ye,bR as Re,bE as Ie,cg as J,ch as q,bA as $,bM as he,bk as Me,bN as ge,ci as Oe,bj as ke,cj as U,ck as X,bo as N,cl as Q,by as E,bH as K,cm as ee,cn as He,co as te,cp as S,bv as De,bT as W,cq as Fe}from"./index-b28afd98.js";function Ae(i,{from:e,to:t},n={}){const o=getComputedStyle(i),r=o.transform==="none"?"":o.transform,[f,s]=o.transformOrigin.split(" ").map(parseFloat),l=e.left+e.width*f/t.width-(t.left+f),a=e.top+e.height*s/t.height-(t.top+s),{delay:c=0,duration:d=u=>Math.sqrt(u)*120,easing:v=ye}=n;return{delay:c,duration:Ie(d)?d(Math.sqrt(l*l+a*a)):d,easing:v,css:(u,y)=>{const b=y*l,m=y*a,z=u+y*e.width/t.width,j=u+y*e.height/t.height;return`transform: ${r} translate(${b}px, ${m}px) scale(${z}, ${j});`}}}function Ge(i){O(i,"svelte-13cuwwo","div.svelte-13cuwwo{box-sizing:content-box}.border.svelte-13cuwwo{border:2px solid;border-radius:120px;overflow:hidden}")}function Ve(i){let e,t;return{c(){e=h("div"),p(e,"class","border svelte-13cuwwo"),p(e,"style",t=` - width: ${i[2]-i[3]*2}px; - height: ${i[2]-i[3]*2}px; - border-color: var(${i[1]}); - padding: ${i[3]}px; - background-color: ${i[4]}; - border-radius: 50%; - display: flex; - justify-content: center; - `)},m(n,o){_(n,e,o),e.innerHTML=i[0]},p(n,[o]){o&1&&(e.innerHTML=n[0]),o&30&&t!==(t=` - width: ${n[2]-n[3]*2}px; - height: ${n[2]-n[3]*2}px; - border-color: var(${n[1]}); - padding: ${n[3]}px; - background-color: ${n[4]}; - border-radius: 50%; - display: flex; - justify-content: center; - `)&&p(e,"style",t)},i:N,o:N,d(n){n&&C(e)}}}function $e(i,e,t){let{icon:n}=e,{borderColorVar:o}=e,{size:r}=e,{padding:f=0}=e,{background:s="transparent"}=e;return i.$$set=l=>{"icon"in l&&t(0,n=l.icon),"borderColorVar"in l&&t(1,o=l.borderColorVar),"size"in l&&t(2,r=l.size),"padding"in l&&t(3,f=l.padding),"background"in l&&t(4,s=l.background)},[n,o,r,f,s]}class Be extends R{constructor(e){super(),I(this,e,$e,Ve,M,{icon:0,borderColorVar:1,size:2,padding:3,background:4},Ge)}}function qe(i){O(i,"svelte-jvic9v","div.notification-icons-wrapper.svelte-jvic9v{height:32px;width:32px}.border.svelte-jvic9v{border-radius:8px}div.notification-icon.svelte-jvic9v{padding:6px}div.pending-icon.svelte-jvic9v{animation:svelte-jvic9v-blink 2s ease-in infinite;height:100%;width:100%;padding:7px}@keyframes svelte-jvic9v-blink{from,to{opacity:1}50%{opacity:0.2}}div.border-action.svelte-jvic9v{height:32px;min-width:32px;border-radius:8px;overflow:hidden;will-change:transform}div.border-action.svelte-jvic9v:before{content:'';background-image:conic-gradient(#b1b7f2 20deg, #6370e5 120deg);height:140%;width:140%;position:absolute;left:-25%;top:-25%;animation:svelte-jvic9v-rotate 2s infinite linear}div.chain-icon-container.svelte-jvic9v{left:18px;top:18px}@keyframes svelte-jvic9v-rotate{100%{transform:rotate(-360deg)}}")}function ne(i){let e,t,n,o,r=S[i[1].type].eventIcon+"",f,s,l,a=!i[1].id.includes("customNotification")&&!i[1].id.includes("preflight"),c,d=i[1].type==="pending"&&ie(),v=a&&oe(i);return{c(){e=h("div"),d&&d.c(),t=L(),n=h("div"),o=h("div"),l=L(),v&&v.c(),p(o,"class",f=B(`notification-icon flex items-center justify-center ${i[1].type==="pending"?"pending-icon":""}`)+" svelte-jvic9v"),p(n,"class","flex items-center justify-center border relative notification-icons-wrapper svelte-jvic9v"),p(n,"style",s=`background:${S[i[1].type].backgroundColor}; color: ${S[i[1].type].iconColor||""}; ${i[1].type==="pending"?"height: 28px; width: 28px; margin: 2px;":`border: 2px solid ${S[i[1].type].borderColor}`}; `),p(e,"class","relative")},m(u,y){_(u,e,y),d&&d.m(e,null),g(e,t),g(e,n),g(n,o),o.innerHTML=r,g(e,l),v&&v.m(e,null),c=!0},p(u,y){u[1].type==="pending"?d||(d=ie(),d.c(),d.m(e,t)):d&&(d.d(1),d=null),(!c||y&2)&&r!==(r=S[u[1].type].eventIcon+"")&&(o.innerHTML=r),(!c||y&2&&f!==(f=B(`notification-icon flex items-center justify-center ${u[1].type==="pending"?"pending-icon":""}`)+" svelte-jvic9v"))&&p(o,"class",f),(!c||y&2&&s!==(s=`background:${S[u[1].type].backgroundColor}; color: ${S[u[1].type].iconColor||""}; ${u[1].type==="pending"?"height: 28px; width: 28px; margin: 2px;":`border: 2px solid ${S[u[1].type].borderColor}`}; `))&&p(n,"style",s),y&2&&(a=!u[1].id.includes("customNotification")&&!u[1].id.includes("preflight")),a?v?(v.p(u,y),y&2&&w(v,1)):(v=oe(u),v.c(),w(v,1),v.m(e,null)):v&&(G(),T(v,1,1,()=>{v=null}),V())},i(u){c||(w(v),c=!0)},o(u){T(v),c=!1},d(u){u&&C(e),d&&d.d(),v&&v.d()}}}function ie(i){let e;return{c(){e=h("div"),p(e,"class","border-action absolute svelte-jvic9v")},m(t,n){_(t,e,n)},d(t){t&&C(e)}}}function oe(i){let e,t,n;return t=new Be({props:{icon:i[0].icon,size:16,background:i[0].color,borderColorVar:"--notify-onboard-background, var(--onboard-gray-600, var(--gray-600))",padding:3}}),{c(){e=h("div"),D(t.$$.fragment),p(e,"class","absolute chain-icon-container svelte-jvic9v")},m(o,r){_(o,e,r),F(t,e,null),n=!0},p(o,r){const f={};r&1&&(f.icon=o[0].icon),r&1&&(f.background=o[0].color),t.$set(f)},i(o){n||(w(t.$$.fragment,o),n=!0)},o(o){T(t.$$.fragment,o),n=!1},d(o){o&&C(e),A(t)}}}function We(i){let e,t,n=i[1].type&&ne(i);return{c(){n&&n.c(),e=pe()},m(o,r){n&&n.m(o,r),_(o,e,r),t=!0},p(o,[r]){o[1].type?n?(n.p(o,r),r&2&&w(n,1)):(n=ne(o),n.c(),w(n,1),n.m(e.parentNode,e)):n&&(G(),T(n,1,1,()=>{n=null}),V())},i(o){t||(w(n),t=!0)},o(o){T(n),t=!1},d(o){n&&n.d(o),o&&C(e)}}}function Ke(i,e,t){let{chainStyles:n=De}=e,{notification:o}=e;return i.$$set=r=>{"chainStyles"in r&&t(0,n=r.chainStyles),"notification"in r&&t(1,o=r.notification)},[n,o]}class Ye extends R{constructor(e){super(),I(this,e,Ke,We,M,{chainStyles:0,notification:1},qe)}}function Ze(i){O(i,"svelte-pm7idu",`div.svelte-pm7idu{display:flex;justify-content:center;font-size:inherit;font-family:inherit;margin:0 1.5rem 0 0.75rem}span.svelte-pm7idu{font-family:inherit;display:flex;align-items:center;margin:0 2px}.time.svelte-pm7idu{color:var( - --notify-onboard-timer-color, - var(--onboard-gray-300, var(--gray-300)) - );margin-left:4px}`)}function re(i){let e,t,n=i[2](i[1]-i[0])+"",o,r;return{c(){e=E(`- - `),t=h("span"),o=E(n),r=E(` - ago`),p(t,"class","svelte-pm7idu")},m(f,s){_(f,e,s),_(f,t,s),g(t,o),_(f,r,s)},p(f,s){s&3&&n!==(n=f[2](f[1]-f[0])+"")&&K(o,n)},d(f){f&&C(e),f&&C(t),f&&C(r)}}}function Je(i){let e,t=i[0]&&re(i);return{c(){e=h("div"),t&&t.c(),p(e,"class","time svelte-pm7idu")},m(n,o){_(n,e,o),t&&t.m(e,null)},p(n,[o]){n[0]?t?t.p(n,o):(t=re(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},i:N,o:N,d(n){n&&C(e),t&&t.d()}}}function Ue(i,e,t){let n,o;H(i,ge,a=>t(3,n=a)),H(i,Fe,a=>t(4,o=a));let{startTime:r}=e;function f(a){const c=Math.floor(a/1e3),d=c<0?0:c;return d>=60?`${Math.floor(d/60).toLocaleString(o)} ${n("notify.time.minutes")}`:`${d.toLocaleString(o)} ${n("notify.time.seconds")}`}let s=Date.now();const l=setInterval(()=>{t(1,s=Date.now())},1e3);return ke(()=>{clearInterval(l)}),i.$$set=a=>{"startTime"in a&&t(0,r=a.startTime)},[r,s,f]}class Xe extends R{constructor(e){super(),I(this,e,Ue,Je,M,{startTime:0},Ze)}}function Qe(i){O(i,"svelte-1otz6tt",`div.notify-transaction-data.svelte-1otz6tt{font-size:var( - --notify-onboard-transaction-font-size, - var(--onboard-font-size-6, var(--font-size-6)) - );font-family:inherit;margin:0px 20px 0px 8px;justify-content:center}.hash-time.svelte-1otz6tt{display:inline-flex;margin-top:4px;font-size:var( - --notify-onboard-hash-time-font-size, - var(--onboard-font-size-7, var(--font-size-7)) - );line-height:var( - --notify-onboard-hash-time-font-line-height, - var(--onboard-font-line-height-4, var(--font-line-height-4)) - )}.address-hash.svelte-1otz6tt{color:var( - --notify-onboard-address-hash-color, - var(--onboard-primary-200, var(--primary-200)) - )}a.address-hash.svelte-1otz6tt{color:var( - --notify-onboard-anchor-color, - var(--onboard-primary-400, var(--primary-400)) - )}a.svelte-1otz6tt{display:flex;text-decoration:none;color:inherit}.transaction-status.svelte-1otz6tt{color:var(--notify-onboard-transaction-status, inherit);line-height:var( - --notify-onboard-font-size-5, - var(--onboard-font-size-5, var(--font-size-5)) - );font-weight:400;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}`)}function ae(i){let e,t,n,o;function r(l,a){return l[0].link?tt:et}let f=r(i),s=f(i);return n=new Xe({props:{startTime:i[0].startTime}}),{c(){e=h("span"),s.c(),t=L(),D(n.$$.fragment),p(e,"class","hash-time svelte-1otz6tt")},m(l,a){_(l,e,a),s.m(e,null),g(e,t),F(n,e,null),o=!0},p(l,a){f===(f=r(l))&&s?s.p(l,a):(s.d(1),s=f(l),s&&(s.c(),s.m(e,t)));const c={};a&1&&(c.startTime=l[0].startTime),n.$set(c)},i(l){o||(w(n.$$.fragment,l),o=!0)},o(l){T(n.$$.fragment,l),o=!1},d(l){l&&C(e),s.d(),A(n)}}}function et(i){let e,t=W(i[0].id)+"",n;return{c(){e=h("div"),n=E(t),p(e,"class","address-hash svelte-1otz6tt")},m(o,r){_(o,e,r),g(e,n)},p(o,r){r&1&&t!==(t=W(o[0].id)+"")&&K(n,t)},d(o){o&&C(e)}}}function tt(i){let e,t=W(i[0].id)+"",n,o;return{c(){e=h("a"),n=E(t),p(e,"class","address-hash svelte-1otz6tt"),p(e,"href",o=i[0].link),p(e,"target","_blank"),p(e,"rel","noreferrer noopener")},m(r,f){_(r,e,f),g(e,n)},p(r,f){f&1&&t!==(t=W(r[0].id)+"")&&K(n,t),f&1&&o!==(o=r[0].link)&&p(e,"href",o)},d(r){r&&C(e)}}}function nt(i){let e,t,n=i[0].message+"",o,r,f=i[0].id&&!i[0].id.includes("customNotification")&&!i[0].id.includes("preflight"),s,l=f&&ae(i);return{c(){e=h("div"),t=h("span"),o=E(n),r=L(),l&&l.c(),p(t,"class","transaction-status svelte-1otz6tt"),p(e,"class","flex flex-column notify-transaction-data svelte-1otz6tt")},m(a,c){_(a,e,c),g(e,t),g(t,o),g(e,r),l&&l.m(e,null),s=!0},p(a,[c]){(!s||c&1)&&n!==(n=a[0].message+"")&&K(o,n),c&1&&(f=a[0].id&&!a[0].id.includes("customNotification")&&!a[0].id.includes("preflight")),f?l?(l.p(a,c),c&1&&w(l,1)):(l=ae(a),l.c(),w(l,1),l.m(e,null)):l&&(G(),T(l,1,1,()=>{l=null}),V())},i(a){s||(w(l),s=!0)},o(a){T(l),s=!1},d(a){a&&C(e),l&&l.d()}}}function it(i,e,t){let{notification:n}=e;return i.$$set=o=>{"notification"in o&&t(0,n=o.notification)},[n]}class ot extends R{constructor(e){super(),I(this,e,it,nt,M,{notification:0},Qe)}}var rt=` - - - -`;const at=["txPool"],lt=["main","matic-main"],st=["Ledger","Trezor","Keystone","KeepKey","D'CENT"],le=i=>at.includes(i),se=i=>lt.includes(i),ce=i=>i&&st.includes(i.label);async function fe({type:i,wallet:e,transaction:t}){const{from:n,input:o,value:r,to:f,nonce:s,gas:l,network:a}=t,c=q[a],{gasPriceProbability:d}=Y.get().notify.replacement,{gas:v,apiKey:u}=Z,[y]=await v.get({chains:[q[a]],endpoint:"blockPrices",apiKey:u}),{maxFeePerGas:b,maxPriorityFeePerGas:m}=y.blockPrices[0].estimatedPrices.find(({confidence:x})=>x===(i==="speedup"?d.speedup:d.cancel)),z=ee(b),j=ee(m),k=o==="0x"?{}:{data:o};return e.provider.request({method:"eth_sendTransaction",params:[{type:"0x2",from:n,to:i==="cancel"?n:f,chainId:parseInt(c),value:`${He.from(r).toHexString()}`,nonce:te(s),gasLimit:te(l),maxFeePerGas:z,maxPriorityFeePerGas:j,...k}]})}function ct(i){O(i,"svelte-ftkynd",`.bn-notify-notification.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{--backround-color:var(--notify-onboard-background, var(--w3o-backround-color, var(--gray-700)));--foreground-color:var(--w3o-foreground-color, var(--gray-600));--text-color:var(--w3o-text-color, #FFF);--border-color:var(--w3o-border-color);font-family:inherit;transition:background 300ms ease-in-out, color 300ms ease-in-out;pointer-events:all;backdrop-filter:blur(5px);width:100%;min-height:56px;display:flex;flex-direction:column;position:relative;overflow:hidden;border:1px solid transparent;border-radius:var( - --notify-onboard-border-radius, - var(--onboard-border-radius-4, var(--border-radius-4)) - );background:var(--foreground-color);color:var(--text-color)}.bn-notify-notification-inner.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{padding:0.75rem}.bn-notify-notification.svelte-ftkynd:hover>div.bn-notify-notification-inner.svelte-ftkynd>div.notify-close-btn-desktop.svelte-ftkynd{visibility:visible;opacity:1}div.notify-close-btn.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{margin-left:auto;margin-bottom:auto;height:24px;width:24px;position:absolute;top:8px;right:8px;justify-content:center;align-items:center}div.notify-close-btn-desktop.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{visibility:hidden;transition:visibility 0.15s linear, opacity 0.15s linear;opacity:0}.notify-close-btn.svelte-ftkynd .close-icon.svelte-ftkynd.svelte-ftkynd{width:20px;margin:auto;color:var(--text-color)}.notify-close-btn.svelte-ftkynd>.close-icon.svelte-ftkynd.svelte-ftkynd{color:var(--notify-onboard-close-icon-color)}.notify-close-btn.svelte-ftkynd:hover>.close-icon.svelte-ftkynd.svelte-ftkynd{color:var(--notify-onboard-close-icon-hover)}.transaction-status.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{color:var( - --notify-onboard-transaction-status-color, - var(--onboard-primary-100, var(--primary-100)) - );line-height:14px}.dropdown.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{height:0px;overflow:hidden;transition:height 150ms ease-in-out}.dropdown-visible.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{height:48px}.dropdown-buttons.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{background-color:var( - --notify-onboard-dropdown-background, - var(--onboard-gray-700, var(--gray-700)) - );width:100%;padding:8px}.dropdown-button.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{padding:4px 12px;border-radius:var( - --notify-onboard-dropdown-border-radius, - var(--onboard-border-radius-5, var(--border-radius-5)) - );background-color:transparent;font-size:var( - --notify-onboard-dropdown-font-size, - var(--onboard-font-size-6, var(--font-size-6)) - );color:var( - --notify-onboard-dropdown-text-color, - var(--onboard-primary-400, var(--primary-400)) - );transition:all 150ms ease-in-out;cursor:pointer}.dropdown-button.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd:hover{background:var( - --notify-onboard-dropdown-btn-hover-background, - rgba(146, 155, 237, 0.2) - )}`)}function de(i){let e,t,n,o,r,f;return{c(){e=h("div"),t=h("button"),t.textContent="Cancel",n=L(),o=h("button"),o.textContent="Speed-up",p(t,"class","dropdown-button svelte-ftkynd"),p(o,"class","dropdown-button svelte-ftkynd"),p(e,"class","dropdown-buttons flex items-center justify-end svelte-ftkynd")},m(s,l){_(s,e,l),g(e,t),g(e,n),g(e,o),r||(f=[P(t,"click",i[9]),P(o,"click",i[10])],r=!0)},p:N,d(s){s&&C(e),r=!1,he(f)}}}function ft(i){let e,t,n,o,r,f,s,l,a,c,d,v,u,y;n=new Ye({props:{notification:i[0],chainStyles:J[q[i[0].network]]}}),r=new ot({props:{notification:i[0]}});let b=i[0].eventCode==="txPool"&&de(i);return{c(){e=h("div"),t=h("div"),D(n.$$.fragment),o=L(),D(r.$$.fragment),f=L(),s=h("div"),l=h("div"),a=L(),c=h("div"),b&&b.c(),p(l,"class","flex items-center close-icon svelte-ftkynd"),p(s,"class","notify-close-btn notify-close-btn-"+i[4].type+" pointer flex svelte-ftkynd"),p(t,"class","flex bn-notify-notification-inner svelte-ftkynd"),p(c,"class","dropdown svelte-ftkynd"),$(c,"dropdown-visible",i[2]&&i[5]&&le(i[0].eventCode)&&se(i[0].network)&&ce(i[7])),p(e,"class",d="bn-notify-notification bn-notify-notification-"+i[0].type+"} svelte-ftkynd"),$(e,"bn-notify-clickable",i[0].onClick)},m(m,z){_(m,e,z),g(e,t),F(n,t,null),g(t,o),F(r,t,null),g(t,f),g(t,s),g(s,l),l.innerHTML=rt,g(e,a),g(e,c),b&&b.m(c,null),v=!0,u||(y=[P(s,"click",me(i[8])),P(e,"mouseenter",i[11]),P(e,"mouseleave",i[12]),P(e,"click",i[13])],u=!0)},p(m,[z]){const j={};z&1&&(j.notification=m[0]),z&1&&(j.chainStyles=J[q[m[0].network]]),n.$set(j);const k={};z&1&&(k.notification=m[0]),r.$set(k),m[0].eventCode==="txPool"?b?b.p(m,z):(b=de(m),b.c(),b.m(c,null)):b&&(b.d(1),b=null),(!v||z&165)&&$(c,"dropdown-visible",m[2]&&m[5]&&le(m[0].eventCode)&&se(m[0].network)&&ce(m[7])),(!v||z&1&&d!==(d="bn-notify-notification bn-notify-notification-"+m[0].type+"} svelte-ftkynd"))&&p(e,"class",d),(!v||z&1)&&$(e,"bn-notify-clickable",m[0].onClick)},i(m){v||(w(n.$$.fragment,m),w(r.$$.fragment,m),v=!0)},o(m){T(n.$$.fragment,m),T(r.$$.fragment,m),v=!1},d(m){m&&C(e),A(n),A(r),b&&b.d(),u=!1,he(y)}}}function dt(i,e,t){let n,o;H(i,Me,k=>t(15,n=k)),H(i,ge,k=>t(3,o=k));const{device:r,gas:f}=Z;let{notification:s}=e,{updateParentOnRemove:l}=e,a,c=!1;const d=Oe.getValue().find(({hash:k})=>k===s.id),v=d&&n.find(({accounts:k})=>!!k.find(({address:x})=>x.toLowerCase()===d.from.toLowerCase()));ke(()=>{clearTimeout(a)});const u=()=>{U(s.id),X(s.id),l()},y=async()=>{try{await fe({type:"cancel",wallet:v,transaction:d})}catch{const x=`${d.hash.slice(0,9)}:txReplaceError${d.hash.slice(-5)}`;Q({id:x,type:"hint",eventCode:"txError",message:o("notify.transaction.txReplaceError"),key:x,autoDismiss:4e3})}},b=async()=>{try{await fe({type:"speedup",wallet:v,transaction:d})}catch{const x=`${d.hash.slice(0,9)}:txReplaceError${d.hash.slice(-5)}`;Q({id:x,type:"hint",eventCode:"txError",message:o("notify.transaction.txReplaceError"),key:x,autoDismiss:4e3})}},m=()=>t(2,c=!0),z=()=>t(2,c=!1),j=k=>s.onClick&&s.onClick(k);return i.$$set=k=>{"notification"in k&&t(0,s=k.notification),"updateParentOnRemove"in k&&t(1,l=k.updateParentOnRemove)},i.$$.update=()=>{i.$$.dirty&1&&s.autoDismiss&&(a=setTimeout(()=>{U(s.id),X(s.id)},s.autoDismiss))},[s,l,c,o,r,f,d,v,u,y,b,m,z,j]}class ut extends R{constructor(e){super(),I(this,e,dt,ft,M,{notification:0,updateParentOnRemove:1},ct)}}function vt(i){O(i,"svelte-1h8mmo3",`ul.svelte-1h8mmo3{padding-left:0;display:flex;flex-flow:column nowrap;font-size:var( - --notify-onboard-font-size, - var(--onboard-font-size-5, var(--font-size-5)) - );list-style-type:none;overflow:visible;scrollbar-width:none;box-sizing:border-box;z-index:var(--notify-onboard-z-index, 300);font-family:var( - --notify-onboard-font-family, - var(--onboard-font-family-normal, inherit) - );margin:8px 0;pointer-events:all}.y-scroll.svelte-1h8mmo3{overflow-y:scroll}.y-visible.svelte-1h8mmo3{overflow-y:visible}li.notification-list-top.svelte-1h8mmo3:not(:first-child){margin-top:8px}li.notification-list-bottom.svelte-1h8mmo3:not(:first-child){margin-bottom:8px}ul.bn-notify-bottomLeft.svelte-1h8mmo3,ul.bn-notify-bottomRight.svelte-1h8mmo3{flex-direction:column-reverse}@media only screen and (max-width: 450px){ul.svelte-1h8mmo3{width:100%}}.bn-notify-clickable:hover{cursor:pointer}.svelte-1h8mmo3::-webkit-scrollbar{display:none}`)}function ue(i,e,t){const n=i.slice();return n[12]=e[t],n}function ve(i){let e,t=[],n=new Map,o,r,f,s=i[2];const l=a=>a[12].key;for(let a=0;a{s&&s.end(1),f=Le(t,Se,{duration:1200,delay:300,x:e[3],y:e[4],easing:pt}),f.start()}),c=!0)},o(u){T(n.$$.fragment,u),f&&f.invalidate(),s=Pe(t,Re,{duration:300,easing:ye}),c=!1},d(u){u&&C(t),A(n),u&&s&&s.end(),d=!1,v()}}}function bt(i){let e,t,n=i[2].length&&ve(i);return{c(){n&&n.c(),e=pe()},m(o,r){n&&n.m(o,r),_(o,e,r),t=!0},p(o,[r]){o[2].length?n?(n.p(o,r),r&4&&w(n,1)):(n=ve(o),n.c(),w(n,1),n.m(e.parentNode,e)):n&&(G(),T(n,1,1,()=>{n=null}),V())},i(o){t||(w(n),t=!0)},o(o){T(n),t=!1},d(o){n&&n.d(o),o&&C(e)}}}function pt(i){return Math.sin(-13*(i+1)*Math.PI/2)*Math.pow(2,-35*i)+1}function mt(i,e,t){let n;const{device:o}=Z,r=Y.select("accountCenter").pipe(_e(Y.get().accountCenter),we(1));H(i,r,b=>t(6,n=b));let{position:f}=e,{sharedContainer:s}=e,{notifications:l}=e,a,c;a=0,c=0;let d="y-scroll";const v=()=>{d!=="y-visible"&&t(5,d="y-visible"),u(function(){t(5,d="y-scroll")},1e3)},u=function(){let b=null;return(m,z)=>{clearTimeout(b),b=setTimeout(m,z)}}();function y(b){Ee.call(this,i,b)}return i.$$set=b=>{"position"in b&&t(0,f=b.position),"sharedContainer"in b&&t(1,s=b.sharedContainer),"notifications"in b&&t(2,l=b.notifications)},i.$$.update=()=>{i.$$.dirty&1&&(f.includes("top")?t(4,c=-50):t(4,c=50))},[f,s,l,a,c,d,n,o,r,v,y]}class ht extends R{constructor(e){super(),I(this,e,mt,bt,M,{position:0,sharedContainer:1,notifications:2},vt)}}export{ht as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/Index-5a58a04a-286652f5.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/Index-5a58a04a-286652f5.js.meta deleted file mode 100644 index 6c3860a94..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/Index-5a58a04a-286652f5.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: e443df271681bbd45ac7e6186ab94600 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/Index-c6a19500-8864b476.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/Index-c6a19500-8864b476.js deleted file mode 100644 index fac0d6e3f..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/Index-c6a19500-8864b476.js +++ /dev/null @@ -1,54 +0,0 @@ -import{b6 as be,b7 as ge,b8 as he,b9 as we,ba as L,bb as R,bc as pe,bd as S,be as ve,bf as y,bg as W,bh as x,bi as $e,aI as _t,aH as kt,bj as Ct,bk as _e,bl as Le,bm as G,bn as Z,bo as ce,bp as O,bq as p,br as d,bs as ke,bt as F,bu as me,bv as ie,bw as je,bx as A,by as T,bz as se,bA as Q,bB as s,bC as yt,bD as re,bE as Be,bF as pt,bG as zt,bH as D,bI as Se,bJ as Ie,bK as $t,bL as At,bM as Ce,bN as Ee,bO as vt,bP as ee,bQ as We,bR as Ae,bS as Mt,bT as Ne,bU as mt,bV as St,bW as It,bX as bt,bY as He,bZ as gt,b_ as qt,al as Ht,az as Ft,b$ as Lt,c0 as Wt,c1 as Vt,c2 as Pe,c3 as Fe,c4 as Re,c5 as Tt,c6 as Ue,c7 as Dt,M as Xe,c8 as Bt,c9 as Je,ca as Nt}from"./index-b28afd98.js";import{m as jt}from"./merge-7af99d5f.js";import{s as Et,d as Gt}from"./skip-2d52d7ac.js";var ht='',Me=` - - - -`;function Zt(e){ke(e,"svelte-1uqued6","select.svelte-1uqued6{border:none;background-image:none;background-color:transparent;-webkit-appearance:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;appearance:none;font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));transition:width 250ms ease-in-out;background-repeat:no-repeat, repeat;background-position:right 0px top 0px, 0 0;scrollbar-width:none;-ms-overflow-style:none;padding:0 14px 0 0;white-space:nowrap;text-overflow:ellipsis}select.minimized_ac.svelte-1uqued6{min-width:80px;max-width:80px}select.maximized_ac.svelte-1uqued6{width:auto !important}select.svelte-1uqued6:focus{outline:none}span.switching-placeholder.svelte-1uqued6{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));min-width:80px;max-width:80px;padding:0 8px 0 4px}")}function Ke(e,t,n){const r=e.slice();return r[15]=t[n],r}function Qe(e){let t;function n(l,a){return l[7]?Pt:Ot}let r=n(e),o=r(e);return{c(){o.c(),t=we()},m(l,a){o.m(l,a),L(l,t,a)},p(l,a){r===(r=n(l))&&o?o.p(l,a):(o.d(1),o=r(l),o&&(o.c(),o.m(t.parentNode,t)))},d(l){o.d(l),l&&W(t)}}}function Ot(e){let t,n=!Pe(e[6].chains[0],e[2]),r,o=[],l=new Map,a,c,i,f,u,v=n&&Ye(e),h=e[2];const _=m=>m[15].id;for(let m=0;mn(12,l=w));let{selectIcon:c=ht}=t,{colorVar:i}=t,{chains:f}=t,{bold:u=!1}=t,{parentCSSId:v=""}=t;const h=new Ht(!1);x(e,h,w=>n(7,a=w));let _;const m=jt(_e,h.pipe(Et(1))).pipe(Gt(50),Ft((w,z)=>typeof w=="boolean"||typeof z=="boolean"?!1:w[0]&&z[0]&&w[0].chains[0].id===z[0].chains[0].id));x(e,m,w=>n(11,o=w));async function b(){const w=_.selectedOptions[0].value;w!==r.chains[0].id&&(h.next(!0),await Lt({chainId:w,chainNamespace:"evm",wallet:r.label}),h.next(!1))}function g(){if(!_)return;let w=document.createElement("option");w.textContent=_.selectedOptions[0].textContent;let z=document.createElement("select");z.style.visibility="hidden",z.style.position="fixed",z.appendChild(w),_.after(z),n(5,_.style.width=`${z.clientWidth-22}px`,_),z.remove()}function k(w){mt[w?"unshift":"push"](()=>{_=w,n(5,_),n(2,f),n(6,r),n(12,l)})}return e.$$set=w=>{"selectIcon"in w&&n(0,c=w.selectIcon),"colorVar"in w&&n(1,i=w.colorVar),"chains"in w&&n(2,f=w.chains),"bold"in w&&n(3,u=w.bold),"parentCSSId"in w&&n(4,v=w.parentCSSId)},e.$$.update=()=>{e.$$.dirty&4096&&n(6,[r]=l,r),e.$$.dirty&2048&&o&&g()},[c,i,f,u,v,_,r,a,h,m,b,o,l,k]}class wt extends be{constructor(t){super(),ge(this,t,Ut,Rt,he,{selectIcon:0,colorVar:1,chains:2,bold:3,parentCSSId:4},Zt)}}var Xt=` - - - -`;function Jt(e){ke(e,"svelte-1frdf8r",`.container.svelte-1frdf8r.svelte-1frdf8r{position:relative;z-index:0;width:100%;padding:0.25rem;margin-bottom:0.25rem;border-radius:12px;transition:background-color 150ms ease-in-out}.container.svelte-1frdf8r.svelte-1frdf8r::before{content:'';display:block;position:absolute;top:0;bottom:0;left:0;right:0;height:100%;width:100%;background:var(--action-color);border-radius:12px;z-index:0;opacity:0}.container.svelte-1frdf8r.svelte-1frdf8r:hover::before{opacity:0.2}.container.svelte-1frdf8r:hover .balance.svelte-1frdf8r,.container.svelte-1frdf8r:hover .elipsis-container.svelte-1frdf8r{opacity:1}.container.svelte-1frdf8r:hover .balance.svelte-1frdf8r{color:var(--account-center-maximized-balance-color, inherit)}.container.primary.svelte-1frdf8r.svelte-1frdf8r:hover{background-color:var(--account-center-maximized-account-section-background-hover)}.address-domain.svelte-1frdf8r.svelte-1frdf8r{margin-left:0.5rem;font-weight:700;color:var(--account-center-maximized-address-color, inherit)}.balance.svelte-1frdf8r.svelte-1frdf8r{margin-left:0.5rem;transition:color 150ms ease-in-out, background-color 150ms ease-in-out;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:7.25rem;text-align:end;opacity:0.4}.elipsis-container.svelte-1frdf8r.svelte-1frdf8r{padding:0.25rem;margin-left:0.25rem;border-radius:24px;transition:color 150ms ease-in-out, background-color 150ms ease-in-out;background-color:transparent;opacity:0.4}.elipsis.svelte-1frdf8r.svelte-1frdf8r{width:24px}.elipsis-container.svelte-1frdf8r.svelte-1frdf8r:hover{color:var(--text-color) - }.elipsis-container.active.svelte-1frdf8r.svelte-1frdf8r{color:var(--text-color) - }.menu.svelte-1frdf8r.svelte-1frdf8r{background:var(--onboard-white, var(--white));border:1px solid var(--onboard-gray-100, var(--gray-100));border-radius:8px;list-style-type:none;right:0.25rem;top:2.25rem;margin:0;padding:0;border:none;overflow:hidden;z-index:1}.menu.svelte-1frdf8r li.svelte-1frdf8r{color:var(--onboard-primary-500, var(--primary-500));font-size:var(--onboard-font-size-5, var(--font-size-5));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));padding:12px 16px;background:var(--onboard-white, var(--white));transition:background-color 150ms ease-in-out;cursor:pointer}.menu.svelte-1frdf8r li.svelte-1frdf8r:hover{background:var(--onboard-primary-200, var(--primary-200))}`)}function et(e,t,n){const r=e.slice();return r[14]=t[n].address,r[15]=t[n].ens,r[16]=t[n].uns,r[17]=t[n].balance,r[19]=n,r}function tt(e){let t,n,r;return n=new We({props:{size:14}}),{c(){t=p("div"),G(n.$$.fragment),se(t,"right","-5px"),se(t,"bottom","-5px"),d(t,"class","drop-shadow absolute")},m(o,l){L(o,t,l),Z(n,t,null),r=!0},i(o){r||(y(n.$$.fragment,o),r=!0)},o(o){S(n.$$.fragment,o),r=!1},d(o){o&&W(t),O(n)}}}function nt(e){let t,n=at(e[17])+"",r,o;return{c(){t=p("span"),r=T(n),d(t,"class","balance svelte-1frdf8r")},m(l,a){L(l,t,a),s(t,r)},p(l,a){a&1&&n!==(n=at(l[17])+"")&&D(r,n)},i(l){o||Se(()=>{o=Ie(t,Ae,{}),o.start()})},o:ce,d(l){l&&W(t)}}}function rt(e){let t,n,r=e[4]("accountCenter.addAccount",{default:e[2].accountCenter.addAccount})+"",o,l,a,c,i=e[4]("accountCenter.disconnectWallet",{default:e[2].accountCenter.disconnectWallet})+"",f,u,v,h=e[2].accountCenter.copyAddress+"",_,m,b,g,k=!(e[1]&&e[19]===0)&&ot(e);function w(){return e[13](e[15],e[16],e[14])}return{c(){t=p("ul"),n=p("li"),o=T(r),l=A(),k&&k.c(),a=A(),c=p("li"),f=T(i),u=A(),v=p("li"),_=T(h),d(n,"class","svelte-1frdf8r"),d(c,"class","svelte-1frdf8r"),d(v,"class","svelte-1frdf8r"),d(t,"class","menu absolute svelte-1frdf8r")},m(z,H){L(z,t,H),s(t,n),s(n,o),s(t,l),k&&k.m(t,null),s(t,a),s(t,c),s(c,f),s(t,u),s(t,v),s(v,_),b||(g=[R(n,"click",re(e[10])),R(c,"click",re(e[12])),R(v,"click",re(w))],b=!0)},p(z,H){e=z,H&20&&r!==(r=e[4]("accountCenter.addAccount",{default:e[2].accountCenter.addAccount})+"")&&D(o,r),e[1]&&e[19]===0?k&&(k.d(1),k=null):k?k.p(e,H):(k=ot(e),k.c(),k.m(t,a)),H&20&&i!==(i=e[4]("accountCenter.disconnectWallet",{default:e[2].accountCenter.disconnectWallet})+"")&&D(f,i),H&4&&h!==(h=e[2].accountCenter.copyAddress+"")&&D(_,h)},i(z){m||Se(()=>{m=Ie(t,Ae,{}),m.start()})},o:ce,d(z){z&&W(t),k&&k.d(),b=!1,Ce(g)}}}function ot(e){let t,n=e[4]("accountCenter.setPrimaryAccount",{default:e[2].accountCenter.setPrimaryAccount})+"",r,o,l;function a(){return e[11](e[14])}return{c(){t=p("li"),r=T(n),d(t,"class","svelte-1frdf8r")},m(c,i){L(c,t,i),s(t,r),o||(l=R(t,"click",re(a)),o=!0)},p(c,i){e=c,i&20&&n!==(n=e[4]("accountCenter.setPrimaryAccount",{default:e[2].accountCenter.setPrimaryAccount})+"")&&D(r,n)},d(c){c&&W(t),o=!1,l()}}}function lt(e){let t,n,r,o,l,a,c,i,f=(e[15]?ee(e[15].name):e[16]?ee(e[16].name):Ne(e[14]))+"",u,v,h,_,m,b,g,k,w,z,H;l=new me({props:{size:32,padding:4,background:"custom",color:"#EFF1FC",customBackgroundColor:e[1]&&e[19]===0?"rgba(24, 206, 102, 0.2)":"rgba(235, 235, 237, 0.1)",border:e[1]&&e[19]===0?"green":"gray",radius:8,icon:e[0].icon}});let I=e[1]&&e[19]===0&&tt(),C=e[17]&&nt(e);function j(){return e[8](e[14])}function te(){return e[9](e[14])}let q=e[3]===e[14]&&rt(e);return{c(){t=p("div"),n=p("div"),r=p("div"),o=p("div"),G(l.$$.fragment),a=A(),I&&I.c(),c=A(),i=p("span"),u=T(f),v=A(),h=p("div"),C&&C.c(),_=A(),m=p("div"),b=p("div"),g=A(),q&&q.c(),k=A(),d(o,"class","flex items-center relative"),d(i,"class","address-domain svelte-1frdf8r"),d(r,"class","flex items-center"),d(b,"class","elipsis pointer flex items-center justify-center relative svelte-1frdf8r"),d(m,"class","elipsis-container svelte-1frdf8r"),Q(m,"active",e[3]===e[14]),d(h,"class","flex items-center"),d(n,"class","container flex items-center justify-between pointer svelte-1frdf8r"),Q(n,"primary",e[1]&&e[19]===0),d(t,"class","relative")},m(B,N){L(B,t,N),s(t,n),s(n,r),s(r,o),Z(l,o,null),s(o,a),I&&I.m(o,null),s(r,c),s(r,i),s(i,u),s(n,v),s(n,h),C&&C.m(h,null),s(h,_),s(h,m),s(m,b),b.innerHTML=Xt,s(t,g),q&&q.m(t,null),s(t,k),w=!0,z||(H=[R(b,"click",re(j)),R(n,"click",te)],z=!0)},p(B,N){e=B;const J={};N&2&&(J.customBackgroundColor=e[1]&&e[19]===0?"rgba(24, 206, 102, 0.2)":"rgba(235, 235, 237, 0.1)"),N&2&&(J.border=e[1]&&e[19]===0?"green":"gray"),N&1&&(J.icon=e[0].icon),l.$set(J),e[1]&&e[19]===0?I?N&2&&y(I,1):(I=tt(),I.c(),y(I,1),I.m(o,null)):I&&(pe(),S(I,1,1,()=>{I=null}),ve()),(!w||N&1)&&f!==(f=(e[15]?ee(e[15].name):e[16]?ee(e[16].name):Ne(e[14]))+"")&&D(u,f),e[17]?C?(C.p(e,N),N&1&&y(C,1)):(C=nt(e),C.c(),y(C,1),C.m(h,_)):C&&(C.d(1),C=null),(!w||N&9)&&Q(m,"active",e[3]===e[14]),(!w||N&2)&&Q(n,"primary",e[1]&&e[19]===0),e[3]===e[14]?q?(q.p(e,N),N&9&&y(q,1)):(q=rt(e),q.c(),y(q,1),q.m(t,k)):q&&(q.d(1),q=null)},i(B){w||(y(l.$$.fragment,B),y(I),y(C),y(q),w=!0)},o(B){S(l.$$.fragment,B),S(I),w=!1},d(B){B&&W(t),O(l),I&&I.d(),C&&C.d(),q&&q.d(),z=!1,Ce(H)}}}function Kt(e){let t,n,r=e[0].accounts,o=[];for(let a=0;aS(o[a],1,1,()=>{o[a]=null});return{c(){for(let a=0;a8?e[t].slice(0,8):e[t]} ${t}`}function Qt(e,t,n){let r;x(e,Ee,g=>n(4,r=g));let{wallet:o}=t,{primary:l}=t;function a(){n(3,c="")}let c="";async function i(g){try{await Dt(g.provider)}catch(k){const{code:w}=k;(w===Xe.UNSUPPORTED_METHOD||w===Xe.DOES_NOT_EXIST)&&Bt.next({inProgress:!1,actionRequired:g.label})}}function f(){n(2,F.accountCenter.copyAddress="Copied Successfully",F),setTimeout(a,500),setTimeout(()=>{n(2,F.accountCenter.copyAddress="Copy Wallet address",F)},700)}const u=g=>n(3,c=c===g?"":g),v=g=>Je(o,g),h=()=>{n(3,c=""),i(o)},_=g=>{n(3,c=""),Je(o,g)},m=()=>{n(3,c=""),bt({label:o.label})},b=(g,k,w)=>{Nt(g?g.name:k?k.name:w).then(()=>{f()})};return e.$$set=g=>{"wallet"in g&&n(0,o=g.wallet),"primary"in g&&n(1,l=g.primary)},[o,l,F,c,r,i,f,a,u,v,h,_,m,b]}class Yt extends be{constructor(t){super(),ge(this,t,Qt,Kt,he,{wallet:0,primary:1,hideMenu:7},Jt)}get hideMenu(){return this.$$.ctx[7]}}var xt=` - - - -`,en=` - - - -`,tn='';function nn(e){ke(e,"svelte-10lq1b5",".content.svelte-10lq1b5{padding:1rem;width:300px;font-family:var(--onboard-font-family-normal, var(--font-family-normal));font-size:var(--onboard-font-size-5, var(--font-size-5));line-height:24px}.icon-container.svelte-10lq1b5{width:3rem;height:3rem;background:var(--onboard-warning-100, var(--warning-100));border-radius:24px;padding:12px;color:var(--onboard-warning-500, var(--warning-500))}h4.svelte-10lq1b5{margin:1.5rem 0 0.5rem 0;font-weight:700}p.svelte-10lq1b5{margin:0;font-weight:400}button.svelte-10lq1b5{margin-top:1.5rem;width:50%;font-weight:700}.right.svelte-10lq1b5{margin-left:0.5rem;width:60%}")}function rn(e){let t,n,r,o,l=e[2]("modals.confirmDisconnectAll.heading",{default:F.modals.confirmDisconnectAll.heading})+"",a,c,i,f=e[2]("modals.confirmDisconnectAll.description")+"",u,v,h,_,m=e[2]("modals.confirmDisconnectAll.cancel",{default:F.modals.confirmDisconnectAll.cancel})+"",b,g,k,w=e[2]("modals.confirmDisconnectAll.confirm",{default:F.modals.confirmDisconnectAll.confirm})+"",z,H,I;return{c(){t=p("div"),n=p("div"),r=A(),o=p("h4"),a=T(l),c=A(),i=p("p"),u=T(f),v=A(),h=p("div"),_=p("button"),b=T(m),g=A(),k=p("button"),z=T(w),d(n,"class","icon-container flex justify-center items-center svelte-10lq1b5"),d(o,"class","svelte-10lq1b5"),d(i,"class","svelte-10lq1b5"),d(_,"class","button-neutral-solid-b rounded svelte-10lq1b5"),d(k,"class","right button-neutral-solid rounded svelte-10lq1b5"),d(h,"class","flex justify-between items-center w-100"),d(t,"class","content svelte-10lq1b5")},m(C,j){L(C,t,j),s(t,n),n.innerHTML=Me,s(t,r),s(t,o),s(o,a),s(t,c),s(t,i),s(i,u),s(t,v),s(t,h),s(h,_),s(_,b),s(h,g),s(h,k),s(k,z),H||(I=[R(_,"click",function(){Be(e[1])&&e[1].apply(this,arguments)}),R(k,"click",function(){Be(e[0])&&e[0].apply(this,arguments)})],H=!0)},p(C,j){e=C,j&4&&l!==(l=e[2]("modals.confirmDisconnectAll.heading",{default:F.modals.confirmDisconnectAll.heading})+"")&&D(a,l),j&4&&f!==(f=e[2]("modals.confirmDisconnectAll.description")+"")&&D(u,f),j&4&&m!==(m=e[2]("modals.confirmDisconnectAll.cancel",{default:F.modals.confirmDisconnectAll.cancel})+"")&&D(b,m),j&4&&w!==(w=e[2]("modals.confirmDisconnectAll.confirm",{default:F.modals.confirmDisconnectAll.confirm})+"")&&D(z,w)},d(C){C&&W(t),H=!1,Ce(I)}}}function on(e){let t,n;return t=new Vt({props:{close:e[1],$$slots:{default:[rn]},$$scope:{ctx:e}}}),{c(){G(t.$$.fragment)},m(r,o){Z(t,r,o),n=!0},p(r,[o]){const l={};o&2&&(l.close=r[1]),o&15&&(l.$$scope={dirty:o,ctx:r}),t.$set(l)},i(r){n||(y(t.$$.fragment,r),n=!0)},o(r){S(t.$$.fragment,r),n=!1},d(r){O(t,r)}}}function ln(e,t,n){let r;x(e,Ee,a=>n(2,r=a));let{onConfirm:o}=t,{onClose:l}=t;return e.$$set=a=>{"onConfirm"in a&&n(0,o=a.onConfirm),"onClose"in a&&n(1,l=a.onClose)},[o,l,r]}class an extends be{constructor(t){super(),ge(this,t,ln,on,he,{onConfirm:0,onClose:1},nn)}}function sn(e){ke(e,"svelte-k4nru0",`.outer-container.svelte-k4nru0{--background-color:var(--w3o-background-color);--text-color:var(--w3o-text-color);--border-color:var(--w3o-border-color, var(--gray-500));--action-color:var(--w3o-action-color, var(--primary-500));--border-radius:var(--w3o-border-radius, 1rem);--account-center-network-selector-color:var(--text-color, white);width:100%;overflow:hidden;pointer-events:auto;border:1px solid transparent;background:var(--account-center-maximized-upper-background, var(--background-color));border-color:var(--border-color);border-radius:var(--account-center-border-radius, var(--border-radius))}.wallets-section.svelte-k4nru0{width:100%;color:var(--text-color, var(--gray-100));background:var(--background-color, var(--gray-700))}.p5.svelte-k4nru0{padding:var(--onboard-spacing-5, var(--spacing-5))}.wallets.svelte-k4nru0{width:100%;margin-bottom:0.5rem}.actions.svelte-k4nru0{color:var(--account-center-maximized-upper-action-color, var(--action-color));padding-left:2px}.action-container.svelte-k4nru0{padding:4px 12px 4px 8px;border-radius:8px;transition:background-color 150ms ease-in-out}.action-container.svelte-k4nru0:hover{background-color:var( - --account-center-maximized-upper-action-background-hover, - rgba(146, 155, 237, 0.2) - )}.plus-icon.svelte-k4nru0{width:20px}.arrow-forward.svelte-k4nru0{width:20px}.mt.svelte-k4nru0{margin-top:0.25rem}.action-text.svelte-k4nru0{font-size:var(--onboard-font-size-6, var(--font-size-6));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));margin-left:0.5rem}.background-blue.svelte-k4nru0{background:var( - --account-center-maximized-network-section-background, - var(--onboard-primary-100, var(--primary-100)) - )}.background-gray.svelte-k4nru0{background:var(--onboard-gray-100, var(--gray-100))}.background-yellow.svelte-k4nru0{background:var(--onboard-warning-100, var(--warning-100))}.network-container.svelte-k4nru0{background:var(--backround-color);border-top:1px solid var(--border-color);border-radius:var( - --account-center-border-radius, - var(--onboard-border-radius-3, var(--border-radius-3)) - );color:var( - --account-center-maximized-network-text-color, - var(--account-center-maximized-network-section, inherit) - )}.p5-5.svelte-k4nru0{padding:12px}.network-selector-container.svelte-k4nru0{margin-left:1rem;width:100%}.network-selector-label.svelte-k4nru0{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3))}.app-info-container.svelte-k4nru0{color:var(--text-color, var(--gray-700));background:var(--account-center-maximized-info-section-background-color, - var(--account-center-maximized-info-section, var(--background-color, #FFF)) - );border-top:1px solid var(--border-color);border-radius:var(--account-center-border-radius, inherit);padding:12px}.app-name.svelte-k4nru0{font-size:1rem;font-weight:700;line-height:1rem;margin-bottom:0.25rem;color:var(--account-center-maximized-app-name-color, inherit)}.app-description.svelte-k4nru0{margin:0;font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));color:var(--account-center-maximized-app-info-color, inherit)}.app-info.svelte-k4nru0{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));color:var(--account-center-maximized-app-info-color, inherit)}.app-info-heading.svelte-k4nru0{font-weight:700;margin-top:var(--onboard-spacing-5, var(--spacing-5));margin-bottom:var(--onboard-spacing-7, var(--spacing-7));color:var(--account-center-maximized-app-info-color, inherit)}a.svelte-k4nru0{font-weight:700}.mt7.svelte-k4nru0{margin-top:var(--onboard-spacing-7, var(--spacing-7))}.ml4.svelte-k4nru0{margin-left:var(--onboard-spacing-4, var(--spacing-4))}.app-button.svelte-k4nru0{font-family:var(--account-center-app-btn-font-family, inherit);margin-top:var(--onboard-spacing-5, var(--spacing-5));color:var(--account-center-app-btn-text-color, var(--background-color, #FFF));background:var(--account-center-app-btn-background, var(--action-color))}.powered-by-container.svelte-k4nru0{margin-top:12px;color:var(--text-color)}`)}function it(e,t,n){const r=e.slice();return r[19]=t[n],r[21]=n,r}function st(e){let t,n;return t=new an({props:{onClose:e[14],onConfirm:e[6]}}),{c(){G(t.$$.fragment)},m(r,o){Z(t,r,o),n=!0},p(r,o){const l={};o&2&&(l.onClose=r[14]),t.$set(l)},i(r){n||(y(t.$$.fragment,r),n=!0)},o(r){S(t.$$.fragment,r),n=!1},d(r){O(t,r)}}}function ct(e,t){let n,r,o,l;function a(i){t[15](i)}let c={wallet:t[19],primary:t[21]===0};return t[2]!==void 0&&(c.hideMenu=t[2]),r=new Yt({props:c}),mt.push(()=>St(r,"hideMenu",a)),{key:e,first:null,c(){n=we(),G(r.$$.fragment),this.first=n},m(i,f){L(i,n,f),Z(r,i,f),l=!0},p(i,f){t=i;const u={};f&1&&(u.wallet=t[19]),f&1&&(u.primary=t[21]===0),!o&&f&4&&(o=!0,u.hideMenu=t[2],It(()=>o=!1)),r.$set(u)},i(i){l||(y(r.$$.fragment,i),l=!0)},o(i){S(r.$$.fragment,i),l=!1},d(i){i&&W(n),O(r,i)}}}function cn(e){let t,n,r,o,l=e[5]("accountCenter.connectAnotherWallet",{default:F.accountCenter.connectAnotherWallet})+"",a,c,i,f,u,v,h=e[5]("accountCenter.disconnectAllWallets",{default:F.accountCenter.disconnectAllWallets})+"",_,m,b;return{c(){t=p("div"),n=p("div"),r=A(),o=p("span"),a=T(l),c=A(),i=p("div"),f=p("div"),u=A(),v=p("span"),_=T(h),d(n,"class","plus-icon flex items-center justify-center svelte-k4nru0"),d(o,"class","action-text svelte-k4nru0"),d(t,"class","action-container flex items-center pointer svelte-k4nru0"),d(f,"class","arrow-forward flex items-center justify-center svelte-k4nru0"),d(v,"class","action-text svelte-k4nru0"),d(i,"class","action-container flex items-center mt pointer svelte-k4nru0")},m(g,k){L(g,t,k),s(t,n),n.innerHTML=xt,s(t,r),s(t,o),s(o,a),L(g,c,k),L(g,i,k),s(i,f),f.innerHTML=en,s(i,u),s(i,v),s(v,_),m||(b=[R(t,"click",e[16]),R(i,"click",e[17])],m=!0)},p(g,k){k&32&&l!==(l=g[5]("accountCenter.connectAnotherWallet",{default:F.accountCenter.connectAnotherWallet})+"")&&D(a,l),k&32&&h!==(h=g[5]("accountCenter.disconnectAllWallets",{default:F.accountCenter.disconnectAllWallets})+"")&&D(_,h)},d(g){g&&W(t),g&&W(c),g&&W(i),m=!1,Ce(b)}}}function dt(e){let t,n,r;return n=new We({props:{size:14}}),{c(){t=p("div"),G(n.$$.fragment),se(t,"right","-5px"),se(t,"bottom","-5px"),d(t,"class","drop-shadow absolute")},m(o,l){L(o,t,l),Z(n,t,null),r=!0},i(o){r||(y(n.$$.fragment,o),r=!0)},o(o){S(n.$$.fragment,o),r=!1},d(o){o&&W(t),O(n)}}}function dn(e){let t,n,r=e[5]("accountCenter.appInfo",{default:F.accountCenter.appInfo})+"",o,l,a,c=e[8].gettingStartedGuide&&un(e),i=e[8].explore&&fn(e);return{c(){t=p("div"),n=p("h4"),o=T(r),l=A(),c&&c.c(),a=A(),i&&i.c(),d(n,"class","app-info-heading svelte-k4nru0"),d(t,"class","app-info svelte-k4nru0")},m(f,u){L(f,t,u),s(t,n),s(n,o),s(t,l),c&&c.m(t,null),s(t,a),i&&i.m(t,null)},p(f,u){u&32&&r!==(r=f[5]("accountCenter.appInfo",{default:F.accountCenter.appInfo})+"")&&D(o,r),f[8].gettingStartedGuide&&c.p(f,u),f[8].explore&&i.p(f,u)},d(f){f&&W(t),c&&c.d(),i&&i.d()}}}function un(e){let t,n,r=e[5]("accountCenter.learnMore",{default:F.accountCenter.learnMore})+"",o,l,a,c=e[5]("accountCenter.gettingStartedGuide",{default:F.accountCenter.gettingStartedGuide})+"",i;return{c(){t=p("div"),n=p("div"),o=T(r),l=A(),a=p("a"),i=T(c),d(a,"href",e[8].gettingStartedGuide),d(a,"target","_blank"),d(a,"rel","noreferrer noopener"),d(a,"class","svelte-k4nru0"),d(t,"class","flex justify-between items-center mt7 svelte-k4nru0")},m(f,u){L(f,t,u),s(t,n),s(n,o),s(t,l),s(t,a),s(a,i)},p(f,u){u&32&&r!==(r=f[5]("accountCenter.learnMore",{default:F.accountCenter.learnMore})+"")&&D(o,r),u&32&&c!==(c=f[5]("accountCenter.gettingStartedGuide",{default:F.accountCenter.gettingStartedGuide})+"")&&D(i,c)},d(f){f&&W(t)}}}function fn(e){let t,n,r=e[5]("accountCenter.smartContracts",{default:F.accountCenter.smartContracts})+"",o,l,a,c=e[5]("accountCenter.explore",{default:F.accountCenter.explore})+"",i;return{c(){t=p("div"),n=p("div"),o=T(r),l=A(),a=p("a"),i=T(c),d(a,"href",e[8].explore),d(a,"target","_blank"),d(a,"rel","noreferrer noopener"),d(a,"class","svelte-k4nru0"),d(t,"class","flex justify-between items-center mt7 svelte-k4nru0")},m(f,u){L(f,t,u),s(t,n),s(n,o),s(t,l),s(t,a),s(a,i)},p(f,u){u&32&&r!==(r=f[5]("accountCenter.smartContracts",{default:F.accountCenter.smartContracts})+"")&&D(o,r),u&32&&c!==(c=f[5]("accountCenter.explore",{default:F.accountCenter.explore})+"")&&D(i,c)},d(f){f&&W(t)}}}function pn(e){let t,n,r,o,l,a=[],c=new Map,i,f,u,v,h,_,m,b,g,k,w,z=e[5]("accountCenter.currentNetwork",{default:F.accountCenter.currentNetwork})+"",H,I,C,j,te,q,B,N,J,oe,U,le,ye,E,$,K,ae,qe=e[5]("accountCenter.backToApp",{default:F.accountCenter.backToApp})+"",Ve,Ge,de,Te,ne,De,Ze,P=e[1]&&st(e),ze=e[0];const Oe=V=>V[19].label;for(let V=0;V{P=null}),ve()),M&5&&(ze=e[0],pe(),a=pt(a,M,Oe,1,e,ze,c,l,zt,ct,null,it),ve()),e[10].type==="desktop"&&ue.p(e,M);const Y={};M&16&&(Y.color=e[4]?e[4].icon?void 0:"#EFF1FC":"#FFAF00"),M&24&&(Y.customBackgroundColor=e[4]?e[4].color||e[3]&&e[3].color||ie.color:"#FFE7B3"),M&24&&(Y.icon=e[4]?e[4].icon||e[3]&&e[3].icon||ie.icon:Me),m.$set(Y),e[4]?X?M&16&&y(X,1):(X=dt(),X.c(),y(X,1),X.m(_,null)):X&&(pe(),S(X,1,1,()=>{X=null}),ve()),(!ne||M&32)&&z!==(z=e[5]("accountCenter.currentNetwork",{default:F.accountCenter.currentNetwork})+"")&&D(H,z),e[8]&&(e[8].gettingStartedGuide||e[8].explore)&&fe.p(e,M),(!ne||M&32)&&qe!==(qe=e[5]("accountCenter.backToApp",{default:F.accountCenter.backToApp})+"")&&D(Ve,qe),(!ne||M&24)&&Q(v,"background-blue",e[4]&&e[4].icon||e[3]),(!ne||M&16)&&Q(v,"background-yellow",!e[4]),(!ne||M&24)&&Q(v,"background-gray",e[4]&&!e[3])},i(V){if(!ne){y(P);for(let M=0;M{Te=Ie(n,At,{delay:e[9].includes("top")?100:0,duration:600,y:e[9].includes("top")?56:-76,easing:$t,opacity:0}),Te.start()}),ne=!0}},o(V){S(P);for(let M=0;Mn(0,c=C)),x(e,Ee,C=>n(5,i=C));function f(){c.forEach(({label:C})=>bt({label:C}))}const{chains:u}=$e.get(),{appMetadata:v}=He;let h=!1,_;const{position:m}=$e.get().accountCenter,{device:b}=He;function g(C){gt.call(this,e,C)}const k=()=>n(1,h=!1);function w(C){_=C,n(2,_)}const z=()=>qt(),H=()=>n(1,h=!0),I=()=>Le({expanded:!1});return e.$$.update=()=>{e.$$.dirty&1&&n(12,[r]=c,r),e.$$.dirty&4096&&n(11,[o]=r?r.chains:[],o),e.$$.dirty&2048&&n(4,l=u.find(({id:C,namespace:j})=>o?C===o.id&&j===o.namespace:!1)),e.$$.dirty&2048&&n(3,a=vt(o&&o.id))},[c,h,_,a,l,i,f,u,v,m,b,o,r,g,k,w,z,H,I]}class mn extends be{constructor(t){super(),ge(this,t,vn,pn,he,{},sn)}}function bn(e){ke(e,"svelte-15oro6i",`.minimized.svelte-15oro6i{--background-color:var(--account-center-minimized-background, var(--w3o-background-color, white));--text-color:var(--w3o-text-color, var(--gray-700));--border-color:var(--account-center-border, var(--w3o-border-color, var(--onboard-gray-200, var(--gray-200))));--border-radius:var(--account-center-border-radius, var(--w3o-border-radius, 1rem));cursor:pointer;pointer-events:auto;width:100%;padding:0.5rem;border:1px solid;background:var(--background-color);color:var(--text-color);border-color:var(--border-color);border-radius:var(--border-radius);box-shadow:var( - --account-center-box-shadow, - var(--onboard-shadow-3, var(--shadow-3)) - )}.inner-row.svelte-15oro6i{display:flex;flex-flow:row nowrap;align-items:center;gap:0.5rem;padding:0 0.25rem}.wallet-info.svelte-15oro6i{display:flex;flex:1;flex-flow:column;height:2.5rem;overflow:hidden}.address.svelte-15oro6i{font-weight:700;line-height:1.25rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--account-center-minimized-address-color, inherit)}.balance.svelte-15oro6i{font-weight:400;line-height:1.25rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;opacity:0.6;color:var(--account-center-minimized-balance-color, inherit)}.chain-icon.svelte-15oro6i{width:22px;height:22px;padding:4px;border-radius:25px;margin-right:4px}.container.svelte-15oro6i{border:1px solid transparent;border-radius:16px;padding:1px;transition:border-color 250ms ease-in-out, backround 250ms ease-in-out;max-width:128px;cursor:default}.drop-shadow.svelte-15oro6i{filter:drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.2))}.color-yellow.svelte-15oro6i{color:var( - --account-center-chain-warning, - var(--onboard-warning-500, var(--warning-500)) - )}.color-white.svelte-15oro6i{color:var(--onboard-primary-100, var(--primary-100))}`)}function ut(e){let t,n=(e[4].length>8?e[4].slice(0,8):e[4])+"",r,o,l,a;return{c(){t=p("div"),r=T(n),o=A(),l=T(e[1]),d(t,"class","balance svelte-15oro6i")},m(c,i){L(c,t,i),s(t,r),s(t,o),s(t,l)},p(c,i){i&16&&n!==(n=(c[4].length>8?c[4].slice(0,8):c[4])+"")&&D(r,n),i&2&&D(l,c[1])},i(c){a||Se(()=>{a=Ie(t,Ae,{}),a.start()})},o:ce,d(c){c&&W(t)}}}function gn(e){let t,n,r,o,l,a,c,i,f,u,v,h,_,m,b=(e[7]?ee(e[7]):e[6]?ee(e[6]):e[5])+"",g,k,w,z,H,I,C,j=(e[3]?e[3].icon||e[2]&&e[2].icon||ie.icon:Me)+"",te,q,B,N,J,oe,U,le,ye;l=new me({props:{size:32,padding:4,background:"white",border:"darkGreen",radius:8,icon:e[8]}}),i=new me({props:{size:32,padding:4,background:"green",border:"darkGreen",radius:8,icon:e[0]?e[0].icon:""}}),v=new We({props:{size:14}});let E=e[4]&&ut(e);return B=new wt({props:{chains:e[9],colorVar:"--account-center-minimized-network-selector-color",selectIcon:ht,parentCSSId:"minimized_ac"}}),{c(){t=p("div"),n=p("div"),r=p("div"),o=p("div"),G(l.$$.fragment),a=A(),c=p("div"),G(i.$$.fragment),f=A(),u=p("div"),G(v.$$.fragment),h=A(),_=p("div"),m=p("div"),g=T(b),k=A(),E&&E.c(),w=A(),z=p("div"),H=p("div"),I=p("div"),C=p("div"),q=A(),G(B.$$.fragment),d(o,"class","drop-shadow svelte-15oro6i"),se(c,"margin-left","-0.5rem"),d(c,"class","drop-shadow svelte-15oro6i"),se(u,"right","-4px"),se(u,"bottom","-4px"),d(u,"class","drop-shadow absolute svelte-15oro6i"),d(r,"class","flex relative"),d(m,"class","address svelte-15oro6i"),d(_,"class","wallet-info svelte-15oro6i"),d(C,"class","chain-icon flex justify-center items-center svelte-15oro6i"),d(C,"style",te=`background-color: ${e[3]?e[3].color||e[2]&&e[2].color||ie.color:"var(--onboard-warning-200, var(--warning-200))"};`),Q(C,"color-yellow",!e[3]),Q(C,"color-white",e[3]&&!e[3].icon),d(I,"class","flex items-center"),d(H,"class","container shadow-1 flex items-center svelte-15oro6i"),d(H,"style",N=`border-color: var(${e[3]?"--onboard-primary-200, var(--primary-200)":"--onboard-warning-500, var(--warning-500)"}); background-color: var(${e[3]?"--account-center-minimized-chain-select-background, var(--primary-100)":"--account-center-minimized-chain-select-background-warning, var(--warning-100)"})`),d(z,"class","network"),d(n,"class","inner-row svelte-15oro6i"),d(t,"class","minimized svelte-15oro6i")},m($,K){L($,t,K),s(t,n),s(n,r),s(r,o),Z(l,o,null),s(r,a),s(r,c),Z(i,c,null),s(r,f),s(r,u),Z(v,u,null),s(n,h),s(n,_),s(_,m),s(m,g),s(_,k),E&&E.m(_,null),s(n,w),s(n,z),s(z,H),s(H,I),s(I,C),C.innerHTML=j,s(I,q),Z(B,I,null),U=!0,le||(ye=[R(H,"click",re(e[14])),R(t,"click",re(e[10]))],le=!0)},p($,[K]){const ae={};K&1&&(ae.icon=$[0]?$[0].icon:""),i.$set(ae),(!U||K&224)&&b!==(b=($[7]?ee($[7]):$[6]?ee($[6]):$[5])+"")&&D(g,b),$[4]?E?(E.p($,K),K&16&&y(E,1)):(E=ut($),E.c(),y(E,1),E.m(_,null)):E&&(E.d(1),E=null),(!U||K&12)&&j!==(j=($[3]?$[3].icon||$[2]&&$[2].icon||ie.icon:Me)+"")&&(C.innerHTML=j),(!U||K&12&&te!==(te=`background-color: ${$[3]?$[3].color||$[2]&&$[2].color||ie.color:"var(--onboard-warning-200, var(--warning-200))"};`))&&d(C,"style",te),(!U||K&8)&&Q(C,"color-yellow",!$[3]),(!U||K&8)&&Q(C,"color-white",$[3]&&!$[3].icon),(!U||K&8&&N!==(N=`border-color: var(${$[3]?"--onboard-primary-200, var(--primary-200)":"--onboard-warning-500, var(--warning-500)"}); background-color: var(${$[3]?"--account-center-minimized-chain-select-background, var(--primary-100)":"--account-center-minimized-chain-select-background-warning, var(--warning-100)"})`))&&d(H,"style",N)},i($){U||(y(l.$$.fragment,$),y(i.$$.fragment,$),y(v.$$.fragment,$),y(E),y(B.$$.fragment,$),Se(()=>{oe&&oe.end(1),J=Ie(t,Ae,{duration:250}),J.start()}),U=!0)},o($){S(l.$$.fragment,$),S(i.$$.fragment,$),S(v.$$.fragment,$),S(B.$$.fragment,$),J&&J.invalidate(),oe=Mt(t,Ae,{duration:100}),U=!1},d($){$&&W(t),O(l),O(i),O(v),E&&E.d(),O(B),$&&oe&&oe.end(),le=!1,Ce(ye)}}}function hn(e,t,n){let r,o,l,a,c,i,f,u,v,h,_;x(e,_e,z=>n(13,_=z));const{appMetadata:m}=He,b=m&&m.icon||je,g=$e.get().chains;function k(){Le({expanded:!0})}function w(z){gt.call(this,e,z)}return e.$$.update=()=>{e.$$.dirty&8192&&n(0,[r]=_,r),e.$$.dirty&1&&n(12,[o]=r?r.accounts:[],o),e.$$.dirty&4096&&n(7,l=o&&o.ens&&ee(o.ens.name)),e.$$.dirty&4096&&n(6,a=o&&o.uns&&ee(o.uns.name)),e.$$.dirty&4096&&n(5,c=o?Ne(o.address):""),e.$$.dirty&4096&&n(1,[i]=o&&o.balance?Object.keys(o.balance):[],i),e.$$.dirty&4098&&n(4,f=o&&o.balance?o.balance[i]:null),e.$$.dirty&1&&n(11,u=r&&r.chains[0]),e.$$.dirty&2048&&n(3,v=g.find(({id:z,namespace:H})=>u?z===u.id&&H===u.namespace:!1)),e.$$.dirty&2048&&n(2,h=vt(u&&u.id))},[r,i,h,v,f,c,a,l,b,g,k,u,o,_,w]}class wn extends be{constructor(t){super(),ge(this,t,hn,gn,he,{},bn)}}function _n(e){ke(e,"svelte-15xtubp",`.minimized.svelte-15xtubp{--background-color:var(--account-center-micro-background, var(--w3o-background-color, white));--text-color:var(--w3o-text-color);--border-color:var(--account-center-border, var(--w3o-border-color, var(--onboard-gray-200, var(--gray-200))));--border-radius:var(--account-center-border-radius, var(--w3o-border-radius, 1rem));cursor:pointer;pointer-events:auto;border:1px solid transparent;background:var(--background-color);color:var(--text-color);border-color:var(--border-color);border-radius:var(--border-radius);box-shadow:var( - --account-center-box-shadow, - var(--onboard-shadow-3, var(--shadow-3)) - )}.drop-shadow.svelte-15xtubp{filter:drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.2))}.inner-row.svelte-15xtubp{display:flex;flex-flow:row nowrap;width:80px;padding:0.75rem}.wallet-square-wrapper.svelte-15xtubp{position:relative;margin-left:-8px}.check-icon-wrapper.svelte-15xtubp{position:absolute;right:-4px;bottom:-4px}`)}function kn(e){let t,n,r,o,l,a,c,i,f,u,v,h,_,m;return o=new me({props:{size:32,padding:4,background:"white",border:"darkGreen",radius:8,icon:e[1]}}),i=new me({props:{size:32,padding:4,background:"green",border:"darkGreen",radius:8,icon:e[0]?e[0].icon:""}}),v=new We({props:{size:14}}),{c(){t=p("div"),n=p("div"),r=p("div"),G(o.$$.fragment),l=A(),a=p("div"),c=p("div"),G(i.$$.fragment),f=A(),u=p("div"),G(v.$$.fragment),d(r,"class","drop-shadow svelte-15xtubp"),d(c,"class","drop-shadow svelte-15xtubp"),d(u,"class","check-icon-wrapper drop-shadow svelte-15xtubp"),d(a,"class","wallet-square-wrapper svelte-15xtubp"),d(n,"class","inner-row svelte-15xtubp"),d(t,"class","minimized svelte-15xtubp")},m(b,g){L(b,t,g),s(t,n),s(n,r),Z(o,r,null),s(n,l),s(n,a),s(a,c),Z(i,c,null),s(a,f),s(a,u),Z(v,u,null),h=!0,_||(m=R(t,"click",re(e[2])),_=!0)},p(b,[g]){const k={};g&1&&(k.icon=b[0]?b[0].icon:""),i.$set(k)},i(b){h||(y(o.$$.fragment,b),y(i.$$.fragment,b),y(v.$$.fragment,b),h=!0)},o(b){S(o.$$.fragment,b),S(i.$$.fragment,b),S(v.$$.fragment,b),h=!1},d(b){b&&W(t),O(o),O(i),O(v),_=!1,m()}}}function Cn(e,t,n){let r,o;x(e,_e,i=>n(3,o=i));const{appMetadata:l}=He,a=l&&l.icon||je;function c(){Le({expanded:!0})}return e.$$.update=()=>{e.$$.dirty&8&&n(0,[r]=o,r)},[r,a,c,o]}class yn extends be{constructor(t){super(),ge(this,t,Cn,kn,he,{},_n)}}function zn(e){let t,n;return t=new mn({}),{c(){G(t.$$.fragment)},m(r,o){Z(t,r,o),n=!0},p:ce,i(r){n||(y(t.$$.fragment,r),n=!0)},o(r){S(t.$$.fragment,r),n=!1},d(r){O(t,r)}}}function $n(e){let t,n;return t=new yn({}),{c(){G(t.$$.fragment)},m(r,o){Z(t,r,o),n=!0},p:ce,i(r){n||(y(t.$$.fragment,r),n=!0)},o(r){S(t.$$.fragment,r),n=!1},d(r){O(t,r)}}}function An(e){let t,n;return t=new wn({}),{c(){G(t.$$.fragment)},m(r,o){Z(t,r,o),n=!0},p:ce,i(r){n||(y(t.$$.fragment,r),n=!0)},o(r){S(t.$$.fragment,r),n=!1},d(r){O(t,r)}}}function Mn(e){let t,n,r=e[2].length&&ft();return{c(){r&&r.c(),t=we()},m(o,l){r&&r.m(o,l),L(o,t,l),n=!0},p(o,l){o[2].length?r?l&4&&y(r,1):(r=ft(),r.c(),y(r,1),r.m(t.parentNode,t)):r&&(pe(),S(r,1,1,()=>{r=null}),ve())},i(o){n||(y(r),n=!0)},o(o){S(r),n=!1},d(o){r&&r.d(o),o&&W(t)}}}function ft(e){let t,n,r;return n=new qn({}),{c(){t=p("div"),G(n.$$.fragment),d(t,"class","container flex flex-column fixed z-indexed")},m(o,l){L(o,t,l),Z(n,t,null),r=!0},i(o){r||(y(n.$$.fragment,o),r=!0)},o(o){S(n.$$.fragment,o),r=!1},d(o){o&&W(t),O(n)}}}function Sn(e){let t,n,r,o,l,a;const c=[Mn,An,$n,zn],i=[];function f(u,v){return u[0]?0:!u[1].expanded&&!u[1].minimal?1:!u[1].expanded&&u[1].minimal?2:3}return t=f(e),n=i[t]=c[t](e),{c(){n.c(),r=we()},m(u,v){i[t].m(u,v),L(u,r,v),o=!0,l||(a=R(window,"click",e[4]),l=!0)},p(u,[v]){let h=t;t=f(u),t===h?i[t].p(u,v):(pe(),S(i[h],1,1,()=>{i[h]=null}),ve(),n=i[t],n?n.p(u,v):(n=i[t]=c[t](u),n.c()),y(n,1),n.m(r.parentNode,r))},i(u){o||(y(n),o=!0)},o(u){S(n),o=!1},d(u){i[t].d(u),u&&W(r),l=!1,a()}}}function In(e,t,n){let r,o;x(e,_e,i=>n(2,o=i));let{mountInContainer:l=!1}=t;const a=$e.select("accountCenter").pipe(_t($e.get().accountCenter),kt(1));x(e,a,i=>n(1,r=i)),Ct(c);function c(){r.expanded&&Le({expanded:!1})}return e.$$set=i=>{"mountInContainer"in i&&n(0,l=i.mountInContainer)},[l,r,o,a,c]}class qn extends be{constructor(t){super(),ge(this,t,In,Sn,he,{mountInContainer:0})}}export{qn as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/Index-c6a19500-8864b476.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/Index-c6a19500-8864b476.js.meta deleted file mode 100644 index d7919db06..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/Index-c6a19500-8864b476.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 0993992598dffe445a11b4946273771d -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/alphawallet-eb2bedab.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/alphawallet-eb2bedab.js deleted file mode 100644 index c31942485..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/alphawallet-eb2bedab.js +++ /dev/null @@ -1,23 +0,0 @@ -const C=` -Icons/Illustrations/Logo_40x40_white_background - - - - - - - - - - - - - - - - - - - - -`;export{C as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/alphawallet-eb2bedab.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/alphawallet-eb2bedab.js.meta deleted file mode 100644 index 2d28de124..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/alphawallet-eb2bedab.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 348d55b6403a8df4eb94ab4d2717b53e -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/apexwallet-ea5f0b2c.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/apexwallet-ea5f0b2c.js deleted file mode 100644 index 9b5bc56d0..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/apexwallet-ea5f0b2c.js +++ /dev/null @@ -1,90 +0,0 @@ -const e=` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -`;export{e as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/apexwallet-ea5f0b2c.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/apexwallet-ea5f0b2c.js.meta deleted file mode 100644 index c315f9b71..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/apexwallet-ea5f0b2c.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 0da804b19b13c67418e36415b26b624f -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/atoken-f422e6b4.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/atoken-f422e6b4.js deleted file mode 100644 index 7155e3329..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/atoken-f422e6b4.js +++ /dev/null @@ -1,24 +0,0 @@ -const t=` - - - - - - - - - - - - - - - - - - - - - - -`;export{t as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/atoken-f422e6b4.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/atoken-f422e6b4.js.meta deleted file mode 100644 index 3cb7b1273..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/atoken-f422e6b4.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 4fada1de0bda05d488a7aa6fa36f732b -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bifrostwallet-b2843d3a.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bifrostwallet-b2843d3a.js deleted file mode 100644 index d03cdf6fa..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bifrostwallet-b2843d3a.js +++ /dev/null @@ -1,8 +0,0 @@ -const c=` - -`;export{c as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bifrostwallet-b2843d3a.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bifrostwallet-b2843d3a.js.meta deleted file mode 100644 index e8f99723c..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bifrostwallet-b2843d3a.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 2dbf70625bb4af4459e9c97539a18025 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/binance-aad6707a.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/binance-aad6707a.js deleted file mode 100644 index ca9224280..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/binance-aad6707a.js +++ /dev/null @@ -1,11 +0,0 @@ -const s=` - - - - - - - - - -`;export{s as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/binance-aad6707a.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/binance-aad6707a.js.meta deleted file mode 100644 index 8bc9a12b3..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/binance-aad6707a.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 84e33d9d739db664584fac97367b7a54 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bitkeep-8077dcef.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bitkeep-8077dcef.js deleted file mode 100644 index a890115ec..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bitkeep-8077dcef.js +++ /dev/null @@ -1,5 +0,0 @@ -const C=` - - - -`;export{C as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bitkeep-8077dcef.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bitkeep-8077dcef.js.meta deleted file mode 100644 index eeeef9caf..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bitkeep-8077dcef.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: e56f1f1b769293f4a84d4b62d4bf021b -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bitpie-8ea44eae.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bitpie-8ea44eae.js deleted file mode 100644 index 421ee92ac..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bitpie-8ea44eae.js +++ /dev/null @@ -1,22 +0,0 @@ -const e=` - - - - - - - - - - - - - - - - - - - - -`;export{e as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bitpie-8ea44eae.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bitpie-8ea44eae.js.meta deleted file mode 100644 index 78e9effcd..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bitpie-8ea44eae.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 6ada6112ef7c1124e980f4ea1e5a50a3 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bitski-220980c2.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bitski-220980c2.js deleted file mode 100644 index a3584d613..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bitski-220980c2.js +++ /dev/null @@ -1 +0,0 @@ -const t='';export{t as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bitski-220980c2.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bitski-220980c2.js.meta deleted file mode 100644 index 12a327da5..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/bitski-220980c2.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 880fed7e27b7ffe48b5928a120522349 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/blockwallet-1235c6b8.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/blockwallet-1235c6b8.js deleted file mode 100644 index a9074dbe2..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/blockwallet-1235c6b8.js +++ /dev/null @@ -1,5 +0,0 @@ -const l=` - - - -`;export{l as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/blockwallet-1235c6b8.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/blockwallet-1235c6b8.js.meta deleted file mode 100644 index 2aa3543df..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/blockwallet-1235c6b8.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: d87c03d4e9e7cb84e99a03d0931e4a43 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/brave-889178d1.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/brave-889178d1.js deleted file mode 100644 index f5998d7a0..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/brave-889178d1.js +++ /dev/null @@ -1,32 +0,0 @@ -const C=` - - brave-browser - - - - - - - - - - - - - - - - - - - - - -`;export{C as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/brave-889178d1.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/brave-889178d1.js.meta deleted file mode 100644 index fde55c21d..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/brave-889178d1.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: b24d7690d59580b45948d2e8c27b6cbb -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/coinbase-8194cd0a.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/coinbase-8194cd0a.js deleted file mode 100644 index e0a7d4e4a..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/coinbase-8194cd0a.js +++ /dev/null @@ -1,6 +0,0 @@ -const e=` - - - - -`;export{e as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/coinbase-8194cd0a.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/coinbase-8194cd0a.js.meta deleted file mode 100644 index b56a9cfa8..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/coinbase-8194cd0a.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 70f72b66312b4e24bad87923e6e3db8e -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/core-1c42229d.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/core-1c42229d.js deleted file mode 100644 index 8f55f717f..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/core-1c42229d.js +++ /dev/null @@ -1,4 +0,0 @@ -const C=` - - -`;export{C as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/core-1c42229d.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/core-1c42229d.js.meta deleted file mode 100644 index 84cbbba97..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/core-1c42229d.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: d3bd156b7d525b64ca5fa1042499ab14 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/defiwallet-99978b81.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/defiwallet-99978b81.js deleted file mode 100644 index 495cda11b..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/defiwallet-99978b81.js +++ /dev/null @@ -1,7 +0,0 @@ -const L=` - - -`;export{L as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/defiwallet-99978b81.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/defiwallet-99978b81.js.meta deleted file mode 100644 index e31fe963a..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/defiwallet-99978b81.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: d49c9c6988df7ab459ff7883b6a448a7 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/detected-641a4aef.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/detected-641a4aef.js deleted file mode 100644 index b0cccec47..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/detected-641a4aef.js +++ /dev/null @@ -1,3 +0,0 @@ -const t=` - -`;export{t as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/detected-641a4aef.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/detected-641a4aef.js.meta deleted file mode 100644 index 4e0e9c181..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/detected-641a4aef.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 26b437f77b7f11248a96c6b6fe63837f -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/enkrypt-b1f25ae2.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/enkrypt-b1f25ae2.js deleted file mode 100644 index 14381942b..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/enkrypt-b1f25ae2.js +++ /dev/null @@ -1,17 +0,0 @@ -const c=` - - - - - - - -`;export{c as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/enkrypt-b1f25ae2.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/enkrypt-b1f25ae2.js.meta deleted file mode 100644 index 5d706ae78..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/enkrypt-b1f25ae2.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: eb6c3ba098b0d384cac3b259ea48cc0e -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/exodus-358b5e9e.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/exodus-358b5e9e.js deleted file mode 100644 index ca7da175e..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/exodus-358b5e9e.js +++ /dev/null @@ -1 +0,0 @@ -const M="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIyIiBoZWlnaHQ9IjEyNCIgdmlld0JveD0iM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N5PSIwIiByPSIxIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgZ3JhZGllbnRUcmFuc2Zvcm09InRyYW5zbGF0ZSg4LjQzMTc1IDI3LjQ2MDIpIHJvdGF0ZSg3Mi4yNTU3KSBzY2FsZSg5Ni40OTc5IDkwLjQ1NDMpIj4KPHN0b3Agb2Zmc2V0PSIwLjExOTc5MiIgc3RvcC1jb2xvcj0iIzg5NTJGRiIgc3RvcC1vcGFjaXR5PSIwLjg3Ii8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0RBQkRGRiIgc3RvcC1vcGFjaXR5PSIwIi8+CjwvcmFkaWFsR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==";export{M as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/exodus-358b5e9e.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/exodus-358b5e9e.js.meta deleted file mode 100644 index 6a313ddfe..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/exodus-358b5e9e.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 3cb462311718cf640889220fcf6e4cee -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/frame-48635667.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/frame-48635667.js deleted file mode 100644 index f002580f5..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/frame-48635667.js +++ /dev/null @@ -1,4 +0,0 @@ -const a=` - - -`;export{a as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/frame-48635667.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/frame-48635667.js.meta deleted file mode 100644 index 7f421b3f0..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/frame-48635667.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 614cc9d4e834c9a439b0505b681304d6 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/frontier-035eb74c.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/frontier-035eb74c.js deleted file mode 100644 index d92bc7fd8..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/frontier-035eb74c.js +++ /dev/null @@ -1,5 +0,0 @@ -const e=` - - - -`;export{e as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/frontier-035eb74c.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/frontier-035eb74c.js.meta deleted file mode 100644 index c01256d21..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/frontier-035eb74c.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: bfec3317732ce654a87a3b1f63526556 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/gamestop-0e4c1409.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/gamestop-0e4c1409.js deleted file mode 100644 index add2ee3af..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/gamestop-0e4c1409.js +++ /dev/null @@ -1,7 +0,0 @@ -const l=` - - - - - -`;export{l as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/gamestop-0e4c1409.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/gamestop-0e4c1409.js.meta deleted file mode 100644 index 73f80e087..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/gamestop-0e4c1409.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 6f689d441bba63b48bc10a05f83083f0 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/huobiwallet-c6da4601.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/huobiwallet-c6da4601.js deleted file mode 100644 index a92713277..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/huobiwallet-c6da4601.js +++ /dev/null @@ -1,11 +0,0 @@ -const l=` - - - - - - - - - -`;export{l as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/huobiwallet-c6da4601.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/huobiwallet-c6da4601.js.meta deleted file mode 100644 index 98db19b38..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/huobiwallet-c6da4601.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: cbb0888472c97074c8912f6137113021 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/hyperpay-75c22b59.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/hyperpay-75c22b59.js deleted file mode 100644 index ee591604c..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/hyperpay-75c22b59.js +++ /dev/null @@ -1,4 +0,0 @@ -const C=` - - -`;export{C as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/hyperpay-75c22b59.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/hyperpay-75c22b59.js.meta deleted file mode 100644 index 90e6124a0..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/hyperpay-75c22b59.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 5dd0bd4a71176af47b77d1b94add6cfc -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/icon-4f874681.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/icon-4f874681.js deleted file mode 100644 index 45a819d1e..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/icon-4f874681.js +++ /dev/null @@ -1,7 +0,0 @@ -const t=` - - - - - -`;export{t as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/icon-4f874681.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/icon-4f874681.js.meta deleted file mode 100644 index 52fa705cd..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/icon-4f874681.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 534693eedd38f2747ac5450a13dd5c70 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/icon-e08798cb.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/icon-e08798cb.js deleted file mode 100644 index 9fdcf8305..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/icon-e08798cb.js +++ /dev/null @@ -1,10 +0,0 @@ -const c=` - - - -`;export{c as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/icon-e08798cb.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/icon-e08798cb.js.meta deleted file mode 100644 index 5122f10d3..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/icon-e08798cb.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: a19972b6241c20142b8af6c69db691c1 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/imtoken-4be0a845.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/imtoken-4be0a845.js deleted file mode 100644 index ab68a8a3c..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/imtoken-4be0a845.js +++ /dev/null @@ -1,14 +0,0 @@ -const o=` - - - - - - - - - - - - -`;export{o as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/imtoken-4be0a845.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/imtoken-4be0a845.js.meta deleted file mode 100644 index 0e3162282..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/imtoken-4be0a845.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 884c5dcbc1c68534e91cacb0b6ad30a1 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-32fe098f.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-32fe098f.js deleted file mode 100644 index 05a257a70..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-32fe098f.js +++ /dev/null @@ -1 +0,0 @@ -import{d as R,r as Lt,B as O,L as x,D as Ln,s as Ct,a as K,t as Dn,k as Qt,c as be,h as Q,b as ke,e as Dt,f as le,g as Wt,i as fn,j as Bt,l as ue,m as se,n as qn,o as Fn,p as sr,q as Ee,u as Wr,v as Xr,Z as Un,w as Ht,x as Fe,y as Gn,z as or,A as zn,C as ar,E as ki,F as pe,G as Jn}from"./index-b28afd98.js";const Kn="abstract-provider/5.7.0";var Hn=globalThis&&globalThis.__awaiter||function(s,t,e,r){function n(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function u(p){try{d(r.next(p))}catch(A){a(A)}}function h(p){try{d(r.throw(p))}catch(A){a(A)}}function d(p){p.done?i(p.value):n(p.value).then(u,h)}d((r=r.apply(s,t||[])).next())})};const Qn=new x(Kn);class jn extends Ln{static isForkEvent(t){return!!(t&&t._isForkEvent)}}class fr{constructor(){Qn.checkAbstract(new.target,fr),R(this,"_isProvider",!0)}getFeeData(){return Hn(this,void 0,void 0,function*(){const{block:t,gasPrice:e}=yield Lt({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(a=>null)});let r=null,n=null,i=null;return t&&t.baseFeePerGas&&(r=t.baseFeePerGas,i=O.from("1500000000"),n=t.baseFeePerGas.mul(2).add(i)),{lastBaseFeePerGas:r,maxFeePerGas:n,maxPriorityFeePerGas:i,gasPrice:e}})}addListener(t,e){return this.on(t,e)}removeListener(t,e){return this.off(t,e)}static isProvider(t){return!!(t&&t._isProvider)}}const Yn="abstract-signer/5.7.0";var ee=globalThis&&globalThis.__awaiter||function(s,t,e,r){function n(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function u(p){try{d(r.next(p))}catch(A){a(A)}}function h(p){try{d(r.throw(p))}catch(A){a(A)}}function d(p){p.done?i(p.value):n(p.value).then(u,h)}d((r=r.apply(s,t||[])).next())})};const re=new x(Yn),Wn=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],Xn=[x.errors.INSUFFICIENT_FUNDS,x.errors.NONCE_EXPIRED,x.errors.REPLACEMENT_UNDERPRICED];class Vr{constructor(){re.checkAbstract(new.target,Vr),R(this,"_isSigner",!0)}getBalance(t){return ee(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),t)})}getTransactionCount(t){return ee(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),t)})}estimateGas(t){return ee(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const e=yield Lt(this.checkTransaction(t));return yield this.provider.estimateGas(e)})}call(t,e){return ee(this,void 0,void 0,function*(){this._checkProvider("call");const r=yield Lt(this.checkTransaction(t));return yield this.provider.call(r,e)})}sendTransaction(t){return ee(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const e=yield this.populateTransaction(t),r=yield this.signTransaction(e);return yield this.provider.sendTransaction(r)})}getChainId(){return ee(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return ee(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return ee(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(t){return ee(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(t)})}checkTransaction(t){for(const r in t)Wn.indexOf(r)===-1&&re.throwArgumentError("invalid transaction key: "+r,"transaction",t);const e=Ct(t);return e.from==null?e.from=this.getAddress():e.from=Promise.all([Promise.resolve(e.from),this.getAddress()]).then(r=>(r[0].toLowerCase()!==r[1].toLowerCase()&&re.throwArgumentError("from address mismatch","transaction",t),r[0])),e}populateTransaction(t){return ee(this,void 0,void 0,function*(){const e=yield Lt(this.checkTransaction(t));e.to!=null&&(e.to=Promise.resolve(e.to).then(n=>ee(this,void 0,void 0,function*(){if(n==null)return null;const i=yield this.resolveName(n);return i==null&&re.throwArgumentError("provided ENS name resolves to null","tx.to",n),i})),e.to.catch(n=>{}));const r=e.maxFeePerGas!=null||e.maxPriorityFeePerGas!=null;if(e.gasPrice!=null&&(e.type===2||r)?re.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",t):(e.type===0||e.type===1)&&r&&re.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",t),(e.type===2||e.type==null)&&e.maxFeePerGas!=null&&e.maxPriorityFeePerGas!=null)e.type=2;else if(e.type===0||e.type===1)e.gasPrice==null&&(e.gasPrice=this.getGasPrice());else{const n=yield this.getFeeData();if(e.type==null)if(n.maxFeePerGas!=null&&n.maxPriorityFeePerGas!=null)if(e.type=2,e.gasPrice!=null){const i=e.gasPrice;delete e.gasPrice,e.maxFeePerGas=i,e.maxPriorityFeePerGas=i}else e.maxFeePerGas==null&&(e.maxFeePerGas=n.maxFeePerGas),e.maxPriorityFeePerGas==null&&(e.maxPriorityFeePerGas=n.maxPriorityFeePerGas);else n.gasPrice!=null?(r&&re.throwError("network does not support EIP-1559",x.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),e.gasPrice==null&&(e.gasPrice=n.gasPrice),e.type=0):re.throwError("failed to get consistent fee data",x.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else e.type===2&&(e.maxFeePerGas==null&&(e.maxFeePerGas=n.maxFeePerGas),e.maxPriorityFeePerGas==null&&(e.maxPriorityFeePerGas=n.maxPriorityFeePerGas))}return e.nonce==null&&(e.nonce=this.getTransactionCount("pending")),e.gasLimit==null&&(e.gasLimit=this.estimateGas(e).catch(n=>{if(Xn.indexOf(n.code)>=0)throw n;return re.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",x.errors.UNPREDICTABLE_GAS_LIMIT,{error:n,tx:e})})),e.chainId==null?e.chainId=this.getChainId():e.chainId=Promise.all([Promise.resolve(e.chainId),this.getChainId()]).then(n=>(n[1]!==0&&n[0]!==n[1]&&re.throwArgumentError("chainId address mismatch","transaction",t),n[0])),yield Lt(e)})}_checkProvider(t){this.provider||re.throwError("missing provider",x.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"})}static isSigner(t){return!!(t&&t._isSigner)}}const Vn="0x0000000000000000000000000000000000000000",Zn="0x0000000000000000000000000000000000000000000000000000000000000000",ln="hash/5.7.0";function un(s){s=atob(s);const t=[];for(let e=0;e0&&Array.isArray(u)?n(u,a-1):e.push(u)})};return n(s,t),e}function $n(s){const t={};for(let e=0;e>--h&1}const A=31,M=Math.pow(2,A),E=M>>>1,_=E>>1,I=M-1;let T=0;for(let F=0;F1;){let we=z+Vt>>>1;F>>1|p(),Kt=Kt<<1^E,Ft=(Ft^E)<<1|E|1;S=Kt,G=1+Ft-Kt}let J=r-4;return P.map(F=>{switch(F-J){case 3:return J+65792+(s[u++]<<16|s[u++]<<8|s[u++]);case 2:return J+256+(s[u++]<<8|s[u++]);case 1:return J+s[u++];default:return F-1}})}function es(s){let t=0;return()=>s[t++]}function rs(s){return es(ts(s))}function is(s){return s&1?~s>>1:s>>1}function ns(s,t){let e=Array(s);for(let r=0;rt[a]):e}function os(s){let t=[];for(;;){let e=s();if(e==0)break;t.push(fs(e,s))}for(;;){let e=s()-1;if(e<0)break;t.push(ls(e,s))}return $n(cn(t))}function as(s){let t=[];for(;;){let e=s();if(e==0)break;t.push(e)}return t}function dn(s,t,e){let r=Array(s).fill(void 0).map(()=>[]);for(let n=0;nr[a].push(i));return r}function fs(s,t){let e=1+t(),r=t(),n=as(t),i=dn(n.length,1+s,t);return cn(i.map((a,u)=>{const h=a[0],d=a.slice(1);return Array(n[u]).fill(void 0).map((p,A)=>{let M=A*r;return[h+A*e,d.map(E=>E+M)]})}))}function ls(s,t){let e=1+t();return dn(e,1+s,t).map(n=>[n[0],n.slice(1)])}function us(s){let t=tr(s).sort((r,n)=>r-n);return e();function e(){let r=[];for(;;){let d=tr(s,t);if(d.length==0)break;r.push({set:new Set(d),node:e()})}r.sort((d,p)=>p.set.size-d.set.size);let n=s(),i=n%3;n=n/3|0;let a=!!(n&1);n>>=1;let u=n==1,h=n==2;return{branches:r,valid:i,fe0f:a,save:u,check:h}}}function hs(){return rs(un("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw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aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}const lr=hs(),cs=new Set(tr(lr)),ds=new Set(tr(lr)),ps=os(lr),gs=us(lr),xi=45,Mi=95;function pn(s){return Dn(s)}function ms(s){return s.filter(t=>t!=65039)}function gn(s){for(let t of s.split(".")){let e=pn(t);try{for(let r=e.lastIndexOf(Mi)-1;r>=0;r--)if(e[r]!==Mi)throw new Error("underscore only allowed at start");if(e.length>=4&&e.every(r=>r<128)&&e[2]===xi&&e[3]===xi)throw new Error("invalid label extension")}catch(r){throw new Error(`Invalid label "${t}": ${r.message}`)}}return s}function vs(s){return gn(ws(s,ms))}function ws(s,t){let e=pn(s).reverse(),r=[];for(;e.length;){let n=As(e);if(n){r.push(...t(n));continue}let i=e.pop();if(cs.has(i)){r.push(i);continue}if(ds.has(i))continue;let a=ps[i];if(a){r.push(...a);continue}throw new Error(`Disallowed codepoint: 0x${i.toString(16).toUpperCase()}`)}return gn(ys(String.fromCodePoint(...r)))}function ys(s){return s.normalize("NFC")}function As(s,t){var e;let r=gs,n,i,a=[],u=s.length;for(t&&(t.length=0);u;){let h=s[--u];if(r=(e=r.branches.find(d=>d.set.has(h)))===null||e===void 0?void 0:e.node,!r)break;if(r.save)i=h;else if(r.check&&h===i)break;a.push(h),r.fe0f&&(a.push(65039),u>0&&s[u-1]==65039&&u--),r.valid&&(n=a.slice(),r.valid==2&&n.splice(1,1),t&&t.push(...s.slice(u).reverse()),s.length=u)}return n}const bs=new x(ln),mn=new Uint8Array(32);mn.fill(0);function _i(s){if(s.length===0)throw new Error("invalid ENS name; empty component");return s}function vn(s){const t=ke(vs(s)),e=[];if(s.length===0)return e;let r=0;for(let n=0;n=t.length)throw new Error("invalid ENS name; empty component");return e.push(_i(t.slice(r))),e}function Ye(s){typeof s!="string"&&bs.throwArgumentError("invalid ENS name; not a string","name",s);let t=mn;const e=vn(s);for(;e.length;)t=Qt(be([t,Qt(e.pop())]));return Q(t)}function ks(s){return Q(be(vn(s).map(t=>{if(t.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const e=new Uint8Array(t.length+1);return e.set(t,1),e[0]=e.length-1,e})))+"00"}var Es=globalThis&&globalThis.__awaiter||function(s,t,e,r){function n(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function u(p){try{d(r.next(p))}catch(A){a(A)}}function h(p){try{d(r.throw(p))}catch(A){a(A)}}function d(p){p.done?i(p.value):n(p.value).then(u,h)}d((r=r.apply(s,t||[])).next())})};const Y=new x(ln),wn=new Uint8Array(32);wn.fill(0);const xs=O.from(-1),yn=O.from(0),An=O.from(1),Ms=O.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function _s(s){const t=K(s),e=t.length%32;return e?Wt([t,wn.slice(e)]):Q(t)}const Is=Dt(An.toHexString(),32),Ps=Dt(yn.toHexString(),32),Ii={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Tr=["name","version","chainId","verifyingContract","salt"];function Pi(s){return function(t){return typeof t!="string"&&Y.throwArgumentError(`invalid domain value for ${JSON.stringify(s)}`,`domain.${s}`,t),t}}const Ns={name:Pi("name"),version:Pi("version"),chainId:function(s){try{return O.from(s).toString()}catch{}return Y.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",s)},verifyingContract:function(s){try{return ue(s).toLowerCase()}catch{}return Y.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",s)},salt:function(s){try{const t=K(s);if(t.length!==32)throw new Error("bad length");return Q(t)}catch{}return Y.throwArgumentError('invalid domain value "salt"',"domain.salt",s)}};function Br(s){{const t=s.match(/^(u?)int(\d*)$/);if(t){const e=t[1]==="",r=parseInt(t[2]||"256");(r%8!==0||r>256||t[2]&&t[2]!==String(r))&&Y.throwArgumentError("invalid numeric width","type",s);const n=Ms.mask(e?r-1:r),i=e?n.add(An).mul(xs):yn;return function(a){const u=O.from(a);return(u.lt(i)||u.gt(n))&&Y.throwArgumentError(`value out-of-bounds for ${s}`,"value",a),Dt(u.toTwos(256).toHexString(),32)}}}{const t=s.match(/^bytes(\d+)$/);if(t){const e=parseInt(t[1]);return(e===0||e>32||t[1]!==String(e))&&Y.throwArgumentError("invalid bytes width","type",s),function(r){return K(r).length!==e&&Y.throwArgumentError(`invalid length for ${s}`,"value",r),_s(r)}}}switch(s){case"address":return function(t){return Dt(ue(t),32)};case"bool":return function(t){return t?Is:Ps};case"bytes":return function(t){return Qt(t)};case"string":return function(t){return fn(t)}}return null}function Ni(s,t){return`${s}(${t.map(({name:e,type:r})=>r+" "+e).join(",")})`}class jt{constructor(t){R(this,"types",Object.freeze(le(t))),R(this,"_encoderCache",{}),R(this,"_types",{});const e={},r={},n={};Object.keys(t).forEach(u=>{e[u]={},r[u]=[],n[u]={}});for(const u in t){const h={};t[u].forEach(d=>{h[d.name]&&Y.throwArgumentError(`duplicate variable name ${JSON.stringify(d.name)} in ${JSON.stringify(u)}`,"types",t),h[d.name]=!0;const p=d.type.match(/^([^\x5b]*)(\x5b|$)/)[1];p===u&&Y.throwArgumentError(`circular type reference to ${JSON.stringify(p)}`,"types",t),!Br(p)&&(r[p]||Y.throwArgumentError(`unknown type ${JSON.stringify(p)}`,"types",t),r[p].push(u),e[u][p]=!0)})}const i=Object.keys(r).filter(u=>r[u].length===0);i.length===0?Y.throwArgumentError("missing primary type","types",t):i.length>1&&Y.throwArgumentError(`ambiguous primary types or unused types: ${i.map(u=>JSON.stringify(u)).join(", ")}`,"types",t),R(this,"primaryType",i[0]);function a(u,h){h[u]&&Y.throwArgumentError(`circular type reference to ${JSON.stringify(u)}`,"types",t),h[u]=!0,Object.keys(e[u]).forEach(d=>{r[d]&&(a(d,h),Object.keys(h).forEach(p=>{n[p][d]=!0}))}),delete h[u]}a(this.primaryType,{});for(const u in n){const h=Object.keys(n[u]);h.sort(),this._types[u]=Ni(u,t[u])+h.map(d=>Ni(d,t[d])).join("")}}getEncoder(t){let e=this._encoderCache[t];return e||(e=this._encoderCache[t]=this._getEncoder(t)),e}_getEncoder(t){{const n=Br(t);if(n)return n}const e=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(e){const n=e[1],i=this.getEncoder(n),a=parseInt(e[3]);return u=>{a>=0&&u.length!==a&&Y.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",u);let h=u.map(i);return this._types[n]&&(h=h.map(Qt)),Qt(Wt(h))}}const r=this.types[t];if(r){const n=fn(this._types[t]);return i=>{const a=r.map(({name:u,type:h})=>{const d=this.getEncoder(h)(i[u]);return this._types[h]?Qt(d):d});return a.unshift(n),Wt(a)}}return Y.throwArgumentError(`unknown type: ${t}`,"type",t)}encodeType(t){const e=this._types[t];return e||Y.throwArgumentError(`unknown type: ${JSON.stringify(t)}`,"name",t),e}encodeData(t,e){return this.getEncoder(t)(e)}hashStruct(t,e){return Qt(this.encodeData(t,e))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,e,r){if(Br(t))return r(t,e);const n=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){const a=n[1],u=parseInt(n[3]);return u>=0&&e.length!==u&&Y.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e),e.map(h=>this._visit(a,h,r))}const i=this.types[t];return i?i.reduce((a,{name:u,type:h})=>(a[u]=this._visit(h,e[u],r),a),{}):Y.throwArgumentError(`unknown type: ${t}`,"type",t)}visit(t,e){return this._visit(this.primaryType,t,e)}static from(t){return new jt(t)}static getPrimaryType(t){return jt.from(t).primaryType}static hashStruct(t,e,r){return jt.from(e).hashStruct(t,r)}static hashDomain(t){const e=[];for(const r in t){const n=Ii[r];n||Y.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",t),e.push({name:r,type:n})}return e.sort((r,n)=>Tr.indexOf(r.name)-Tr.indexOf(n.name)),jt.hashStruct("EIP712Domain",{EIP712Domain:e},t)}static encode(t,e,r){return Wt(["0x1901",jt.hashDomain(t),jt.from(e).hash(r)])}static hash(t,e,r){return Qt(jt.encode(t,e,r))}static resolveNames(t,e,r,n){return Es(this,void 0,void 0,function*(){t=Ct(t);const i={};t.verifyingContract&&!Bt(t.verifyingContract,20)&&(i[t.verifyingContract]="0x");const a=jt.from(e);a.visit(r,(u,h)=>(u==="address"&&!Bt(h,20)&&(i[h]="0x"),h));for(const u in i)i[u]=yield n(u);return t.verifyingContract&&i[t.verifyingContract]&&(t.verifyingContract=i[t.verifyingContract]),r=a.visit(r,(u,h)=>u==="address"&&i[h]?i[h]:h),{domain:t,value:r}})}static getPayload(t,e,r){jt.hashDomain(t);const n={},i=[];Tr.forEach(h=>{const d=t[h];d!=null&&(n[h]=Ns[h](d),i.push({name:h,type:Ii[h]}))});const a=jt.from(e),u=Ct(e);return u.EIP712Domain?Y.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",e):u.EIP712Domain=i,a.encode(r),{types:u,domain:n,primaryType:a.primaryType,message:a.visit(r,(h,d)=>{if(h.match(/^bytes(\d*)/))return Q(K(d));if(h.match(/^u?int/))return O.from(d).toString();switch(h){case"address":return d.toLowerCase();case"bool":return!!d;case"string":return typeof d!="string"&&Y.throwArgumentError("invalid string","value",d),d}return Y.throwArgumentError("unsupported type","type",h)})}}}class bn{constructor(t){R(this,"alphabet",t),R(this,"base",t.length),R(this,"_alphabetMap",{}),R(this,"_leader",t.charAt(0));for(let e=0;e0;)r.push(a%this.base),a=a/this.base|0}let n="";for(let i=0;e[i]===0&&i=0;--i)n+=this.alphabet[r[i]];return n}decode(t){if(typeof t!="string")throw new TypeError("Expected String");let e=[];if(t.length===0)return new Uint8Array(e);e.push(0);for(let r=0;r>=8;for(;i>0;)e.push(i&255),i>>=8}for(let r=0;t[r]===this._leader&&r0?o:l},i.min=function(o,l){return o.cmp(l)<0?o:l},i.prototype._init=function(o,l,c){if(typeof o=="number")return this._initNumber(o,l,c);if(typeof o=="object")return this._initArray(o,l,c);l==="hex"&&(l=16),r(l===(l|0)&&l>=2&&l<=36),o=o.toString().replace(/\s+/g,"");var m=0;o[0]==="-"&&(m++,this.negative=1),m=0;m-=3)b=o[m]|o[m-1]<<8|o[m-2]<<16,this.words[w]|=b<>>26-k&67108863,k+=24,k>=26&&(k-=26,w++);else if(c==="le")for(m=0,w=0;m>>26-k&67108863,k+=24,k>=26&&(k-=26,w++);return this._strip()};function u(y,o){var l=y.charCodeAt(o);if(l>=48&&l<=57)return l-48;if(l>=65&&l<=70)return l-55;if(l>=97&&l<=102)return l-87;r(!1,"Invalid character in "+y)}function h(y,o,l){var c=u(y,l);return l-1>=o&&(c|=u(y,l-1)<<4),c}i.prototype._parseHex=function(o,l,c){this.length=Math.ceil((o.length-l)/6),this.words=new Array(this.length);for(var m=0;m=l;m-=2)k=h(o,l,m)<=18?(w-=18,b+=1,this.words[b]|=k>>>26):w+=8;else{var g=o.length-l;for(m=g%2===0?l+1:l;m=18?(w-=18,b+=1,this.words[b]|=k>>>26):w+=8}this._strip()};function d(y,o,l,c){for(var m=0,w=0,b=Math.min(y.length,l),k=o;k=49?w=g-49+10:g>=17?w=g-17+10:w=g,r(g>=0&&w1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=A}catch{i.prototype.inspect=A}else i.prototype.inspect=A;function A(){return(this.red?""}var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],_=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(o,l){o=o||10,l=l|0||1;var c;if(o===16||o==="hex"){c="";for(var m=0,w=0,b=0;b>>24-m&16777215,m+=2,m>=26&&(m-=26,b--),w!==0||b!==this.length-1?c=M[6-g.length]+g+c:c=g+c}for(w!==0&&(c=w.toString(16)+c);c.length%l!==0;)c="0"+c;return this.negative!==0&&(c="-"+c),c}if(o===(o|0)&&o>=2&&o<=36){var f=E[o],v=_[o];c="";var C=this.clone();for(C.negative=0;!C.isZero();){var B=C.modrn(v).toString(o);C=C.idivn(v),C.isZero()?c=B+c:c=M[f-B.length]+B+c}for(this.isZero()&&(c="0"+c);c.length%l!==0;)c="0"+c;return this.negative!==0&&(c="-"+c),c}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},i.prototype.toJSON=function(){return this.toString(16,2)},a&&(i.prototype.toBuffer=function(o,l){return this.toArrayLike(a,o,l)}),i.prototype.toArray=function(o,l){return this.toArrayLike(Array,o,l)};var I=function(o,l){return o.allocUnsafe?o.allocUnsafe(l):new o(l)};i.prototype.toArrayLike=function(o,l,c){this._strip();var m=this.byteLength(),w=c||Math.max(1,m);r(m<=w,"byte array longer than desired length"),r(w>0,"Requested array length <= 0");var b=I(o,w),k=l==="le"?"LE":"BE";return this["_toArrayLike"+k](b,m),b},i.prototype._toArrayLikeLE=function(o,l){for(var c=0,m=0,w=0,b=0;w>8&255),c>16&255),b===6?(c>24&255),m=0,b=0):(m=k>>>24,b+=2)}if(c=0&&(o[c--]=k>>8&255),c>=0&&(o[c--]=k>>16&255),b===6?(c>=0&&(o[c--]=k>>24&255),m=0,b=0):(m=k>>>24,b+=2)}if(c>=0)for(o[c--]=m;c>=0;)o[c--]=0},Math.clz32?i.prototype._countBits=function(o){return 32-Math.clz32(o)}:i.prototype._countBits=function(o){var l=o,c=0;return l>=4096&&(c+=13,l>>>=13),l>=64&&(c+=7,l>>>=7),l>=8&&(c+=4,l>>>=4),l>=2&&(c+=2,l>>>=2),c+l},i.prototype._zeroBits=function(o){if(o===0)return 26;var l=o,c=0;return l&8191||(c+=13,l>>>=13),l&127||(c+=7,l>>>=7),l&15||(c+=4,l>>>=4),l&3||(c+=2,l>>>=2),l&1||c++,c},i.prototype.bitLength=function(){var o=this.words[this.length-1],l=this._countBits(o);return(this.length-1)*26+l};function T(y){for(var o=new Array(y.bitLength()),l=0;l>>m&1}return o}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,l=0;lo.length?this.clone().ior(o):o.clone().ior(this)},i.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},i.prototype.iuand=function(o){var l;this.length>o.length?l=o:l=this;for(var c=0;co.length?this.clone().iand(o):o.clone().iand(this)},i.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},i.prototype.iuxor=function(o){var l,c;this.length>o.length?(l=this,c=o):(l=o,c=this);for(var m=0;mo.length?this.clone().ixor(o):o.clone().ixor(this)},i.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},i.prototype.inotn=function(o){r(typeof o=="number"&&o>=0);var l=Math.ceil(o/26)|0,c=o%26;this._expand(l),c>0&&l--;for(var m=0;m0&&(this.words[m]=~this.words[m]&67108863>>26-c),this._strip()},i.prototype.notn=function(o){return this.clone().inotn(o)},i.prototype.setn=function(o,l){r(typeof o=="number"&&o>=0);var c=o/26|0,m=o%26;return this._expand(c+1),l?this.words[c]=this.words[c]|1<o.length?(c=this,m=o):(c=o,m=this);for(var w=0,b=0;b>>26;for(;w!==0&&b>>26;if(this.length=c.length,w!==0)this.words[this.length]=w,this.length++;else if(c!==this)for(;bo.length?this.clone().iadd(o):o.clone().iadd(this)},i.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var l=this.iadd(o);return o.negative=1,l._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var c=this.cmp(o);if(c===0)return this.negative=0,this.length=1,this.words[0]=0,this;var m,w;c>0?(m=this,w=o):(m=o,w=this);for(var b=0,k=0;k>26,this.words[k]=l&67108863;for(;b!==0&&k>26,this.words[k]=l&67108863;if(b===0&&k>>26,C=g&67108863,B=Math.min(f,o.length-1),L=Math.max(0,f-y.length+1);L<=B;L++){var Ut=f-L|0;m=y.words[Ut]|0,w=o.words[L]|0,b=m*w+C,v+=b/67108864|0,C=b&67108863}l.words[f]=C|0,g=v|0}return g!==0?l.words[f]=g|0:l.length--,l._strip()}var S=function(o,l,c){var m=o.words,w=l.words,b=c.words,k=0,g,f,v,C=m[0]|0,B=C&8191,L=C>>>13,Ut=m[1]|0,H=Ut&8191,j=Ut>>>13,ni=m[2]|0,X=ni&8191,V=ni>>>13,si=m[3]|0,Z=si&8191,$=si>>>13,oi=m[4]|0,tt=oi&8191,et=oi>>>13,ai=m[5]|0,rt=ai&8191,it=ai>>>13,fi=m[6]|0,nt=fi&8191,st=fi>>>13,li=m[7]|0,ot=li&8191,at=li>>>13,ui=m[8]|0,ft=ui&8191,lt=ui>>>13,hi=m[9]|0,ut=hi&8191,ht=hi>>>13,ci=w[0]|0,ct=ci&8191,dt=ci>>>13,di=w[1]|0,pt=di&8191,gt=di>>>13,pi=w[2]|0,mt=pi&8191,vt=pi>>>13,gi=w[3]|0,wt=gi&8191,yt=gi>>>13,mi=w[4]|0,At=mi&8191,bt=mi>>>13,vi=w[5]|0,kt=vi&8191,Et=vi>>>13,wi=w[6]|0,xt=wi&8191,Mt=wi>>>13,yi=w[7]|0,_t=yi&8191,It=yi>>>13,Ai=w[8]|0,Pt=Ai&8191,Nt=Ai>>>13,bi=w[9]|0,St=bi&8191,Rt=bi>>>13;c.negative=o.negative^l.negative,c.length=19,g=Math.imul(B,ct),f=Math.imul(B,dt),f=f+Math.imul(L,ct)|0,v=Math.imul(L,dt);var dr=(k+g|0)+((f&8191)<<13)|0;k=(v+(f>>>13)|0)+(dr>>>26)|0,dr&=67108863,g=Math.imul(H,ct),f=Math.imul(H,dt),f=f+Math.imul(j,ct)|0,v=Math.imul(j,dt),g=g+Math.imul(B,pt)|0,f=f+Math.imul(B,gt)|0,f=f+Math.imul(L,pt)|0,v=v+Math.imul(L,gt)|0;var pr=(k+g|0)+((f&8191)<<13)|0;k=(v+(f>>>13)|0)+(pr>>>26)|0,pr&=67108863,g=Math.imul(X,ct),f=Math.imul(X,dt),f=f+Math.imul(V,ct)|0,v=Math.imul(V,dt),g=g+Math.imul(H,pt)|0,f=f+Math.imul(H,gt)|0,f=f+Math.imul(j,pt)|0,v=v+Math.imul(j,gt)|0,g=g+Math.imul(B,mt)|0,f=f+Math.imul(B,vt)|0,f=f+Math.imul(L,mt)|0,v=v+Math.imul(L,vt)|0;var gr=(k+g|0)+((f&8191)<<13)|0;k=(v+(f>>>13)|0)+(gr>>>26)|0,gr&=67108863,g=Math.imul(Z,ct),f=Math.imul(Z,dt),f=f+Math.imul($,ct)|0,v=Math.imul($,dt),g=g+Math.imul(X,pt)|0,f=f+Math.imul(X,gt)|0,f=f+Math.imul(V,pt)|0,v=v+Math.imul(V,gt)|0,g=g+Math.imul(H,mt)|0,f=f+Math.imul(H,vt)|0,f=f+Math.imul(j,mt)|0,v=v+Math.imul(j,vt)|0,g=g+Math.imul(B,wt)|0,f=f+Math.imul(B,yt)|0,f=f+Math.imul(L,wt)|0,v=v+Math.imul(L,yt)|0;var mr=(k+g|0)+((f&8191)<<13)|0;k=(v+(f>>>13)|0)+(mr>>>26)|0,mr&=67108863,g=Math.imul(tt,ct),f=Math.imul(tt,dt),f=f+Math.imul(et,ct)|0,v=Math.imul(et,dt),g=g+Math.imul(Z,pt)|0,f=f+Math.imul(Z,gt)|0,f=f+Math.imul($,pt)|0,v=v+Math.imul($,gt)|0,g=g+Math.imul(X,mt)|0,f=f+Math.imul(X,vt)|0,f=f+Math.imul(V,mt)|0,v=v+Math.imul(V,vt)|0,g=g+Math.imul(H,wt)|0,f=f+Math.imul(H,yt)|0,f=f+Math.imul(j,wt)|0,v=v+Math.imul(j,yt)|0,g=g+Math.imul(B,At)|0,f=f+Math.imul(B,bt)|0,f=f+Math.imul(L,At)|0,v=v+Math.imul(L,bt)|0;var vr=(k+g|0)+((f&8191)<<13)|0;k=(v+(f>>>13)|0)+(vr>>>26)|0,vr&=67108863,g=Math.imul(rt,ct),f=Math.imul(rt,dt),f=f+Math.imul(it,ct)|0,v=Math.imul(it,dt),g=g+Math.imul(tt,pt)|0,f=f+Math.imul(tt,gt)|0,f=f+Math.imul(et,pt)|0,v=v+Math.imul(et,gt)|0,g=g+Math.imul(Z,mt)|0,f=f+Math.imul(Z,vt)|0,f=f+Math.imul($,mt)|0,v=v+Math.imul($,vt)|0,g=g+Math.imul(X,wt)|0,f=f+Math.imul(X,yt)|0,f=f+Math.imul(V,wt)|0,v=v+Math.imul(V,yt)|0,g=g+Math.imul(H,At)|0,f=f+Math.imul(H,bt)|0,f=f+Math.imul(j,At)|0,v=v+Math.imul(j,bt)|0,g=g+Math.imul(B,kt)|0,f=f+Math.imul(B,Et)|0,f=f+Math.imul(L,kt)|0,v=v+Math.imul(L,Et)|0;var wr=(k+g|0)+((f&8191)<<13)|0;k=(v+(f>>>13)|0)+(wr>>>26)|0,wr&=67108863,g=Math.imul(nt,ct),f=Math.imul(nt,dt),f=f+Math.imul(st,ct)|0,v=Math.imul(st,dt),g=g+Math.imul(rt,pt)|0,f=f+Math.imul(rt,gt)|0,f=f+Math.imul(it,pt)|0,v=v+Math.imul(it,gt)|0,g=g+Math.imul(tt,mt)|0,f=f+Math.imul(tt,vt)|0,f=f+Math.imul(et,mt)|0,v=v+Math.imul(et,vt)|0,g=g+Math.imul(Z,wt)|0,f=f+Math.imul(Z,yt)|0,f=f+Math.imul($,wt)|0,v=v+Math.imul($,yt)|0,g=g+Math.imul(X,At)|0,f=f+Math.imul(X,bt)|0,f=f+Math.imul(V,At)|0,v=v+Math.imul(V,bt)|0,g=g+Math.imul(H,kt)|0,f=f+Math.imul(H,Et)|0,f=f+Math.imul(j,kt)|0,v=v+Math.imul(j,Et)|0,g=g+Math.imul(B,xt)|0,f=f+Math.imul(B,Mt)|0,f=f+Math.imul(L,xt)|0,v=v+Math.imul(L,Mt)|0;var yr=(k+g|0)+((f&8191)<<13)|0;k=(v+(f>>>13)|0)+(yr>>>26)|0,yr&=67108863,g=Math.imul(ot,ct),f=Math.imul(ot,dt),f=f+Math.imul(at,ct)|0,v=Math.imul(at,dt),g=g+Math.imul(nt,pt)|0,f=f+Math.imul(nt,gt)|0,f=f+Math.imul(st,pt)|0,v=v+Math.imul(st,gt)|0,g=g+Math.imul(rt,mt)|0,f=f+Math.imul(rt,vt)|0,f=f+Math.imul(it,mt)|0,v=v+Math.imul(it,vt)|0,g=g+Math.imul(tt,wt)|0,f=f+Math.imul(tt,yt)|0,f=f+Math.imul(et,wt)|0,v=v+Math.imul(et,yt)|0,g=g+Math.imul(Z,At)|0,f=f+Math.imul(Z,bt)|0,f=f+Math.imul($,At)|0,v=v+Math.imul($,bt)|0,g=g+Math.imul(X,kt)|0,f=f+Math.imul(X,Et)|0,f=f+Math.imul(V,kt)|0,v=v+Math.imul(V,Et)|0,g=g+Math.imul(H,xt)|0,f=f+Math.imul(H,Mt)|0,f=f+Math.imul(j,xt)|0,v=v+Math.imul(j,Mt)|0,g=g+Math.imul(B,_t)|0,f=f+Math.imul(B,It)|0,f=f+Math.imul(L,_t)|0,v=v+Math.imul(L,It)|0;var Ar=(k+g|0)+((f&8191)<<13)|0;k=(v+(f>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,g=Math.imul(ft,ct),f=Math.imul(ft,dt),f=f+Math.imul(lt,ct)|0,v=Math.imul(lt,dt),g=g+Math.imul(ot,pt)|0,f=f+Math.imul(ot,gt)|0,f=f+Math.imul(at,pt)|0,v=v+Math.imul(at,gt)|0,g=g+Math.imul(nt,mt)|0,f=f+Math.imul(nt,vt)|0,f=f+Math.imul(st,mt)|0,v=v+Math.imul(st,vt)|0,g=g+Math.imul(rt,wt)|0,f=f+Math.imul(rt,yt)|0,f=f+Math.imul(it,wt)|0,v=v+Math.imul(it,yt)|0,g=g+Math.imul(tt,At)|0,f=f+Math.imul(tt,bt)|0,f=f+Math.imul(et,At)|0,v=v+Math.imul(et,bt)|0,g=g+Math.imul(Z,kt)|0,f=f+Math.imul(Z,Et)|0,f=f+Math.imul($,kt)|0,v=v+Math.imul($,Et)|0,g=g+Math.imul(X,xt)|0,f=f+Math.imul(X,Mt)|0,f=f+Math.imul(V,xt)|0,v=v+Math.imul(V,Mt)|0,g=g+Math.imul(H,_t)|0,f=f+Math.imul(H,It)|0,f=f+Math.imul(j,_t)|0,v=v+Math.imul(j,It)|0,g=g+Math.imul(B,Pt)|0,f=f+Math.imul(B,Nt)|0,f=f+Math.imul(L,Pt)|0,v=v+Math.imul(L,Nt)|0;var br=(k+g|0)+((f&8191)<<13)|0;k=(v+(f>>>13)|0)+(br>>>26)|0,br&=67108863,g=Math.imul(ut,ct),f=Math.imul(ut,dt),f=f+Math.imul(ht,ct)|0,v=Math.imul(ht,dt),g=g+Math.imul(ft,pt)|0,f=f+Math.imul(ft,gt)|0,f=f+Math.imul(lt,pt)|0,v=v+Math.imul(lt,gt)|0,g=g+Math.imul(ot,mt)|0,f=f+Math.imul(ot,vt)|0,f=f+Math.imul(at,mt)|0,v=v+Math.imul(at,vt)|0,g=g+Math.imul(nt,wt)|0,f=f+Math.imul(nt,yt)|0,f=f+Math.imul(st,wt)|0,v=v+Math.imul(st,yt)|0,g=g+Math.imul(rt,At)|0,f=f+Math.imul(rt,bt)|0,f=f+Math.imul(it,At)|0,v=v+Math.imul(it,bt)|0,g=g+Math.imul(tt,kt)|0,f=f+Math.imul(tt,Et)|0,f=f+Math.imul(et,kt)|0,v=v+Math.imul(et,Et)|0,g=g+Math.imul(Z,xt)|0,f=f+Math.imul(Z,Mt)|0,f=f+Math.imul($,xt)|0,v=v+Math.imul($,Mt)|0,g=g+Math.imul(X,_t)|0,f=f+Math.imul(X,It)|0,f=f+Math.imul(V,_t)|0,v=v+Math.imul(V,It)|0,g=g+Math.imul(H,Pt)|0,f=f+Math.imul(H,Nt)|0,f=f+Math.imul(j,Pt)|0,v=v+Math.imul(j,Nt)|0,g=g+Math.imul(B,St)|0,f=f+Math.imul(B,Rt)|0,f=f+Math.imul(L,St)|0,v=v+Math.imul(L,Rt)|0;var kr=(k+g|0)+((f&8191)<<13)|0;k=(v+(f>>>13)|0)+(kr>>>26)|0,kr&=67108863,g=Math.imul(ut,pt),f=Math.imul(ut,gt),f=f+Math.imul(ht,pt)|0,v=Math.imul(ht,gt),g=g+Math.imul(ft,mt)|0,f=f+Math.imul(ft,vt)|0,f=f+Math.imul(lt,mt)|0,v=v+Math.imul(lt,vt)|0,g=g+Math.imul(ot,wt)|0,f=f+Math.imul(ot,yt)|0,f=f+Math.imul(at,wt)|0,v=v+Math.imul(at,yt)|0,g=g+Math.imul(nt,At)|0,f=f+Math.imul(nt,bt)|0,f=f+Math.imul(st,At)|0,v=v+Math.imul(st,bt)|0,g=g+Math.imul(rt,kt)|0,f=f+Math.imul(rt,Et)|0,f=f+Math.imul(it,kt)|0,v=v+Math.imul(it,Et)|0,g=g+Math.imul(tt,xt)|0,f=f+Math.imul(tt,Mt)|0,f=f+Math.imul(et,xt)|0,v=v+Math.imul(et,Mt)|0,g=g+Math.imul(Z,_t)|0,f=f+Math.imul(Z,It)|0,f=f+Math.imul($,_t)|0,v=v+Math.imul($,It)|0,g=g+Math.imul(X,Pt)|0,f=f+Math.imul(X,Nt)|0,f=f+Math.imul(V,Pt)|0,v=v+Math.imul(V,Nt)|0,g=g+Math.imul(H,St)|0,f=f+Math.imul(H,Rt)|0,f=f+Math.imul(j,St)|0,v=v+Math.imul(j,Rt)|0;var Er=(k+g|0)+((f&8191)<<13)|0;k=(v+(f>>>13)|0)+(Er>>>26)|0,Er&=67108863,g=Math.imul(ut,mt),f=Math.imul(ut,vt),f=f+Math.imul(ht,mt)|0,v=Math.imul(ht,vt),g=g+Math.imul(ft,wt)|0,f=f+Math.imul(ft,yt)|0,f=f+Math.imul(lt,wt)|0,v=v+Math.imul(lt,yt)|0,g=g+Math.imul(ot,At)|0,f=f+Math.imul(ot,bt)|0,f=f+Math.imul(at,At)|0,v=v+Math.imul(at,bt)|0,g=g+Math.imul(nt,kt)|0,f=f+Math.imul(nt,Et)|0,f=f+Math.imul(st,kt)|0,v=v+Math.imul(st,Et)|0,g=g+Math.imul(rt,xt)|0,f=f+Math.imul(rt,Mt)|0,f=f+Math.imul(it,xt)|0,v=v+Math.imul(it,Mt)|0,g=g+Math.imul(tt,_t)|0,f=f+Math.imul(tt,It)|0,f=f+Math.imul(et,_t)|0,v=v+Math.imul(et,It)|0,g=g+Math.imul(Z,Pt)|0,f=f+Math.imul(Z,Nt)|0,f=f+Math.imul($,Pt)|0,v=v+Math.imul($,Nt)|0,g=g+Math.imul(X,St)|0,f=f+Math.imul(X,Rt)|0,f=f+Math.imul(V,St)|0,v=v+Math.imul(V,Rt)|0;var xr=(k+g|0)+((f&8191)<<13)|0;k=(v+(f>>>13)|0)+(xr>>>26)|0,xr&=67108863,g=Math.imul(ut,wt),f=Math.imul(ut,yt),f=f+Math.imul(ht,wt)|0,v=Math.imul(ht,yt),g=g+Math.imul(ft,At)|0,f=f+Math.imul(ft,bt)|0,f=f+Math.imul(lt,At)|0,v=v+Math.imul(lt,bt)|0,g=g+Math.imul(ot,kt)|0,f=f+Math.imul(ot,Et)|0,f=f+Math.imul(at,kt)|0,v=v+Math.imul(at,Et)|0,g=g+Math.imul(nt,xt)|0,f=f+Math.imul(nt,Mt)|0,f=f+Math.imul(st,xt)|0,v=v+Math.imul(st,Mt)|0,g=g+Math.imul(rt,_t)|0,f=f+Math.imul(rt,It)|0,f=f+Math.imul(it,_t)|0,v=v+Math.imul(it,It)|0,g=g+Math.imul(tt,Pt)|0,f=f+Math.imul(tt,Nt)|0,f=f+Math.imul(et,Pt)|0,v=v+Math.imul(et,Nt)|0,g=g+Math.imul(Z,St)|0,f=f+Math.imul(Z,Rt)|0,f=f+Math.imul($,St)|0,v=v+Math.imul($,Rt)|0;var Mr=(k+g|0)+((f&8191)<<13)|0;k=(v+(f>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,g=Math.imul(ut,At),f=Math.imul(ut,bt),f=f+Math.imul(ht,At)|0,v=Math.imul(ht,bt),g=g+Math.imul(ft,kt)|0,f=f+Math.imul(ft,Et)|0,f=f+Math.imul(lt,kt)|0,v=v+Math.imul(lt,Et)|0,g=g+Math.imul(ot,xt)|0,f=f+Math.imul(ot,Mt)|0,f=f+Math.imul(at,xt)|0,v=v+Math.imul(at,Mt)|0,g=g+Math.imul(nt,_t)|0,f=f+Math.imul(nt,It)|0,f=f+Math.imul(st,_t)|0,v=v+Math.imul(st,It)|0,g=g+Math.imul(rt,Pt)|0,f=f+Math.imul(rt,Nt)|0,f=f+Math.imul(it,Pt)|0,v=v+Math.imul(it,Nt)|0,g=g+Math.imul(tt,St)|0,f=f+Math.imul(tt,Rt)|0,f=f+Math.imul(et,St)|0,v=v+Math.imul(et,Rt)|0;var _r=(k+g|0)+((f&8191)<<13)|0;k=(v+(f>>>13)|0)+(_r>>>26)|0,_r&=67108863,g=Math.imul(ut,kt),f=Math.imul(ut,Et),f=f+Math.imul(ht,kt)|0,v=Math.imul(ht,Et),g=g+Math.imul(ft,xt)|0,f=f+Math.imul(ft,Mt)|0,f=f+Math.imul(lt,xt)|0,v=v+Math.imul(lt,Mt)|0,g=g+Math.imul(ot,_t)|0,f=f+Math.imul(ot,It)|0,f=f+Math.imul(at,_t)|0,v=v+Math.imul(at,It)|0,g=g+Math.imul(nt,Pt)|0,f=f+Math.imul(nt,Nt)|0,f=f+Math.imul(st,Pt)|0,v=v+Math.imul(st,Nt)|0,g=g+Math.imul(rt,St)|0,f=f+Math.imul(rt,Rt)|0,f=f+Math.imul(it,St)|0,v=v+Math.imul(it,Rt)|0;var Ir=(k+g|0)+((f&8191)<<13)|0;k=(v+(f>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,g=Math.imul(ut,xt),f=Math.imul(ut,Mt),f=f+Math.imul(ht,xt)|0,v=Math.imul(ht,Mt),g=g+Math.imul(ft,_t)|0,f=f+Math.imul(ft,It)|0,f=f+Math.imul(lt,_t)|0,v=v+Math.imul(lt,It)|0,g=g+Math.imul(ot,Pt)|0,f=f+Math.imul(ot,Nt)|0,f=f+Math.imul(at,Pt)|0,v=v+Math.imul(at,Nt)|0,g=g+Math.imul(nt,St)|0,f=f+Math.imul(nt,Rt)|0,f=f+Math.imul(st,St)|0,v=v+Math.imul(st,Rt)|0;var Pr=(k+g|0)+((f&8191)<<13)|0;k=(v+(f>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,g=Math.imul(ut,_t),f=Math.imul(ut,It),f=f+Math.imul(ht,_t)|0,v=Math.imul(ht,It),g=g+Math.imul(ft,Pt)|0,f=f+Math.imul(ft,Nt)|0,f=f+Math.imul(lt,Pt)|0,v=v+Math.imul(lt,Nt)|0,g=g+Math.imul(ot,St)|0,f=f+Math.imul(ot,Rt)|0,f=f+Math.imul(at,St)|0,v=v+Math.imul(at,Rt)|0;var Nr=(k+g|0)+((f&8191)<<13)|0;k=(v+(f>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,g=Math.imul(ut,Pt),f=Math.imul(ut,Nt),f=f+Math.imul(ht,Pt)|0,v=Math.imul(ht,Nt),g=g+Math.imul(ft,St)|0,f=f+Math.imul(ft,Rt)|0,f=f+Math.imul(lt,St)|0,v=v+Math.imul(lt,Rt)|0;var Sr=(k+g|0)+((f&8191)<<13)|0;k=(v+(f>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,g=Math.imul(ut,St),f=Math.imul(ut,Rt),f=f+Math.imul(ht,St)|0,v=Math.imul(ht,Rt);var Rr=(k+g|0)+((f&8191)<<13)|0;return k=(v+(f>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,b[0]=dr,b[1]=pr,b[2]=gr,b[3]=mr,b[4]=vr,b[5]=wr,b[6]=yr,b[7]=Ar,b[8]=br,b[9]=kr,b[10]=Er,b[11]=xr,b[12]=Mr,b[13]=_r,b[14]=Ir,b[15]=Pr,b[16]=Nr,b[17]=Sr,b[18]=Rr,k!==0&&(b[19]=k,c.length++),c};Math.imul||(S=P);function G(y,o,l){l.negative=o.negative^y.negative,l.length=y.length+o.length;for(var c=0,m=0,w=0;w>>26)|0,m+=b>>>26,b&=67108863}l.words[w]=k,c=b,b=m}return c!==0?l.words[w]=c:l.length--,l._strip()}function J(y,o,l){return G(y,o,l)}i.prototype.mulTo=function(o,l){var c,m=this.length+o.length;return this.length===10&&o.length===10?c=S(this,o,l):m<63?c=P(this,o,l):m<1024?c=G(this,o,l):c=J(this,o,l),c},i.prototype.mul=function(o){var l=new i(null);return l.words=new Array(this.length+o.length),this.mulTo(o,l)},i.prototype.mulf=function(o){var l=new i(null);return l.words=new Array(this.length+o.length),J(this,o,l)},i.prototype.imul=function(o){return this.clone().mulTo(o,this)},i.prototype.imuln=function(o){var l=o<0;l&&(o=-o),r(typeof o=="number"),r(o<67108864);for(var c=0,m=0;m>=26,c+=w/67108864|0,c+=b>>>26,this.words[m]=b&67108863}return c!==0&&(this.words[m]=c,this.length++),l?this.ineg():this},i.prototype.muln=function(o){return this.clone().imuln(o)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(o){var l=T(o);if(l.length===0)return new i(1);for(var c=this,m=0;m=0);var l=o%26,c=(o-l)/26,m=67108863>>>26-l<<26-l,w;if(l!==0){var b=0;for(w=0;w>>26-l}b&&(this.words[w]=b,this.length++)}if(c!==0){for(w=this.length-1;w>=0;w--)this.words[w+c]=this.words[w];for(w=0;w=0);var m;l?m=(l-l%26)/26:m=0;var w=o%26,b=Math.min((o-w)/26,this.length),k=67108863^67108863>>>w<b)for(this.length-=b,f=0;f=0&&(v!==0||f>=m);f--){var C=this.words[f]|0;this.words[f]=v<<26-w|C>>>w,v=C&k}return g&&v!==0&&(g.words[g.length++]=v),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(o,l,c){return r(this.negative===0),this.iushrn(o,l,c)},i.prototype.shln=function(o){return this.clone().ishln(o)},i.prototype.ushln=function(o){return this.clone().iushln(o)},i.prototype.shrn=function(o){return this.clone().ishrn(o)},i.prototype.ushrn=function(o){return this.clone().iushrn(o)},i.prototype.testn=function(o){r(typeof o=="number"&&o>=0);var l=o%26,c=(o-l)/26,m=1<=0);var l=o%26,c=(o-l)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=c)return this;if(l!==0&&c++,this.length=Math.min(c,this.length),l!==0){var m=67108863^67108863>>>l<=67108864;l++)this.words[l]-=67108864,l===this.length-1?this.words[l+1]=1:this.words[l+1]++;return this.length=Math.max(this.length,l+1),this},i.prototype.isubn=function(o){if(r(typeof o=="number"),r(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var l=0;l>26)-(g/67108864|0),this.words[w+c]=b&67108863}for(;w>26,this.words[w+c]=b&67108863;if(k===0)return this._strip();for(r(k===-1),k=0,w=0;w>26,this.words[w]=b&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(o,l){var c=this.length-o.length,m=this.clone(),w=o,b=w.words[w.length-1]|0,k=this._countBits(b);c=26-k,c!==0&&(w=w.ushln(c),m.iushln(c),b=w.words[w.length-1]|0);var g=m.length-w.length,f;if(l!=="mod"){f=new i(null),f.length=g+1,f.words=new Array(f.length);for(var v=0;v=0;B--){var L=(m.words[w.length+B]|0)*67108864+(m.words[w.length+B-1]|0);for(L=Math.min(L/b|0,67108863),m._ishlnsubmul(w,L,B);m.negative!==0;)L--,m.negative=0,m._ishlnsubmul(w,1,B),m.isZero()||(m.negative^=1);f&&(f.words[B]=L)}return f&&f._strip(),m._strip(),l!=="div"&&c!==0&&m.iushrn(c),{div:f||null,mod:m}},i.prototype.divmod=function(o,l,c){if(r(!o.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var m,w,b;return this.negative!==0&&o.negative===0?(b=this.neg().divmod(o,l),l!=="mod"&&(m=b.div.neg()),l!=="div"&&(w=b.mod.neg(),c&&w.negative!==0&&w.iadd(o)),{div:m,mod:w}):this.negative===0&&o.negative!==0?(b=this.divmod(o.neg(),l),l!=="mod"&&(m=b.div.neg()),{div:m,mod:b.mod}):this.negative&o.negative?(b=this.neg().divmod(o.neg(),l),l!=="div"&&(w=b.mod.neg(),c&&w.negative!==0&&w.isub(o)),{div:b.div,mod:w}):o.length>this.length||this.cmp(o)<0?{div:new i(0),mod:this}:o.length===1?l==="div"?{div:this.divn(o.words[0]),mod:null}:l==="mod"?{div:null,mod:new i(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new i(this.modrn(o.words[0]))}:this._wordDiv(o,l)},i.prototype.div=function(o){return this.divmod(o,"div",!1).div},i.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},i.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},i.prototype.divRound=function(o){var l=this.divmod(o);if(l.mod.isZero())return l.div;var c=l.div.negative!==0?l.mod.isub(o):l.mod,m=o.ushrn(1),w=o.andln(1),b=c.cmp(m);return b<0||w===1&&b===0?l.div:l.div.negative!==0?l.div.isubn(1):l.div.iaddn(1)},i.prototype.modrn=function(o){var l=o<0;l&&(o=-o),r(o<=67108863);for(var c=(1<<26)%o,m=0,w=this.length-1;w>=0;w--)m=(c*m+(this.words[w]|0))%o;return l?-m:m},i.prototype.modn=function(o){return this.modrn(o)},i.prototype.idivn=function(o){var l=o<0;l&&(o=-o),r(o<=67108863);for(var c=0,m=this.length-1;m>=0;m--){var w=(this.words[m]|0)+c*67108864;this.words[m]=w/o|0,c=w%o}return this._strip(),l?this.ineg():this},i.prototype.divn=function(o){return this.clone().idivn(o)},i.prototype.egcd=function(o){r(o.negative===0),r(!o.isZero());var l=this,c=o.clone();l.negative!==0?l=l.umod(o):l=l.clone();for(var m=new i(1),w=new i(0),b=new i(0),k=new i(1),g=0;l.isEven()&&c.isEven();)l.iushrn(1),c.iushrn(1),++g;for(var f=c.clone(),v=l.clone();!l.isZero();){for(var C=0,B=1;!(l.words[0]&B)&&C<26;++C,B<<=1);if(C>0)for(l.iushrn(C);C-- >0;)(m.isOdd()||w.isOdd())&&(m.iadd(f),w.isub(v)),m.iushrn(1),w.iushrn(1);for(var L=0,Ut=1;!(c.words[0]&Ut)&&L<26;++L,Ut<<=1);if(L>0)for(c.iushrn(L);L-- >0;)(b.isOdd()||k.isOdd())&&(b.iadd(f),k.isub(v)),b.iushrn(1),k.iushrn(1);l.cmp(c)>=0?(l.isub(c),m.isub(b),w.isub(k)):(c.isub(l),b.isub(m),k.isub(w))}return{a:b,b:k,gcd:c.iushln(g)}},i.prototype._invmp=function(o){r(o.negative===0),r(!o.isZero());var l=this,c=o.clone();l.negative!==0?l=l.umod(o):l=l.clone();for(var m=new i(1),w=new i(0),b=c.clone();l.cmpn(1)>0&&c.cmpn(1)>0;){for(var k=0,g=1;!(l.words[0]&g)&&k<26;++k,g<<=1);if(k>0)for(l.iushrn(k);k-- >0;)m.isOdd()&&m.iadd(b),m.iushrn(1);for(var f=0,v=1;!(c.words[0]&v)&&f<26;++f,v<<=1);if(f>0)for(c.iushrn(f);f-- >0;)w.isOdd()&&w.iadd(b),w.iushrn(1);l.cmp(c)>=0?(l.isub(c),m.isub(w)):(c.isub(l),w.isub(m))}var C;return l.cmpn(1)===0?C=m:C=w,C.cmpn(0)<0&&C.iadd(o),C},i.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var l=this.clone(),c=o.clone();l.negative=0,c.negative=0;for(var m=0;l.isEven()&&c.isEven();m++)l.iushrn(1),c.iushrn(1);do{for(;l.isEven();)l.iushrn(1);for(;c.isEven();)c.iushrn(1);var w=l.cmp(c);if(w<0){var b=l;l=c,c=b}else if(w===0||c.cmpn(1)===0)break;l.isub(c)}while(!0);return c.iushln(m)},i.prototype.invm=function(o){return this.egcd(o).a.umod(o)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(o){return this.words[0]&o},i.prototype.bincn=function(o){r(typeof o=="number");var l=o%26,c=(o-l)/26,m=1<>>26,k&=67108863,this.words[b]=k}return w!==0&&(this.words[b]=w,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(o){var l=o<0;if(this.negative!==0&&!l)return-1;if(this.negative===0&&l)return 1;this._strip();var c;if(this.length>1)c=1;else{l&&(o=-o),r(o<=67108863,"Number is too big");var m=this.words[0]|0;c=m===o?0:mo.length)return 1;if(this.length=0;c--){var m=this.words[c]|0,w=o.words[c]|0;if(m!==w){mw&&(l=1);break}}return l},i.prototype.gtn=function(o){return this.cmpn(o)===1},i.prototype.gt=function(o){return this.cmp(o)===1},i.prototype.gten=function(o){return this.cmpn(o)>=0},i.prototype.gte=function(o){return this.cmp(o)>=0},i.prototype.ltn=function(o){return this.cmpn(o)===-1},i.prototype.lt=function(o){return this.cmp(o)===-1},i.prototype.lten=function(o){return this.cmpn(o)<=0},i.prototype.lte=function(o){return this.cmp(o)<=0},i.prototype.eqn=function(o){return this.cmpn(o)===0},i.prototype.eq=function(o){return this.cmp(o)===0},i.red=function(o){return new W(o)},i.prototype.toRed=function(o){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(o){return this.red=o,this},i.prototype.forceRed=function(o){return r(!this.red,"Already a number in reduction context"),this._forceRed(o)},i.prototype.redAdd=function(o){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},i.prototype.redIAdd=function(o){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},i.prototype.redSub=function(o){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},i.prototype.redISub=function(o){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},i.prototype.redShl=function(o){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},i.prototype.redMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},i.prototype.redIMul=function(o){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(o){return r(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var F={k256:null,p224:null,p192:null,p25519:null};function z(y,o){this.name=y,this.p=new i(o,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}z.prototype._tmp=function(){var o=new i(null);return o.words=new Array(Math.ceil(this.n/13)),o},z.prototype.ireduce=function(o){var l=o,c;do this.split(l,this.tmp),l=this.imulK(l),l=l.iadd(this.tmp),c=l.bitLength();while(c>this.n);var m=c0?l.isub(this.p):l.strip!==void 0?l.strip():l._strip(),l},z.prototype.split=function(o,l){o.iushrn(this.n,0,l)},z.prototype.imulK=function(o){return o.imul(this.k)};function Vt(){z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(Vt,z),Vt.prototype.split=function(o,l){for(var c=4194303,m=Math.min(o.length,9),w=0;w>>22,b=k}b>>>=22,o.words[w-10]=b,b===0&&o.length>10?o.length-=10:o.length-=9},Vt.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var l=0,c=0;c>>=26,o.words[c]=w,l=m}return l!==0&&(o.words[o.length++]=l),o},i._prime=function(o){if(F[o])return F[o];var l;if(o==="k256")l=new Vt;else if(o==="p224")l=new Kt;else if(o==="p192")l=new Ft;else if(o==="p25519")l=new we;else throw new Error("Unknown prime "+o);return F[o]=l,l};function W(y){if(typeof y=="string"){var o=i._prime(y);this.m=o.p,this.prime=o}else r(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}W.prototype._verify1=function(o){r(o.negative===0,"red works only with positives"),r(o.red,"red works only with red numbers")},W.prototype._verify2=function(o,l){r((o.negative|l.negative)===0,"red works only with positives"),r(o.red&&o.red===l.red,"red works only with red numbers")},W.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(p(o,o.umod(this.m)._forceRed(this)),o)},W.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},W.prototype.add=function(o,l){this._verify2(o,l);var c=o.add(l);return c.cmp(this.m)>=0&&c.isub(this.m),c._forceRed(this)},W.prototype.iadd=function(o,l){this._verify2(o,l);var c=o.iadd(l);return c.cmp(this.m)>=0&&c.isub(this.m),c},W.prototype.sub=function(o,l){this._verify2(o,l);var c=o.sub(l);return c.cmpn(0)<0&&c.iadd(this.m),c._forceRed(this)},W.prototype.isub=function(o,l){this._verify2(o,l);var c=o.isub(l);return c.cmpn(0)<0&&c.iadd(this.m),c},W.prototype.shl=function(o,l){return this._verify1(o),this.imod(o.ushln(l))},W.prototype.imul=function(o,l){return this._verify2(o,l),this.imod(o.imul(l))},W.prototype.mul=function(o,l){return this._verify2(o,l),this.imod(o.mul(l))},W.prototype.isqr=function(o){return this.imul(o,o.clone())},W.prototype.sqr=function(o){return this.mul(o,o)},W.prototype.sqrt=function(o){if(o.isZero())return o.clone();var l=this.m.andln(3);if(r(l%2===1),l===3){var c=this.m.add(new i(1)).iushrn(2);return this.pow(o,c)}for(var m=this.m.subn(1),w=0;!m.isZero()&&m.andln(1)===0;)w++,m.iushrn(1);r(!m.isZero());var b=new i(1).toRed(this),k=b.redNeg(),g=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);this.pow(f,g).cmp(k)!==0;)f.redIAdd(k);for(var v=this.pow(f,m),C=this.pow(o,m.addn(1).iushrn(1)),B=this.pow(o,m),L=w;B.cmp(b)!==0;){for(var Ut=B,H=0;Ut.cmp(b)!==0;H++)Ut=Ut.redSqr();r(H=0;w--){for(var v=l.words[w],C=f-1;C>=0;C--){var B=v>>C&1;if(b!==m[0]&&(b=this.sqr(b)),B===0&&k===0){g=0;continue}k<<=1,k|=B,g++,!(g!==c&&(w!==0||C!==0))&&(b=this.mul(b,m[k]),g=0,k=0)}f=26}return b},W.prototype.convertTo=function(o){var l=o.umod(this.m);return l===o?l.clone():l},W.prototype.convertFrom=function(o){var l=o.clone();return l.red=null,l},i.mont=function(o){return new ye(o)};function ye(y){W.call(this,y),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(ye,W),ye.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},ye.prototype.convertFrom=function(o){var l=this.imod(o.mul(this.rinv));return l.red=null,l},ye.prototype.imul=function(o,l){if(o.isZero()||l.isZero())return o.words[0]=0,o.length=1,o;var c=o.imul(l),m=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=c.isub(m).iushrn(this.shift),b=w;return w.cmp(this.m)>=0?b=w.isub(this.m):w.cmpn(0)<0&&(b=w.iadd(this.m)),b._forceRed(this)},ye.prototype.mul=function(o,l){if(o.isZero()||l.isZero())return new i(0)._forceRed(this);var c=o.mul(l),m=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=c.isub(m).iushrn(this.shift),b=w;return w.cmp(this.m)>=0?b=w.isub(this.m):w.cmpn(0)<0&&(b=w.iadd(this.m)),b._forceRed(this)},ye.prototype.invm=function(o){var l=this.imod(o._invmp(this.m).mul(this.r2));return l._forceRed(this)}})(s,Fn)})(Ss);const q=Hr;function Ne(s,t,e){return e={path:t,exports:{},require:function(r,n){return Rs(r,n??e.path)}},s(e,e.exports),e.exports}function Rs(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var Zr=kn;function kn(s,t){if(!s)throw new Error(t||"Assertion failed")}kn.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)};var ne=Ne(function(s,t){var e=t;function r(a,u){if(Array.isArray(a))return a.slice();if(!a)return[];var h=[];if(typeof a!="string"){for(var d=0;d>8,M=p&255;A?h.push(A,M):h.push(M)}return h}e.toArray=r;function n(a){return a.length===1?"0"+a:a}e.zero2=n;function i(a){for(var u="",h=0;h(M>>1)-1?I=(M>>1)-T:I=T,E.isubn(I)):I=0,A[_]=I,E.iushrn(1)}return A}e.getNAF=r;function n(h,d){var p=[[],[]];h=h.clone(),d=d.clone();for(var A=0,M=0,E;h.cmpn(-A)>0||d.cmpn(-M)>0;){var _=h.andln(3)+A&3,I=d.andln(3)+M&3;_===3&&(_=-1),I===3&&(I=-1);var T;_&1?(E=h.andln(7)+A&7,(E===3||E===5)&&I===2?T=-_:T=_):T=0,p[0].push(T);var P;I&1?(E=d.andln(7)+M&7,(E===3||E===5)&&_===2?P=-I:P=I):P=0,p[1].push(P),2*A===T+1&&(A=1-A),2*M===P+1&&(M=1-M),h.iushrn(1),d.iushrn(1)}return p}e.getJSF=n;function i(h,d,p){var A="_"+d;h.prototype[d]=function(){return this[A]!==void 0?this[A]:this[A]=p.call(this)}}e.cachedProperty=i;function a(h){return typeof h=="string"?e.toArray(h,"hex"):h}e.parseBytes=a;function u(h){return new q(h,"hex","le")}e.intFromLE=u}),er=Xt.getNAF,Ts=Xt.getJSF,rr=Xt.assert;function me(s,t){this.type=s,this.p=new q(t.p,16),this.red=t.prime?q.red(t.prime):q.mont(this.p),this.zero=new q(0).toRed(this.red),this.one=new q(1).toRed(this.red),this.two=new q(2).toRed(this.red),this.n=t.n&&new q(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var e=this.n&&this.p.div(this.n);!e||e.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var xe=me;me.prototype.point=function(){throw new Error("Not implemented")};me.prototype.validate=function(){throw new Error("Not implemented")};me.prototype._fixedNafMul=function(t,e){rr(t.precomputed);var r=t._getDoubles(),n=er(e,1,this._bitLength),i=(1<=u;d--)h=(h<<1)+n[d];a.push(h)}for(var p=this.jpoint(null,null,null),A=this.jpoint(null,null,null),M=i;M>0;M--){for(u=0;u=0;h--){for(var d=0;h>=0&&a[h]===0;h--)d++;if(h>=0&&d++,u=u.dblp(d),h<0)break;var p=a[h];rr(p!==0),t.type==="affine"?p>0?u=u.mixedAdd(i[p-1>>1]):u=u.mixedAdd(i[-p-1>>1].neg()):p>0?u=u.add(i[p-1>>1]):u=u.add(i[-p-1>>1].neg())}return t.type==="affine"?u.toP():u};me.prototype._wnafMulAdd=function(t,e,r,n,i){var a=this._wnafT1,u=this._wnafT2,h=this._wnafT3,d=0,p,A,M;for(p=0;p=1;p-=2){var _=p-1,I=p;if(a[_]!==1||a[I]!==1){h[_]=er(r[_],a[_],this._bitLength),h[I]=er(r[I],a[I],this._bitLength),d=Math.max(h[_].length,d),d=Math.max(h[I].length,d);continue}var T=[e[_],null,null,e[I]];e[_].y.cmp(e[I].y)===0?(T[1]=e[_].add(e[I]),T[2]=e[_].toJ().mixedAdd(e[I].neg())):e[_].y.cmp(e[I].y.redNeg())===0?(T[1]=e[_].toJ().mixedAdd(e[I]),T[2]=e[_].add(e[I].neg())):(T[1]=e[_].toJ().mixedAdd(e[I]),T[2]=e[_].toJ().mixedAdd(e[I].neg()));var P=[-3,-1,-5,-7,0,7,5,1,3],S=Ts(r[_],r[I]);for(d=Math.max(S[0].length,d),h[_]=new Array(d),h[I]=new Array(d),A=0;A=0;p--){for(var Vt=0;p>=0;){var Kt=!0;for(A=0;A=0&&Vt++,F=F.dblp(Vt),p<0)break;for(A=0;A0?M=u[A][Ft-1>>1]:Ft<0&&(M=u[A][-Ft-1>>1].neg()),M.type==="affine"?F=F.mixedAdd(M):F=F.add(M))}}for(p=0;p=Math.ceil((t.bitLength()+1)/e.step):!1};$t.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(E=d,_=p),A.negative&&(A=A.neg(),M=M.neg()),E.negative&&(E=E.neg(),_=_.neg()),[{a:A,b:M},{a:E,b:_}]};te.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),a=r.b.neg().mul(t).divRound(this.n),u=i.mul(r.a),h=a.mul(n.a),d=i.mul(r.b),p=a.mul(n.b),A=t.sub(u).sub(h),M=d.add(p).neg();return{k1:A,k2:M}};te.prototype.pointFromX=function(t,e){t=new q(t,16),t.red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(n.redSqr().redSub(r).cmp(this.zero)!==0)throw new Error("invalid point");var i=n.fromRed().isOdd();return(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)};te.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return r.redSqr().redISub(i).cmpn(0)===0};te.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,a=0;a":""};Ot.prototype.isInfinity=function(){return this.inf};Ot.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(this.x.cmp(t.x)===0)return this.curve.point(null,null);var e=this.y.redSub(t.y);e.cmpn(0)!==0&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)};Ot.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(t.cmpn(0)===0)return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),a=i.redSqr().redISub(this.x.redAdd(this.x)),u=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,u)};Ot.prototype.getX=function(){return this.x.fromRed()};Ot.prototype.getY=function(){return this.y.fromRed()};Ot.prototype.mul=function(t){return t=new q(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)};Ot.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)};Ot.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)};Ot.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||this.x.cmp(t.x)===0&&this.y.cmp(t.y)===0)};Ot.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(i){return i.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e};Ot.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var t=this.curve.jpoint(this.x,this.y,this.curve.one);return t};function qt(s,t,e,r){xe.BasePoint.call(this,s,"jacobian"),t===null&&e===null&&r===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new q(0)):(this.x=new q(t,16),this.y=new q(e,16),this.z=new q(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}$r(qt,xe.BasePoint);te.prototype.jpoint=function(t,e,r){return new qt(this,t,e,r)};qt.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)};qt.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};qt.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),a=this.y.redMul(e.redMul(t.z)),u=t.y.redMul(r.redMul(this.z)),h=n.redSub(i),d=a.redSub(u);if(h.cmpn(0)===0)return d.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var p=h.redSqr(),A=p.redMul(h),M=n.redMul(p),E=d.redSqr().redIAdd(A).redISub(M).redISub(M),_=d.redMul(M.redISub(E)).redISub(a.redMul(A)),I=this.z.redMul(t.z).redMul(h);return this.curve.jpoint(E,_,I)};qt.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,a=t.y.redMul(e).redMul(this.z),u=r.redSub(n),h=i.redSub(a);if(u.cmpn(0)===0)return h.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var d=u.redSqr(),p=d.redMul(u),A=r.redMul(d),M=h.redSqr().redIAdd(p).redISub(A).redISub(A),E=h.redMul(A.redISub(M)).redISub(i.redMul(p)),_=this.z.redMul(u);return this.curve.jpoint(M,E,_)};qt.prototype.dblp=function(t){if(t===0)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e=0)return!1;if(r.redIAdd(i),this.x.cmp(r)===0)return!0}};qt.prototype.inspect=function(){return this.isInfinity()?"":""};qt.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var We=Ne(function(s,t){var e=t;e.base=xe,e.short=Cs,e.mont=null,e.edwards=null}),Xe=Ne(function(s,t){var e=t,r=Xt.assert;function n(u){u.type==="short"?this.curve=new We.short(u):u.type==="edwards"?this.curve=new We.edwards(u):this.curve=new We.mont(u),this.g=this.curve.g,this.n=this.curve.n,this.hash=u.hash,r(this.g.validate(),"Invalid curve"),r(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}e.PresetCurve=n;function i(u,h){Object.defineProperty(e,u,{configurable:!0,enumerable:!0,get:function(){var d=new n(h);return Object.defineProperty(e,u,{configurable:!0,enumerable:!0,value:d}),d}})}i("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:se.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),i("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:se.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),i("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:se.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),i("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:se.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),i("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:se.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),i("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:se.sha256,gRed:!1,g:["9"]}),i("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:se.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var a;try{a=null.crash()}catch{a=void 0}i("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:se.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",a]})});function ge(s){if(!(this instanceof ge))return new ge(s);this.hash=s.hash,this.predResist=!!s.predResist,this.outLen=this.hash.outSize,this.minEntropy=s.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=ne.toArray(s.entropy,s.entropyEnc||"hex"),e=ne.toArray(s.nonce,s.nonceEnc||"hex"),r=ne.toArray(s.pers,s.persEnc||"hex");Zr(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,e,r)}var En=ge;ge.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1};ge.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof e!="string"&&(n=r,r=e,e=null),r&&(r=ne.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length"};var Os=Xt.assert;function ur(s,t){if(s instanceof ur)return s;this._importDER(s,t)||(Os(s.r&&s.s,"Signature without r or s"),this.r=new q(s.r,16),this.s=new q(s.s,16),s.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=s.recoveryParam)}var hr=ur;function Ls(){this.place=0}function Cr(s,t){var e=s[t.place++];if(!(e&128))return e;var r=e&15;if(r===0||r>4)return!1;for(var n=0,i=0,a=t.place;i>>=0;return n<=127?!1:(t.place=a,n)}function Ri(s){for(var t=0,e=s.length-1;!s[t]&&!(s[t+1]&128)&&t>>3);for(s.push(e|128);--e;)s.push(t>>>(e<<3)&255);s.push(t)}ur.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(e[0]&128&&(e=[0].concat(e)),r[0]&128&&(r=[0].concat(r)),e=Ri(e),r=Ri(r);!r[0]&&!(r[1]&128);)r=r.slice(1);var n=[2];Or(n,e.length),n=n.concat(e),n.push(2),Or(n,r.length);var i=n.concat(r),a=[48];return Or(a,i.length),a=a.concat(i),Xt.encode(a,t)};var Ds=function(){throw new Error("unsupported")},xn=Xt.assert;function Zt(s){if(!(this instanceof Zt))return new Zt(s);typeof s=="string"&&(xn(Object.prototype.hasOwnProperty.call(Xe,s),"Unknown curve "+s),s=Xe[s]),s instanceof Xe.PresetCurve&&(s={curve:s}),this.curve=s.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=s.curve.g,this.g.precompute(s.curve.n.bitLength()+1),this.hash=s.hash||s.curve.hash}var qs=Zt;Zt.prototype.keyPair=function(t){return new ti(this,t)};Zt.prototype.keyFromPrivate=function(t,e){return ti.fromPrivate(this,t,e)};Zt.prototype.keyFromPublic=function(t,e){return ti.fromPublic(this,t,e)};Zt.prototype.genKeyPair=function(t){t||(t={});for(var e=new En({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||Ds(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new q(2));;){var i=new q(e.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}};Zt.prototype._truncateToN=function(t,e){var r=t.byteLength()*8-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t};Zt.prototype.sign=function(t,e,r,n){typeof r=="object"&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new q(t,16));for(var i=this.n.byteLength(),a=e.getPrivate().toArray("be",i),u=t.toArray("be",i),h=new En({hash:this.hash,entropy:a,nonce:u,pers:n.pers,persEnc:n.persEnc||"utf8"}),d=this.n.sub(new q(1)),p=0;;p++){var A=n.k?n.k(p):new q(h.generate(this.n.byteLength()));if(A=this._truncateToN(A,!0),!(A.cmpn(1)<=0||A.cmp(d)>=0)){var M=this.g.mul(A);if(!M.isInfinity()){var E=M.getX(),_=E.umod(this.n);if(_.cmpn(0)!==0){var I=A.invm(this.n).mul(_.mul(e.getPrivate()).iadd(t));if(I=I.umod(this.n),I.cmpn(0)!==0){var T=(M.getY().isOdd()?1:0)|(E.cmp(_)!==0?2:0);return n.canonical&&I.cmp(this.nh)>0&&(I=this.n.sub(I),T^=1),new hr({r:_,s:I,recoveryParam:T})}}}}}};Zt.prototype.verify=function(t,e,r,n){t=this._truncateToN(new q(t,16)),r=this.keyFromPublic(r,n),e=new hr(e,"hex");var i=e.r,a=e.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var u=a.invm(this.n),h=u.mul(t).umod(this.n),d=u.mul(i).umod(this.n),p;return this.curve._maxwellTrick?(p=this.g.jmulAdd(h,r.getPublic(),d),p.isInfinity()?!1:p.eqXToP(i)):(p=this.g.mulAdd(h,r.getPublic(),d),p.isInfinity()?!1:p.getX().umod(this.n).cmp(i)===0)};Zt.prototype.recoverPubKey=function(s,t,e,r){xn((3&e)===e,"The recovery param is more than two bits"),t=new hr(t,r);var n=this.n,i=new q(s),a=t.r,u=t.s,h=e&1,d=e>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");d?a=this.curve.pointFromX(a.add(this.curve.n),h):a=this.curve.pointFromX(a,h);var p=t.r.invm(n),A=n.sub(i).mul(p).umod(n),M=u.mul(p).umod(n);return this.g.mulAdd(A,a,M)};Zt.prototype.getKeyRecoveryParam=function(s,t,e,r){if(t=new hr(t,r),t.recoveryParam!==null)return t.recoveryParam;for(var n=0;n<4;n++){var i;try{i=this.recoverPubKey(s,t,n)}catch{continue}if(i.eq(e))return n}throw new Error("Unable to find valid recovery factor")};var Fs=Ne(function(s,t){var e=t;e.version="6.5.4",e.utils=Xt,e.rand=function(){throw new Error("unsupported")},e.curve=We,e.curves=Xe,e.ec=qs,e.eddsa=null}),Us=Fs.ec;const Gs="signing-key/5.7.0",jr=new x(Gs);let Lr=null;function oe(){return Lr||(Lr=new Us("secp256k1")),Lr}class zs{constructor(t){R(this,"curve","secp256k1"),R(this,"privateKey",Q(t)),Ee(this.privateKey)!==32&&jr.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const e=oe().keyFromPrivate(K(this.privateKey));R(this,"publicKey","0x"+e.getPublic(!1,"hex")),R(this,"compressedPublicKey","0x"+e.getPublic(!0,"hex")),R(this,"_isSigningKey",!0)}_addPoint(t){const e=oe().keyFromPublic(K(this.publicKey)),r=oe().keyFromPublic(K(t));return"0x"+e.pub.add(r.pub).encodeCompressed("hex")}signDigest(t){const e=oe().keyFromPrivate(K(this.privateKey)),r=K(t);r.length!==32&&jr.throwArgumentError("bad digest length","digest",t);const n=e.sign(r,{canonical:!0});return sr({recoveryParam:n.recoveryParam,r:Dt("0x"+n.r.toString(16),32),s:Dt("0x"+n.s.toString(16),32)})}computeSharedSecret(t){const e=oe().keyFromPrivate(K(this.privateKey)),r=oe().keyFromPublic(K(Mn(t)));return Dt("0x"+e.derive(r.getPublic()).toString(16),32)}static isSigningKey(t){return!!(t&&t._isSigningKey)}}function Js(s,t){const e=sr(t),r={r:K(e.r),s:K(e.s)};return"0x"+oe().recoverPubKey(K(s),r,e.recoveryParam).encode("hex",!1)}function Mn(s,t){const e=K(s);if(e.length===32){const r=new zs(e);return t?"0x"+oe().keyFromPrivate(e).getPublic(!0,"hex"):r.publicKey}else{if(e.length===33)return t?Q(e):"0x"+oe().keyFromPublic(e).getPublic(!1,"hex");if(e.length===65)return t?"0x"+oe().keyFromPublic(e).getPublic(!0,"hex"):Q(e)}return jr.throwArgumentError("invalid public or private key","key","[REDACTED]")}const Ks="transactions/5.7.0",he=new x(Ks);var Ti;(function(s){s[s.legacy=0]="legacy",s[s.eip2930=1]="eip2930",s[s.eip1559=2]="eip1559"})(Ti||(Ti={}));function ei(s){return s==="0x"?null:ue(s)}function Gt(s){return s==="0x"?Un:O.from(s)}function Hs(s){const t=Mn(s);return ue(Ht(Qt(Ht(t,1)),12))}function _n(s,t){return Hs(Js(K(s),t))}function Yt(s,t){const e=Fe(O.from(s).toHexString());return e.length>32&&he.throwArgumentError("invalid length for "+t,"transaction:"+t,s),e}function Dr(s,t){return{address:ue(s),storageKeys:(t||[]).map((e,r)=>(Ee(e)!==32&&he.throwArgumentError("invalid access list storageKey",`accessList[${s}:${r}]`,e),e.toLowerCase()))}}function Se(s){if(Array.isArray(s))return s.map((e,r)=>Array.isArray(e)?(e.length>2&&he.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${r}]`,e),Dr(e[0],e[1])):Dr(e.address,e.storageKeys));const t=Object.keys(s).map(e=>{const r=s[e].reduce((n,i)=>(n[i]=!0,n),{});return Dr(e,Object.keys(r).sort())});return t.sort((e,r)=>e.address.localeCompare(r.address)),t}function In(s){return Se(s).map(t=>[t.address,t.storageKeys])}function Qs(s,t){if(s.gasPrice!=null){const r=O.from(s.gasPrice),n=O.from(s.maxFeePerGas||0);r.eq(n)||he.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:r,maxFeePerGas:n})}const e=[Yt(s.chainId||0,"chainId"),Yt(s.nonce||0,"nonce"),Yt(s.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Yt(s.maxFeePerGas||0,"maxFeePerGas"),Yt(s.gasLimit||0,"gasLimit"),s.to!=null?ue(s.to):"0x",Yt(s.value||0,"value"),s.data||"0x",In(s.accessList||[])];if(t){const r=sr(t);e.push(Yt(r.recoveryParam,"recoveryParam")),e.push(Fe(r.r)),e.push(Fe(r.s))}return Wt(["0x02",Xr(e)])}function js(s,t){const e=[Yt(s.chainId||0,"chainId"),Yt(s.nonce||0,"nonce"),Yt(s.gasPrice||0,"gasPrice"),Yt(s.gasLimit||0,"gasLimit"),s.to!=null?ue(s.to):"0x",Yt(s.value||0,"value"),s.data||"0x",In(s.accessList||[])];if(t){const r=sr(t);e.push(Yt(r.recoveryParam,"recoveryParam")),e.push(Fe(r.r)),e.push(Fe(r.s))}return Wt(["0x01",Xr(e)])}function Pn(s,t,e){try{const r=Gt(t[0]).toNumber();if(r!==0&&r!==1)throw new Error("bad recid");s.v=r}catch{he.throwArgumentError("invalid v for transaction type: 1","v",t[0])}s.r=Dt(t[1],32),s.s=Dt(t[2],32);try{const r=Qt(e(s));s.from=_n(r,{r:s.r,s:s.s,recoveryParam:s.v})}catch{}}function Ys(s){const t=Wr(s.slice(1));t.length!==9&&t.length!==12&&he.throwArgumentError("invalid component count for transaction type: 2","payload",Q(s));const e=Gt(t[2]),r=Gt(t[3]),n={type:2,chainId:Gt(t[0]).toNumber(),nonce:Gt(t[1]).toNumber(),maxPriorityFeePerGas:e,maxFeePerGas:r,gasPrice:null,gasLimit:Gt(t[4]),to:ei(t[5]),value:Gt(t[6]),data:t[7],accessList:Se(t[8])};return t.length===9||(n.hash=Qt(s),Pn(n,t.slice(9),Qs)),n}function Ws(s){const t=Wr(s.slice(1));t.length!==8&&t.length!==11&&he.throwArgumentError("invalid component count for transaction type: 1","payload",Q(s));const e={type:1,chainId:Gt(t[0]).toNumber(),nonce:Gt(t[1]).toNumber(),gasPrice:Gt(t[2]),gasLimit:Gt(t[3]),to:ei(t[4]),value:Gt(t[5]),data:t[6],accessList:Se(t[7])};return t.length===8||(e.hash=Qt(s),Pn(e,t.slice(8),js)),e}function Xs(s){const t=Wr(s);t.length!==9&&t.length!==6&&he.throwArgumentError("invalid raw transaction","rawTransaction",s);const e={nonce:Gt(t[0]).toNumber(),gasPrice:Gt(t[1]),gasLimit:Gt(t[2]),to:ei(t[3]),value:Gt(t[4]),data:t[5],chainId:0};if(t.length===6)return e;try{e.v=O.from(t[6]).toNumber()}catch{return e}if(e.r=Dt(t[7],32),e.s=Dt(t[8],32),O.from(e.r).isZero()&&O.from(e.s).isZero())e.chainId=e.v,e.v=0;else{e.chainId=Math.floor((e.v-35)/2),e.chainId<0&&(e.chainId=0);let r=e.v-27;const n=t.slice(0,6);e.chainId!==0&&(n.push(Q(e.chainId)),n.push("0x"),n.push("0x"),r-=e.chainId*2+8);const i=Qt(Xr(n));try{e.from=_n(i,{r:Q(e.r),s:Q(e.s),recoveryParam:r})}catch{}e.hash=Qt(s)}return e.type=null,e}function Vs(s){const t=K(s);if(t[0]>127)return Xs(t);switch(t[0]){case 1:return Ws(t);case 2:return Ys(t)}return he.throwError(`unsupported transaction type: ${t[0]}`,x.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}function Zs(s){s=s.slice();for(let t=s.length-1;t>0;t--){const e=Math.floor(Math.random()*(t+1)),r=s[t];s[t]=s[e],s[e]=r}return s}const $s="networks/5.7.1",Bi=new x($s);function to(s){return s&&typeof s.renetwork=="function"}function fe(s){const t=function(e,r){r==null&&(r={});const n=[];if(e.InfuraProvider&&r.infura!=="-")try{n.push(new e.InfuraProvider(s,r.infura))}catch{}if(e.EtherscanProvider&&r.etherscan!=="-")try{n.push(new e.EtherscanProvider(s,r.etherscan))}catch{}if(e.AlchemyProvider&&r.alchemy!=="-")try{n.push(new e.AlchemyProvider(s,r.alchemy))}catch{}if(e.PocketProvider&&r.pocket!=="-"){const i=["goerli","ropsten","rinkeby","sepolia"];try{const a=new e.PocketProvider(s,r.pocket);a.network&&i.indexOf(a.network.name)===-1&&n.push(a)}catch{}}if(e.CloudflareProvider&&r.cloudflare!=="-")try{n.push(new e.CloudflareProvider(s))}catch{}if(e.AnkrProvider&&r.ankr!=="-")try{const i=["ropsten"],a=new e.AnkrProvider(s,r.ankr);a.network&&i.indexOf(a.network.name)===-1&&n.push(a)}catch{}if(n.length===0)return null;if(e.FallbackProvider){let i=1;return r.quorum!=null?i=r.quorum:s==="homestead"&&(i=2),new e.FallbackProvider(n,i)}return n[0]};return t.renetwork=function(e){return fe(e)},t}function ir(s,t){const e=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(s,t):null};return e.renetwork=function(r){return ir(s,r)},e}const Ci={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:fe("homestead")},Oi={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:fe("ropsten")},Li={chainId:63,name:"classicMordor",_defaultProvider:ir("https://www.ethercluster.com/mordor","classicMordor")},ze={unspecified:{chainId:0,name:"unspecified"},homestead:Ci,mainnet:Ci,morden:{chainId:2,name:"morden"},ropsten:Oi,testnet:Oi,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:fe("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:fe("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:fe("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:fe("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:ir("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:Li,classicTestnet:Li,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:ir("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:fe("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:fe("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function Nn(s){if(s==null)return null;if(typeof s=="number"){for(const r in ze){const n=ze[r];if(n.chainId===s)return{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress||null,_defaultProvider:n._defaultProvider||null}}return{chainId:s,name:"unknown"}}if(typeof s=="string"){const r=ze[s];return r==null?null:{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress,_defaultProvider:r._defaultProvider||null}}const t=ze[s.name];if(!t)return typeof s.chainId!="number"&&Bi.throwArgumentError("invalid network chainId","network",s),s;s.chainId!==0&&s.chainId!==t.chainId&&Bi.throwArgumentError("network chainId mismatch","network",s);let e=s._defaultProvider||null;return e==null&&t._defaultProvider&&(to(t._defaultProvider)?e=t._defaultProvider.renetwork(s):e=t._defaultProvider),{name:s.name,chainId:t.chainId,ensAddress:s.ensAddress||t.ensAddress||null,_defaultProvider:e}}const eo="web/5.7.1";var ro=globalThis&&globalThis.__awaiter||function(s,t,e,r){function n(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function u(p){try{d(r.next(p))}catch(A){a(A)}}function h(p){try{d(r.throw(p))}catch(A){a(A)}}function d(p){p.done?i(p.value):n(p.value).then(u,h)}d((r=r.apply(s,t||[])).next())})};function io(s,t){return ro(this,void 0,void 0,function*(){t==null&&(t={});const e={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0};if(t.skipFetchSetup!==!0&&(e.mode="cors",e.cache="no-cache",e.credentials="same-origin",e.redirect="follow",e.referrer="client"),t.fetchOptions!=null){const a=t.fetchOptions;a.mode&&(e.mode=a.mode),a.cache&&(e.cache=a.cache),a.credentials&&(e.credentials=a.credentials),a.redirect&&(e.redirect=a.redirect),a.referrer&&(e.referrer=a.referrer)}const r=yield fetch(s,e),n=yield r.arrayBuffer(),i={};return r.headers.forEach?r.headers.forEach((a,u)=>{i[u.toLowerCase()]=a}):r.headers.keys().forEach(a=>{i[a.toLowerCase()]=r.headers.get(a)}),{headers:i,statusCode:r.status,statusMessage:r.statusText,body:K(new Uint8Array(n))}})}var no=globalThis&&globalThis.__awaiter||function(s,t,e,r){function n(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function u(p){try{d(r.next(p))}catch(A){a(A)}}function h(p){try{d(r.throw(p))}catch(A){a(A)}}function d(p){p.done?i(p.value):n(p.value).then(u,h)}d((r=r.apply(s,t||[])).next())})};const ie=new x(eo);function Di(s){return new Promise(t=>{setTimeout(t,s)})}function ce(s,t){if(s==null)return null;if(typeof s=="string")return s;if(Gn(s)){if(t&&(t.split("/")[0]==="text"||t.split(";")[0].trim()==="application/json"))try{return or(s)}catch{}return Q(s)}return s}function so(s){return ke(s.replace(/%([0-9a-f][0-9a-f])/gi,(t,e)=>String.fromCharCode(parseInt(e,16))))}function oo(s,t,e){const r=typeof s=="object"&&s.throttleLimit!=null?s.throttleLimit:12;ie.assertArgument(r>0&&r%1===0,"invalid connection throttle limit","connection.throttleLimit",r);const n=typeof s=="object"?s.throttleCallback:null,i=typeof s=="object"&&typeof s.throttleSlotInterval=="number"?s.throttleSlotInterval:100;ie.assertArgument(i>0&&i%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",i);const a=typeof s=="object"?!!s.errorPassThrough:!1,u={};let h=null;const d={method:"GET"};let p=!1,A=2*60*1e3;if(typeof s=="string")h=s;else if(typeof s=="object"){if((s==null||s.url==null)&&ie.throwArgumentError("missing URL","connection.url",s),h=s.url,typeof s.timeout=="number"&&s.timeout>0&&(A=s.timeout),s.headers)for(const P in s.headers)u[P.toLowerCase()]={key:P,value:String(s.headers[P])},["if-none-match","if-modified-since"].indexOf(P.toLowerCase())>=0&&(p=!0);if(d.allowGzip=!!s.allowGzip,s.user!=null&&s.password!=null){h.substring(0,6)!=="https:"&&s.allowInsecureAuthentication!==!0&&ie.throwError("basic authentication requires a secure https url",x.errors.INVALID_ARGUMENT,{argument:"url",url:h,user:s.user,password:"[REDACTED]"});const P=s.user+":"+s.password;u.authorization={key:"Authorization",value:"Basic "+hn(ke(P))}}s.skipFetchSetup!=null&&(d.skipFetchSetup=!!s.skipFetchSetup),s.fetchOptions!=null&&(d.fetchOptions=Ct(s.fetchOptions))}const M=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),E=h?h.match(M):null;if(E)try{const P={statusCode:200,statusMessage:"OK",headers:{"content-type":E[1]||"text/plain"},body:E[2]?un(E[3]):so(E[3])};let S=P.body;return e&&(S=e(P.body,P)),Promise.resolve(S)}catch(P){ie.throwError("processing response error",x.errors.SERVER_ERROR,{body:ce(E[1],E[2]),error:P,requestBody:null,requestMethod:"GET",url:h})}t&&(d.method="POST",d.body=t,u["content-type"]==null&&(u["content-type"]={key:"Content-Type",value:"application/octet-stream"}),u["content-length"]==null&&(u["content-length"]={key:"Content-Length",value:String(t.length)}));const _={};Object.keys(u).forEach(P=>{const S=u[P];_[S.key]=S.value}),d.headers=_;const I=function(){let P=null;return{promise:new Promise(function(J,F){A&&(P=setTimeout(()=>{P!=null&&(P=null,F(ie.makeError("timeout",x.errors.TIMEOUT,{requestBody:ce(d.body,_["content-type"]),requestMethod:d.method,timeout:A,url:h})))},A))}),cancel:function(){P!=null&&(clearTimeout(P),P=null)}}}(),T=function(){return no(this,void 0,void 0,function*(){for(let P=0;P=300)&&(I.cancel(),ie.throwError("bad response",x.errors.SERVER_ERROR,{status:S.statusCode,headers:S.headers,body:ce(G,S.headers?S.headers["content-type"]:null),requestBody:ce(d.body,_["content-type"]),requestMethod:d.method,url:h})),e)try{const J=yield e(G,S);return I.cancel(),J}catch(J){if(J.throttleRetry&&P{let u=null;if(i!=null)try{u=JSON.parse(or(i))}catch(h){ie.throwError("invalid JSON",x.errors.SERVER_ERROR,{body:i,error:h})}return e&&(u=e(u,a)),u},n=null;if(t!=null){n=ke(t);const i=typeof s=="string"?{url:s}:Ct(s);i.headers?Object.keys(i.headers).filter(u=>u.toLowerCase()==="content-type").length!==0||(i.headers=Ct(i.headers),i.headers["content-type"]="application/json"):i.headers={"content-type":"application/json"},s=i}return oo(s,n,r)}function _e(s,t){return t||(t={}),t=Ct(t),t.floor==null&&(t.floor=0),t.ceiling==null&&(t.ceiling=1e4),t.interval==null&&(t.interval=250),new Promise(function(e,r){let n=null,i=!1;const a=()=>i?!1:(i=!0,n&&clearTimeout(n),!0);t.timeout&&(n=setTimeout(()=>{a()&&r(new Error("timeout"))},t.timeout));const u=t.retryLimit;let h=0;function d(){return s().then(function(p){if(p!==void 0)a()&&e(p);else if(t.oncePoll)t.oncePoll.once("poll",d);else if(t.onceBlock)t.onceBlock.once("block",d);else if(!i){if(h++,h>u){a()&&r(new Error("retry limit reached"));return}let A=t.interval*parseInt(String(Math.random()*Math.pow(2,h)));At.ceiling&&(A=t.ceiling),setTimeout(d,A)}return null},function(p){a()&&r(p)})}d()})}const Jt="providers/5.7.2",Re=new x(Jt);class N{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const t={},e=this.address.bind(this),r=this.bigNumber.bind(this),n=this.blockTag.bind(this),i=this.data.bind(this),a=this.hash.bind(this),u=this.hex.bind(this),h=this.number.bind(this),d=this.type.bind(this),p=A=>this.data(A,!0);return t.transaction={hash:a,type:d,accessList:N.allowNull(this.accessList.bind(this),null),blockHash:N.allowNull(a,null),blockNumber:N.allowNull(h,null),transactionIndex:N.allowNull(h,null),confirmations:N.allowNull(h,null),from:e,gasPrice:N.allowNull(r),maxPriorityFeePerGas:N.allowNull(r),maxFeePerGas:N.allowNull(r),gasLimit:r,to:N.allowNull(e,null),value:r,nonce:h,data:i,r:N.allowNull(this.uint256),s:N.allowNull(this.uint256),v:N.allowNull(h),creates:N.allowNull(e,null),raw:N.allowNull(i)},t.transactionRequest={from:N.allowNull(e),nonce:N.allowNull(h),gasLimit:N.allowNull(r),gasPrice:N.allowNull(r),maxPriorityFeePerGas:N.allowNull(r),maxFeePerGas:N.allowNull(r),to:N.allowNull(e),value:N.allowNull(r),data:N.allowNull(p),type:N.allowNull(h),accessList:N.allowNull(this.accessList.bind(this),null)},t.receiptLog={transactionIndex:h,blockNumber:h,transactionHash:a,address:e,topics:N.arrayOf(a),data:i,logIndex:h,blockHash:a},t.receipt={to:N.allowNull(this.address,null),from:N.allowNull(this.address,null),contractAddress:N.allowNull(e,null),transactionIndex:h,root:N.allowNull(u),gasUsed:r,logsBloom:N.allowNull(i),blockHash:a,transactionHash:a,logs:N.arrayOf(this.receiptLog.bind(this)),blockNumber:h,confirmations:N.allowNull(h,null),cumulativeGasUsed:r,effectiveGasPrice:N.allowNull(r),status:N.allowNull(h),type:d},t.block={hash:N.allowNull(a),parentHash:a,number:h,timestamp:h,nonce:N.allowNull(u),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:N.allowNull(e),extraData:i,transactions:N.allowNull(N.arrayOf(a)),baseFeePerGas:N.allowNull(r)},t.blockWithTransactions=Ct(t.block),t.blockWithTransactions.transactions=N.allowNull(N.arrayOf(this.transactionResponse.bind(this))),t.filter={fromBlock:N.allowNull(n,void 0),toBlock:N.allowNull(n,void 0),blockHash:N.allowNull(a,void 0),address:N.allowNull(e,void 0),topics:N.allowNull(this.topics.bind(this),void 0)},t.filterLog={blockNumber:N.allowNull(h),blockHash:N.allowNull(a),transactionIndex:h,removed:N.allowNull(this.boolean.bind(this)),address:e,data:N.allowFalsish(i,"0x"),topics:N.arrayOf(a),transactionHash:a,logIndex:h},t}accessList(t){return Se(t||[])}number(t){return t==="0x"?0:O.from(t).toNumber()}type(t){return t==="0x"||t==null?0:O.from(t).toNumber()}bigNumber(t){return O.from(t)}boolean(t){if(typeof t=="boolean")return t;if(typeof t=="string"){if(t=t.toLowerCase(),t==="true")return!0;if(t==="false")return!1}throw new Error("invalid boolean - "+t)}hex(t,e){return typeof t=="string"&&(!e&&t.substring(0,2)!=="0x"&&(t="0x"+t),Bt(t))?t.toLowerCase():Re.throwArgumentError("invalid hash","value",t)}data(t,e){const r=this.hex(t,e);if(r.length%2!==0)throw new Error("invalid data; odd-length - "+t);return r}address(t){return ue(t)}callAddress(t){if(!Bt(t,32))return null;const e=ue(Ht(t,12));return e===Vn?null:e}contractAddress(t){return zn(t)}blockTag(t){if(t==null)return"latest";if(t==="earliest")return"0x0";switch(t){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return t}if(typeof t=="number"||Bt(t))return ar(t);throw new Error("invalid blockTag")}hash(t,e){const r=this.hex(t,e);return Ee(r)!==32?Re.throwArgumentError("invalid hash","value",t):r}difficulty(t){if(t==null)return null;const e=O.from(t);try{return e.toNumber()}catch{}return null}uint256(t){if(!Bt(t))throw new Error("invalid uint256");return Dt(t,32)}_block(t,e){t.author!=null&&t.miner==null&&(t.miner=t.author);const r=t._difficulty!=null?t._difficulty:t.difficulty,n=N.check(e,t);return n._difficulty=r==null?null:O.from(r),n}block(t){return this._block(t,this.formats.block)}blockWithTransactions(t){return this._block(t,this.formats.blockWithTransactions)}transactionRequest(t){return N.check(this.formats.transactionRequest,t)}transactionResponse(t){t.gas!=null&&t.gasLimit==null&&(t.gasLimit=t.gas),t.to&&O.from(t.to).isZero()&&(t.to="0x0000000000000000000000000000000000000000"),t.input!=null&&t.data==null&&(t.data=t.input),t.to==null&&t.creates==null&&(t.creates=this.contractAddress(t)),(t.type===1||t.type===2)&&t.accessList==null&&(t.accessList=[]);const e=N.check(this.formats.transaction,t);if(t.chainId!=null){let r=t.chainId;Bt(r)&&(r=O.from(r).toNumber()),e.chainId=r}else{let r=t.networkId;r==null&&e.v==null&&(r=t.chainId),Bt(r)&&(r=O.from(r).toNumber()),typeof r!="number"&&e.v!=null&&(r=(e.v-35)/2,r<0&&(r=0),r=parseInt(r)),typeof r!="number"&&(r=0),e.chainId=r}return e.blockHash&&e.blockHash.replace(/0/g,"")==="x"&&(e.blockHash=null),e}transaction(t){return Vs(t)}receiptLog(t){return N.check(this.formats.receiptLog,t)}receipt(t){const e=N.check(this.formats.receipt,t);if(e.root!=null)if(e.root.length<=4){const r=O.from(e.root).toNumber();r===0||r===1?(e.status!=null&&e.status!==r&&Re.throwArgumentError("alt-root-status/status mismatch","value",{root:e.root,status:e.status}),e.status=r,delete e.root):Re.throwArgumentError("invalid alt-root-status","value.root",e.root)}else e.root.length!==66&&Re.throwArgumentError("invalid root hash","value.root",e.root);return e.status!=null&&(e.byzantium=!0),e}topics(t){return Array.isArray(t)?t.map(e=>this.topics(e)):t!=null?this.hash(t,!0):null}filter(t){return N.check(this.formats.filter,t)}filterLog(t){return N.check(this.formats.filterLog,t)}static check(t,e){const r={};for(const n in t)try{const i=t[n](e[n]);i!==void 0&&(r[n]=i)}catch(i){throw i.checkKey=n,i.checkValue=e[n],i}return r}static allowNull(t,e){return function(r){return r==null?e:t(r)}}static allowFalsish(t,e){return function(r){return r?t(r):e}}static arrayOf(t){return function(e){if(!Array.isArray(e))throw new Error("not an array");const r=[];return e.forEach(function(n){r.push(t(n))}),r}}}function ao(s){return s&&typeof s.isCommunityResource=="function"}function qi(s){return ao(s)&&s.isCommunityResource()}let Fi=!1;function cr(){Fi||(Fi=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}var D=globalThis&&globalThis.__awaiter||function(s,t,e,r){function n(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function u(p){try{d(r.next(p))}catch(A){a(A)}}function h(p){try{d(r.throw(p))}catch(A){a(A)}}function d(p){p.done?i(p.value):n(p.value).then(u,h)}d((r=r.apply(s,t||[])).next())})};const U=new x(Jt),fo=10;function Ui(s){return s==null?"null":(Ee(s)!==32&&U.throwArgumentError("invalid topic","topic",s),s.toLowerCase())}function Gi(s){for(s=s.slice();s.length>0&&s[s.length-1]==null;)s.pop();return s.map(t=>{if(Array.isArray(t)){const e={};t.forEach(n=>{e[Ui(n)]=!0});const r=Object.keys(e);return r.sort(),r.join("|")}else return Ui(t)}).join("&")}function lo(s){return s===""?[]:s.split(/&/g).map(t=>{if(t==="")return[];const e=t.split("|").map(r=>r==="null"?null:r);return e.length===1?e[0]:e})}function Me(s){if(typeof s=="string"){if(s=s.toLowerCase(),Ee(s)===32)return"tx:"+s;if(s.indexOf(":")===-1)return s}else{if(Array.isArray(s))return"filter:*:"+Gi(s);if(jn.isForkEvent(s))throw U.warn("not implemented"),new Error("not implemented");if(s&&typeof s=="object")return"filter:"+(s.address||"*")+":"+Gi(s.topics||[])}throw new Error("invalid event - "+s)}function Te(){return new Date().getTime()}function zi(s){return new Promise(t=>{setTimeout(t,s)})}const uo=["block","network","pending","poll"];class ho{constructor(t,e,r){R(this,"tag",t),R(this,"listener",e),R(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const t=this.tag.split(":");return t[0]!=="tx"?null:t[1]}get filter(){const t=this.tag.split(":");if(t[0]!=="filter")return null;const e=t[1],r=lo(t[2]),n={};return r.length>0&&(n.topics=r),e&&e!=="*"&&(n.address=e),n}pollable(){return this.tag.indexOf(":")>=0||uo.indexOf(this.tag)>=0}}const co={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function qr(s){return Dt(O.from(s).toHexString(),32)}function Ji(s){return Kr.encode(be([s,Ht(Si(Si(s)),0,4)]))}const Sn=new RegExp("^(ipfs)://(.*)$","i"),Ki=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),Sn,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function Ve(s,t){try{return or(Ue(s,t))}catch{}return null}function Ue(s,t){if(s==="0x")return null;const e=O.from(Ht(s,t,t+32)).toNumber(),r=O.from(Ht(s,e,e+32)).toNumber();return Ht(s,e+32,e+32+r)}function Fr(s){return s.match(/^ipfs:\/\/ipfs\//i)?s=s.substring(12):s.match(/^ipfs:\/\//i)?s=s.substring(7):U.throwArgumentError("unsupported IPFS format","link",s),`https://gateway.ipfs.io/ipfs/${s}`}function Hi(s){const t=K(s);if(t.length>32)throw new Error("internal; should not happen");const e=new Uint8Array(32);return e.set(t,32-t.length),e}function po(s){if(s.length%32===0)return s;const t=new Uint8Array(Math.ceil(s.length/32)*32);return t.set(s),t}function Rn(s){const t=[];let e=0;for(let r=0;rO.from(t).eq(1)).catch(t=>{if(t.code===x.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,t})),this._supportsEip2544}_fetch(t,e){return D(this,void 0,void 0,function*(){const r={to:this.address,ccipReadEnabled:!0,data:Wt([t,Ye(this.name),e||"0x"])};let n=!1;(yield this.supportsWildcard())&&(n=!0,r.data=Wt(["0x9061b923",Rn([ks(this.name),r.data])]));try{let i=yield this.provider.call(r);return K(i).length%32===4&&U.throwError("resolver threw error",x.errors.CALL_EXCEPTION,{transaction:r,data:i}),n&&(i=Ue(i,0)),i}catch(i){if(i.code===x.errors.CALL_EXCEPTION)return null;throw i}})}_fetchBytes(t,e){return D(this,void 0,void 0,function*(){const r=yield this._fetch(t,e);return r!=null?Ue(r,0):null})}_getAddress(t,e){const r=co[String(t)];if(r==null&&U.throwError(`unsupported coin type: ${t}`,x.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`}),r.ilk==="eth")return this.provider.formatter.address(e);const n=K(e);if(r.p2pkh!=null){const i=e.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(i){const a=parseInt(i[1],16);if(i[2].length===a*2&&a>=1&&a<=75)return Ji(be([[r.p2pkh],"0x"+i[2]]))}}if(r.p2sh!=null){const i=e.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(i){const a=parseInt(i[1],16);if(i[2].length===a*2&&a>=1&&a<=75)return Ji(be([[r.p2sh],"0x"+i[2]]))}}if(r.prefix!=null){const i=n[1];let a=n[0];if(a===0?i!==20&&i!==32&&(a=-1):a=-1,a>=0&&n.length===2+i&&i>=1&&i<=75){const u=ki.toWords(n.slice(2));return u.unshift(a),ki.encode(r.prefix,u)}}return null}getAddress(t){return D(this,void 0,void 0,function*(){if(t==null&&(t=60),t===60)try{const n=yield this._fetch("0x3b3b57de");return n==="0x"||n===Zn?null:this.provider.formatter.callAddress(n)}catch(n){if(n.code===x.errors.CALL_EXCEPTION)return null;throw n}const e=yield this._fetchBytes("0xf1cb7e06",qr(t));if(e==null||e==="0x")return null;const r=this._getAddress(t,e);return r==null&&U.throwError("invalid or unsupported coin data",x.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`,coinType:t,data:e}),r})}getAvatar(){return D(this,void 0,void 0,function*(){const t=[{type:"name",content:this.name}];try{const e=yield this.getText("avatar");if(e==null)return null;for(let r=0;ra[h])}return U.throwError("invalid or unsupported content hash data",x.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:t})})}getText(t){return D(this,void 0,void 0,function*(){let e=ke(t);e=be([qr(64),qr(e.length),e]),e.length%32!==0&&(e=be([e,Dt("0x",32-t.length%32)]));const r=yield this._fetchBytes("0x59d1d43c",Q(e));return r==null||r==="0x"?null:or(r)})}}let Ur=null,go=1;class ri extends fr{constructor(t){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),R(this,"anyNetwork",t==="any"),this.anyNetwork&&(t=this.detectNetwork()),t instanceof Promise)this._networkPromise=t,t.catch(e=>{}),this._ready().catch(e=>{});else{const e=pe(new.target,"getNetwork")(t);e?(R(this,"_network",e),this.emit("network",e,null)):U.throwArgumentError("invalid network","network",t)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return D(this,void 0,void 0,function*(){if(this._network==null){let t=null;if(this._networkPromise)try{t=yield this._networkPromise}catch{}t==null&&(t=yield this.detectNetwork()),t||U.throwError("no network detected",x.errors.UNKNOWN_ERROR,{}),this._network==null&&(this.anyNetwork?this._network=t:R(this,"_network",t),this.emit("network",t,null))}return this._network})}get ready(){return _e(()=>this._ready().then(t=>t,t=>{if(!(t.code===x.errors.NETWORK_ERROR&&t.event==="noNetwork"))throw t}))}static getFormatter(){return Ur==null&&(Ur=new N),Ur}static getNetwork(t){return Nn(t??"homestead")}ccipReadFetch(t,e,r){return D(this,void 0,void 0,function*(){if(this.disableCcipRead||r.length===0)return null;const n=t.to.toLowerCase(),i=e.toLowerCase(),a=[];for(let u=0;u=0?null:JSON.stringify({data:i,sender:n}),A=yield Ge({url:d,errorPassThrough:!0},p,(E,_)=>(E.status=_.statusCode,E));if(A.data)return A.data;const M=A.message||"unknown error";if(A.status>=400&&A.status<500)return U.throwError(`response not found during CCIP fetch: ${M}`,x.errors.SERVER_ERROR,{url:h,errorMessage:M});a.push(M)}return U.throwError(`error encountered during CCIP fetch: ${a.map(u=>JSON.stringify(u)).join(", ")}`,x.errors.SERVER_ERROR,{urls:r,errorMessages:a})})}_getInternalBlockNumber(t){return D(this,void 0,void 0,function*(){if(yield this._ready(),t>0)for(;this._internalBlockNumber;){const n=this._internalBlockNumber;try{const i=yield n;if(Te()-i.respTime<=t)return i.blockNumber;break}catch{if(this._internalBlockNumber===n)break}}const e=Te(),r=Lt({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(n=>null,n=>n)}).then(({blockNumber:n,networkError:i})=>{if(i)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),i;const a=Te();return n=O.from(n).toNumber(),n{this._internalBlockNumber===r&&(this._internalBlockNumber=null)}),(yield r).blockNumber})}poll(){return D(this,void 0,void 0,function*(){const t=go++,e=[];let r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(n){this.emit("error",n);return}if(this._setFastBlockNumber(r),this.emit("poll",t,r),r===this._lastBlockNumber){this.emit("didPoll",t);return}if(this._emitted.block===-2&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)U.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",U.makeError("network block skew detected",x.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let n=this._emitted.block+1;n<=r;n++)this.emit("block",n);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach(n=>{if(n==="block")return;const i=this._emitted[n];i!=="pending"&&r-i>12&&delete this._emitted[n]})),this._lastBlockNumber===-2&&(this._lastBlockNumber=r-1),this._events.forEach(n=>{switch(n.type){case"tx":{const i=n.hash;let a=this.getTransactionReceipt(i).then(u=>(!u||u.blockNumber==null||(this._emitted["t:"+i]=u.blockNumber,this.emit(i,u)),null)).catch(u=>{this.emit("error",u)});e.push(a);break}case"filter":{if(!n._inflight){n._inflight=!0,n._lastBlockNumber===-2&&(n._lastBlockNumber=r-1);const i=n.filter;i.fromBlock=n._lastBlockNumber+1,i.toBlock=r;const a=i.toBlock-this._maxFilterBlockRange;a>i.fromBlock&&(i.fromBlock=a),i.fromBlock<0&&(i.fromBlock=0);const u=this.getLogs(i).then(h=>{n._inflight=!1,h.length!==0&&h.forEach(d=>{d.blockNumber>n._lastBlockNumber&&(n._lastBlockNumber=d.blockNumber),this._emitted["b:"+d.blockHash]=d.blockNumber,this._emitted["t:"+d.transactionHash]=d.blockNumber,this.emit(i,d)})}).catch(h=>{this.emit("error",h),n._inflight=!1});e.push(u)}break}}}),this._lastBlockNumber=r,Promise.all(e).then(()=>{this.emit("didPoll",t)}).catch(n=>{this.emit("error",n)})})}resetEventsBlock(t){this._lastBlockNumber=t-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return D(this,void 0,void 0,function*(){return U.throwError("provider does not support network detection",x.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return D(this,void 0,void 0,function*(){const t=yield this._ready(),e=yield this.detectNetwork();if(t.chainId!==e.chainId){if(this.anyNetwork)return this._network=e,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",e,t),yield zi(0),this._network;const r=U.makeError("underlying network changed",x.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:e});throw this.emit("error",r),r}return t})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(t=>{this._setFastBlockNumber(t)},t=>{}),this._fastBlockNumber!=null?this._fastBlockNumber:-1}get polling(){return this._poller!=null}set polling(t){t&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(t){if(typeof t!="number"||t<=0||parseInt(String(t))!=t)throw new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){const t=Te();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then(e=>((this._fastBlockNumber==null||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(t){this._fastBlockNumber!=null&&tthis._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))}waitForTransaction(t,e,r){return D(this,void 0,void 0,function*(){return this._waitForTransaction(t,e??1,r||0,null)})}_waitForTransaction(t,e,r,n){return D(this,void 0,void 0,function*(){const i=yield this.getTransactionReceipt(t);return(i?i.confirmations:0)>=e?i:new Promise((a,u)=>{const h=[];let d=!1;const p=function(){return d?!0:(d=!0,h.forEach(M=>{M()}),!1)},A=M=>{M.confirmations{this.removeListener(t,A)}),n){let M=n.startBlock,E=null;const _=I=>D(this,void 0,void 0,function*(){d||(yield zi(1e3),this.getTransactionCount(n.from).then(T=>D(this,void 0,void 0,function*(){if(!d){if(T<=n.nonce)M=I;else{{const P=yield this.getTransaction(t);if(P&&P.blockNumber!=null)return}for(E==null&&(E=M-3,E{d||this.once("block",_)}))});if(d)return;this.once("block",_),h.push(()=>{this.removeListener("block",_)})}if(typeof r=="number"&&r>0){const M=setTimeout(()=>{p()||u(U.makeError("timeout exceeded",x.errors.TIMEOUT,{timeout:r}))},r);M.unref&&M.unref(),h.push(()=>{clearTimeout(M)})}})})}getBlockNumber(){return D(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return D(this,void 0,void 0,function*(){yield this.getNetwork();const t=yield this.perform("getGasPrice",{});try{return O.from(t)}catch(e){return U.throwError("bad result from backend",x.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e})}})}getBalance(t,e){return D(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Lt({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),n=yield this.perform("getBalance",r);try{return O.from(n)}catch(i){return U.throwError("bad result from backend",x.errors.SERVER_ERROR,{method:"getBalance",params:r,result:n,error:i})}})}getTransactionCount(t,e){return D(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Lt({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),n=yield this.perform("getTransactionCount",r);try{return O.from(n).toNumber()}catch(i){return U.throwError("bad result from backend",x.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:n,error:i})}})}getCode(t,e){return D(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Lt({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),n=yield this.perform("getCode",r);try{return Q(n)}catch(i){return U.throwError("bad result from backend",x.errors.SERVER_ERROR,{method:"getCode",params:r,result:n,error:i})}})}getStorageAt(t,e,r){return D(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield Lt({address:this._getAddress(t),blockTag:this._getBlockTag(r),position:Promise.resolve(e).then(a=>ar(a))}),i=yield this.perform("getStorageAt",n);try{return Q(i)}catch(a){return U.throwError("bad result from backend",x.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:i,error:a})}})}_wrapTransaction(t,e,r){if(e!=null&&Ee(e)!==32)throw new Error("invalid response - sendTransaction");const n=t;return e!=null&&t.hash!==e&&U.throwError("Transaction hash mismatch from Provider.sendTransaction.",x.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:e}),n.wait=(i,a)=>D(this,void 0,void 0,function*(){i==null&&(i=1),a==null&&(a=0);let u;i!==0&&r!=null&&(u={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:r});const h=yield this._waitForTransaction(t.hash,i,a,u);return h==null&&i===0?null:(this._emitted["t:"+t.hash]=h.blockNumber,h.status===0&&U.throwError("transaction failed",x.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:h}),h)}),n}sendTransaction(t){return D(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield Promise.resolve(t).then(i=>Q(i)),r=this.formatter.transaction(t);r.confirmations==null&&(r.confirmations=0);const n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const i=yield this.perform("sendTransaction",{signedTransaction:e});return this._wrapTransaction(r,i,n)}catch(i){throw i.transaction=r,i.transactionHash=r.hash,i}})}_getTransactionRequest(t){return D(this,void 0,void 0,function*(){const e=yield t,r={};return["from","to"].forEach(n=>{e[n]!=null&&(r[n]=Promise.resolve(e[n]).then(i=>i?this._getAddress(i):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(n=>{e[n]!=null&&(r[n]=Promise.resolve(e[n]).then(i=>i?O.from(i):null))}),["type"].forEach(n=>{e[n]!=null&&(r[n]=Promise.resolve(e[n]).then(i=>i??null))}),e.accessList&&(r.accessList=this.formatter.accessList(e.accessList)),["data"].forEach(n=>{e[n]!=null&&(r[n]=Promise.resolve(e[n]).then(i=>i?Q(i):null))}),this.formatter.transactionRequest(yield Lt(r))})}_getFilter(t){return D(this,void 0,void 0,function*(){t=yield t;const e={};return t.address!=null&&(e.address=this._getAddress(t.address)),["blockHash","topics"].forEach(r=>{t[r]!=null&&(e[r]=t[r])}),["fromBlock","toBlock"].forEach(r=>{t[r]!=null&&(e[r]=this._getBlockTag(t[r]))}),this.formatter.filter(yield Lt(e))})}_call(t,e,r){return D(this,void 0,void 0,function*(){r>=fo&&U.throwError("CCIP read exceeded maximum redirections",x.errors.SERVER_ERROR,{redirects:r,transaction:t});const n=t.to,i=yield this.perform("call",{transaction:t,blockTag:e});if(r>=0&&e==="latest"&&n!=null&&i.substring(0,10)==="0x556f1830"&&Ee(i)%32===4)try{const a=Ht(i,4),u=Ht(a,0,32);O.from(u).eq(n)||U.throwError("CCIP Read sender did not match",x.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:i});const h=[],d=O.from(Ht(a,32,64)).toNumber(),p=O.from(Ht(a,d,d+32)).toNumber(),A=Ht(a,d+32);for(let P=0;PD(this,void 0,void 0,function*(){const i=yield this.perform("getBlock",n);if(i==null)return n.blockHash!=null&&this._emitted["b:"+n.blockHash]==null||n.blockTag!=null&&r>this._emitted.block?null:void 0;if(e){let a=null;for(let h=0;hthis._wrapTransaction(h)),u}return this.formatter.block(i)}),{oncePoll:this})})}getBlock(t){return this._getBlock(t,!1)}getBlockWithTransactions(t){return this._getBlock(t,!0)}getTransaction(t){return D(this,void 0,void 0,function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return _e(()=>D(this,void 0,void 0,function*(){const r=yield this.perform("getTransaction",e);if(r==null)return this._emitted["t:"+t]==null?null:void 0;const n=this.formatter.transactionResponse(r);if(n.blockNumber==null)n.confirmations=0;else if(n.confirmations==null){let a=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;a<=0&&(a=1),n.confirmations=a}return this._wrapTransaction(n)}),{oncePoll:this})})}getTransactionReceipt(t){return D(this,void 0,void 0,function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return _e(()=>D(this,void 0,void 0,function*(){const r=yield this.perform("getTransactionReceipt",e);if(r==null)return this._emitted["t:"+t]==null?null:void 0;if(r.blockHash==null)return;const n=this.formatter.receipt(r);if(n.blockNumber==null)n.confirmations=0;else if(n.confirmations==null){let a=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;a<=0&&(a=1),n.confirmations=a}return n}),{oncePoll:this})})}getLogs(t){return D(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield Lt({filter:this._getFilter(t)}),r=yield this.perform("getLogs",e);return r.forEach(n=>{n.removed==null&&(n.removed=!1)}),N.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)})}getEtherPrice(){return D(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(t){return D(this,void 0,void 0,function*(){if(t=yield t,typeof t=="number"&&t<0){t%1&&U.throwArgumentError("invalid BlockTag","blockTag",t);let e=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return e+=t,e<0&&(e=0),this.formatter.blockTag(e)}return this.formatter.blockTag(t)})}getResolver(t){return D(this,void 0,void 0,function*(){let e=t;for(;;){if(e===""||e==="."||t!=="eth"&&e==="eth")return null;const r=yield this._getResolver(e,"getResolver");if(r!=null){const n=new Qi(this,r,t);return e!==t&&!(yield n.supportsWildcard())?null:n}e=e.split(".").slice(1).join(".")}})}_getResolver(t,e){return D(this,void 0,void 0,function*(){e==null&&(e="ENS");const r=yield this.getNetwork();r.ensAddress||U.throwError("network does not support ENS",x.errors.UNSUPPORTED_OPERATION,{operation:e,network:r.name});try{const n=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+Ye(t).substring(2)});return this.formatter.callAddress(n)}catch{}return null})}resolveName(t){return D(this,void 0,void 0,function*(){t=yield t;try{return Promise.resolve(this.formatter.address(t))}catch(r){if(Bt(t))throw r}typeof t!="string"&&U.throwArgumentError("invalid ENS name","name",t);const e=yield this.getResolver(t);return e?yield e.getAddress():null})}lookupAddress(t){return D(this,void 0,void 0,function*(){t=yield t,t=this.formatter.address(t);const e=t.substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(e,"lookupAddress");if(r==null)return null;const n=Ve(yield this.call({to:r,data:"0x691f3431"+Ye(e).substring(2)}),0);return(yield this.resolveName(n))!=t?null:n})}getAvatar(t){return D(this,void 0,void 0,function*(){let e=null;if(Bt(t)){const i=this.formatter.address(t).substring(2).toLowerCase()+".addr.reverse",a=yield this._getResolver(i,"getAvatar");if(!a)return null;e=new Qi(this,a,i);try{const u=yield e.getAvatar();if(u)return u.url}catch(u){if(u.code!==x.errors.CALL_EXCEPTION)throw u}try{const u=Ve(yield this.call({to:a,data:"0x691f3431"+Ye(i).substring(2)}),0);e=yield this.getResolver(u)}catch(u){if(u.code!==x.errors.CALL_EXCEPTION)throw u;return null}}else if(e=yield this.getResolver(t),!e)return null;const r=yield e.getAvatar();return r==null?null:r.url})}perform(t,e){return U.throwError(t+" not implemented",x.errors.NOT_IMPLEMENTED,{operation:t})}_startEvent(t){this.polling=this._events.filter(e=>e.pollable()).length>0}_stopEvent(t){this.polling=this._events.filter(e=>e.pollable()).length>0}_addEventListener(t,e,r){const n=new ho(Me(t),e,r);return this._events.push(n),this._startEvent(n),this}on(t,e){return this._addEventListener(t,e,!1)}once(t,e){return this._addEventListener(t,e,!0)}emit(t,...e){let r=!1,n=[],i=Me(t);return this._events=this._events.filter(a=>a.tag!==i?!0:(setTimeout(()=>{a.listener.apply(this,e)},0),r=!0,a.once?(n.push(a),!1):!0)),n.forEach(a=>{this._stopEvent(a)}),r}listenerCount(t){if(!t)return this._events.length;let e=Me(t);return this._events.filter(r=>r.tag===e).length}listeners(t){if(t==null)return this._events.map(r=>r.listener);let e=Me(t);return this._events.filter(r=>r.tag===e).map(r=>r.listener)}off(t,e){if(e==null)return this.removeAllListeners(t);const r=[];let n=!1,i=Me(t);return this._events=this._events.filter(a=>a.tag!==i||a.listener!=e||n?!0:(n=!0,r.push(a),!1)),r.forEach(a=>{this._stopEvent(a)}),this}removeAllListeners(t){let e=[];if(t==null)e=this._events,this._events=[];else{const r=Me(t);this._events=this._events.filter(n=>n.tag!==r?!0:(e.push(n),!1))}return e.forEach(r=>{this._stopEvent(r)}),this}}var ae=globalThis&&globalThis.__awaiter||function(s,t,e,r){function n(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function u(p){try{d(r.next(p))}catch(A){a(A)}}function h(p){try{d(r.throw(p))}catch(A){a(A)}}function d(p){p.done?i(p.value):n(p.value).then(u,h)}d((r=r.apply(s,t||[])).next())})};const Tt=new x(Jt),mo=["call","estimateGas"];function De(s,t){if(s==null)return null;if(typeof s.message=="string"&&s.message.match("reverted")){const e=Bt(s.data)?s.data:null;if(!t||e)return{message:s.message,data:e}}if(typeof s=="object"){for(const e in s){const r=De(s[e],t);if(r)return r}return null}if(typeof s=="string")try{return De(JSON.parse(s),t)}catch{}return null}function Tn(s,t,e){const r=e.transaction||e.signedTransaction;if(s==="call"){const i=De(t,!0);if(i)return i.data;Tt.throwError("missing revert data in call exception; Transaction reverted without a reason string",x.errors.CALL_EXCEPTION,{data:"0x",transaction:r,error:t})}if(s==="estimateGas"){let i=De(t.body,!1);i==null&&(i=De(t,!1)),i&&Tt.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",x.errors.UNPREDICTABLE_GAS_LIMIT,{reason:i.message,method:s,transaction:r,error:t})}let n=t.message;throw t.code===x.errors.SERVER_ERROR&&t.error&&typeof t.error.message=="string"?n=t.error.message:typeof t.body=="string"?n=t.body:typeof t.responseText=="string"&&(n=t.responseText),n=(n||"").toLowerCase(),n.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&Tt.throwError("insufficient funds for intrinsic transaction cost",x.errors.INSUFFICIENT_FUNDS,{error:t,method:s,transaction:r}),n.match(/nonce (is )?too low/i)&&Tt.throwError("nonce has already been used",x.errors.NONCE_EXPIRED,{error:t,method:s,transaction:r}),n.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&Tt.throwError("replacement fee too low",x.errors.REPLACEMENT_UNDERPRICED,{error:t,method:s,transaction:r}),n.match(/only replay-protected/i)&&Tt.throwError("legacy pre-eip-155 transactions not supported",x.errors.UNSUPPORTED_OPERATION,{error:t,method:s,transaction:r}),mo.indexOf(s)>=0&&n.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&Tt.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",x.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:s,transaction:r}),t}function ji(s){return new Promise(function(t){setTimeout(t,s)})}function vo(s){if(s.error){const t=new Error(s.error.message);throw t.code=s.error.code,t.data=s.error.data,t}return s.result}function Be(s){return s&&s.toLowerCase()}const Yr={};class Bn extends Vr{constructor(t,e,r){if(super(),t!==Yr)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");R(this,"provider",e),r==null&&(r=0),typeof r=="string"?(R(this,"_address",this.provider.formatter.address(r)),R(this,"_index",null)):typeof r=="number"?(R(this,"_index",r),R(this,"_address",null)):Tt.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(t){return Tt.throwError("cannot alter JSON-RPC Signer connection",x.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new wo(Yr,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(t=>(t.length<=this._index&&Tt.throwError("unknown account #"+this._index,x.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(t[this._index])))}sendUncheckedTransaction(t){t=Ct(t);const e=this.getAddress().then(r=>(r&&(r=r.toLowerCase()),r));if(t.gasLimit==null){const r=Ct(t);r.from=e,t.gasLimit=this.provider.estimateGas(r)}return t.to!=null&&(t.to=Promise.resolve(t.to).then(r=>ae(this,void 0,void 0,function*(){if(r==null)return null;const n=yield this.provider.resolveName(r);return n==null&&Tt.throwArgumentError("provided ENS name resolves to null","tx.to",r),n}))),Lt({tx:Lt(t),sender:e}).then(({tx:r,sender:n})=>{r.from!=null?r.from.toLowerCase()!==n&&Tt.throwArgumentError("from address mismatch","transaction",t):r.from=n;const i=this.provider.constructor.hexlifyTransaction(r,{from:!0});return this.provider.send("eth_sendTransaction",[i]).then(a=>a,a=>(typeof a.message=="string"&&a.message.match(/user denied/i)&&Tt.throwError("user rejected transaction",x.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:r}),Tn("sendTransaction",a,i)))})}signTransaction(t){return Tt.throwError("signing transactions is unsupported",x.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(t){return ae(this,void 0,void 0,function*(){const e=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(t);try{return yield _e(()=>ae(this,void 0,void 0,function*(){const n=yield this.provider.getTransaction(r);if(n!==null)return this.provider._wrapTransaction(n,r,e)}),{oncePoll:this.provider})}catch(n){throw n.transactionHash=r,n}})}signMessage(t){return ae(this,void 0,void 0,function*(){const e=typeof t=="string"?ke(t):t,r=yield this.getAddress();try{return yield this.provider.send("personal_sign",[Q(e),r.toLowerCase()])}catch(n){throw typeof n.message=="string"&&n.message.match(/user denied/i)&&Tt.throwError("user rejected signing",x.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:t}),n}})}_legacySignMessage(t){return ae(this,void 0,void 0,function*(){const e=typeof t=="string"?ke(t):t,r=yield this.getAddress();try{return yield this.provider.send("eth_sign",[r.toLowerCase(),Q(e)])}catch(n){throw typeof n.message=="string"&&n.message.match(/user denied/i)&&Tt.throwError("user rejected signing",x.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:t}),n}})}_signTypedData(t,e,r){return ae(this,void 0,void 0,function*(){const n=yield jt.resolveNames(t,e,r,a=>this.provider.resolveName(a)),i=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(jt.getPayload(n.domain,e,n.value))])}catch(a){throw typeof a.message=="string"&&a.message.match(/user denied/i)&&Tt.throwError("user rejected signing",x.errors.ACTION_REJECTED,{action:"_signTypedData",from:i,messageData:{domain:n.domain,types:e,value:n.value}}),a}})}unlock(t){return ae(this,void 0,void 0,function*(){const e=this.provider,r=yield this.getAddress();return e.send("personal_unlockAccount",[r.toLowerCase(),t,null])})}}class wo extends Bn{sendTransaction(t){return this.sendUncheckedTransaction(t).then(e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:r=>this.provider.waitForTransaction(e,r)}))}}const yo={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class Pe extends ri{constructor(t,e){let r=e;r==null&&(r=new Promise((n,i)=>{setTimeout(()=>{this.detectNetwork().then(a=>{n(a)},a=>{i(a)})},0)})),super(r),t||(t=pe(this.constructor,"defaultUrl")()),typeof t=="string"?R(this,"connection",Object.freeze({url:t})):R(this,"connection",Object.freeze(Ct(t))),this._nextId=42}get _cache(){return this._eventLoopCache==null&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return ae(this,void 0,void 0,function*(){yield ji(0);let t=null;try{t=yield this.send("eth_chainId",[])}catch{try{t=yield this.send("net_version",[])}catch{}}if(t!=null){const e=pe(this.constructor,"getNetwork");try{return e(O.from(t).toNumber())}catch(r){return Tt.throwError("could not detect network",x.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:r})}}return Tt.throwError("could not detect network",x.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(t){return new Bn(Yr,this,t)}getUncheckedSigner(t){return this.getSigner(t).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(t=>t.map(e=>this.formatter.address(e)))}send(t,e){const r={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:le(r),provider:this});const n=["eth_chainId","eth_blockNumber"].indexOf(t)>=0;if(n&&this._cache[t])return this._cache[t];const i=Ge(this.connection,JSON.stringify(r),vo).then(a=>(this.emit("debug",{action:"response",request:r,response:a,provider:this}),a),a=>{throw this.emit("debug",{action:"response",error:a,request:r,provider:this}),a});return n&&(this._cache[t]=i,setTimeout(()=>{this._cache[t]=null},0)),i}prepareRequest(t,e){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[Be(e.address),e.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[Be(e.address),e.blockTag]];case"getCode":return["eth_getCode",[Be(e.address),e.blockTag]];case"getStorageAt":return["eth_getStorageAt",[Be(e.address),Dt(e.position,32),e.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[e.signedTransaction]];case"getBlock":return e.blockTag?["eth_getBlockByNumber",[e.blockTag,!!e.includeTransactions]]:e.blockHash?["eth_getBlockByHash",[e.blockHash,!!e.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[e.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[e.transactionHash]];case"call":return["eth_call",[pe(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0}),e.blockTag]];case"estimateGas":return["eth_estimateGas",[pe(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0})]];case"getLogs":return e.filter&&e.filter.address!=null&&(e.filter.address=Be(e.filter.address)),["eth_getLogs",[e.filter]]}return null}perform(t,e){return ae(this,void 0,void 0,function*(){if(t==="call"||t==="estimateGas"){const n=e.transaction;if(n&&n.type!=null&&O.from(n.type).isZero()&&n.maxFeePerGas==null&&n.maxPriorityFeePerGas==null){const i=yield this.getFeeData();i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(e=Ct(e),e.transaction=Ct(n),delete e.transaction.type)}}const r=this.prepareRequest(t,e);r==null&&Tt.throwError(t+" not implemented",x.errors.NOT_IMPLEMENTED,{operation:t});try{return yield this.send(r[0],r[1])}catch(n){return Tn(t,n,e)}})}_startEvent(t){t.tag==="pending"&&this._startPending(),super._startEvent(t)}_startPending(){if(this._pendingFilter!=null)return;const t=this,e=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=e,e.then(function(r){function n(){t.send("eth_getFilterChanges",[r]).then(function(i){if(t._pendingFilter!=e)return null;let a=Promise.resolve();return i.forEach(function(u){t._emitted["t:"+u.toLowerCase()]="pending",a=a.then(function(){return t.getTransaction(u).then(function(h){return t.emit("pending",h),null})})}),a.then(function(){return ji(1e3)})}).then(function(){if(t._pendingFilter!=e){t.send("eth_uninstallFilter",[r]);return}return setTimeout(function(){n()},0),null}).catch(i=>{})}return n(),r}).catch(r=>{})}_stopEvent(t){t.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),super._stopEvent(t)}static hexlifyTransaction(t,e){const r=Ct(yo);if(e)for(const i in e)e[i]&&(r[i]=!0);Jn(t,r);const n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(i){if(t[i]==null)return;const a=ar(O.from(t[i]));i==="gasLimit"&&(i="gas"),n[i]=a}),["from","to","data"].forEach(function(i){t[i]!=null&&(n[i]=Q(t[i]))}),t.accessList&&(n.accessList=Se(t.accessList)),n}}let qe=null;try{if(qe=WebSocket,qe==null)throw new Error("inject please")}catch{const t=new x(Jt);qe=function(){t.throwError("WebSockets not supported in this environment",x.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var Gr=globalThis&&globalThis.__awaiter||function(s,t,e,r){function n(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function u(p){try{d(r.next(p))}catch(A){a(A)}}function h(p){try{d(r.throw(p))}catch(A){a(A)}}function d(p){p.done?i(p.value):n(p.value).then(u,h)}d((r=r.apply(s,t||[])).next())})};const Je=new x(Jt);let Ao=1;class ii extends Pe{constructor(t,e){e==="any"&&Je.throwError("WebSocketProvider does not support 'any' network yet",x.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),typeof t=="string"?super(t,e):super("_websocket",e),this._pollingInterval=-1,this._wsReady=!1,typeof t=="string"?R(this,"_websocket",new qe(this.connection.url)):R(this,"_websocket",t),R(this,"_requests",{}),R(this,"_subs",{}),R(this,"_subIds",{}),R(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach(n=>{this.websocket.send(this._requests[n].payload)})},this.websocket.onmessage=n=>{const i=n.data,a=JSON.parse(i);if(a.id!=null){const u=String(a.id),h=this._requests[u];if(delete this._requests[u],a.result!==void 0)h.callback(null,a.result),this.emit("debug",{action:"response",request:JSON.parse(h.payload),response:a.result,provider:this});else{let d=null;a.error?(d=new Error(a.error.message||"unknown error"),R(d,"code",a.error.code||null),R(d,"response",i)):d=new Error("unknown error"),h.callback(d,void 0),this.emit("debug",{action:"response",error:d,request:JSON.parse(h.payload),provider:this})}}else if(a.method==="eth_subscription"){const u=this._subs[a.params.subscription];u&&u.processFunc(a.params.result)}else console.warn("this should not happen")};const r=setInterval(()=>{this.emit("poll")},1e3);r.unref&&r.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(t){Je.throwError("cannot reset events block on WebSocketProvider",x.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(t){Je.throwError("cannot set polling interval on WebSocketProvider",x.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return Gr(this,void 0,void 0,function*(){return null})}set polling(t){t&&Je.throwError("cannot set polling on WebSocketProvider",x.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(t,e){const r=Ao++;return new Promise((n,i)=>{function a(h,d){return h?i(h):n(d)}const u=JSON.stringify({method:t,params:e,id:r,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(u),provider:this}),this._requests[String(r)]={callback:a,payload:u},this._wsReady&&this.websocket.send(u)})}static defaultUrl(){return"ws://localhost:8546"}_subscribe(t,e,r){return Gr(this,void 0,void 0,function*(){let n=this._subIds[t];n==null&&(n=Promise.all(e).then(a=>this.send("eth_subscribe",a)),this._subIds[t]=n);const i=yield n;this._subs[i]={tag:t,processFunc:r}})}_startEvent(t){switch(t.type){case"block":this._subscribe("block",["newHeads"],e=>{const r=O.from(e.number).toNumber();this._emitted.block=r,this.emit("block",r)});break;case"pending":this._subscribe("pending",["newPendingTransactions"],e=>{this.emit("pending",e)});break;case"filter":this._subscribe(t.tag,["logs",this._getFilter(t.filter)],e=>{e.removed==null&&(e.removed=!1),this.emit(t.filter,this.formatter.filterLog(e))});break;case"tx":{const e=r=>{const n=r.hash;this.getTransactionReceipt(n).then(i=>{i&&this.emit(n,i)})};e(t),this._subscribe("tx",["newHeads"],r=>{this._events.filter(n=>n.type==="tx").forEach(e)});break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",t);break}}_stopEvent(t){let e=t.tag;if(t.type==="tx"){if(this._events.filter(n=>n.type==="tx").length)return;e="tx"}else if(this.listenerCount(t.event))return;const r=this._subIds[e];r&&(delete this._subIds[e],r.then(n=>{this._subs[n]&&(delete this._subs[n],this.send("eth_unsubscribe",[n]))}))}destroy(){return Gr(this,void 0,void 0,function*(){this.websocket.readyState===qe.CONNECTING&&(yield new Promise(t=>{this.websocket.onopen=function(){t(!0)},this.websocket.onerror=function(){t(!1)}})),this.websocket.close(1e3)})}}var bo=globalThis&&globalThis.__awaiter||function(s,t,e,r){function n(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function u(p){try{d(r.next(p))}catch(A){a(A)}}function h(p){try{d(r.throw(p))}catch(A){a(A)}}function d(p){p.done?i(p.value):n(p.value).then(u,h)}d((r=r.apply(s,t||[])).next())})};const Oe=new x(Jt);class ko extends Pe{detectNetwork(){const t=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return bo(this,void 0,void 0,function*(){let e=this.network;return e==null&&(e=yield t.detectNetwork.call(this),e||Oe.throwError("no network detected",x.errors.UNKNOWN_ERROR,{}),this._network==null&&(R(this,"_network",e),this.emit("network",e,null))),e})}}class ve extends ko{constructor(t,e){Oe.checkAbstract(new.target,ve),t=pe(new.target,"getNetwork")(t),e=pe(new.target,"getApiKey")(e);const r=pe(new.target,"getUrl")(t,e);super(r,t),typeof e=="string"?R(this,"apiKey",e):e!=null&&Object.keys(e).forEach(n=>{R(this,n,e[n])})}_startPending(){Oe.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(t){return Oe.throwError("API provider does not support signing",x.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(t){return t}static getUrl(t,e){return Oe.throwError("not implemented; sub-classes must override getUrl",x.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}const Yi=new x(Jt),Ze="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class Eo extends ii{constructor(t,e){const r=new Cn(t,e),n=r.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");super(n,r.network),R(this,"apiKey",r.apiKey)}isCommunityResource(){return this.apiKey===Ze}}class Cn extends ve{static getWebSocketProvider(t,e){return new Eo(t,e)}static getApiKey(t){return t==null?Ze:(t&&typeof t!="string"&&Yi.throwArgumentError("invalid apiKey","apiKey",t),t)}static getUrl(t,e){let r=null;switch(t.name){case"homestead":r="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":r="eth-goerli.g.alchemy.com/v2/";break;case"matic":r="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":r="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":r="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":r="arb-goerli.g.alchemy.com/v2/";break;case"optimism":r="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":r="opt-goerli.g.alchemy.com/v2/";break;default:Yi.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+e,throttleCallback:(n,i)=>(e===Ze&&cr(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===Ze}}const xo=new x(Jt),Ke="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function Mo(s){switch(s){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return xo.throwArgumentError("unsupported network","name",s)}class _o extends ve{isCommunityResource(){return this.apiKey===Ke}static getApiKey(t){return t??Ke}static getUrl(t,e){e==null&&(e=Ke);const r={allowGzip:!0,url:"https://"+Mo(t.name)+e,throttleCallback:(n,i)=>(e.apiKey===Ke&&cr(),Promise.resolve(!0))};return e.projectSecret!=null&&(r.user="",r.password=e.projectSecret),r}}var Io=globalThis&&globalThis.__awaiter||function(s,t,e,r){function n(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function u(p){try{d(r.next(p))}catch(A){a(A)}}function h(p){try{d(r.throw(p))}catch(A){a(A)}}function d(p){p.done?i(p.value):n(p.value).then(u,h)}d((r=r.apply(s,t||[])).next())})};const Wi=new x(Jt);class Po extends ve{static getApiKey(t){return t!=null&&Wi.throwArgumentError("apiKey not supported for cloudflare","apiKey",t),null}static getUrl(t,e){let r=null;switch(t.name){case"homestead":r="https://cloudflare-eth.com/";break;default:Wi.throwArgumentError("unsupported network","network",arguments[0])}return r}perform(t,e){const r=Object.create(null,{perform:{get:()=>super.perform}});return Io(this,void 0,void 0,function*(){return t==="getBlockNumber"?(yield r.perform.call(this,"getBlock",{blockTag:"latest"})).number:r.perform.call(this,t,e)})}}var He=globalThis&&globalThis.__awaiter||function(s,t,e,r){function n(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function u(p){try{d(r.next(p))}catch(A){a(A)}}function h(p){try{d(r.throw(p))}catch(A){a(A)}}function d(p){p.done?i(p.value):n(p.value).then(u,h)}d((r=r.apply(s,t||[])).next())})};const de=new x(Jt);function Xi(s){const t={};for(let e in s){if(s[e]==null)continue;let r=s[e];e==="type"&&r===0||({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[e]?r=ar(Q(r)):e==="accessList"?r="["+Se(r).map(n=>`{address:"${n.address}",storageKeys:["${n.storageKeys.join('","')}"]}`).join(",")+"]":r=Q(r),t[e]=r)}return t}function No(s){if(s.status==0&&(s.message==="No records found"||s.message==="No transactions found"))return s.result;if(s.status!=1||typeof s.message!="string"||!s.message.match(/^OK/)){const t=new Error("invalid response");throw t.result=JSON.stringify(s),(s.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return s.result}function Vi(s){if(s&&s.status==0&&s.message=="NOTOK"&&(s.result||"").toLowerCase().indexOf("rate limit")>=0){const t=new Error("throttled response");throw t.result=JSON.stringify(s),t.throttleRetry=!0,t}if(s.jsonrpc!="2.0"){const t=new Error("invalid response");throw t.result=JSON.stringify(s),t}if(s.error){const t=new Error(s.error.message||"unknown error");throw s.error.code&&(t.code=s.error.code),s.error.data&&(t.data=s.error.data),t}return s.result}function Zi(s){if(s==="pending")throw new Error("pending not supported");return s==="latest"?s:parseInt(s.substring(2),16)}function zr(s,t,e){if(s==="call"&&t.code===x.errors.SERVER_ERROR){const n=t.error;if(n&&(n.message.match(/reverted/i)||n.message.match(/VM execution error/i))){let i=n.data;if(i&&(i="0x"+i.replace(/^.*0x/i,"")),Bt(i))return i;de.throwError("missing revert data in call exception",x.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}let r=t.message;throw t.code===x.errors.SERVER_ERROR&&(t.error&&typeof t.error.message=="string"?r=t.error.message:typeof t.body=="string"?r=t.body:typeof t.responseText=="string"&&(r=t.responseText)),r=(r||"").toLowerCase(),r.match(/insufficient funds/)&&de.throwError("insufficient funds for intrinsic transaction cost",x.errors.INSUFFICIENT_FUNDS,{error:t,method:s,transaction:e}),r.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&de.throwError("nonce has already been used",x.errors.NONCE_EXPIRED,{error:t,method:s,transaction:e}),r.match(/another transaction with same nonce/)&&de.throwError("replacement fee too low",x.errors.REPLACEMENT_UNDERPRICED,{error:t,method:s,transaction:e}),r.match(/execution failed due to an exception|execution reverted/)&&de.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",x.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:s,transaction:e}),t}class So extends ri{constructor(t,e){super(t),R(this,"baseUrl",this.getBaseUrl()),R(this,"apiKey",e||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return de.throwArgumentError("unsupported network","network",this.network.name)}getUrl(t,e){const r=Object.keys(e).reduce((i,a)=>{const u=e[a];return u!=null&&(i+=`&${a}=${u}`),i},""),n=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${t}${r}${n}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(t,e){return e.module=t,e.apikey=this.apiKey,e}fetch(t,e,r){return He(this,void 0,void 0,function*(){const n=r?this.getPostUrl():this.getUrl(t,e),i=r?this.getPostData(t,e):null,a=t==="proxy"?Vi:No;this.emit("debug",{action:"request",request:n,provider:this});const u={url:n,throttleSlotInterval:1e3,throttleCallback:(p,A)=>(this.isCommunityResource()&&cr(),Promise.resolve(!0))};let h=null;i&&(u.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},h=Object.keys(i).map(p=>`${p}=${i[p]}`).join("&"));const d=yield Ge(u,h,a||Vi);return this.emit("debug",{action:"response",request:n,response:le(d),provider:this}),d})}detectNetwork(){return He(this,void 0,void 0,function*(){return this.network})}perform(t,e){const r=Object.create(null,{perform:{get:()=>super.perform}});return He(this,void 0,void 0,function*(){switch(t){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:e.address,tag:e.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:e.address,tag:e.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:e.address,tag:e.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:e.address,position:e.position,tag:e.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:e.signedTransaction},!0).catch(n=>zr("sendTransaction",n,e.signedTransaction));case"getBlock":if(e.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:e.blockTag,boolean:e.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:e.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:e.transactionHash});case"call":{if(e.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");const n=Xi(e.transaction);n.module="proxy",n.action="eth_call";try{return yield this.fetch("proxy",n,!0)}catch(i){return zr("call",i,e.transaction)}}case"estimateGas":{const n=Xi(e.transaction);n.module="proxy",n.action="eth_estimateGas";try{return yield this.fetch("proxy",n,!0)}catch(i){return zr("estimateGas",i,e.transaction)}}case"getLogs":{const n={action:"getLogs"};if(e.filter.fromBlock&&(n.fromBlock=Zi(e.filter.fromBlock)),e.filter.toBlock&&(n.toBlock=Zi(e.filter.toBlock)),e.filter.address&&(n.address=e.filter.address),e.filter.topics&&e.filter.topics.length>0&&(e.filter.topics.length>1&&de.throwError("unsupported topic count",x.errors.UNSUPPORTED_OPERATION,{topics:e.filter.topics}),e.filter.topics.length===1)){const u=e.filter.topics[0];(typeof u!="string"||u.length!==66)&&de.throwError("unsupported topic format",x.errors.UNSUPPORTED_OPERATION,{topic0:u}),n.topic0=u}const i=yield this.fetch("logs",n);let a={};for(let u=0;u{["contractAddress","to"].forEach(function(h){a[h]==""&&delete a[h]}),a.creates==null&&a.contractAddress!=null&&(a.creates=a.contractAddress);const u=this.formatter.transactionResponse(a);return a.timeStamp&&(u.timestamp=parseInt(a.timeStamp)),u})})}isCommunityResource(){return this.apiKey==null}}var nr=globalThis&&globalThis.__awaiter||function(s,t,e,r){function n(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function u(p){try{d(r.next(p))}catch(A){a(A)}}function h(p){try{d(r.throw(p))}catch(A){a(A)}}function d(p){p.done?i(p.value):n(p.value).then(u,h)}d((r=r.apply(s,t||[])).next())})};const Ae=new x(Jt);function Qe(){return new Date().getTime()}function $i(s){let t=null;for(let e=0;et?null:(r+n)/2}function Ie(s){if(s===null)return"null";if(typeof s=="number"||typeof s=="boolean")return JSON.stringify(s);if(typeof s=="string")return s;if(O.isBigNumber(s))return s.toString();if(Array.isArray(s))return JSON.stringify(s.map(t=>Ie(t)));if(typeof s=="object"){const t=Object.keys(s);return t.sort(),"{"+t.map(e=>{let r=s[e];return typeof r=="function"?r="[function]":r=Ie(r),JSON.stringify(e)+":"+r}).join(",")+"}"}throw new Error("unknown value type: "+typeof s)}let Ro=1;function en(s){let t=null,e=null,r=new Promise(a=>{t=function(){e&&(clearTimeout(e),e=null),a()},e=setTimeout(t,s)});const n=a=>(r=r.then(a),r);function i(){return r}return{cancel:t,getPromise:i,wait:n}}const To=[x.errors.CALL_EXCEPTION,x.errors.INSUFFICIENT_FUNDS,x.errors.NONCE_EXPIRED,x.errors.REPLACEMENT_UNDERPRICED,x.errors.UNPREDICTABLE_GAS_LIMIT],Bo=["address","args","errorArgs","errorSignature","method","transaction"];function je(s,t){const e={weight:s.weight};return Object.defineProperty(e,"provider",{get:()=>s.provider}),s.start&&(e.start=s.start),t&&(e.duration=t-s.start),s.done&&(s.error?e.error=s.error:e.result=s.result||null),e}function Co(s,t){return function(e){const r={};e.forEach(i=>{const a=s(i.result);r[a]||(r[a]={count:0,result:i.result}),r[a].count++});const n=Object.keys(r);for(let i=0;i=t)return a.result}}}function Oo(s,t,e){let r=Ie;switch(t){case"getBlockNumber":return function(n){const i=n.map(u=>u.result);let a=tn(n.map(u=>u.result),2);if(a!=null)return a=Math.ceil(a),i.indexOf(a+1)>=0&&a++,a>=s._highestBlockNumber&&(s._highestBlockNumber=a),s._highestBlockNumber};case"getGasPrice":return function(n){const i=n.map(a=>a.result);return i.sort(),i[Math.floor(i.length/2)]};case"getEtherPrice":return function(n){return tn(n.map(i=>i.result))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":r=function(n){return n==null?null:(n=Ct(n),n.confirmations=-1,Ie(n))};break;case"getBlock":e.includeTransactions?r=function(n){return n==null?null:(n=Ct(n),n.transactions=n.transactions.map(i=>(i=Ct(i),i.confirmations=-1,i)),Ie(n))}:r=function(n){return n==null?null:Ie(n)};break;default:throw new Error("unknown method: "+t)}return Co(r,s.quorum)}function Ce(s,t){return nr(this,void 0,void 0,function*(){const e=s.provider;return e.blockNumber!=null&&e.blockNumber>=t||t===-1?e:_e(()=>new Promise((r,n)=>{setTimeout(function(){return e.blockNumber>=t?r(e):s.cancelled?r(null):r(void 0)},0)}),{oncePoll:e})})}function Lo(s,t,e,r){return nr(this,void 0,void 0,function*(){let n=s.provider;switch(e){case"getBlockNumber":case"getGasPrice":return n[e]();case"getEtherPrice":if(n.getEtherPrice)return n.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return r.blockTag&&Bt(r.blockTag)&&(n=yield Ce(s,t)),n[e](r.address,r.blockTag||"latest");case"getStorageAt":return r.blockTag&&Bt(r.blockTag)&&(n=yield Ce(s,t)),n.getStorageAt(r.address,r.position,r.blockTag||"latest");case"getBlock":return r.blockTag&&Bt(r.blockTag)&&(n=yield Ce(s,t)),n[r.includeTransactions?"getBlockWithTransactions":"getBlock"](r.blockTag||r.blockHash);case"call":case"estimateGas":return r.blockTag&&Bt(r.blockTag)&&(n=yield Ce(s,t)),e==="call"&&r.blockTag?n[e](r.transaction,r.blockTag):n[e](r.transaction);case"getTransaction":case"getTransactionReceipt":return n[e](r.transactionHash);case"getLogs":{let i=r.filter;return(i.fromBlock&&Bt(i.fromBlock)||i.toBlock&&Bt(i.toBlock))&&(n=yield Ce(s,t)),n.getLogs(i)}}return Ae.throwError("unknown method error",x.errors.UNKNOWN_ERROR,{method:e,params:r})})}class Do extends ri{constructor(t,e){t.length===0&&Ae.throwArgumentError("missing providers","providers",t);const r=t.map((a,u)=>{if(fr.isProvider(a)){const p=qi(a)?2e3:750;return Object.freeze({provider:a,weight:1,stallTimeout:p,priority:1})}const h=Ct(a);h.priority==null&&(h.priority=1),h.stallTimeout==null&&(h.stallTimeout=qi(a)?2e3:750),h.weight==null&&(h.weight=1);const d=h.weight;return(d%1||d>512||d<1)&&Ae.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${u}].weight`,d),Object.freeze(h)}),n=r.reduce((a,u)=>a+u.weight,0);e==null?e=n/2:e>n&&Ae.throwArgumentError("quorum will always fail; larger than total weight","quorum",e);let i=$i(r.map(a=>a.provider.network));i==null&&(i=new Promise((a,u)=>{setTimeout(()=>{this.detectNetwork().then(a,u)},0)})),super(i),R(this,"providerConfigs",Object.freeze(r)),R(this,"quorum",e),this._highestBlockNumber=-1}detectNetwork(){return nr(this,void 0,void 0,function*(){const t=yield Promise.all(this.providerConfigs.map(e=>e.provider.getNetwork()));return $i(t)})}perform(t,e){return nr(this,void 0,void 0,function*(){if(t==="sendTransaction"){const h=yield Promise.all(this.providerConfigs.map(d=>d.provider.sendTransaction(e.signedTransaction).then(p=>p.hash,p=>p)));for(let d=0;dh.priority-d.priority);const i=this._highestBlockNumber;let a=0,u=!0;for(;;){const h=Qe();let d=n.filter(E=>E.runner&&h-E.startE+_.weight,0);for(;d{E.staller=null}),E.runner=Lo(E,i,t,e).then(I=>{E.done=!0,E.result=I,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:_,backend:je(E,Qe()),request:{method:t,params:le(e)},provider:this})},I=>{E.done=!0,E.error=I,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:_,backend:je(E,Qe()),request:{method:t,params:le(e)},provider:this})}),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:_,backend:je(E,null),request:{method:t,params:le(e)},provider:this}),d+=E.weight}const p=[];n.forEach(E=>{E.done||!E.runner||(p.push(E.runner),E.staller&&p.push(E.staller.getPromise()))}),p.length&&(yield Promise.race(p));const A=n.filter(E=>E.done&&E.error==null);if(A.length>=this.quorum){const E=r(A);if(E!==void 0)return n.forEach(_=>{_.staller&&_.staller.cancel(),_.cancelled=!0}),E;u||(yield en(100).getPromise()),u=!1}const M=n.reduce((E,_)=>{if(!_.done||_.error==null)return E;const I=_.error.code;return To.indexOf(I)>=0&&(E[I]||(E[I]={error:_.error,weight:0}),E[I].weight+=_.weight),E},{});if(Object.keys(M).forEach(E=>{const _=M[E];if(_.weight{P.staller&&P.staller.cancel(),P.cancelled=!0});const I=_.error,T={};Bo.forEach(P=>{I[P]!=null&&(T[P]=I[P])}),Ae.throwError(I.reason||I.message,E,T)}),n.filter(E=>!E.done).length===0)break}return n.forEach(h=>{h.staller&&h.staller.cancel(),h.cancelled=!0}),Ae.throwError("failed to meet quorum",x.errors.SERVER_ERROR,{method:t,params:e,results:n.map(h=>je(h)),provider:this})})}}const qo=null,$e=new x(Jt),Le="84842078b09946638c03157f83405213";class Fo extends ii{constructor(t,e){const r=new On(t,e),n=r.connection;n.password&&$e.throwError("INFURA WebSocket project secrets unsupported",x.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});const i=n.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(i,t),R(this,"apiKey",r.projectId),R(this,"projectId",r.projectId),R(this,"projectSecret",r.projectSecret)}isCommunityResource(){return this.projectId===Le}}class On extends ve{static getWebSocketProvider(t,e){return new Fo(t,e)}static getApiKey(t){const e={apiKey:Le,projectId:Le,projectSecret:null};return t==null||(typeof t=="string"?e.projectId=t:t.projectSecret!=null?($e.assertArgument(typeof t.projectId=="string","projectSecret requires a projectId","projectId",t.projectId),$e.assertArgument(typeof t.projectSecret=="string","invalid projectSecret","projectSecret","[REDACTED]"),e.projectId=t.projectId,e.projectSecret=t.projectSecret):t.projectId&&(e.projectId=t.projectId),e.apiKey=e.projectId),e}static getUrl(t,e){let r=null;switch(t?t.name:"unknown"){case"homestead":r="mainnet.infura.io";break;case"goerli":r="goerli.infura.io";break;case"sepolia":r="sepolia.infura.io";break;case"matic":r="polygon-mainnet.infura.io";break;case"maticmum":r="polygon-mumbai.infura.io";break;case"optimism":r="optimism-mainnet.infura.io";break;case"optimism-goerli":r="optimism-goerli.infura.io";break;case"arbitrum":r="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":r="arbitrum-goerli.infura.io";break;default:$e.throwError("unsupported network",x.errors.INVALID_ARGUMENT,{argument:"network",value:t})}const n={allowGzip:!0,url:"https://"+r+"/v3/"+e.projectId,throttleCallback:(i,a)=>(e.projectId===Le&&cr(),Promise.resolve(!0))};return e.projectSecret!=null&&(n.user="",n.password=e.projectSecret),n}isCommunityResource(){return this.projectId===Le}}class jo extends Pe{send(t,e){const r={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch==null&&(this._pendingBatch=[]);const n={request:r,resolve:null,reject:null},i=new Promise((a,u)=>{n.resolve=a,n.reject=u});return this._pendingBatch.push(n),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{const a=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;const u=a.map(h=>h.request);return this.emit("debug",{action:"requestBatch",request:le(u),provider:this}),Ge(this.connection,JSON.stringify(u)).then(h=>{this.emit("debug",{action:"response",request:u,response:h,provider:this}),a.forEach((d,p)=>{const A=h[p];if(A.error){const M=new Error(A.error.message);M.code=A.error.code,M.data=A.error.data,d.reject(M)}else d.resolve(A.result)})},h=>{this.emit("debug",{action:"response",error:h,request:u,provider:this}),a.forEach(d=>{d.reject(h)})})},10)),i}}const Jr=new x(Jt),Uo="ETHERS_JS_SHARED";class Go extends ve{static getApiKey(t){return t&&typeof t!="string"&&Jr.throwArgumentError("invalid apiKey","apiKey",t),t||Uo}static getUrl(t,e){Jr.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let r=null;switch(t.name){case"homestead":r="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":r="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":r="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:Jr.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+e}}const rn=new x(Jt),nn="62e1ad51b37b8e00394bda3b";class zo extends ve{static getApiKey(t){const e={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return t==null?e.applicationId=nn:typeof t=="string"?e.applicationId=t:t.applicationSecretKey!=null?(e.applicationId=t.applicationId,e.applicationSecretKey=t.applicationSecretKey):t.applicationId?e.applicationId=t.applicationId:rn.throwArgumentError("unsupported PocketProvider apiKey","apiKey",t),e}static getUrl(t,e){let r=null;switch(t?t.name:"unknown"){case"goerli":r="eth-goerli.gateway.pokt.network";break;case"homestead":r="eth-mainnet.gateway.pokt.network";break;case"kovan":r="poa-kovan.gateway.pokt.network";break;case"matic":r="poly-mainnet.gateway.pokt.network";break;case"maticmum":r="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":r="eth-rinkeby.gateway.pokt.network";break;case"ropsten":r="eth-ropsten.gateway.pokt.network";break;default:rn.throwError("unsupported network",x.errors.INVALID_ARGUMENT,{argument:"network",value:t})}const n=`https://${r}/v1/lb/${e.applicationId}`,i={headers:{},url:n};return e.applicationSecretKey!=null&&(i.user="",i.password=e.applicationSecretKey),i}isCommunityResource(){return this.applicationId===nn}}const sn=new x(Jt);let Jo=1;function on(s,t){const e="Web3LegacyFetcher";return function(r,n){const i={method:r,params:n,id:Jo++,jsonrpc:"2.0"};return new Promise((a,u)=>{this.emit("debug",{action:"request",fetcher:e,request:le(i),provider:this}),t(i,(h,d)=>{if(h)return this.emit("debug",{action:"response",fetcher:e,error:h,request:i,provider:this}),u(h);if(this.emit("debug",{action:"response",fetcher:e,request:i,response:d,provider:this}),d.error){const p=new Error(d.error.message);return p.code=d.error.code,p.data=d.error.data,u(p)}a(d.result)})})}}function Ko(s){return function(t,e){e==null&&(e=[]);const r={method:t,params:e};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:le(r),provider:this}),s.request(r).then(n=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:r,response:n,provider:this}),n),n=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:r,error:n,provider:this}),n})}}class Ho extends Pe{constructor(t,e){t==null&&sn.throwArgumentError("missing provider","provider",t);let r=null,n=null,i=null;typeof t=="function"?(r="unknown:",n=t):(r=t.host||t.path||"",!r&&t.isMetaMask&&(r="metamask"),i=t,t.request?(r===""&&(r="eip-1193:"),n=Ko(t)):t.sendAsync?n=on(t,t.sendAsync.bind(t)):t.send?n=on(t,t.send.bind(t)):sn.throwArgumentError("unsupported provider","provider",t),r||(r="unknown:")),super(r,e),R(this,"jsonRpcFetchFunc",n),R(this,"provider",i)}send(t,e){return this.jsonRpcFetchFunc(t,e)}}const an=new x(Jt);function Yo(s,t){if(s==null&&(s="homestead"),typeof s=="string"){const r=s.match(/^(ws|http)s?:/i);if(r)switch(r[1].toLowerCase()){case"http":case"https":return new Pe(s);case"ws":case"wss":return new ii(s);default:an.throwArgumentError("unsupported URL scheme","network",s)}}const e=Nn(s);return(!e||!e._defaultProvider)&&an.throwError("unsupported getDefaultProvider network",x.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:s}),e._defaultProvider({FallbackProvider:Do,AlchemyProvider:Cn,AnkrProvider:_o,CloudflareProvider:Po,EtherscanProvider:So,InfuraProvider:On,JsonRpcProvider:Pe,NodesmithProvider:Go,PocketProvider:zo,Web3Provider:Ho,IpcProvider:qo},t)}export{Cn as AlchemyProvider,Eo as AlchemyWebSocketProvider,_o as AnkrProvider,ri as BaseProvider,Po as CloudflareProvider,So as EtherscanProvider,Do as FallbackProvider,N as Formatter,On as InfuraProvider,Fo as InfuraWebSocketProvider,qo as IpcProvider,jo as JsonRpcBatchProvider,Pe as JsonRpcProvider,Bn as JsonRpcSigner,Go as NodesmithProvider,zo as PocketProvider,fr as Provider,Qi as Resolver,ko as StaticJsonRpcProvider,ve as UrlJsonRpcProvider,Ho as Web3Provider,ii as WebSocketProvider,Yo as getDefaultProvider,Nn as getNetwork,ao as isCommunityResourcable,qi as isCommunityResource,cr as showThrottleMessage}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-32fe098f.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-32fe098f.js.meta deleted file mode 100644 index b1fcb33c7..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-32fe098f.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 0b63872e0a3c6a848840b58a7d343f17 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-368abf3a.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-368abf3a.js deleted file mode 100644 index 8fbc529a0..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-368abf3a.js +++ /dev/null @@ -1 +0,0 @@ -import{i as pr,g as mr,d as vr,a as Ke,s as gr,r as Qe,b as Fe,c as yr,m as Le}from"./mobile-122d5339.js";import{n as Ft,o as Tt,U as Mr,V as he,W as _r,_ as Pe}from"./index-b28afd98.js";import{t as wr}from"./tslib.es6-c2094241.js";const br=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],Ge=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"];var le={},Sr={get exports(){return le},set exports(s){le=s}};(function(s){(function(i,a){function p(l,t){if(!l)throw new Error(t||"Assertion failed")}function v(l,t){l.super_=t;var r=function(){};r.prototype=t.prototype,l.prototype=new r,l.prototype.constructor=l}function c(l,t,r){if(c.isBN(l))return l;this.negative=0,this.words=null,this.length=0,this.red=null,l!==null&&((t==="le"||t==="be")&&(r=t,t=10),this._init(l||0,t||10,r||"be"))}typeof i=="object"?i.exports=c:a.BN=c,c.BN=c,c.wordSize=26;var T;try{T=Ft.Buffer}catch{}c.isBN=function(t){return t instanceof c?!0:t!==null&&typeof t=="object"&&t.constructor.wordSize===c.wordSize&&Array.isArray(t.words)},c.max=function(t,r){return t.cmp(r)>0?t:r},c.min=function(t,r){return t.cmp(r)<0?t:r},c.prototype._init=function(t,r,n){if(typeof t=="number")return this._initNumber(t,r,n);if(typeof t=="object")return this._initArray(t,r,n);r==="hex"&&(r=16),p(r===(r|0)&&r>=2&&r<=36),t=t.toString().replace(/\s+/g,"");var o=0;t[0]==="-"&&o++,r===16?this._parseHex(t,o):this._parseBase(t,r,o),t[0]==="-"&&(this.negative=1),this.strip(),n==="le"&&this._initArray(this.toArray(),r,n)},c.prototype._initNumber=function(t,r,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[t&67108863],this.length=1):t<4503599627370496?(this.words=[t&67108863,t/67108864&67108863],this.length=2):(p(t<9007199254740992),this.words=[t&67108863,t/67108864&67108863,1],this.length=3),n==="le"&&this._initArray(this.toArray(),r,n)},c.prototype._initArray=function(t,r,n){if(p(typeof t.length=="number"),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var o=0;o=0;o-=3)d=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[u]|=d<>>26-m&67108863,m+=24,m>=26&&(m-=26,u++);else if(n==="le")for(o=0,u=0;o>>26-m&67108863,m+=24,m>=26&&(m-=26,u++);return this.strip()};function mt(l,t,r){for(var n=0,o=Math.min(l.length,r),u=t;u=49&&d<=54?n|=d-49+10:d>=17&&d<=22?n|=d-17+10:n|=d&15}return n}c.prototype._parseHex=function(t,r){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var n=0;n=r;n-=6)u=mt(t,n,n+6),this.words[o]|=u<>>26-d&4194303,d+=24,d>=26&&(d-=26,o++);n+6!==r&&(u=mt(t,r,n+6),this.words[o]|=u<>>26-d&4194303),this.strip()};function k(l,t,r,n){for(var o=0,u=Math.min(l.length,r),d=t;d=49?o+=m-49+10:m>=17?o+=m-17+10:o+=m}return o}c.prototype._parseBase=function(t,r,n){this.words=[0],this.length=1;for(var o=0,u=1;u<=67108863;u*=r)o++;o--,u=u/r|0;for(var d=t.length-n,m=d%o,h=Math.min(d,d-m)+n,e=0,f=n;f1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},c.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var vt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],It=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],Mt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];c.prototype.toString=function(t,r){t=t||10,r=r|0||1;var n;if(t===16||t==="hex"){n="";for(var o=0,u=0,d=0;d>>24-o&16777215,u!==0||d!==this.length-1?n=vt[6-h.length]+h+n:n=h+n,o+=2,o>=26&&(o-=26,d--)}for(u!==0&&(n=u.toString(16)+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}if(t===(t|0)&&t>=2&&t<=36){var e=It[t],f=Mt[t];n="";var _=this.clone();for(_.negative=0;!_.isZero();){var b=_.modn(f).toString(t);_=_.idivn(f),_.isZero()?n=b+n:n=vt[e-b.length]+b+n}for(this.isZero()&&(n="0"+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}p(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var t=this.words[0];return this.length===2?t+=this.words[1]*67108864:this.length===3&&this.words[2]===1?t+=4503599627370496+this.words[1]*67108864:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-t:t},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(t,r){return p(typeof T<"u"),this.toArrayLike(T,t,r)},c.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},c.prototype.toArrayLike=function(t,r,n){var o=this.byteLength(),u=n||Math.max(1,o);p(o<=u,"byte array longer than desired length"),p(u>0,"Requested array length <= 0"),this.strip();var d=r==="le",m=new t(u),h,e,f=this.clone();if(d){for(e=0;!f.isZero();e++)h=f.andln(255),f.iushrn(8),m[e]=h;for(;e=4096&&(n+=13,r>>>=13),r>=64&&(n+=7,r>>>=7),r>=8&&(n+=4,r>>>=4),r>=2&&(n+=2,r>>>=2),n+r},c.prototype._zeroBits=function(t){if(t===0)return 26;var r=t,n=0;return r&8191||(n+=13,r>>>=13),r&127||(n+=7,r>>>=7),r&15||(n+=4,r>>>=4),r&3||(n+=2,r>>>=2),r&1||n++,n},c.prototype.bitLength=function(){var t=this.words[this.length-1],r=this._countBits(t);return(this.length-1)*26+r};function _t(l){for(var t=new Array(l.bitLength()),r=0;r>>o}return t}c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;rt.length?this.clone().ior(t):t.clone().ior(this)},c.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},c.prototype.iuand=function(t){var r;this.length>t.length?r=t:r=this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},c.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},c.prototype.iuxor=function(t){var r,n;this.length>t.length?(r=this,n=t):(r=t,n=this);for(var o=0;ot.length?this.clone().ixor(t):t.clone().ixor(this)},c.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},c.prototype.inotn=function(t){p(typeof t=="number"&&t>=0);var r=Math.ceil(t/26)|0,n=t%26;this._expand(r),n>0&&r--;for(var o=0;o0&&(this.words[o]=~this.words[o]&67108863>>26-n),this.strip()},c.prototype.notn=function(t){return this.clone().inotn(t)},c.prototype.setn=function(t,r){p(typeof t=="number"&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),r?this.words[n]=this.words[n]|1<t.length?(n=this,o=t):(n=t,o=this);for(var u=0,d=0;d>>26;for(;u!==0&&d>>26;if(this.length=n.length,u!==0)this.words[this.length]=u,this.length++;else if(n!==this)for(;dt.length?this.clone().iadd(t):t.clone().iadd(this)},c.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n=this.cmp(t);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var o,u;n>0?(o=this,u=t):(o=t,u=this);for(var d=0,m=0;m>26,this.words[m]=r&67108863;for(;d!==0&&m>26,this.words[m]=r&67108863;if(d===0&&m>>26,_=h&67108863,b=Math.min(e,t.length-1),S=Math.max(0,e-l.length+1);S<=b;S++){var x=e-S|0;o=l.words[x]|0,u=t.words[S]|0,d=o*u+_,f+=d/67108864|0,_=d&67108863}r.words[e]=_|0,h=f|0}return h!==0?r.words[e]=h|0:r.length--,r.strip()}var Ot=function(t,r,n){var o=t.words,u=r.words,d=n.words,m=0,h,e,f,_=o[0]|0,b=_&8191,S=_>>>13,x=o[1]|0,E=x&8191,O=x>>>13,St=o[2]|0,q=St&8191,A=St>>>13,_e=o[3]|0,B=_e&8191,U=_e>>>13,we=o[4]|0,F=we&8191,L=we>>>13,be=o[5]|0,P=be&8191,j=be>>>13,Se=o[6]|0,H=Se&8191,$=Se>>>13,xe=o[7]|0,Z=xe&8191,D=xe>>>13,Re=o[8]|0,J=Re&8191,W=Re>>>13,Ie=o[9]|0,z=Ie&8191,K=Ie>>>13,ke=u[0]|0,Q=ke&8191,G=ke>>>13,Ee=u[1]|0,V=Ee&8191,Y=Ee>>>13,Te=u[2]|0,X=Te&8191,tt=Te>>>13,Oe=u[3]|0,et=Oe&8191,rt=Oe>>>13,qe=u[4]|0,it=qe&8191,nt=qe>>>13,Ae=u[5]|0,st=Ae&8191,ot=Ae>>>13,Ce=u[6]|0,at=Ce&8191,ht=Ce>>>13,Ne=u[7]|0,ft=Ne&8191,ut=Ne>>>13,Be=u[8]|0,ct=Be&8191,lt=Be>>>13,Ue=u[9]|0,dt=Ue&8191,pt=Ue>>>13;n.negative=t.negative^r.negative,n.length=19,h=Math.imul(b,Q),e=Math.imul(b,G),e=e+Math.imul(S,Q)|0,f=Math.imul(S,G);var Zt=(m+h|0)+((e&8191)<<13)|0;m=(f+(e>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,h=Math.imul(E,Q),e=Math.imul(E,G),e=e+Math.imul(O,Q)|0,f=Math.imul(O,G),h=h+Math.imul(b,V)|0,e=e+Math.imul(b,Y)|0,e=e+Math.imul(S,V)|0,f=f+Math.imul(S,Y)|0;var Dt=(m+h|0)+((e&8191)<<13)|0;m=(f+(e>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,h=Math.imul(q,Q),e=Math.imul(q,G),e=e+Math.imul(A,Q)|0,f=Math.imul(A,G),h=h+Math.imul(E,V)|0,e=e+Math.imul(E,Y)|0,e=e+Math.imul(O,V)|0,f=f+Math.imul(O,Y)|0,h=h+Math.imul(b,X)|0,e=e+Math.imul(b,tt)|0,e=e+Math.imul(S,X)|0,f=f+Math.imul(S,tt)|0;var Jt=(m+h|0)+((e&8191)<<13)|0;m=(f+(e>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,h=Math.imul(B,Q),e=Math.imul(B,G),e=e+Math.imul(U,Q)|0,f=Math.imul(U,G),h=h+Math.imul(q,V)|0,e=e+Math.imul(q,Y)|0,e=e+Math.imul(A,V)|0,f=f+Math.imul(A,Y)|0,h=h+Math.imul(E,X)|0,e=e+Math.imul(E,tt)|0,e=e+Math.imul(O,X)|0,f=f+Math.imul(O,tt)|0,h=h+Math.imul(b,et)|0,e=e+Math.imul(b,rt)|0,e=e+Math.imul(S,et)|0,f=f+Math.imul(S,rt)|0;var Wt=(m+h|0)+((e&8191)<<13)|0;m=(f+(e>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,h=Math.imul(F,Q),e=Math.imul(F,G),e=e+Math.imul(L,Q)|0,f=Math.imul(L,G),h=h+Math.imul(B,V)|0,e=e+Math.imul(B,Y)|0,e=e+Math.imul(U,V)|0,f=f+Math.imul(U,Y)|0,h=h+Math.imul(q,X)|0,e=e+Math.imul(q,tt)|0,e=e+Math.imul(A,X)|0,f=f+Math.imul(A,tt)|0,h=h+Math.imul(E,et)|0,e=e+Math.imul(E,rt)|0,e=e+Math.imul(O,et)|0,f=f+Math.imul(O,rt)|0,h=h+Math.imul(b,it)|0,e=e+Math.imul(b,nt)|0,e=e+Math.imul(S,it)|0,f=f+Math.imul(S,nt)|0;var zt=(m+h|0)+((e&8191)<<13)|0;m=(f+(e>>>13)|0)+(zt>>>26)|0,zt&=67108863,h=Math.imul(P,Q),e=Math.imul(P,G),e=e+Math.imul(j,Q)|0,f=Math.imul(j,G),h=h+Math.imul(F,V)|0,e=e+Math.imul(F,Y)|0,e=e+Math.imul(L,V)|0,f=f+Math.imul(L,Y)|0,h=h+Math.imul(B,X)|0,e=e+Math.imul(B,tt)|0,e=e+Math.imul(U,X)|0,f=f+Math.imul(U,tt)|0,h=h+Math.imul(q,et)|0,e=e+Math.imul(q,rt)|0,e=e+Math.imul(A,et)|0,f=f+Math.imul(A,rt)|0,h=h+Math.imul(E,it)|0,e=e+Math.imul(E,nt)|0,e=e+Math.imul(O,it)|0,f=f+Math.imul(O,nt)|0,h=h+Math.imul(b,st)|0,e=e+Math.imul(b,ot)|0,e=e+Math.imul(S,st)|0,f=f+Math.imul(S,ot)|0;var Kt=(m+h|0)+((e&8191)<<13)|0;m=(f+(e>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,h=Math.imul(H,Q),e=Math.imul(H,G),e=e+Math.imul($,Q)|0,f=Math.imul($,G),h=h+Math.imul(P,V)|0,e=e+Math.imul(P,Y)|0,e=e+Math.imul(j,V)|0,f=f+Math.imul(j,Y)|0,h=h+Math.imul(F,X)|0,e=e+Math.imul(F,tt)|0,e=e+Math.imul(L,X)|0,f=f+Math.imul(L,tt)|0,h=h+Math.imul(B,et)|0,e=e+Math.imul(B,rt)|0,e=e+Math.imul(U,et)|0,f=f+Math.imul(U,rt)|0,h=h+Math.imul(q,it)|0,e=e+Math.imul(q,nt)|0,e=e+Math.imul(A,it)|0,f=f+Math.imul(A,nt)|0,h=h+Math.imul(E,st)|0,e=e+Math.imul(E,ot)|0,e=e+Math.imul(O,st)|0,f=f+Math.imul(O,ot)|0,h=h+Math.imul(b,at)|0,e=e+Math.imul(b,ht)|0,e=e+Math.imul(S,at)|0,f=f+Math.imul(S,ht)|0;var Qt=(m+h|0)+((e&8191)<<13)|0;m=(f+(e>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,h=Math.imul(Z,Q),e=Math.imul(Z,G),e=e+Math.imul(D,Q)|0,f=Math.imul(D,G),h=h+Math.imul(H,V)|0,e=e+Math.imul(H,Y)|0,e=e+Math.imul($,V)|0,f=f+Math.imul($,Y)|0,h=h+Math.imul(P,X)|0,e=e+Math.imul(P,tt)|0,e=e+Math.imul(j,X)|0,f=f+Math.imul(j,tt)|0,h=h+Math.imul(F,et)|0,e=e+Math.imul(F,rt)|0,e=e+Math.imul(L,et)|0,f=f+Math.imul(L,rt)|0,h=h+Math.imul(B,it)|0,e=e+Math.imul(B,nt)|0,e=e+Math.imul(U,it)|0,f=f+Math.imul(U,nt)|0,h=h+Math.imul(q,st)|0,e=e+Math.imul(q,ot)|0,e=e+Math.imul(A,st)|0,f=f+Math.imul(A,ot)|0,h=h+Math.imul(E,at)|0,e=e+Math.imul(E,ht)|0,e=e+Math.imul(O,at)|0,f=f+Math.imul(O,ht)|0,h=h+Math.imul(b,ft)|0,e=e+Math.imul(b,ut)|0,e=e+Math.imul(S,ft)|0,f=f+Math.imul(S,ut)|0;var Gt=(m+h|0)+((e&8191)<<13)|0;m=(f+(e>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,h=Math.imul(J,Q),e=Math.imul(J,G),e=e+Math.imul(W,Q)|0,f=Math.imul(W,G),h=h+Math.imul(Z,V)|0,e=e+Math.imul(Z,Y)|0,e=e+Math.imul(D,V)|0,f=f+Math.imul(D,Y)|0,h=h+Math.imul(H,X)|0,e=e+Math.imul(H,tt)|0,e=e+Math.imul($,X)|0,f=f+Math.imul($,tt)|0,h=h+Math.imul(P,et)|0,e=e+Math.imul(P,rt)|0,e=e+Math.imul(j,et)|0,f=f+Math.imul(j,rt)|0,h=h+Math.imul(F,it)|0,e=e+Math.imul(F,nt)|0,e=e+Math.imul(L,it)|0,f=f+Math.imul(L,nt)|0,h=h+Math.imul(B,st)|0,e=e+Math.imul(B,ot)|0,e=e+Math.imul(U,st)|0,f=f+Math.imul(U,ot)|0,h=h+Math.imul(q,at)|0,e=e+Math.imul(q,ht)|0,e=e+Math.imul(A,at)|0,f=f+Math.imul(A,ht)|0,h=h+Math.imul(E,ft)|0,e=e+Math.imul(E,ut)|0,e=e+Math.imul(O,ft)|0,f=f+Math.imul(O,ut)|0,h=h+Math.imul(b,ct)|0,e=e+Math.imul(b,lt)|0,e=e+Math.imul(S,ct)|0,f=f+Math.imul(S,lt)|0;var Vt=(m+h|0)+((e&8191)<<13)|0;m=(f+(e>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,h=Math.imul(z,Q),e=Math.imul(z,G),e=e+Math.imul(K,Q)|0,f=Math.imul(K,G),h=h+Math.imul(J,V)|0,e=e+Math.imul(J,Y)|0,e=e+Math.imul(W,V)|0,f=f+Math.imul(W,Y)|0,h=h+Math.imul(Z,X)|0,e=e+Math.imul(Z,tt)|0,e=e+Math.imul(D,X)|0,f=f+Math.imul(D,tt)|0,h=h+Math.imul(H,et)|0,e=e+Math.imul(H,rt)|0,e=e+Math.imul($,et)|0,f=f+Math.imul($,rt)|0,h=h+Math.imul(P,it)|0,e=e+Math.imul(P,nt)|0,e=e+Math.imul(j,it)|0,f=f+Math.imul(j,nt)|0,h=h+Math.imul(F,st)|0,e=e+Math.imul(F,ot)|0,e=e+Math.imul(L,st)|0,f=f+Math.imul(L,ot)|0,h=h+Math.imul(B,at)|0,e=e+Math.imul(B,ht)|0,e=e+Math.imul(U,at)|0,f=f+Math.imul(U,ht)|0,h=h+Math.imul(q,ft)|0,e=e+Math.imul(q,ut)|0,e=e+Math.imul(A,ft)|0,f=f+Math.imul(A,ut)|0,h=h+Math.imul(E,ct)|0,e=e+Math.imul(E,lt)|0,e=e+Math.imul(O,ct)|0,f=f+Math.imul(O,lt)|0,h=h+Math.imul(b,dt)|0,e=e+Math.imul(b,pt)|0,e=e+Math.imul(S,dt)|0,f=f+Math.imul(S,pt)|0;var Yt=(m+h|0)+((e&8191)<<13)|0;m=(f+(e>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,h=Math.imul(z,V),e=Math.imul(z,Y),e=e+Math.imul(K,V)|0,f=Math.imul(K,Y),h=h+Math.imul(J,X)|0,e=e+Math.imul(J,tt)|0,e=e+Math.imul(W,X)|0,f=f+Math.imul(W,tt)|0,h=h+Math.imul(Z,et)|0,e=e+Math.imul(Z,rt)|0,e=e+Math.imul(D,et)|0,f=f+Math.imul(D,rt)|0,h=h+Math.imul(H,it)|0,e=e+Math.imul(H,nt)|0,e=e+Math.imul($,it)|0,f=f+Math.imul($,nt)|0,h=h+Math.imul(P,st)|0,e=e+Math.imul(P,ot)|0,e=e+Math.imul(j,st)|0,f=f+Math.imul(j,ot)|0,h=h+Math.imul(F,at)|0,e=e+Math.imul(F,ht)|0,e=e+Math.imul(L,at)|0,f=f+Math.imul(L,ht)|0,h=h+Math.imul(B,ft)|0,e=e+Math.imul(B,ut)|0,e=e+Math.imul(U,ft)|0,f=f+Math.imul(U,ut)|0,h=h+Math.imul(q,ct)|0,e=e+Math.imul(q,lt)|0,e=e+Math.imul(A,ct)|0,f=f+Math.imul(A,lt)|0,h=h+Math.imul(E,dt)|0,e=e+Math.imul(E,pt)|0,e=e+Math.imul(O,dt)|0,f=f+Math.imul(O,pt)|0;var Xt=(m+h|0)+((e&8191)<<13)|0;m=(f+(e>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,h=Math.imul(z,X),e=Math.imul(z,tt),e=e+Math.imul(K,X)|0,f=Math.imul(K,tt),h=h+Math.imul(J,et)|0,e=e+Math.imul(J,rt)|0,e=e+Math.imul(W,et)|0,f=f+Math.imul(W,rt)|0,h=h+Math.imul(Z,it)|0,e=e+Math.imul(Z,nt)|0,e=e+Math.imul(D,it)|0,f=f+Math.imul(D,nt)|0,h=h+Math.imul(H,st)|0,e=e+Math.imul(H,ot)|0,e=e+Math.imul($,st)|0,f=f+Math.imul($,ot)|0,h=h+Math.imul(P,at)|0,e=e+Math.imul(P,ht)|0,e=e+Math.imul(j,at)|0,f=f+Math.imul(j,ht)|0,h=h+Math.imul(F,ft)|0,e=e+Math.imul(F,ut)|0,e=e+Math.imul(L,ft)|0,f=f+Math.imul(L,ut)|0,h=h+Math.imul(B,ct)|0,e=e+Math.imul(B,lt)|0,e=e+Math.imul(U,ct)|0,f=f+Math.imul(U,lt)|0,h=h+Math.imul(q,dt)|0,e=e+Math.imul(q,pt)|0,e=e+Math.imul(A,dt)|0,f=f+Math.imul(A,pt)|0;var te=(m+h|0)+((e&8191)<<13)|0;m=(f+(e>>>13)|0)+(te>>>26)|0,te&=67108863,h=Math.imul(z,et),e=Math.imul(z,rt),e=e+Math.imul(K,et)|0,f=Math.imul(K,rt),h=h+Math.imul(J,it)|0,e=e+Math.imul(J,nt)|0,e=e+Math.imul(W,it)|0,f=f+Math.imul(W,nt)|0,h=h+Math.imul(Z,st)|0,e=e+Math.imul(Z,ot)|0,e=e+Math.imul(D,st)|0,f=f+Math.imul(D,ot)|0,h=h+Math.imul(H,at)|0,e=e+Math.imul(H,ht)|0,e=e+Math.imul($,at)|0,f=f+Math.imul($,ht)|0,h=h+Math.imul(P,ft)|0,e=e+Math.imul(P,ut)|0,e=e+Math.imul(j,ft)|0,f=f+Math.imul(j,ut)|0,h=h+Math.imul(F,ct)|0,e=e+Math.imul(F,lt)|0,e=e+Math.imul(L,ct)|0,f=f+Math.imul(L,lt)|0,h=h+Math.imul(B,dt)|0,e=e+Math.imul(B,pt)|0,e=e+Math.imul(U,dt)|0,f=f+Math.imul(U,pt)|0;var ee=(m+h|0)+((e&8191)<<13)|0;m=(f+(e>>>13)|0)+(ee>>>26)|0,ee&=67108863,h=Math.imul(z,it),e=Math.imul(z,nt),e=e+Math.imul(K,it)|0,f=Math.imul(K,nt),h=h+Math.imul(J,st)|0,e=e+Math.imul(J,ot)|0,e=e+Math.imul(W,st)|0,f=f+Math.imul(W,ot)|0,h=h+Math.imul(Z,at)|0,e=e+Math.imul(Z,ht)|0,e=e+Math.imul(D,at)|0,f=f+Math.imul(D,ht)|0,h=h+Math.imul(H,ft)|0,e=e+Math.imul(H,ut)|0,e=e+Math.imul($,ft)|0,f=f+Math.imul($,ut)|0,h=h+Math.imul(P,ct)|0,e=e+Math.imul(P,lt)|0,e=e+Math.imul(j,ct)|0,f=f+Math.imul(j,lt)|0,h=h+Math.imul(F,dt)|0,e=e+Math.imul(F,pt)|0,e=e+Math.imul(L,dt)|0,f=f+Math.imul(L,pt)|0;var re=(m+h|0)+((e&8191)<<13)|0;m=(f+(e>>>13)|0)+(re>>>26)|0,re&=67108863,h=Math.imul(z,st),e=Math.imul(z,ot),e=e+Math.imul(K,st)|0,f=Math.imul(K,ot),h=h+Math.imul(J,at)|0,e=e+Math.imul(J,ht)|0,e=e+Math.imul(W,at)|0,f=f+Math.imul(W,ht)|0,h=h+Math.imul(Z,ft)|0,e=e+Math.imul(Z,ut)|0,e=e+Math.imul(D,ft)|0,f=f+Math.imul(D,ut)|0,h=h+Math.imul(H,ct)|0,e=e+Math.imul(H,lt)|0,e=e+Math.imul($,ct)|0,f=f+Math.imul($,lt)|0,h=h+Math.imul(P,dt)|0,e=e+Math.imul(P,pt)|0,e=e+Math.imul(j,dt)|0,f=f+Math.imul(j,pt)|0;var ie=(m+h|0)+((e&8191)<<13)|0;m=(f+(e>>>13)|0)+(ie>>>26)|0,ie&=67108863,h=Math.imul(z,at),e=Math.imul(z,ht),e=e+Math.imul(K,at)|0,f=Math.imul(K,ht),h=h+Math.imul(J,ft)|0,e=e+Math.imul(J,ut)|0,e=e+Math.imul(W,ft)|0,f=f+Math.imul(W,ut)|0,h=h+Math.imul(Z,ct)|0,e=e+Math.imul(Z,lt)|0,e=e+Math.imul(D,ct)|0,f=f+Math.imul(D,lt)|0,h=h+Math.imul(H,dt)|0,e=e+Math.imul(H,pt)|0,e=e+Math.imul($,dt)|0,f=f+Math.imul($,pt)|0;var ne=(m+h|0)+((e&8191)<<13)|0;m=(f+(e>>>13)|0)+(ne>>>26)|0,ne&=67108863,h=Math.imul(z,ft),e=Math.imul(z,ut),e=e+Math.imul(K,ft)|0,f=Math.imul(K,ut),h=h+Math.imul(J,ct)|0,e=e+Math.imul(J,lt)|0,e=e+Math.imul(W,ct)|0,f=f+Math.imul(W,lt)|0,h=h+Math.imul(Z,dt)|0,e=e+Math.imul(Z,pt)|0,e=e+Math.imul(D,dt)|0,f=f+Math.imul(D,pt)|0;var se=(m+h|0)+((e&8191)<<13)|0;m=(f+(e>>>13)|0)+(se>>>26)|0,se&=67108863,h=Math.imul(z,ct),e=Math.imul(z,lt),e=e+Math.imul(K,ct)|0,f=Math.imul(K,lt),h=h+Math.imul(J,dt)|0,e=e+Math.imul(J,pt)|0,e=e+Math.imul(W,dt)|0,f=f+Math.imul(W,pt)|0;var oe=(m+h|0)+((e&8191)<<13)|0;m=(f+(e>>>13)|0)+(oe>>>26)|0,oe&=67108863,h=Math.imul(z,dt),e=Math.imul(z,pt),e=e+Math.imul(K,dt)|0,f=Math.imul(K,pt);var ae=(m+h|0)+((e&8191)<<13)|0;return m=(f+(e>>>13)|0)+(ae>>>26)|0,ae&=67108863,d[0]=Zt,d[1]=Dt,d[2]=Jt,d[3]=Wt,d[4]=zt,d[5]=Kt,d[6]=Qt,d[7]=Gt,d[8]=Vt,d[9]=Yt,d[10]=Xt,d[11]=te,d[12]=ee,d[13]=re,d[14]=ie,d[15]=ne,d[16]=se,d[17]=oe,d[18]=ae,m!==0&&(d[19]=m,n.length++),n};Math.imul||(Ot=yt);function Lt(l,t,r){r.negative=t.negative^l.negative,r.length=l.length+t.length;for(var n=0,o=0,u=0;u>>26)|0,o+=d>>>26,d&=67108863}r.words[u]=m,n=d,d=o}return n!==0?r.words[u]=n:r.length--,r.strip()}function g(l,t,r){var n=new y;return n.mulp(l,t,r)}c.prototype.mulTo=function(t,r){var n,o=this.length+t.length;return this.length===10&&t.length===10?n=Ot(this,t,r):o<63?n=yt(this,t,r):o<1024?n=Lt(this,t,r):n=g(this,t,r),n};function y(l,t){this.x=l,this.y=t}y.prototype.makeRBT=function(t){for(var r=new Array(t),n=c.prototype._countBits(t)-1,o=0;o>=1;return o},y.prototype.permute=function(t,r,n,o,u,d){for(var m=0;m>>1)u++;return 1<>>13,n[2*d+1]=u&8191,u=u>>>13;for(d=2*r;d>=26,r+=o/67108864|0,r+=u>>>26,this.words[n]=u&67108863}return r!==0&&(this.words[n]=r,this.length++),this},c.prototype.muln=function(t){return this.clone().imuln(t)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(t){var r=_t(t);if(r.length===0)return new c(1);for(var n=this,o=0;o=0);var r=t%26,n=(t-r)/26,o=67108863>>>26-r<<26-r,u;if(r!==0){var d=0;for(u=0;u>>26-r}d&&(this.words[u]=d,this.length++)}if(n!==0){for(u=this.length-1;u>=0;u--)this.words[u+n]=this.words[u];for(u=0;u=0);var o;r?o=(r-r%26)/26:o=0;var u=t%26,d=Math.min((t-u)/26,this.length),m=67108863^67108863>>>u<d)for(this.length-=d,e=0;e=0&&(f!==0||e>=o);e--){var _=this.words[e]|0;this.words[e]=f<<26-u|_>>>u,f=_&m}return h&&f!==0&&(h.words[h.length++]=f),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(t,r,n){return p(this.negative===0),this.iushrn(t,r,n)},c.prototype.shln=function(t){return this.clone().ishln(t)},c.prototype.ushln=function(t){return this.clone().iushln(t)},c.prototype.shrn=function(t){return this.clone().ishrn(t)},c.prototype.ushrn=function(t){return this.clone().iushrn(t)},c.prototype.testn=function(t){p(typeof t=="number"&&t>=0);var r=t%26,n=(t-r)/26,o=1<=0);var r=t%26,n=(t-r)/26;if(p(this.negative===0,"imaskn works only with positive numbers"),this.length<=n)return this;if(r!==0&&n++,this.length=Math.min(n,this.length),r!==0){var o=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},c.prototype.isubn=function(t){if(p(typeof t=="number"),p(t<67108864),t<0)return this.iaddn(-t);if(this.negative!==0)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(h/67108864|0),this.words[u+n]=d&67108863}for(;u>26,this.words[u+n]=d&67108863;if(m===0)return this.strip();for(p(m===-1),m=0,u=0;u>26,this.words[u]=d&67108863;return this.negative=1,this.strip()},c.prototype._wordDiv=function(t,r){var n=this.length-t.length,o=this.clone(),u=t,d=u.words[u.length-1]|0,m=this._countBits(d);n=26-m,n!==0&&(u=u.ushln(n),o.iushln(n),d=u.words[u.length-1]|0);var h=o.length-u.length,e;if(r!=="mod"){e=new c(null),e.length=h+1,e.words=new Array(e.length);for(var f=0;f=0;b--){var S=(o.words[u.length+b]|0)*67108864+(o.words[u.length+b-1]|0);for(S=Math.min(S/d|0,67108863),o._ishlnsubmul(u,S,b);o.negative!==0;)S--,o.negative=0,o._ishlnsubmul(u,1,b),o.isZero()||(o.negative^=1);e&&(e.words[b]=S)}return e&&e.strip(),o.strip(),r!=="div"&&n!==0&&o.iushrn(n),{div:e||null,mod:o}},c.prototype.divmod=function(t,r,n){if(p(!t.isZero()),this.isZero())return{div:new c(0),mod:new c(0)};var o,u,d;return this.negative!==0&&t.negative===0?(d=this.neg().divmod(t,r),r!=="mod"&&(o=d.div.neg()),r!=="div"&&(u=d.mod.neg(),n&&u.negative!==0&&u.iadd(t)),{div:o,mod:u}):this.negative===0&&t.negative!==0?(d=this.divmod(t.neg(),r),r!=="mod"&&(o=d.div.neg()),{div:o,mod:d.mod}):this.negative&t.negative?(d=this.neg().divmod(t.neg(),r),r!=="div"&&(u=d.mod.neg(),n&&u.negative!==0&&u.isub(t)),{div:d.div,mod:u}):t.length>this.length||this.cmp(t)<0?{div:new c(0),mod:this}:t.length===1?r==="div"?{div:this.divn(t.words[0]),mod:null}:r==="mod"?{div:null,mod:new c(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new c(this.modn(t.words[0]))}:this._wordDiv(t,r)},c.prototype.div=function(t){return this.divmod(t,"div",!1).div},c.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},c.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},c.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var n=r.div.negative!==0?r.mod.isub(t):r.mod,o=t.ushrn(1),u=t.andln(1),d=n.cmp(o);return d<0||u===1&&d===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},c.prototype.modn=function(t){p(t<=67108863);for(var r=(1<<26)%t,n=0,o=this.length-1;o>=0;o--)n=(r*n+(this.words[o]|0))%t;return n},c.prototype.idivn=function(t){p(t<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var o=(this.words[n]|0)+r*67108864;this.words[n]=o/t|0,r=o%t}return this.strip()},c.prototype.divn=function(t){return this.clone().idivn(t)},c.prototype.egcd=function(t){p(t.negative===0),p(!t.isZero());var r=this,n=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var o=new c(1),u=new c(0),d=new c(0),m=new c(1),h=0;r.isEven()&&n.isEven();)r.iushrn(1),n.iushrn(1),++h;for(var e=n.clone(),f=r.clone();!r.isZero();){for(var _=0,b=1;!(r.words[0]&b)&&_<26;++_,b<<=1);if(_>0)for(r.iushrn(_);_-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(e),u.isub(f)),o.iushrn(1),u.iushrn(1);for(var S=0,x=1;!(n.words[0]&x)&&S<26;++S,x<<=1);if(S>0)for(n.iushrn(S);S-- >0;)(d.isOdd()||m.isOdd())&&(d.iadd(e),m.isub(f)),d.iushrn(1),m.iushrn(1);r.cmp(n)>=0?(r.isub(n),o.isub(d),u.isub(m)):(n.isub(r),d.isub(o),m.isub(u))}return{a:d,b:m,gcd:n.iushln(h)}},c.prototype._invmp=function(t){p(t.negative===0),p(!t.isZero());var r=this,n=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var o=new c(1),u=new c(0),d=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var m=0,h=1;!(r.words[0]&h)&&m<26;++m,h<<=1);if(m>0)for(r.iushrn(m);m-- >0;)o.isOdd()&&o.iadd(d),o.iushrn(1);for(var e=0,f=1;!(n.words[0]&f)&&e<26;++e,f<<=1);if(e>0)for(n.iushrn(e);e-- >0;)u.isOdd()&&u.iadd(d),u.iushrn(1);r.cmp(n)>=0?(r.isub(n),o.isub(u)):(n.isub(r),u.isub(o))}var _;return r.cmpn(1)===0?_=o:_=u,_.cmpn(0)<0&&_.iadd(t),_},c.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),n=t.clone();r.negative=0,n.negative=0;for(var o=0;r.isEven()&&n.isEven();o++)r.iushrn(1),n.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;n.isEven();)n.iushrn(1);var u=r.cmp(n);if(u<0){var d=r;r=n,n=d}else if(u===0||n.cmpn(1)===0)break;r.isub(n)}while(!0);return n.iushln(o)},c.prototype.invm=function(t){return this.egcd(t).a.umod(t)},c.prototype.isEven=function(){return(this.words[0]&1)===0},c.prototype.isOdd=function(){return(this.words[0]&1)===1},c.prototype.andln=function(t){return this.words[0]&t},c.prototype.bincn=function(t){p(typeof t=="number");var r=t%26,n=(t-r)/26,o=1<>>26,m&=67108863,this.words[d]=m}return u!==0&&(this.words[d]=u,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(t){var r=t<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;this.strip();var n;if(this.length>1)n=1;else{r&&(t=-t),p(t<=67108863,"Number is too big");var o=this.words[0]|0;n=o===t?0:ot.length)return 1;if(this.length=0;n--){var o=this.words[n]|0,u=t.words[n]|0;if(o!==u){ou&&(r=1);break}}return r},c.prototype.gtn=function(t){return this.cmpn(t)===1},c.prototype.gt=function(t){return this.cmp(t)===1},c.prototype.gten=function(t){return this.cmpn(t)>=0},c.prototype.gte=function(t){return this.cmp(t)>=0},c.prototype.ltn=function(t){return this.cmpn(t)===-1},c.prototype.lt=function(t){return this.cmp(t)===-1},c.prototype.lten=function(t){return this.cmpn(t)<=0},c.prototype.lte=function(t){return this.cmp(t)<=0},c.prototype.eqn=function(t){return this.cmpn(t)===0},c.prototype.eq=function(t){return this.cmp(t)===0},c.red=function(t){return new N(t)},c.prototype.toRed=function(t){return p(!this.red,"Already a number in reduction context"),p(this.negative===0,"red works only with positives"),t.convertTo(this)._forceRed(t)},c.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(t){return this.red=t,this},c.prototype.forceRed=function(t){return p(!this.red,"Already a number in reduction context"),this._forceRed(t)},c.prototype.redAdd=function(t){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},c.prototype.redIAdd=function(t){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},c.prototype.redSub=function(t){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},c.prototype.redISub=function(t){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},c.prototype.redShl=function(t){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},c.prototype.redMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},c.prototype.redIMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},c.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(t){return p(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var w={k256:null,p224:null,p192:null,p25519:null};function M(l,t){this.name=l,this.p=new c(t,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}M.prototype._tmp=function(){var t=new c(null);return t.words=new Array(Math.ceil(this.n/13)),t},M.prototype.ireduce=function(t){var r=t,n;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),n=r.bitLength();while(n>this.n);var o=n0?r.isub(this.p):r.strip(),r},M.prototype.split=function(t,r){t.iushrn(this.n,0,r)},M.prototype.imulK=function(t){return t.imul(this.k)};function R(){M.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}v(R,M),R.prototype.split=function(t,r){for(var n=4194303,o=Math.min(t.length,9),u=0;u>>22,d=m}d>>>=22,t.words[u-10]=d,d===0&&t.length>10?t.length-=10:t.length-=9},R.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,n=0;n>>=26,t.words[n]=u,r=o}return r!==0&&(t.words[t.length++]=r),t},c._prime=function(t){if(w[t])return w[t];var r;if(t==="k256")r=new R;else if(t==="p224")r=new C;else if(t==="p192")r=new I;else if(t==="p25519")r=new gt;else throw new Error("Unknown prime "+t);return w[t]=r,r};function N(l){if(typeof l=="string"){var t=c._prime(l);this.m=t.p,this.prime=t}else p(l.gtn(1),"modulus must be greater than 1"),this.m=l,this.prime=null}N.prototype._verify1=function(t){p(t.negative===0,"red works only with positives"),p(t.red,"red works only with red numbers")},N.prototype._verify2=function(t,r){p((t.negative|r.negative)===0,"red works only with positives"),p(t.red&&t.red===r.red,"red works only with red numbers")},N.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},N.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},N.prototype.add=function(t,r){this._verify2(t,r);var n=t.add(r);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},N.prototype.iadd=function(t,r){this._verify2(t,r);var n=t.iadd(r);return n.cmp(this.m)>=0&&n.isub(this.m),n},N.prototype.sub=function(t,r){this._verify2(t,r);var n=t.sub(r);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},N.prototype.isub=function(t,r){this._verify2(t,r);var n=t.isub(r);return n.cmpn(0)<0&&n.iadd(this.m),n},N.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},N.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},N.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},N.prototype.isqr=function(t){return this.imul(t,t.clone())},N.prototype.sqr=function(t){return this.mul(t,t)},N.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(p(r%2===1),r===3){var n=this.m.add(new c(1)).iushrn(2);return this.pow(t,n)}for(var o=this.m.subn(1),u=0;!o.isZero()&&o.andln(1)===0;)u++,o.iushrn(1);p(!o.isZero());var d=new c(1).toRed(this),m=d.redNeg(),h=this.m.subn(1).iushrn(1),e=this.m.bitLength();for(e=new c(2*e*e).toRed(this);this.pow(e,h).cmp(m)!==0;)e.redIAdd(m);for(var f=this.pow(e,o),_=this.pow(t,o.addn(1).iushrn(1)),b=this.pow(t,o),S=u;b.cmp(d)!==0;){for(var x=b,E=0;x.cmp(d)!==0;E++)x=x.redSqr();p(E=0;u--){for(var f=r.words[u],_=e-1;_>=0;_--){var b=f>>_&1;if(d!==o[0]&&(d=this.sqr(d)),b===0&&m===0){h=0;continue}m<<=1,m|=b,h++,!(h!==n&&(u!==0||_!==0))&&(d=this.mul(d,o[m]),h=0,m=0)}e=26}return d},N.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},N.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},c.mont=function(t){return new kt(t)};function kt(l){N.call(this,l),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v(kt,N),kt.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},kt.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},kt.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(r),o=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=n.isub(o).iushrn(this.shift),d=u;return u.cmp(this.m)>=0?d=u.isub(this.m):u.cmpn(0)<0&&(d=u.iadd(this.m)),d._forceRed(this)},kt.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new c(0)._forceRed(this);var n=t.mul(r),o=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=n.isub(o).iushrn(this.shift),d=u;return u.cmp(this.m)>=0?d=u.isub(this.m):u.cmpn(0)<0&&(d=u.iadd(this.m)),d._forceRed(this)},kt.prototype.invm=function(t){var r=this.imod(t._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(s,Tt)})(Sr);const xr=le;var Rr=ve;ve.strict=Ve;ve.loose=Ye;var Ir=Object.prototype.toString,kr={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function ve(s){return Ve(s)||Ye(s)}function Ve(s){return s instanceof Int8Array||s instanceof Int16Array||s instanceof Int32Array||s instanceof Uint8Array||s instanceof Uint8ClampedArray||s instanceof Uint16Array||s instanceof Uint32Array||s instanceof Float32Array||s instanceof Float64Array}function Ye(s){return kr[Ir.call(s)]}var Er=Rr.strict,Tr=function(i){if(Er(i)){var a=Ft.Buffer.from(i.buffer);return i.byteLength!==i.buffer.byteLength&&(a=a.slice(i.byteOffset,i.byteOffset+i.byteLength)),a}else return Ft.Buffer.from(i)};const Xe="hex",tr="utf8",Ht="0";function Ct(s){return new Uint8Array(s)}function er(s,i=!1){const a=s.toString(Xe);return i?Nt(a):a}function Or(s){return s.toString(tr)}function $t(s){return Tr(s)}function qt(s,i=!1){return er($t(s),i)}function qr(s){return Or($t(s))}function Ar(s){return Ft.Buffer.from(xt(s),Xe)}function At(s){return Ct(Ar(s))}function ge(s){return Ft.Buffer.from(s,tr)}function Cr(s){return Ct(ge(s))}function Nr(s,i=!1){return er(ge(s),i)}function Br(s,i){return!(typeof s!="string"||!s.match(/^0x[0-9A-Fa-f]*$/)||i&&s.length!==2+2*i)}function rr(...s){let i=[];return s.forEach(a=>i=i.concat(Array.from(a))),new Uint8Array([...i])}function Ur(s,i=8){const a=s%i;return a?(s-a)/i*i+i:s}function Fr(s,i=8,a=Ht){return Lr(s,Ur(s.length,i),a)}function Lr(s,i,a=Ht){return jr(s,i,!0,a)}function xt(s){return s.replace(/^0x/,"")}function Nt(s){return s.startsWith("0x")?s:`0x${s}`}function ir(s){return s=xt(s),s=Fr(s,2),s&&(s=Nt(s)),s}function Pr(s){const i=s.startsWith("0x");return s=xt(s),s=s.startsWith(Ht)?s.substring(1):s,i?Nt(s):s}function jr(s,i,a,p=Ht){const v=i-s.length;let c=s;if(v>0){const T=p.repeat(v);c=a?T+s:s+T}return c}function de(s){return $t(new Uint8Array(s))}function Hr(s,i){return qt(new Uint8Array(s),!i)}function $r(s){return Ct(s).buffer}function Zr(s){return ge(s)}function Dr(s,i){return Nr(s,!i)}function Jr(s){return At(s).buffer}function nr(s,i){const a=xt(ir(new xr(s).toString(16)));return i?a:Nt(a)}var Bt={};const Wr=Mr(wr);var wt={},je;function zr(){if(je)return wt;je=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.isBrowserCryptoAvailable=wt.getSubtleCrypto=wt.getBrowerCrypto=void 0;function s(){return(Tt===null||Tt===void 0?void 0:Tt.crypto)||(Tt===null||Tt===void 0?void 0:Tt.msCrypto)||{}}wt.getBrowerCrypto=s;function i(){const p=s();return p.subtle||p.webkitSubtle}wt.getSubtleCrypto=i;function a(){return!!s()&&!!i()}return wt.isBrowserCryptoAvailable=a,wt}var bt={},He;function Kr(){if(He)return bt;He=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.isBrowser=bt.isNode=bt.isReactNative=void 0;function s(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}bt.isReactNative=s;function i(){return typeof he<"u"&&typeof he.versions<"u"&&typeof he.versions.node<"u"}bt.isNode=i;function a(){return!s()&&!i()}return bt.isBrowser=a,bt}(function(s){Object.defineProperty(s,"__esModule",{value:!0});const i=Wr;i.__exportStar(zr(),s),i.__exportStar(Kr(),s)})(Bt);function Qr(){const s=Date.now()*Math.pow(10,3),i=Math.floor(Math.random()*Math.pow(10,3));return s+i}function Pt(s){return ir(s)}function Gr(s){return Pr(Nt(s))}const Vr=Qr;function fe(){return((i,a)=>{for(a=i="";i++<36;a+=i*51&52?(i^15?8^Math.random()*(i^20?16:4):4).toString(16):"-");return a})()}function Yr(s){return s===""||typeof s=="string"&&s.trim()===""}function Xr(s){return!(s&&s.length)}function sr(s,i){return Br(s,i)}function ti(s){return typeof s.method<"u"}function Ut(s){return typeof s.result<"u"}function jt(s){return typeof s.error<"u"}function $e(s){return typeof s.event<"u"}function ei(s){return br.includes(s)||s.startsWith("wc_")}function ri(s){return s.method.startsWith("wc_")?!0:!Ge.includes(s.method)}function ii(s){s=xt(s.toLowerCase());const i=xt(_r.keccak_256(Zr(s)));let a="";for(let p=0;p7?a+=s[p].toUpperCase():a+=s[p];return Nt(a)}const ni=s=>s?s.toLowerCase().substring(0,2)!=="0x"?!1:/^(0x)?[0-9a-f]{40}$/i.test(s)?/^(0x)?[0-9a-f]{40}$/.test(s)||/^(0x)?[0-9A-F]{40}$/.test(s)?!0:s===ii(s):!1:!1;function Ze(s){return!Xr(s)&&!sr(s[0])&&(s[0]=Dr(s[0])),s}function ue(s){if(typeof s.type<"u"&&s.type!=="0")return s;if(typeof s.from>"u"||!ni(s.from))throw new Error("Transaction object must include a valid 'from' value.");function i(v){let c=v;return(typeof v=="number"||typeof v=="string"&&!Yr(v))&&(sr(v)?typeof v=="string"&&(c=Pt(v)):c=nr(v)),typeof c=="string"&&(c=Gr(c)),c}const a={from:Pt(s.from),to:typeof s.to>"u"?void 0:Pt(s.to),gasPrice:typeof s.gasPrice>"u"?"":i(s.gasPrice),gas:typeof s.gas>"u"?typeof s.gasLimit>"u"?"":i(s.gasLimit):i(s.gas),value:typeof s.value>"u"?"":i(s.value),nonce:typeof s.nonce>"u"?"":i(s.nonce),data:typeof s.data>"u"?"":Pt(s.data)||"0x"},p=["gasPrice","gas","value","nonce"];return Object.keys(a).forEach(v=>{(typeof a[v]>"u"||typeof a[v]=="string"&&!a[v].trim().length)&&p.includes(v)&&delete a[v]}),a}function si(s){const i=s.message||"Failed or Rejected Request";let a=-32e3;if(s&&!s.code)switch(i){case"Parse error":a=-32700;break;case"Invalid request":a=-32600;break;case"Method not found":a=-32601;break;case"Invalid params":a=-32602;break;case"Internal error":a=-32603;break;default:a=-32e3;break}const p={code:a,message:i};return s.data&&(p.data=s.data),p}var ye={},oi=s=>encodeURIComponent(s).replace(/[!'()*]/g,i=>`%${i.charCodeAt(0).toString(16).toUpperCase()}`),or="%[a-f0-9]{2}",De=new RegExp("("+or+")|([^%]+?)","gi"),Je=new RegExp("("+or+")+","gi");function pe(s,i){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;i=i||1;var a=s.slice(0,i),p=s.slice(i);return Array.prototype.concat.call([],pe(a),pe(p))}function ai(s){try{return decodeURIComponent(s)}catch{for(var i=s.match(De)||[],a=1;a{if(!(typeof s=="string"&&typeof i=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(i==="")return[s];const a=s.indexOf(i);return a===-1?[s]:[s.slice(0,a),s.slice(a+i.length)]};(function(s){const i=oi,a=fi,p=ui,v=g=>g==null;function c(g){switch(g.arrayFormat){case"index":return y=>(w,M)=>{const R=w.length;return M===void 0||g.skipNull&&M===null||g.skipEmptyString&&M===""?w:M===null?[...w,[k(y,g),"[",R,"]"].join("")]:[...w,[k(y,g),"[",k(R,g),"]=",k(M,g)].join("")]};case"bracket":return y=>(w,M)=>M===void 0||g.skipNull&&M===null||g.skipEmptyString&&M===""?w:M===null?[...w,[k(y,g),"[]"].join("")]:[...w,[k(y,g),"[]=",k(M,g)].join("")];case"comma":case"separator":return y=>(w,M)=>M==null||M.length===0?w:w.length===0?[[k(y,g),"=",k(M,g)].join("")]:[[w,k(M,g)].join(g.arrayFormatSeparator)];default:return y=>(w,M)=>M===void 0||g.skipNull&&M===null||g.skipEmptyString&&M===""?w:M===null?[...w,k(y,g)]:[...w,[k(y,g),"=",k(M,g)].join("")]}}function T(g){let y;switch(g.arrayFormat){case"index":return(w,M,R)=>{if(y=/\[(\d*)\]$/.exec(w),w=w.replace(/\[\d*\]$/,""),!y){R[w]=M;return}R[w]===void 0&&(R[w]={}),R[w][y[1]]=M};case"bracket":return(w,M,R)=>{if(y=/(\[\])$/.exec(w),w=w.replace(/\[\]$/,""),!y){R[w]=M;return}if(R[w]===void 0){R[w]=[M];return}R[w]=[].concat(R[w],M)};case"comma":case"separator":return(w,M,R)=>{const I=typeof M=="string"&&M.split("").indexOf(g.arrayFormatSeparator)>-1?M.split(g.arrayFormatSeparator).map(gt=>vt(gt,g)):M===null?M:vt(M,g);R[w]=I};default:return(w,M,R)=>{if(R[w]===void 0){R[w]=M;return}R[w]=[].concat(R[w],M)}}}function mt(g){if(typeof g!="string"||g.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function k(g,y){return y.encode?y.strict?i(g):encodeURIComponent(g):g}function vt(g,y){return y.decode?a(g):g}function It(g){return Array.isArray(g)?g.sort():typeof g=="object"?It(Object.keys(g)).sort((y,w)=>Number(y)-Number(w)).map(y=>g[y]):g}function Mt(g){const y=g.indexOf("#");return y!==-1&&(g=g.slice(0,y)),g}function _t(g){let y="";const w=g.indexOf("#");return w!==-1&&(y=g.slice(w)),y}function yt(g){g=Mt(g);const y=g.indexOf("?");return y===-1?"":g.slice(y+1)}function Ot(g,y){return y.parseNumbers&&!Number.isNaN(Number(g))&&typeof g=="string"&&g.trim()!==""?g=Number(g):y.parseBooleans&&g!==null&&(g.toLowerCase()==="true"||g.toLowerCase()==="false")&&(g=g.toLowerCase()==="true"),g}function Lt(g,y){y=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},y),mt(y.arrayFormatSeparator);const w=T(y),M=Object.create(null);if(typeof g!="string"||(g=g.trim().replace(/^[?#&]/,""),!g))return M;for(const R of g.split("&")){let[C,I]=p(y.decode?R.replace(/\+/g," "):R,"=");I=I===void 0?null:["comma","separator"].includes(y.arrayFormat)?I:vt(I,y),w(vt(C,y),I,M)}for(const R of Object.keys(M)){const C=M[R];if(typeof C=="object"&&C!==null)for(const I of Object.keys(C))C[I]=Ot(C[I],y);else M[R]=Ot(C,y)}return y.sort===!1?M:(y.sort===!0?Object.keys(M).sort():Object.keys(M).sort(y.sort)).reduce((R,C)=>{const I=M[C];return Boolean(I)&&typeof I=="object"&&!Array.isArray(I)?R[C]=It(I):R[C]=I,R},Object.create(null))}s.extract=yt,s.parse=Lt,s.stringify=(g,y)=>{if(!g)return"";y=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},y),mt(y.arrayFormatSeparator);const w=I=>y.skipNull&&v(g[I])||y.skipEmptyString&&g[I]==="",M=c(y),R={};for(const I of Object.keys(g))w(I)||(R[I]=g[I]);const C=Object.keys(R);return y.sort!==!1&&C.sort(y.sort),C.map(I=>{const gt=g[I];return gt===void 0?"":gt===null?k(I,y):Array.isArray(gt)?gt.reduce(M(I),[]).join("&"):k(I,y)+"="+k(gt,y)}).filter(I=>I.length>0).join("&")},s.parseUrl=(g,y)=>{y=Object.assign({decode:!0},y);const[w,M]=p(g,"#");return Object.assign({url:w.split("?")[0]||"",query:Lt(yt(g),y)},y&&y.parseFragmentIdentifier&&M?{fragmentIdentifier:vt(M,y)}:{})},s.stringifyUrl=(g,y)=>{y=Object.assign({encode:!0,strict:!0},y);const w=Mt(g.url).split("?")[0]||"",M=s.extract(g.url),R=s.parse(M,{sort:!1}),C=Object.assign(R,g.query);let I=s.stringify(C,y);I&&(I=`?${I}`);let gt=_t(g.url);return g.fragmentIdentifier&&(gt=`#${k(g.fragmentIdentifier,y)}`),`${w}${I}${gt}`}})(ye);function ci(s){const i=s.indexOf("?")!==-1?s.indexOf("?"):void 0;return typeof i<"u"?s.substr(i):""}function li(s,i){let a=ar(s);return a=Object.assign(Object.assign({},a),i),s=di(a),s}function ar(s){return ye.parse(s)}function di(s){return ye.stringify(s)}function pi(s){return typeof s.bridge<"u"}function mi(s){const i=s.indexOf(":"),a=s.indexOf("?")!==-1?s.indexOf("?"):void 0,p=s.substring(0,i),v=s.substring(i+1,a);function c(Mt){const _t="@",yt=Mt.split(_t);return{handshakeTopic:yt[0],version:parseInt(yt[1],10)}}const T=c(v),mt=typeof a<"u"?s.substr(a):"";function k(Mt){const _t=ar(Mt);return{key:_t.key||"",bridge:_t.bridge||""}}const vt=k(mt);return Object.assign(Object.assign({protocol:p},T),vt)}class vi{constructor(){this._eventEmitters=[],typeof window<"u"&&typeof window.addEventListener<"u"&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(i,a){this._eventEmitters.push({event:i,callback:a})}trigger(i){let a=[];i&&(a=this._eventEmitters.filter(p=>p.event===i)),a.forEach(p=>{p.callback()})}}const gi=typeof Pe.WebSocket<"u"?Pe.WebSocket:require("ws");class yi{constructor(i){if(this.opts=i,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=i.protocol,this._version=i.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=i.subscriptions||[],this._netMonitor=i.netMonitor||new vi,!i.url||typeof i.url!="string")throw new Error("Missing or invalid WebSocket url");this._url=i.url,this._netMonitor.on("online",()=>this._socketCreate())}set readyState(i){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(i){}get connecting(){return this.readyState===0}set connected(i){}get connected(){return this.readyState===1}set closing(i){}get closing(){return this.readyState===2}set closed(i){}get closed(){return this.readyState===3}open(){this._socketCreate()}close(){this._socketClose()}send(i,a,p){if(!a||typeof a!="string")throw new Error("Missing or invalid topic field");this._socketSend({topic:a,type:"pub",payload:i,silent:!!p})}subscribe(i){this._socketSend({topic:i,type:"sub",payload:"",silent:!0})}on(i,a){this._events.push({event:i,callback:a})}_socketCreate(){if(this._nextSocket)return;const i=Mi(this._url,this._protocol,this._version);if(this._nextSocket=new gi(i),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=a=>this._socketReceive(a),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=a=>this._socketError(a),this._nextSocket.onclose=()=>{setTimeout(()=>{this._nextSocket=null,this._socketCreate()},1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(i){const a=JSON.stringify(i);this._socket&&this._socket.readyState===1?this._socket.send(a):(this._setToQueue(i),this._socketCreate())}async _socketReceive(i){let a;try{a=JSON.parse(i.data)}catch{return}if(this._socketSend({topic:a.topic,type:"ack",payload:"",silent:!0}),this._socket&&this._socket.readyState===1){const p=this._events.filter(v=>v.event==="message");p&&p.length&&p.forEach(v=>v.callback(a))}}_socketError(i){const a=this._events.filter(p=>p.event==="error");a&&a.length&&a.forEach(p=>p.callback(i))}_queueSubscriptions(){this._subscriptions.forEach(a=>this._queue.push({topic:a,type:"sub",payload:"",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(i){this._queue.push(i)}_pushQueue(){this._queue.forEach(a=>this._socketSend(a)),this._queue=[]}}function Mi(s,i,a){var p,v;const T=(s.startsWith("https")?s.replace("https","wss"):s.startsWith("http")?s.replace("http","ws"):s).split("?"),mt=pr()?{protocol:i,version:a,env:"browser",host:((p=mr())===null||p===void 0?void 0:p.host)||""}:{protocol:i,version:a,env:((v=vr())===null||v===void 0?void 0:v.name)||""},k=li(ci(T[1]||""),mt);return T[0]+"?"+k}const ce="Session currently connected",Et="Session currently disconnected",_i="Session Rejected",wi="Missing JSON RPC response",bi='JSON-RPC success response must include "result" field',Si='JSON-RPC error response must include "error" field',xi='JSON RPC request must have valid "method" value',Ri='JSON RPC request must have valid "id" value',Ii="Missing one of the required parameters: bridge / uri / session",We="JSON RPC response format is invalid",ki="URI format is invalid",Ei="QRCode Modal not provided",ze="User close QRCode Modal";class Ti{constructor(){this._eventEmitters=[]}subscribe(i){this._eventEmitters.push(i)}unsubscribe(i){this._eventEmitters=this._eventEmitters.filter(a=>a.event!==i)}trigger(i){let a=[],p;ti(i)?p=i.method:Ut(i)||jt(i)?p=`response:${i.id}`:$e(i)?p=i.event:p="",p&&(a=this._eventEmitters.filter(v=>v.event===p)),(!a||!a.length)&&!ei(p)&&!$e(p)&&(a=this._eventEmitters.filter(v=>v.event==="call_request")),a.forEach(v=>{if(jt(i)){const c=new Error(i.error.message);v.callback(c,null)}else v.callback(null,i)})}}class Oi{constructor(i="walletconnect"){this.storageId=i}getSession(){let i=null;const a=Ke(this.storageId);return a&&pi(a)&&(i=a),i}setSession(i){return gr(this.storageId,i),i}removeSession(){Qe(this.storageId)}}const qi="walletconnect.org",Ai="abcdefghijklmnopqrstuvwxyz0123456789",hr=Ai.split("").map(s=>`https://${s}.bridge.walletconnect.org`);function Ci(s){let i=s.indexOf("//")>-1?s.split("/")[2]:s.split("/")[0];return i=i.split(":")[0],i=i.split("?")[0],i}function Ni(s){return Ci(s).split(".").slice(-2).join(".")}function Bi(){return Math.floor(Math.random()*hr.length)}function Ui(){return hr[Bi()]}function Fi(s){return Ni(s)===qi}function Li(s){return Fi(s)?Ui():s}class Pi{constructor(i){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new Ti,this._clientMeta=Fe()||i.connectorOpts.clientMeta||null,this._cryptoLib=i.cryptoLib,this._sessionStorage=i.sessionStorage||new Oi(i.connectorOpts.storageId),this._qrcodeModal=i.connectorOpts.qrcodeModal,this._qrcodeModalOptions=i.connectorOpts.qrcodeModalOptions,this._signingMethods=[...Ge,...i.connectorOpts.signingMethods||[]],!i.connectorOpts.bridge&&!i.connectorOpts.uri&&!i.connectorOpts.session)throw new Error(Ii);i.connectorOpts.bridge&&(this.bridge=Li(i.connectorOpts.bridge)),i.connectorOpts.uri&&(this.uri=i.connectorOpts.uri);const a=i.connectorOpts.session||this._getStorageSession();a&&(this.session=a),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=i.transport||new yi({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),i.connectorOpts.uri&&this._subscribeToSessionRequest(),i.pushServerOpts&&this._registerPushServer(i.pushServerOpts)}set bridge(i){i&&(this._bridge=i)}get bridge(){return this._bridge}set key(i){if(!i)return;const a=Jr(i);this._key=a}get key(){return this._key?Hr(this._key,!0):""}set clientId(i){i&&(this._clientId=i)}get clientId(){let i=this._clientId;return i||(i=this._clientId=fe()),this._clientId}set peerId(i){i&&(this._peerId=i)}get peerId(){return this._peerId}set clientMeta(i){}get clientMeta(){let i=this._clientMeta;return i||(i=this._clientMeta=Fe()),i}set peerMeta(i){this._peerMeta=i}get peerMeta(){return this._peerMeta}set handshakeTopic(i){i&&(this._handshakeTopic=i)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(i){i&&(this._handshakeId=i)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(i){if(!i)return;const{handshakeTopic:a,bridge:p,key:v}=this._parseUri(i);this.handshakeTopic=a,this.bridge=p,this.key=v}set chainId(i){this._chainId=i}get chainId(){return this._chainId}set networkId(i){this._networkId=i}get networkId(){return this._networkId}set accounts(i){this._accounts=i}get accounts(){return this._accounts}set rpcUrl(i){this._rpcUrl=i}get rpcUrl(){return this._rpcUrl}set connected(i){}get connected(){return this._connected}set pending(i){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(i){i&&(this._connected=i.connected,this.accounts=i.accounts,this.chainId=i.chainId,this.bridge=i.bridge,this.key=i.key,this.clientId=i.clientId,this.clientMeta=i.clientMeta,this.peerId=i.peerId,this.peerMeta=i.peerMeta,this.handshakeId=i.handshakeId,this.handshakeTopic=i.handshakeTopic)}on(i,a){const p={event:i,callback:a};this._eventManager.subscribe(p)}off(i){this._eventManager.unsubscribe(i)}async createInstantRequest(i){this._key=await this._generateKey();const a=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(i)}]});this.handshakeId=a.id,this.handshakeTopic=fe(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",()=>{throw new Error(ze)});const p=()=>{this.killSession()};try{const v=await this._sendCallRequest(a);return v&&p(),v}catch(v){throw p(),v}}async connect(i){if(!this._qrcodeModal)throw new Error(Ei);return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(i),new Promise(async(a,p)=>{this.on("modal_closed",()=>p(new Error(ze))),this.on("connect",(v,c)=>{if(v)return p(v);a(c.params[0])})}))}async createSession(i){if(this._connected)throw new Error(ce);if(this.pending)return;this._key=await this._generateKey();const a=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:i&&i.chainId?i.chainId:null}]});this.handshakeId=a.id,this.handshakeTopic=fe(),this._sendSessionRequest(a,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(i){if(this._connected)throw new Error(ce);this.chainId=i.chainId,this.accounts=i.accounts,this.networkId=i.networkId||0,this.rpcUrl=i.rpcUrl||"";const a={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},p={id:this.handshakeId,jsonrpc:"2.0",result:a};this._sendResponse(p),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(i){if(this._connected)throw new Error(ce);const a=i&&i.message?i.message:_i,p=this._formatResponse({id:this.handshakeId,error:{message:a}});this._sendResponse(p),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:a}]}),this._removeStorageSession()}updateSession(i){if(!this._connected)throw new Error(Et);this.chainId=i.chainId,this.accounts=i.accounts,this.networkId=i.networkId||0,this.rpcUrl=i.rpcUrl||"";const a={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},p=this._formatRequest({method:"wc_sessionUpdate",params:[a]});this._sendSessionRequest(p,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(i){const a=i?i.message:"Session Disconnected",p={approved:!1,chainId:null,networkId:null,accounts:null},v=this._formatRequest({method:"wc_sessionUpdate",params:[p]});await this._sendRequest(v),this._handleSessionDisconnect(a)}async sendTransaction(i){if(!this._connected)throw new Error(Et);const a=ue(i),p=this._formatRequest({method:"eth_sendTransaction",params:[a]});return await this._sendCallRequest(p)}async signTransaction(i){if(!this._connected)throw new Error(Et);const a=ue(i),p=this._formatRequest({method:"eth_signTransaction",params:[a]});return await this._sendCallRequest(p)}async signMessage(i){if(!this._connected)throw new Error(Et);const a=this._formatRequest({method:"eth_sign",params:i});return await this._sendCallRequest(a)}async signPersonalMessage(i){if(!this._connected)throw new Error(Et);i=Ze(i);const a=this._formatRequest({method:"personal_sign",params:i});return await this._sendCallRequest(a)}async signTypedData(i){if(!this._connected)throw new Error(Et);const a=this._formatRequest({method:"eth_signTypedData",params:i});return await this._sendCallRequest(a)}async updateChain(i){if(!this._connected)throw new Error("Session currently disconnected");const a=this._formatRequest({method:"wallet_updateChain",params:[i]});return await this._sendCallRequest(a)}unsafeSend(i,a){return this._sendRequest(i,a),this._eventManager.trigger({event:"call_request_sent",params:[{request:i,options:a}]}),new Promise((p,v)=>{this._subscribeToResponse(i.id,(c,T)=>{if(c){v(c);return}if(!T)throw new Error(wi);p(T)})})}async sendCustomRequest(i,a){if(!this._connected)throw new Error(Et);switch(i.method){case"eth_accounts":return this.accounts;case"eth_chainId":return nr(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":i.params&&(i.params[0]=ue(i.params[0]));break;case"personal_sign":i.params&&(i.params=Ze(i.params));break}const p=this._formatRequest(i);return await this._sendCallRequest(p,a)}approveRequest(i){if(Ut(i)){const a=this._formatResponse(i);this._sendResponse(a)}else throw new Error(bi)}rejectRequest(i){if(jt(i)){const a=this._formatResponse(i);this._sendResponse(a)}else throw new Error(Si)}transportClose(){this._transport.close()}async _sendRequest(i,a){const p=this._formatRequest(i),v=await this._encrypt(p),c=typeof(a==null?void 0:a.topic)<"u"?a.topic:this.peerId,T=JSON.stringify(v),mt=typeof(a==null?void 0:a.forcePushNotification)<"u"?!a.forcePushNotification:ri(p);this._transport.send(T,c,mt)}async _sendResponse(i){const a=await this._encrypt(i),p=this.peerId,v=JSON.stringify(a),c=!0;this._transport.send(v,p,c)}async _sendSessionRequest(i,a,p){this._sendRequest(i,p),this._subscribeToSessionResponse(i.id,a)}_sendCallRequest(i,a){return this._sendRequest(i,a),this._eventManager.trigger({event:"call_request_sent",params:[{request:i,options:a}]}),this._subscribeToCallResponse(i.id)}_formatRequest(i){if(typeof i.method>"u")throw new Error(xi);return{id:typeof i.id>"u"?Vr():i.id,jsonrpc:"2.0",method:i.method,params:typeof i.params>"u"?[]:i.params}}_formatResponse(i){if(typeof i.id>"u")throw new Error(Ri);const a={id:i.id,jsonrpc:"2.0"};if(jt(i)){const p=si(i.error);return Object.assign(Object.assign(Object.assign({},a),i),{error:p})}else if(Ut(i))return Object.assign(Object.assign({},a),i);throw new Error(We)}_handleSessionDisconnect(i){const a=i||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),Qe(Le)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:a}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(i,a){a?a.approved?(this._connected?(a.chainId&&(this.chainId=a.chainId),a.accounts&&(this.accounts=a.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,a.chainId&&(this.chainId=a.chainId),a.accounts&&(this.accounts=a.accounts),a.peerId&&!this.peerId&&(this.peerId=a.peerId),a.peerMeta&&!this.peerMeta&&(this.peerMeta=a.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(i):this._handleSessionDisconnect(i)}async _handleIncomingMessages(i){if(![this.clientId,this.handshakeTopic].includes(i.topic))return;let p;try{p=JSON.parse(i.payload)}catch{return}const v=await this._decrypt(p);v&&this._eventManager.trigger(v)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(i,a){this.on(`response:${i}`,a)}_subscribeToSessionResponse(i,a){this._subscribeToResponse(i,(p,v)=>{if(p){this._handleSessionResponse(p.message);return}Ut(v)?this._handleSessionResponse(a,v.result):v.error&&v.error.message?this._handleSessionResponse(v.error.message):this._handleSessionResponse(a)})}_subscribeToCallResponse(i){return new Promise((a,p)=>{this._subscribeToResponse(i,(v,c)=>{if(v){p(v);return}Ut(c)?a(c.result):c.error&&c.error.message?p(c.error):p(new Error(We))})})}_subscribeToInternalEvents(){this.on("display_uri",()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,()=>{this._eventManager.trigger({event:"modal_closed",params:[]})},this._qrcodeModalOptions)}),this.on("connect",()=>{this._qrcodeModal&&this._qrcodeModal.close()}),this.on("call_request_sent",(i,a)=>{const{request:p}=a.params[0];if(yr()&&this._signingMethods.includes(p.method)){const v=Ke(Le);v&&(window.location.href=v.href)}}),this.on("wc_sessionRequest",(i,a)=>{i&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:i.toString()}]}),this.handshakeId=a.id,this.peerId=a.params[0].peerId,this.peerMeta=a.params[0].peerMeta;const p=Object.assign(Object.assign({},a),{method:"session_request"});this._eventManager.trigger(p)}),this.on("wc_sessionUpdate",(i,a)=>{i&&this._handleSessionResponse(i.message),this._handleSessionResponse("Session disconnected",a.params[0])})}_initTransport(){this._transport.on("message",i=>this._handleIncomingMessages(i)),this._transport.on("open",()=>this._eventManager.trigger({event:"transport_open",params:[]})),this._transport.on("close",()=>this._eventManager.trigger({event:"transport_close",params:[]})),this._transport.on("error",()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})),this._transport.open()}_formatUri(){const i=this.protocol,a=this.handshakeTopic,p=this.version,v=encodeURIComponent(this.bridge),c=this.key;return`${i}:${a}@${p}?bridge=${v}&key=${c}`}_parseUri(i){const a=mi(i);if(a.protocol===this.protocol){if(!a.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");const p=a.handshakeTopic;if(!a.bridge)throw Error("Invalid or missing bridge url parameter value");const v=decodeURIComponent(a.bridge);if(!a.key)throw Error("Invalid or missing key parameter value");const c=a.key;return{handshakeTopic:p,bridge:v,key:c}}else throw new Error(ki)}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}async _encrypt(i){const a=this._key;return this._cryptoLib&&a?await this._cryptoLib.encrypt(i,a):null}async _decrypt(i){const a=this._key;return this._cryptoLib&&a?await this._cryptoLib.decrypt(i,a):null}_getStorageSession(){let i=null;return this._sessionStorage&&(i=this._sessionStorage.getSession()),i}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(i){if(!i.url||typeof i.url!="string")throw Error("Invalid or missing pushServerOpts.url parameter value");if(!i.type||typeof i.type!="string")throw Error("Invalid or missing pushServerOpts.type parameter value");if(!i.token||typeof i.token!="string")throw Error("Invalid or missing pushServerOpts.token parameter value");const a={bridge:this.bridge,topic:this.clientId,type:i.type,token:i.token,peerName:"",language:i.language||""};this.on("connect",async(p,v)=>{if(p)throw p;if(i.peerMeta){const c=v.params[0].peerMeta.name;a.peerName=c}try{if(!(await(await fetch(`${i.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(a)})).json()).success)throw Error("Failed to register in Push Server")}catch{throw Error("Failed to register in Push Server")}})}}function ji(s){return Bt.getBrowerCrypto().getRandomValues(new Uint8Array(s))}const fr=256,ur=fr,Hi=fr,Rt="AES-CBC",$i=`SHA-${ur}`,me="HMAC",Zi="encrypt",Di="decrypt",Ji="sign",Wi="verify";function zi(s){return s===Rt?{length:ur,name:Rt}:{hash:{name:$i},name:me}}function Ki(s){return s===Rt?[Zi,Di]:[Ji,Wi]}async function Me(s,i=Rt){return Bt.getSubtleCrypto().importKey("raw",s,zi(i),!0,Ki(i))}async function Qi(s,i,a){const p=Bt.getSubtleCrypto(),v=await Me(i,Rt),c=await p.encrypt({iv:s,name:Rt},v,a);return new Uint8Array(c)}async function Gi(s,i,a){const p=Bt.getSubtleCrypto(),v=await Me(i,Rt),c=await p.decrypt({iv:s,name:Rt},v,a);return new Uint8Array(c)}async function Vi(s,i){const a=Bt.getSubtleCrypto(),p=await Me(s,me),v=await a.sign({length:Hi,name:me},p,i);return new Uint8Array(v)}function Yi(s,i,a){return Qi(s,i,a)}function Xi(s,i,a){return Gi(s,i,a)}async function cr(s,i){return await Vi(s,i)}async function lr(s){const i=(s||256)/8,a=ji(i);return $r($t(a))}async function dr(s,i){const a=At(s.data),p=At(s.iv),v=At(s.hmac),c=qt(v,!1),T=rr(a,p),mt=await cr(i,T),k=qt(mt,!1);return xt(c)===xt(k)}async function tn(s,i,a){const p=Ct(de(i)),v=a||await lr(128),c=Ct(de(v)),T=qt(c,!1),mt=JSON.stringify(s),k=Cr(mt),vt=await Yi(c,p,k),It=qt(vt,!1),Mt=rr(vt,c),_t=await cr(p,Mt),yt=qt(_t,!1);return{data:It,hmac:yt,iv:T}}async function en(s,i){const a=Ct(de(i));if(!a)throw new Error("Missing key: required for decryption");if(!await dr(s,a))return null;const v=At(s.data),c=At(s.iv),T=await Xi(c,a,v),mt=qr(T);let k;try{k=JSON.parse(mt)}catch{return null}return k}const rn=Object.freeze(Object.defineProperty({__proto__:null,decrypt:en,encrypt:tn,generateKey:lr,verifyHmac:dr},Symbol.toStringTag,{value:"Module"}));class an extends Pi{constructor(i,a){super({cryptoLib:rn,connectorOpts:i,pushServerOpts:a})}}export{an as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-368abf3a.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-368abf3a.js.meta deleted file mode 100644 index c5f88d864..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-368abf3a.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 55ac24832096ee14eb7e8220d132335b -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-581511fd.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-581511fd.js deleted file mode 100644 index be6991961..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-581511fd.js +++ /dev/null @@ -1 +0,0 @@ -import{X as C,Y as A,$ as y,a0 as d,a1 as h,a2 as k,a3 as D,a4 as L,a5 as N,a6 as P,a7 as B,a8 as S,a9 as H,aa as K,ab as w,ac as Q,ad as G,ae as J,af as O,ag as Y,ah as X,ai as W,aj as V}from"./index-b28afd98.js";import{al as Ue,aq as De,am as Pe,an as Be,ar as He,as as Ke,ay as Qe,ax as Ge,az as Je,aA as Ye,at as Xe,ap as $e,au as Ze,av as _e,aB as ea,aC as aa,aD as ta,aE as na,ak as ra,ao as ia,aF as sa,aw as ua,aG as oa,aH as ca,aI as la,aJ as fa,aK as ma,aL as da,aM as ha}from"./index-b28afd98.js";import{A as $,a as Z,c as _,n as ee}from"./zipWith-29b37a07.js";import{d as pa,C as ga,e as Aa,N as ba,b as ya,S as wa,T as Fa,j as Ia,k as xa,l as Ea,m as qa,p as Ta,q as Sa,s as ka,u as Oa,v as Wa,f as Ma,w as Ca,x as La,y as Na,B as Va,D as ja,E as za,F as Ra,G as Ua,H as Da,I as Pa,J as Ba,K as Ha,L as Ka,M as Qa,O as Ga,P as Ja,Q as Ya,R as Xa,U as $a,V as Za,W as _a,X as et,Y as at,Z as tt,a4 as nt,_ as rt,$ as it,i as st,a0 as ut,a1 as ot,a2 as ct,a3 as lt,a5 as ft,a6 as mt,a7 as dt,a8 as ht,a9 as vt,o as pt,g as gt,aa as At,ab as bt,ac as yt,ad as wt,ae as Ft,af as It,r as xt,ag as Et,ah as qt,am as Tt,ai as St,aj as kt,ak as Ot,al as Wt,an as Mt,ao as Ct,ap as Lt,aq as Nt,ar as Vt,as as jt,at as zt,au as Rt,av as Ut,aw as Dt,ax as Pt,ay as Bt,az as Ht,aA as Kt,aB as Qt,aC as Gt,t as Jt,aD as Yt,aE as Xt,aF as $t,aG as Zt,h as _t,aH as en,aI as an,aJ as tn,aK as nn,aL as rn,aM as sn,aN as un,z as on,aO as cn,aP as ln}from"./zipWith-29b37a07.js";import{A as x,a as E}from"./skip-2d52d7ac.js";import{S as mn,b as dn,c as hn,d as vn,s as pn}from"./skip-2d52d7ac.js";import{m as An}from"./merge-7af99d5f.js";var j={now:function(){return(j.delegate||performance).now()},delegate:void 0},p={schedule:function(n){var t=requestAnimationFrame,e=cancelAnimationFrame,r=p.delegate;r&&(t=r.requestAnimationFrame,e=r.cancelAnimationFrame);var a=t(function(i){e=void 0,n(i)});return new C(function(){return e==null?void 0:e(a)})},requestAnimationFrame:function(){for(var n=[],t=0;t0?n.prototype.requestAsyncId.call(this,e,r,a):(e.actions.push(this),e._scheduled||(e._scheduled=F.setImmediate(e.flush.bind(e,void 0))))},t.prototype.recycleAsyncId=function(e,r,a){var i;if(a===void 0&&(a=0),a!=null?a>0:this.delay>0)return n.prototype.recycleAsyncId.call(this,e,r,a);var s=e.actions;r!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==r&&(F.clearImmediate(r),e._scheduled=void 0)},t}(x),se=function(n){h(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.flush=function(e){this._active=!0;var r=this._scheduled;this._scheduled=void 0;var a=this.actions,i;e=e||a.shift();do if(i=e.execute(e.state,e.delay))break;while((e=a[0])&&e.id===r&&a.shift());if(this._active=!1,i){for(;(e=a[0])&&e.id===r&&a.shift();)e.unsubscribe();throw i}},t}(E),ue=new se(ie),we=ue,oe=function(n){h(t,n);function t(e,r){var a=n.call(this,e,r)||this;return a.scheduler=e,a.work=r,a}return t.prototype.schedule=function(e,r){return r===void 0&&(r=0),r>0?n.prototype.schedule.call(this,e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)},t.prototype.execute=function(e,r){return r>0||this.closed?n.prototype.execute.call(this,e,r):this._execute(e,r)},t.prototype.requestAsyncId=function(e,r,a){return a===void 0&&(a=0),a!=null&&a>0||a==null&&this.delay>0?n.prototype.requestAsyncId.call(this,e,r,a):(e.flush(this),0)},t}(x),ce=function(n){h(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t}(E),le=new ce(oe),Fe=le,fe=function(n){h(t,n);function t(e,r){var a=n.call(this,e,r)||this;return a.scheduler=e,a.work=r,a}return t.prototype.requestAsyncId=function(e,r,a){return a===void 0&&(a=0),a!==null&&a>0?n.prototype.requestAsyncId.call(this,e,r,a):(e.actions.push(this),e._scheduled||(e._scheduled=p.requestAnimationFrame(function(){return e.flush(void 0)})))},t.prototype.recycleAsyncId=function(e,r,a){var i;if(a===void 0&&(a=0),a!=null?a>0:this.delay>0)return n.prototype.recycleAsyncId.call(this,e,r,a);var s=e.actions;r!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==r&&(p.cancelAnimationFrame(r),e._scheduled=void 0)},t}(x),me=function(n){h(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.flush=function(e){this._active=!0;var r=this._scheduled;this._scheduled=void 0;var a=this.actions,i;e=e||a.shift();do if(i=e.execute(e.state,e.delay))break;while((e=a[0])&&e.id===r&&a.shift());if(this._active=!1,i){for(;(e=a[0])&&e.id===r&&a.shift();)e.unsubscribe();throw i}},t}(E),de=new me(fe),Ie=de,xe=function(n){h(t,n);function t(e,r){e===void 0&&(e=he),r===void 0&&(r=1/0);var a=n.call(this,e,function(){return a.frame})||this;return a.maxFrames=r,a.frame=0,a.index=-1,a}return t.prototype.flush=function(){for(var e=this,r=e.actions,a=e.maxFrames,i,s;(s=r[0])&&s.delay<=a&&(r.shift(),this.frame=s.delay,!(i=s.execute(s.state,s.delay))););if(i){for(;s=r.shift();)s.unsubscribe();throw i}},t.frameTimeFactor=10,t}(E),he=function(n){h(t,n);function t(e,r,a){a===void 0&&(a=e.index+=1);var i=n.call(this,e,r)||this;return i.scheduler=e,i.work=r,i.index=a,i.active=!0,i.index=e.index=a,i}return t.prototype.schedule=function(e,r){if(r===void 0&&(r=0),Number.isFinite(r)){if(!this.id)return n.prototype.schedule.call(this,e,r);this.active=!1;var a=new t(this.scheduler,this.work);return this.add(a),a.schedule(e,r)}else return C.EMPTY},t.prototype.requestAsyncId=function(e,r,a){a===void 0&&(a=0),this.delay=e.frame+a;var i=e.actions;return i.push(this),i.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(e,r,a){},t.prototype._execute=function(e,r){if(this.active===!0)return n.prototype._execute.call(this,e,r)},t.sortActions=function(e,r){return e.delay===r.delay?e.index===r.index?0:e.index>r.index?1:-1:e.delay>r.delay?1:-1},t}(x);function Ee(n){return!!n&&(n instanceof d||k(n.lift)&&k(n.subscribe))}function qe(n,t){var e=typeof t=="object";return new Promise(function(r,a){var i=!1,s;n.subscribe({next:function(u){s=u,i=!0},error:a,complete:function(){i?r(s):e?r(t.defaultValue):a(new D)}})})}function I(n,t,e,r){if(e)if(L(e))r=e;else return function(){for(var a=[],i=0;ie in t?iT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var xe=(t,e,r)=>(sT(t,typeof e!="symbol"?e+"":e,r),r),Zy=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var te=(t,e,r)=>(Zy(t,e,"read from private field"),r?r.call(t):e.get(t)),Fe=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},le=(t,e,r,n)=>(Zy(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),a0=(t,e,r,n)=>({set _(s){le(t,e,s,r)},get _(){return te(t,e,n)}}),ct=(t,e,r)=>(Zy(t,e,"access private method"),r);function aT(t,e){for(var r=0;rn[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=r(s);fetch(s.href,i)}})();var ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oT(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function fT(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){if(this instanceof n){var s=[null];s.push.apply(s,arguments);var i=Function.bind.apply(e,s);return new i}return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return t[n]}})}),r}var gg={},lT={get exports(){return gg},set exports(t){gg=t}};(function(t,e){var r=200,n="Expected a function",s="__lodash_hash_undefined__",i=1,o=2,f=1/0,u=9007199254740991,h="[object Arguments]",p="[object Array]",d="[object Boolean]",v="[object Date]",w="[object Error]",A="[object Function]",M="[object GeneratorFunction]",R="[object Map]",N="[object Number]",C="[object Object]",B="[object Promise]",O="[object RegExp]",D="[object Set]",q="[object String]",W="[object Symbol]",k="[object WeakMap]",I="[object ArrayBuffer]",H="[object DataView]",P="[object Float32Array]",T="[object Float64Array]",g="[object Int8Array]",a="[object Int16Array]",c="[object Int32Array]",m="[object Uint8Array]",b="[object Uint8ClampedArray]",x="[object Uint16Array]",_="[object Uint32Array]",S=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,y=/^\w*$/,l=/^\./,E=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,L=/\\(\\)?/g,F=/^\[object .+?Constructor\]$/,V=/^(?:0|[1-9]\d*)$/,Z={};Z[P]=Z[T]=Z[g]=Z[a]=Z[c]=Z[m]=Z[b]=Z[x]=Z[_]=!0,Z[h]=Z[p]=Z[I]=Z[d]=Z[H]=Z[v]=Z[w]=Z[A]=Z[R]=Z[N]=Z[C]=Z[O]=Z[D]=Z[q]=Z[k]=!1;var ee=typeof ue=="object"&&ue&&ue.Object===Object&&ue,ce=typeof self=="object"&&self&&self.Object===Object&&self,U=ee||ce||Function("return this")(),j=e&&!e.nodeType&&e,se=j&&!0&&t&&!t.nodeType&&t,re=se&&se.exports===j,oe=re&&ee.process,Q=function(){try{return oe&&oe.binding("util")}catch{}}(),z=Q&&Q.isTypedArray;function G(K,J){var fe=K?K.length:0;return!!fe&&Me(K,J,0)>-1}function X(K,J,fe){for(var Ae=-1,Qe=K?K.length:0;++Ae-1}function Dr(K,J){var fe=this.__data__,Ae=jo(fe,K);return Ae<0?fe.push([K,J]):fe[Ae][1]=J,this}Gt.prototype.clear=Vt,Gt.prototype.delete=Lr,Gt.prototype.get=Zr,Gt.prototype.has=Ir,Gt.prototype.set=Dr;function ar(K){var J=-1,fe=K?K.length:0;for(this.clear();++J=r){var fr=J?null:Hf(K);if(fr)return qe(fr);yt=!1,Qe=me,Lt=new Mr}else Lt=J?[]:Et;e:for(;++AeEt))return!1;var fr=tt.get(K);if(fr&&tt.get(J))return fr==J;var tr=-1,Jt=!0,Sr=Qe&i?new Mr:void 0;for(tt.set(K,J),tt.set(J,K);++tr-1&&K%1==0&&K-1&&K%1==0&&K<=u}function vn(K){var J=typeof K;return!!K&&(J=="object"||J=="function")}function ji(K){return!!K&&typeof K=="object"}function Aa(K){return typeof K=="symbol"||ji(K)&&Nt.call(K)==W}var $l=z?we(z):e0;function vu(K){return K==null?"":uu(K)}function qy(K,J,fe){var Ae=K==null?void 0:zo(K,J);return Ae===void 0?fe:Ae}function Gy(K,J){return K!=null&&va(K,J,Vl)}function jf(K){return Fr(K)?Xd(K):t0(K)}function Vy(K){return K}function Wy(){}function $(K){return ba(K)?pe(wa(K)):Zl(K)}t.exports=he})(lT,gg);const cT=gg;var wt;(function(t){t.AlphaWallet="isAlphaWallet",t.ApexWallet="isApexWallet",t.AToken="isAToken",t.BifrostWallet="isBifrost",t.Binance="bbcSignTx",t.Bitpie="isBitpie",t.BlockWallet="isBlockWallet",t.Coinbase="isToshi",t.CoinbaseExtension="isCoinbaseWallet",t.Detected="request",t.Dcent="isDcentWallet",t.Exodus="isExodus",t.Frontier="isFrontier",t.Frame="isFrame",t.HuobiWallet="isHbWallet",t.HyperPay="isHyperPay",t.ImToken="isImToken",t.Liquality="isLiquality",t.MeetOne="wallet",t.MetaMask="isMetaMask",t.MyKey="isMYKEY",t.OwnBit="isOwnbit",t.Status="isStatus",t.Trust="isTrust",t.TokenPocket="isTokenPocket",t.TP="isTp",t.WalletIo="isWalletIO",t.XDEFI="isXDEFI",t.OneInch="isOneInchIOSWallet",t.Tokenary="isTokenary",t.Tally="isTally",t.BraveWallet="isBraveWallet",t.Rabby="isRabby",t.MathWallet="isMathWallet",t.GameStop="isGamestop",t.BitKeep="isBitKeep",t.Sequence="isSequence",t.Core="isAvalanche",t.Opera="isOpera",t.Bitski="isBitski",t.Enkrypt="isEnkrypt",t.Phantom="isPhantom",t.OKXWallet="isOkxWallet",t.Zeal="isZeal",t.Zerion="isZerion",t.Rainbow="isRainbow",t.SafePal="isSafePal",t.DeFiWallet="isDeficonnectProvider"})(wt||(wt={}));var Ft;(function(t){t.AlphaWallet="AlphaWallet",t.ApexWallet="Apex Wallet",t.AToken="AToken",t.BifrostWallet="Bifrost Wallet",t.Binance="Binance Smart Wallet",t.Bitpie="Bitpie",t.Bitski="Bitski",t.BlockWallet="BlockWallet",t.Brave="Brave Wallet",t.Coinbase="Coinbase Wallet",t.Dcent="D'CENT",t.Detected="Detected Wallet",t.Exodus="Exodus",t.Frame="Frame",t.Frontier="Frontier",t.HuobiWallet="Huobi Wallet",t.HyperPay="HyperPay",t.ImToken="imToken",t.Liquality="Liquality",t.MeetOne="MeetOne",t.MetaMask="MetaMask",t.MyKey="MyKey",t.Opera="Opera Wallet",t.OwnBit="OwnBit",t.Status="Status Wallet",t.Trust="Trust Wallet",t.TokenPocket="TokenPocket",t.TP="TP Wallet",t.WalletIo="Wallet.io",t.XDEFI="XDEFI Wallet",t.OneInch="1inch Wallet",t.Tokenary="Tokenary Wallet",t.Tally="Tally Ho Wallet",t.Rabby="Rabby",t.MathWallet="MathWallet",t.GameStop="GameStop Wallet",t.BitKeep="BitKeep",t.Sequence="Sequence",t.Core="Core",t.Enkrypt="Enkrypt",t.Zeal="Zeal",t.Phantom="Phantom",t.OKXWallet="OKX Wallet",t.Zerion="Zerion",t.Rainbow="Rainbow",t.SafePal="SafePal",t.DeFiWallet="DeFi Wallet"})(Ft||(Ft={}));var Tt;(function(t){t.Ethereum="ethereum",t.Binance="BinanceChain",t.Tally="tally",t.Web3="web3",t.Arbitrum="arbitrum",t.XFI="xfi",t.GameStop="gamestop",t.BitKeep="bitkeep",t.Avalanche="avalanche",t.Bitski="Bitski",t.Enkrypt="enkrypt",t.Zeal="zeal",t.Phantom="phantom",t.OKXWallet="okxwallet",t.Trust="trustwallet",t.Frontier="frontier",t.DeFiConnectProvider="deficonnectProvider"})(Tt||(Tt={}));const uT="modulepreload",hT=function(t){return"/"+t},G6={},vt=function(e,r,n){if(!r||r.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=hT(i),i in G6)return;G6[i]=!0;const o=i.endsWith(".css"),f=o?'[rel="stylesheet"]':"";if(!!n)for(let p=s.length-1;p>=0;p--){const d=s[p];if(d.href===i&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${f}`))return;const h=document.createElement("link");if(h.rel=o?"stylesheet":uT,o||(h.as="script",h.crossOrigin=""),h.href=i,document.head.appendChild(h),o)return new Promise((p,d)=>{h.addEventListener("load",p),h.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e())};class V6 extends Error{constructor(e){super(e.message),this.message=e.message,this.code=e.code,this.data=e.data}}const Sn=(t,e)=>{let r;t.request?r=t.request.bind(t):t.sendAsync&&(r=dT(t));const n=async({method:s,params:i})=>{const o=s;if(e&&e[o]===null)throw new V6({code:4200,message:`The Provider does not support the requested method: ${s}`});if(e&&e[o])return e[o]({baseRequest:r,params:i});if(r)return r({method:s,params:i});throw new V6({code:4200,message:`The Provider does not support the requested method: ${s}`})};return t.request=n,t},dT=t=>({method:e,params:r})=>new Promise((n,s)=>{t.sendAsync({id:0,jsonrpc:"2.0",method:e,params:r},(i,{result:o})=>{i?s(JSON.parse(i)):n(o??null)})}),pT=` - @font-face { - font-family: Sofia Pro; - src: url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAFbUABIAAAAA28AAAFZqAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4b7SYcgkoGYACDUgg2CYRlEQgKgpdEgfoIC4NUAAE2AiQDhyQEIAWPYAeFWwyCEhvxyTXKtl0syu0AplAVp1Gg3HbB7YxWdMzmzQwEGwfAtvaPEPz/n5MbY2ANetX9sSAyZBKsrELeGkhyjYkiL2EkJQ/LkTfKpaa8SkmPwsIQKzIUDjVbsRWJbpMGbZweE2qwfRy4t2lHut5qH3i9SW1TXb9fc5mS/swobVZC+qA4eR02jGzTG52mJxD+DKzuq8DY5TGiVnLqPaJ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O762jIDXPnpdCVuem6Nnz7gKkAPApOyLJDC37hPEU4q2yhAlhzKeweiwmc6MkSu37g3hMQCy19QuCeiqxnmnKvx+radqN2bQbv5xZ2E2zH7Cf5og0YJp3xenUcLxt9G9uBQAAAA==) format('woff2'), - url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAHKMABIAAAAA29AAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABlAAAABwAAAAck0vpJ0dERUYAAAGwAAAAHQAAAB4AJwDvR1BPUwAAAdAAABP8AAA2posvkE9HU1VCAAAVzAAAAJ4AAAFKPulXcU9TLzIAABZsAAAAVAAAAGB2/AxYY21hcAAAFsAAAAGCAAAB0t+lPQ5jdnQgAAAYRAAAADYAAAA2ElgLwmZwZ20AABh8AAABsQAAAmVTtC+nZ2FzcAAAGjAAAAAIAAAACAAAABBnbHlmAAAaOAAATf8AAIvUKDpXxWhlYWQAAGg4AAAANgAAADYf2MQaaGhlYQAAaHAAAAAgAAAAJBIGB2NobXR4AABokAAAAnAAAAOk3kRVlmxvY2EAAGsAAAABzAAAAdQIwCxobWF4cAAAbMwAAAAgAAAAIAIGAaFuYW1lAABs7AAAAwMAAAfgBL7SkHBvc3QAAG/wAAAB6QAAAtuLb3wdcHJlcAAAcdwAAACvAAABEhbSPVUAAAABAAAAANqHb48AAAAA2xZRUwAAAADdrihEeNpjYGRgYOABYjEgZmJgBMIXQMwC5jEAAA2WARcAAAB42s2bDWxUV3aAz3tvfjy2xza2wQ4Gwm8C+SM0gYQ4gQixUTZLUppNKX/Nugm7Qs1uSEgjitK0yma7hM1mNylVxGYp61iI0oh1jIsiShFdSpHFIkqRC4NjuV5qWa4ry7KQhaKq8u13z3szfvNjYwOtOkdvfOe++3P+7rnn3HssjogUyyp5XrzVT615Qapf3rn9uzL7u3/wR6/KfRLhrRgjttVYZeeVb29/VYooufYX3zGp5ruIVvc4W6PX43+sv0qSeyu3z2m69/JDKx5e/fC+h/9taWzp5WW14jjTdLxKeUCel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UZYqy5T/9nlMNbVX0+y+oD8cqq2pbgqYLd0wdRuWqnCooS24jYpWDa95R0Rd6VS6/gJmYZwNAAAAeNpFzL0OgjAQwPGelYLIp2HRxATj2FfQxQgLi3Giib6Gqy4OmujkgxxOxmfyHfCEUrf7tf+7F9RnhBsr0NmUFcBdVbmQ5QwjVWCypeGkpijkrmTI0wy5XKNIszfjwFhPNrbS7CkuGn2CtdKw23LelQ592g+NAcGZtAB09XH/t+JCQCsVzw/04lHnXw2HRG9pGDT9sf73IQXBxzAihnvDmBgtDEfEeNxRYSK/YpNMRgA=) format('woff'), - url('sofiapro-regular.ttf') format('truetype'); - font-weight: normal; - font-style: normal; - - } -`,Tie=` - @font-face { - font-family: 'Sofia Pro Light'; - src: url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAFXAABIAAAAA25gAAFVWAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4b7VgcgkoGYACDUgg8CYRlEQgKgpU4gfVUC4NUAAE2AiQDhyQEIAWQHAeFWwyDBRukyAfQ26YTnCcctrpXH8todiB2O+J9WWPnR0UF6RLZ//8JSceQDbANxavZAz2CngQ5KQh9IG31iTTPqoVuVBjcVIpUP+mOsOiSHnFcegPJwHdM8N70cme6yfBhTCxocBgZ8tfgeaHI4GJ0NNLnLivGrqht6KctumozTb0yBP/6piPIMh8+BzIvaAoTVey7r47ll+nXXZiWjhxCchRQwzLbnu3+w7f9IjBu4aPm1EsQ2QFV3dOze6Yi2OmFkCOnlwHIGOo5P09z+v6/f6K5XC6CxxANYkFKKkadKrI2FYOaUadmEmRGRYS1nnV0Yv4/9/OXNqAASpFIzALZGeDORDeC/J03XlYAXM1lp7JG7fhHUGXWx9nAATaVjgZomyGIvZkLM8CcjYmJgYE6RUUBBRWUEDGwTj1Q7JmF2LGpK2vlyli67dcf7UfuZ64vQRAB5XgKfnXOw51h97E5qMo0XerU2a6/+1/UOaxylnYA+ArAmT+r//i/Xupc76/0Mle61wcZRNwmg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BdbjOMHvWXQo1gXhUMQm2rUCUYQqFCqM4VmtkPtHH+YEu6CcPcbRq3gj8AO+osS646FUarVI+PVLqyWNmhqtjZ5vQtiyOLrY3K4sriwL4sniwu2GXx6QLvXTAg+oeCPWKwKdgn9uKCA2LfzynQ4z9bvWkbAAAA) format('woff'), - url('sofiapro-light.ttf') format('truetype'); - font-weight: normal; - font-style: normal; - - } -`,kie=` - @font-face { - font-family: 'Sofia Pro Semibold'; - src: url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAFi0ABIAAAAA3BQAAFhNAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4b7WIcgkoGYACDUgg4CYRlEQgKgpZ4gfhlC4NUAAE2AiQDhyIEIAWQQAeFWwyCFRvtyTXKtl0sCnQHCB77K0UymW7ulNs5tWdvtmtmINg4ABC3epH9/5+TkzFkswObaeVzSjAIylXs2Y1u3nDBuJdDrb1XNXFPtEspn1remFCcYSolU+LNOOZgKS/2upjM1Mq6lCmUYbH6xWc8hMYaHLm5FQoe3plGCivj7334rFSMVXIkCEbmLy/7cPqvcAq0M0uRPjyBeYUurGCfGpv8g5g44SFP0gnBjNcvAhuXMbJOkteH5+f0z5VnkpcXwzyYp4GSz2h/1ZDS1KlKtj9Rh5kQWSbqyJwv4hBf7f1fz+zsJTvKPycgO1TKjkKG5AxCgXMYneTn8Pz/r8F+v5k7g2jyFKiaSZ7FE9U9e1NJLCoRX10lEeH/MwBzcwwGbRSt0CKRMuiNAdtYUoOxhA1GjhWxQY8epcMkFZTjlSyljUa0CQMMRBRtxP9dy9LKWsJfRMhOZncykHCBhayQteU7R8KQPH3CHD9/8+rsS7IILFuSERIHBn7yZ3YPgIqyu3ddd9zuzJ997e7Vz2N/j/d5rbS5Uvq2Vqe87SKDuH3wNRFERAYREQkhSBAJEoQQvBDkIXL7fzr1ruX7VgFgGAHh4DkKwZh2dDXFCuBYpAm3AOGBZAdhGOOXy9e90qTu+/pdbm1dEySWBiDYS2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e6R8edcdOyYTRIsxGCZIpODZYZMteUImeV/GsjVG9XvTuQAAAA=) format('woff'), - url('sofiapro-semibold.ttf') format('truetype'); - font-weight: normal; - font-style: normal; - - } -`;var mT=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Yy=Math.ceil,io=Math.floor,ss="[BigNumber Error] ",W6=ss+"Number primitive has more than 15 significant digits: ",xa=1e14,Kt=14,Qy=9007199254740991,Xy=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],zf=1e7,ii=1e9;function x9(t){var e,r,n,s=C.prototype={constructor:C,toString:null,valueOf:null},i=new C(1),o=20,f=4,u=-7,h=21,p=-1e7,d=1e7,v=!1,w=1,A=0,M={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},R="0123456789abcdefghijklmnopqrstuvwxyz",N=!0;function C(k,I){var H,P,T,g,a,c,m,b,x=this;if(!(x instanceof C))return new C(k,I);if(I==null){if(k&&k._isBigNumber===!0){x.s=k.s,!k.c||k.e>d?x.c=x.e=null:k.e=10;a/=10,g++);g>d?x.c=x.e=null:(x.e=g,x.c=[k]);return}b=String(k)}else{if(!mT.test(b=String(k)))return n(x,b,c);x.s=b.charCodeAt(0)==45?(b=b.slice(1),-1):1}(g=b.indexOf("."))>-1&&(b=b.replace(".","")),(a=b.search(/e/i))>0?(g<0&&(g=a),g+=+b.slice(a+1),b=b.substring(0,a)):g<0&&(g=b.length)}else{if(yn(I,2,R.length,"Base"),I==10&&N)return x=new C(k),q(x,o+x.e+1,f);if(b=String(k),c=typeof k=="number"){if(k*0!=0)return n(x,b,c,I);if(x.s=1/k<0?(b=b.slice(1),-1):1,C.DEBUG&&b.replace(/^0\.0*|\./,"").length>15)throw Error(W6+k)}else x.s=b.charCodeAt(0)===45?(b=b.slice(1),-1):1;for(H=R.slice(0,I),g=a=0,m=b.length;ag){g=m;continue}}else if(!T&&(b==b.toUpperCase()&&(b=b.toLowerCase())||b==b.toLowerCase()&&(b=b.toUpperCase()))){T=!0,a=-1,g=0;continue}return n(x,String(k),c,I)}c=!1,b=r(b,I,10,x.s),(g=b.indexOf("."))>-1?b=b.replace(".",""):g=b.length}for(a=0;b.charCodeAt(a)===48;a++);for(m=b.length;b.charCodeAt(--m)===48;);if(b=b.slice(a,++m)){if(m-=a,c&&C.DEBUG&&m>15&&(k>Qy||k!==io(k)))throw Error(W6+x.s*k);if((g=g-a-1)>d)x.c=x.e=null;else if(g=-ii&&T<=ii&&T===io(T)){if(P[0]===0){if(T===0&&P.length===1)return!0;break e}if(I=(T+1)%Kt,I<1&&(I+=Kt),String(P[0]).length==I){for(I=0;I=xa||H!==io(H))break e;if(H!==0)return!0}}}else if(P===null&&T===null&&(g===null||g===1||g===-1))return!0;throw Error(ss+"Invalid BigNumber: "+k)},C.maximum=C.max=function(){return O(arguments,s.lt)},C.minimum=C.min=function(){return O(arguments,s.gt)},C.random=function(){var k=9007199254740992,I=Math.random()*k&2097151?function(){return io(Math.random()*k)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(H){var P,T,g,a,c,m=0,b=[],x=new C(i);if(H==null?H=o:yn(H,0,ii),a=Yy(H/Kt),v)if(crypto.getRandomValues){for(P=crypto.getRandomValues(new Uint32Array(a*=2));m>>11),c>=9e15?(T=crypto.getRandomValues(new Uint32Array(2)),P[m]=T[0],P[m+1]=T[1]):(b.push(c%1e14),m+=2);m=a/2}else if(crypto.randomBytes){for(P=crypto.randomBytes(a*=7);m=9e15?crypto.randomBytes(7).copy(P,m):(b.push(c%1e14),m+=7);m=a/7}else throw v=!1,Error(ss+"crypto unavailable");if(!v)for(;m=10;c/=10,m++);mT-1&&(c[a+1]==null&&(c[a+1]=0),c[a+1]+=c[a]/T|0,c[a]%=T)}return c.reverse()}return function(H,P,T,g,a){var c,m,b,x,_,S,y,l,E=H.indexOf("."),Y=o,L=f;for(E>=0&&(x=A,A=0,H=H.replace(".",""),l=new C(P),S=l.pow(H.length-E),A=x,l.c=I(Go(Ps(S.c),S.e,"0"),10,T,k),l.e=l.c.length),y=I(H,P,T,a?(c=R,k):(c=k,R)),b=x=y.length;y[--x]==0;y.pop());if(!y[0])return c.charAt(0);if(E<0?--b:(S.c=y,S.e=b,S.s=g,S=e(S,l,Y,L,T),y=S.c,_=S.r,b=S.e),m=b+Y+1,E=y[m],x=T/2,_=_||m<0||y[m+1]!=null,_=L<4?(E!=null||_)&&(L==0||L==(S.s<0?3:2)):E>x||E==x&&(L==4||_||L==6&&y[m-1]&1||L==(S.s<0?8:7)),m<1||!y[0])H=_?Go(c.charAt(1),-Y,c.charAt(0)):c.charAt(0);else{if(y.length=m,_)for(--T;++y[--m]>T;)y[m]=0,m||(++b,y=[1].concat(y));for(x=y.length;!y[--x];);for(E=0,H="";E<=x;H+=c.charAt(y[E++]));H=Go(H,b,c.charAt(0))}return H}}(),e=function(){function k(P,T,g){var a,c,m,b,x=0,_=P.length,S=T%zf,y=T/zf|0;for(P=P.slice();_--;)m=P[_]%zf,b=P[_]/zf|0,a=y*m+b*S,c=S*m+a%zf*zf+x,x=(c/g|0)+(a/zf|0)+y*b,P[_]=c%g;return x&&(P=[x].concat(P)),P}function I(P,T,g,a){var c,m;if(g!=a)m=g>a?1:-1;else for(c=m=0;cT[c]?1:-1;break}return m}function H(P,T,g,a){for(var c=0;g--;)P[g]-=c,c=P[g]1;P.splice(0,1));}return function(P,T,g,a,c){var m,b,x,_,S,y,l,E,Y,L,F,V,Z,ee,ce,U,j,se=P.s==T.s?1:-1,re=P.c,oe=T.c;if(!re||!re[0]||!oe||!oe[0])return new C(!P.s||!T.s||(re?oe&&re[0]==oe[0]:!oe)?NaN:re&&re[0]==0||!oe?se*0:se/0);for(E=new C(se),Y=E.c=[],b=P.e-T.e,se=g+b+1,c||(c=xa,b=Hs(P.e/Kt)-Hs(T.e/Kt),se=se/Kt|0),x=0;oe[x]==(re[x]||0);x++);if(oe[x]>(re[x]||0)&&b--,se<0)Y.push(1),_=!0;else{for(ee=re.length,U=oe.length,x=0,se+=2,S=io(c/(oe[0]+1)),S>1&&(oe=k(oe,S,c),re=k(re,S,c),U=oe.length,ee=re.length),Z=U,L=re.slice(0,U),F=L.length;F=c/2&&ce++;do{if(S=0,m=I(oe,L,U,F),m<0){if(V=L[0],U!=F&&(V=V*c+(L[1]||0)),S=io(V/ce),S>1)for(S>=c&&(S=c-1),y=k(oe,S,c),l=y.length,F=L.length;I(y,L,l,F)==1;)S--,H(y,U=10;se/=10,x++);q(E,g+(E.e=x+b*Kt-1)+1,a,_)}else E.e=b,E.r=+_;return E}}();function B(k,I,H,P){var T,g,a,c,m;if(H==null?H=f:yn(H,0,8),!k.c)return k.toString();if(T=k.c[0],a=k.e,I==null)m=Ps(k.c),m=P==1||P==2&&(a<=u||a>=h)?K1(m,a):Go(m,a,"0");else if(k=q(new C(k),I,H),g=k.e,m=Ps(k.c),c=m.length,P==1||P==2&&(I<=g||g<=u)){for(;cc){if(--I>0)for(m+=".";I--;m+="0");}else if(I+=g-c,I>0)for(g+1==c&&(m+=".");I--;m+="0");return k.s<0&&T?"-"+m:m}function O(k,I){for(var H,P=1,T=new C(k[0]);P=10;T/=10,P++);return(H=P+H*Kt-1)>d?k.c=k.e=null:H=10;c/=10,T++);if(g=I-T,g<0)g+=Kt,a=I,m=_[b=0],x=m/S[T-a-1]%10|0;else if(b=Yy((g+1)/Kt),b>=_.length)if(P){for(;_.length<=b;_.push(0));m=x=0,T=1,g%=Kt,a=g-Kt+1}else break e;else{for(m=c=_[b],T=1;c>=10;c/=10,T++);g%=Kt,a=g-Kt+T,x=a<0?0:m/S[T-a-1]%10|0}if(P=P||I<0||_[b+1]!=null||(a<0?m:m%S[T-a-1]),P=H<4?(x||P)&&(H==0||H==(k.s<0?3:2)):x>5||x==5&&(H==4||P||H==6&&(g>0?a>0?m/S[T-a]:0:_[b-1])%10&1||H==(k.s<0?8:7)),I<1||!_[0])return _.length=0,P?(I-=k.e+1,_[0]=S[(Kt-I%Kt)%Kt],k.e=-I||0):_[0]=k.e=0,k;if(g==0?(_.length=b,c=1,b--):(_.length=b+1,c=S[Kt-g],_[b]=a>0?io(m/S[T-a]%S[a])*c:0),P)for(;;)if(b==0){for(g=1,a=_[0];a>=10;a/=10,g++);for(a=_[0]+=c,c=1;a>=10;a/=10,c++);g!=c&&(k.e++,_[0]==xa&&(_[0]=1));break}else{if(_[b]+=c,_[b]!=xa)break;_[b--]=0,c=1}for(g=_.length;_[--g]===0;_.pop());}k.e>d?k.c=k.e=null:k.e=h?K1(I,H):Go(I,H,"0"),k.s<0?"-"+I:I)}return s.absoluteValue=s.abs=function(){var k=new C(this);return k.s<0&&(k.s=1),k},s.comparedTo=function(k,I){return yu(this,new C(k,I))},s.decimalPlaces=s.dp=function(k,I){var H,P,T,g=this;if(k!=null)return yn(k,0,ii),I==null?I=f:yn(I,0,8),q(new C(g),k+g.e+1,I);if(!(H=g.c))return null;if(P=((T=H.length-1)-Hs(this.e/Kt))*Kt,T=H[T])for(;T%10==0;T/=10,P--);return P<0&&(P=0),P},s.dividedBy=s.div=function(k,I){return e(this,new C(k,I),o,f)},s.dividedToIntegerBy=s.idiv=function(k,I){return e(this,new C(k,I),0,1)},s.exponentiatedBy=s.pow=function(k,I){var H,P,T,g,a,c,m,b,x,_=this;if(k=new C(k),k.c&&!k.isInteger())throw Error(ss+"Exponent not an integer: "+W(k));if(I!=null&&(I=new C(I)),c=k.e>14,!_.c||!_.c[0]||_.c[0]==1&&!_.e&&_.c.length==1||!k.c||!k.c[0])return x=new C(Math.pow(+W(_),c?k.s*(2-z1(k)):+W(k))),I?x.mod(I):x;if(m=k.s<0,I){if(I.c?!I.c[0]:!I.s)return new C(NaN);P=!m&&_.isInteger()&&I.isInteger(),P&&(_=_.mod(I))}else{if(k.e>9&&(_.e>0||_.e<-1||(_.e==0?_.c[0]>1||c&&_.c[1]>=24e7:_.c[0]<8e13||c&&_.c[0]<=9999975e7)))return g=_.s<0&&z1(k)?-0:0,_.e>-1&&(g=1/g),new C(m?1/g:g);A&&(g=Yy(A/Kt+2))}for(c?(H=new C(.5),m&&(k.s=1),b=z1(k)):(T=Math.abs(+W(k)),b=T%2),x=new C(i);;){if(b){if(x=x.times(_),!x.c)break;g?x.c.length>g&&(x.c.length=g):P&&(x=x.mod(I))}if(T){if(T=io(T/2),T===0)break;b=T%2}else if(k=k.times(H),q(k,k.e+1,1),k.e>14)b=z1(k);else{if(T=+W(k),T===0)break;b=T%2}_=_.times(_),g?_.c&&_.c.length>g&&(_.c.length=g):P&&(_=_.mod(I))}return P?x:(m&&(x=i.div(x)),I?x.mod(I):g?q(x,A,f,a):x)},s.integerValue=function(k){var I=new C(this);return k==null?k=f:yn(k,0,8),q(I,I.e+1,k)},s.isEqualTo=s.eq=function(k,I){return yu(this,new C(k,I))===0},s.isFinite=function(){return!!this.c},s.isGreaterThan=s.gt=function(k,I){return yu(this,new C(k,I))>0},s.isGreaterThanOrEqualTo=s.gte=function(k,I){return(I=yu(this,new C(k,I)))===1||I===0},s.isInteger=function(){return!!this.c&&Hs(this.e/Kt)>this.c.length-2},s.isLessThan=s.lt=function(k,I){return yu(this,new C(k,I))<0},s.isLessThanOrEqualTo=s.lte=function(k,I){return(I=yu(this,new C(k,I)))===-1||I===0},s.isNaN=function(){return!this.s},s.isNegative=function(){return this.s<0},s.isPositive=function(){return this.s>0},s.isZero=function(){return!!this.c&&this.c[0]==0},s.minus=function(k,I){var H,P,T,g,a=this,c=a.s;if(k=new C(k,I),I=k.s,!c||!I)return new C(NaN);if(c!=I)return k.s=-I,a.plus(k);var m=a.e/Kt,b=k.e/Kt,x=a.c,_=k.c;if(!m||!b){if(!x||!_)return x?(k.s=-I,k):new C(_?a:NaN);if(!x[0]||!_[0])return _[0]?(k.s=-I,k):new C(x[0]?a:f==3?-0:0)}if(m=Hs(m),b=Hs(b),x=x.slice(),c=m-b){for((g=c<0)?(c=-c,T=x):(b=m,T=_),T.reverse(),I=c;I--;T.push(0));T.reverse()}else for(P=(g=(c=x.length)<(I=_.length))?c:I,c=I=0;I0)for(;I--;x[H++]=0);for(I=xa-1;P>c;){if(x[--P]<_[P]){for(H=P;H&&!x[--H];x[H]=I);--x[H],x[P]+=xa}x[P]-=_[P]}for(;x[0]==0;x.splice(0,1),--b);return x[0]?D(k,x,b):(k.s=f==3?-1:1,k.c=[k.e=0],k)},s.modulo=s.mod=function(k,I){var H,P,T=this;return k=new C(k,I),!T.c||!k.s||k.c&&!k.c[0]?new C(NaN):!k.c||T.c&&!T.c[0]?new C(T):(w==9?(P=k.s,k.s=1,H=e(T,k,0,3),k.s=P,H.s*=P):H=e(T,k,0,w),k=T.minus(H.times(k)),!k.c[0]&&w==1&&(k.s=T.s),k)},s.multipliedBy=s.times=function(k,I){var H,P,T,g,a,c,m,b,x,_,S,y,l,E,Y,L=this,F=L.c,V=(k=new C(k,I)).c;if(!F||!V||!F[0]||!V[0])return!L.s||!k.s||F&&!F[0]&&!V||V&&!V[0]&&!F?k.c=k.e=k.s=null:(k.s*=L.s,!F||!V?k.c=k.e=null:(k.c=[0],k.e=0)),k;for(P=Hs(L.e/Kt)+Hs(k.e/Kt),k.s*=L.s,m=F.length,_=V.length,m<_&&(l=F,F=V,V=l,T=m,m=_,_=T),T=m+_,l=[];T--;l.push(0));for(E=xa,Y=zf,T=_;--T>=0;){for(H=0,S=V[T]%Y,y=V[T]/Y|0,a=m,g=T+a;g>T;)b=F[--a]%Y,x=F[a]/Y|0,c=y*b+x*S,b=S*b+c%Y*Y+l[g]+H,H=(b/E|0)+(c/Y|0)+y*x,l[g--]=b%E;l[g]=H}return H?++P:l.splice(0,1),D(k,l,P)},s.negated=function(){var k=new C(this);return k.s=-k.s||null,k},s.plus=function(k,I){var H,P=this,T=P.s;if(k=new C(k,I),I=k.s,!T||!I)return new C(NaN);if(T!=I)return k.s=-I,P.minus(k);var g=P.e/Kt,a=k.e/Kt,c=P.c,m=k.c;if(!g||!a){if(!c||!m)return new C(T/0);if(!c[0]||!m[0])return m[0]?k:new C(c[0]?P:T*0)}if(g=Hs(g),a=Hs(a),c=c.slice(),T=g-a){for(T>0?(a=g,H=m):(T=-T,H=c),H.reverse();T--;H.push(0));H.reverse()}for(T=c.length,I=m.length,T-I<0&&(H=m,m=c,c=H,I=T),T=0;I;)T=(c[--I]=c[I]+m[I]+T)/xa|0,c[I]=xa===c[I]?0:c[I]%xa;return T&&(c=[T].concat(c),++a),D(k,c,a)},s.precision=s.sd=function(k,I){var H,P,T,g=this;if(k!=null&&k!==!!k)return yn(k,1,ii),I==null?I=f:yn(I,0,8),q(new C(g),k,I);if(!(H=g.c))return null;if(T=H.length-1,P=T*Kt+1,T=H[T]){for(;T%10==0;T/=10,P--);for(T=H[0];T>=10;T/=10,P++);}return k&&g.e+1>P&&(P=g.e+1),P},s.shiftedBy=function(k){return yn(k,-Qy,Qy),this.times("1e"+k)},s.squareRoot=s.sqrt=function(){var k,I,H,P,T,g=this,a=g.c,c=g.s,m=g.e,b=o+4,x=new C("0.5");if(c!==1||!a||!a[0])return new C(!c||c<0&&(!a||a[0])?NaN:a?g:1/0);if(c=Math.sqrt(+W(g)),c==0||c==1/0?(I=Ps(a),(I.length+m)%2==0&&(I+="0"),c=Math.sqrt(+I),m=Hs((m+1)/2)-(m<0||m%2),c==1/0?I="5e"+m:(I=c.toExponential(),I=I.slice(0,I.indexOf("e")+1)+m),H=new C(I)):H=new C(c+""),H.c[0]){for(m=H.e,c=m+b,c<3&&(c=0);;)if(T=H,H=x.times(T.plus(e(g,T,b,1))),Ps(T.c).slice(0,c)===(I=Ps(H.c)).slice(0,c))if(H.e0&&l>0){for(g=l%c||c,x=y.substr(0,g);g0&&(x+=b+y.slice(g)),S&&(x="-"+x)}P=_?x+(H.decimalSeparator||"")+((m=+H.fractionGroupSize)?_.replace(new RegExp("\\d{"+m+"}\\B","g"),"$&"+(H.fractionGroupSeparator||"")):_):x}return(H.prefix||"")+P+(H.suffix||"")},s.toFraction=function(k){var I,H,P,T,g,a,c,m,b,x,_,S,y=this,l=y.c;if(k!=null&&(c=new C(k),!c.isInteger()&&(c.c||c.s!==1)||c.lt(i)))throw Error(ss+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+W(c));if(!l)return new C(y);for(I=new C(i),b=H=new C(i),P=m=new C(i),S=Ps(l),g=I.e=S.length-y.e-1,I.c[0]=Xy[(a=g%Kt)<0?Kt+a:a],k=!k||c.comparedTo(I)>0?g>0?I:b:c,a=d,d=1/0,c=new C(S),m.c[0]=0;x=e(c,I,0,1),T=H.plus(x.times(P)),T.comparedTo(k)!=1;)H=P,P=T,b=m.plus(x.times(T=b)),m=T,I=c.minus(x.times(T=I)),c=T;return T=e(k.minus(H),P,0,1),m=m.plus(T.times(b)),H=H.plus(T.times(P)),m.s=b.s=y.s,g=g*2,_=e(b,P,g,f).minus(y).abs().comparedTo(e(m,H,g,f).minus(y).abs())<1?[b,P]:[m,H],d=a,_},s.toNumber=function(){return+W(this)},s.toPrecision=function(k,I){return k!=null&&yn(k,1,ii),B(this,k,I,2)},s.toString=function(k){var I,H=this,P=H.s,T=H.e;return T===null?P?(I="Infinity",P<0&&(I="-"+I)):I="NaN":(k==null?I=T<=u||T>=h?K1(Ps(H.c),T):Go(Ps(H.c),T,"0"):k===10&&N?(H=q(new C(H),o+T+1,f),I=Go(Ps(H.c),H.e,"0")):(yn(k,2,R.length,"Base"),I=r(Go(Ps(H.c),T,"0"),10,k,P,!0)),P<0&&H.c[0]&&(I="-"+I)),I},s.valueOf=s.toJSON=function(){return W(this)},s._isBigNumber=!0,s[Symbol.toStringTag]="BigNumber",s[Symbol.for("nodejs.util.inspect.custom")]=s.valueOf,t!=null&&C.set(t),C}function Hs(t){var e=t|0;return t>0||t===e?e:e-1}function Ps(t){for(var e,r,n=1,s=t.length,i=t[0]+"";nh^r?1:-1;for(f=(u=s.length)<(h=i.length)?u:h,o=0;oi[o]^r?1:-1;return u==h?0:u>h^r?1:-1}function yn(t,e,r,n){if(tr||t!==io(t))throw Error(ss+(n||"Argument")+(typeof t=="number"?tr?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function z1(t){var e=t.c.length-1;return Hs(t.e/Kt)==e&&t.c[e]%2!=0}function K1(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function Go(t,e,r){var n,s;if(e<0){for(s=r+".";++e;s+=r);t=s+t}else if(n=t.length,++e>n){for(s=r,e-=n;--e;s+=r);t+=s}else e{return r={7629:(s,i,o)=>{const f=o(375),u=o(8571),h=o(9474),p=o(1687),d=o(8652),v=o(8160),w=o(3292),A=o(6354),M=o(8901),R=o(9708),N=o(6914),C=o(2294),B=o(6133),O=o(1152),D=o(8863),q=o(2036),W={Base:class{constructor(k){this.type=k,this.$_root=null,this._definition={},this._reset()}_reset(){this._ids=new C.Ids,this._preferences=null,this._refs=new B.Manager,this._cache=null,this._valids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return f(typeof R.describe=="function","Manifest functionality disabled"),R.describe(this)}allow(){for(var k=arguments.length,I=new Array(k),H=0;H1&&arguments[1]!==void 0?arguments[1]:{};return f(k!==void 0,"Missing example"),v.assertOptions(I,["override"]),this._inner("examples",k,{single:!0,override:I.override})}external(k,I){return typeof k=="object"&&(f(!I,"Cannot combine options with description"),I=k.description,k=k.method),f(typeof k=="function","Method must be a function"),f(I===void 0||I&&typeof I=="string","Description must be a non-empty string"),this._inner("externals",{method:k,description:I},{single:!0})}failover(k,I){return this._default("failover",k,I)}forbidden(){return this.presence("forbidden")}id(k){return k?(f(typeof k=="string","id must be a non-empty string"),f(/^[^\.]+$/.test(k),"id cannot contain period character"),this.$_setFlag("id",k)):this.$_setFlag("id",void 0)}invalid(){for(var k=arguments.length,I=new Array(k),H=0;H0&&arguments[0]!==void 0)||arguments[0];return f(typeof k=="boolean","Invalid mode:",k),this.$_setFlag("only",k)}optional(){return this.presence("optional")}prefs(k){f(k,"Missing preferences"),f(k.context===void 0,"Cannot override context"),f(k.externals===void 0,"Cannot override externals"),f(k.warnings===void 0,"Cannot override warnings"),f(k.debug===void 0,"Cannot override debug"),v.checkPreferences(k);const I=this.clone();return I._preferences=v.preferences(I._preferences,k),I}presence(k){return f(["optional","required","forbidden"].includes(k),"Unknown presence mode",k),this.$_setFlag("presence",k)}raw(){let k=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.$_setFlag("result",k?"raw":void 0)}result(k){return f(["raw","strip"].includes(k),"Unknown result mode",k),this.$_setFlag("result",k)}required(){return this.presence("required")}strict(k){const I=this.clone(),H=k!==void 0&&!k;return I._preferences=v.preferences(I._preferences,{convert:H}),I}strip(){let k=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.$_setFlag("result",k?"strip":void 0)}tag(){for(var k=arguments.length,I=new Array(k),H=0;HP.keep||P.name!==H),I._singleRules.delete(H));for(const H of k._rules)k._definition.rules[H.method].multi||I._singleRules.set(H.name,H),I._rules.push(H);if(I._flags.empty&&k._flags.empty){I._flags.empty=I._flags.empty.concat(k._flags.empty);const H=Object.assign({},k._flags);delete H.empty,p(I._flags,H)}else if(k._flags.empty){I._flags.empty=k._flags.empty;const H=Object.assign({},k._flags);delete H.empty,p(I._flags,H)}else p(I._flags,k._flags);for(const H in k.$_terms){const P=k.$_terms[H];P?I.$_terms[H]?I.$_terms[H]=I.$_terms[H].concat(P):I.$_terms[H]=P.slice():I.$_terms[H]||(I.$_terms[H]=P)}return this.$_root._tracer&&this.$_root._tracer._combine(I,[this,k]),I.$_mutateRebuild()}extend(k){return f(!k.base,"Cannot extend type with another base"),M.type(this,k)}extract(k){return k=Array.isArray(k)?k:k.split("."),this._ids.reach(k)}fork(k,I){f(!this._inRuleset(),"Cannot fork inside a ruleset");let H=this;for(let P of[].concat(k))P=Array.isArray(P)?P:P.split("."),H=H._ids.fork(P,I,H);return H.$_temp.ruleset=!1,H}rule(k){const I=this._definition;v.assertOptions(k,Object.keys(I.modifiers)),f(this.$_temp.ruleset!==!1,"Cannot apply rules to empty ruleset or the last rule added does not support rule properties");const H=this.$_temp.ruleset===null?this._rules.length-1:this.$_temp.ruleset;f(H>=0&&HH.tailor(k),ref:!1}),I.$_temp.ruleset=!1,I.$_mutateRebuild()}tracer(){return O.location?O.location(this):this}validate(k,I){return D.entry(k,this,I)}validateAsync(k,I){return D.entryAsync(k,this,I)}$_addRule(k){typeof k=="string"&&(k={name:k}),f(k&&typeof k=="object","Invalid options"),f(k.name&&typeof k.name=="string","Invalid rule name");for(const g in k)f(g[0]!=="_","Cannot set private rule properties");const I=Object.assign({},k);I._resolve=[],I.method=I.method||I.name;const H=this._definition.rules[I.method],P=I.args;f(H,"Unknown rule",I.method);const T=this.clone();if(P){f(Object.keys(P).length===1||Object.keys(P).length===this._definition.rules[I.name].args.length,"Invalid rule definition for",this.type,I.name);for(const g in P){let a=P[g];if(H.argsByName){const c=H.argsByName.get(g);if(c.ref&&v.isResolvable(a))I._resolve.push(g),T.$_mutateRegister(a);else if(c.normalize&&(a=c.normalize(a),P[g]=a),c.assert){const m=v.validateArg(a,g,c);f(!m,m,"or reference")}}a!==void 0?P[g]=a:delete P[g]}}return H.multi||(T._ruleRemove(I.name,{clone:!1}),T._singleRules.set(I.name,I)),T.$_temp.ruleset===!1&&(T.$_temp.ruleset=null),H.priority?T._rules.unshift(I):T._rules.push(I),T}$_compile(k,I){return w.schema(this.$_root,k,I)}$_createError(k,I,H,P,T){let g=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};const a=g.flags!==!1?this._flags:{},c=g.messages?N.merge(this._definition.messages,g.messages):this._definition.messages;return new A.Report(k,I,H,a,c,P,T)}$_getFlag(k){return this._flags[k]}$_getRule(k){return this._singleRules.get(k)}$_mapLabels(k){return k=Array.isArray(k)?k:k.split("."),this._ids.labels(k)}$_match(k,I,H,P){(H=Object.assign({},H)).abortEarly=!0,H._externals=!1,I.snapshot();const T=!D.validate(k,this,I,H,P).errors;return I.restore(),T}$_modify(k){return v.assertOptions(k,["each","once","ref","schema"]),C.schema(this,k)||this}$_mutateRebuild(){return f(!this._inRuleset(),"Cannot add this rule inside a ruleset"),this._refs.reset(),this._ids.reset(),this.$_modify({each:(k,I)=>{let{source:H,name:P,path:T,key:g}=I;const a=this._definition[H][P]&&this._definition[H][P].register;a!==!1&&this.$_mutateRegister(k,{family:a,key:g})}}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}$_mutateRegister(k){let{family:I,key:H}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this._refs.register(k,I),this._ids.register(k,{key:H})}$_property(k){return this._definition.properties[k]}$_reach(k){return this._ids.reach(k)}$_rootReferences(){return this._refs.roots()}$_setFlag(k,I){let H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};f(k[0]==="_"||!this._inRuleset(),"Cannot set flag inside a ruleset");const P=this._definition.flags[k]||{};if(h(I,P.default)&&(I=void 0),h(I,this._flags[k]))return this;const T=H.clone!==!1?this.clone():this;return I!==void 0?(T._flags[k]=I,T.$_mutateRegister(I)):delete T._flags[k],k[0]!=="_"&&(T.$_temp.ruleset=!1),T}$_parent(k){for(var I=arguments.length,H=new Array(I>1?I-1:0),P=1;P2&&arguments[2]!==void 0?arguments[2]:{};return v.assertOptions(H,"literal"),f(I!==void 0,"Missing",k,"value"),f(typeof I=="function"||!H.literal,"Only function value supports literal option"),typeof I=="function"&&H.literal&&(I={[v.symbols.literal]:!0,literal:I}),this.$_setFlag(k,I)}_generate(k,I,H){if(!this.$_terms.whens)return{schema:this};const P=[],T=[];for(let c=0;c_)break}const g=T.join(", ");if(I.mainstay.tracer.debug(I,"rule","when",g),!g)return{schema:this};if(!I.mainstay.tracer.active&&this.$_temp.whens[g])return{schema:this.$_temp.whens[g],id:g};let a=this;this._definition.generate&&(a=this._definition.generate(this,k,I,H));for(const c of P)a=a.concat(c);return this.$_root._tracer&&this.$_root._tracer._combine(a,[this,...P]),this.$_temp.whens[g]=a,{schema:a,id:g}}_inner(k,I){let H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};f(!this._inRuleset(),`Cannot set ${k} inside a ruleset`);const P=this.clone();return P.$_terms[k]&&!H.override||(P.$_terms[k]=[]),H.single?P.$_terms[k].push(I):P.$_terms[k].push(...I),P.$_temp.ruleset=!1,P}_inRuleset(){return this.$_temp.ruleset!==null&&this.$_temp.ruleset!==!1}_ruleRemove(k){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this._singleRules.has(k))return this;const H=I.clone!==!1?this.clone():this;H._singleRules.delete(k);const P=[];for(let T=0;T{const f=o(375),u=o(8571),h=o(8160),p={max:1e3,supported:new Set(["undefined","boolean","number","string"])};i.provider={provision:d=>new p.Cache(d)},p.Cache=class{constructor(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};h.assertOptions(d,["max"]),f(d.max===void 0||d.max&&d.max>0&&isFinite(d.max),"Invalid max cache size"),this._max=d.max||p.max,this._map=new Map,this._list=new p.List}get length(){return this._map.size}set(d,v){if(d!==null&&!p.supported.has(typeof d))return;let w=this._map.get(d);if(w)return w.value=v,void this._list.first(w);w=this._list.unshift({key:d,value:v}),this._map.set(d,w),this._compact()}get(d){const v=this._map.get(d);if(v)return this._list.first(v),u(v.value)}_compact(){if(this._map.size>this._max){const d=this._list.pop();this._map.delete(d.key)}}},p.List=class{constructor(){this.tail=null,this.head=null}unshift(d){return d.next=null,d.prev=this.head,this.head&&(this.head.next=d),this.head=d,this.tail||(this.tail=d),d}first(d){d!==this.head&&(this._remove(d),this.unshift(d))}pop(){return this._remove(this.tail)}_remove(d){const{next:v,prev:w}=d;return v.prev=w,w&&(w.next=v),d===this.tail&&(this.tail=v),d.prev=null,d.next=null,d}}},8160:(s,i,o)=>{const f=o(375),u=o(7916),h=o(5934);let p,d;const v={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};i.version=h.version,i.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:"iso",errors:{escapeHtml:!1,label:"path",language:null,render:!0,stack:!1,wrap:{label:'"',array:"[]"}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:"optional",skipFunctions:!1,stripUnknown:!1,warnings:!1},i.symbols={any:Symbol.for("@hapi/joi/schema"),arraySingle:Symbol("arraySingle"),deepDefault:Symbol("deepDefault"),errors:Symbol("errors"),literal:Symbol("literal"),override:Symbol("override"),parent:Symbol("parent"),prefs:Symbol("prefs"),ref:Symbol("ref"),template:Symbol("template"),values:Symbol("values")},i.assertOptions=function(w,A){let M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Options";f(w&&typeof w=="object"&&!Array.isArray(w),"Options must be of type object");const R=Object.keys(w).filter(N=>!A.includes(N));f(R.length===0,`${M} contain unknown keys: ${R}`)},i.checkPreferences=function(w){d=d||o(3378);const A=d.preferences.validate(w);if(A.error)throw new u([A.error.details[0].message])},i.compare=function(w,A,M){switch(M){case"=":return w===A;case">":return w>A;case"<":return w=":return w>=A;case"<=":return w<=A}},i.default=function(w,A){return w===void 0?A:w},i.isIsoDate=function(w){return v.isoDate.test(w)},i.isNumber=function(w){return typeof w=="number"&&!isNaN(w)},i.isResolvable=function(w){return!!w&&(w[i.symbols.ref]||w[i.symbols.template])},i.isSchema=function(w){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const M=w&&w[i.symbols.any];return!!M&&(f(A.legacy||M.version===i.version,"Cannot mix different versions of joi schemas"),!0)},i.isValues=function(w){return w[i.symbols.values]},i.limit=function(w){return Number.isSafeInteger(w)&&w>=0},i.preferences=function(w,A){p=p||o(6914),w=w||{},A=A||{};const M=Object.assign({},w,A);return A.errors&&w.errors&&(M.errors=Object.assign({},w.errors,A.errors),M.errors.wrap=Object.assign({},w.errors.wrap,A.errors.wrap)),A.messages&&(M.messages=p.compile(A.messages,w.messages)),delete M[i.symbols.prefs],M},i.tryWithPath=function(w,A){let M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};try{return w()}catch(R){throw R.path!==void 0?R.path=A+"."+R.path:R.path=A,M.append&&(R.message=`${R.message} (${R.path})`),R}},i.validateArg=function(w,A,M){let{assert:R,message:N}=M;if(i.isSchema(R)){const C=R.validate(w);return C.error?C.error.message:void 0}if(!R(w))return A?`${A} ${N}`:N},i.verifyFlat=function(w,A){for(const M of w)f(!Array.isArray(M),"Method no longer accepts array arguments:",A)}},3292:(s,i,o)=>{const f=o(375),u=o(8160),h=o(6133),p={};i.schema=function(d,v){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};u.assertOptions(w,["appendPath","override"]);try{return p.schema(d,v,w)}catch(A){throw w.appendPath&&A.path!==void 0&&(A.message=`${A.message} (${A.path})`),A}},p.schema=function(d,v,w){f(v!==void 0,"Invalid undefined schema"),Array.isArray(v)&&(f(v.length,"Invalid empty array schema"),v.length===1&&(v=v[0]));const A=function(M){for(var R=arguments.length,N=new Array(R>1?R-1:0),C=1;C2&&arguments[2]!==void 0?arguments[2]:{};u.assertOptions(w,["legacy"]);const A=v&&v[u.symbols.any];if(A)return f(w.legacy||A.version===u.version,"Cannot mix different versions of joi schemas:",A.version,u.version),v;if(typeof v!="object"||!w.legacy)return i.schema(d,v,{appendPath:!0});const M=p.walk(v);return M?M.compile(M.root,v):i.schema(d,v,{appendPath:!0})},p.walk=function(d){if(typeof d!="object")return null;if(Array.isArray(d)){for(const w of d){const A=p.walk(w);if(A)return A}return null}const v=d[u.symbols.any];if(v)return{root:d[v.root],compile:v.compile};f(Object.getPrototypeOf(d)===Object.getPrototypeOf({}),"Schema can only contain plain objects");for(const w in d){const A=p.walk(d[w]);if(A)return A}return null},p.simple=function(d){return d===null||["boolean","string","number"].includes(typeof d)},i.when=function(d,v,w){if(w===void 0&&(f(v&&typeof v=="object","Missing options"),w=v,v=h.create(".")),Array.isArray(w)&&(w={switch:w}),u.assertOptions(w,["is","not","then","otherwise","switch","break"]),u.isSchema(v))return f(w.is===void 0,'"is" can not be used with a schema condition'),f(w.not===void 0,'"not" can not be used with a schema condition'),f(w.switch===void 0,'"switch" can not be used with a schema condition'),p.condition(d,{is:v,then:w.then,otherwise:w.otherwise,break:w.break});if(f(h.isRef(v)||typeof v=="string","Invalid condition:",v),f(w.not===void 0||w.is===void 0,'Cannot combine "is" with "not"'),w.switch===void 0){let M=w;w.not!==void 0&&(M={is:w.not,then:w.otherwise,otherwise:w.then,break:w.break});let R=M.is!==void 0?d.$_compile(M.is):d.$_root.invalid(null,!1,0,"").required();return f(M.then!==void 0||M.otherwise!==void 0,'options must have at least one of "then", "otherwise", or "switch"'),f(M.break===void 0||M.then===void 0||M.otherwise===void 0,"Cannot specify then, otherwise, and break all together"),w.is===void 0||h.isRef(w.is)||u.isSchema(w.is)||(R=R.required()),p.condition(d,{ref:i.ref(v),is:R,then:M.then,otherwise:M.otherwise,break:M.break})}f(Array.isArray(w.switch),'"switch" must be an array'),f(w.is===void 0,'Cannot combine "switch" with "is"'),f(w.not===void 0,'Cannot combine "switch" with "not"'),f(w.then===void 0,'Cannot combine "switch" with "then"');const A={ref:i.ref(v),switch:[],break:w.break};for(let M=0;M{const f=o(5688),u=o(8160),h=o(3328);i.Report=class{constructor(p,d,v,w,A,M,R){if(this.code=p,this.flags=w,this.messages=A,this.path=M.path,this.prefs=R,this.state=M,this.value=d,this.message=null,this.template=null,this.local=v||{},this.local.label=i.label(this.flags,this.state,this.prefs,this.messages),this.value===void 0||this.local.hasOwnProperty("value")||(this.local.value=this.value),this.path.length){const N=this.path[this.path.length-1];typeof N!="object"&&(this.local.key=N)}}_setTemplate(p){if(this.template=p,!this.flags.label&&this.path.length===0){const d=this._template(this.template,"root");d&&(this.local.label=d)}}toString(){if(this.message)return this.message;const p=this.code;if(!this.prefs.errors.render)return this.code;const d=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return d===void 0?`Error code "${p}" is not defined, your custom type is missing the correct messages definition`:(this.message=d.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,"").trim()),this.message)}_template(p,d){return i.template(this.value,p,d||this.code,this.state,this.prefs)}},i.path=function(p){let d="";for(const v of p)typeof v!="object"&&(typeof v=="string"?(d&&(d+="."),d+=v):d+=`[${v}]`);return d},i.template=function(p,d,v,w,A){if(!d)return;if(h.isTemplate(d))return v!=="root"?d:null;let M=A.errors.language;if(u.isResolvable(M)&&(M=M.resolve(p,w,A)),M&&d[M]){if(d[M][v]!==void 0)return d[M][v];if(d[M]["*"]!==void 0)return d[M]["*"]}return d[v]?d[v]:d["*"]},i.label=function(p,d,v,w){if(p.label)return p.label;if(!v.errors.label)return"";let A=d.path;return v.errors.label==="key"&&d.path.length>1&&(A=d.path.slice(-1)),i.path(A)||i.template(null,v.messages,"root",d,v)||w&&i.template(null,w,"root",d,v)||"value"},i.process=function(p,d,v){if(!p)return null;const{override:w,message:A,details:M}=i.details(p);if(w)return w;if(v.errors.stack)return new i.ValidationError(A,M,d);const R=Error.stackTraceLimit;Error.stackTraceLimit=0;const N=new i.ValidationError(A,M,d);return Error.stackTraceLimit=R,N},i.details=function(p){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=[];const w=[];for(const A of p){if(A instanceof Error){if(d.override!==!1)return{override:A};const R=A.toString();v.push(R),w.push({message:R,type:"override",context:{error:A}});continue}const M=A.toString();v.push(M),w.push({message:M,path:A.path.filter(R=>typeof R!="object"),type:A.code,context:A.local})}return v.length>1&&(v=[...new Set(v)]),{message:v.join(". "),details:w}},i.ValidationError=class extends Error{constructor(p,d,v){super(p),this._original=v,this.details=d}static isError(p){return p instanceof i.ValidationError}},i.ValidationError.prototype.isJoi=!0,i.ValidationError.prototype.name="ValidationError",i.ValidationError.prototype.annotate=f.error},8901:(s,i,o)=>{const f=o(375),u=o(8571),h=o(8160),p=o(6914),d={};i.type=function(v,w){const A=Object.getPrototypeOf(v),M=u(A),R=v._assign(Object.create(M)),N=Object.assign({},w);delete N.base,M._definition=N;const C=A._definition||{};N.messages=p.merge(C.messages,N.messages),N.properties=Object.assign({},C.properties,N.properties),R.type=N.type,N.flags=Object.assign({},C.flags,N.flags);const B=Object.assign({},C.terms);if(N.terms)for(const W in N.terms){const k=N.terms[W];f(R.$_terms[W]===void 0,"Invalid term override for",N.type,W),R.$_terms[W]=k.init,B[W]=k}N.terms=B,N.args||(N.args=C.args),N.prepare=d.prepare(N.prepare,C.prepare),N.coerce&&(typeof N.coerce=="function"&&(N.coerce={method:N.coerce}),N.coerce.from&&!Array.isArray(N.coerce.from)&&(N.coerce={method:N.coerce.method,from:[].concat(N.coerce.from)})),N.coerce=d.coerce(N.coerce,C.coerce),N.validate=d.validate(N.validate,C.validate);const O=Object.assign({},C.rules);if(N.rules)for(const W in N.rules){const k=N.rules[W];f(typeof k=="object","Invalid rule definition for",N.type,W);let I=k.method;if(I===void 0&&(I=function(){return this.$_addRule(W)}),I&&(f(!M[W],"Rule conflict in",N.type,W),M[W]=I),f(!O[W],"Rule conflict in",N.type,W),O[W]=k,k.alias){const H=[].concat(k.alias);for(const P of H)M[P]=k.method}k.args&&(k.argsByName=new Map,k.args=k.args.map(H=>(typeof H=="string"&&(H={name:H}),f(!k.argsByName.has(H.name),"Duplicated argument name",H.name),h.isSchema(H.assert)&&(H.assert=H.assert.strict().label(H.name)),k.argsByName.set(H.name,H),H)))}N.rules=O;const D=Object.assign({},C.modifiers);if(N.modifiers)for(const W in N.modifiers){f(!M[W],"Rule conflict in",N.type,W);const k=N.modifiers[W];f(typeof k=="function","Invalid modifier definition for",N.type,W);const I=function(H){return this.rule({[W]:H})};M[W]=I,D[W]=k}if(N.modifiers=D,N.overrides){M._super=A,R.$_super={};for(const W in N.overrides)f(A[W],"Cannot override missing",W),N.overrides[W][h.symbols.parent]=A[W],R.$_super[W]=A[W].bind(R);Object.assign(M,N.overrides)}N.cast=Object.assign({},C.cast,N.cast);const q=Object.assign({},C.manifest,N.manifest);return q.build=d.build(N.manifest&&N.manifest.build,C.manifest&&C.manifest.build),N.manifest=q,N.rebuild=d.rebuild(N.rebuild,C.rebuild),R},d.build=function(v,w){return v&&w?function(A,M){return w(v(A,M),M)}:v||w},d.coerce=function(v,w){return v&&w?{from:v.from&&w.from?[...new Set([...v.from,...w.from])]:null,method(A,M){let R;if((!w.from||w.from.includes(typeof A))&&(R=w.method(A,M),R)){if(R.errors||R.value===void 0)return R;A=R.value}if(!v.from||v.from.includes(typeof A)){const N=v.method(A,M);if(N)return N}return R}}:v||w},d.prepare=function(v,w){return v&&w?function(A,M){const R=v(A,M);if(R){if(R.errors||R.value===void 0)return R;A=R.value}return w(A,M)||R}:v||w},d.rebuild=function(v,w){return v&&w?function(A){w(A),v(A)}:v||w},d.validate=function(v,w){return v&&w?function(A,M){const R=w(A,M);if(R){if(R.errors&&(!Array.isArray(R.errors)||R.errors.length))return R;A=R.value}return v(A,M)||R}:v||w}},5107:(s,i,o)=>{const f=o(375),u=o(8571),h=o(8652),p=o(8160),d=o(3292),v=o(6354),w=o(8901),A=o(9708),M=o(6133),R=o(3328),N=o(1152);let C;const B={types:{alternatives:o(4946),any:o(8068),array:o(546),boolean:o(4937),date:o(7500),function:o(390),link:o(8785),number:o(3832),object:o(8966),string:o(7417),symbol:o(8826)},aliases:{alt:"alternatives",bool:"boolean",func:"function"},root:function(){const O={_types:new Set(Object.keys(B.types))};for(const D of O._types)O[D]=function(){for(var q=arguments.length,W=new Array(q),k=0;k2?q-2:0),k=2;k2?q-2:0),k=2;k{const f=o(375),u=o(8571),h=o(3328);i.compile=function(p,d){if(typeof p=="string")return f(!d,"Cannot set single message string"),new h(p);if(h.isTemplate(p))return f(!d,"Cannot set single message template"),p;f(typeof p=="object"&&!Array.isArray(p),"Invalid message options"),d=d?u(d):{};for(let v in p){const w=p[v];if(v==="root"||h.isTemplate(w)){d[v]=w;continue}if(typeof w=="string"){d[v]=new h(w);continue}f(typeof w=="object"&&!Array.isArray(w),"Invalid message for",v);const A=v;for(v in d[A]=d[A]||{},w){const M=w[v];v==="root"||h.isTemplate(M)?d[A][v]=M:(f(typeof M=="string","Invalid message for",v,"in",A),d[A][v]=new h(M))}}return d},i.decompile=function(p){const d={};for(let v in p){const w=p[v];if(v==="root"){d.root=w;continue}if(h.isTemplate(w)){d[v]=w.describe({compact:!0});continue}const A=v;for(v in d[A]={},w){const M=w[v];v!=="root"?d[A][v]=M.describe({compact:!0}):d[A].root=M}}return d},i.merge=function(p,d){if(!p)return i.compile(d);if(!d)return p;if(typeof d=="string")return new h(d);if(h.isTemplate(d))return d;const v=u(p);for(let w in d){const A=d[w];if(w==="root"||h.isTemplate(A)){v[w]=A;continue}if(typeof A=="string"){v[w]=new h(A);continue}f(typeof A=="object"&&!Array.isArray(A),"Invalid message for",w);const M=w;for(w in v[M]=v[M]||{},A){const R=A[w];w==="root"||h.isTemplate(R)?v[M][w]=R:(f(typeof R=="string","Invalid message for",w,"in",M),v[M][w]=new h(R))}}return v}},2294:(s,i,o)=>{const f=o(375),u=o(8160),h=o(6133),p={};i.Ids=p.Ids=class{constructor(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}clone(){const d=new p.Ids;return d._byId=new Map(this._byId),d._byKey=new Map(this._byKey),d._schemaChain=this._schemaChain,d}concat(d){d._schemaChain&&(this._schemaChain=!0);for(const[v,w]of d._byId.entries())f(!this._byKey.has(v),"Schema id conflicts with existing key:",v),this._byId.set(v,w);for(const[v,w]of d._byKey.entries())f(!this._byId.has(v),"Schema key conflicts with existing id:",v),this._byKey.set(v,w)}fork(d,v,w){const A=this._collect(d);A.push({schema:w});const M=A.shift();let R={id:M.id,schema:v(M.schema)};f(u.isSchema(R.schema),"adjuster function failed to return a joi schema type");for(const N of A)R={id:N.id,schema:p.fork(N.schema,R.id,R.schema)};return R.schema}labels(d){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const w=d[0],A=this._get(w);if(!A)return[...v,...d].join(".");const M=d.slice(1);return v=[...v,A.schema._flags.label||w],M.length?A.schema._ids.labels(M,v):v.join(".")}reach(d){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const w=d[0],A=this._get(w);f(A,"Schema does not contain path",[...v,...d].join("."));const M=d.slice(1);return M.length?A.schema._ids.reach(M,[...v,w]):A.schema}register(d){let{key:v}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!d||!u.isSchema(d))return;(d.$_property("schemaChain")||d._ids._schemaChain)&&(this._schemaChain=!0);const w=d._flags.id;if(w){const A=this._byId.get(w);f(!A||A.schema===d,"Cannot add different schemas with the same id:",w),f(!this._byKey.has(w),"Schema id conflicts with existing key:",w),this._byId.set(w,{schema:d,id:w})}v&&(f(!this._byKey.has(v),"Schema already contains key:",v),f(!this._byId.has(v),"Schema key conflicts with existing id:",v),this._byKey.set(v,{schema:d,id:v}))}reset(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}_collect(d){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const A=d[0],M=this._get(A);f(M,"Schema does not contain path",[...v,...d].join(".")),w=[M,...w];const R=d.slice(1);return R.length?M.schema._ids._collect(R,[...v,A],w):w}_get(d){return this._byId.get(d)||this._byKey.get(d)}},p.fork=function(d,v,w){const A=i.schema(d,{each:(M,R)=>{let{key:N}=R;if(v===(M._flags.id||N))return w},ref:!1});return A?A.$_mutateRebuild():d},i.schema=function(d,v){let w;for(const A in d._flags){if(A[0]==="_")continue;const M=p.scan(d._flags[A],{source:"flags",name:A},v);M!==void 0&&(w=w||d.clone(),w._flags[A]=M)}for(let A=0;A{const f=o(375),u=o(8571),h=o(9621),p=o(8160);let d;const v={symbol:Symbol("ref"),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:".",type:"value"}};i.create=function(w){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};f(typeof w=="string","Invalid reference key:",w),p.assertOptions(A,["adjust","ancestor","in","iterables","map","prefix","render","separator"]),f(!A.prefix||typeof A.prefix=="object","options.prefix must be of type object");const M=Object.assign({},v.defaults,A);delete M.prefix;const R=M.separator,N=v.context(w,R,A.prefix);if(M.type=N.type,w=N.key,M.type==="value")if(N.root&&(f(!R||w[0]!==R,"Cannot specify relative path with root prefix"),M.ancestor="root",w||(w=null)),R&&R===w)w=null,M.ancestor=0;else if(M.ancestor!==void 0)f(!R||!w||w[0]!==R,"Cannot combine prefix with ancestor option");else{const[C,B]=v.ancestor(w,R);B&&(w=w.slice(B))===""&&(w=null),M.ancestor=C}return M.path=R?w===null?[]:w.split(R):[w],new v.Ref(M)},i.in=function(w){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i.create(w,{...A,in:!0})},i.isRef=function(w){return!!w&&!!w[p.symbols.ref]},v.Ref=class{constructor(w){f(typeof w=="object","Invalid reference construction"),p.assertOptions(w,["adjust","ancestor","in","iterables","map","path","render","separator","type","depth","key","root","display"]),f([!1,void 0].includes(w.separator)||typeof w.separator=="string"&&w.separator.length===1,"Invalid separator"),f(!w.adjust||typeof w.adjust=="function","options.adjust must be a function"),f(!w.map||Array.isArray(w.map),"options.map must be an array"),f(!w.map||!w.adjust,"Cannot set both map and adjust options"),Object.assign(this,v.defaults,w),f(this.type==="value"||this.ancestor===void 0,"Non-value references cannot reference ancestors"),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(w,A,M,R){let N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};return f(!this.in||N.in,"Invalid in() reference usage"),this.type==="global"?this._resolve(M.context,A,N):this.type==="local"?this._resolve(R,A,N):this.ancestor?this.ancestor==="root"?this._resolve(A.ancestors[A.ancestors.length-1],A,N):(f(this.ancestor<=A.ancestors.length,"Invalid reference exceeds the schema root:",this.display),this._resolve(A.ancestors[this.ancestor-1],A,N)):this._resolve(w,A,N)}_resolve(w,A,M){let R;if(this.type==="value"&&A.mainstay.shadow&&M.shadow!==!1&&(R=A.mainstay.shadow.get(this.absolute(A))),R===void 0&&(R=h(w,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(R=this.adjust(R)),this.map){const N=this.map.get(R);N!==void 0&&(R=N)}return A.mainstay&&A.mainstay.tracer.resolve(A,this,R),R}toString(){return this.display}absolute(w){return[...w.path.slice(0,-this.ancestor),...this.path]}clone(){return new v.Ref(this)}describe(){const w={path:this.path};this.type!=="value"&&(w.type=this.type),this.separator!=="."&&(w.separator=this.separator),this.type==="value"&&this.ancestor!==1&&(w.ancestor=this.ancestor),this.map&&(w.map=[...this.map]);for(const A of["adjust","iterables","render"])this[A]!==null&&this[A]!==void 0&&(w[A]=this[A]);return this.in!==!1&&(w.in=!0),{ref:w}}updateDisplay(){const w=this.key!==null?this.key:"";if(this.type!=="value")return void(this.display=`ref:${this.type}:${w}`);if(!this.separator)return void(this.display=`ref:${w}`);if(!this.ancestor)return void(this.display=`ref:${this.separator}${w}`);if(this.ancestor==="root")return void(this.display=`ref:root:${w}`);if(this.ancestor===1)return void(this.display=`ref:${w||".."}`);const A=new Array(this.ancestor+1).fill(this.separator).join("");this.display=`ref:${A}${w||""}`}},v.Ref.prototype[p.symbols.ref]=!0,i.build=function(w){return(w=Object.assign({},v.defaults,w)).type==="value"&&w.ancestor===void 0&&(w.ancestor=1),new v.Ref(w)},v.context=function(w,A){let M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(w=w.trim(),M){const R=M.global===void 0?"$":M.global;if(R!==A&&w.startsWith(R))return{key:w.slice(R.length),type:"global"};const N=M.local===void 0?"#":M.local;if(N!==A&&w.startsWith(N))return{key:w.slice(N.length),type:"local"};const C=M.root===void 0?"/":M.root;if(C!==A&&w.startsWith(C))return{key:w.slice(C.length),type:"value",root:!0}}return{key:w,type:"value"}},v.ancestor=function(w,A){if(!A)return[1,0];if(w[0]!==A)return[1,0];if(w[1]!==A)return[0,1];let M=2;for(;w[M]===A;)++M;return[M-1,M]},i.toSibling=0,i.toParent=1,i.Manager=class{constructor(){this.refs=[]}register(w,A){if(w)if(A=A===void 0?i.toParent:A,Array.isArray(w))for(const M of w)this.register(M,A);else if(p.isSchema(w))for(const M of w._refs.refs)M.ancestor-A>=0&&this.refs.push({ancestor:M.ancestor-A,root:M.root});else i.isRef(w)&&w.type==="value"&&w.ancestor-A>=0&&this.refs.push({ancestor:w.ancestor-A,root:w.root}),d=d||o(3328),d.isTemplate(w)&&this.register(w.refs(),A)}get length(){return this.refs.length}clone(){const w=new i.Manager;return w.refs=u(this.refs),w}reset(){this.refs=[]}roots(){return this.refs.filter(w=>!w.ancestor).map(w=>w.root)}}},3378:(s,i,o)=>{const f=o(5107),u={};u.wrap=f.string().min(1).max(2).allow(!1),i.preferences=f.object({allowUnknown:f.boolean(),abortEarly:f.boolean(),artifacts:f.boolean(),cache:f.boolean(),context:f.object(),convert:f.boolean(),dateFormat:f.valid("date","iso","string","time","utc"),debug:f.boolean(),errors:{escapeHtml:f.boolean(),label:f.valid("path","key",!1),language:[f.string(),f.object().ref()],render:f.boolean(),stack:f.boolean(),wrap:{label:u.wrap,array:u.wrap,string:u.wrap}},externals:f.boolean(),messages:f.object(),noDefaults:f.boolean(),nonEnumerables:f.boolean(),presence:f.valid("required","optional","forbidden"),skipFunctions:f.boolean(),stripUnknown:f.object({arrays:f.boolean(),objects:f.boolean()}).or("arrays","objects").allow(!0,!1),warnings:f.boolean()}).strict(),u.nameRx=/^[a-zA-Z0-9]\w*$/,u.rule=f.object({alias:f.array().items(f.string().pattern(u.nameRx)).single(),args:f.array().items(f.string(),f.object({name:f.string().pattern(u.nameRx).required(),ref:f.boolean(),assert:f.alternatives([f.function(),f.object().schema()]).conditional("ref",{is:!0,then:f.required()}),normalize:f.function(),message:f.string().when("assert",{is:f.function(),then:f.required()})})),convert:f.boolean(),manifest:f.boolean(),method:f.function().allow(!1),multi:f.boolean(),validate:f.function()}),i.extension=f.object({type:f.alternatives([f.string(),f.object().regex()]).required(),args:f.function(),cast:f.object().pattern(u.nameRx,f.object({from:f.function().maxArity(1).required(),to:f.function().minArity(1).maxArity(2).required()})),base:f.object().schema().when("type",{is:f.object().regex(),then:f.forbidden()}),coerce:[f.function().maxArity(3),f.object({method:f.function().maxArity(3).required(),from:f.array().items(f.string()).single()})],flags:f.object().pattern(u.nameRx,f.object({setter:f.string(),default:f.any()})),manifest:{build:f.function().arity(2)},messages:[f.object(),f.string()],modifiers:f.object().pattern(u.nameRx,f.function().minArity(1).maxArity(2)),overrides:f.object().pattern(u.nameRx,f.function()),prepare:f.function().maxArity(3),rebuild:f.function().arity(1),rules:f.object().pattern(u.nameRx,u.rule),terms:f.object().pattern(u.nameRx,f.object({init:f.array().allow(null).required(),manifest:f.object().pattern(/.+/,[f.valid("schema","single"),f.object({mapped:f.object({from:f.string().required(),to:f.string().required()}).required()})])})),validate:f.function().maxArity(3)}).strict(),i.extensions=f.array().items(f.object(),f.function().arity(1)).strict(),u.desc={buffer:f.object({buffer:f.string()}),func:f.object({function:f.function().required(),options:{literal:!0}}),override:f.object({override:!0}),ref:f.object({ref:f.object({type:f.valid("value","global","local"),path:f.array().required(),separator:f.string().length(1).allow(!1),ancestor:f.number().min(0).integer().allow("root"),map:f.array().items(f.array().length(2)).min(1),adjust:f.function(),iterables:f.boolean(),in:f.boolean(),render:f.boolean()}).required()}),regex:f.object({regex:f.string().min(3)}),special:f.object({special:f.valid("deep").required()}),template:f.object({template:f.string().required(),options:f.object()}),value:f.object({value:f.alternatives([f.object(),f.array()]).required()})},u.desc.entity=f.alternatives([f.array().items(f.link("...")),f.boolean(),f.function(),f.number(),f.string(),u.desc.buffer,u.desc.func,u.desc.ref,u.desc.regex,u.desc.special,u.desc.template,u.desc.value,f.link("/")]),u.desc.values=f.array().items(null,f.boolean(),f.function(),f.number().allow(1/0,-1/0),f.string().allow(""),f.symbol(),u.desc.buffer,u.desc.func,u.desc.override,u.desc.ref,u.desc.regex,u.desc.template,u.desc.value),u.desc.messages=f.object().pattern(/.+/,[f.string(),u.desc.template,f.object().pattern(/.+/,[f.string(),u.desc.template])]),i.description=f.object({type:f.string().required(),flags:f.object({cast:f.string(),default:f.any(),description:f.string(),empty:f.link("/"),failover:u.desc.entity,id:f.string(),label:f.string(),only:!0,presence:["optional","required","forbidden"],result:["raw","strip"],strip:f.boolean(),unit:f.string()}).unknown(),preferences:{allowUnknown:f.boolean(),abortEarly:f.boolean(),artifacts:f.boolean(),cache:f.boolean(),convert:f.boolean(),dateFormat:["date","iso","string","time","utc"],errors:{escapeHtml:f.boolean(),label:["path","key"],language:[f.string(),u.desc.ref],wrap:{label:u.wrap,array:u.wrap}},externals:f.boolean(),messages:u.desc.messages,noDefaults:f.boolean(),nonEnumerables:f.boolean(),presence:["required","optional","forbidden"],skipFunctions:f.boolean(),stripUnknown:f.object({arrays:f.boolean(),objects:f.boolean()}).or("arrays","objects").allow(!0,!1),warnings:f.boolean()},allow:u.desc.values,invalid:u.desc.values,rules:f.array().min(1).items({name:f.string().required(),args:f.object().min(1),keep:f.boolean(),message:[f.string(),u.desc.messages],warn:f.boolean()}),keys:f.object().pattern(/.*/,f.link("/")),link:u.desc.ref}).pattern(/^[a-z]\w*$/,f.any())},493:(s,i,o)=>{const f=o(8571),u=o(9621),h=o(8160),p={value:Symbol("value")};s.exports=p.State=class{constructor(d,v,w){this.path=d,this.ancestors=v,this.mainstay=w.mainstay,this.schemas=w.schemas,this.debug=null}localize(d){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;const A=new p.State(d,v,this);return w&&A.schemas&&(A.schemas=[p.schemas(w),...A.schemas]),A}nest(d,v){const w=new p.State(this.path,this.ancestors,this);return w.schemas=w.schemas&&[p.schemas(d),...w.schemas],w.debug=v,w}shadow(d,v){this.mainstay.shadow=this.mainstay.shadow||new p.Shadow,this.mainstay.shadow.set(this.path,d,v)}snapshot(){this.mainstay.shadow&&(this._snapshot=f(this.mainstay.shadow.node(this.path)))}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0)}},p.schemas=function(d){return h.isSchema(d)?{schema:d}:d},p.Shadow=class{constructor(){this._values=null}set(d,v,w){if(!d.length||w==="strip"&&typeof d[d.length-1]=="number")return;this._values=this._values||new Map;let A=this._values;for(let M=0;M{const f=o(375),u=o(8571),h=o(5277),p=o(1447),d=o(8160),v=o(6354),w=o(6133),A={symbol:Symbol("template"),opens:new Array(1e3).join("\0"),closes:new Array(1e3).join(""),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};s.exports=A.Template=class{constructor(M,R){f(typeof M=="string","Template source must be a string"),f(!M.includes("\0")&&!M.includes(""),"Template source cannot contain reserved control characters"),this.source=M,this.rendered=M,this._template=null,this._settings=u(R),this._parse()}_parse(){if(!this.source.includes("{"))return;const M=A.encode(this.source),R=A.split(M);let N=!1;const C=[],B=R.shift();B&&C.push(B);for(const O of R){const D=O[0]!=="{",q=D?"}":"}}",W=O.indexOf(q);if(W===-1||O[1]==="{"){C.push(`{${A.decode(O)}`);continue}let k=O.slice(D?0:1,W);const I=k[0]===":";I&&(k=k.slice(1));const H=this._ref(A.decode(k),{raw:D,wrapped:I});C.push(H),typeof H!="string"&&(N=!0);const P=O.slice(W+q.length);P&&C.push(A.decode(P))}N?this._template=C:this.rendered=C.join("")}static date(M,R){return A.dateFormat[R.dateFormat].call(M)}describe(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this._settings&&M.compact)return this.source;const R={template:this.source};return this._settings&&(R.options=this._settings),R}static build(M){return new A.Template(M.template,M.options)}isDynamic(){return!!this._template}static isTemplate(M){return!!M&&!!M[d.symbols.template]}refs(){if(!this._template)return;const M=[];for(const R of this._template)typeof R!="string"&&M.push(...R.refs);return M}resolve(M,R,N,C){return this._template&&this._template.length===1?this._part(this._template[0],M,R,N,C,{}):this.render(M,R,N,C)}_part(M){for(var R=arguments.length,N=new Array(R>1?R-1:0),C=1;C4&&arguments[4]!==void 0?arguments[4]:{};if(!this.isDynamic())return this.rendered;const O=[];for(const D of this._template)if(typeof D=="string")O.push(D);else{const q=this._part(D,M,R,N,C,B),W=A.stringify(q,M,R,N,C,B);if(W!==void 0){const k=D.raw||(B.errors&&B.errors.escapeHtml)===!1?W:h(W);O.push(A.wrap(k,D.wrapped&&N.errors.wrap.label))}}return O.join("")}_ref(M,R){let{raw:N,wrapped:C}=R;const B=[],O=q=>{const W=w.create(q,this._settings);return B.push(W),k=>W.resolve(...k)};try{var D=new p.Parser(M,{reference:O,functions:A.functions,constants:A.constants})}catch(q){throw q.message=`Invalid template variable "${M}" fails due to: ${q.message}`,q}if(D.single){if(D.single.type==="reference"){const q=B[0];return{ref:q,raw:N,refs:B,wrapped:C||q.type==="local"&&q.key==="label"}}return A.stringify(D.single.value)}return{formula:D,raw:N,refs:B}}toString(){return this.source}},A.Template.prototype[d.symbols.template]=!0,A.Template.prototype.isImmutable=!0,A.encode=function(M){return M.replace(/\\(\{+)/g,(R,N)=>A.opens.slice(0,N.length)).replace(/\\(\}+)/g,(R,N)=>A.closes.slice(0,N.length))},A.decode=function(M){return M.replace(/\u0000/g,"{").replace(/\u0001/g,"}")},A.split=function(M){const R=[];let N="";for(let C=0;C5&&arguments[5]!==void 0?arguments[5]:{};const D=typeof M,q=C&&C.errors&&C.errors.wrap||{};let W=!1;if(w.isRef(M)&&M.render&&(W=M.in,M=M.resolve(R,N,C,B,{in:M.in,...O})),M===null)return"null";if(D==="string")return A.wrap(M,O.arrayItems&&q.string);if(D==="number"||D==="function"||D==="symbol")return M.toString();if(D!=="object")return JSON.stringify(M);if(M instanceof Date)return A.Template.date(M,C);if(M instanceof Map){const I=[];for(const[H,P]of M.entries())I.push(`${H.toString()} -> ${P.toString()}`);M=I}if(!Array.isArray(M))return M.toString();const k=[];for(const I of M)k.push(A.stringify(I,R,N,C,B,{arrayItems:!0,...O}));return A.wrap(k.join(", "),!W&&q.array)},A.constants={true:!0,false:!1,null:null,second:1e3,minute:6e4,hour:36e5,day:864e5},A.functions={if:(M,R,N)=>M?R:N,length:M=>typeof M=="string"?M.length:M&&typeof M=="object"?Array.isArray(M)?M.length:Object.keys(M).length:null,msg(M){const[R,N,C,B,O]=this,D=O.messages;if(!D)return"";const q=v.template(R,D[0],M,N,C)||v.template(R,D[1],M,N,C);return q?q.render(R,N,C,B,O):""},number:M=>typeof M=="number"?M:typeof M=="string"?parseFloat(M):typeof M=="boolean"?M?1:0:M instanceof Date?M.getTime():null}},4946:(s,i,o)=>{const f=o(375),u=o(1687),h=o(8068),p=o(8160),d=o(3292),v=o(6354),w=o(6133),A={};s.exports=h.extend({type:"alternatives",flags:{match:{default:"any"}},terms:{matches:{init:[],register:w.toSibling}},args(M){for(var R=arguments.length,N=new Array(R>1?R-1:0),C=1;Cv.details(I,{override:!1}))})};if(N._flags.match==="one")return q.length===1?{value:q[0]}:{errors:C("alternatives.one")};if(q.length!==N.$_terms.matches.length)return{errors:C("alternatives.all",{details:W.map(I=>v.details(I,{override:!1}))})};const k=I=>I.$_terms.matches.some(H=>H.schema.type==="object"||H.schema.type==="alternatives"&&k(H.schema));return k(N)?{value:q.reduce((I,H)=>u(I,H,{mergeArrays:!1}))}:{value:q[q.length-1]}}const D=[];for(let q=0;qN.path[0]!=="is"?R.label(M):void 0,ref:!1})}},rebuild(M){M.$_modify({each:R=>{p.isSchema(R)&&R.type==="array"&&M.$_setFlag("_arrayItems",!0,{clone:!1})}})},manifest:{build(M,R){if(R.matches)for(const N of R.matches){const{schema:C,ref:B,is:O,not:D,then:q,otherwise:W}=N;M=C?M.try(C):B?M.conditional(B,{is:O,then:q,not:D,otherwise:W,switch:N.switch}):M.conditional(O,{then:q,otherwise:W})}return M}},messages:{"alternatives.all":"{{#label}} does not match all of the required types","alternatives.any":"{{#label}} does not match any of the allowed types","alternatives.match":"{{#label}} does not match any of the allowed types","alternatives.one":"{{#label}} matches more than one allowed type","alternatives.types":"{{#label}} must be one of {{#types}}"}}),A.errors=function(M,R){let{error:N,state:C}=R;if(!M.length)return{errors:N("alternatives.any")};if(M.length===1)return{errors:M[0].reports};const B=new Set,O=[];for(const{reports:D,schema:q}of M){if(D.length>1)return A.unmatched(M,N);const W=D[0];if(W instanceof v.Report==0)return A.unmatched(M,N);if(W.state.path.length!==C.path.length){O.push({type:q.type,report:W});continue}if(W.code==="any.only"){for(const H of W.local.valids)B.add(H);continue}const[k,I]=W.code.split(".");I==="base"?B.add(k):O.push({type:q.type,report:W})}return O.length?O.length===1?{errors:O[0].report}:A.unmatched(M,N):{errors:N("alternatives.types",{types:[...B]})}},A.unmatched=function(M,R){const N=[];for(const C of M)N.push(...C.reports);return{errors:R("alternatives.match",v.details(N,{override:!1}))}}},8068:(s,i,o)=>{const f=o(375),u=o(7629),h=o(8160),p=o(6914);s.exports=u.extend({type:"any",flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(d,v){return f(typeof d=="function","Method must be a function"),f(v===void 0||v&&typeof v=="string","Description must be a non-empty string"),this.$_addRule({name:"custom",args:{method:d,description:v}})},validate(d,v,w){let{method:A}=w;try{return A(d,v)}catch(M){return v.error("any.custom",{error:M})}},args:["method","description"],multi:!0},messages:{method(d){return this.prefs({messages:d})}},shared:{method(d){f(h.isSchema(d)&&d._flags.id,"Schema must be a schema with an id");const v=this.clone();return v.$_terms.shared=v.$_terms.shared||[],v.$_terms.shared.push(d),v.$_mutateRegister(d),v}},warning:{method(d,v){return f(d&&typeof d=="string","Invalid warning code"),this.$_addRule({name:"warning",args:{code:d,local:v},warn:!0})},validate(d,v,w){let{code:A,local:M}=w;return v.error(A,M)},args:["code","local"],multi:!0}},modifiers:{keep(d){let v=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];d.keep=v},message(d,v){d.message=p.compile(v)},warn(d){let v=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];d.warn=v}},manifest:{build(d,v){for(const w in v){const A=v[w];if(["examples","externals","metas","notes","tags"].includes(w))for(const M of A)d=d[w.slice(0,-1)](M);else if(w!=="alterations")if(w!=="whens"){if(w==="shared")for(const M of A)d=d.shared(M)}else for(const M of A){const{ref:R,is:N,not:C,then:B,otherwise:O,concat:D}=M;d=D?d.concat(D):R?d.when(R,{is:N,not:C,then:B,otherwise:O,switch:M.switch,break:M.break}):d.when(N,{then:B,otherwise:O,break:M.break})}else{const M={};for(const{target:R,adjuster:N}of A)M[R]=N;d=d.alter(M)}}return d}},messages:{"any.custom":"{{#label}} failed custom validation because {{#error.message}}","any.default":"{{#label}} threw an error when running default method","any.failover":"{{#label}} threw an error when running failover method","any.invalid":"{{#label}} contains an invalid value","any.only":'{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}',"any.ref":"{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}","any.required":"{{#label}} is required","any.unknown":"{{#label}} is not allowed"}})},546:(s,i,o)=>{const f=o(375),u=o(9474),h=o(9621),p=o(8068),d=o(8160),v=o(3292),w={};s.exports=p.extend({type:"array",flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:"schema"},ordered:{init:[],manifest:"schema"},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:"object",method(A,M){let{schema:R,state:N,prefs:C}=M;if(!Array.isArray(A))return;const B=R.$_getRule("sort");return B?w.sort(R,A,B.args.options,N,C):void 0}},validate(A,M){let{schema:R,error:N}=M;if(!Array.isArray(A)){if(R._flags.single){const C=[A];return C[d.symbols.arraySingle]=!0,{value:C}}return{errors:N("array.base")}}if(R.$_getRule("items")||R.$_terms.externals)return{value:A.slice()}},rules:{has:{method(A){A=this.$_compile(A,{appendPath:!0});const M=this.$_addRule({name:"has",args:{schema:A}});return M.$_mutateRegister(A),M},validate(A,M,R){let{state:N,prefs:C,error:B}=M,{schema:O}=R;const D=[A,...N.ancestors];for(let W=0;Wthis.$_compile(M[C]),C,{append:!0});N.$_terms.items.push(B)}return N.$_mutateRebuild()},validate(A,M){let{schema:R,error:N,state:C,prefs:B,errorsArray:O}=M;const D=R.$_terms._requireds.slice(),q=R.$_terms.ordered.slice(),W=[...R.$_terms._inclusions,...D],k=!A[d.symbols.arraySingle];delete A[d.symbols.arraySingle];const I=O();let H=A.length;for(let P=0;P="})}},ordered:{method(){for(var A=arguments.length,M=new Array(A),R=0;Rthis.$_compile(M[C]),C,{append:!0});w.validateSingle(B,N),N.$_mutateRegister(B),N.$_terms.ordered.push(B)}return N.$_mutateRebuild()}},single:{method(A){const M=A===void 0||!!A;return f(!M||!this._flags._arrayItems,"Cannot specify single rule when array has array items"),this.$_setFlag("single",M)}},sort:{method(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};d.assertOptions(A,["by","order"]);const M={order:A.order||"ascending"};return A.by&&(M.by=v.ref(A.by,{ancestor:0}),f(!M.by.ancestor,"Cannot sort by ancestor")),this.$_addRule({name:"sort",args:{options:M}})},validate(A,M,R){let{error:N,state:C,prefs:B,schema:O}=M,{options:D}=R;const{value:q,errors:W}=w.sort(O,A,D,C,B);if(W)return W;for(let k=0;k1&&arguments[1]!==void 0?arguments[1]:{};f(!A||typeof A=="function"||typeof A=="string","comparator must be a function or a string"),d.assertOptions(M,["ignoreUndefined","separator"]);const R={name:"unique",args:{options:M,comparator:A}};if(A)if(typeof A=="string"){const N=d.default(M.separator,".");R.path=N?A.split(N):[A]}else R.comparator=A;return this.$_addRule(R)},validate(A,M,R,N){let{state:C,error:B,schema:O}=M,{comparator:D,options:q}=R,{comparator:W,path:k}=N;const I={string:Object.create(null),number:Object.create(null),undefined:Object.create(null),boolean:Object.create(null),object:new Map,function:new Map,custom:new Map},H=W||u,P=q.ignoreUndefined;for(let T=0;Tnew Set(A)}},rebuild(A){A.$_terms._inclusions=[],A.$_terms._exclusions=[],A.$_terms._requireds=[];for(const M of A.$_terms.items)w.validateSingle(M,A),M._flags.presence==="required"?A.$_terms._requireds.push(M):M._flags.presence==="forbidden"?A.$_terms._exclusions.push(M):A.$_terms._inclusions.push(M);for(const M of A.$_terms.ordered)w.validateSingle(M,A)},manifest:{build:(A,M)=>(M.items&&(A=A.items(...M.items)),M.ordered&&(A=A.ordered(...M.ordered)),A)},messages:{"array.base":"{{#label}} must be an array","array.excludes":"{{#label}} contains an excluded value","array.hasKnown":"{{#label}} does not contain at least one required match for type {:#patternLabel}","array.hasUnknown":"{{#label}} does not contain at least one required match","array.includes":"{{#label}} does not match any of the allowed types","array.includesRequiredBoth":"{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)","array.includesRequiredKnowns":"{{#label}} does not contain {{#knownMisses}}","array.includesRequiredUnknowns":"{{#label}} does not contain {{#unknownMisses}} required value(s)","array.length":"{{#label}} must contain {{#limit}} items","array.max":"{{#label}} must contain less than or equal to {{#limit}} items","array.min":"{{#label}} must contain at least {{#limit}} items","array.orderedLength":"{{#label}} must contain at most {{#limit}} items","array.sort":"{{#label}} must be sorted in {#order} order by {{#by}}","array.sort.mismatching":"{{#label}} cannot be sorted due to mismatching types","array.sort.unsupported":"{{#label}} cannot be sorted due to unsupported type {#type}","array.sparse":"{{#label}} must not be a sparse array item","array.unique":"{{#label}} contains a duplicate value"}}),w.fillMissedErrors=function(A,M,R,N,C,B){const O=[];let D=0;for(const q of R){const W=q._flags.label;W?O.push(W):++D}O.length?D?M.push(A.$_createError("array.includesRequiredBoth",N,{knownMisses:O,unknownMisses:D},C,B)):M.push(A.$_createError("array.includesRequiredKnowns",N,{knownMisses:O},C,B)):M.push(A.$_createError("array.includesRequiredUnknowns",N,{unknownMisses:D},C,B))},w.fillOrderedErrors=function(A,M,R,N,C,B){const O=[];for(const D of R)D._flags.presence==="required"&&O.push(D);O.length&&w.fillMissedErrors(A,M,O,N,C,B)},w.fillDefault=function(A,M,R,N){const C=[];let B=!0;for(let O=A.length-1;O>=0;--O){const D=A[O],q=[M,...R.ancestors],W=D.$_validate(void 0,R.localize(R.path,q,D),N).value;if(B){if(W===void 0)continue;B=!1}C.unshift(W)}C.length&&M.push(...C)},w.fastSplice=function(A,M){let R=M;for(;R{let I=w.compare(W,k,O,D);if(I!==null||(R.by&&(W=R.by.resolve(W,N,C),k=R.by.resolve(k,N,C)),I=w.compare(W,k,O,D),I!==null))return I;const H=typeof W;if(H!==typeof k)throw A.$_createError("array.sort.mismatching",M,null,N,C);if(H!=="number"&&H!=="string")throw A.$_createError("array.sort.unsupported",M,{type:H},N,C);return H==="number"?(W-k)*B:W{const f=o(375),u=o(8068),h=o(8160),p=o(2036),d={isBool:function(v){return typeof v=="boolean"}};s.exports=u.extend({type:"boolean",flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:"values"},truthy:{init:null,manifest:"values"}},coerce(v,w){let{schema:A}=w;if(typeof v!="boolean"){if(typeof v=="string"){const M=A._flags.sensitive?v:v.toLowerCase();v=M==="true"||M!=="false"&&v}return typeof v!="boolean"&&(v=A.$_terms.truthy&&A.$_terms.truthy.has(v,null,null,!A._flags.sensitive)||(!A.$_terms.falsy||!A.$_terms.falsy.has(v,null,null,!A._flags.sensitive))&&v),{value:v}}},validate(v,w){let{error:A}=w;if(typeof v!="boolean")return{value:v,errors:A("boolean.base")}},rules:{truthy:{method(){for(var v=arguments.length,w=new Array(v),A=0;A0&&arguments[0]!==void 0)||arguments[0];return this.$_setFlag("sensitive",v)}}},cast:{number:{from:d.isBool,to:(v,w)=>v?1:0},string:{from:d.isBool,to:(v,w)=>v?"true":"false"}},manifest:{build:(v,w)=>(w.truthy&&(v=v.truthy(...w.truthy)),w.falsy&&(v=v.falsy(...w.falsy)),v)},messages:{"boolean.base":"{{#label}} must be a boolean"}})},7500:(s,i,o)=>{const f=o(375),u=o(8068),h=o(8160),p=o(3328),d={isDate:function(v){return v instanceof Date}};s.exports=u.extend({type:"date",coerce:{from:["number","string"],method(v,w){let{schema:A}=w;return{value:d.parse(v,A._flags.format)||v}}},validate(v,w){let{schema:A,error:M,prefs:R}=w;if(v instanceof Date&&!isNaN(v.getTime()))return;const N=A._flags.format;return R.convert&&N&&typeof v=="string"?{value:v,errors:M("date.format",{format:N})}:{value:v,errors:M("date.base")}},rules:{compare:{method:!1,validate(v,w,A,M){let{date:R}=A,{name:N,operator:C,args:B}=M;const O=R==="now"?Date.now():R.getTime();return h.compare(v.getTime(),O,C)?v:w.error("date."+N,{limit:B.date,value:v})},args:[{name:"date",ref:!0,normalize:v=>v==="now"?v:d.parse(v),assert:v=>v!==null,message:"must have a valid date format"}]},format:{method(v){return f(["iso","javascript","unix"].includes(v),"Unknown date format",v),this.$_setFlag("format",v)}},greater:{method(v){return this.$_addRule({name:"greater",method:"compare",args:{date:v},operator:">"})}},iso:{method(){return this.format("iso")}},less:{method(v){return this.$_addRule({name:"less",method:"compare",args:{date:v},operator:"<"})}},max:{method(v){return this.$_addRule({name:"max",method:"compare",args:{date:v},operator:"<="})}},min:{method(v){return this.$_addRule({name:"min",method:"compare",args:{date:v},operator:">="})}},timestamp:{method(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"javascript";return f(["javascript","unix"].includes(v),'"type" must be one of "javascript, unix"'),this.format(v)}}},cast:{number:{from:d.isDate,to:(v,w)=>v.getTime()},string:{from:d.isDate,to(v,w){let{prefs:A}=w;return p.date(v,A)}}},messages:{"date.base":"{{#label}} must be a valid date","date.format":'{{#label}} must be in {msg("date.format." + #format) || #format} format',"date.greater":"{{#label}} must be greater than {{:#limit}}","date.less":"{{#label}} must be less than {{:#limit}}","date.max":"{{#label}} must be less than or equal to {{:#limit}}","date.min":"{{#label}} must be greater than or equal to {{:#limit}}","date.format.iso":"ISO 8601 date","date.format.javascript":"timestamp or number of milliseconds","date.format.unix":"timestamp or number of seconds"}}),d.parse=function(v,w){if(v instanceof Date)return v;if(typeof v!="string"&&(isNaN(v)||!isFinite(v))||/^\s*$/.test(v))return null;if(w==="iso")return h.isIsoDate(v)?d.date(v.toString()):null;const A=v;if(typeof v=="string"&&/^[+-]?\d+(\.\d+)?$/.test(v)&&(v=parseFloat(v)),w){if(w==="javascript")return d.date(1*v);if(w==="unix")return d.date(1e3*v);if(typeof A=="string")return null}return d.date(v)},d.date=function(v){const w=new Date(v);return isNaN(w.getTime())?null:w}},390:(s,i,o)=>{const f=o(375),u=o(7824);s.exports=u.extend({type:"function",properties:{typeof:"function"},rules:{arity:{method(h){return f(Number.isSafeInteger(h)&&h>=0,"n must be a positive integer"),this.$_addRule({name:"arity",args:{n:h}})},validate(h,p,d){let{n:v}=d;return h.length===v?h:p.error("function.arity",{n:v})}},class:{method(){return this.$_addRule("class")},validate:(h,p)=>/^\s*class\s/.test(h.toString())?h:p.error("function.class",{value:h})},minArity:{method(h){return f(Number.isSafeInteger(h)&&h>0,"n must be a strict positive integer"),this.$_addRule({name:"minArity",args:{n:h}})},validate(h,p,d){let{n:v}=d;return h.length>=v?h:p.error("function.minArity",{n:v})}},maxArity:{method(h){return f(Number.isSafeInteger(h)&&h>=0,"n must be a positive integer"),this.$_addRule({name:"maxArity",args:{n:h}})},validate(h,p,d){let{n:v}=d;return h.length<=v?h:p.error("function.maxArity",{n:v})}}},messages:{"function.arity":"{{#label}} must have an arity of {{#n}}","function.class":"{{#label}} must be a class","function.maxArity":"{{#label}} must have an arity lesser or equal to {{#n}}","function.minArity":"{{#label}} must have an arity greater or equal to {{#n}}"}})},7824:(s,i,o)=>{const f=o(978),u=o(375),h=o(8571),p=o(3652),d=o(8068),v=o(8160),w=o(3292),A=o(6354),M=o(6133),R=o(3328),N={renameDefaults:{alias:!1,multiple:!1,override:!1}};s.exports=d.extend({type:"_keys",properties:{typeof:"object"},flags:{unknown:{default:!1}},terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:"schema",to:"key"}}},patterns:{init:null},renames:{init:null}},args:(C,B)=>C.keys(B),validate(C,B){let{schema:O,error:D,state:q,prefs:W}=B;if(!C||typeof C!==O.$_property("typeof")||Array.isArray(C))return{value:C,errors:D("object.base",{type:O.$_property("typeof")})};if(!(O.$_terms.renames||O.$_terms.dependencies||O.$_terms.keys||O.$_terms.patterns||O.$_terms.externals))return;C=N.clone(C,W);const k=[];if(O.$_terms.renames&&!N.rename(O,C,q,W,k))return{value:C,errors:k};if(!O.$_terms.keys&&!O.$_terms.patterns&&!O.$_terms.dependencies)return{value:C,errors:k};const I=new Set(Object.keys(C));if(O.$_terms.keys){const H=[C,...q.ancestors];for(const P of O.$_terms.keys){const T=P.key,g=C[T];I.delete(T);const a=q.localize([...q.path,T],H,P),c=P.schema.$_validate(g,a,W);if(c.errors){if(W.abortEarly)return{value:C,errors:c.errors};c.value!==void 0&&(C[T]=c.value),k.push(...c.errors)}else P.schema._flags.result==="strip"||c.value===void 0&&g!==void 0?delete C[T]:c.value!==void 0&&(C[T]=c.value)}}if(I.size||O._flags._hasPatternMatch){const H=N.unknown(O,C,I,k,q,W);if(H)return H}if(O.$_terms.dependencies)for(const H of O.$_terms.dependencies){if(H.key!==null&&N.isPresent(H.options)(H.key.resolve(C,q,W,null,{shadow:!1}))===!1)continue;const P=N.dependencies[H.rel](O,H,C,q,W);if(P){const T=O.$_createError(P.code,C,P.context,q,W);if(W.abortEarly)return{value:C,errors:T};k.push(T)}}return{value:C,errors:k}},rules:{and:{method(){for(var C=arguments.length,B=new Array(C),O=0;O!C.hasOwnProperty(O.key)):new N.Keys;for(const O in C)v.tryWithPath(()=>B.$_terms.keys.push({key:O,schema:this.$_compile(C[O])}),O)}else B.$_terms.keys=new N.Keys;else B.$_terms.keys=null;return B.$_mutateRebuild()}},length:{method(C){return this.$_addRule({name:"length",args:{limit:C},operator:"="})},validate(C,B,O,D){let{limit:q}=O,{name:W,operator:k,args:I}=D;return v.compare(Object.keys(C).length,q,k)?C:B.error("object."+W,{limit:I.limit,value:C})},args:[{name:"limit",ref:!0,assert:v.limit,message:"must be a positive integer"}]},max:{method(C){return this.$_addRule({name:"max",method:"length",args:{limit:C},operator:"<="})}},min:{method(C){return this.$_addRule({name:"min",method:"length",args:{limit:C},operator:">="})}},nand:{method(){for(var C=arguments.length,B=new Array(C),O=0;O2&&arguments[2]!==void 0?arguments[2]:{};const D=C instanceof RegExp;D||(C=this.$_compile(C,{appendPath:!0})),u(B!==void 0,"Invalid rule"),v.assertOptions(O,["fallthrough","matches"]),D&&u(!C.flags.includes("g")&&!C.flags.includes("y"),"pattern should not use global or sticky mode"),B=this.$_compile(B,{appendPath:!0});const q=this.clone();q.$_terms.patterns=q.$_terms.patterns||[];const W={[D?"regex":"schema"]:C,rule:B};return O.matches&&(W.matches=this.$_compile(O.matches),W.matches.type!=="array"&&(W.matches=W.matches.$_root.array().items(W.matches)),q.$_mutateRegister(W.matches),q.$_setFlag("_hasPatternMatch",!0,{clone:!1})),O.fallthrough&&(W.fallthrough=!0),q.$_terms.patterns.push(W),q.$_mutateRegister(B),q}},ref:{method(){return this.$_addRule("ref")},validate:(C,B)=>M.isRef(C)?C:B.error("object.refType",{value:C})},regex:{method(){return this.$_addRule("regex")},validate:(C,B)=>C instanceof RegExp?C:B.error("object.regex",{value:C})},rename:{method(C,B){let O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};u(typeof C=="string"||C instanceof RegExp,"Rename missing the from argument"),u(typeof B=="string"||B instanceof R,"Invalid rename to argument"),u(B!==C,"Cannot rename key to same name:",C),v.assertOptions(O,["alias","ignoreUndefined","override","multiple"]);const D=this.clone();D.$_terms.renames=D.$_terms.renames||[];for(const q of D.$_terms.renames)u(q.from!==C,"Cannot rename the same key multiple times");return B instanceof R&&D.$_mutateRegister(B),D.$_terms.renames.push({from:C,to:B,options:f(N.renameDefaults,O)}),D}},schema:{method(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"any";return this.$_addRule({name:"schema",args:{type:C}})},validate(C,B,O){let{type:D}=O;return!v.isSchema(C)||D!=="any"&&C.type!==D?B.error("object.schema",{type:D}):C}},unknown:{method(C){return this.$_setFlag("unknown",C!==!1)}},with:{method(C,B){let O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return N.dependency(this,"with",C,B,O)}},without:{method(C,B){let O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return N.dependency(this,"without",C,B,O)}},xor:{method(){for(var C=arguments.length,B=new Array(C),O=0;OB.add(O,{after:O.schema.$_rootReferences(),group:O.key}),O.key);C.$_terms.keys=new N.Keys(...B.nodes)}},manifest:{build(C,B){if(B.keys&&(C=C.keys(B.keys)),B.dependencies)for(const{rel:O,key:D=null,peers:q,options:W}of B.dependencies)C=N.dependency(C,O,D,q,W);if(B.patterns)for(const{regex:O,schema:D,rule:q,fallthrough:W,matches:k}of B.patterns)C=C.pattern(O||D,q,{fallthrough:W,matches:k});if(B.renames)for(const{from:O,to:D,options:q}of B.renames)C=C.rename(O,D,q);return C}},messages:{"object.and":"{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}","object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":"{{#label}} must be of type {{#type}}","object.instance":"{{#label}} must be an instance of {{:#type}}","object.length":'{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}',"object.max":'{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}',"object.min":'{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}',"object.missing":"{{#label}} must contain at least one of {{#peersWithLabels}}","object.nand":"{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}","object.oxor":"{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}","object.pattern.match":"{{#label}} keys failed to match pattern requirements","object.refType":"{{#label}} must be a Joi reference","object.regex":"{{#label}} must be a RegExp object","object.rename.multiple":"{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}","object.rename.override":"{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists","object.schema":"{{#label}} must be a Joi schema of {{#type}} type","object.unknown":"{{#label}} is not allowed","object.with":"{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}","object.without":"{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}","object.xor":"{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}"}}),N.clone=function(C,B){if(typeof C=="object"){if(B.nonEnumerables)return h(C,{shallow:!0});const D=Object.create(Object.getPrototypeOf(C));return Object.assign(D,C),D}const O=function(){for(var D=arguments.length,q=new Array(D),W=0;W1&&typeof D[D.length-1]=="object"?D.pop():{}),v.assertOptions(q,["separator","isPresent"]),D=[].concat(D);const W=v.default(q.separator,"."),k=[];for(const H of D)u(typeof H=="string",B,"peers must be strings"),k.push(w.ref(H,{separator:W,ancestor:0,prefix:!1}));O!==null&&(O=w.ref(O,{separator:W,ancestor:0,prefix:!1}));const I=C.clone();return I.$_terms.dependencies=I.$_terms.dependencies||[],I.$_terms.dependencies.push(new N.Dependency(B,O,k,D,q)),I},N.dependencies={and(C,B,O,D,q){const W=[],k=[],I=B.peers.length,H=N.isPresent(B.options);for(const P of B.peers)H(P.resolve(O,D,q,null,{shadow:!1}))===!1?W.push(P.key):k.push(P.key);if(W.length!==I&&k.length!==I)return{code:"object.and",context:{present:k,presentWithLabels:N.keysToLabels(C,k),missing:W,missingWithLabels:N.keysToLabels(C,W)}}},nand(C,B,O,D,q){const W=[],k=N.isPresent(B.options);for(const P of B.peers)k(P.resolve(O,D,q,null,{shadow:!1}))&&W.push(P.key);if(W.length!==B.peers.length)return;const I=B.paths[0],H=B.paths.slice(1);return{code:"object.nand",context:{main:I,mainWithLabel:N.keysToLabels(C,I),peers:H,peersWithLabels:N.keysToLabels(C,H)}}},or(C,B,O,D,q){const W=N.isPresent(B.options);for(const k of B.peers)if(W(k.resolve(O,D,q,null,{shadow:!1})))return;return{code:"object.missing",context:{peers:B.paths,peersWithLabels:N.keysToLabels(C,B.paths)}}},oxor(C,B,O,D,q){const W=[],k=N.isPresent(B.options);for(const H of B.peers)k(H.resolve(O,D,q,null,{shadow:!1}))&&W.push(H.key);if(!W.length||W.length===1)return;const I={peers:B.paths,peersWithLabels:N.keysToLabels(C,B.paths)};return I.present=W,I.presentWithLabels=N.keysToLabels(C,W),{code:"object.oxor",context:I}},with(C,B,O,D,q){const W=N.isPresent(B.options);for(const k of B.peers)if(W(k.resolve(O,D,q,null,{shadow:!1}))===!1)return{code:"object.with",context:{main:B.key.key,mainWithLabel:N.keysToLabels(C,B.key.key),peer:k.key,peerWithLabel:N.keysToLabels(C,k.key)}}},without(C,B,O,D,q){const W=N.isPresent(B.options);for(const k of B.peers)if(W(k.resolve(O,D,q,null,{shadow:!1})))return{code:"object.without",context:{main:B.key.key,mainWithLabel:N.keysToLabels(C,B.key.key),peer:k.key,peerWithLabel:N.keysToLabels(C,k.key)}}},xor(C,B,O,D,q){const W=[],k=N.isPresent(B.options);for(const H of B.peers)k(H.resolve(O,D,q,null,{shadow:!1}))&&W.push(H.key);if(W.length===1)return;const I={peers:B.paths,peersWithLabels:N.keysToLabels(C,B.paths)};return W.length===0?{code:"object.missing",context:I}:(I.present=W,I.presentWithLabels=N.keysToLabels(C,W),{code:"object.xor",context:I})}},N.keysToLabels=function(C,B){return Array.isArray(B)?B.map(O=>C.$_mapLabels(O)):C.$_mapLabels(B)},N.isPresent=function(C){return typeof C.isPresent=="function"?C.isPresent:B=>B!==void 0},N.rename=function(C,B,O,D,q){const W={};for(const k of C.$_terms.renames){const I=[],H=typeof k.from!="string";if(H)for(const P in B){if(B[P]===void 0&&k.options.ignoreUndefined||P===k.to)continue;const T=k.from.exec(P);T&&I.push({from:P,to:k.to,match:T})}else!Object.prototype.hasOwnProperty.call(B,k.from)||B[k.from]===void 0&&k.options.ignoreUndefined||I.push(k);for(const P of I){const T=P.from;let g=P.to;if(g instanceof R&&(g=g.render(B,O,D,P.match)),T!==g){if(!k.options.multiple&&W[g]&&(q.push(C.$_createError("object.rename.multiple",B,{from:T,to:g,pattern:H},O,D)),D.abortEarly)||Object.prototype.hasOwnProperty.call(B,g)&&!k.options.override&&!W[g]&&(q.push(C.$_createError("object.rename.override",B,{from:T,to:g,pattern:H},O,D)),D.abortEarly))return!1;B[T]===void 0?delete B[g]:B[g]=B[T],W[g]=!0,k.options.alias||delete B[T]}}}return!0},N.unknown=function(C,B,O,D,q,W){if(C.$_terms.patterns){let k=!1;const I=C.$_terms.patterns.map(P=>{if(P.matches)return k=!0,[]}),H=[B,...q.ancestors];for(const P of O){const T=B[P],g=[...q.path,P];for(let a=0;a{const f=o(375),u=o(8068),h=o(8160),p=o(3292),d=o(6354),v={};s.exports=u.extend({type:"link",properties:{schemaChain:!0},terms:{link:{init:null,manifest:"single",register:!1}},args:(w,A)=>w.ref(A),validate(w,A){let{schema:M,state:R,prefs:N}=A;f(M.$_terms.link,"Uninitialized link schema");const C=v.generate(M,w,R,N),B=M.$_terms.link[0].ref;return C.$_validate(w,R.nest(C,`link:${B.display}:${C.type}`),N)},generate:(w,A,M,R)=>v.generate(w,A,M,R),rules:{ref:{method(w){f(!this.$_terms.link,"Cannot reinitialize schema"),w=p.ref(w),f(w.type==="value"||w.type==="local","Invalid reference type:",w.type),f(w.type==="local"||w.ancestor==="root"||w.ancestor>0,"Link cannot reference itself");const A=this.clone();return A.$_terms.link=[{ref:w}],A}},relative:{method(){let w=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.$_setFlag("relative",w)}}},overrides:{concat(w){f(this.$_terms.link,"Uninitialized link schema"),f(h.isSchema(w),"Invalid schema object"),f(w.type!=="link","Cannot merge type link with another link");const A=this.clone();return A.$_terms.whens||(A.$_terms.whens=[]),A.$_terms.whens.push({concat:w}),A.$_mutateRebuild()}},manifest:{build:(w,A)=>(f(A.link,"Invalid link description missing link"),w.ref(A.link))}}),v.generate=function(w,A,M,R){let N=M.mainstay.links.get(w);if(N)return N._generate(A,M,R).schema;const C=w.$_terms.link[0].ref,{perspective:B,path:O}=v.perspective(C,M);v.assert(B,"which is outside of schema boundaries",C,w,M,R);try{N=O.length?B.$_reach(O):B}catch{v.assert(!1,"to non-existing schema",C,w,M,R)}return v.assert(N.type!=="link","which is another link",C,w,M,R),w._flags.relative||M.mainstay.links.set(w,N),N._generate(A,M,R).schema},v.perspective=function(w,A){if(w.type==="local"){for(const{schema:M,key:R}of A.schemas){if((M._flags.id||R)===w.path[0])return{perspective:M,path:w.path.slice(1)};if(M.$_terms.shared){for(const N of M.$_terms.shared)if(N._flags.id===w.path[0])return{perspective:N,path:w.path.slice(1)}}}return{perspective:null,path:null}}return w.ancestor==="root"?{perspective:A.schemas[A.schemas.length-1].schema,path:w.path}:{perspective:A.schemas[w.ancestor]&&A.schemas[w.ancestor].schema,path:w.path}},v.assert=function(w,A,M,R,N,C){w||f(!1,`"${d.label(R._flags,N,C)}" contains link reference "${M.display}" ${A}`)}},3832:(s,i,o)=>{const f=o(375),u=o(8068),h=o(8160),p={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/,exponentialPartRegex:/[eE][+-]?\d+$/,leadingSignAndZerosRegex:/^[+-]?(0*)?/,dotRegex:/\./,trailingZerosRegex:/0+$/};s.exports=u.extend({type:"number",flags:{unsafe:{default:!1}},coerce:{from:"string",method(d,v){let{schema:w,error:A}=v;if(!d.match(p.numberRx))return;d=d.trim();const M={value:parseFloat(d)};if(M.value===0&&(M.value=0),!w._flags.unsafe)if(d.match(/e/i)){if(p.extractSignificantDigits(d)!==p.extractSignificantDigits(String(M.value)))return M.errors=A("number.unsafe"),M}else{const R=M.value.toString();if(R.match(/e/i))return M;if(R!==p.normalizeDecimal(d))return M.errors=A("number.unsafe"),M}return M}},validate(d,v){let{schema:w,error:A,prefs:M}=v;if(d===1/0||d===-1/0)return{value:d,errors:A("number.infinity")};if(!h.isNumber(d))return{value:d,errors:A("number.base")};const R={value:d};if(M.convert){const N=w.$_getRule("precision");if(N){const C=Math.pow(10,N.args.limit);R.value=Math.round(R.value*C)/C}}return R.value===0&&(R.value=0),!w._flags.unsafe&&(d>Number.MAX_SAFE_INTEGER||d"})}},integer:{method(){return this.$_addRule("integer")},validate:(d,v)=>Math.trunc(d)-d==0?d:v.error("number.integer")},less:{method(d){return this.$_addRule({name:"less",method:"compare",args:{limit:d},operator:"<"})}},max:{method(d){return this.$_addRule({name:"max",method:"compare",args:{limit:d},operator:"<="})}},min:{method(d){return this.$_addRule({name:"min",method:"compare",args:{limit:d},operator:">="})}},multiple:{method(d){return this.$_addRule({name:"multiple",args:{base:d}})},validate(d,v,w,A){let{base:M}=w;return d*(1/M)%1==0?d:v.error("number.multiple",{multiple:A.args.base,value:d})},args:[{name:"base",ref:!0,assert:d=>typeof d=="number"&&isFinite(d)&&d>0,message:"must be a positive number"}],multi:!0},negative:{method(){return this.sign("negative")}},port:{method(){return this.$_addRule("port")},validate:(d,v)=>Number.isSafeInteger(d)&&d>=0&&d<=65535?d:v.error("number.port")},positive:{method(){return this.sign("positive")}},precision:{method(d){return f(Number.isSafeInteger(d),"limit must be an integer"),this.$_addRule({name:"precision",args:{limit:d}})},validate(d,v,w){let{limit:A}=w;const M=d.toString().match(p.precisionRx);return Math.max((M[1]?M[1].length:0)-(M[2]?parseInt(M[2],10):0),0)<=A?d:v.error("number.precision",{limit:A,value:d})},convert:!0},sign:{method(d){return f(["negative","positive"].includes(d),"Invalid sign",d),this.$_addRule({name:"sign",args:{sign:d}})},validate(d,v,w){let{sign:A}=w;return A==="negative"&&d<0||A==="positive"&&d>0?d:v.error(`number.${A}`)}},unsafe:{method(){let d=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return f(typeof d=="boolean","enabled must be a boolean"),this.$_setFlag("unsafe",d)}}},cast:{string:{from:d=>typeof d=="number",to:(d,v)=>d.toString()}},messages:{"number.base":"{{#label}} must be a number","number.greater":"{{#label}} must be greater than {{#limit}}","number.infinity":"{{#label}} cannot be infinity","number.integer":"{{#label}} must be an integer","number.less":"{{#label}} must be less than {{#limit}}","number.max":"{{#label}} must be less than or equal to {{#limit}}","number.min":"{{#label}} must be greater than or equal to {{#limit}}","number.multiple":"{{#label}} must be a multiple of {{#multiple}}","number.negative":"{{#label}} must be a negative number","number.port":"{{#label}} must be a valid port","number.positive":"{{#label}} must be a positive number","number.precision":"{{#label}} must have no more than {{#limit}} decimal places","number.unsafe":"{{#label}} must be a safe number"}}),p.extractSignificantDigits=function(d){return d.replace(p.exponentialPartRegex,"").replace(p.dotRegex,"").replace(p.trailingZerosRegex,"").replace(p.leadingSignAndZerosRegex,"")},p.normalizeDecimal=function(d){return(d=d.replace(/^\+/,"").replace(/\.0*$/,"").replace(/^(-?)\.([^\.]*)$/,"$10.$2").replace(/^(-?)0+([0-9])/,"$1$2")).includes(".")&&d.endsWith("0")&&(d=d.replace(/0+$/,"")),d==="-0"?"0":d}},8966:(s,i,o)=>{const f=o(7824);s.exports=f.extend({type:"object",cast:{map:{from:u=>u&&typeof u=="object",to:(u,h)=>new Map(Object.entries(u))}}})},7417:(s,i,o)=>{const f=o(375),u=o(5380),h=o(1745),p=o(9959),d=o(6064),v=o(9926),w=o(5752),A=o(8068),M=o(8160),R={tlds:v instanceof Set&&{tlds:{allow:v,deny:null}},base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:/^[a-f0-9]+$/i,ipRegex:p.regex({cidr:"forbidden"}).regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":"}","[":"]","(":")","":""},guidVersions:{uuidv1:"1",uuidv2:"2",uuidv3:"3",uuidv4:"4",uuidv5:"5"},guidSeparators:new Set([void 0,!0,!1,"-",":"]),normalizationForms:["NFC","NFD","NFKC","NFKD"]};s.exports=A.extend({type:"string",flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:"string",method(N,C){let{schema:B,state:O,prefs:D}=C;const q=B.$_getRule("normalize");q&&(N=N.normalize(q.args.form));const W=B.$_getRule("case");W&&(N=W.args.direction==="upper"?N.toLocaleUpperCase():N.toLocaleLowerCase());const k=B.$_getRule("trim");if(k&&k.args.enabled&&(N=N.trim()),B.$_terms.replacements)for(const H of B.$_terms.replacements)N=N.replace(H.pattern,H.replacement);const I=B.$_getRule("hex");if(I&&I.args.options.byteAligned&&N.length%2!=0&&(N=`0${N}`),B.$_getRule("isoDate")){const H=R.isoDate(N);H&&(N=H)}if(B._flags.truncate){const H=B.$_getRule("max");if(H){let P=H.args.limit;if(M.isResolvable(P)&&(P=P.resolve(N,O,D),!M.limit(P)))return{value:N,errors:B.$_createError("any.ref",P,{ref:H.args.limit,arg:"limit",reason:"must be a positive integer"},O,D)};N=N.slice(0,P)}}return{value:N}}},validate(N,C){let{schema:B,error:O}=C;if(typeof N!="string")return{value:N,errors:O("string.base")};if(N===""){const D=B.$_getRule("min");return D&&D.args.limit===0?void 0:{value:N,errors:O("string.empty")}}},rules:{alphanum:{method(){return this.$_addRule("alphanum")},validate:(N,C)=>/^[a-zA-Z0-9]+$/.test(N)?N:C.error("string.alphanum")},base64:{method(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return M.assertOptions(N,["paddingRequired","urlSafe"]),N={urlSafe:!1,paddingRequired:!0,...N},f(typeof N.paddingRequired=="boolean","paddingRequired must be boolean"),f(typeof N.urlSafe=="boolean","urlSafe must be boolean"),this.$_addRule({name:"base64",args:{options:N}})},validate(N,C,B){let{options:O}=B;return R.base64Regex[O.paddingRequired][O.urlSafe].test(N)?N:C.error("string.base64")}},case:{method(N){return f(["lower","upper"].includes(N),"Invalid case:",N),this.$_addRule({name:"case",args:{direction:N}})},validate(N,C,B){let{direction:O}=B;return O==="lower"&&N===N.toLocaleLowerCase()||O==="upper"&&N===N.toLocaleUpperCase()?N:C.error(`string.${O}case`)},convert:!0},creditCard:{method(){return this.$_addRule("creditCard")},validate(N,C){let B=N.length,O=0,D=1;for(;B--;){const q=N.charAt(B)*D;O+=q-9*(q>9),D^=3}return O>0&&O%10==0?N:C.error("string.creditCard")}},dataUri:{method(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return M.assertOptions(N,["paddingRequired"]),N={paddingRequired:!0,...N},f(typeof N.paddingRequired=="boolean","paddingRequired must be boolean"),this.$_addRule({name:"dataUri",args:{options:N}})},validate(N,C,B){let{options:O}=B;const D=N.match(R.dataUriRegex);return D&&(!D[2]||D[2]!=="base64"||R.base64Regex[O.paddingRequired].false.test(D[3]))?N:C.error("string.dataUri")}},domain:{method(N){N&&M.assertOptions(N,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const C=R.addressOptions(N);return this.$_addRule({name:"domain",args:{options:N},address:C})},validate(N,C,B,O){let{address:D}=O;return u.isValid(N,D)?N:C.error("string.domain")}},email:{method(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};M.assertOptions(N,["allowFullyQualified","allowUnicode","ignoreLength","maxDomainSegments","minDomainSegments","multiple","separator","tlds"]),f(N.multiple===void 0||typeof N.multiple=="boolean","multiple option must be an boolean");const C=R.addressOptions(N),B=new RegExp(`\\s*[${N.separator?d(N.separator):","}]\\s*`);return this.$_addRule({name:"email",args:{options:N},regex:B,address:C})},validate(N,C,B,O){let{options:D}=B,{regex:q,address:W}=O;const k=D.multiple?N.split(q):[N],I=[];for(const H of k)h.isValid(H,W)||I.push(H);return I.length?C.error("string.email",{value:N,invalids:I}):N}},guid:{alias:"uuid",method(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};M.assertOptions(N,["version","separator"]);let C="";if(N.version){const D=[].concat(N.version);f(D.length>=1,"version must have at least 1 valid version specified");const q=new Set;for(let W=0;W0&&arguments[0]!==void 0?arguments[0]:{};return M.assertOptions(N,["byteAligned"]),N={byteAligned:!1,...N},f(typeof N.byteAligned=="boolean","byteAligned must be boolean"),this.$_addRule({name:"hex",args:{options:N}})},validate(N,C,B){let{options:O}=B;return R.hexRegex.test(N)?O.byteAligned&&N.length%2!=0?C.error("string.hexAlign"):N:C.error("string.hex")}},hostname:{method(){return this.$_addRule("hostname")},validate:(N,C)=>u.isValid(N,{minDomainSegments:1})||R.ipRegex.test(N)?N:C.error("string.hostname")},insensitive:{method(){return this.$_setFlag("insensitive",!0)}},ip:{method(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};M.assertOptions(N,["cidr","version"]);const{cidr:C,versions:B,regex:O}=p.regex(N),D=N.version?B:void 0;return this.$_addRule({name:"ip",args:{options:{cidr:C,version:D}},regex:O})},validate(N,C,B,O){let{options:D}=B,{regex:q}=O;return q.test(N)?N:D.version?C.error("string.ipVersion",{value:N,cidr:D.cidr,version:D.version}):C.error("string.ip",{value:N,cidr:D.cidr})}},isoDate:{method(){return this.$_addRule("isoDate")},validate(N,C){let{error:B}=C;return R.isoDate(N)?N:B("string.isoDate")}},isoDuration:{method(){return this.$_addRule("isoDuration")},validate:(N,C)=>R.isoDurationRegex.test(N)?N:C.error("string.isoDuration")},length:{method(N,C){return R.length(this,"length",N,"=",C)},validate(N,C,B,O){let{limit:D,encoding:q}=B,{name:W,operator:k,args:I}=O;const H=!q&&N.length;return M.compare(H,D,k)?N:C.error("string."+W,{limit:I.limit,value:N,encoding:q})},args:[{name:"limit",ref:!0,assert:M.limit,message:"must be a positive integer"},"encoding"]},lowercase:{method(){return this.case("lower")}},max:{method(N,C){return R.length(this,"max",N,"<=",C)},args:["limit","encoding"]},min:{method(N,C){return R.length(this,"min",N,">=",C)},args:["limit","encoding"]},normalize:{method(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"NFC";return f(R.normalizationForms.includes(N),"normalization form must be one of "+R.normalizationForms.join(", ")),this.$_addRule({name:"normalize",args:{form:N}})},validate(N,C,B){let{error:O}=C,{form:D}=B;return N===N.normalize(D)?N:O("string.normalize",{value:N,form:D})},convert:!0},pattern:{alias:"regex",method(N){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};f(N instanceof RegExp,"regex must be a RegExp"),f(!N.flags.includes("g")&&!N.flags.includes("y"),"regex should not use global or sticky mode"),typeof C=="string"&&(C={name:C}),M.assertOptions(C,["invert","name"]);const B=["string.pattern",C.invert?".invert":"",C.name?".name":".base"].join("");return this.$_addRule({name:"pattern",args:{regex:N,options:C},errorCode:B})},validate(N,C,B,O){let{regex:D,options:q}=B,{errorCode:W}=O;return D.test(N)^q.invert?N:C.error(W,{name:q.name,regex:D,value:N})},args:["regex","options"],multi:!0},replace:{method(N,C){typeof N=="string"&&(N=new RegExp(d(N),"g")),f(N instanceof RegExp,"pattern must be a RegExp"),f(typeof C=="string","replacement must be a String");const B=this.clone();return B.$_terms.replacements||(B.$_terms.replacements=[]),B.$_terms.replacements.push({pattern:N,replacement:C}),B}},token:{method(){return this.$_addRule("token")},validate:(N,C)=>/^\w+$/.test(N)?N:C.error("string.token")},trim:{method(){let N=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return f(typeof N=="boolean","enabled must be a boolean"),this.$_addRule({name:"trim",args:{enabled:N}})},validate(N,C,B){let{enabled:O}=B;return O&&N!==N.trim()?C.error("string.trim"):N},convert:!0},truncate:{method(){let N=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return f(typeof N=="boolean","enabled must be a boolean"),this.$_setFlag("truncate",N)}},uppercase:{method(){return this.case("upper")}},uri:{method(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};M.assertOptions(N,["allowRelative","allowQuerySquareBrackets","domain","relativeOnly","scheme"]),N.domain&&M.assertOptions(N.domain,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const{regex:C,scheme:B}=w.regex(N),O=N.domain?R.addressOptions(N.domain):null;return this.$_addRule({name:"uri",args:{options:N},regex:C,domain:O,scheme:B})},validate(N,C,B,O){let{options:D}=B,{regex:q,domain:W,scheme:k}=O;if(["http:/","https:/"].includes(N))return C.error("string.uri");const I=q.exec(N);if(I){const H=I[1]||I[2];return!W||D.allowRelative&&!H||u.isValid(H,W)?N:C.error("string.domain",{value:H})}return D.relativeOnly?C.error("string.uriRelativeOnly"):D.scheme?C.error("string.uriCustomScheme",{scheme:k,value:N}):C.error("string.uri")}}},manifest:{build(N,C){if(C.replacements)for(const{pattern:B,replacement:O}of C.replacements)N=N.replace(B,O);return N}},messages:{"string.alphanum":"{{#label}} must only contain alpha-numeric characters","string.base":"{{#label}} must be a string","string.base64":"{{#label}} must be a valid base64 string","string.creditCard":"{{#label}} must be a credit card","string.dataUri":"{{#label}} must be a valid dataUri string","string.domain":"{{#label}} must contain a valid domain name","string.email":"{{#label}} must be a valid email","string.empty":"{{#label}} is not allowed to be empty","string.guid":"{{#label}} must be a valid GUID","string.hex":"{{#label}} must only contain hexadecimal characters","string.hexAlign":"{{#label}} hex decoded representation must be byte aligned","string.hostname":"{{#label}} must be a valid hostname","string.ip":"{{#label}} must be a valid ip address with a {{#cidr}} CIDR","string.ipVersion":"{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR","string.isoDate":"{{#label}} must be in iso format","string.isoDuration":"{{#label}} must be a valid ISO 8601 duration","string.length":"{{#label}} length must be {{#limit}} characters long","string.lowercase":"{{#label}} must only contain lowercase characters","string.max":"{{#label}} length must be less than or equal to {{#limit}} characters long","string.min":"{{#label}} length must be at least {{#limit}} characters long","string.normalize":"{{#label}} must be unicode normalized in the {{#form}} form","string.token":"{{#label}} must only contain alpha-numeric and underscore characters","string.pattern.base":"{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}","string.pattern.name":"{{#label}} with value {:[.]} fails to match the {{#name}} pattern","string.pattern.invert.base":"{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}","string.pattern.invert.name":"{{#label}} with value {:[.]} matches the inverted {{#name}} pattern","string.trim":"{{#label}} must not have leading or trailing whitespace","string.uri":"{{#label}} must be a valid uri","string.uriCustomScheme":"{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern","string.uriRelativeOnly":"{{#label}} must be a valid relative uri","string.uppercase":"{{#label}} must only contain uppercase characters"}}),R.addressOptions=function(N){if(!N||(f(N.minDomainSegments===void 0||Number.isSafeInteger(N.minDomainSegments)&&N.minDomainSegments>0,"minDomainSegments must be a positive integer"),f(N.maxDomainSegments===void 0||Number.isSafeInteger(N.maxDomainSegments)&&N.maxDomainSegments>0,"maxDomainSegments must be a positive integer"),N.tlds===!1))return N;if(N.tlds===!0||N.tlds===void 0)return f(R.tlds,"Built-in TLD list disabled"),Object.assign({},N,R.tlds);f(typeof N.tlds=="object","tlds must be true, false, or an object");const C=N.tlds.deny;if(C)return Array.isArray(C)&&(N=Object.assign({},N,{tlds:{deny:new Set(C)}})),f(N.tlds.deny instanceof Set,"tlds.deny must be an array, Set, or boolean"),f(!N.tlds.allow,"Cannot specify both tlds.allow and tlds.deny lists"),R.validateTlds(N.tlds.deny,"tlds.deny"),N;const B=N.tlds.allow;return B?B===!0?(f(R.tlds,"Built-in TLD list disabled"),Object.assign({},N,R.tlds)):(Array.isArray(B)&&(N=Object.assign({},N,{tlds:{allow:new Set(B)}})),f(N.tlds.allow instanceof Set,"tlds.allow must be an array, Set, or boolean"),R.validateTlds(N.tlds.allow,"tlds.allow"),N):N},R.validateTlds=function(N,C){for(const B of N)f(u.isValid(B,{minDomainSegments:1,maxDomainSegments:1}),`${C} must contain valid top level domain names`)},R.isoDate=function(N){if(!M.isIsoDate(N))return null;/.*T.*[+-]\d\d$/.test(N)&&(N+="00");const C=new Date(N);return isNaN(C.getTime())?null:C.toISOString()},R.length=function(N,C,B,O,D){return f(!D||!1,"Invalid encoding:",D),N.$_addRule({name:C,method:"length",args:{limit:B,encoding:D},operator:O})}},8826:(s,i,o)=>{const f=o(375),u=o(8068),h={};h.Map=class extends Map{slice(){return new h.Map(this)}},s.exports=u.extend({type:"symbol",terms:{map:{init:new h.Map}},coerce:{method(p,d){let{schema:v,error:w}=d;const A=v.$_terms.map.get(p);return A&&(p=A),v._flags.only&&typeof p!="symbol"?{value:p,errors:w("symbol.map",{map:v.$_terms.map})}:{value:p}}},validate(p,d){let{error:v}=d;if(typeof p!="symbol")return{value:p,errors:v("symbol.base")}},rules:{map:{method(p){p&&!p[Symbol.iterator]&&typeof p=="object"&&(p=Object.entries(p)),f(p&&p[Symbol.iterator],"Iterable must be an iterable or object");const d=this.clone(),v=[];for(const w of p){f(w&&w[Symbol.iterator],"Entry must be an iterable");const[A,M]=w;f(typeof A!="object"&&typeof A!="function"&&typeof A!="symbol","Key must not be of type object, function, or Symbol"),f(typeof M=="symbol","Value must be a Symbol"),d.$_terms.map.set(A,M),v.push(M)}return d.valid(...v)}}},manifest:{build:(p,d)=>(d.map&&(p=p.map(d.map)),p)},messages:{"symbol.base":"{{#label}} must be a symbol","symbol.map":"{{#label}} must be one of {{#map}}"}})},8863:(s,i,o)=>{const f=o(375),u=o(8571),h=o(738),p=o(9621),d=o(8160),v=o(6354),w=o(493),A={result:Symbol("result")};i.entry=function(M,R,N){let C=d.defaults;N&&(f(N.warnings===void 0,"Cannot override warnings preference in synchronous validation"),f(N.artifacts===void 0,"Cannot override artifacts preference in synchronous validation"),C=d.preferences(d.defaults,N));const B=A.entry(M,R,C);f(!B.mainstay.externals.length,"Schema with external rules must use validateAsync()");const O={value:B.value};return B.error&&(O.error=B.error),B.mainstay.warnings.length&&(O.warning=v.details(B.mainstay.warnings)),B.mainstay.debug&&(O.debug=B.mainstay.debug),B.mainstay.artifacts&&(O.artifacts=B.mainstay.artifacts),O},i.entryAsync=async function(M,R,N){let C=d.defaults;N&&(C=d.preferences(d.defaults,N));const B=A.entry(M,R,C),O=B.mainstay;if(B.error)throw O.debug&&(B.error.debug=O.debug),B.error;if(O.externals.length){let q=B.value;for(const{method:W,path:k,label:I}of O.externals){let H,P,T=q;k.length&&(H=k[k.length-1],P=p(q,k.slice(0,-1)),T=P[H]);try{const g=await W(T,{prefs:N});if(g===void 0||g===T)continue;P?P[H]=g:q=g}catch(g){throw C.errors.label&&(g.message+=` (${I})`),g}}B.value=q}if(!C.warnings&&!C.debug&&!C.artifacts)return B.value;const D={value:B.value};return O.warnings.length&&(D.warning=v.details(O.warnings)),O.debug&&(D.debug=O.debug),O.artifacts&&(D.artifacts=O.artifacts),D},A.entry=function(M,R,N){const{tracer:C,cleanup:B}=A.tracer(R,N),O={externals:[],warnings:[],tracer:C,debug:N.debug?[]:null,links:R._ids._schemaChain?new Map:null},D=R._ids._schemaChain?[{schema:R}]:null,q=new w([],[],{mainstay:O,schemas:D}),W=i.validate(M,R,q,N);B&&R.$_root.untrace();const k=v.process(W.errors,M,N);return{value:W.value,error:k,mainstay:O}},A.tracer=function(M,R){return M.$_root._tracer?{tracer:M.$_root._tracer._register(M)}:R.debug?(f(M.$_root.trace,"Debug mode not supported"),{tracer:M.$_root.trace()._register(M),cleanup:!0}):{tracer:A.ignore}},i.validate=function(M,R,N,C){let B=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};if(R.$_terms.whens&&(R=R._generate(M,N,C).schema),R._preferences&&(C=A.prefs(R,C)),R._cache&&C.cache){const H=R._cache.get(M);if(N.mainstay.tracer.debug(N,"validate","cached",!!H),H)return H}const O=(H,P,T)=>R.$_createError(H,M,P,T||N,C),D={original:M,prefs:C,schema:R,state:N,error:O,errorsArray:A.errorsArray,warn:(H,P,T)=>N.mainstay.warnings.push(O(H,P,T)),message:(H,P)=>R.$_createError("custom",M,P,N,C,{messages:H})};N.mainstay.tracer.entry(R,N);const q=R._definition;if(q.prepare&&M!==void 0&&C.convert){const H=q.prepare(M,D);if(H){if(N.mainstay.tracer.value(N,"prepare",M,H.value),H.errors)return A.finalize(H.value,[].concat(H.errors),D);M=H.value}}if(q.coerce&&M!==void 0&&C.convert&&(!q.coerce.from||q.coerce.from.includes(typeof M))){const H=q.coerce.method(M,D);if(H){if(N.mainstay.tracer.value(N,"coerced",M,H.value),H.errors)return A.finalize(H.value,[].concat(H.errors),D);M=H.value}}const W=R._flags.empty;W&&W.$_match(A.trim(M,R),N.nest(W),d.defaults)&&(N.mainstay.tracer.value(N,"empty",M,void 0),M=void 0);const k=B.presence||R._flags.presence||(R._flags._endedSwitch?null:C.presence);if(M===void 0){if(k==="forbidden")return A.finalize(M,null,D);if(k==="required")return A.finalize(M,[R.$_createError("any.required",M,null,N,C)],D);if(k==="optional"){if(R._flags.default!==d.symbols.deepDefault)return A.finalize(M,null,D);N.mainstay.tracer.value(N,"default",M,{}),M={}}}else if(k==="forbidden")return A.finalize(M,[R.$_createError("any.unknown",M,null,N,C)],D);const I=[];if(R._valids){const H=R._valids.get(M,N,C,R._flags.insensitive);if(H)return C.convert&&(N.mainstay.tracer.value(N,"valids",M,H.value),M=H.value),N.mainstay.tracer.filter(R,N,"valid",H),A.finalize(M,null,D);if(R._flags.only){const P=R.$_createError("any.only",M,{valids:R._valids.values({display:!0})},N,C);if(C.abortEarly)return A.finalize(M,[P],D);I.push(P)}}if(R._invalids){const H=R._invalids.get(M,N,C,R._flags.insensitive);if(H){N.mainstay.tracer.filter(R,N,"invalid",H);const P=R.$_createError("any.invalid",M,{invalids:R._invalids.values({display:!0})},N,C);if(C.abortEarly)return A.finalize(M,[P],D);I.push(P)}}if(q.validate){const H=q.validate(M,D);if(H&&(N.mainstay.tracer.value(N,"base",M,H.value),M=H.value,H.errors)){if(!Array.isArray(H.errors))return I.push(H.errors),A.finalize(M,I,D);if(H.errors.length)return I.push(...H.errors),A.finalize(M,I,D)}}return R._rules.length?A.rules(M,I,D):A.finalize(M,I,D)},A.rules=function(M,R,N){const{schema:C,state:B,prefs:O}=N;for(const D of C._rules){const q=C._definition.rules[D.method];if(q.convert&&O.convert){B.mainstay.tracer.log(C,B,"rule",D.name,"full");continue}let W,k=D.args;if(D._resolve.length){k=Object.assign({},k);for(const H of D._resolve){const P=q.argsByName.get(H),T=k[H].resolve(M,B,O),g=P.normalize?P.normalize(T):T,a=d.validateArg(g,null,P);if(a){W=C.$_createError("any.ref",T,{arg:H,ref:k[H],reason:a},B,O);break}k[H]=g}}W=W||q.validate(M,N,k,D);const I=A.rule(W,D);if(I.errors){if(B.mainstay.tracer.log(C,B,"rule",D.name,"error"),D.warn){B.mainstay.warnings.push(...I.errors);continue}if(O.abortEarly)return A.finalize(M,I.errors,N);R.push(...I.errors)}else B.mainstay.tracer.log(C,B,"rule",D.name,"pass"),B.mainstay.tracer.value(B,"rule",M,I.value,D.name),M=I.value}return A.finalize(M,R,N)},A.rule=function(M,R){return M instanceof v.Report?(A.error(M,R),{errors:[M],value:null}):Array.isArray(M)&&M[d.symbols.errors]?(M.forEach(N=>A.error(N,R)),{errors:M,value:null}):{errors:null,value:M}},A.error=function(M,R){return R.message&&M._setTemplate(R.message),M},A.finalize=function(M,R,N){R=R||[];const{schema:C,state:B,prefs:O}=N;if(R.length){const q=A.default("failover",void 0,R,N);q!==void 0&&(B.mainstay.tracer.value(B,"failover",M,q),M=q,R=[])}if(R.length&&C._flags.error)if(typeof C._flags.error=="function"){R=C._flags.error(R),Array.isArray(R)||(R=[R]);for(const q of R)f(q instanceof Error||q instanceof v.Report,"error() must return an Error object")}else R=[C._flags.error];if(M===void 0){const q=A.default("default",M,R,N);B.mainstay.tracer.value(B,"default",M,q),M=q}if(C._flags.cast&&M!==void 0){const q=C._definition.cast[C._flags.cast];if(q.from(M)){const W=q.to(M,N);B.mainstay.tracer.value(B,"cast",M,W,C._flags.cast),M=W}}if(C.$_terms.externals&&O.externals&&O._externals!==!1)for(const{method:q}of C.$_terms.externals)B.mainstay.externals.push({method:q,path:B.path,label:v.label(C._flags,B,O)});const D={value:M,errors:R.length?R:null};return C._flags.result&&(D.value=C._flags.result==="strip"?void 0:N.original,B.mainstay.tracer.value(B,C._flags.result,M,D.value),B.shadow(M,C._flags.result)),C._cache&&O.cache!==!1&&!C._refs.length&&C._cache.set(N.original,D),M===void 0||D.errors||C._flags.artifact===void 0||(B.mainstay.artifacts=B.mainstay.artifacts||new Map,B.mainstay.artifacts.has(C._flags.artifact)||B.mainstay.artifacts.set(C._flags.artifact,[]),B.mainstay.artifacts.get(C._flags.artifact).push(B.path)),D},A.prefs=function(M,R){const N=R===d.defaults;return N&&M._preferences[d.symbols.prefs]?M._preferences[d.symbols.prefs]:(R=d.preferences(R,M._preferences),N&&(M._preferences[d.symbols.prefs]=R),R)},A.default=function(M,R,N,C){const{schema:B,state:O,prefs:D}=C,q=B._flags[M];if(D.noDefaults||q===void 0)return R;if(O.mainstay.tracer.log(B,O,"rule",M,"full"),!q)return q;if(typeof q=="function"){const W=q.length?[u(O.ancestors[0]),C]:[];try{return q(...W)}catch(k){return void N.push(B.$_createError(`any.${M}`,null,{error:k},O,D))}}return typeof q!="object"?q:q[d.symbols.literal]?q.literal:d.isResolvable(q)?q.resolve(R,O,D):u(q)},A.trim=function(M,R){if(typeof M!="string")return M;const N=R.$_getRule("trim");return N&&N.args.enabled?M.trim():M},A.ignore={active:!1,debug:h,entry:h,filter:h,log:h,resolve:h,value:h},A.errorsArray=function(){const M=[];return M[d.symbols.errors]=!0,M}},2036:(s,i,o)=>{const f=o(375),u=o(9474),h=o(8160),p={};s.exports=p.Values=class{constructor(d,v){this._values=new Set(d),this._refs=new Set(v),this._lowercase=p.lowercases(d),this._override=!1}get length(){return this._values.size+this._refs.size}add(d,v){h.isResolvable(d)?this._refs.has(d)||(this._refs.add(d),v&&v.register(d)):this.has(d,null,null,!1)||(this._values.add(d),typeof d=="string"&&this._lowercase.set(d.toLowerCase(),d))}static merge(d,v,w){if(d=d||new p.Values,v){if(v._override)return v.clone();for(const A of[...v._values,...v._refs])d.add(A)}if(w)for(const A of[...w._values,...w._refs])d.remove(A);return d.length?d:null}remove(d){h.isResolvable(d)?this._refs.delete(d):(this._values.delete(d),typeof d=="string"&&this._lowercase.delete(d.toLowerCase()))}has(d,v,w,A){return!!this.get(d,v,w,A)}get(d,v,w,A){if(!this.length)return!1;if(this._values.has(d))return{value:d};if(typeof d=="string"&&d&&A){const M=this._lowercase.get(d.toLowerCase());if(M)return{value:M}}if(!this._refs.size&&typeof d!="object")return!1;if(typeof d=="object"){for(const M of this._values)if(u(M,d))return{value:M}}if(v)for(const M of this._refs){const R=M.resolve(d,v,w,null,{in:!0});if(R===void 0)continue;const N=M.in&&typeof R=="object"?Array.isArray(R)?R:Object.keys(R):[R];for(const C of N)if(typeof C==typeof d){if(A&&d&&typeof d=="string"){if(C.toLowerCase()===d.toLowerCase())return{value:C,ref:M}}else if(u(C,d))return{value:C,ref:M}}}return!1}override(){this._override=!0}values(d){if(d&&d.display){const v=[];for(const w of[...this._values,...this._refs])w!==void 0&&v.push(w);return v}return Array.from([...this._values,...this._refs])}clone(){const d=new p.Values(this._values,this._refs);return d._override=this._override,d}concat(d){f(!d._override,"Cannot concat override set of values");const v=new p.Values([...this._values,...d._values],[...this._refs,...d._refs]);return v._override=this._override,v}describe(){const d=[];this._override&&d.push({override:!0});for(const v of this._values.values())d.push(v&&typeof v=="object"?{value:v}:v);for(const v of this._refs.values())d.push(v.describe());return d}},p.Values.prototype[h.symbols.values]=!0,p.Values.prototype.slice=p.Values.prototype.clone,p.lowercases=function(d){const v=new Map;if(d)for(const w of d)typeof w=="string"&&v.set(w.toLowerCase(),w);return v}},978:(s,i,o)=>{const f=o(375),u=o(8571),h=o(1687),p=o(9621),d={};s.exports=function(v,w){let A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(f(v&&typeof v=="object","Invalid defaults value: must be an object"),f(!w||w===!0||typeof w=="object","Invalid source value: must be true, falsy or an object"),f(typeof A=="object","Invalid options: must be an object"),!w)return null;if(A.shallow)return d.applyToDefaultsWithShallow(v,w,A);const M=u(v);if(w===!0)return M;const R=A.nullOverride!==void 0&&A.nullOverride;return h(M,w,{nullOverride:R,mergeArrays:!1})},d.applyToDefaultsWithShallow=function(v,w,A){const M=A.shallow;f(Array.isArray(M),"Invalid keys");const R=new Map,N=w===!0?null:new Set;for(let O of M){O=Array.isArray(O)?O:O.split(".");const D=p(v,O);D&&typeof D=="object"?R.set(D,N&&p(w,O)||D):N&&N.add(O)}const C=u(v,{},R);if(!N)return C;for(const O of N)d.reachCopy(C,w,O);const B=A.nullOverride!==void 0&&A.nullOverride;return h(C,w,{nullOverride:B,mergeArrays:!1})},d.reachCopy=function(v,w,A){for(const N of A){if(!(N in w))return;const C=w[N];if(typeof C!="object"||C===null)return;w=C}const M=w;let R=v;for(let N=0;N{const f=o(7916);s.exports=function(u){if(!u){for(var h=arguments.length,p=new Array(h>1?h-1:0),d=1;d{const f=o(9621),u=o(4277),h=o(7043),p={needsProtoHack:new Set([u.set,u.map,u.weakSet,u.weakMap])};s.exports=p.clone=function(d){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(typeof d!="object"||d===null)return d;let A=p.clone,M=w;if(v.shallow){if(v.shallow!==!0)return p.cloneWithShallow(d,v);A=B=>B}else if(M){const B=M.get(d);if(B)return B}else M=new Map;const R=u.getInternalProto(d);if(R===u.buffer)return!1;if(R===u.date)return new Date(d.getTime());if(R===u.regex)return new RegExp(d);const N=p.base(d,R,v);if(N===d)return d;if(M&&M.set(d,N),R===u.set)for(const B of d)N.add(A(B,v,M));else if(R===u.map)for(const[B,O]of d)N.set(B,A(O,v,M));const C=h.keys(d,v);for(const B of C){if(B==="__proto__")continue;if(R===u.array&&B==="length"){N.length=d.length;continue}const O=Object.getOwnPropertyDescriptor(d,B);O?O.get||O.set?Object.defineProperty(N,B,O):O.enumerable?N[B]=A(d[B],v,M):Object.defineProperty(N,B,{enumerable:!1,writable:!0,configurable:!0,value:A(d[B],v,M)}):Object.defineProperty(N,B,{enumerable:!0,writable:!0,configurable:!0,value:A(d[B],v,M)})}return N},p.cloneWithShallow=function(d,v){const w=v.shallow;(v=Object.assign({},v)).shallow=!1;const A=new Map;for(const M of w){const R=f(d,M);typeof R!="object"&&typeof R!="function"||A.set(R,R)}return p.clone(d,v,A)},p.base=function(d,v,w){if(w.prototype===!1)return p.needsProtoHack.has(v)?new v.constructor:v===u.array?[]:{};const A=Object.getPrototypeOf(d);if(A&&A.isImmutable)return d;if(v===u.array){const M=[];return A!==v&&Object.setPrototypeOf(M,A),M}if(p.needsProtoHack.has(v)){const M=new A.constructor;return A!==v&&Object.setPrototypeOf(M,A),M}return Object.create(A)}},9474:(s,i,o)=>{const f=o(4277),u={mismatched:null};s.exports=function(h,p,d){return d=Object.assign({prototype:!0},d),!!u.isDeepEqual(h,p,d,[])},u.isDeepEqual=function(h,p,d,v){if(h===p)return h!==0||1/h==1/p;const w=typeof h;if(w!==typeof p||h===null||p===null)return!1;if(w==="function"){if(!d.deepFunction||h.toString()!==p.toString())return!1}else if(w!=="object")return h!=h&&p!=p;const A=u.getSharedType(h,p,!!d.prototype);switch(A){case f.buffer:return!1;case f.promise:return h===p;case f.regex:return h.toString()===p.toString();case u.mismatched:return!1}for(let M=v.length-1;M>=0;--M)if(v[M].isSame(h,p))return!0;v.push(new u.SeenEntry(h,p));try{return!!u.isDeepEqualObj(A,h,p,d,v)}finally{v.pop()}},u.getSharedType=function(h,p,d){if(d)return Object.getPrototypeOf(h)!==Object.getPrototypeOf(p)?u.mismatched:f.getInternalProto(h);const v=f.getInternalProto(h);return v!==f.getInternalProto(p)?u.mismatched:v},u.valueOf=function(h){const p=h.valueOf;if(p===void 0)return h;try{return p.call(h)}catch(d){return d}},u.hasOwnEnumerableProperty=function(h,p){return Object.prototype.propertyIsEnumerable.call(h,p)},u.isSetSimpleEqual=function(h,p){for(const d of Set.prototype.values.call(h))if(!Set.prototype.has.call(p,d))return!1;return!0},u.isDeepEqualObj=function(h,p,d,v,w){const{isDeepEqual:A,valueOf:M,hasOwnEnumerableProperty:R}=u,{keys:N,getOwnPropertySymbols:C}=Object;if(h===f.array){if(!v.part){if(p.length!==d.length)return!1;for(let W=0;W{const f=o(8761);s.exports=class extends Error{constructor(u){super(u.filter(h=>h!=="").map(h=>typeof h=="string"?h:h instanceof Error?h.message:f(h)).join(" ")||"Unknown error"),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,i.assert)}}},5277:s=>{const i={};s.exports=function(o){if(!o)return"";let f="";for(let u=0;u=256?"&#"+o+";":`&#x${o.toString(16).padStart(2,"0")};`)},i.isSafe=function(o){return i.safeCharCodes.has(o)},i.namedHtml=new Map([[38,"&"],[60,"<"],[62,">"],[34,"""],[160," "],[162,"¢"],[163,"£"],[164,"¤"],[169,"©"],[174,"®"]]),i.safeCharCodes=function(){const o=new Set;for(let f=32;f<123;++f)(f>=97||f>=65&&f<=90||f>=48&&f<=57||f===32||f===46||f===44||f===45||f===58||f===95)&&o.add(f);return o}()},6064:s=>{s.exports=function(i){return i.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},738:s=>{s.exports=function(){}},1687:(s,i,o)=>{const f=o(375),u=o(8571),h=o(7043),p={};s.exports=p.merge=function(d,v,w){if(f(d&&typeof d=="object","Invalid target value: must be an object"),f(v==null||typeof v=="object","Invalid source value: must be null, undefined, or an object"),!v)return d;if(w=Object.assign({nullOverride:!0,mergeArrays:!0},w),Array.isArray(v)){f(Array.isArray(d),"Cannot merge array onto an object"),w.mergeArrays||(d.length=0);for(let M=0;M{const f=o(375),u={};s.exports=function(h,p,d){if(p===!1||p==null)return h;typeof(d=d||{})=="string"&&(d={separator:d});const v=Array.isArray(p);f(!v||!d.separator,"Separator option is not valid for array-based chain");const w=v?p:p.split(d.separator||".");let A=h;for(let M=0;M{s.exports=function(){try{return JSON.stringify(...arguments)}catch(i){return"[Cannot display object: "+i.message+"]"}}},4277:(s,i)=>{const o={};i=s.exports={array:Array.prototype,buffer:!1,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},o.typeMap=new Map([["[object Error]",i.error],["[object Map]",i.map],["[object Promise]",i.promise],["[object Set]",i.set],["[object WeakMap]",i.weakMap],["[object WeakSet]",i.weakSet]]),i.getInternalProto=function(f){if(Array.isArray(f))return i.array;if(f instanceof Date)return i.date;if(f instanceof RegExp)return i.regex;if(f instanceof Error)return i.error;const u=Object.prototype.toString.call(f);return o.typeMap.get(u)||i.generic}},7043:(s,i)=>{i.keys=function(o){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).symbols!==!1?Reflect.ownKeys(o):Object.getOwnPropertyNames(o)}},3652:(s,i,o)=>{const f=o(375),u={};i.Sorter=class{constructor(){this._items=[],this.nodes=[]}add(h,p){const d=[].concat((p=p||{}).before||[]),v=[].concat(p.after||[]),w=p.group||"?",A=p.sort||0;f(!d.includes(w),`Item cannot come before itself: ${w}`),f(!d.includes("?"),"Item cannot come before unassociated items"),f(!v.includes(w),`Item cannot come after itself: ${w}`),f(!v.includes("?"),"Item cannot come after unassociated items"),Array.isArray(h)||(h=[h]);for(const M of h){const R={seq:this._items.length,sort:A,before:d,after:v,group:w,node:M};this._items.push(R)}if(!p.manual){const M=this._sort();f(M,"item",w!=="?"?`added into group ${w}`:"","created a dependencies error")}return this.nodes}merge(h){Array.isArray(h)||(h=[h]);for(const d of h)if(d)for(const v of d._items)this._items.push(Object.assign({},v));this._items.sort(u.mergeSort);for(let d=0;dh.sort===p.sort?0:h.sort{const f=o(443),u=o(2178),h={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:f.URL||URL};i.analyze=function(p){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!p)return u.code("DOMAIN_NON_EMPTY_STRING");if(typeof p!="string")throw new Error("Invalid input: domain must be a string");if(p.length>256)return u.code("DOMAIN_TOO_LONG");if(h.nonAsciiRx.test(p)){if(d.allowUnicode===!1)return u.code("DOMAIN_INVALID_UNICODE_CHARS");p=p.normalize("NFC")}if(h.domainControlRx.test(p))return u.code("DOMAIN_INVALID_CHARS");p=h.punycode(p),d.allowFullyQualified&&p[p.length-1]==="."&&(p=p.slice(0,-1));const v=d.minDomainSegments||h.minDomainSegments,w=p.split(".");if(w.lengthd.maxDomainSegments)return u.code("DOMAIN_SEGMENTS_COUNT_MAX");const A=d.tlds;if(A){const M=w[w.length-1].toLowerCase();if(A.deny&&A.deny.has(M)||A.allow&&!A.allow.has(M))return u.code("DOMAIN_FORBIDDEN_TLDS")}for(let M=0;M63)return u.code("DOMAIN_LONG_SEGMENT");if(M{const f=o(9848),u=o(5380),h=o(2178),p={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(f.TextEncoder||TextEncoder)};i.analyze=function(d,v){return p.email(d,v)},i.isValid=function(d,v){return!p.email(d,v)},p.email=function(d){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof d!="string")throw new Error("Invalid input: email must be a string");if(!d)return h.code("EMPTY_STRING");const w=!p.nonAsciiRx.test(d);if(!w){if(v.allowUnicode===!1)return h.code("FORBIDDEN_UNICODE");d=d.normalize("NFC")}const A=d.split("@");if(A.length!==2)return A.length>2?h.code("MULTIPLE_AT_CHAR"):h.code("MISSING_AT_CHAR");const[M,R]=A;if(!M)return h.code("EMPTY_LOCAL");if(!v.ignoreLength){if(d.length>254)return h.code("ADDRESS_TOO_LONG");if(p.encoder.encode(M).length>64)return h.code("LOCAL_TOO_LONG")}return p.local(M,w)||u.analyze(R,v)},p.local=function(d,v){const w=d.split(".");for(const A of w){if(!A.length)return h.code("EMPTY_LOCAL_SEGMENT");if(v){if(!p.atextRx.test(A))return h.code("INVALID_LOCAL_CHARS")}else for(const M of A){if(p.atextRx.test(M))continue;const R=p.binary(M);if(!p.atomRx.test(R))return h.code("INVALID_LOCAL_CHARS")}}},p.binary=function(d){return Array.from(p.encoder.encode(d)).map(v=>String.fromCharCode(v)).join("")},p.atextRx=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,p.atomRx=new RegExp(["(?:[\\xc2-\\xdf][\\x80-\\xbf])","(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})","(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})"].join("|"))},2178:(s,i)=>{i.codes={EMPTY_STRING:"Address must be a non-empty string",FORBIDDEN_UNICODE:"Address contains forbidden Unicode characters",MULTIPLE_AT_CHAR:"Address cannot contain more than one @ character",MISSING_AT_CHAR:"Address must contain one @ character",EMPTY_LOCAL:"Address local part cannot be empty",ADDRESS_TOO_LONG:"Address too long",LOCAL_TOO_LONG:"Address local part too long",EMPTY_LOCAL_SEGMENT:"Address local part contains empty dot-separated segment",INVALID_LOCAL_CHARS:"Address local part contains invalid character",DOMAIN_NON_EMPTY_STRING:"Domain must be a non-empty string",DOMAIN_TOO_LONG:"Domain too long",DOMAIN_INVALID_UNICODE_CHARS:"Domain contains forbidden Unicode characters",DOMAIN_INVALID_CHARS:"Domain contains invalid character",DOMAIN_INVALID_TLDS_CHARS:"Domain contains invalid tld character",DOMAIN_SEGMENTS_COUNT:"Domain lacks the minimum required number of segments",DOMAIN_SEGMENTS_COUNT_MAX:"Domain contains too many segments",DOMAIN_FORBIDDEN_TLDS:"Domain uses forbidden TLD",DOMAIN_EMPTY_SEGMENT:"Domain contains empty dot-separated segment",DOMAIN_LONG_SEGMENT:"Domain contains dot-separated segment that is too long"},i.code=function(o){return{code:o,error:i.codes[o]}}},9959:(s,i,o)=>{const f=o(375),u=o(5752);i.regex=function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};f(h.cidr===void 0||typeof h.cidr=="string","options.cidr must be a string");const p=h.cidr?h.cidr.toLowerCase():"optional";f(["required","optional","forbidden"].includes(p),"options.cidr must be one of required, optional, forbidden"),f(h.version===void 0||typeof h.version=="string"||Array.isArray(h.version),"options.version must be a string or an array of string");let d=h.version||["ipv4","ipv6","ipvfuture"];Array.isArray(d)||(d=[d]),f(d.length>=1,"options.version must have at least 1 version specified");for(let A=0;A{if(p==="forbidden")return u.ip[A];const M=`\\/${A==="ipv4"?u.ip.v4Cidr:u.ip.v6Cidr}`;return p==="required"?`${u.ip[A]}${M}`:`${u.ip[A]}(?:${M})?`}).join("|")})`,w=new RegExp(`^${v}$`);return{cidr:p,versions:d,regex:w,raw:v}}},5752:(s,i,o)=>{const f=o(375),u=o(6064),h={generate:function(){const p={},d="\\dA-Fa-f",v="["+d+"]",w="\\w-\\.~",A="!\\$&'\\(\\)\\*\\+,;=",M="%"+d,R=w+M+A+":@",N="["+R+"]",C="(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";p.ipv4address="(?:"+C+"\\.){3}"+C;const B=v+"{1,4}",O="(?:"+B+":"+B+"|"+p.ipv4address+")",D="(?:"+B+":){6}"+O,q="::(?:"+B+":){5}"+O,W="(?:"+B+")?::(?:"+B+":){4}"+O,k="(?:(?:"+B+":){0,1}"+B+")?::(?:"+B+":){3}"+O,I="(?:(?:"+B+":){0,2}"+B+")?::(?:"+B+":){2}"+O,H="(?:(?:"+B+":){0,3}"+B+")?::"+B+":"+O,P="(?:(?:"+B+":){0,4}"+B+")?::"+O,T="(?:(?:"+B+":){0,5}"+B+")?::"+B,g="(?:(?:"+B+":){0,6}"+B+")?::";p.ipv4Cidr="(?:\\d|[1-2]\\d|3[0-2])",p.ipv6Cidr="(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])",p.ipv6address="(?:"+D+"|"+q+"|"+W+"|"+k+"|"+I+"|"+H+"|"+P+"|"+T+"|"+g+")",p.ipvFuture="v"+v+"+\\.["+w+A+":]+",p.scheme="[a-zA-Z][a-zA-Z\\d+-\\.]*",p.schemeRegex=new RegExp(p.scheme);const a="["+w+M+A+":]*",c="["+w+M+A+"]{1,255}",m="(?:\\[(?:"+p.ipv6address+"|"+p.ipvFuture+")\\]|"+p.ipv4address+"|"+c+")",b="(?:"+a+"@)?"+m+"(?::\\d*)?",x="(?:"+a+"@)?("+m+")(?::\\d*)?",_=N+"*",S=N+"+",y="(?:\\/"+_+")*",l="\\/(?:"+S+y+")?",E=S+y,Y="["+w+M+A+"@]+"+y,L="(?:\\/\\/\\/"+_+y+")";return p.hierPart="(?:(?:\\/\\/"+b+y+")|"+l+"|"+E+"|"+L+")",p.hierPartCapture="(?:(?:\\/\\/"+x+y+")|"+l+"|"+E+")",p.relativeRef="(?:(?:\\/\\/"+b+y+")|"+l+"|"+Y+"|)",p.relativeRefCapture="(?:(?:\\/\\/"+x+y+")|"+l+"|"+Y+"|)",p.query="["+R+"\\/\\?]*(?=#|$)",p.queryWithSquareBrackets="["+R+"\\[\\]\\/\\?]*(?=#|$)",p.fragment="["+R+"\\/\\?]*",p}};h.rfc3986=h.generate(),i.ip={v4Cidr:h.rfc3986.ipv4Cidr,v6Cidr:h.rfc3986.ipv6Cidr,ipv4:h.rfc3986.ipv4address,ipv6:h.rfc3986.ipv6address,ipvfuture:h.rfc3986.ipvFuture},h.createRegex=function(p){const d=h.rfc3986,v="(?:\\?"+(p.allowQuerySquareBrackets?d.queryWithSquareBrackets:d.query)+")?(?:#"+d.fragment+")?",w=p.domain?d.relativeRefCapture:d.relativeRef;if(p.relativeOnly)return h.wrap(w+v);let A="";if(p.scheme){f(p.scheme instanceof RegExp||typeof p.scheme=="string"||Array.isArray(p.scheme),"scheme must be a RegExp, String, or Array");const N=[].concat(p.scheme);f(N.length>=1,"scheme must have at least 1 scheme specified");const C=[];for(let B=0;B0&&arguments[0]!==void 0?arguments[0]:{};return p.scheme||p.allowRelative||p.relativeOnly||p.allowQuerySquareBrackets||p.domain?h.createRegex(p):h.uriRegex}},1447:(s,i)=>{const o={operators:["!","^","*","/","%","+","-","<","<=",">",">=","==","!=","&&","||","??"],operatorCharacters:["!","^","*","/","%","+","-","<","=",">","&","|","?"],operatorsOrder:[["^"],["*","/","%"],["+","-"],["<","<=",">",">="],["==","!="],["&&"],["||","??"]],operatorsPrefix:["!","n"],literals:{'"':'"',"`":"`","'":"'","[":"]"},numberRx:/^(?:[0-9]*(\.[0-9]*)?){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol("formula"),settings:Symbol("settings")};i.Parser=class{constructor(f){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!u[o.settings]&&u.constants)for(const h in u.constants){const p=u.constants[h];if(p!==null&&!["boolean","number","string"].includes(typeof p))throw new Error(`Formula constant ${h} contains invalid ${typeof p} value type`)}this.settings=u[o.settings]?u:Object.assign({[o.settings]:!0,constants:{},functions:{}},u),this.single=null,this._parts=null,this._parse(f)}_parse(f){let u=[],h="",p=0,d=!1;const v=A=>{if(p)throw new Error("Formula missing closing parenthesis");const M=u.length?u[u.length-1]:null;if(d||h||A){if(M&&M.type==="reference"&&A===")")return M.type="function",M.value=this._subFormula(h,M.value),void(h="");if(A===")"){const R=new i.Parser(h,this.settings);u.push({type:"segment",value:R})}else if(d){if(d==="]")return u.push({type:"reference",value:h}),void(h="");u.push({type:"literal",value:h})}else if(o.operatorCharacters.includes(h))M&&M.type==="operator"&&o.operators.includes(M.value+h)?M.value+=h:u.push({type:"operator",value:h});else if(h.match(o.numberRx))u.push({type:"constant",value:parseFloat(h)});else if(this.settings.constants[h]!==void 0)u.push({type:"constant",value:this.settings.constants[h]});else{if(!h.match(o.tokenRx))throw new Error(`Formula contains invalid token: ${h}`);u.push({type:"reference",value:h})}h=""}};for(const A of f)d?A===d?(v(),d=!1):h+=A:p?A==="("?(h+=A,++p):A===")"?(--p,p?h+=A:v(A)):h+=A:A in o.literals?d=o.literals[A]:A==="("?(v(),++p):o.operatorCharacters.includes(A)?(v(),h=A,v()):A!==" "?h+=A:v();v(),u=u.map((A,M)=>A.type!=="operator"||A.value!=="-"||M&&u[M-1].type!=="operator"?A:{type:"operator",value:"n"});let w=!1;for(const A of u){if(A.type==="operator"){if(o.operatorsPrefix.includes(A.value))continue;if(!w)throw new Error("Formula contains an operator in invalid position");if(!o.operators.includes(A.value))throw new Error(`Formula contains an unknown operator ${A.value}`)}else if(w)throw new Error("Formula missing expected operator");w=!w}if(!w)throw new Error("Formula contains invalid trailing operator");u.length===1&&["reference","literal","constant"].includes(u[0].type)&&(this.single={type:u[0].type==="reference"?"reference":"value",value:u[0].value}),this._parts=u.map(A=>{if(A.type==="operator")return o.operatorsPrefix.includes(A.value)?A:A.value;if(A.type!=="reference")return A.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(A.value))throw new Error(`Formula contains invalid reference ${A.value}`);return this.settings.reference?this.settings.reference(A.value):o.reference(A.value)})}_subFormula(f,u){const h=this.settings.functions[u];if(typeof h!="function")throw new Error(`Formula contains unknown function ${u}`);let p=[];if(f){let d="",v=0,w=!1;const A=()=>{if(!d)throw new Error(`Formula contains function ${u} with invalid arguments ${f}`);p.push(d),d=""};for(let M=0;Mnew i.Parser(d,this.settings)),function(d){const v=[];for(const w of p)v.push(w.evaluate(d));return h.call(d,...v)}}evaluate(f){const u=this._parts.slice();for(let h=u.length-2;h>=0;--h){const p=u[h];if(p&&p.type==="operator"){const d=u[h+1];u.splice(h+1,1);const v=o.evaluate(d,f);u[h]=o.single(p.value,v)}}return o.operatorsOrder.forEach(h=>{for(let p=1;p":return u>h;case">=":return u>=h;case"==":return u===h;case"!=":return u!==h;case"&&":return u&&h;case"||":return u||h}return null},o.exists=function(f){return f!=null}},9926:()=>{},5688:()=>{},9708:()=>{},1152:()=>{},443:()=>{},9848:()=>{},5934:s=>{s.exports={version:"17.8.3"}}},n={},function s(i){var o=n[i];if(o!==void 0)return o.exports;var f=n[i]={exports:{}};return r[i](f,f.exports,s),f.exports}(5107);var r,n})})(vT);const de=ew;function qn(t,e){const r=t.validate(e);return r.error?r:null}const LA=de.alternatives().try(de.string().pattern(/^0x[0-9a-fA-F]+$/),de.number().positive()),DA=de.string().valid("evm"),yT=de.object({url:de.string().required(),headers:de.object(),user:de.string(),password:de.string(),allowInsecureAuthentication:de.boolean(),allowGzip:de.boolean(),throttleLimit:de.number(),throttleSlotInterval:de.number(),throttleCallback:de.function(),timeout:de.number()}),bT=de.object({namespace:DA,id:LA.required(),rpcUrl:de.string().required(),label:de.string().required(),token:de.string().required(),icon:de.string(),color:de.string(),publicRpcUrl:de.string(),blockExplorerUrl:de.string(),providerConnectionInfoValidation:yT}),zn=null;function Do(t,e){return async()=>({provider:window.ethereum.providers&&Array.isArray(window.ethereum.providers)?wT(t,e):window.ethereum})}function wT(t,e){return window.ethereum.providers.find(r=>e?!!r[t]&&!E9(t,r):!!r[t])}function E9(t,e){return Object.values(wt).filter(n=>n!==t&&n!==wt.Detected).some(n=>!!e[n])}const AT={label:Ft.MetaMask,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.MetaMask]&&!E9(wt.MetaMask,t),getIcon:async()=>(await vt(()=>import("./metamask-1c685b94.js"),[])).default,getInterface:Do(wt.MetaMask,!0),platforms:["all"]},xT={label:Ft.Exodus,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.Exodus],getIcon:async()=>(await vt(()=>import("./exodus-358b5e9e.js"),[])).default,getInterface:Do(wt.Exodus),platforms:["all"]},ET={label:Ft.Frontier,injectedNamespace:Tt.Frontier,checkProviderIdentity:({provider:t})=>!!t&&!!t.ethereum&&!!t.ethereum[wt.Frontier],getIcon:async()=>(await vt(()=>import("./frontier-035eb74c.js"),[])).default,getInterface:async()=>({provider:Sn(window.frontier.ethereum)}),platforms:["all"]},MT={label:Ft.Brave,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.BraveWallet],getIcon:async()=>(await vt(()=>import("./brave-889178d1.js"),[])).default,getInterface:Do(wt.BraveWallet),platforms:["all"]},ST={label:Ft.Binance,injectedNamespace:Tt.Binance,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.Binance],getIcon:async()=>(await vt(()=>import("./binance-aad6707a.js"),[])).default,getInterface:async()=>{let t={...window.BinanceChain};window.BinanceChain=t;const e=window.BinanceChain.on.bind(window.BinanceChain);window.BinanceChain.on=(n,s)=>{n==="chainChanged"?e(n,i=>{s(`0x${parseInt(i).toString(16)}`)}):e(n,s)};const r=Sn(window.BinanceChain,{eth_chainId:({baseRequest:n})=>n({method:"eth_chainId"}).then(s=>`0x${parseInt(s).toString(16)}`),eth_selectAccounts:zn,wallet_switchEthereumChain:zn});return r.removeListener=(n,s)=>{},{provider:r}},platforms:["desktop"]},_T={label:Ft.Coinbase,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.Coinbase]||!!t&&!!t[wt.CoinbaseExtension],getIcon:async()=>(await vt(()=>import("./coinbase-8194cd0a.js"),[])).default,getInterface:async()=>{const{provider:t}=await Do(wt.CoinbaseExtension)(),e=t.on.bind(t);return t.on=(r,n)=>{r==="chainChanged"?e(r,s=>{n(`0x${parseInt(s).toString(16)}`)}):e(r,n)},{provider:t}},platforms:["all"]},RT={label:Ft.Detected,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.Detected],getIcon:async()=>(await vt(()=>import("./detected-641a4aef.js"),[])).default,getInterface:async()=>({provider:window.ethereum}),platforms:["all"]},NT={label:Ft.Trust,injectedNamespace:Tt.Trust,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.Trust],getIcon:async()=>(await vt(()=>import("./trust-59d19f99.js"),[])).default,getInterface:async()=>{const t=window.hasOwnProperty(Tt.Ethereum);let e;return t&&window[Tt.Ethereum].isTrust?e=window[Tt.Ethereum]:e=window[Tt.Trust],{provider:e}},platforms:["all"]},CT={label:Ft.Opera,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.Opera],getIcon:async()=>(await vt(()=>import("./opera-02e3a0e8.js"),[])).default,getInterface:async()=>({provider:Sn(window.ethereum,{eth_requestAccounts:async({baseRequest:t})=>t({method:"eth_accounts"}),eth_selectAccounts:zn})}),platforms:["all"]},TT={label:Ft.Status,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.Status],getIcon:async()=>(await vt(()=>import("./status-049055fb.js"),[])).default,getInterface:async()=>({provider:window.ethereum}),platforms:["mobile"]},kT={label:Ft.AlphaWallet,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.AlphaWallet],getIcon:async()=>(await vt(()=>import("./alphawallet-eb2bedab.js"),[])).default,getInterface:async()=>({provider:Sn(window.ethereum,{wallet_switchEthereumChain:zn,eth_selectAccounts:zn})}),platforms:["mobile"]},BT={label:Ft.ApexWallet,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.ApexWallet],getIcon:async()=>(await vt(()=>import("./apexwallet-ea5f0b2c.js"),[])).default,getInterface:async()=>({provider:window.ethereum}),platforms:["desktop","Chrome","Chromium","Microsoft Edge"]},IT={label:Ft.AToken,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.AToken],getIcon:async()=>(await vt(()=>import("./atoken-f422e6b4.js"),[])).default,getInterface:async()=>({provider:window.ethereum}),platforms:["mobile"]},PT={label:Ft.BifrostWallet,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.BifrostWallet],getIcon:async()=>(await vt(()=>import("./bifrostwallet-b2843d3a.js"),[])).default,getInterface:Do(wt.BifrostWallet),platforms:["all"]},OT={label:Ft.Bitpie,injectedNamespace:Tt.Ethereum,checkProviderIdentity:()=>!!window.Bitpie,getIcon:async()=>(await vt(()=>import("./bitpie-8ea44eae.js"),[])).default,getInterface:async()=>({provider:Sn(window.ethereum,{wallet_switchEthereumChain:zn,eth_selectAccounts:zn})}),platforms:["mobile"]},LT={label:Ft.BlockWallet,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.BlockWallet],getIcon:async()=>(await vt(()=>import("./blockwallet-1235c6b8.js"),[])).default,getInterface:Do(wt.BlockWallet),platforms:["desktop"]},DT={label:Ft.Frame,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.Frame],getIcon:async()=>(await vt(()=>import("./frame-48635667.js"),[])).default,getInterface:async()=>({provider:window.ethereum}),platforms:["desktop"]},FT={label:Ft.HuobiWallet,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.HuobiWallet],getIcon:async()=>(await vt(()=>import("./huobiwallet-c6da4601.js"),[])).default,getInterface:async()=>({provider:Sn(window.ethereum,{wallet_switchEthereumChain:zn,eth_selectAccounts:zn})}),platforms:["mobile"]},UT={label:Ft.HyperPay,injectedNamespace:Tt.Ethereum,checkProviderIdentity:()=>!!window.hiWallet,getIcon:async()=>(await vt(()=>import("./hyperpay-75c22b59.js"),[])).default,getInterface:async()=>({provider:Sn(window.ethereum,{wallet_switchEthereumChain:zn,eth_selectAccounts:zn})}),platforms:["mobile"]},HT={label:Ft.ImToken,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.ImToken],getIcon:async()=>(await vt(()=>import("./imtoken-4be0a845.js"),[])).default,getInterface:async()=>({provider:Sn(window.ethereum,{wallet_switchEthereumChain:zn,eth_selectAccounts:zn})}),platforms:["mobile"]},jT={label:Ft.Liquality,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.Liquality],getIcon:async()=>(await vt(()=>import("./liquality-0e245cbb.js"),[])).default,getInterface:async()=>{const t=Sn(window.ethereum,{wallet_switchEthereumChain:zn,eth_selectAccounts:zn});return t.removeListener=(e,r)=>{},{provider:t}},platforms:["desktop"]},zT={label:Ft.MeetOne,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&t[wt.MeetOne]==="MEETONE",getIcon:async()=>(await vt(()=>import("./meetone-d2b0ac23.js"),[])).default,getInterface:async()=>({provider:window.ethereum}),platforms:["mobile"]},KT={label:Ft.MyKey,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.MyKey],getIcon:async()=>(await vt(()=>import("./mykey-4e0c6565.js"),[])).default,getInterface:async()=>({provider:window.ethereum}),platforms:["mobile"]},qT={label:Ft.OwnBit,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.OwnBit],getIcon:async()=>(await vt(()=>import("./ownbit-fa6734bd.js"),[])).default,getInterface:async()=>{const t=Sn(window.ethereum,{eth_chainId:({baseRequest:e})=>e({method:"eth_chainId"}).then(r=>`0x${parseInt(r).toString(16)}`),wallet_switchEthereumChain:zn,eth_selectAccounts:zn});return t.removeListener=(e,r)=>{},t.on=(e,r)=>{},{provider:t}},platforms:["mobile"]},GT={label:Ft.TokenPocket,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.TokenPocket]&&!t[wt.TP],getIcon:async()=>(await vt(()=>import("./tokenpocket-a7e81129.js"),[])).default,getInterface:Do(wt.TokenPocket),platforms:["all"]},VT={label:Ft.TP,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.TP],getIcon:async()=>(await vt(()=>import("./tp-4b793710.js"),[])).default,getInterface:async()=>({provider:Sn(window.ethereum,{wallet_switchEthereumChain:zn,eth_selectAccounts:zn})}),platforms:["mobile"]},WT={label:Ft.XDEFI,injectedNamespace:Tt.XFI,checkProviderIdentity:({provider:t})=>t&&t.ethereum&&t.ethereum[wt.XDEFI],getIcon:async()=>(await vt(()=>import("./xdefi-07e71929.js"),[])).default,getInterface:async()=>({provider:window.xfi&&window.xfi.ethereum}),platforms:["all"]},ZT={label:Ft.OneInch,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.OneInch],getIcon:async()=>(await vt(()=>import("./oneInch-104b3cc4.js"),[])).default,getInterface:async()=>({provider:Sn(window.ethereum)}),platforms:["mobile"]},YT={label:Ft.Tokenary,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.Tokenary],getIcon:async()=>(await vt(()=>import("./tokenary-f771c254.js"),[])).default,getInterface:async()=>({provider:Sn(window.ethereum)}),platforms:["all"]},QT={label:Ft.Tally,injectedNamespace:Tt.Tally,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.Tally],getIcon:async()=>(await vt(()=>import("./tallywallet-a671320d.js"),[])).default,getInterface:async()=>({provider:Sn(window.tally)}),platforms:["desktop"]},XT={label:Ft.Zeal,injectedNamespace:Tt.Zeal,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.Zeal],getIcon:async()=>(await vt(()=>import("./zeal-8b158173.js"),[])).default,getInterface:async()=>({provider:Sn(window.zeal)}),platforms:["desktop"]},JT={label:Ft.Rabby,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.Rabby],getIcon:async()=>(await vt(()=>import("./rabby-fc161279.js"),[])).default,getInterface:async()=>({provider:Sn(window.ethereum)}),platforms:["desktop"]},$T={label:Ft.MathWallet,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.MathWallet],getIcon:async()=>(await vt(()=>import("./mathwallet-ff05f48e.js"),[])).default,getInterface:Do(wt.MathWallet),platforms:["all"]},ek={label:Ft.GameStop,injectedNamespace:Tt.GameStop,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.GameStop],getIcon:async()=>(await vt(()=>import("./gamestop-0e4c1409.js"),[])).default,getInterface:async()=>{const t=Sn(window.gamestop,{eth_chainId:({baseRequest:e})=>e({method:"eth_chainId"}).then(r=>`0x${parseInt(r).toString(16)}`),wallet_switchEthereumChain:zn});return t.removeListener=(e,r)=>{},t.on=(e,r)=>{},{provider:t}},platforms:["desktop"]},tk={label:Ft.BitKeep,injectedNamespace:Tt.BitKeep,checkProviderIdentity:({provider:t})=>!!t&&!!t.ethereum[wt.BitKeep],getIcon:async()=>(await vt(()=>import("./bitkeep-8077dcef.js"),[])).default,getInterface:async()=>({provider:window.bitkeep&&window.bitkeep.ethereum}),platforms:["all"]},rk={label:Ft.Sequence,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.Sequence],getIcon:async()=>(await vt(()=>import("./sequence-c07eb3ae.js"),[])).default,getInterface:async()=>({provider:window.ethereum}),platforms:["all"]},nk={label:Ft.Core,injectedNamespace:Tt.Avalanche,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.Core],getIcon:async()=>(await vt(()=>import("./core-1c42229d.js"),[])).default,getInterface:Do(wt.Core),platforms:["desktop","Chrome","Chromium","Microsoft Edge"]},ik={label:Ft.Bitski,injectedNamespace:Tt.Bitski,checkProviderIdentity:({provider:t})=>!!t&&!!t.getProvider&&!!t.getProvider().isBitski,getIcon:async()=>(await vt(()=>import("./bitski-220980c2.js"),[])).default,getInterface:async()=>({provider:window.Bitski&&window.Bitski.getProvider&&window.Bitski.getProvider()}),platforms:["all"]},sk={label:Ft.Zerion,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.Zerion],getIcon:async()=>(await vt(()=>import("./zerion-d2dfe88d.js"),[])).default,getInterface:async()=>({provider:Sn(window.ethereum)}),platforms:["all"]},ak={label:Ft.Enkrypt,injectedNamespace:Tt.Enkrypt,checkProviderIdentity:({provider:t})=>!!t&&!!t.providers&&!!t.providers.ethereum,getIcon:async()=>(await vt(()=>import("./enkrypt-b1f25ae2.js"),[])).default,getInterface:async()=>{const t=window.enkrypt.providers.ethereum.on.bind(window.enkrypt.providers.ethereum);window.enkrypt.providers.ethereum.on=(r,n)=>{r==="chainChanged"?t(r,s=>{n(`0x${parseInt(s).toString(16)}`)}):t(r,n)};const e=Sn(window.enkrypt.providers.ethereum,{eth_chainId:({baseRequest:r})=>r({method:"eth_chainId"}).then(n=>`0x${parseInt(n).toString(16)}`)});return e.removeListener=(r,n)=>{},{provider:e}},platforms:["all"]},ok={label:Ft.Phantom,injectedNamespace:Tt.Phantom,checkProviderIdentity:({provider:t})=>!!t&&!!t.ethereum&&!!t.ethereum[wt.Phantom],getIcon:async()=>(await vt(()=>import("./phantom-9b3bd709.js"),[])).default,getInterface:async()=>({provider:Sn(window.phantom.ethereum)}),platforms:["all"]},fk={label:Ft.SafePal,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.SafePal],getIcon:async()=>(await vt(()=>import("./safepal-7fa6b910.js"),[])).default,getInterface:async()=>({provider:Sn(window.ethereum)}),platforms:["all"]},lk={label:Ft.Rainbow,injectedNamespace:Tt.Ethereum,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.Rainbow],getIcon:async()=>(await vt(()=>import("./rainbow-1fe0d81a.js"),[])).default,getInterface:Do(wt.Rainbow),platforms:["all"]},ck={label:Ft.OKXWallet,injectedNamespace:Tt.OKXWallet,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.OKXWallet],getIcon:async()=>(await vt(()=>import("./okxwallet-1c6a2600.js"),[])).default,getInterface:async()=>({provider:Sn(window.okxwallet)}),platforms:["desktop"]},uk={label:Ft.DeFiWallet,injectedNamespace:Tt.DeFiConnectProvider,checkProviderIdentity:({provider:t})=>!!t&&!!t[wt.DeFiWallet],getIcon:async()=>(await vt(()=>import("./defiwallet-99978b81.js"),[])).default,getInterface:async()=>({provider:Sn(window.deficonnectProvider)}),platforms:["all"]},hk=[XT,xT,ET,AT,PT,ST,_T,RT,NT,CT,TT,kT,BT,IT,OT,LT,MT,DT,FT,UT,HT,jT,zT,KT,qT,GT,VT,WT,ZT,YT,QT,JT,$T,ek,tk,rk,nk,ik,ak,ok,ck,sk,lk,fk,uk],dk=de.object({label:de.string().required(),getIcon:de.function().arity(0).required(),getInterface:de.function().maxArity(1).required(),injectedNamespace:de.string().required(),checkProviderIdentity:de.function().arity(1).required(),platforms:de.array().items(de.string())}),pk=de.array().items(dk),mk=de.object().pattern(/\w+/,de.any().allow(de.boolean(),de.array().items(de.string()))),gk=de.object({custom:pk,filter:mk,displayUnavailable:de.boolean(),walletUnavailableMessage:de.function(),sort:de.function()}),vk=t=>qn(gk,t),yk=({label:t})=>`Please install or enable ${t} to continue`,bk=(t,e,r)=>{var n;return t?e({provider:t,device:r})?!0:!!(!((n=t.providers)===null||n===void 0)&&n.some(s=>e({provider:s,device:r}))):!1};function wk(t){if(typeof window>"u")return()=>null;if(t){const e=vk(t);if(e&&e.error)throw e.error}return e=>{const{device:r}=e,{custom:n=[],filter:s={},displayUnavailable:i,sort:o,walletUnavailableMessage:f}=t||{},h=cT([...n,...hk],({label:p})=>p).reduce((p,d)=>{const{label:v,platforms:w,injectedNamespace:A,checkProviderIdentity:M}=d,R=s[v],N=R===!1,C=window[A],B=bk(C,M,r);let O=!1;Array.isArray(R)&&(R.includes(r.type)||R.includes(r.os.name))&&(O=!0),R==="unavailable"&&!B&&(O=!0);const D=!w.includes("all")&&!w.includes(r.type)&&!w.includes(r.os.name);return!N&&!O&&!D&&(B||i)&&p.push(i&&!B?{...d,getInterface:async()=>{throw new Error(f?f(d):yk(d))}}:d),p},[]);if(h.length){const p=h.length>1,d=h.filter(v=>{const{label:w}=v;return!(w===Ft.Detected&&p)}).map(({label:v,getIcon:w,getInterface:A})=>({label:v,getIcon:w,getInterface:A})).sort((v,w)=>v.labelw.label?1:0);return o?o(d):d}return[]}}const q1=t=>!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/));function Ak(t){const{bridge:e="https://bridge.walletconnect.org",qrcodeModalOptions:r,connectFirstChainId:n}=t||{};return()=>({label:"WalletConnect",getIcon:async()=>(await vt(()=>import("./icon-e08798cb.js"),[])).default,getInterface:async({chains:s,EventEmitter:i})=>{const{StaticJsonRpcProvider:o}=await vt(()=>import("./index-32fe098f.js"),[]),{ProviderRpcError:f,ProviderRpcErrorCode:u}=await vt(()=>import("./index-7d165fbb.js"),[]),{default:h}=await vt(()=>import("./index-368abf3a.js"),["assets/index-368abf3a.js","assets/mobile-122d5339.js","assets/tslib.es6-c2094241.js"]);let p=await vt(()=>import("./index-f4328d31.js").then(C=>C.i),["assets/index-f4328d31.js","assets/mobile-122d5339.js"]);p=p.default||p;const{Subject:d,fromEvent:v}=await vt(()=>import("./index-581511fd.js"),["assets/index-581511fd.js","assets/zipWith-29b37a07.js","assets/skip-2d52d7ac.js","assets/merge-7af99d5f.js"]),{takeUntil:w,take:A}=await vt(()=>import("./index-a8ca8229.js"),["assets/index-a8ca8229.js","assets/zipWith-29b37a07.js","assets/skip-2d52d7ac.js"]),M=new h({bridge:e}),R=new i;class N{constructor({connector:B,chains:O}){this.emit=R.emit.bind(R),this.on=R.on.bind(R),this.removeListener=R.removeListener.bind(R),this.connector=B,this.chains=O,this.disconnected$=new d,this.providers={},v(this.connector,"session_update",(D,q)=>{if(D)throw D;return q}).pipe(w(this.disconnected$)).subscribe({next:({params:D})=>{const[{accounts:q,chainId:W}]=D;this.emit("accountsChanged",q);const k=q1(W)?W:`0x${W.toString(16)}`;this.emit("chainChanged",k)},error:console.warn}),v(this.connector,"disconnect",(D,q)=>{if(D)throw D;return q}).pipe(w(this.disconnected$)).subscribe({next:()=>{this.emit("accountsChanged",[]),this.disconnected$.next(!0),typeof localStorage<"u"&&localStorage.removeItem("walletconnect")},error:console.warn}),this.disconnect=()=>this.connector.killSession(),this.request=async({method:D,params:q})=>{if(D==="eth_chainId")return q1(this.connector.chainId)?this.connector.chainId:`0x${this.connector.chainId.toString(16)}`;if(D==="eth_requestAccounts")return new Promise((k,I)=>{if(!this.connector.connected)this.connector.createSession(n?{chainId:parseInt(O[0].id,16)}:void 0).then(()=>{p.open(this.connector.uri,()=>I(new f({code:4001,message:"User rejected the request."})),r)});else{const{accounts:H,chainId:P}=this.connector.session,T=q1(P)?P:`0x${P.toString(16)}`;return this.emit("chainChanged",T),k(H)}v(this.connector,"connect",(H,P)=>{if(H)throw H;return P}).pipe(A(1)).subscribe({next:({params:H})=>{const[{accounts:P,chainId:T}]=H;this.emit("accountsChanged",P);const g=q1(T)?T:`0x${T.toString(16)}`;this.emit("chainChanged",g),p.close(),k(P)},error:I})});if(D==="eth_selectAccounts")throw new f({code:u.UNSUPPORTED_METHOD,message:`The Provider does not support the requested method: ${D}`});if(D=="wallet_switchEthereumChain"){if(!q)throw new f({code:u.INVALID_PARAMS,message:"The Provider requires a chainId to be passed in as an argument"});const k=q[0];if(!k.hasOwnProperty("chainId")||typeof k.chainId>"u")throw new f({code:u.INVALID_PARAMS,message:"The Provider requires a chainId to be passed in as an argument"});return this.connector.sendCustomRequest({method:"wallet_switchEthereumChain",params:[{chainId:k.chainId}]})}if(D==="eth_sendTransaction")return this.connector.sendTransaction(q[0]);if(D==="eth_signTransaction")return this.connector.signTransaction(q[0]);if(D==="personal_sign")return this.connector.signPersonalMessage(q);if(D==="eth_sign")return this.connector.signMessage(q);if(D.includes("eth_signTypedData"))return this.connector.signTypedData(q);if(D==="eth_accounts")return this.connector.sendCustomRequest({id:1337,jsonrpc:"2.0",method:D,params:q});const W=await this.request({method:"eth_chainId"});if(!this.providers[W]){const k=O.find(({id:I})=>I===W);if(!k)throw new f({code:u.CHAIN_NOT_ADDED,message:`The Provider does not have a rpcUrl to make a request for the requested method: ${D}`});this.providers[W]=new o(k.rpcUrl)}return this.providers[W].send(D,q)}}}return{provider:new N({chains:s,connector:M})}}})}function xk(t){const{buttonPosition:e,modalZIndex:r,apiKey:n,buildEnv:s,enableLogging:i,loginConfig:o,showTorusButton:f,integrity:u,whiteLabel:h,skipTKey:p}=t||{};return()=>({label:"Torus",getIcon:async()=>(await vt(()=>import("./icon-4f874681.js"),[])).default,getInterface:async({chains:d})=>{const{default:v}=await vt(()=>import("./torus.esm-d09ce5f9.js"),[]),{createEIP1193Provider:w,ProviderRpcErrorCode:A,ProviderRpcError:M}=await vt(()=>import("./index-7d165fbb.js"),[]),[R]=d;let N=new v({buttonPosition:e,modalZIndex:r,apiKey:n});await N.init({buildEnv:s,enableLogging:i,network:{host:R.rpcUrl,chainId:parseInt(R.id),networkName:R.label},showTorusButton:f,loginConfig:o,integrity:u,whiteLabel:h,skipTKey:p});const C=N.provider,B=w(C,{eth_requestAccounts:async()=>{try{return await N.login()}catch{throw new M({code:A.ACCOUNT_ACCESS_REJECTED,message:"Account access rejected"})}},eth_selectAccounts:null,wallet_switchEthereumChain:async({params:O})=>{const D=d.find(({id:q})=>q===O[0].chainId);if(!D)throw new Error("chain must be set before switching");return await N.setProvider({host:D.rpcUrl,chainId:parseInt(D.id),networkName:D.label}),null},eth_chainId:async({baseRequest:O})=>{const D=await O({method:"eth_chainId"});return`0x${parseInt(D).toString(16)}`}});return B.disconnect=()=>N.cleanUp(),{provider:B,instance:N}}})}var tw=function(t,e){return tw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},tw(t,e)};function $c(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");tw(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Ek(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function f(p){try{h(n.next(p))}catch(d){o(d)}}function u(p){try{h(n.throw(p))}catch(d){o(d)}}function h(p){p.done?i(p.value):s(p.value).then(f,u)}h((n=n.apply(t,e||[])).next())})}function M9(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,o;return o={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function f(h){return function(p){return u([h,p])}}function u(h){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,h[0]&&(r=0)),r;)try{if(n=1,s&&(i=h[0]&2?s.return:h[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,h[1])).done)return i;switch(s=0,i&&(h=[h[0]&2,i.value]),h[0]){case 0:case 1:i=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,s=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Sf(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),s,i=[],o;try{for(;(e===void 0||e-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(f){o={error:f}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i}function Rl(t,e,r){if(r||arguments.length===2)for(var n=0,s=e.length,i;n1||f(v,w)})})}function f(v,w){try{u(n[v](w))}catch(A){d(i[0][3],A)}}function u(v){v.value instanceof rh?Promise.resolve(v.value.v).then(h,p):d(i[0][2],v)}function h(v){f("next",v)}function p(v){f("throw",v)}function d(v,w){v(w),i.shift(),i.length&&f(i[0][0],i[0][1])}}function Sk(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof nd=="function"?nd(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(f,u){o=t[i](o),s(f,u,o.done,o.value)})}}function s(i,o,f,u){Promise.resolve(u).then(function(h){i({value:h,done:f})},o)}}function Jr(t){return typeof t=="function"}function FA(t){var e=function(n){Error.call(n),n.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Jy=FA(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription: -`+r.map(function(n,s){return s+1+") "+n.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=r}});function rw(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Cv=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,n,s,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var f=nd(o),u=f.next();!u.done;u=f.next()){var h=u.value;h.remove(this)}}catch(M){e={error:M}}finally{try{u&&!u.done&&(r=f.return)&&r.call(f)}finally{if(e)throw e.error}}else o.remove(this);var p=this.initialTeardown;if(Jr(p))try{p()}catch(M){i=M instanceof Jy?M.errors:[M]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var v=nd(d),w=v.next();!w.done;w=v.next()){var A=w.value;try{Z6(A)}catch(M){i=i??[],M instanceof Jy?i=Rl(Rl([],Sf(i)),Sf(M.errors)):i.push(M)}}}catch(M){n={error:M}}finally{try{w&&!w.done&&(s=v.return)&&s.call(v)}finally{if(n)throw n.error}}}if(i)throw new Jy(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Z6(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&rw(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&rw(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),S9=Cv.EMPTY;function _9(t){return t instanceof Cv||t&&"closed"in t&&Jr(t.remove)&&Jr(t.add)&&Jr(t.unsubscribe)}function Z6(t){Jr(t)?t():t.unsubscribe()}var eu={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},vg={setTimeout:function(t,e){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var n=this,s=this,i=s.hasError,o=s.isStopped,f=s.observers;return i||o?S9:(this.currentObservers=null,f.push(r),new Cv(function(){n.currentObservers=null,rw(f,r)}))},e.prototype._checkFinalizedStatuses=function(r){var n=this,s=n.hasError,i=n.thrownError,o=n.isStopped;s?r.error(i):o&&r.complete()},e.prototype.asObservable=function(){var r=new Hi;return r.source=this,r},e.create=function(r,n){return new Q6(r,n)},e}(Hi),Q6=function(t){$c(e,t);function e(r,n){var s=t.call(this)||this;return s.destination=r,s.source=n,s}return e.prototype.next=function(r){var n,s;(s=(n=this.destination)===null||n===void 0?void 0:n.next)===null||s===void 0||s.call(n,r)},e.prototype.error=function(r){var n,s;(s=(n=this.destination)===null||n===void 0?void 0:n.error)===null||s===void 0||s.call(n,r)},e.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},e.prototype._subscribe=function(r){var n,s;return(s=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&s!==void 0?s:S9},e}(Bf),s1=function(t){$c(e,t);function e(r){var n=t.call(this)||this;return n._value=r,n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(r){var n=t.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},e.prototype.getValue=function(){var r=this,n=r.hasError,s=r.thrownError,i=r._value;if(n)throw s;return this._throwIfClosed(),i},e.prototype.next=function(r){t.prototype.next.call(this,this._value=r)},e}(Bf),C9={now:function(){return(C9.delegate||Date).now()},delegate:void 0},Uk=function(t){$c(e,t);function e(r,n,s){r===void 0&&(r=1/0),n===void 0&&(n=1/0),s===void 0&&(s=C9);var i=t.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=s,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return e.prototype.next=function(r){var n=this,s=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,f=n._timestampProvider,u=n._windowTime;s||(i.push(r),!o&&i.push(f.now()+u)),this._trimBuffer(),t.prototype.next.call(this,r)},e.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),s=this,i=s._infiniteTimeWindow,o=s._buffer,f=o.slice(),u=0;u0&&(p=new id({next:function(q){return D.next(q)},error:function(q){M=!0,R(),d=tb(N,s,q),D.error(q)},complete:function(){A=!0,R(),d=tb(N,o),D.complete()}}),oa(B).subscribe(p))})(h)}}function tb(t,e){for(var r=[],n=2;n0&&n[1]||""}static getSecondMatch(e,r){const n=r.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,r,n){if(e.test(r))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){const r=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(r.push(0),r[0]===10)switch(r[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){const r=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(r.push(0),!(r[0]===1&&r[1]<5)){if(r[0]===1&&r[1]<6)return"Cupcake";if(r[0]===1&&r[1]>=6)return"Donut";if(r[0]===2&&r[1]<2)return"Eclair";if(r[0]===2&&r[1]===2)return"Froyo";if(r[0]===2&&r[1]>2)return"Gingerbread";if(r[0]===3)return"Honeycomb";if(r[0]===4&&r[1]<1)return"Ice Cream Sandwich";if(r[0]===4&&r[1]<4)return"Jelly Bean";if(r[0]===4&&r[1]>=4)return"KitKat";if(r[0]===5)return"Lollipop";if(r[0]===6)return"Marshmallow";if(r[0]===7)return"Nougat";if(r[0]===8)return"Oreo";if(r[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,r,n=!1){const s=$e.getVersionPrecision(e),i=$e.getVersionPrecision(r);let o=Math.max(s,i),f=0;const u=$e.map([e,r],h=>{const p=o-$e.getVersionPrecision(h),d=h+new Array(p+1).join(".0");return $e.map(d.split("."),v=>new Array(20-v.length).join("0")+v).reverse()});for(n&&(f=o-Math.min(s,i)),o-=1;o>=f;){if(u[0][o]>u[1][o])return 1;if(u[0][o]===u[1][o]){if(o===f)return 0;o-=1}else if(u[0][o]{n[u]=o[u]})}return e}static getBrowserAlias(e){return yB[e]}static getBrowserTypeByAlias(e){return W9[e]||""}}const nn=/version\/(\d+(\.?_?\d+)+)/i,bB=[{test:[/googlebot/i],describe(t){const e={name:"Googlebot"},r=$e.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||$e.getFirstMatch(nn,t);return r&&(e.version=r),e}},{test:[/opera/i],describe(t){const e={name:"Opera"},r=$e.getFirstMatch(nn,t)||$e.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opr\/|opios/i],describe(t){const e={name:"Opera"},r=$e.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||$e.getFirstMatch(nn,t);return r&&(e.version=r),e}},{test:[/SamsungBrowser/i],describe(t){const e={name:"Samsung Internet for Android"},r=$e.getFirstMatch(nn,t)||$e.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Whale/i],describe(t){const e={name:"NAVER Whale Browser"},r=$e.getFirstMatch(nn,t)||$e.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MZBrowser/i],describe(t){const e={name:"MZ Browser"},r=$e.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||$e.getFirstMatch(nn,t);return r&&(e.version=r),e}},{test:[/focus/i],describe(t){const e={name:"Focus"},r=$e.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||$e.getFirstMatch(nn,t);return r&&(e.version=r),e}},{test:[/swing/i],describe(t){const e={name:"Swing"},r=$e.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||$e.getFirstMatch(nn,t);return r&&(e.version=r),e}},{test:[/coast/i],describe(t){const e={name:"Opera Coast"},r=$e.getFirstMatch(nn,t)||$e.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(t){const e={name:"Opera Touch"},r=$e.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||$e.getFirstMatch(nn,t);return r&&(e.version=r),e}},{test:[/yabrowser/i],describe(t){const e={name:"Yandex Browser"},r=$e.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||$e.getFirstMatch(nn,t);return r&&(e.version=r),e}},{test:[/ucbrowser/i],describe(t){const e={name:"UC Browser"},r=$e.getFirstMatch(nn,t)||$e.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Maxthon|mxios/i],describe(t){const e={name:"Maxthon"},r=$e.getFirstMatch(nn,t)||$e.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/epiphany/i],describe(t){const e={name:"Epiphany"},r=$e.getFirstMatch(nn,t)||$e.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/puffin/i],describe(t){const e={name:"Puffin"},r=$e.getFirstMatch(nn,t)||$e.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sleipnir/i],describe(t){const e={name:"Sleipnir"},r=$e.getFirstMatch(nn,t)||$e.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/k-meleon/i],describe(t){const e={name:"K-Meleon"},r=$e.getFirstMatch(nn,t)||$e.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/micromessenger/i],describe(t){const e={name:"WeChat"},r=$e.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||$e.getFirstMatch(nn,t);return r&&(e.version=r),e}},{test:[/qqbrowser/i],describe(t){const e={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},r=$e.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||$e.getFirstMatch(nn,t);return r&&(e.version=r),e}},{test:[/msie|trident/i],describe(t){const e={name:"Internet Explorer"},r=$e.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/\sedg\//i],describe(t){const e={name:"Microsoft Edge"},r=$e.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/edg([ea]|ios)/i],describe(t){const e={name:"Microsoft Edge"},r=$e.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/vivaldi/i],describe(t){const e={name:"Vivaldi"},r=$e.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/seamonkey/i],describe(t){const e={name:"SeaMonkey"},r=$e.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sailfish/i],describe(t){const e={name:"Sailfish"},r=$e.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return r&&(e.version=r),e}},{test:[/silk/i],describe(t){const e={name:"Amazon Silk"},r=$e.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/phantom/i],describe(t){const e={name:"PhantomJS"},r=$e.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/slimerjs/i],describe(t){const e={name:"SlimerJS"},r=$e.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e={name:"BlackBerry"},r=$e.getFirstMatch(nn,t)||$e.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(web|hpw)[o0]s/i],describe(t){const e={name:"WebOS Browser"},r=$e.getFirstMatch(nn,t)||$e.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/bada/i],describe(t){const e={name:"Bada"},r=$e.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/tizen/i],describe(t){const e={name:"Tizen"},r=$e.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||$e.getFirstMatch(nn,t);return r&&(e.version=r),e}},{test:[/qupzilla/i],describe(t){const e={name:"QupZilla"},r=$e.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||$e.getFirstMatch(nn,t);return r&&(e.version=r),e}},{test:[/firefox|iceweasel|fxios/i],describe(t){const e={name:"Firefox"},r=$e.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/electron/i],describe(t){const e={name:"Electron"},r=$e.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MiuiBrowser/i],describe(t){const e={name:"Miui"},r=$e.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/chromium/i],describe(t){const e={name:"Chromium"},r=$e.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||$e.getFirstMatch(nn,t);return r&&(e.version=r),e}},{test:[/chrome|crios|crmo/i],describe(t){const e={name:"Chrome"},r=$e.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/GSA/i],describe(t){const e={name:"Google Search"},r=$e.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){const e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe(t){const e={name:"Android Browser"},r=$e.getFirstMatch(nn,t);return r&&(e.version=r),e}},{test:[/playstation 4/i],describe(t){const e={name:"PlayStation 4"},r=$e.getFirstMatch(nn,t);return r&&(e.version=r),e}},{test:[/safari|applewebkit/i],describe(t){const e={name:"Safari"},r=$e.getFirstMatch(nn,t);return r&&(e.version=r),e}},{test:[/.*/i],describe(t){const e=/^(.*)\/(.*) /,r=/^(.*)\/(.*)[ \t]\((.*)/,s=t.search("\\(")!==-1?r:e;return{name:$e.getFirstMatch(s,t),version:$e.getSecondMatch(s,t)}}}],wB=[{test:[/Roku\/DVP/],describe(t){const e=$e.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:Ki.Roku,version:e}}},{test:[/windows phone/i],describe(t){const e=$e.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:Ki.WindowsPhone,version:e}}},{test:[/windows /i],describe(t){const e=$e.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),r=$e.getWindowsVersionName(e);return{name:Ki.Windows,version:e,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(t){const e={name:Ki.iOS},r=$e.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return r&&(e.version=r),e}},{test:[/macintosh/i],describe(t){const e=$e.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),r=$e.getMacOSVersionName(e),n={name:Ki.MacOS,version:e};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe(t){const e=$e.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:Ki.iOS,version:e}}},{test(t){const e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe(t){const e=$e.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),r=$e.getAndroidVersionName(e),n={name:Ki.Android,version:e};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe(t){const e=$e.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),r={name:Ki.WebOS};return e&&e.length&&(r.version=e),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e=$e.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||$e.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||$e.getFirstMatch(/\bbb(\d+)/i,t);return{name:Ki.BlackBerry,version:e}}},{test:[/bada/i],describe(t){const e=$e.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:Ki.Bada,version:e}}},{test:[/tizen/i],describe(t){const e=$e.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:Ki.Tizen,version:e}}},{test:[/linux/i],describe(){return{name:Ki.Linux}}},{test:[/CrOS/],describe(){return{name:Ki.ChromeOS}}},{test:[/PlayStation 4/],describe(t){const e=$e.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:Ki.PlayStation4,version:e}}}],AB=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(t){const e=$e.getFirstMatch(/(can-l01)/i,t)&&"Nova",r={type:In.mobile,vendor:"Huawei"};return e&&(r.model=e),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:In.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:In.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:In.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:In.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:In.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:In.tablet}}},{test(t){const e=t.test(/ipod|iphone/i),r=t.test(/like (ipod|iphone)/i);return e&&!r},describe(t){const e=$e.getFirstMatch(/(ipod|iphone)/i,t);return{type:In.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:In.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:In.mobile}}},{test(t){return t.getBrowserName(!0)==="blackberry"},describe(){return{type:In.mobile,vendor:"BlackBerry"}}},{test(t){return t.getBrowserName(!0)==="bada"},describe(){return{type:In.mobile}}},{test(t){return t.getBrowserName()==="windows phone"},describe(){return{type:In.mobile,vendor:"Microsoft"}}},{test(t){const e=Number(String(t.getOSVersion()).split(".")[0]);return t.getOSName(!0)==="android"&&e>=3},describe(){return{type:In.tablet}}},{test(t){return t.getOSName(!0)==="android"},describe(){return{type:In.mobile}}},{test(t){return t.getOSName(!0)==="macos"},describe(){return{type:In.desktop,vendor:"Apple"}}},{test(t){return t.getOSName(!0)==="windows"},describe(){return{type:In.desktop}}},{test(t){return t.getOSName(!0)==="linux"},describe(){return{type:In.desktop}}},{test(t){return t.getOSName(!0)==="playstation 4"},describe(){return{type:In.tv}}},{test(t){return t.getOSName(!0)==="roku"},describe(){return{type:In.tv}}}],xB=[{test(t){return t.getBrowserName(!0)==="microsoft edge"},describe(t){if(/\sedg\//i.test(t))return{name:Jf.Blink};const r=$e.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:Jf.EdgeHTML,version:r}}},{test:[/trident/i],describe(t){const e={name:Jf.Trident},r=$e.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){return t.test(/presto/i)},describe(t){const e={name:Jf.Presto},r=$e.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){const e=t.test(/gecko/i),r=t.test(/like gecko/i);return e&&!r},describe(t){const e={name:Jf.Gecko},r=$e.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Jf.Blink}}},{test:[/(apple)?webkit/i],describe(t){const e={name:Jf.WebKit},r=$e.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}}];let t4=class{constructor(e,r=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},r!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const e=$e.find(bB,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const e=$e.find(wB,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){const{name:r}=this.getOS();return e?String(r).toLowerCase()||"":r||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){const{type:r}=this.getPlatform();return e?String(r).toLowerCase()||"":r||""}parsePlatform(){this.parsedResult.platform={};const e=$e.find(AB,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const e=$e.find(xB,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return $e.assign({},this.parsedResult)}satisfies(e){const r={};let n=0;const s={};let i=0;if(Object.keys(e).forEach(f=>{const u=e[f];typeof u=="string"?(s[f]=u,i+=1):typeof u=="object"&&(r[f]=u,n+=1)}),n>0){const f=Object.keys(r),u=$e.find(f,p=>this.isOS(p));if(u){const p=this.satisfies(r[u]);if(p!==void 0)return p}const h=$e.find(f,p=>this.isPlatform(p));if(h){const p=this.satisfies(r[h]);if(p!==void 0)return p}}if(i>0){const f=Object.keys(s),u=$e.find(f,h=>this.isBrowser(h,!0));if(u!==void 0)return this.compareVersion(s[u])}}isBrowser(e,r=!1){const n=this.getBrowserName().toLowerCase();let s=e.toLowerCase();const i=$e.getBrowserTypeByAlias(s);return r&&i&&(s=i.toLowerCase()),s===n}compareVersion(e){let r=[0],n=e,s=!1;const i=this.getBrowserVersion();if(typeof i=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(s=!0,n=e.substr(2)):r=[],e[0]===">"?r.push(1):r.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(s=!0,n=e.substr(1)),r.indexOf($e.compareVersions(i,n,s))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,r=!1){return this.isBrowser(e,r)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(r=>this.is(r))}};/*! - * Bowser - a browser detector - * https://github.com/lancedikson/bowser - * MIT License | (c) Dustin Diaz 2012-2015 - * MIT License | (c) Denis Demchenko 2015-2019 - */class EB{static getParser(e,r=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new t4(e,r)}static parse(e){return new t4(e).getResult()}static get BROWSER_MAP(){return W9}static get ENGINE_MAP(){return Jf}static get OS_MAP(){return Ki}static get PLATFORMS_MAP(){return In}}var mt={},Bv={};Bv.byteLength=_B;Bv.toByteArray=NB;Bv.fromByteArray=kB;var wo=[],Vs=[],MB=typeof Uint8Array<"u"?Uint8Array:Array,nb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var bu=0,SB=nb.length;bu0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function _B(t){var e=Z9(t),r=e[0],n=e[1];return(r+n)*3/4-n}function RB(t,e,r){return(e+r)*3/4-r}function NB(t){var e,r=Z9(t),n=r[0],s=r[1],i=new MB(RB(t,n,s)),o=0,f=s>0?n-4:n,u;for(u=0;u>16&255,i[o++]=e>>8&255,i[o++]=e&255;return s===2&&(e=Vs[t.charCodeAt(u)]<<2|Vs[t.charCodeAt(u+1)]>>4,i[o++]=e&255),s===1&&(e=Vs[t.charCodeAt(u)]<<10|Vs[t.charCodeAt(u+1)]<<4|Vs[t.charCodeAt(u+2)]>>2,i[o++]=e>>8&255,i[o++]=e&255),i}function CB(t){return wo[t>>18&63]+wo[t>>12&63]+wo[t>>6&63]+wo[t&63]}function TB(t,e,r){for(var n,s=[],i=e;if?f:o+i));return n===1?(e=t[r-1],s.push(wo[e>>2]+wo[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],s.push(wo[e>>10]+wo[e>>4&63]+wo[e<<2&63]+"=")),s.join("")}var ZA={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ZA.read=function(t,e,r,n,s){var i,o,f=s*8-n-1,u=(1<>1,p=-7,d=r?s-1:0,v=r?-1:1,w=t[e+d];for(d+=v,i=w&(1<<-p)-1,w>>=-p,p+=f;p>0;i=i*256+t[e+d],d+=v,p-=8);for(o=i&(1<<-p)-1,i>>=-p,p+=n;p>0;o=o*256+t[e+d],d+=v,p-=8);if(i===0)i=1-h;else{if(i===u)return o?NaN:(w?-1:1)*(1/0);o=o+Math.pow(2,n),i=i-h}return(w?-1:1)*o*Math.pow(2,i-n)};ZA.write=function(t,e,r,n,s,i){var o,f,u,h=i*8-s-1,p=(1<>1,v=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:i-1,A=n?1:-1,M=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(f=isNaN(e)?1:0,o=p):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+d>=1?e+=v/u:e+=v*Math.pow(2,1-d),e*u>=2&&(o++,u/=2),o+d>=p?(f=0,o=p):o+d>=1?(f=(e*u-1)*Math.pow(2,s),o=o+d):(f=e*Math.pow(2,d-1)*Math.pow(2,s),o=0));s>=8;t[r+w]=f&255,w+=A,f/=256,s-=8);for(o=o<0;t[r+w]=o&255,w+=A,o/=256,h-=8);t[r+w-A]|=M*128};/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */(function(t){var e=Bv,r=ZA,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=f,t.SlowBuffer=C,t.INSPECT_MAX_BYTES=50;var s=2147483647;t.kMaxLength=s,f.TYPED_ARRAY_SUPPORT=i(),!f.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{var Q=new Uint8Array(1),z={foo:function(){return 42}};return Object.setPrototypeOf(z,Uint8Array.prototype),Object.setPrototypeOf(Q,z),Q.foo()===42}catch{return!1}}Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}});function o(Q){if(Q>s)throw new RangeError('The value "'+Q+'" is invalid for option "size"');var z=new Uint8Array(Q);return Object.setPrototypeOf(z,f.prototype),z}function f(Q,z,G){if(typeof Q=="number"){if(typeof z=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(Q)}return u(Q,z,G)}f.poolSize=8192;function u(Q,z,G){if(typeof Q=="string")return v(Q,z);if(ArrayBuffer.isView(Q))return A(Q);if(Q==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);if(se(Q,ArrayBuffer)||Q&&se(Q.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(se(Q,SharedArrayBuffer)||Q&&se(Q.buffer,SharedArrayBuffer)))return M(Q,z,G);if(typeof Q=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var X=Q.valueOf&&Q.valueOf();if(X!=null&&X!==Q)return f.from(X,z,G);var ne=R(Q);if(ne)return ne;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Q[Symbol.toPrimitive]=="function")return f.from(Q[Symbol.toPrimitive]("string"),z,G);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}f.from=function(Q,z,G){return u(Q,z,G)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array);function h(Q){if(typeof Q!="number")throw new TypeError('"size" argument must be of type number');if(Q<0)throw new RangeError('The value "'+Q+'" is invalid for option "size"')}function p(Q,z,G){return h(Q),Q<=0?o(Q):z!==void 0?typeof G=="string"?o(Q).fill(z,G):o(Q).fill(z):o(Q)}f.alloc=function(Q,z,G){return p(Q,z,G)};function d(Q){return h(Q),o(Q<0?0:N(Q)|0)}f.allocUnsafe=function(Q){return d(Q)},f.allocUnsafeSlow=function(Q){return d(Q)};function v(Q,z){if((typeof z!="string"||z==="")&&(z="utf8"),!f.isEncoding(z))throw new TypeError("Unknown encoding: "+z);var G=B(Q,z)|0,X=o(G),ne=X.write(Q,z);return ne!==G&&(X=X.slice(0,ne)),X}function w(Q){for(var z=Q.length<0?0:N(Q.length)|0,G=o(z),X=0;X=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return Q|0}function C(Q){return+Q!=Q&&(Q=0),f.alloc(+Q)}f.isBuffer=function(z){return z!=null&&z._isBuffer===!0&&z!==f.prototype},f.compare=function(z,G){if(se(z,Uint8Array)&&(z=f.from(z,z.offset,z.byteLength)),se(G,Uint8Array)&&(G=f.from(G,G.offset,G.byteLength)),!f.isBuffer(z)||!f.isBuffer(G))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(z===G)return 0;for(var X=z.length,ne=G.length,ae=0,Me=Math.min(X,ne);aene.length?f.from(Me).copy(ne,ae):Uint8Array.prototype.set.call(ne,Me,ae);else if(f.isBuffer(Me))Me.copy(ne,ae);else throw new TypeError('"list" argument must be an Array of Buffers');ae+=Me.length}return ne};function B(Q,z){if(f.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||se(Q,ArrayBuffer))return Q.byteLength;if(typeof Q!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Q);var G=Q.length,X=arguments.length>2&&arguments[2]===!0;if(!X&&G===0)return 0;for(var ne=!1;;)switch(z){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":return Z(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return U(Q).length;default:if(ne)return X?-1:Z(Q).length;z=(""+z).toLowerCase(),ne=!0}}f.byteLength=B;function O(Q,z,G){var X=!1;if((z===void 0||z<0)&&(z=0),z>this.length||((G===void 0||G>this.length)&&(G=this.length),G<=0)||(G>>>=0,z>>>=0,G<=z))return"";for(Q||(Q="utf8");;)switch(Q){case"hex":return _(this,z,G);case"utf8":case"utf-8":return a(this,z,G);case"ascii":return b(this,z,G);case"latin1":case"binary":return x(this,z,G);case"base64":return g(this,z,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,z,G);default:if(X)throw new TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),X=!0}}f.prototype._isBuffer=!0;function D(Q,z,G){var X=Q[z];Q[z]=Q[G],Q[G]=X}f.prototype.swap16=function(){var z=this.length;if(z%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var G=0;GG&&(z+=" ... "),""},n&&(f.prototype[n]=f.prototype.inspect),f.prototype.compare=function(z,G,X,ne,ae){if(se(z,Uint8Array)&&(z=f.from(z,z.offset,z.byteLength)),!f.isBuffer(z))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof z);if(G===void 0&&(G=0),X===void 0&&(X=z?z.length:0),ne===void 0&&(ne=0),ae===void 0&&(ae=this.length),G<0||X>z.length||ne<0||ae>this.length)throw new RangeError("out of range index");if(ne>=ae&&G>=X)return 0;if(ne>=ae)return-1;if(G>=X)return 1;if(G>>>=0,X>>>=0,ne>>>=0,ae>>>=0,this===z)return 0;for(var Me=ae-ne,ge=X-G,pe=Math.min(Me,ge),ot=this.slice(ne,ae),we=z.slice(G,X),me=0;me2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,re(G)&&(G=ne?0:Q.length-1),G<0&&(G=Q.length+G),G>=Q.length){if(ne)return-1;G=Q.length-1}else if(G<0)if(ne)G=0;else return-1;if(typeof z=="string"&&(z=f.from(z,X)),f.isBuffer(z))return z.length===0?-1:W(Q,z,G,X,ne);if(typeof z=="number")return z=z&255,typeof Uint8Array.prototype.indexOf=="function"?ne?Uint8Array.prototype.indexOf.call(Q,z,G):Uint8Array.prototype.lastIndexOf.call(Q,z,G):W(Q,[z],G,X,ne);throw new TypeError("val must be string, number or Buffer")}function W(Q,z,G,X,ne){var ae=1,Me=Q.length,ge=z.length;if(X!==void 0&&(X=String(X).toLowerCase(),X==="ucs2"||X==="ucs-2"||X==="utf16le"||X==="utf-16le")){if(Q.length<2||z.length<2)return-1;ae=2,Me/=2,ge/=2,G/=2}function pe(ze,_e){return ae===1?ze[_e]:ze.readUInt16BE(_e*ae)}var ot;if(ne){var we=-1;for(ot=G;otMe&&(G=Me-ge),ot=G;ot>=0;ot--){for(var me=!0,ut=0;utne&&(X=ne)):X=ne;var ae=z.length;X>ae/2&&(X=ae/2);for(var Me=0;Me>>0,isFinite(X)?(X=X>>>0,ne===void 0&&(ne="utf8")):(ne=X,X=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ae=this.length-G;if((X===void 0||X>ae)&&(X=ae),z.length>0&&(X<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");ne||(ne="utf8");for(var Me=!1;;)switch(ne){case"hex":return k(this,z,G,X);case"utf8":case"utf-8":return I(this,z,G,X);case"ascii":case"latin1":case"binary":return H(this,z,G,X);case"base64":return P(this,z,G,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,z,G,X);default:if(Me)throw new TypeError("Unknown encoding: "+ne);ne=(""+ne).toLowerCase(),Me=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function g(Q,z,G){return z===0&&G===Q.length?e.fromByteArray(Q):e.fromByteArray(Q.slice(z,G))}function a(Q,z,G){G=Math.min(Q.length,G);for(var X=[],ne=z;ne239?4:ae>223?3:ae>191?2:1;if(ne+ge<=G){var pe,ot,we,me;switch(ge){case 1:ae<128&&(Me=ae);break;case 2:pe=Q[ne+1],(pe&192)===128&&(me=(ae&31)<<6|pe&63,me>127&&(Me=me));break;case 3:pe=Q[ne+1],ot=Q[ne+2],(pe&192)===128&&(ot&192)===128&&(me=(ae&15)<<12|(pe&63)<<6|ot&63,me>2047&&(me<55296||me>57343)&&(Me=me));break;case 4:pe=Q[ne+1],ot=Q[ne+2],we=Q[ne+3],(pe&192)===128&&(ot&192)===128&&(we&192)===128&&(me=(ae&15)<<18|(pe&63)<<12|(ot&63)<<6|we&63,me>65535&&me<1114112&&(Me=me))}}Me===null?(Me=65533,ge=1):Me>65535&&(Me-=65536,X.push(Me>>>10&1023|55296),Me=56320|Me&1023),X.push(Me),ne+=ge}return m(X)}var c=4096;function m(Q){var z=Q.length;if(z<=c)return String.fromCharCode.apply(String,Q);for(var G="",X=0;XX)&&(G=X);for(var ne="",ae=z;aeX&&(z=X),G<0?(G+=X,G<0&&(G=0)):G>X&&(G=X),GG)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUintLE=f.prototype.readUIntLE=function(z,G,X){z=z>>>0,G=G>>>0,X||y(z,G,this.length);for(var ne=this[z],ae=1,Me=0;++Me>>0,G=G>>>0,X||y(z,G,this.length);for(var ne=this[z+--G],ae=1;G>0&&(ae*=256);)ne+=this[z+--G]*ae;return ne},f.prototype.readUint8=f.prototype.readUInt8=function(z,G){return z=z>>>0,G||y(z,1,this.length),this[z]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(z,G){return z=z>>>0,G||y(z,2,this.length),this[z]|this[z+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(z,G){return z=z>>>0,G||y(z,2,this.length),this[z]<<8|this[z+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(z,G){return z=z>>>0,G||y(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+this[z+3]*16777216},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(z,G){return z=z>>>0,G||y(z,4,this.length),this[z]*16777216+(this[z+1]<<16|this[z+2]<<8|this[z+3])},f.prototype.readIntLE=function(z,G,X){z=z>>>0,G=G>>>0,X||y(z,G,this.length);for(var ne=this[z],ae=1,Me=0;++Me=ae&&(ne-=Math.pow(2,8*G)),ne},f.prototype.readIntBE=function(z,G,X){z=z>>>0,G=G>>>0,X||y(z,G,this.length);for(var ne=G,ae=1,Me=this[z+--ne];ne>0&&(ae*=256);)Me+=this[z+--ne]*ae;return ae*=128,Me>=ae&&(Me-=Math.pow(2,8*G)),Me},f.prototype.readInt8=function(z,G){return z=z>>>0,G||y(z,1,this.length),this[z]&128?(255-this[z]+1)*-1:this[z]},f.prototype.readInt16LE=function(z,G){z=z>>>0,G||y(z,2,this.length);var X=this[z]|this[z+1]<<8;return X&32768?X|4294901760:X},f.prototype.readInt16BE=function(z,G){z=z>>>0,G||y(z,2,this.length);var X=this[z+1]|this[z]<<8;return X&32768?X|4294901760:X},f.prototype.readInt32LE=function(z,G){return z=z>>>0,G||y(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},f.prototype.readInt32BE=function(z,G){return z=z>>>0,G||y(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},f.prototype.readFloatLE=function(z,G){return z=z>>>0,G||y(z,4,this.length),r.read(this,z,!0,23,4)},f.prototype.readFloatBE=function(z,G){return z=z>>>0,G||y(z,4,this.length),r.read(this,z,!1,23,4)},f.prototype.readDoubleLE=function(z,G){return z=z>>>0,G||y(z,8,this.length),r.read(this,z,!0,52,8)},f.prototype.readDoubleBE=function(z,G){return z=z>>>0,G||y(z,8,this.length),r.read(this,z,!1,52,8)};function l(Q,z,G,X,ne,ae){if(!f.isBuffer(Q))throw new TypeError('"buffer" argument must be a Buffer instance');if(z>ne||zQ.length)throw new RangeError("Index out of range")}f.prototype.writeUintLE=f.prototype.writeUIntLE=function(z,G,X,ne){if(z=+z,G=G>>>0,X=X>>>0,!ne){var ae=Math.pow(2,8*X)-1;l(this,z,G,X,ae,0)}var Me=1,ge=0;for(this[G]=z&255;++ge>>0,X=X>>>0,!ne){var ae=Math.pow(2,8*X)-1;l(this,z,G,X,ae,0)}var Me=X-1,ge=1;for(this[G+Me]=z&255;--Me>=0&&(ge*=256);)this[G+Me]=z/ge&255;return G+X},f.prototype.writeUint8=f.prototype.writeUInt8=function(z,G,X){return z=+z,G=G>>>0,X||l(this,z,G,1,255,0),this[G]=z&255,G+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(z,G,X){return z=+z,G=G>>>0,X||l(this,z,G,2,65535,0),this[G]=z&255,this[G+1]=z>>>8,G+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(z,G,X){return z=+z,G=G>>>0,X||l(this,z,G,2,65535,0),this[G]=z>>>8,this[G+1]=z&255,G+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(z,G,X){return z=+z,G=G>>>0,X||l(this,z,G,4,4294967295,0),this[G+3]=z>>>24,this[G+2]=z>>>16,this[G+1]=z>>>8,this[G]=z&255,G+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(z,G,X){return z=+z,G=G>>>0,X||l(this,z,G,4,4294967295,0),this[G]=z>>>24,this[G+1]=z>>>16,this[G+2]=z>>>8,this[G+3]=z&255,G+4},f.prototype.writeIntLE=function(z,G,X,ne){if(z=+z,G=G>>>0,!ne){var ae=Math.pow(2,8*X-1);l(this,z,G,X,ae-1,-ae)}var Me=0,ge=1,pe=0;for(this[G]=z&255;++Me>0)-pe&255;return G+X},f.prototype.writeIntBE=function(z,G,X,ne){if(z=+z,G=G>>>0,!ne){var ae=Math.pow(2,8*X-1);l(this,z,G,X,ae-1,-ae)}var Me=X-1,ge=1,pe=0;for(this[G+Me]=z&255;--Me>=0&&(ge*=256);)z<0&&pe===0&&this[G+Me+1]!==0&&(pe=1),this[G+Me]=(z/ge>>0)-pe&255;return G+X},f.prototype.writeInt8=function(z,G,X){return z=+z,G=G>>>0,X||l(this,z,G,1,127,-128),z<0&&(z=255+z+1),this[G]=z&255,G+1},f.prototype.writeInt16LE=function(z,G,X){return z=+z,G=G>>>0,X||l(this,z,G,2,32767,-32768),this[G]=z&255,this[G+1]=z>>>8,G+2},f.prototype.writeInt16BE=function(z,G,X){return z=+z,G=G>>>0,X||l(this,z,G,2,32767,-32768),this[G]=z>>>8,this[G+1]=z&255,G+2},f.prototype.writeInt32LE=function(z,G,X){return z=+z,G=G>>>0,X||l(this,z,G,4,2147483647,-2147483648),this[G]=z&255,this[G+1]=z>>>8,this[G+2]=z>>>16,this[G+3]=z>>>24,G+4},f.prototype.writeInt32BE=function(z,G,X){return z=+z,G=G>>>0,X||l(this,z,G,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),this[G]=z>>>24,this[G+1]=z>>>16,this[G+2]=z>>>8,this[G+3]=z&255,G+4};function E(Q,z,G,X,ne,ae){if(G+X>Q.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function Y(Q,z,G,X,ne){return z=+z,G=G>>>0,ne||E(Q,z,G,4),r.write(Q,z,G,X,23,4),G+4}f.prototype.writeFloatLE=function(z,G,X){return Y(this,z,G,!0,X)},f.prototype.writeFloatBE=function(z,G,X){return Y(this,z,G,!1,X)};function L(Q,z,G,X,ne){return z=+z,G=G>>>0,ne||E(Q,z,G,8),r.write(Q,z,G,X,52,8),G+8}f.prototype.writeDoubleLE=function(z,G,X){return L(this,z,G,!0,X)},f.prototype.writeDoubleBE=function(z,G,X){return L(this,z,G,!1,X)},f.prototype.copy=function(z,G,X,ne){if(!f.isBuffer(z))throw new TypeError("argument should be a Buffer");if(X||(X=0),!ne&&ne!==0&&(ne=this.length),G>=z.length&&(G=z.length),G||(G=0),ne>0&&ne=this.length)throw new RangeError("Index out of range");if(ne<0)throw new RangeError("sourceEnd out of bounds");ne>this.length&&(ne=this.length),z.length-G>>0,X=X===void 0?this.length:X>>>0,z||(z=0);var Me;if(typeof z=="number")for(Me=G;Me55295&&G<57344){if(!ne){if(G>56319){(z-=3)>-1&&ae.push(239,191,189);continue}else if(Me+1===X){(z-=3)>-1&&ae.push(239,191,189);continue}ne=G;continue}if(G<56320){(z-=3)>-1&&ae.push(239,191,189),ne=G;continue}G=(ne-55296<<10|G-56320)+65536}else ne&&(z-=3)>-1&&ae.push(239,191,189);if(ne=null,G<128){if((z-=1)<0)break;ae.push(G)}else if(G<2048){if((z-=2)<0)break;ae.push(G>>6|192,G&63|128)}else if(G<65536){if((z-=3)<0)break;ae.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((z-=4)<0)break;ae.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return ae}function ee(Q){for(var z=[],G=0;G>8,ne=G%256,ae.push(ne),ae.push(X);return ae}function U(Q){return e.toByteArray(V(Q))}function j(Q,z,G,X){for(var ne=0;ne=z.length||ne>=Q.length);++ne)z[ne+G]=Q[ne];return ne}function se(Q,z){return Q instanceof z||Q!=null&&Q.constructor!=null&&Q.constructor.name!=null&&Q.constructor.name===z.name}function re(Q){return Q!==Q}var oe=function(){for(var Q="0123456789abcdef",z=new Array(256),G=0;G<16;++G)for(var X=G*16,ne=0;ne<16;++ne)z[X+ne]=Q[G]+Q[ne];return z}()})(mt);var ft={},BB={get exports(){return ft},set exports(t){ft=t}},On=BB.exports={},ao,oo;function aw(){throw new Error("setTimeout has not been defined")}function ow(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ao=setTimeout:ao=aw}catch{ao=aw}try{typeof clearTimeout=="function"?oo=clearTimeout:oo=ow}catch{oo=ow}})();function Y9(t){if(ao===setTimeout)return setTimeout(t,0);if((ao===aw||!ao)&&setTimeout)return ao=setTimeout,setTimeout(t,0);try{return ao(t,0)}catch{try{return ao.call(null,t,0)}catch{return ao.call(this,t,0)}}}function IB(t){if(oo===clearTimeout)return clearTimeout(t);if((oo===ow||!oo)&&clearTimeout)return oo=clearTimeout,clearTimeout(t);try{return oo(t)}catch{try{return oo.call(null,t)}catch{return oo.call(this,t)}}}var mf=[],nh=!1,lc,Tm=-1;function PB(){!nh||!lc||(nh=!1,lc.length?mf=lc.concat(mf):Tm=-1,mf.length&&Q9())}function Q9(){if(!nh){var t=Y9(PB);nh=!0;for(var e=mf.length;e;){for(lc=mf,mf=[];++Tm1)for(var r=1;rr.unsubscribe():r}function HB(t){let e;return J9(t,r=>e=r)(),e}Promise.resolve();const wu=[];function jB(t,e){return{subscribe:Iv(t,e).subscribe}}function Iv(t,e=ih){let r;const n=new Set;function s(f){if(UB(t,f)&&(t=f,r)){const u=!wu.length;for(const h of n)h[1](),wu.push(h,t);if(u){for(let h=0;h{n.delete(h),n.size===0&&(r(),r=null)}}return{set:s,update:i,subscribe:o}}function Cd(t,e,r){const n=!Array.isArray(t),s=n?[t]:t,i=e.length<2;return jB(r,o=>{let f=!1;const u=[];let h=0,p=ih;const d=()=>{if(h)return;p();const w=e(n?u[0]:u,o);i?o(w):p=FB(w)?w:ih},v=s.map((w,A)=>J9(w,M=>{u[A]=M,h&=~(1<{h|=1<0}),r=[],n=0,s=e;n1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(lI,function(u,h,p,d,v,w){if(h)e.minimumIntegerDigits=p.length;else{if(d&&v)throw new Error("We currently do not support maximum integer digits");if(w)throw new Error("We currently do not support exact integer digits")}return""});continue}if(l7.test(s.stem)){e.minimumIntegerDigits=s.stem.length;continue}if(s4.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(s4,function(u,h,p,d,v,w){return p==="*"?e.minimumFractionDigits=h.length:d&&d[0]==="#"?e.maximumFractionDigits=d.length:v&&w?(e.minimumFractionDigits=v.length,e.maximumFractionDigits=v.length+w.length):(e.minimumFractionDigits=h.length,e.maximumFractionDigits=h.length),""});var i=s.options[0];i==="w"?e=_n(_n({},e),{trailingZeroDisplay:"stripIfInteger"}):i&&(e=_n(_n({},e),a4(i)));continue}if(f7.test(s.stem)){e=_n(_n({},e),a4(s.stem));continue}var o=c7(s.stem);o&&(e=_n(_n({},e),o));var f=cI(s.stem);f&&(e=_n(_n({},e),f))}return e}var V1={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function hI(t,e){for(var r="",n=0;n>1),u="a",h=dI(e);for((h=="H"||h=="k")&&(f=0);f-- >0;)r+=u;for(;o-- >0;)r=h+r}else s==="J"?r+="H":r+=s}return r}function dI(t){var e=t.hourCycle;if(e===void 0&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=t.language,n;r!=="root"&&(n=t.maximize().region);var s=V1[n||""]||V1[r||""]||V1["".concat(r,"-001")]||V1["001"];return s[0]}var sb,pI=new RegExp("^".concat(o7.source,"*")),mI=new RegExp("".concat(o7.source,"*$"));function _r(t,e){return{start:t,end:e}}var gI=!!String.prototype.startsWith,vI=!!String.fromCodePoint,yI=!!Object.fromEntries,bI=!!String.prototype.codePointAt,wI=!!String.prototype.trimStart,AI=!!String.prototype.trimEnd,xI=!!Number.isSafeInteger,EI=xI?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},cw=!0;try{var MI=h7("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");cw=((sb=MI.exec("a"))===null||sb===void 0?void 0:sb[0])==="a"}catch{cw=!1}var f4=gI?function(e,r,n){return e.startsWith(r,n)}:function(e,r,n){return e.slice(n,n+r.length)===r},uw=vI?String.fromCodePoint:function(){for(var e=[],r=0;ri;){if(o=e[i++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},l4=yI?Object.fromEntries:function(e){for(var r={},n=0,s=e;n=n)){var s=e.charCodeAt(r),i;return s<55296||s>56319||r+1===n||(i=e.charCodeAt(r+1))<56320||i>57343?s:(s-55296<<10)+(i-56320)+65536}},SI=wI?function(e){return e.trimStart()}:function(e){return e.replace(pI,"")},_I=AI?function(e){return e.trimEnd()}:function(e){return e.replace(mI,"")};function h7(t,e){return new RegExp(t,e)}var hw;if(cw){var c4=h7("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");hw=function(e,r){var n;c4.lastIndex=r;var s=c4.exec(e);return(n=s[1])!==null&&n!==void 0?n:""}}else hw=function(e,r){for(var n=[];;){var s=u7(e,r);if(s===void 0||d7(s)||TI(s))break;n.push(s),r+=s>=65536?2:1}return uw.apply(void 0,n)};var RI=function(){function t(e,r){r===void 0&&(r={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(e,r,n){for(var s=[];!this.isEOF();){var i=this.char();if(i===123){var o=this.parseArgument(e,n);if(o.err)return o;s.push(o.val)}else{if(i===125&&e>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var f=this.clonePosition();this.bump(),s.push({type:dn.pound,location:_r(f,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(gr.UNMATCHED_CLOSING_TAG,_r(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&dw(this.peek()||0)){var o=this.parseTag(e,r);if(o.err)return o;s.push(o.val)}else{var o=this.parseLiteral(e,r);if(o.err)return o;s.push(o.val)}}}return{val:s,err:null}},t.prototype.parseTag=function(e,r){var n=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:dn.literal,value:"<".concat(s,"/>"),location:_r(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,r,!0);if(i.err)return i;var o=i.val,f=this.clonePosition();if(this.bumpIf("")?{val:{type:dn.tag,value:s,children:o,location:_r(n,this.clonePosition())},err:null}:this.error(gr.INVALID_TAG,_r(f,this.clonePosition())))}else return this.error(gr.UNCLOSED_TAG,_r(n,this.clonePosition()))}else return this.error(gr.INVALID_TAG,_r(n,this.clonePosition()))},t.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&CI(this.char());)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(e,r){for(var n=this.clonePosition(),s="";;){var i=this.tryParseQuote(r);if(i){s+=i;continue}var o=this.tryParseUnquoted(e,r);if(o){s+=o;continue}var f=this.tryParseLeftAngleBracket();if(f){s+=f;continue}break}var u=_r(n,this.clonePosition());return{val:{type:dn.literal,value:s,location:u},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!NI(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return uw.apply(void 0,r)},t.prototype.tryParseUnquoted=function(e,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&e>0?null:(this.bump(),uw(n))},t.prototype.parseArgument=function(e,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(gr.EXPECT_ARGUMENT_CLOSING_BRACE,_r(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(gr.EMPTY_ARGUMENT,_r(n,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(gr.MALFORMED_ARGUMENT,_r(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(gr.EXPECT_ARGUMENT_CLOSING_BRACE,_r(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:dn.argument,value:s,location:_r(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(gr.EXPECT_ARGUMENT_CLOSING_BRACE,_r(n,this.clonePosition())):this.parseArgumentOptions(e,r,s,n);default:return this.error(gr.MALFORMED_ARGUMENT,_r(n,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),r=this.offset(),n=hw(this.message,r),s=r+n.length;this.bumpTo(s);var i=this.clonePosition(),o=_r(e,i);return{value:n,location:o}},t.prototype.parseArgumentOptions=function(e,r,n,s){var i,o=this.clonePosition(),f=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(f){case"":return this.error(gr.EXPECT_ARGUMENT_TYPE,_r(o,u));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var v=_I(d.val);if(v.length===0)return this.error(gr.EXPECT_ARGUMENT_STYLE,_r(this.clonePosition(),this.clonePosition()));var w=_r(p,this.clonePosition());h={style:v,styleLocation:w}}var A=this.tryParseArgumentClose(s);if(A.err)return A;var M=_r(s,this.clonePosition());if(h&&f4(h==null?void 0:h.style,"::",0)){var R=SI(h.style.slice(2));if(f==="number"){var d=this.parseNumberSkeletonFromString(R,h.styleLocation);return d.err?d:{val:{type:dn.number,value:n,location:M,style:d.val},err:null}}else{if(R.length===0)return this.error(gr.EXPECT_DATE_TIME_SKELETON,M);var N=R;this.locale&&(N=hI(R,this.locale));var v={type:od.dateTime,pattern:N,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?sI(N):{}},C=f==="date"?dn.date:dn.time;return{val:{type:C,value:n,location:M,style:v},err:null}}}return{val:{type:f==="number"?dn.number:f==="date"?dn.date:dn.time,value:n,location:M,style:(i=h==null?void 0:h.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var B=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(gr.EXPECT_SELECT_ARGUMENT_OPTIONS,_r(B,bg({},B)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),D=0;if(f!=="select"&&O.value==="offset"){if(!this.bumpIf(":"))return this.error(gr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_r(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(gr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,gr.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),O=this.parseIdentifierIfPossible(),D=d.val}var q=this.tryParsePluralOrSelectOptions(e,f,r,O);if(q.err)return q;var A=this.tryParseArgumentClose(s);if(A.err)return A;var W=_r(s,this.clonePosition());return f==="select"?{val:{type:dn.select,value:n,options:l4(q.val),location:W},err:null}:{val:{type:dn.plural,value:n,options:l4(q.val),offset:D,pluralType:f==="plural"?"cardinal":"ordinal",location:W},err:null}}default:return this.error(gr.INVALID_ARGUMENT_TYPE,_r(o,u))}},t.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(gr.EXPECT_ARGUMENT_CLOSING_BRACE,_r(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(gr.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,_r(s,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(e,r){var n=[];try{n=oI(e)}catch{return this.error(gr.INVALID_NUMBER_SKELETON,r)}return{val:{type:od.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?uI(n):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(e,r,n,s){for(var i,o=!1,f=[],u=new Set,h=s.value,p=s.location;;){if(h.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var v=this.tryParseDecimalInteger(gr.EXPECT_PLURAL_ARGUMENT_SELECTOR,gr.INVALID_PLURAL_ARGUMENT_SELECTOR);if(v.err)return v;p=_r(d,this.clonePosition()),h=this.message.slice(d.offset,this.offset())}else break}if(u.has(h))return this.error(r==="select"?gr.DUPLICATE_SELECT_ARGUMENT_SELECTOR:gr.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,p);h==="other"&&(o=!0),this.bumpSpace();var w=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?gr.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:gr.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,_r(this.clonePosition(),this.clonePosition()));var A=this.parseMessage(e+1,r,n);if(A.err)return A;var M=this.tryParseArgumentClose(w);if(M.err)return M;f.push([h,{value:A.val,location:_r(w,this.clonePosition())}]),u.add(h),this.bumpSpace(),i=this.parseIdentifierIfPossible(),h=i.value,p=i.location}return f.length===0?this.error(r==="select"?gr.EXPECT_SELECT_ARGUMENT_SELECTOR:gr.EXPECT_PLURAL_ARGUMENT_SELECTOR,_r(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(gr.MISSING_OTHER_CLAUSE,_r(this.clonePosition(),this.clonePosition())):{val:f,err:null}},t.prototype.tryParseDecimalInteger=function(e,r){var n=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var f=this.char();if(f>=48&&f<=57)i=!0,o=o*10+(f-48),this.bump();else break}var u=_r(s,this.clonePosition());return i?(o*=n,EI(o)?{val:o,err:null}:this.error(r,u)):this.error(e,u)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var r=u7(this.message,e);if(r===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return r},t.prototype.error=function(e,r){return{val:null,err:{kind:e,message:this.message,location:r}}},t.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},t.prototype.bumpIf=function(e){if(f4(this.message,e,this.offset())){for(var r=0;r=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var r=this.offset();if(r===e)break;if(r>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&d7(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(e>=65536?2:1));return n??null},t}();function dw(t){return t>=97&&t<=122||t>=65&&t<=90}function NI(t){return dw(t)||t===47}function CI(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function d7(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function TI(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function pw(t){t.forEach(function(e){if(delete e.location,n7(e)||i7(e))for(var r in e.options)delete e.options[r].location,pw(e.options[r].value);else e7(e)&&a7(e.style)||(t7(e)||r7(e))&&lw(e.style)?delete e.style.location:s7(e)&&pw(e.children)})}function kI(t,e){e===void 0&&(e={}),e=bg({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new RI(t,e).parse();if(r.err){var n=SyntaxError(gr[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return e!=null&&e.captureLocation||pw(r.val),r.val}function ab(t,e){var r=e&&e.cache?e.cache:DI,n=e&&e.serializer?e.serializer:LI,s=e&&e.strategy?e.strategy:II;return s(t,{cache:r,serializer:n})}function BI(t){return t==null||typeof t=="number"||typeof t=="boolean"}function p7(t,e,r,n){var s=BI(n)?n:r(n),i=e.get(s);return typeof i>"u"&&(i=t.call(this,n),e.set(s,i)),i}function m7(t,e,r){var n=Array.prototype.slice.call(arguments,3),s=r(n),i=e.get(s);return typeof i>"u"&&(i=t.apply(this,n),e.set(s,i)),i}function YA(t,e,r,n,s){return r.bind(e,t,n,s)}function II(t,e){var r=t.length===1?p7:m7;return YA(t,this,r,e.cache.create(),e.serializer)}function PI(t,e){return YA(t,this,m7,e.cache.create(),e.serializer)}function OI(t,e){return YA(t,this,p7,e.cache.create(),e.serializer)}var LI=function(){return JSON.stringify(arguments)};function QA(){this.cache=Object.create(null)}QA.prototype.get=function(t){return this.cache[t]};QA.prototype.set=function(t,e){this.cache[t]=e};var DI={create:function(){return new QA}},ob={variadic:PI,monadic:OI},fd;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(fd||(fd={}));var Ov=function(t){Pv(e,t);function e(r,n,s){var i=t.call(this,r)||this;return i.code=n,i.originalMessage=s,i}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),u4=function(t){Pv(e,t);function e(r,n,s,i){return t.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(s).join('", "'),'"'),fd.INVALID_VALUE,i)||this}return e}(Ov),FI=function(t){Pv(e,t);function e(r,n,s){return t.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),fd.INVALID_VALUE,s)||this}return e}(Ov),UI=function(t){Pv(e,t);function e(r,n){return t.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),fd.MISSING_VALUE,n)||this}return e}(Ov),qi;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(qi||(qi={}));function HI(t){return t.length<2?t:t.reduce(function(e,r){var n=e[e.length-1];return!n||n.type!==qi.literal||r.type!==qi.literal?e.push(r):n.value+=r.value,e},[])}function jI(t){return typeof t=="function"}function km(t,e,r,n,s,i,o){if(t.length===1&&i4(t[0]))return[{type:qi.literal,value:t[0].value}];for(var f=[],u=0,h=t;u0?new Intl.Locale(r[0]):new Intl.Locale(typeof e=="string"?e:e[0])},t.__parse=kI,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();const bl={},VI=(t,e,r)=>r&&(e in bl||(bl[e]={}),t in bl[e]||(bl[e][t]=r),r),g7=(t,e)=>{if(e==null)return;if(e in bl&&t in bl[e])return bl[e][t];const r=f1(e);for(let n=0;n0){const u=i.slice(f,i.length).join(".");if(u in o){o=o[u];break}}o=o[i[f]]}else o=void 0;return o}(r,e)}function Bm(t,...e){delete bl[t],o1.update(r=>(r[t]=tI.all([r[t]||{},...e]),r))}Cd([o1],([t])=>Object.keys(t));o1.subscribe(t=>XA=t);const Im={};function y7(t){return Im[t]}function wg(t){return t!=null&&f1(t).some(e=>{var r;return(r=y7(e))===null||r===void 0?void 0:r.size})}function ZI(t,e){return Promise.all(e.map(n=>(function(s,i){Im[s].delete(i),Im[s].size===0&&delete Im[s]}(t,n),n().then(s=>s.default||s)))).then(n=>Bm(t,...n))}const o0={};function b7(t){if(!wg(t))return t in o0?o0[t]:Promise.resolve();const e=function(r){return f1(r).map(n=>{const s=y7(n);return[n,s?[...s]:[]]}).filter(([,n])=>n.length>0)}(t);return o0[t]=Promise.all(e.map(([r,n])=>ZI(r,n))).then(()=>{if(wg(t))return b7(t);delete o0[t]}),o0[t]}function YI({locale:t,id:e}){console.warn(`[svelte-i18n] The message "${e}" was not found in "${f1(t).join('", "')}".${wg(Ol())?` - -Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const N0={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function ld(){return N0}function QI(t){const{formats:e,...r}=t,n=t.initialLocale||t.fallbackLocale;return r.warnOnMissingMessages&&(delete r.warnOnMissingMessages,r.handleMissingMessage==null?r.handleMissingMessage=YI:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(N0,r,{initialLocale:n}),e&&("number"in e&&Object.assign(N0.formats.number,e.number),"date"in e&&Object.assign(N0.formats.date,e.date),"time"in e&&Object.assign(N0.formats.time,e.time)),tu.set(n)}const lb=Iv(!1);let mw;const Pm=Iv(null);function h4(t){return t.split("-").map((e,r,n)=>n.slice(0,r+1).join("-")).reverse()}function f1(t,e=ld().fallbackLocale){const r=h4(t);return e?[...new Set([...r,...h4(e)])]:r}function Ol(){return mw??void 0}Pm.subscribe(t=>{mw=t??void 0,typeof window<"u"&&t!=null&&document.documentElement.setAttribute("lang",t)});const tu={...Pm,set:t=>{if(t&&function(e){if(e==null)return;const r=f1(e);for(let n=0;nlb.set(!0),e):lb.set(!0),b7(t).then(()=>{Pm.set(t)}).finally(()=>{clearTimeout(r),lb.set(!1)})}return Pm.set(t)}},XI=()=>typeof window>"u"?null:window.navigator.language||window.navigator.languages[0],Lv=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}},ip=(t,e)=>{const{formats:r}=ld();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},JI=Lv(({locale:t,format:e,...r})=>{if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return e&&(r=ip("number",e)),new Intl.NumberFormat(t,r)}),$I=Lv(({locale:t,format:e,...r})=>{if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return e?r=ip("date",e):Object.keys(r).length===0&&(r=ip("date","short")),new Intl.DateTimeFormat(t,r)}),eP=Lv(({locale:t,format:e,...r})=>{if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return e?r=ip("time",e):Object.keys(r).length===0&&(r=ip("time","short")),new Intl.DateTimeFormat(t,r)}),tP=({locale:t=Ol(),...e}={})=>JI({locale:t,...e}),rP=({locale:t=Ol(),...e}={})=>$I({locale:t,...e}),nP=({locale:t=Ol(),...e}={})=>eP({locale:t,...e}),iP=Lv((t,e=Ol())=>new GI(t,e,ld().formats,{ignoreTag:ld().ignoreTag})),sP=(t,e={})=>{var r,n,s,i;let o=e;typeof t=="object"&&(o=t,t=o.id);const{values:f,locale:u=Ol(),default:h}=o;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let p=g7(t,u);if(p){if(typeof p!="string")return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof p}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),p}else p=(i=(s=(n=(r=ld()).handleMissingMessage)===null||n===void 0?void 0:n.call(r,{locale:u,id:t,defaultValue:h}))!==null&&s!==void 0?s:h)!==null&&i!==void 0?i:t;if(!f)return p;let d=p;try{d=iP(p,u).format(f)}catch(v){v instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,v.message)}return d},aP=(t,e)=>nP(e).format(t),oP=(t,e)=>rP(e).format(t),fP=(t,e)=>tP(e).format(t),lP=(t,e=Ol())=>g7(t,e),Pf=Cd([tu,o1],()=>sP);Cd([tu],()=>aP);Cd([tu],()=>oP);Cd([tu],()=>fP);Cd([tu,o1],()=>lP);let w7=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,r)=>(r&=63,r<36?e+=r.toString(36):r<62?e+=(r-26).toString(36).toUpperCase():r>62?e+="-":e+="_",e),"");var Ag={},cP={get exports(){return Ag},set exports(t){Ag=t}};(function(t,e){var r=200,n="Expected a function",s="__lodash_hash_undefined__",i=1,o=2,f=1/0,u=9007199254740991,h="[object Arguments]",p="[object Array]",d="[object Boolean]",v="[object Date]",w="[object Error]",A="[object Function]",M="[object GeneratorFunction]",R="[object Map]",N="[object Number]",C="[object Object]",B="[object Promise]",O="[object RegExp]",D="[object Set]",q="[object String]",W="[object Symbol]",k="[object WeakMap]",I="[object ArrayBuffer]",H="[object DataView]",P="[object Float32Array]",T="[object Float64Array]",g="[object Int8Array]",a="[object Int16Array]",c="[object Int32Array]",m="[object Uint8Array]",b="[object Uint8ClampedArray]",x="[object Uint16Array]",_="[object Uint32Array]",S=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,y=/^\w*$/,l=/^\./,E=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,L=/\\(\\)?/g,F=/^\[object .+?Constructor\]$/,V=/^(?:0|[1-9]\d*)$/,Z={};Z[P]=Z[T]=Z[g]=Z[a]=Z[c]=Z[m]=Z[b]=Z[x]=Z[_]=!0,Z[h]=Z[p]=Z[I]=Z[d]=Z[H]=Z[v]=Z[w]=Z[A]=Z[R]=Z[N]=Z[C]=Z[O]=Z[D]=Z[q]=Z[k]=!1;var ee=typeof ue=="object"&&ue&&ue.Object===Object&&ue,ce=typeof self=="object"&&self&&self.Object===Object&&self,U=ee||ce||Function("return this")(),j=e&&!e.nodeType&&e,se=j&&!0&&t&&!t.nodeType&&t,re=se&&se.exports===j,oe=re&&ee.process,Q=function(){try{return oe&&oe.binding("util")}catch{}}(),z=Q&&Q.isTypedArray;function G($,K,J,fe){for(var Ae=-1,Qe=$?$.length:0;++Ae-1}function Gt($,K){var J=this.__data__,fe=Uf(J,$);return fe<0?J.push([$,K]):J[fe][1]=K,this}Le.prototype.clear=Ye,Le.prototype.delete=Ar,Le.prototype.get=xr,Le.prototype.has=Er,Le.prototype.set=Gt;function Vt($){var K=-1,J=$?$.length:0;for(this.clear();++Kyt))return!1;var Lt=Qe.get($);if(Lt&&Qe.get(K))return Lt==K;var fr=-1,tr=!0,Jt=Ae&i?new mr:void 0;for(Qe.set($,K),Qe.set(K,$);++fr-1&&$%1==0&&$-1&&$%1==0&&$<=u}function vn($){var K=typeof $;return!!$&&(K=="object"||K=="function")}function ji($){return!!$&&typeof $=="object"}function Aa($){return typeof $=="symbol"||ji($)&&He.call($)==W}var $l=z?Me(z):$d;function vu($){return $==null?"":Zl($)}function qy($,K,J){var fe=$==null?void 0:jo($,K);return fe===void 0?J:fe}function Gy($,K){return $!=null&&va($,K,Gl)}function jf($){return Fr($)?Wd($):cu($)}function Vy($){return $}function Wy($){return ba($)?ne(wa($)):n0($)}t.exports=he})(cP,Ag);const uP=Ag;var sp={},hP={get exports(){return sp},set exports(t){sp=t}};(function(t){(function(){var e="input is invalid type",r="finalize already called",n=typeof window=="object",s=n?window:{};s.JS_SHA3_NO_WINDOW&&(n=!1);var i=!n&&typeof self=="object",o=!s.JS_SHA3_NO_NODE_JS&&typeof ft=="object"&&ft.versions&&ft.versions.node;o?s=ue:i&&(s=self);var f=!s.JS_SHA3_NO_COMMON_JS&&!0&&t.exports,u=!s.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",h="0123456789abcdef".split(""),p=[31,7936,2031616,520093696],d=[4,1024,262144,67108864],v=[1,256,65536,16777216],w=[6,1536,393216,100663296],A=[0,8,16,24],M=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],R=[224,256,384,512],N=[128,256],C=["hex","buffer","arrayBuffer","array","digest"],B={128:168,256:136};(s.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(L){return Object.prototype.toString.call(L)==="[object Array]"}),u&&(s.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(L){return typeof L=="object"&&L.buffer&&L.buffer.constructor===ArrayBuffer});for(var O=function(L,F,V){return function(Z){return new l(L,F,L).update(Z)[V]()}},D=function(L,F,V){return function(Z,ee){return new l(L,F,ee).update(Z)[V]()}},q=function(L,F,V){return function(Z,ee,ce,U){return a["cshake"+L].update(Z,ee,ce,U)[V]()}},W=function(L,F,V){return function(Z,ee,ce,U){return a["kmac"+L].update(Z,ee,ce,U)[V]()}},k=function(L,F,V,Z){for(var ee=0;ee>5,this.byteCount=this.blockCount<<2,this.outputBlocks=V>>5,this.extraBytes=(V&31)>>3;for(var Z=0;Z<50;++Z)this.s[Z]=0}l.prototype.update=function(L){if(this.finalized)throw new Error(r);var F,V=typeof L;if(V!=="string"){if(V==="object"){if(L===null)throw new Error(e);if(u&&L.constructor===ArrayBuffer)L=new Uint8Array(L);else if(!Array.isArray(L)&&(!u||!ArrayBuffer.isView(L)))throw new Error(e)}else throw new Error(e);F=!0}for(var Z=this.blocks,ee=this.byteCount,ce=L.length,U=this.blockCount,j=0,se=this.s,re,oe;j>2]|=L[j]<>2]|=oe<>2]|=(192|oe>>6)<>2]|=(128|oe&63)<=57344?(Z[re>>2]|=(224|oe>>12)<>2]|=(128|oe>>6&63)<>2]|=(128|oe&63)<>2]|=(240|oe>>18)<>2]|=(128|oe>>12&63)<>2]|=(128|oe>>6&63)<>2]|=(128|oe&63)<=ee){for(this.start=re-ee,this.block=Z[U],re=0;re>8,V=L&255;V>0;)ee.unshift(V),L=L>>8,V=L&255,++Z;return F?ee.push(Z):ee.unshift(Z),this.update(ee),ee.length},l.prototype.encodeString=function(L){var F,V=typeof L;if(V!=="string"){if(V==="object"){if(L===null)throw new Error(e);if(u&&L.constructor===ArrayBuffer)L=new Uint8Array(L);else if(!Array.isArray(L)&&(!u||!ArrayBuffer.isView(L)))throw new Error(e)}else throw new Error(e);F=!0}var Z=0,ee=L.length;if(F)Z=ee;else for(var ce=0;ce=57344?Z+=3:(U=65536+((U&1023)<<10|L.charCodeAt(++ce)&1023),Z+=4)}return Z+=this.encode(Z*8),this.update(L),Z},l.prototype.bytepad=function(L,F){for(var V=this.encode(F),Z=0;Z>2]|=this.padding[F&3],this.lastByteIndex===this.byteCount)for(L[0]=L[V],F=1;F>4&15]+h[j&15]+h[j>>12&15]+h[j>>8&15]+h[j>>20&15]+h[j>>16&15]+h[j>>28&15]+h[j>>24&15];ce%L===0&&(Y(F),ee=0)}return Z&&(j=F[ee],U+=h[j>>4&15]+h[j&15],Z>1&&(U+=h[j>>12&15]+h[j>>8&15]),Z>2&&(U+=h[j>>20&15]+h[j>>16&15])),U},l.prototype.arrayBuffer=function(){this.finalize();var L=this.blockCount,F=this.s,V=this.outputBlocks,Z=this.extraBytes,ee=0,ce=0,U=this.outputBits>>3,j;Z?j=new ArrayBuffer(V+1<<2):j=new ArrayBuffer(U);for(var se=new Uint32Array(j);ce>8&255,U[j+2]=se>>16&255,U[j+3]=se>>24&255;ce%L===0&&Y(F)}return Z&&(j=ce<<2,se=F[ee],U[j]=se&255,Z>1&&(U[j+1]=se>>8&255),Z>2&&(U[j+2]=se>>16&255)),U};function E(L,F,V){l.call(this,L,F,V)}E.prototype=new l,E.prototype.finalize=function(){return this.encode(this.outputBits,!0),l.prototype.finalize.call(this)};var Y=function(L){var F,V,Z,ee,ce,U,j,se,re,oe,Q,z,G,X,ne,ae,Me,ge,pe,ot,we,me,ut,ze,_e,Bt,qe,Te,xt,He,Se,Rt,Ve,Ee,Nt,Ze,Re,Ct,je,ke,Pt,Ke,Ne,Ot,De,Be,kt,Ge,Ie,Ut,Ue,Oe,It,We,Pe,_t,Le,Ye,Ar,xr,Er,Gt,Vt;for(Z=0;Z<48;Z+=2)ee=L[0]^L[10]^L[20]^L[30]^L[40],ce=L[1]^L[11]^L[21]^L[31]^L[41],U=L[2]^L[12]^L[22]^L[32]^L[42],j=L[3]^L[13]^L[23]^L[33]^L[43],se=L[4]^L[14]^L[24]^L[34]^L[44],re=L[5]^L[15]^L[25]^L[35]^L[45],oe=L[6]^L[16]^L[26]^L[36]^L[46],Q=L[7]^L[17]^L[27]^L[37]^L[47],z=L[8]^L[18]^L[28]^L[38]^L[48],G=L[9]^L[19]^L[29]^L[39]^L[49],F=z^(U<<1|j>>>31),V=G^(j<<1|U>>>31),L[0]^=F,L[1]^=V,L[10]^=F,L[11]^=V,L[20]^=F,L[21]^=V,L[30]^=F,L[31]^=V,L[40]^=F,L[41]^=V,F=ee^(se<<1|re>>>31),V=ce^(re<<1|se>>>31),L[2]^=F,L[3]^=V,L[12]^=F,L[13]^=V,L[22]^=F,L[23]^=V,L[32]^=F,L[33]^=V,L[42]^=F,L[43]^=V,F=U^(oe<<1|Q>>>31),V=j^(Q<<1|oe>>>31),L[4]^=F,L[5]^=V,L[14]^=F,L[15]^=V,L[24]^=F,L[25]^=V,L[34]^=F,L[35]^=V,L[44]^=F,L[45]^=V,F=se^(z<<1|G>>>31),V=re^(G<<1|z>>>31),L[6]^=F,L[7]^=V,L[16]^=F,L[17]^=V,L[26]^=F,L[27]^=V,L[36]^=F,L[37]^=V,L[46]^=F,L[47]^=V,F=oe^(ee<<1|ce>>>31),V=Q^(ce<<1|ee>>>31),L[8]^=F,L[9]^=V,L[18]^=F,L[19]^=V,L[28]^=F,L[29]^=V,L[38]^=F,L[39]^=V,L[48]^=F,L[49]^=V,X=L[0],ne=L[1],Be=L[11]<<4|L[10]>>>28,kt=L[10]<<4|L[11]>>>28,Te=L[20]<<3|L[21]>>>29,xt=L[21]<<3|L[20]>>>29,xr=L[31]<<9|L[30]>>>23,Er=L[30]<<9|L[31]>>>23,Ke=L[40]<<18|L[41]>>>14,Ne=L[41]<<18|L[40]>>>14,Ee=L[2]<<1|L[3]>>>31,Nt=L[3]<<1|L[2]>>>31,ae=L[13]<<12|L[12]>>>20,Me=L[12]<<12|L[13]>>>20,Ge=L[22]<<10|L[23]>>>22,Ie=L[23]<<10|L[22]>>>22,He=L[33]<<13|L[32]>>>19,Se=L[32]<<13|L[33]>>>19,Gt=L[42]<<2|L[43]>>>30,Vt=L[43]<<2|L[42]>>>30,We=L[5]<<30|L[4]>>>2,Pe=L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[44]=Ye^~xr&Gt,L[45]=Ar^~Er&Vt,L[6]=ot^~me&X,L[7]=we^~ut&ne,L[16]=He^~Rt&ze,L[17]=Se^~Ve&_e,L[26]=ke^~Ke&Ee,L[27]=Pt^~Ne&Nt,L[36]=Ut^~Oe&Ot,L[37]=Ue^~It&De,L[46]=xr^~Gt&We,L[47]=Er^~Vt&Pe,L[8]=me^~X&ae,L[9]=ut^~ne&Me,L[18]=Rt^~ze&Bt,L[19]=Ve^~_e&qe,L[28]=Ke^~Ee&Ze,L[29]=Ne^~Nt&Re,L[38]=Oe^~Ot&Be,L[39]=It^~De&kt,L[48]=Gt^~We&_t,L[49]=Vt^~Pe&Le,L[0]^=M[Z],L[1]^=M[Z+1]};if(f)t.exports=a;else for(m=0;m=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function gP(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t=="string")if(e){if(e==="hex")for(t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t),s=0;s>6|192,r[n++]=i&63|128):mP(t,s)?(i=65536+((i&1023)<<10)+(t.charCodeAt(++s)&1023),r[n++]=i>>18|240,r[n++]=i>>12&63|128,r[n++]=i>>6&63|128,r[n++]=i&63|128):(r[n++]=i>>12|224,r[n++]=i>>6&63|128,r[n++]=i&63|128)}else for(s=0;s>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}pr.htonl=x7;function yP(t,e){for(var r="",n=0;n>>0}return i}pr.join32=bP;function wP(t,e){for(var r=new Array(t.length*4),n=0,s=0;n>>24,r[s+1]=i>>>16&255,r[s+2]=i>>>8&255,r[s+3]=i&255):(r[s+3]=i>>>24,r[s+2]=i>>>16&255,r[s+1]=i>>>8&255,r[s]=i&255)}return r}pr.split32=wP;function AP(t,e){return t>>>e|t<<32-e}pr.rotr32=AP;function xP(t,e){return t<>>32-e}pr.rotl32=xP;function EP(t,e){return t+e>>>0}pr.sum32=EP;function MP(t,e,r){return t+e+r>>>0}pr.sum32_3=MP;function SP(t,e,r,n){return t+e+r+n>>>0}pr.sum32_4=SP;function _P(t,e,r,n,s){return t+e+r+n+s>>>0}pr.sum32_5=_P;function RP(t,e,r,n){var s=t[e],i=t[e+1],o=n+i>>>0,f=(o>>0,t[e+1]=o}pr.sum64=RP;function NP(t,e,r,n){var s=e+n>>>0,i=(s>>0}pr.sum64_hi=NP;function CP(t,e,r,n){var s=e+n;return s>>>0}pr.sum64_lo=CP;function TP(t,e,r,n,s,i,o,f){var u=0,h=e;h=h+n>>>0,u+=h>>0,u+=h>>0,u+=h>>0}pr.sum64_4_hi=TP;function kP(t,e,r,n,s,i,o,f){var u=e+n+i+f;return u>>>0}pr.sum64_4_lo=kP;function BP(t,e,r,n,s,i,o,f,u,h){var p=0,d=e;d=d+n>>>0,p+=d>>0,p+=d>>0,p+=d>>0,p+=d>>0}pr.sum64_5_hi=BP;function IP(t,e,r,n,s,i,o,f,u,h){var p=e+n+i+f+h;return p>>>0}pr.sum64_5_lo=IP;function PP(t,e,r){var n=e<<32-r|t>>>r;return n>>>0}pr.rotr64_hi=PP;function OP(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}pr.rotr64_lo=OP;function LP(t,e,r){return t>>>r}pr.shr64_hi=LP;function DP(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}pr.shr64_lo=DP;var Td={},p4=pr,FP=fa;function Dv(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}Td.BlockHash=Dv;Dv.prototype.update=function(e,r){if(e=p4.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=p4.join32(e,0,e.length-n,this.endian);for(var s=0;s>>24&255,s[i++]=e>>>16&255,s[i++]=e>>>8&255,s[i++]=e&255}else for(s[i++]=e&255,s[i++]=e>>>8&255,s[i++]=e>>>16&255,s[i++]=e>>>24&255,s[i++]=0,s[i++]=0,s[i++]=0,s[i++]=0,o=8;o>>3}Fo.g0_256=KP;function qP(t){return No(t,17)^No(t,19)^t>>>10}Fo.g1_256=qP;var cd=pr,GP=Td,VP=Fo,cb=cd.rotl32,f0=cd.sum32,WP=cd.sum32_5,ZP=VP.ft_1,N7=GP.BlockHash,YP=[1518500249,1859775393,2400959708,3395469782];function Bo(){if(!(this instanceof Bo))return new Bo;N7.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}cd.inherits(Bo,N7);var QP=Bo;Bo.blockSize=512;Bo.outSize=160;Bo.hmacStrength=80;Bo.padLength=64;Bo.prototype._update=function(e,r){for(var n=this.W,s=0;s<16;s++)n[s]=e[r+s];for(;sthis.blockSize&&(e=new this.Hash().update(e).digest()),DO(e.length<=this.blockSize);for(var r=e.length;r0?T:g},i.min=function(T,g){return T.cmp(g)<0?T:g},i.prototype._init=function(T,g,a){if(typeof T=="number")return this._initNumber(T,g,a);if(typeof T=="object")return this._initArray(T,g,a);g==="hex"&&(g=16),n(g===(g|0)&&g>=2&&g<=36),T=T.toString().replace(/\s+/g,"");var c=0;T[0]==="-"&&(c++,this.negative=1),c=0;c-=3)b=T[c]|T[c-1]<<8|T[c-2]<<16,this.words[m]|=b<>>26-x&67108863,x+=24,x>=26&&(x-=26,m++);else if(a==="le")for(c=0,m=0;c>>26-x&67108863,x+=24,x>=26&&(x-=26,m++);return this.strip()};function f(P,T){var g=P.charCodeAt(T);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function u(P,T,g){var a=f(P,g);return g-1>=T&&(a|=f(P,g-1)<<4),a}i.prototype._parseHex=function(T,g,a){this.length=Math.ceil((T.length-g)/6),this.words=new Array(this.length);for(var c=0;c=g;c-=2)x=u(T,g,c)<=18?(m-=18,b+=1,this.words[b]|=x>>>26):m+=8;else{var _=T.length-g;for(c=_%2===0?g+1:g;c=18?(m-=18,b+=1,this.words[b]|=x>>>26):m+=8}this.strip()};function h(P,T,g,a){for(var c=0,m=Math.min(P.length,g),b=T;b=49?c+=x-49+10:x>=17?c+=x-17+10:c+=x}return c}i.prototype._parseBase=function(T,g,a){this.words=[0],this.length=1;for(var c=0,m=1;m<=67108863;m*=g)c++;c--,m=m/g|0;for(var b=T.length-a,x=b%c,_=Math.min(b,b-x)+a,S=0,y=a;y<_;y+=c)S=h(T,y,y+c,g),this.imuln(m),this.words[0]+S<67108864?this.words[0]+=S:this._iaddn(S);if(x!==0){var l=1;for(S=h(T,y,T.length,g),y=0;y1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(T,g){T=T||10,g=g|0||1;var a;if(T===16||T==="hex"){a="";for(var c=0,m=0,b=0;b>>24-c&16777215,m!==0||b!==this.length-1?a=p[6-_.length]+_+a:a=_+a,c+=2,c>=26&&(c-=26,b--)}for(m!==0&&(a=m.toString(16)+a);a.length%g!==0;)a="0"+a;return this.negative!==0&&(a="-"+a),a}if(T===(T|0)&&T>=2&&T<=36){var S=d[T],y=v[T];a="";var l=this.clone();for(l.negative=0;!l.isZero();){var E=l.modn(y).toString(T);l=l.idivn(y),l.isZero()?a=E+a:a=p[S-E.length]+E+a}for(this.isZero()&&(a="0"+a);a.length%g!==0;)a="0"+a;return this.negative!==0&&(a="-"+a),a}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var T=this.words[0];return this.length===2?T+=this.words[1]*67108864:this.length===3&&this.words[2]===1?T+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-T:T},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(T,g){return n(typeof o<"u"),this.toArrayLike(o,T,g)},i.prototype.toArray=function(T,g){return this.toArrayLike(Array,T,g)},i.prototype.toArrayLike=function(T,g,a){var c=this.byteLength(),m=a||Math.max(1,c);n(c<=m,"byte array longer than desired length"),n(m>0,"Requested array length <= 0"),this.strip();var b=g==="le",x=new T(m),_,S,y=this.clone();if(b){for(S=0;!y.isZero();S++)_=y.andln(255),y.iushrn(8),x[S]=_;for(;S=4096&&(a+=13,g>>>=13),g>=64&&(a+=7,g>>>=7),g>=8&&(a+=4,g>>>=4),g>=2&&(a+=2,g>>>=2),a+g},i.prototype._zeroBits=function(T){if(T===0)return 26;var g=T,a=0;return g&8191||(a+=13,g>>>=13),g&127||(a+=7,g>>>=7),g&15||(a+=4,g>>>=4),g&3||(a+=2,g>>>=2),g&1||a++,a},i.prototype.bitLength=function(){var T=this.words[this.length-1],g=this._countBits(T);return(this.length-1)*26+g};function w(P){for(var T=new Array(P.bitLength()),g=0;g>>c}return T}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var T=0,g=0;gT.length?this.clone().ior(T):T.clone().ior(this)},i.prototype.uor=function(T){return this.length>T.length?this.clone().iuor(T):T.clone().iuor(this)},i.prototype.iuand=function(T){var g;this.length>T.length?g=T:g=this;for(var a=0;aT.length?this.clone().iand(T):T.clone().iand(this)},i.prototype.uand=function(T){return this.length>T.length?this.clone().iuand(T):T.clone().iuand(this)},i.prototype.iuxor=function(T){var g,a;this.length>T.length?(g=this,a=T):(g=T,a=this);for(var c=0;cT.length?this.clone().ixor(T):T.clone().ixor(this)},i.prototype.uxor=function(T){return this.length>T.length?this.clone().iuxor(T):T.clone().iuxor(this)},i.prototype.inotn=function(T){n(typeof T=="number"&&T>=0);var g=Math.ceil(T/26)|0,a=T%26;this._expand(g),a>0&&g--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-a),this.strip()},i.prototype.notn=function(T){return this.clone().inotn(T)},i.prototype.setn=function(T,g){n(typeof T=="number"&&T>=0);var a=T/26|0,c=T%26;return this._expand(a+1),g?this.words[a]=this.words[a]|1<T.length?(a=this,c=T):(a=T,c=this);for(var m=0,b=0;b>>26;for(;m!==0&&b>>26;if(this.length=a.length,m!==0)this.words[this.length]=m,this.length++;else if(a!==this)for(;bT.length?this.clone().iadd(T):T.clone().iadd(this)},i.prototype.isub=function(T){if(T.negative!==0){T.negative=0;var g=this.iadd(T);return T.negative=1,g._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(T),this.negative=1,this._normSign();var a=this.cmp(T);if(a===0)return this.negative=0,this.length=1,this.words[0]=0,this;var c,m;a>0?(c=this,m=T):(c=T,m=this);for(var b=0,x=0;x>26,this.words[x]=g&67108863;for(;b!==0&&x>26,this.words[x]=g&67108863;if(b===0&&x>>26,l=_&67108863,E=Math.min(S,T.length-1),Y=Math.max(0,S-P.length+1);Y<=E;Y++){var L=S-Y|0;c=P.words[L]|0,m=T.words[Y]|0,b=c*m+l,y+=b/67108864|0,l=b&67108863}g.words[S]=l|0,_=y|0}return _!==0?g.words[S]=_|0:g.length--,g.strip()}var M=function(T,g,a){var c=T.words,m=g.words,b=a.words,x=0,_,S,y,l=c[0]|0,E=l&8191,Y=l>>>13,L=c[1]|0,F=L&8191,V=L>>>13,Z=c[2]|0,ee=Z&8191,ce=Z>>>13,U=c[3]|0,j=U&8191,se=U>>>13,re=c[4]|0,oe=re&8191,Q=re>>>13,z=c[5]|0,G=z&8191,X=z>>>13,ne=c[6]|0,ae=ne&8191,Me=ne>>>13,ge=c[7]|0,pe=ge&8191,ot=ge>>>13,we=c[8]|0,me=we&8191,ut=we>>>13,ze=c[9]|0,_e=ze&8191,Bt=ze>>>13,qe=m[0]|0,Te=qe&8191,xt=qe>>>13,He=m[1]|0,Se=He&8191,Rt=He>>>13,Ve=m[2]|0,Ee=Ve&8191,Nt=Ve>>>13,Ze=m[3]|0,Re=Ze&8191,Ct=Ze>>>13,je=m[4]|0,ke=je&8191,Pt=je>>>13,Ke=m[5]|0,Ne=Ke&8191,Ot=Ke>>>13,De=m[6]|0,Be=De&8191,kt=De>>>13,Ge=m[7]|0,Ie=Ge&8191,Ut=Ge>>>13,Ue=m[8]|0,Oe=Ue&8191,It=Ue>>>13,We=m[9]|0,Pe=We&8191,_t=We>>>13;a.negative=T.negative^g.negative,a.length=19,_=Math.imul(E,Te),S=Math.imul(E,xt),S=S+Math.imul(Y,Te)|0,y=Math.imul(Y,xt);var Le=(x+_|0)+((S&8191)<<13)|0;x=(y+(S>>>13)|0)+(Le>>>26)|0,Le&=67108863,_=Math.imul(F,Te),S=Math.imul(F,xt),S=S+Math.imul(V,Te)|0,y=Math.imul(V,xt),_=_+Math.imul(E,Se)|0,S=S+Math.imul(E,Rt)|0,S=S+Math.imul(Y,Se)|0,y=y+Math.imul(Y,Rt)|0;var Ye=(x+_|0)+((S&8191)<<13)|0;x=(y+(S>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,_=Math.imul(ee,Te),S=Math.imul(ee,xt),S=S+Math.imul(ce,Te)|0,y=Math.imul(ce,xt),_=_+Math.imul(F,Se)|0,S=S+Math.imul(F,Rt)|0,S=S+Math.imul(V,Se)|0,y=y+Math.imul(V,Rt)|0,_=_+Math.imul(E,Ee)|0,S=S+Math.imul(E,Nt)|0,S=S+Math.imul(Y,Ee)|0,y=y+Math.imul(Y,Nt)|0;var Ar=(x+_|0)+((S&8191)<<13)|0;x=(y+(S>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,_=Math.imul(j,Te),S=Math.imul(j,xt),S=S+Math.imul(se,Te)|0,y=Math.imul(se,xt),_=_+Math.imul(ee,Se)|0,S=S+Math.imul(ee,Rt)|0,S=S+Math.imul(ce,Se)|0,y=y+Math.imul(ce,Rt)|0,_=_+Math.imul(F,Ee)|0,S=S+Math.imul(F,Nt)|0,S=S+Math.imul(V,Ee)|0,y=y+Math.imul(V,Nt)|0,_=_+Math.imul(E,Re)|0,S=S+Math.imul(E,Ct)|0,S=S+Math.imul(Y,Re)|0,y=y+Math.imul(Y,Ct)|0;var xr=(x+_|0)+((S&8191)<<13)|0;x=(y+(S>>>13)|0)+(xr>>>26)|0,xr&=67108863,_=Math.imul(oe,Te),S=Math.imul(oe,xt),S=S+Math.imul(Q,Te)|0,y=Math.imul(Q,xt),_=_+Math.imul(j,Se)|0,S=S+Math.imul(j,Rt)|0,S=S+Math.imul(se,Se)|0,y=y+Math.imul(se,Rt)|0,_=_+Math.imul(ee,Ee)|0,S=S+Math.imul(ee,Nt)|0,S=S+Math.imul(ce,Ee)|0,y=y+Math.imul(ce,Nt)|0,_=_+Math.imul(F,Re)|0,S=S+Math.imul(F,Ct)|0,S=S+Math.imul(V,Re)|0,y=y+Math.imul(V,Ct)|0,_=_+Math.imul(E,ke)|0,S=S+Math.imul(E,Pt)|0,S=S+Math.imul(Y,ke)|0,y=y+Math.imul(Y,Pt)|0;var Er=(x+_|0)+((S&8191)<<13)|0;x=(y+(S>>>13)|0)+(Er>>>26)|0,Er&=67108863,_=Math.imul(G,Te),S=Math.imul(G,xt),S=S+Math.imul(X,Te)|0,y=Math.imul(X,xt),_=_+Math.imul(oe,Se)|0,S=S+Math.imul(oe,Rt)|0,S=S+Math.imul(Q,Se)|0,y=y+Math.imul(Q,Rt)|0,_=_+Math.imul(j,Ee)|0,S=S+Math.imul(j,Nt)|0,S=S+Math.imul(se,Ee)|0,y=y+Math.imul(se,Nt)|0,_=_+Math.imul(ee,Re)|0,S=S+Math.imul(ee,Ct)|0,S=S+Math.imul(ce,Re)|0,y=y+Math.imul(ce,Ct)|0,_=_+Math.imul(F,ke)|0,S=S+Math.imul(F,Pt)|0,S=S+Math.imul(V,ke)|0,y=y+Math.imul(V,Pt)|0,_=_+Math.imul(E,Ne)|0,S=S+Math.imul(E,Ot)|0,S=S+Math.imul(Y,Ne)|0,y=y+Math.imul(Y,Ot)|0;var Gt=(x+_|0)+((S&8191)<<13)|0;x=(y+(S>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,_=Math.imul(ae,Te),S=Math.imul(ae,xt),S=S+Math.imul(Me,Te)|0,y=Math.imul(Me,xt),_=_+Math.imul(G,Se)|0,S=S+Math.imul(G,Rt)|0,S=S+Math.imul(X,Se)|0,y=y+Math.imul(X,Rt)|0,_=_+Math.imul(oe,Ee)|0,S=S+Math.imul(oe,Nt)|0,S=S+Math.imul(Q,Ee)|0,y=y+Math.imul(Q,Nt)|0,_=_+Math.imul(j,Re)|0,S=S+Math.imul(j,Ct)|0,S=S+Math.imul(se,Re)|0,y=y+Math.imul(se,Ct)|0,_=_+Math.imul(ee,ke)|0,S=S+Math.imul(ee,Pt)|0,S=S+Math.imul(ce,ke)|0,y=y+Math.imul(ce,Pt)|0,_=_+Math.imul(F,Ne)|0,S=S+Math.imul(F,Ot)|0,S=S+Math.imul(V,Ne)|0,y=y+Math.imul(V,Ot)|0,_=_+Math.imul(E,Be)|0,S=S+Math.imul(E,kt)|0,S=S+Math.imul(Y,Be)|0,y=y+Math.imul(Y,kt)|0;var Vt=(x+_|0)+((S&8191)<<13)|0;x=(y+(S>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,_=Math.imul(pe,Te),S=Math.imul(pe,xt),S=S+Math.imul(ot,Te)|0,y=Math.imul(ot,xt),_=_+Math.imul(ae,Se)|0,S=S+Math.imul(ae,Rt)|0,S=S+Math.imul(Me,Se)|0,y=y+Math.imul(Me,Rt)|0,_=_+Math.imul(G,Ee)|0,S=S+Math.imul(G,Nt)|0,S=S+Math.imul(X,Ee)|0,y=y+Math.imul(X,Nt)|0,_=_+Math.imul(oe,Re)|0,S=S+Math.imul(oe,Ct)|0,S=S+Math.imul(Q,Re)|0,y=y+Math.imul(Q,Ct)|0,_=_+Math.imul(j,ke)|0,S=S+Math.imul(j,Pt)|0,S=S+Math.imul(se,ke)|0,y=y+Math.imul(se,Pt)|0,_=_+Math.imul(ee,Ne)|0,S=S+Math.imul(ee,Ot)|0,S=S+Math.imul(ce,Ne)|0,y=y+Math.imul(ce,Ot)|0,_=_+Math.imul(F,Be)|0,S=S+Math.imul(F,kt)|0,S=S+Math.imul(V,Be)|0,y=y+Math.imul(V,kt)|0,_=_+Math.imul(E,Ie)|0,S=S+Math.imul(E,Ut)|0,S=S+Math.imul(Y,Ie)|0,y=y+Math.imul(Y,Ut)|0;var Lr=(x+_|0)+((S&8191)<<13)|0;x=(y+(S>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,_=Math.imul(me,Te),S=Math.imul(me,xt),S=S+Math.imul(ut,Te)|0,y=Math.imul(ut,xt),_=_+Math.imul(pe,Se)|0,S=S+Math.imul(pe,Rt)|0,S=S+Math.imul(ot,Se)|0,y=y+Math.imul(ot,Rt)|0,_=_+Math.imul(ae,Ee)|0,S=S+Math.imul(ae,Nt)|0,S=S+Math.imul(Me,Ee)|0,y=y+Math.imul(Me,Nt)|0,_=_+Math.imul(G,Re)|0,S=S+Math.imul(G,Ct)|0,S=S+Math.imul(X,Re)|0,y=y+Math.imul(X,Ct)|0,_=_+Math.imul(oe,ke)|0,S=S+Math.imul(oe,Pt)|0,S=S+Math.imul(Q,ke)|0,y=y+Math.imul(Q,Pt)|0,_=_+Math.imul(j,Ne)|0,S=S+Math.imul(j,Ot)|0,S=S+Math.imul(se,Ne)|0,y=y+Math.imul(se,Ot)|0,_=_+Math.imul(ee,Be)|0,S=S+Math.imul(ee,kt)|0,S=S+Math.imul(ce,Be)|0,y=y+Math.imul(ce,kt)|0,_=_+Math.imul(F,Ie)|0,S=S+Math.imul(F,Ut)|0,S=S+Math.imul(V,Ie)|0,y=y+Math.imul(V,Ut)|0,_=_+Math.imul(E,Oe)|0,S=S+Math.imul(E,It)|0,S=S+Math.imul(Y,Oe)|0,y=y+Math.imul(Y,It)|0;var Zr=(x+_|0)+((S&8191)<<13)|0;x=(y+(S>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,_=Math.imul(_e,Te),S=Math.imul(_e,xt),S=S+Math.imul(Bt,Te)|0,y=Math.imul(Bt,xt),_=_+Math.imul(me,Se)|0,S=S+Math.imul(me,Rt)|0,S=S+Math.imul(ut,Se)|0,y=y+Math.imul(ut,Rt)|0,_=_+Math.imul(pe,Ee)|0,S=S+Math.imul(pe,Nt)|0,S=S+Math.imul(ot,Ee)|0,y=y+Math.imul(ot,Nt)|0,_=_+Math.imul(ae,Re)|0,S=S+Math.imul(ae,Ct)|0,S=S+Math.imul(Me,Re)|0,y=y+Math.imul(Me,Ct)|0,_=_+Math.imul(G,ke)|0,S=S+Math.imul(G,Pt)|0,S=S+Math.imul(X,ke)|0,y=y+Math.imul(X,Pt)|0,_=_+Math.imul(oe,Ne)|0,S=S+Math.imul(oe,Ot)|0,S=S+Math.imul(Q,Ne)|0,y=y+Math.imul(Q,Ot)|0,_=_+Math.imul(j,Be)|0,S=S+Math.imul(j,kt)|0,S=S+Math.imul(se,Be)|0,y=y+Math.imul(se,kt)|0,_=_+Math.imul(ee,Ie)|0,S=S+Math.imul(ee,Ut)|0,S=S+Math.imul(ce,Ie)|0,y=y+Math.imul(ce,Ut)|0,_=_+Math.imul(F,Oe)|0,S=S+Math.imul(F,It)|0,S=S+Math.imul(V,Oe)|0,y=y+Math.imul(V,It)|0,_=_+Math.imul(E,Pe)|0,S=S+Math.imul(E,_t)|0,S=S+Math.imul(Y,Pe)|0,y=y+Math.imul(Y,_t)|0;var Ir=(x+_|0)+((S&8191)<<13)|0;x=(y+(S>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,_=Math.imul(_e,Se),S=Math.imul(_e,Rt),S=S+Math.imul(Bt,Se)|0,y=Math.imul(Bt,Rt),_=_+Math.imul(me,Ee)|0,S=S+Math.imul(me,Nt)|0,S=S+Math.imul(ut,Ee)|0,y=y+Math.imul(ut,Nt)|0,_=_+Math.imul(pe,Re)|0,S=S+Math.imul(pe,Ct)|0,S=S+Math.imul(ot,Re)|0,y=y+Math.imul(ot,Ct)|0,_=_+Math.imul(ae,ke)|0,S=S+Math.imul(ae,Pt)|0,S=S+Math.imul(Me,ke)|0,y=y+Math.imul(Me,Pt)|0,_=_+Math.imul(G,Ne)|0,S=S+Math.imul(G,Ot)|0,S=S+Math.imul(X,Ne)|0,y=y+Math.imul(X,Ot)|0,_=_+Math.imul(oe,Be)|0,S=S+Math.imul(oe,kt)|0,S=S+Math.imul(Q,Be)|0,y=y+Math.imul(Q,kt)|0,_=_+Math.imul(j,Ie)|0,S=S+Math.imul(j,Ut)|0,S=S+Math.imul(se,Ie)|0,y=y+Math.imul(se,Ut)|0,_=_+Math.imul(ee,Oe)|0,S=S+Math.imul(ee,It)|0,S=S+Math.imul(ce,Oe)|0,y=y+Math.imul(ce,It)|0,_=_+Math.imul(F,Pe)|0,S=S+Math.imul(F,_t)|0,S=S+Math.imul(V,Pe)|0,y=y+Math.imul(V,_t)|0;var Dr=(x+_|0)+((S&8191)<<13)|0;x=(y+(S>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,_=Math.imul(_e,Ee),S=Math.imul(_e,Nt),S=S+Math.imul(Bt,Ee)|0,y=Math.imul(Bt,Nt),_=_+Math.imul(me,Re)|0,S=S+Math.imul(me,Ct)|0,S=S+Math.imul(ut,Re)|0,y=y+Math.imul(ut,Ct)|0,_=_+Math.imul(pe,ke)|0,S=S+Math.imul(pe,Pt)|0,S=S+Math.imul(ot,ke)|0,y=y+Math.imul(ot,Pt)|0,_=_+Math.imul(ae,Ne)|0,S=S+Math.imul(ae,Ot)|0,S=S+Math.imul(Me,Ne)|0,y=y+Math.imul(Me,Ot)|0,_=_+Math.imul(G,Be)|0,S=S+Math.imul(G,kt)|0,S=S+Math.imul(X,Be)|0,y=y+Math.imul(X,kt)|0,_=_+Math.imul(oe,Ie)|0,S=S+Math.imul(oe,Ut)|0,S=S+Math.imul(Q,Ie)|0,y=y+Math.imul(Q,Ut)|0,_=_+Math.imul(j,Oe)|0,S=S+Math.imul(j,It)|0,S=S+Math.imul(se,Oe)|0,y=y+Math.imul(se,It)|0,_=_+Math.imul(ee,Pe)|0,S=S+Math.imul(ee,_t)|0,S=S+Math.imul(ce,Pe)|0,y=y+Math.imul(ce,_t)|0;var ar=(x+_|0)+((S&8191)<<13)|0;x=(y+(S>>>13)|0)+(ar>>>26)|0,ar&=67108863,_=Math.imul(_e,Re),S=Math.imul(_e,Ct),S=S+Math.imul(Bt,Re)|0,y=Math.imul(Bt,Ct),_=_+Math.imul(me,ke)|0,S=S+Math.imul(me,Pt)|0,S=S+Math.imul(ut,ke)|0,y=y+Math.imul(ut,Pt)|0,_=_+Math.imul(pe,Ne)|0,S=S+Math.imul(pe,Ot)|0,S=S+Math.imul(ot,Ne)|0,y=y+Math.imul(ot,Ot)|0,_=_+Math.imul(ae,Be)|0,S=S+Math.imul(ae,kt)|0,S=S+Math.imul(Me,Be)|0,y=y+Math.imul(Me,kt)|0,_=_+Math.imul(G,Ie)|0,S=S+Math.imul(G,Ut)|0,S=S+Math.imul(X,Ie)|0,y=y+Math.imul(X,Ut)|0,_=_+Math.imul(oe,Oe)|0,S=S+Math.imul(oe,It)|0,S=S+Math.imul(Q,Oe)|0,y=y+Math.imul(Q,It)|0,_=_+Math.imul(j,Pe)|0,S=S+Math.imul(j,_t)|0,S=S+Math.imul(se,Pe)|0,y=y+Math.imul(se,_t)|0;var mr=(x+_|0)+((S&8191)<<13)|0;x=(y+(S>>>13)|0)+(mr>>>26)|0,mr&=67108863,_=Math.imul(_e,ke),S=Math.imul(_e,Pt),S=S+Math.imul(Bt,ke)|0,y=Math.imul(Bt,Pt),_=_+Math.imul(me,Ne)|0,S=S+Math.imul(me,Ot)|0,S=S+Math.imul(ut,Ne)|0,y=y+Math.imul(ut,Ot)|0,_=_+Math.imul(pe,Be)|0,S=S+Math.imul(pe,kt)|0,S=S+Math.imul(ot,Be)|0,y=y+Math.imul(ot,kt)|0,_=_+Math.imul(ae,Ie)|0,S=S+Math.imul(ae,Ut)|0,S=S+Math.imul(Me,Ie)|0,y=y+Math.imul(Me,Ut)|0,_=_+Math.imul(G,Oe)|0,S=S+Math.imul(G,It)|0,S=S+Math.imul(X,Oe)|0,y=y+Math.imul(X,It)|0,_=_+Math.imul(oe,Pe)|0,S=S+Math.imul(oe,_t)|0,S=S+Math.imul(Q,Pe)|0,y=y+Math.imul(Q,_t)|0;var jr=(x+_|0)+((S&8191)<<13)|0;x=(y+(S>>>13)|0)+(jr>>>26)|0,jr&=67108863,_=Math.imul(_e,Ne),S=Math.imul(_e,Ot),S=S+Math.imul(Bt,Ne)|0,y=Math.imul(Bt,Ot),_=_+Math.imul(me,Be)|0,S=S+Math.imul(me,kt)|0,S=S+Math.imul(ut,Be)|0,y=y+Math.imul(ut,kt)|0,_=_+Math.imul(pe,Ie)|0,S=S+Math.imul(pe,Ut)|0,S=S+Math.imul(ot,Ie)|0,y=y+Math.imul(ot,Ut)|0,_=_+Math.imul(ae,Oe)|0,S=S+Math.imul(ae,It)|0,S=S+Math.imul(Me,Oe)|0,y=y+Math.imul(Me,It)|0,_=_+Math.imul(G,Pe)|0,S=S+Math.imul(G,_t)|0,S=S+Math.imul(X,Pe)|0,y=y+Math.imul(X,_t)|0;var Yr=(x+_|0)+((S&8191)<<13)|0;x=(y+(S>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,_=Math.imul(_e,Be),S=Math.imul(_e,kt),S=S+Math.imul(Bt,Be)|0,y=Math.imul(Bt,kt),_=_+Math.imul(me,Ie)|0,S=S+Math.imul(me,Ut)|0,S=S+Math.imul(ut,Ie)|0,y=y+Math.imul(ut,Ut)|0,_=_+Math.imul(pe,Oe)|0,S=S+Math.imul(pe,It)|0,S=S+Math.imul(ot,Oe)|0,y=y+Math.imul(ot,It)|0,_=_+Math.imul(ae,Pe)|0,S=S+Math.imul(ae,_t)|0,S=S+Math.imul(Me,Pe)|0,y=y+Math.imul(Me,_t)|0;var or=(x+_|0)+((S&8191)<<13)|0;x=(y+(S>>>13)|0)+(or>>>26)|0,or&=67108863,_=Math.imul(_e,Ie),S=Math.imul(_e,Ut),S=S+Math.imul(Bt,Ie)|0,y=Math.imul(Bt,Ut),_=_+Math.imul(me,Oe)|0,S=S+Math.imul(me,It)|0,S=S+Math.imul(ut,Oe)|0,y=y+Math.imul(ut,It)|0,_=_+Math.imul(pe,Pe)|0,S=S+Math.imul(pe,_t)|0,S=S+Math.imul(ot,Pe)|0,y=y+Math.imul(ot,_t)|0;var Qr=(x+_|0)+((S&8191)<<13)|0;x=(y+(S>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,_=Math.imul(_e,Oe),S=Math.imul(_e,It),S=S+Math.imul(Bt,Oe)|0,y=Math.imul(Bt,It),_=_+Math.imul(me,Pe)|0,S=S+Math.imul(me,_t)|0,S=S+Math.imul(ut,Pe)|0,y=y+Math.imul(ut,_t)|0;var Mr=(x+_|0)+((S&8191)<<13)|0;x=(y+(S>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,_=Math.imul(_e,Pe),S=Math.imul(_e,_t),S=S+Math.imul(Bt,Pe)|0,y=Math.imul(Bt,_t);var Xr=(x+_|0)+((S&8191)<<13)|0;return x=(y+(S>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,b[0]=Le,b[1]=Ye,b[2]=Ar,b[3]=xr,b[4]=Er,b[5]=Gt,b[6]=Vt,b[7]=Lr,b[8]=Zr,b[9]=Ir,b[10]=Dr,b[11]=ar,b[12]=mr,b[13]=jr,b[14]=Yr,b[15]=or,b[16]=Qr,b[17]=Mr,b[18]=Xr,x!==0&&(b[19]=x,a.length++),a};Math.imul||(M=A);function R(P,T,g){g.negative=T.negative^P.negative,g.length=P.length+T.length;for(var a=0,c=0,m=0;m>>26)|0,c+=b>>>26,b&=67108863}g.words[m]=x,a=b,b=c}return a!==0?g.words[m]=a:g.length--,g.strip()}function N(P,T,g){var a=new C;return a.mulp(P,T,g)}i.prototype.mulTo=function(T,g){var a,c=this.length+T.length;return this.length===10&&T.length===10?a=M(this,T,g):c<63?a=A(this,T,g):c<1024?a=R(this,T,g):a=N(this,T,g),a};function C(P,T){this.x=P,this.y=T}C.prototype.makeRBT=function(T){for(var g=new Array(T),a=i.prototype._countBits(T)-1,c=0;c>=1;return c},C.prototype.permute=function(T,g,a,c,m,b){for(var x=0;x>>1)m++;return 1<>>13,a[2*b+1]=m&8191,m=m>>>13;for(b=2*g;b>=26,g+=c/67108864|0,g+=m>>>26,this.words[a]=m&67108863}return g!==0&&(this.words[a]=g,this.length++),this},i.prototype.muln=function(T){return this.clone().imuln(T)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(T){var g=w(T);if(g.length===0)return new i(1);for(var a=this,c=0;c=0);var g=T%26,a=(T-g)/26,c=67108863>>>26-g<<26-g,m;if(g!==0){var b=0;for(m=0;m>>26-g}b&&(this.words[m]=b,this.length++)}if(a!==0){for(m=this.length-1;m>=0;m--)this.words[m+a]=this.words[m];for(m=0;m=0);var c;g?c=(g-g%26)/26:c=0;var m=T%26,b=Math.min((T-m)/26,this.length),x=67108863^67108863>>>m<b)for(this.length-=b,S=0;S=0&&(y!==0||S>=c);S--){var l=this.words[S]|0;this.words[S]=y<<26-m|l>>>m,y=l&x}return _&&y!==0&&(_.words[_.length++]=y),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(T,g,a){return n(this.negative===0),this.iushrn(T,g,a)},i.prototype.shln=function(T){return this.clone().ishln(T)},i.prototype.ushln=function(T){return this.clone().iushln(T)},i.prototype.shrn=function(T){return this.clone().ishrn(T)},i.prototype.ushrn=function(T){return this.clone().iushrn(T)},i.prototype.testn=function(T){n(typeof T=="number"&&T>=0);var g=T%26,a=(T-g)/26,c=1<=0);var g=T%26,a=(T-g)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=a)return this;if(g!==0&&a++,this.length=Math.min(a,this.length),g!==0){var c=67108863^67108863>>>g<=67108864;g++)this.words[g]-=67108864,g===this.length-1?this.words[g+1]=1:this.words[g+1]++;return this.length=Math.max(this.length,g+1),this},i.prototype.isubn=function(T){if(n(typeof T=="number"),n(T<67108864),T<0)return this.iaddn(-T);if(this.negative!==0)return this.negative=0,this.iaddn(T),this.negative=1,this;if(this.words[0]-=T,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var g=0;g>26)-(_/67108864|0),this.words[m+a]=b&67108863}for(;m>26,this.words[m+a]=b&67108863;if(x===0)return this.strip();for(n(x===-1),x=0,m=0;m>26,this.words[m]=b&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(T,g){var a=this.length-T.length,c=this.clone(),m=T,b=m.words[m.length-1]|0,x=this._countBits(b);a=26-x,a!==0&&(m=m.ushln(a),c.iushln(a),b=m.words[m.length-1]|0);var _=c.length-m.length,S;if(g!=="mod"){S=new i(null),S.length=_+1,S.words=new Array(S.length);for(var y=0;y=0;E--){var Y=(c.words[m.length+E]|0)*67108864+(c.words[m.length+E-1]|0);for(Y=Math.min(Y/b|0,67108863),c._ishlnsubmul(m,Y,E);c.negative!==0;)Y--,c.negative=0,c._ishlnsubmul(m,1,E),c.isZero()||(c.negative^=1);S&&(S.words[E]=Y)}return S&&S.strip(),c.strip(),g!=="div"&&a!==0&&c.iushrn(a),{div:S||null,mod:c}},i.prototype.divmod=function(T,g,a){if(n(!T.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var c,m,b;return this.negative!==0&&T.negative===0?(b=this.neg().divmod(T,g),g!=="mod"&&(c=b.div.neg()),g!=="div"&&(m=b.mod.neg(),a&&m.negative!==0&&m.iadd(T)),{div:c,mod:m}):this.negative===0&&T.negative!==0?(b=this.divmod(T.neg(),g),g!=="mod"&&(c=b.div.neg()),{div:c,mod:b.mod}):this.negative&T.negative?(b=this.neg().divmod(T.neg(),g),g!=="div"&&(m=b.mod.neg(),a&&m.negative!==0&&m.isub(T)),{div:b.div,mod:m}):T.length>this.length||this.cmp(T)<0?{div:new i(0),mod:this}:T.length===1?g==="div"?{div:this.divn(T.words[0]),mod:null}:g==="mod"?{div:null,mod:new i(this.modn(T.words[0]))}:{div:this.divn(T.words[0]),mod:new i(this.modn(T.words[0]))}:this._wordDiv(T,g)},i.prototype.div=function(T){return this.divmod(T,"div",!1).div},i.prototype.mod=function(T){return this.divmod(T,"mod",!1).mod},i.prototype.umod=function(T){return this.divmod(T,"mod",!0).mod},i.prototype.divRound=function(T){var g=this.divmod(T);if(g.mod.isZero())return g.div;var a=g.div.negative!==0?g.mod.isub(T):g.mod,c=T.ushrn(1),m=T.andln(1),b=a.cmp(c);return b<0||m===1&&b===0?g.div:g.div.negative!==0?g.div.isubn(1):g.div.iaddn(1)},i.prototype.modn=function(T){n(T<=67108863);for(var g=(1<<26)%T,a=0,c=this.length-1;c>=0;c--)a=(g*a+(this.words[c]|0))%T;return a},i.prototype.idivn=function(T){n(T<=67108863);for(var g=0,a=this.length-1;a>=0;a--){var c=(this.words[a]|0)+g*67108864;this.words[a]=c/T|0,g=c%T}return this.strip()},i.prototype.divn=function(T){return this.clone().idivn(T)},i.prototype.egcd=function(T){n(T.negative===0),n(!T.isZero());var g=this,a=T.clone();g.negative!==0?g=g.umod(T):g=g.clone();for(var c=new i(1),m=new i(0),b=new i(0),x=new i(1),_=0;g.isEven()&&a.isEven();)g.iushrn(1),a.iushrn(1),++_;for(var S=a.clone(),y=g.clone();!g.isZero();){for(var l=0,E=1;!(g.words[0]&E)&&l<26;++l,E<<=1);if(l>0)for(g.iushrn(l);l-- >0;)(c.isOdd()||m.isOdd())&&(c.iadd(S),m.isub(y)),c.iushrn(1),m.iushrn(1);for(var Y=0,L=1;!(a.words[0]&L)&&Y<26;++Y,L<<=1);if(Y>0)for(a.iushrn(Y);Y-- >0;)(b.isOdd()||x.isOdd())&&(b.iadd(S),x.isub(y)),b.iushrn(1),x.iushrn(1);g.cmp(a)>=0?(g.isub(a),c.isub(b),m.isub(x)):(a.isub(g),b.isub(c),x.isub(m))}return{a:b,b:x,gcd:a.iushln(_)}},i.prototype._invmp=function(T){n(T.negative===0),n(!T.isZero());var g=this,a=T.clone();g.negative!==0?g=g.umod(T):g=g.clone();for(var c=new i(1),m=new i(0),b=a.clone();g.cmpn(1)>0&&a.cmpn(1)>0;){for(var x=0,_=1;!(g.words[0]&_)&&x<26;++x,_<<=1);if(x>0)for(g.iushrn(x);x-- >0;)c.isOdd()&&c.iadd(b),c.iushrn(1);for(var S=0,y=1;!(a.words[0]&y)&&S<26;++S,y<<=1);if(S>0)for(a.iushrn(S);S-- >0;)m.isOdd()&&m.iadd(b),m.iushrn(1);g.cmp(a)>=0?(g.isub(a),c.isub(m)):(a.isub(g),m.isub(c))}var l;return g.cmpn(1)===0?l=c:l=m,l.cmpn(0)<0&&l.iadd(T),l},i.prototype.gcd=function(T){if(this.isZero())return T.abs();if(T.isZero())return this.abs();var g=this.clone(),a=T.clone();g.negative=0,a.negative=0;for(var c=0;g.isEven()&&a.isEven();c++)g.iushrn(1),a.iushrn(1);do{for(;g.isEven();)g.iushrn(1);for(;a.isEven();)a.iushrn(1);var m=g.cmp(a);if(m<0){var b=g;g=a,a=b}else if(m===0||a.cmpn(1)===0)break;g.isub(a)}while(!0);return a.iushln(c)},i.prototype.invm=function(T){return this.egcd(T).a.umod(T)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(T){return this.words[0]&T},i.prototype.bincn=function(T){n(typeof T=="number");var g=T%26,a=(T-g)/26,c=1<>>26,x&=67108863,this.words[b]=x}return m!==0&&(this.words[b]=m,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(T){var g=T<0;if(this.negative!==0&&!g)return-1;if(this.negative===0&&g)return 1;this.strip();var a;if(this.length>1)a=1;else{g&&(T=-T),n(T<=67108863,"Number is too big");var c=this.words[0]|0;a=c===T?0:cT.length)return 1;if(this.length=0;a--){var c=this.words[a]|0,m=T.words[a]|0;if(c!==m){cm&&(g=1);break}}return g},i.prototype.gtn=function(T){return this.cmpn(T)===1},i.prototype.gt=function(T){return this.cmp(T)===1},i.prototype.gten=function(T){return this.cmpn(T)>=0},i.prototype.gte=function(T){return this.cmp(T)>=0},i.prototype.ltn=function(T){return this.cmpn(T)===-1},i.prototype.lt=function(T){return this.cmp(T)===-1},i.prototype.lten=function(T){return this.cmpn(T)<=0},i.prototype.lte=function(T){return this.cmp(T)<=0},i.prototype.eqn=function(T){return this.cmpn(T)===0},i.prototype.eq=function(T){return this.cmp(T)===0},i.red=function(T){return new I(T)},i.prototype.toRed=function(T){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),T.convertTo(this)._forceRed(T)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(T){return this.red=T,this},i.prototype.forceRed=function(T){return n(!this.red,"Already a number in reduction context"),this._forceRed(T)},i.prototype.redAdd=function(T){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,T)},i.prototype.redIAdd=function(T){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,T)},i.prototype.redSub=function(T){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,T)},i.prototype.redISub=function(T){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,T)},i.prototype.redShl=function(T){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,T)},i.prototype.redMul=function(T){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,T),this.red.mul(this,T)},i.prototype.redIMul=function(T){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,T),this.red.imul(this,T)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(T){return n(this.red&&!T.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,T)};var B={k256:null,p224:null,p192:null,p25519:null};function O(P,T){this.name=P,this.p=new i(T,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O.prototype._tmp=function(){var T=new i(null);return T.words=new Array(Math.ceil(this.n/13)),T},O.prototype.ireduce=function(T){var g=T,a;do this.split(g,this.tmp),g=this.imulK(g),g=g.iadd(this.tmp),a=g.bitLength();while(a>this.n);var c=a0?g.isub(this.p):g.strip!==void 0?g.strip():g._strip(),g},O.prototype.split=function(T,g){T.iushrn(this.n,0,g)},O.prototype.imulK=function(T){return T.imul(this.k)};function D(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}s(D,O),D.prototype.split=function(T,g){for(var a=4194303,c=Math.min(T.length,9),m=0;m>>22,b=x}b>>>=22,T.words[m-10]=b,b===0&&T.length>10?T.length-=10:T.length-=9},D.prototype.imulK=function(T){T.words[T.length]=0,T.words[T.length+1]=0,T.length+=2;for(var g=0,a=0;a>>=26,T.words[a]=m,g=c}return g!==0&&(T.words[T.length++]=g),T},i._prime=function(T){if(B[T])return B[T];var g;if(T==="k256")g=new D;else if(T==="p224")g=new q;else if(T==="p192")g=new W;else if(T==="p25519")g=new k;else throw new Error("Unknown prime "+T);return B[T]=g,g};function I(P){if(typeof P=="string"){var T=i._prime(P);this.m=T.p,this.prime=T}else n(P.gtn(1),"modulus must be greater than 1"),this.m=P,this.prime=null}I.prototype._verify1=function(T){n(T.negative===0,"red works only with positives"),n(T.red,"red works only with red numbers")},I.prototype._verify2=function(T,g){n((T.negative|g.negative)===0,"red works only with positives"),n(T.red&&T.red===g.red,"red works only with red numbers")},I.prototype.imod=function(T){return this.prime?this.prime.ireduce(T)._forceRed(this):T.umod(this.m)._forceRed(this)},I.prototype.neg=function(T){return T.isZero()?T.clone():this.m.sub(T)._forceRed(this)},I.prototype.add=function(T,g){this._verify2(T,g);var a=T.add(g);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},I.prototype.iadd=function(T,g){this._verify2(T,g);var a=T.iadd(g);return a.cmp(this.m)>=0&&a.isub(this.m),a},I.prototype.sub=function(T,g){this._verify2(T,g);var a=T.sub(g);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},I.prototype.isub=function(T,g){this._verify2(T,g);var a=T.isub(g);return a.cmpn(0)<0&&a.iadd(this.m),a},I.prototype.shl=function(T,g){return this._verify1(T),this.imod(T.ushln(g))},I.prototype.imul=function(T,g){return this._verify2(T,g),this.imod(T.imul(g))},I.prototype.mul=function(T,g){return this._verify2(T,g),this.imod(T.mul(g))},I.prototype.isqr=function(T){return this.imul(T,T.clone())},I.prototype.sqr=function(T){return this.mul(T,T)},I.prototype.sqrt=function(T){if(T.isZero())return T.clone();var g=this.m.andln(3);if(n(g%2===1),g===3){var a=this.m.add(new i(1)).iushrn(2);return this.pow(T,a)}for(var c=this.m.subn(1),m=0;!c.isZero()&&c.andln(1)===0;)m++,c.iushrn(1);n(!c.isZero());var b=new i(1).toRed(this),x=b.redNeg(),_=this.m.subn(1).iushrn(1),S=this.m.bitLength();for(S=new i(2*S*S).toRed(this);this.pow(S,_).cmp(x)!==0;)S.redIAdd(x);for(var y=this.pow(S,c),l=this.pow(T,c.addn(1).iushrn(1)),E=this.pow(T,c),Y=m;E.cmp(b)!==0;){for(var L=E,F=0;L.cmp(b)!==0;F++)L=L.redSqr();n(F=0;m--){for(var y=g.words[m],l=S-1;l>=0;l--){var E=y>>l&1;if(b!==c[0]&&(b=this.sqr(b)),E===0&&x===0){_=0;continue}x<<=1,x|=E,_++,!(_!==a&&(m!==0||l!==0))&&(b=this.mul(b,c[x]),_=0,x=0)}S=26}return b},I.prototype.convertTo=function(T){var g=T.umod(this.m);return g===T?g.clone():g},I.prototype.convertFrom=function(T){var g=T.clone();return g.red=null,g},i.mont=function(T){return new H(T)};function H(P){I.call(this,P),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}s(H,I),H.prototype.convertTo=function(T){return this.imod(T.ushln(this.shift))},H.prototype.convertFrom=function(T){var g=this.imod(T.mul(this.rinv));return g.red=null,g},H.prototype.imul=function(T,g){if(T.isZero()||g.isZero())return T.words[0]=0,T.length=1,T;var a=T.imul(g),c=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=a.isub(c).iushrn(this.shift),b=m;return m.cmp(this.m)>=0?b=m.isub(this.m):m.cmpn(0)<0&&(b=m.iadd(this.m)),b._forceRed(this)},H.prototype.mul=function(T,g){if(T.isZero()||g.isZero())return new i(0)._forceRed(this);var a=T.mul(g),c=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),m=a.isub(c).iushrn(this.shift),b=m;return m.cmp(this.m)>=0?b=m.isub(this.m):m.cmpn(0)<0&&(b=m.iadd(this.m)),b._forceRed(this)},H.prototype.invm=function(T){var g=this.imod(T._invmp(this.m).mul(this.r2));return g._forceRed(this)}})(t,ue)})(UO);const HO=gn,jO="logger/5.7.0";let y4=!1,b4=!1;const Om={debug:1,default:2,info:2,warning:3,error:4,off:5};let w4=Om.default,db=null;function zO(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{t.push(e)}}),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}const A4=zO();var yw;(function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"})(yw||(yw={}));var Ta;(function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"})(Ta||(Ta={}));const x4="0123456789abcdef";let gf=class Wn{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,r){const n=e.toLowerCase();Om[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(w4>Om[n])&&console.log.apply(console,r)}debug(...e){this._log(Wn.levels.DEBUG,e)}info(...e){this._log(Wn.levels.INFO,e)}warn(...e){this._log(Wn.levels.WARNING,e)}makeError(e,r,n){if(b4)return this.makeError("censored error",r,{});r||(r=Wn.errors.UNKNOWN_ERROR),n||(n={});const s=[];Object.keys(n).forEach(u=>{const h=n[u];try{if(h instanceof Uint8Array){let p="";for(let d=0;d>4],p+=x4[h[d]&15];s.push(u+"=Uint8Array(0x"+p+")")}else s.push(u+"="+JSON.stringify(h))}catch{s.push(u+"="+JSON.stringify(n[u].toString()))}}),s.push(`code=${r}`),s.push(`version=${this.version}`);const i=e;let o="";switch(r){case Ta.NUMERIC_FAULT:{o="NUMERIC_FAULT";const u=e;switch(u){case"overflow":case"underflow":case"division-by-zero":o+="-"+u;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result";break}break}case Ta.CALL_EXCEPTION:case Ta.INSUFFICIENT_FUNDS:case Ta.MISSING_NEW:case Ta.NONCE_EXPIRED:case Ta.REPLACEMENT_UNDERPRICED:case Ta.TRANSACTION_REPLACED:case Ta.UNPREDICTABLE_GAS_LIMIT:o=r;break}o&&(e+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),s.length&&(e+=" ("+s.join(", ")+")");const f=new Error(e);return f.reason=i,f.code=r,Object.keys(n).forEach(function(u){f[u]=n[u]}),f}throwError(e,r,n){throw this.makeError(e,r,n)}throwArgumentError(e,r,n){return this.throwError(e,Wn.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(e,r,n,s){e||this.throwError(r,n,s)}assertArgument(e,r,n,s){e||this.throwArgumentError(r,n,s)}checkNormalize(e){A4&&this.throwError("platform missing String.prototype.normalize",Wn.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:A4})}checkSafeUint53(e,r){typeof e=="number"&&(r==null&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,Wn.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,Wn.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,r,n){n?n=": "+n:n="",er&&this.throwError("too many arguments"+n,Wn.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})}checkNew(e,r){(e===Object||e==null)&&this.throwError("missing new",Wn.errors.MISSING_NEW,{name:r.name})}checkAbstract(e,r){e===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",Wn.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",Wn.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return db||(db=new Wn(jO)),db}static setCensorship(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",Wn.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),y4){if(!e)return;this.globalLogger().throwError("error censorship permanent",Wn.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}b4=!!e,y4=!!r}static setLogLevel(e){const r=Om[e.toLowerCase()];if(r==null){Wn.globalLogger().warn("invalid log level - "+e);return}w4=r}static from(e){return new Wn(e)}};gf.errors=Ta;gf.levels=yw;const KO="bytes/5.7.0",pb=new gf(KO);function qO(t){return!!t.toHexString}function E4(t){return typeof t=="number"&&t==t&&t%1===0}function U7(t){if(t==null)return!1;if(t.constructor===Uint8Array)return!0;if(typeof t=="string"||!E4(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function bw(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}const mb="0123456789abcdef";function GO(t,e){if(e||(e={}),typeof t=="number"){pb.checkSafeUint53(t,"invalid hexlify value");let r="";for(;t;)r=mb[t&15]+r,t=Math.floor(t/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof t=="bigint")return t=t.toString(16),t.length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),qO(t))return t.toHexString();if(bw(t))return t.length%2&&(e.hexPad==="left"?t="0x0"+t.substring(2):e.hexPad==="right"?t+="0":pb.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(U7(t)){let r="0x";for(let n=0;n>4]+mb[s&15]}return r}return pb.throwArgumentError("invalid hexlify value","value",t)}const VO="bignumber/5.5.0";var ww=HO.BN;const so=new gf(VO),gb={},M4=9007199254740991;let S4=!1,$A=class js{constructor(e,r){so.checkNew(new.target,js),e!==gb&&so.throwError("cannot call constructor directly; use BigNumber.from",gf.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return $i(cr(this).fromTwos(e))}toTwos(e){return $i(cr(this).toTwos(e))}abs(){return this._hex[0]==="-"?js.from(this._hex.substring(1)):this}add(e){return $i(cr(this).add(cr(e)))}sub(e){return $i(cr(this).sub(cr(e)))}div(e){return js.from(e).isZero()&&Os("division by zero","div"),$i(cr(this).div(cr(e)))}mul(e){return $i(cr(this).mul(cr(e)))}mod(e){const r=cr(e);return r.isNeg()&&Os("cannot modulo negative values","mod"),$i(cr(this).umod(r))}pow(e){const r=cr(e);return r.isNeg()&&Os("cannot raise to negative values","pow"),$i(cr(this).pow(r))}and(e){const r=cr(e);return(this.isNegative()||r.isNeg())&&Os("cannot 'and' negative values","and"),$i(cr(this).and(r))}or(e){const r=cr(e);return(this.isNegative()||r.isNeg())&&Os("cannot 'or' negative values","or"),$i(cr(this).or(r))}xor(e){const r=cr(e);return(this.isNegative()||r.isNeg())&&Os("cannot 'xor' negative values","xor"),$i(cr(this).xor(r))}mask(e){return(this.isNegative()||e<0)&&Os("cannot mask negative values","mask"),$i(cr(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&Os("cannot shift negative values","shl"),$i(cr(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&Os("cannot shift negative values","shr"),$i(cr(this).shrn(e))}eq(e){return cr(this).eq(cr(e))}lt(e){return cr(this).lt(cr(e))}lte(e){return cr(this).lte(cr(e))}gt(e){return cr(this).gt(cr(e))}gte(e){return cr(this).gte(cr(e))}isNegative(){return this._hex[0]==="-"}isZero(){return cr(this).isZero()}toNumber(){try{return cr(this).toNumber()}catch{Os("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return so.throwError("this platform does not support BigInt",gf.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?S4||(S4=!0,so.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?so.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",gf.errors.UNEXPECTED_ARGUMENT,{}):so.throwError("BigNumber.toString does not accept parameters",gf.errors.UNEXPECTED_ARGUMENT,{})),cr(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof js)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new js(gb,ap(e)):e.match(/^-?[0-9]+$/)?new js(gb,ap(new ww(e))):so.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&Os("underflow","BigNumber.from",e),(e>=M4||e<=-M4)&&Os("overflow","BigNumber.from",e),js.from(String(e));const r=e;if(typeof r=="bigint")return js.from(r.toString());if(U7(r))return js.from(GO(r));if(r)if(r.toHexString){const n=r.toHexString();if(typeof n=="string")return js.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(bw(n)||n[0]==="-"&&bw(n.substring(1))))return js.from(n)}return so.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}};function ap(t){if(typeof t!="string")return ap(t.toString(16));if(t[0]==="-")return t=t.substring(1),t[0]==="-"&&so.throwArgumentError("invalid hex","value",t),t=ap(t),t==="0x00"?t:"-"+t;if(t.substring(0,2)!=="0x"&&(t="0x"+t),t==="0x")return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&t.substring(0,4)==="0x00";)t="0x"+t.substring(4);return t}function $i(t){return $A.from(ap(t))}function cr(t){const e=$A.from(t).toHexString();return e[0]==="-"?new ww("-"+e.substring(3),16):new ww(e.substring(2),16)}function Os(t,e,r){const n={fault:t,operation:e};return r!=null&&(n.value=r),so.throwError(t,gf.errors.NUMERIC_FAULT,n)}const WO="logger/5.7.0";let _4=!1,R4=!1;const Lm={debug:1,default:2,info:2,warning:3,error:4,off:5};let N4=Lm.default,vb=null;function ZO(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{t.push(e)}}),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}const C4=ZO();var Aw;(function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"})(Aw||(Aw={}));var ka;(function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"})(ka||(ka={}));const T4="0123456789abcdef";let $t=class Zn{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,r){const n=e.toLowerCase();Lm[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(N4>Lm[n])&&console.log.apply(console,r)}debug(...e){this._log(Zn.levels.DEBUG,e)}info(...e){this._log(Zn.levels.INFO,e)}warn(...e){this._log(Zn.levels.WARNING,e)}makeError(e,r,n){if(R4)return this.makeError("censored error",r,{});r||(r=Zn.errors.UNKNOWN_ERROR),n||(n={});const s=[];Object.keys(n).forEach(u=>{const h=n[u];try{if(h instanceof Uint8Array){let p="";for(let d=0;d>4],p+=T4[h[d]&15];s.push(u+"=Uint8Array(0x"+p+")")}else s.push(u+"="+JSON.stringify(h))}catch{s.push(u+"="+JSON.stringify(n[u].toString()))}}),s.push(`code=${r}`),s.push(`version=${this.version}`);const i=e;let o="";switch(r){case ka.NUMERIC_FAULT:{o="NUMERIC_FAULT";const u=e;switch(u){case"overflow":case"underflow":case"division-by-zero":o+="-"+u;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result";break}break}case ka.CALL_EXCEPTION:case ka.INSUFFICIENT_FUNDS:case ka.MISSING_NEW:case ka.NONCE_EXPIRED:case ka.REPLACEMENT_UNDERPRICED:case ka.TRANSACTION_REPLACED:case ka.UNPREDICTABLE_GAS_LIMIT:o=r;break}o&&(e+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),s.length&&(e+=" ("+s.join(", ")+")");const f=new Error(e);return f.reason=i,f.code=r,Object.keys(n).forEach(function(u){f[u]=n[u]}),f}throwError(e,r,n){throw this.makeError(e,r,n)}throwArgumentError(e,r,n){return this.throwError(e,Zn.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(e,r,n,s){e||this.throwError(r,n,s)}assertArgument(e,r,n,s){e||this.throwArgumentError(r,n,s)}checkNormalize(e){C4&&this.throwError("platform missing String.prototype.normalize",Zn.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:C4})}checkSafeUint53(e,r){typeof e=="number"&&(r==null&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,Zn.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,Zn.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,r,n){n?n=": "+n:n="",er&&this.throwError("too many arguments"+n,Zn.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})}checkNew(e,r){(e===Object||e==null)&&this.throwError("missing new",Zn.errors.MISSING_NEW,{name:r.name})}checkAbstract(e,r){e===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",Zn.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",Zn.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return vb||(vb=new Zn(WO)),vb}static setCensorship(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",Zn.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),_4){if(!e)return;this.globalLogger().throwError("error censorship permanent",Zn.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}R4=!!e,_4=!!r}static setLogLevel(e){const r=Lm[e.toLowerCase()];if(r==null){Zn.globalLogger().warn("invalid log level - "+e);return}N4=r}static from(e){return new Zn(e)}};$t.errors=ka;$t.levels=Aw;const YO="bytes/5.7.0",Rn=new $t(YO);function H7(t){return!!t.toHexString}function sh(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return sh(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function j7(t){return xi(t)&&!(t.length%2)||Fv(t)}function k4(t){return typeof t=="number"&&t==t&&t%1===0}function Fv(t){if(t==null)return!1;if(t.constructor===Uint8Array)return!0;if(typeof t=="string"||!k4(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function kn(t,e){if(e||(e={}),typeof t=="number"){Rn.checkSafeUint53(t,"invalid arrayify value");const r=[];for(;t;)r.unshift(t&255),t=parseInt(String(t/256));return r.length===0&&r.push(0),sh(new Uint8Array(r))}if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),H7(t)&&(t=t.toHexString()),xi(t)){let r=t.substring(2);r.length%2&&(e.hexPad==="left"?r="0"+r:e.hexPad==="right"?r+="0":Rn.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let s=0;skn(s)),r=e.reduce((s,i)=>s+i.length,0),n=new Uint8Array(r);return e.reduce((s,i)=>(n.set(i,s),s+i.length),0),sh(n)}function QO(t){let e=kn(t);if(e.length===0)return e;let r=0;for(;re&&Rn.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(e);return r.set(t,e-t.length),sh(r)}function xi(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}const yb="0123456789abcdef";function Rr(t,e){if(e||(e={}),typeof t=="number"){Rn.checkSafeUint53(t,"invalid hexlify value");let r="";for(;t;)r=yb[t&15]+r,t=Math.floor(t/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof t=="bigint")return t=t.toString(16),t.length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),H7(t))return t.toHexString();if(xi(t))return t.length%2&&(e.hexPad==="left"?t="0x0"+t.substring(2):e.hexPad==="right"?t+="0":Rn.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(Fv(t)){let r="0x";for(let n=0;n>4]+yb[s&15]}return r}return Rn.throwArgumentError("invalid hexlify value","value",t)}function Lie(t){if(typeof t!="string")t=Rr(t);else if(!xi(t)||t.length%2)return null;return(t.length-2)/2}function z7(t,e,r){return typeof t!="string"?t=Rr(t):(!xi(t)||t.length%2)&&Rn.throwArgumentError("invalid hexData","value",t),e=2+2*e,r!=null?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function JO(t){let e="0x";return t.forEach(r=>{e+=Rr(r).substring(2)}),e}function Die(t){const e=$O(Rr(t,{hexPad:"left"}));return e==="0x"?"0x0":e}function $O(t){typeof t!="string"&&(t=Rr(t)),xi(t)||Rn.throwArgumentError("invalid hex string","value",t),t=t.substring(2);let e=0;for(;e2*e+2&&Rn.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function Fie(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(j7(t)){let r=kn(t);r.length===64?(e.v=27+(r[32]>>7),r[32]&=127,e.r=Rr(r.slice(0,32)),e.s=Rr(r.slice(32,64))):r.length===65?(e.r=Rr(r.slice(0,32)),e.s=Rr(r.slice(32,64)),e.v=r[64]):Rn.throwArgumentError("invalid signature string","signature",t),e.v<27&&(e.v===0||e.v===1?e.v+=27:Rn.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=Rr(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,e._vs!=null){const s=XO(kn(e._vs),32);e._vs=Rr(s);const i=s[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=i:e.recoveryParam!==i&&Rn.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),s[0]&=127;const o=Rr(s);e.s==null?e.s=o:e.s!==o&&Rn.throwArgumentError("signature v mismatch _vs","signature",t)}if(e.recoveryParam==null)e.v==null?Rn.throwArgumentError("signature missing v and recoveryParam","signature",t):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{const s=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==s&&Rn.throwArgumentError("signature recoveryParam mismatch v","signature",t)}e.r==null||!xi(e.r)?Rn.throwArgumentError("signature missing or invalid r","signature",t):e.r=K0(e.r,32),e.s==null||!xi(e.s)?Rn.throwArgumentError("signature missing or invalid s","signature",t):e.s=K0(e.s,32);const r=kn(e.s);r[0]>=128&&Rn.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);const n=Rr(r);e._vs&&(xi(e._vs)||Rn.throwArgumentError("signature invalid _vs","signature",t),e._vs=K0(e._vs,32)),e._vs==null?e._vs=n:e._vs!==n&&Rn.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}var xw={},eL={get exports(){return xw},set exports(t){xw=t}};(function(t){(function(e,r){function n(g,a){if(!g)throw new Error(a||"Assertion failed")}function s(g,a){g.super_=a;var c=function(){};c.prototype=a.prototype,g.prototype=new c,g.prototype.constructor=g}function i(g,a,c){if(i.isBN(g))return g;this.negative=0,this.words=null,this.length=0,this.red=null,g!==null&&((a==="le"||a==="be")&&(c=a,a=10),this._init(g||0,a||10,c||"be"))}typeof e=="object"?e.exports=i:r.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=mt.Buffer}catch{}i.isBN=function(a){return a instanceof i?!0:a!==null&&typeof a=="object"&&a.constructor.wordSize===i.wordSize&&Array.isArray(a.words)},i.max=function(a,c){return a.cmp(c)>0?a:c},i.min=function(a,c){return a.cmp(c)<0?a:c},i.prototype._init=function(a,c,m){if(typeof a=="number")return this._initNumber(a,c,m);if(typeof a=="object")return this._initArray(a,c,m);c==="hex"&&(c=16),n(c===(c|0)&&c>=2&&c<=36),a=a.toString().replace(/\s+/g,"");var b=0;a[0]==="-"&&(b++,this.negative=1),b=0;b-=3)_=a[b]|a[b-1]<<8|a[b-2]<<16,this.words[x]|=_<>>26-S&67108863,S+=24,S>=26&&(S-=26,x++);else if(m==="le")for(b=0,x=0;b>>26-S&67108863,S+=24,S>=26&&(S-=26,x++);return this._strip()};function f(g,a){var c=g.charCodeAt(a);if(c>=48&&c<=57)return c-48;if(c>=65&&c<=70)return c-55;if(c>=97&&c<=102)return c-87;n(!1,"Invalid character in "+g)}function u(g,a,c){var m=f(g,c);return c-1>=a&&(m|=f(g,c-1)<<4),m}i.prototype._parseHex=function(a,c,m){this.length=Math.ceil((a.length-c)/6),this.words=new Array(this.length);for(var b=0;b=c;b-=2)S=u(a,c,b)<=18?(x-=18,_+=1,this.words[_]|=S>>>26):x+=8;else{var y=a.length-c;for(b=y%2===0?c+1:c;b=18?(x-=18,_+=1,this.words[_]|=S>>>26):x+=8}this._strip()};function h(g,a,c,m){for(var b=0,x=0,_=Math.min(g.length,c),S=a;S<_;S++){var y=g.charCodeAt(S)-48;b*=m,y>=49?x=y-49+10:y>=17?x=y-17+10:x=y,n(y>=0&&x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch{i.prototype.inspect=d}else i.prototype.inspect=d;function d(){return(this.red?""}var v=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],w=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(a,c){a=a||10,c=c|0||1;var m;if(a===16||a==="hex"){m="";for(var b=0,x=0,_=0;_>>24-b&16777215,b+=2,b>=26&&(b-=26,_--),x!==0||_!==this.length-1?m=v[6-y.length]+y+m:m=y+m}for(x!==0&&(m=x.toString(16)+m);m.length%c!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(a===(a|0)&&a>=2&&a<=36){var l=w[a],E=A[a];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var L=Y.modrn(E).toString(a);Y=Y.idivn(E),Y.isZero()?m=L+m:m=v[l-L.length]+L+m}for(this.isZero()&&(m="0"+m);m.length%c!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var a=this.words[0];return this.length===2?a+=this.words[1]*67108864:this.length===3&&this.words[2]===1?a+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-a:a},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(a,c){return this.toArrayLike(o,a,c)}),i.prototype.toArray=function(a,c){return this.toArrayLike(Array,a,c)};var M=function(a,c){return a.allocUnsafe?a.allocUnsafe(c):new a(c)};i.prototype.toArrayLike=function(a,c,m){this._strip();var b=this.byteLength(),x=m||Math.max(1,b);n(b<=x,"byte array longer than desired length"),n(x>0,"Requested array length <= 0");var _=M(a,x),S=c==="le"?"LE":"BE";return this["_toArrayLike"+S](_,b),_},i.prototype._toArrayLikeLE=function(a,c){for(var m=0,b=0,x=0,_=0;x>8&255),m>16&255),_===6?(m>24&255),b=0,_=0):(b=S>>>24,_+=2)}if(m=0&&(a[m--]=S>>8&255),m>=0&&(a[m--]=S>>16&255),_===6?(m>=0&&(a[m--]=S>>24&255),b=0,_=0):(b=S>>>24,_+=2)}if(m>=0)for(a[m--]=b;m>=0;)a[m--]=0},Math.clz32?i.prototype._countBits=function(a){return 32-Math.clz32(a)}:i.prototype._countBits=function(a){var c=a,m=0;return c>=4096&&(m+=13,c>>>=13),c>=64&&(m+=7,c>>>=7),c>=8&&(m+=4,c>>>=4),c>=2&&(m+=2,c>>>=2),m+c},i.prototype._zeroBits=function(a){if(a===0)return 26;var c=a,m=0;return c&8191||(m+=13,c>>>=13),c&127||(m+=7,c>>>=7),c&15||(m+=4,c>>>=4),c&3||(m+=2,c>>>=2),c&1||m++,m},i.prototype.bitLength=function(){var a=this.words[this.length-1],c=this._countBits(a);return(this.length-1)*26+c};function R(g){for(var a=new Array(g.bitLength()),c=0;c>>b&1}return a}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var a=0,c=0;ca.length?this.clone().ior(a):a.clone().ior(this)},i.prototype.uor=function(a){return this.length>a.length?this.clone().iuor(a):a.clone().iuor(this)},i.prototype.iuand=function(a){var c;this.length>a.length?c=a:c=this;for(var m=0;ma.length?this.clone().iand(a):a.clone().iand(this)},i.prototype.uand=function(a){return this.length>a.length?this.clone().iuand(a):a.clone().iuand(this)},i.prototype.iuxor=function(a){var c,m;this.length>a.length?(c=this,m=a):(c=a,m=this);for(var b=0;ba.length?this.clone().ixor(a):a.clone().ixor(this)},i.prototype.uxor=function(a){return this.length>a.length?this.clone().iuxor(a):a.clone().iuxor(this)},i.prototype.inotn=function(a){n(typeof a=="number"&&a>=0);var c=Math.ceil(a/26)|0,m=a%26;this._expand(c),m>0&&c--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-m),this._strip()},i.prototype.notn=function(a){return this.clone().inotn(a)},i.prototype.setn=function(a,c){n(typeof a=="number"&&a>=0);var m=a/26|0,b=a%26;return this._expand(m+1),c?this.words[m]=this.words[m]|1<a.length?(m=this,b=a):(m=a,b=this);for(var x=0,_=0;_>>26;for(;x!==0&&_>>26;if(this.length=m.length,x!==0)this.words[this.length]=x,this.length++;else if(m!==this)for(;_a.length?this.clone().iadd(a):a.clone().iadd(this)},i.prototype.isub=function(a){if(a.negative!==0){a.negative=0;var c=this.iadd(a);return a.negative=1,c._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(a),this.negative=1,this._normSign();var m=this.cmp(a);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,x;m>0?(b=this,x=a):(b=a,x=this);for(var _=0,S=0;S>26,this.words[S]=c&67108863;for(;_!==0&&S>26,this.words[S]=c&67108863;if(_===0&&S>>26,Y=y&67108863,L=Math.min(l,a.length-1),F=Math.max(0,l-g.length+1);F<=L;F++){var V=l-F|0;b=g.words[V]|0,x=a.words[F]|0,_=b*x+Y,E+=_/67108864|0,Y=_&67108863}c.words[l]=Y|0,y=E|0}return y!==0?c.words[l]=y|0:c.length--,c._strip()}var C=function(a,c,m){var b=a.words,x=c.words,_=m.words,S=0,y,l,E,Y=b[0]|0,L=Y&8191,F=Y>>>13,V=b[1]|0,Z=V&8191,ee=V>>>13,ce=b[2]|0,U=ce&8191,j=ce>>>13,se=b[3]|0,re=se&8191,oe=se>>>13,Q=b[4]|0,z=Q&8191,G=Q>>>13,X=b[5]|0,ne=X&8191,ae=X>>>13,Me=b[6]|0,ge=Me&8191,pe=Me>>>13,ot=b[7]|0,we=ot&8191,me=ot>>>13,ut=b[8]|0,ze=ut&8191,_e=ut>>>13,Bt=b[9]|0,qe=Bt&8191,Te=Bt>>>13,xt=x[0]|0,He=xt&8191,Se=xt>>>13,Rt=x[1]|0,Ve=Rt&8191,Ee=Rt>>>13,Nt=x[2]|0,Ze=Nt&8191,Re=Nt>>>13,Ct=x[3]|0,je=Ct&8191,ke=Ct>>>13,Pt=x[4]|0,Ke=Pt&8191,Ne=Pt>>>13,Ot=x[5]|0,De=Ot&8191,Be=Ot>>>13,kt=x[6]|0,Ge=kt&8191,Ie=kt>>>13,Ut=x[7]|0,Ue=Ut&8191,Oe=Ut>>>13,It=x[8]|0,We=It&8191,Pe=It>>>13,_t=x[9]|0,Le=_t&8191,Ye=_t>>>13;m.negative=a.negative^c.negative,m.length=19,y=Math.imul(L,He),l=Math.imul(L,Se),l=l+Math.imul(F,He)|0,E=Math.imul(F,Se);var Ar=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,y=Math.imul(Z,He),l=Math.imul(Z,Se),l=l+Math.imul(ee,He)|0,E=Math.imul(ee,Se),y=y+Math.imul(L,Ve)|0,l=l+Math.imul(L,Ee)|0,l=l+Math.imul(F,Ve)|0,E=E+Math.imul(F,Ee)|0;var xr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(xr>>>26)|0,xr&=67108863,y=Math.imul(U,He),l=Math.imul(U,Se),l=l+Math.imul(j,He)|0,E=Math.imul(j,Se),y=y+Math.imul(Z,Ve)|0,l=l+Math.imul(Z,Ee)|0,l=l+Math.imul(ee,Ve)|0,E=E+Math.imul(ee,Ee)|0,y=y+Math.imul(L,Ze)|0,l=l+Math.imul(L,Re)|0,l=l+Math.imul(F,Ze)|0,E=E+Math.imul(F,Re)|0;var Er=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Er>>>26)|0,Er&=67108863,y=Math.imul(re,He),l=Math.imul(re,Se),l=l+Math.imul(oe,He)|0,E=Math.imul(oe,Se),y=y+Math.imul(U,Ve)|0,l=l+Math.imul(U,Ee)|0,l=l+Math.imul(j,Ve)|0,E=E+Math.imul(j,Ee)|0,y=y+Math.imul(Z,Ze)|0,l=l+Math.imul(Z,Re)|0,l=l+Math.imul(ee,Ze)|0,E=E+Math.imul(ee,Re)|0,y=y+Math.imul(L,je)|0,l=l+Math.imul(L,ke)|0,l=l+Math.imul(F,je)|0,E=E+Math.imul(F,ke)|0;var Gt=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,y=Math.imul(z,He),l=Math.imul(z,Se),l=l+Math.imul(G,He)|0,E=Math.imul(G,Se),y=y+Math.imul(re,Ve)|0,l=l+Math.imul(re,Ee)|0,l=l+Math.imul(oe,Ve)|0,E=E+Math.imul(oe,Ee)|0,y=y+Math.imul(U,Ze)|0,l=l+Math.imul(U,Re)|0,l=l+Math.imul(j,Ze)|0,E=E+Math.imul(j,Re)|0,y=y+Math.imul(Z,je)|0,l=l+Math.imul(Z,ke)|0,l=l+Math.imul(ee,je)|0,E=E+Math.imul(ee,ke)|0,y=y+Math.imul(L,Ke)|0,l=l+Math.imul(L,Ne)|0,l=l+Math.imul(F,Ke)|0,E=E+Math.imul(F,Ne)|0;var Vt=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,y=Math.imul(ne,He),l=Math.imul(ne,Se),l=l+Math.imul(ae,He)|0,E=Math.imul(ae,Se),y=y+Math.imul(z,Ve)|0,l=l+Math.imul(z,Ee)|0,l=l+Math.imul(G,Ve)|0,E=E+Math.imul(G,Ee)|0,y=y+Math.imul(re,Ze)|0,l=l+Math.imul(re,Re)|0,l=l+Math.imul(oe,Ze)|0,E=E+Math.imul(oe,Re)|0,y=y+Math.imul(U,je)|0,l=l+Math.imul(U,ke)|0,l=l+Math.imul(j,je)|0,E=E+Math.imul(j,ke)|0,y=y+Math.imul(Z,Ke)|0,l=l+Math.imul(Z,Ne)|0,l=l+Math.imul(ee,Ke)|0,E=E+Math.imul(ee,Ne)|0,y=y+Math.imul(L,De)|0,l=l+Math.imul(L,Be)|0,l=l+Math.imul(F,De)|0,E=E+Math.imul(F,Be)|0;var Lr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,y=Math.imul(ge,He),l=Math.imul(ge,Se),l=l+Math.imul(pe,He)|0,E=Math.imul(pe,Se),y=y+Math.imul(ne,Ve)|0,l=l+Math.imul(ne,Ee)|0,l=l+Math.imul(ae,Ve)|0,E=E+Math.imul(ae,Ee)|0,y=y+Math.imul(z,Ze)|0,l=l+Math.imul(z,Re)|0,l=l+Math.imul(G,Ze)|0,E=E+Math.imul(G,Re)|0,y=y+Math.imul(re,je)|0,l=l+Math.imul(re,ke)|0,l=l+Math.imul(oe,je)|0,E=E+Math.imul(oe,ke)|0,y=y+Math.imul(U,Ke)|0,l=l+Math.imul(U,Ne)|0,l=l+Math.imul(j,Ke)|0,E=E+Math.imul(j,Ne)|0,y=y+Math.imul(Z,De)|0,l=l+Math.imul(Z,Be)|0,l=l+Math.imul(ee,De)|0,E=E+Math.imul(ee,Be)|0,y=y+Math.imul(L,Ge)|0,l=l+Math.imul(L,Ie)|0,l=l+Math.imul(F,Ge)|0,E=E+Math.imul(F,Ie)|0;var Zr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,y=Math.imul(we,He),l=Math.imul(we,Se),l=l+Math.imul(me,He)|0,E=Math.imul(me,Se),y=y+Math.imul(ge,Ve)|0,l=l+Math.imul(ge,Ee)|0,l=l+Math.imul(pe,Ve)|0,E=E+Math.imul(pe,Ee)|0,y=y+Math.imul(ne,Ze)|0,l=l+Math.imul(ne,Re)|0,l=l+Math.imul(ae,Ze)|0,E=E+Math.imul(ae,Re)|0,y=y+Math.imul(z,je)|0,l=l+Math.imul(z,ke)|0,l=l+Math.imul(G,je)|0,E=E+Math.imul(G,ke)|0,y=y+Math.imul(re,Ke)|0,l=l+Math.imul(re,Ne)|0,l=l+Math.imul(oe,Ke)|0,E=E+Math.imul(oe,Ne)|0,y=y+Math.imul(U,De)|0,l=l+Math.imul(U,Be)|0,l=l+Math.imul(j,De)|0,E=E+Math.imul(j,Be)|0,y=y+Math.imul(Z,Ge)|0,l=l+Math.imul(Z,Ie)|0,l=l+Math.imul(ee,Ge)|0,E=E+Math.imul(ee,Ie)|0,y=y+Math.imul(L,Ue)|0,l=l+Math.imul(L,Oe)|0,l=l+Math.imul(F,Ue)|0,E=E+Math.imul(F,Oe)|0;var Ir=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,y=Math.imul(ze,He),l=Math.imul(ze,Se),l=l+Math.imul(_e,He)|0,E=Math.imul(_e,Se),y=y+Math.imul(we,Ve)|0,l=l+Math.imul(we,Ee)|0,l=l+Math.imul(me,Ve)|0,E=E+Math.imul(me,Ee)|0,y=y+Math.imul(ge,Ze)|0,l=l+Math.imul(ge,Re)|0,l=l+Math.imul(pe,Ze)|0,E=E+Math.imul(pe,Re)|0,y=y+Math.imul(ne,je)|0,l=l+Math.imul(ne,ke)|0,l=l+Math.imul(ae,je)|0,E=E+Math.imul(ae,ke)|0,y=y+Math.imul(z,Ke)|0,l=l+Math.imul(z,Ne)|0,l=l+Math.imul(G,Ke)|0,E=E+Math.imul(G,Ne)|0,y=y+Math.imul(re,De)|0,l=l+Math.imul(re,Be)|0,l=l+Math.imul(oe,De)|0,E=E+Math.imul(oe,Be)|0,y=y+Math.imul(U,Ge)|0,l=l+Math.imul(U,Ie)|0,l=l+Math.imul(j,Ge)|0,E=E+Math.imul(j,Ie)|0,y=y+Math.imul(Z,Ue)|0,l=l+Math.imul(Z,Oe)|0,l=l+Math.imul(ee,Ue)|0,E=E+Math.imul(ee,Oe)|0,y=y+Math.imul(L,We)|0,l=l+Math.imul(L,Pe)|0,l=l+Math.imul(F,We)|0,E=E+Math.imul(F,Pe)|0;var Dr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,y=Math.imul(qe,He),l=Math.imul(qe,Se),l=l+Math.imul(Te,He)|0,E=Math.imul(Te,Se),y=y+Math.imul(ze,Ve)|0,l=l+Math.imul(ze,Ee)|0,l=l+Math.imul(_e,Ve)|0,E=E+Math.imul(_e,Ee)|0,y=y+Math.imul(we,Ze)|0,l=l+Math.imul(we,Re)|0,l=l+Math.imul(me,Ze)|0,E=E+Math.imul(me,Re)|0,y=y+Math.imul(ge,je)|0,l=l+Math.imul(ge,ke)|0,l=l+Math.imul(pe,je)|0,E=E+Math.imul(pe,ke)|0,y=y+Math.imul(ne,Ke)|0,l=l+Math.imul(ne,Ne)|0,l=l+Math.imul(ae,Ke)|0,E=E+Math.imul(ae,Ne)|0,y=y+Math.imul(z,De)|0,l=l+Math.imul(z,Be)|0,l=l+Math.imul(G,De)|0,E=E+Math.imul(G,Be)|0,y=y+Math.imul(re,Ge)|0,l=l+Math.imul(re,Ie)|0,l=l+Math.imul(oe,Ge)|0,E=E+Math.imul(oe,Ie)|0,y=y+Math.imul(U,Ue)|0,l=l+Math.imul(U,Oe)|0,l=l+Math.imul(j,Ue)|0,E=E+Math.imul(j,Oe)|0,y=y+Math.imul(Z,We)|0,l=l+Math.imul(Z,Pe)|0,l=l+Math.imul(ee,We)|0,E=E+Math.imul(ee,Pe)|0,y=y+Math.imul(L,Le)|0,l=l+Math.imul(L,Ye)|0,l=l+Math.imul(F,Le)|0,E=E+Math.imul(F,Ye)|0;var ar=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(ar>>>26)|0,ar&=67108863,y=Math.imul(qe,Ve),l=Math.imul(qe,Ee),l=l+Math.imul(Te,Ve)|0,E=Math.imul(Te,Ee),y=y+Math.imul(ze,Ze)|0,l=l+Math.imul(ze,Re)|0,l=l+Math.imul(_e,Ze)|0,E=E+Math.imul(_e,Re)|0,y=y+Math.imul(we,je)|0,l=l+Math.imul(we,ke)|0,l=l+Math.imul(me,je)|0,E=E+Math.imul(me,ke)|0,y=y+Math.imul(ge,Ke)|0,l=l+Math.imul(ge,Ne)|0,l=l+Math.imul(pe,Ke)|0,E=E+Math.imul(pe,Ne)|0,y=y+Math.imul(ne,De)|0,l=l+Math.imul(ne,Be)|0,l=l+Math.imul(ae,De)|0,E=E+Math.imul(ae,Be)|0,y=y+Math.imul(z,Ge)|0,l=l+Math.imul(z,Ie)|0,l=l+Math.imul(G,Ge)|0,E=E+Math.imul(G,Ie)|0,y=y+Math.imul(re,Ue)|0,l=l+Math.imul(re,Oe)|0,l=l+Math.imul(oe,Ue)|0,E=E+Math.imul(oe,Oe)|0,y=y+Math.imul(U,We)|0,l=l+Math.imul(U,Pe)|0,l=l+Math.imul(j,We)|0,E=E+Math.imul(j,Pe)|0,y=y+Math.imul(Z,Le)|0,l=l+Math.imul(Z,Ye)|0,l=l+Math.imul(ee,Le)|0,E=E+Math.imul(ee,Ye)|0;var mr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(mr>>>26)|0,mr&=67108863,y=Math.imul(qe,Ze),l=Math.imul(qe,Re),l=l+Math.imul(Te,Ze)|0,E=Math.imul(Te,Re),y=y+Math.imul(ze,je)|0,l=l+Math.imul(ze,ke)|0,l=l+Math.imul(_e,je)|0,E=E+Math.imul(_e,ke)|0,y=y+Math.imul(we,Ke)|0,l=l+Math.imul(we,Ne)|0,l=l+Math.imul(me,Ke)|0,E=E+Math.imul(me,Ne)|0,y=y+Math.imul(ge,De)|0,l=l+Math.imul(ge,Be)|0,l=l+Math.imul(pe,De)|0,E=E+Math.imul(pe,Be)|0,y=y+Math.imul(ne,Ge)|0,l=l+Math.imul(ne,Ie)|0,l=l+Math.imul(ae,Ge)|0,E=E+Math.imul(ae,Ie)|0,y=y+Math.imul(z,Ue)|0,l=l+Math.imul(z,Oe)|0,l=l+Math.imul(G,Ue)|0,E=E+Math.imul(G,Oe)|0,y=y+Math.imul(re,We)|0,l=l+Math.imul(re,Pe)|0,l=l+Math.imul(oe,We)|0,E=E+Math.imul(oe,Pe)|0,y=y+Math.imul(U,Le)|0,l=l+Math.imul(U,Ye)|0,l=l+Math.imul(j,Le)|0,E=E+Math.imul(j,Ye)|0;var jr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(jr>>>26)|0,jr&=67108863,y=Math.imul(qe,je),l=Math.imul(qe,ke),l=l+Math.imul(Te,je)|0,E=Math.imul(Te,ke),y=y+Math.imul(ze,Ke)|0,l=l+Math.imul(ze,Ne)|0,l=l+Math.imul(_e,Ke)|0,E=E+Math.imul(_e,Ne)|0,y=y+Math.imul(we,De)|0,l=l+Math.imul(we,Be)|0,l=l+Math.imul(me,De)|0,E=E+Math.imul(me,Be)|0,y=y+Math.imul(ge,Ge)|0,l=l+Math.imul(ge,Ie)|0,l=l+Math.imul(pe,Ge)|0,E=E+Math.imul(pe,Ie)|0,y=y+Math.imul(ne,Ue)|0,l=l+Math.imul(ne,Oe)|0,l=l+Math.imul(ae,Ue)|0,E=E+Math.imul(ae,Oe)|0,y=y+Math.imul(z,We)|0,l=l+Math.imul(z,Pe)|0,l=l+Math.imul(G,We)|0,E=E+Math.imul(G,Pe)|0,y=y+Math.imul(re,Le)|0,l=l+Math.imul(re,Ye)|0,l=l+Math.imul(oe,Le)|0,E=E+Math.imul(oe,Ye)|0;var Yr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,y=Math.imul(qe,Ke),l=Math.imul(qe,Ne),l=l+Math.imul(Te,Ke)|0,E=Math.imul(Te,Ne),y=y+Math.imul(ze,De)|0,l=l+Math.imul(ze,Be)|0,l=l+Math.imul(_e,De)|0,E=E+Math.imul(_e,Be)|0,y=y+Math.imul(we,Ge)|0,l=l+Math.imul(we,Ie)|0,l=l+Math.imul(me,Ge)|0,E=E+Math.imul(me,Ie)|0,y=y+Math.imul(ge,Ue)|0,l=l+Math.imul(ge,Oe)|0,l=l+Math.imul(pe,Ue)|0,E=E+Math.imul(pe,Oe)|0,y=y+Math.imul(ne,We)|0,l=l+Math.imul(ne,Pe)|0,l=l+Math.imul(ae,We)|0,E=E+Math.imul(ae,Pe)|0,y=y+Math.imul(z,Le)|0,l=l+Math.imul(z,Ye)|0,l=l+Math.imul(G,Le)|0,E=E+Math.imul(G,Ye)|0;var or=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(or>>>26)|0,or&=67108863,y=Math.imul(qe,De),l=Math.imul(qe,Be),l=l+Math.imul(Te,De)|0,E=Math.imul(Te,Be),y=y+Math.imul(ze,Ge)|0,l=l+Math.imul(ze,Ie)|0,l=l+Math.imul(_e,Ge)|0,E=E+Math.imul(_e,Ie)|0,y=y+Math.imul(we,Ue)|0,l=l+Math.imul(we,Oe)|0,l=l+Math.imul(me,Ue)|0,E=E+Math.imul(me,Oe)|0,y=y+Math.imul(ge,We)|0,l=l+Math.imul(ge,Pe)|0,l=l+Math.imul(pe,We)|0,E=E+Math.imul(pe,Pe)|0,y=y+Math.imul(ne,Le)|0,l=l+Math.imul(ne,Ye)|0,l=l+Math.imul(ae,Le)|0,E=E+Math.imul(ae,Ye)|0;var Qr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,y=Math.imul(qe,Ge),l=Math.imul(qe,Ie),l=l+Math.imul(Te,Ge)|0,E=Math.imul(Te,Ie),y=y+Math.imul(ze,Ue)|0,l=l+Math.imul(ze,Oe)|0,l=l+Math.imul(_e,Ue)|0,E=E+Math.imul(_e,Oe)|0,y=y+Math.imul(we,We)|0,l=l+Math.imul(we,Pe)|0,l=l+Math.imul(me,We)|0,E=E+Math.imul(me,Pe)|0,y=y+Math.imul(ge,Le)|0,l=l+Math.imul(ge,Ye)|0,l=l+Math.imul(pe,Le)|0,E=E+Math.imul(pe,Ye)|0;var Mr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,y=Math.imul(qe,Ue),l=Math.imul(qe,Oe),l=l+Math.imul(Te,Ue)|0,E=Math.imul(Te,Oe),y=y+Math.imul(ze,We)|0,l=l+Math.imul(ze,Pe)|0,l=l+Math.imul(_e,We)|0,E=E+Math.imul(_e,Pe)|0,y=y+Math.imul(we,Le)|0,l=l+Math.imul(we,Ye)|0,l=l+Math.imul(me,Le)|0,E=E+Math.imul(me,Ye)|0;var Xr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,y=Math.imul(qe,We),l=Math.imul(qe,Pe),l=l+Math.imul(Te,We)|0,E=Math.imul(Te,Pe),y=y+Math.imul(ze,Le)|0,l=l+Math.imul(ze,Ye)|0,l=l+Math.imul(_e,Le)|0,E=E+Math.imul(_e,Ye)|0;var on=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(on>>>26)|0,on&=67108863,y=Math.imul(qe,Le),l=Math.imul(qe,Ye),l=l+Math.imul(Te,Le)|0,E=Math.imul(Te,Ye);var Cr=(S+y|0)+((l&8191)<<13)|0;return S=(E+(l>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,_[0]=Ar,_[1]=xr,_[2]=Er,_[3]=Gt,_[4]=Vt,_[5]=Lr,_[6]=Zr,_[7]=Ir,_[8]=Dr,_[9]=ar,_[10]=mr,_[11]=jr,_[12]=Yr,_[13]=or,_[14]=Qr,_[15]=Mr,_[16]=Xr,_[17]=on,_[18]=Cr,S!==0&&(_[19]=S,m.length++),m};Math.imul||(C=N);function B(g,a,c){c.negative=a.negative^g.negative,c.length=g.length+a.length;for(var m=0,b=0,x=0;x>>26)|0,b+=_>>>26,_&=67108863}c.words[x]=S,m=_,_=b}return m!==0?c.words[x]=m:c.length--,c._strip()}function O(g,a,c){return B(g,a,c)}i.prototype.mulTo=function(a,c){var m,b=this.length+a.length;return this.length===10&&a.length===10?m=C(this,a,c):b<63?m=N(this,a,c):b<1024?m=B(this,a,c):m=O(this,a,c),m},i.prototype.mul=function(a){var c=new i(null);return c.words=new Array(this.length+a.length),this.mulTo(a,c)},i.prototype.mulf=function(a){var c=new i(null);return c.words=new Array(this.length+a.length),O(this,a,c)},i.prototype.imul=function(a){return this.clone().mulTo(a,this)},i.prototype.imuln=function(a){var c=a<0;c&&(a=-a),n(typeof a=="number"),n(a<67108864);for(var m=0,b=0;b>=26,m+=x/67108864|0,m+=_>>>26,this.words[b]=_&67108863}return m!==0&&(this.words[b]=m,this.length++),c?this.ineg():this},i.prototype.muln=function(a){return this.clone().imuln(a)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(a){var c=R(a);if(c.length===0)return new i(1);for(var m=this,b=0;b=0);var c=a%26,m=(a-c)/26,b=67108863>>>26-c<<26-c,x;if(c!==0){var _=0;for(x=0;x>>26-c}_&&(this.words[x]=_,this.length++)}if(m!==0){for(x=this.length-1;x>=0;x--)this.words[x+m]=this.words[x];for(x=0;x=0);var b;c?b=(c-c%26)/26:b=0;var x=a%26,_=Math.min((a-x)/26,this.length),S=67108863^67108863>>>x<_)for(this.length-=_,l=0;l=0&&(E!==0||l>=b);l--){var Y=this.words[l]|0;this.words[l]=E<<26-x|Y>>>x,E=Y&S}return y&&E!==0&&(y.words[y.length++]=E),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(a,c,m){return n(this.negative===0),this.iushrn(a,c,m)},i.prototype.shln=function(a){return this.clone().ishln(a)},i.prototype.ushln=function(a){return this.clone().iushln(a)},i.prototype.shrn=function(a){return this.clone().ishrn(a)},i.prototype.ushrn=function(a){return this.clone().iushrn(a)},i.prototype.testn=function(a){n(typeof a=="number"&&a>=0);var c=a%26,m=(a-c)/26,b=1<=0);var c=a%26,m=(a-c)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(c!==0&&m++,this.length=Math.min(m,this.length),c!==0){var b=67108863^67108863>>>c<=67108864;c++)this.words[c]-=67108864,c===this.length-1?this.words[c+1]=1:this.words[c+1]++;return this.length=Math.max(this.length,c+1),this},i.prototype.isubn=function(a){if(n(typeof a=="number"),n(a<67108864),a<0)return this.iaddn(-a);if(this.negative!==0)return this.negative=0,this.iaddn(a),this.negative=1,this;if(this.words[0]-=a,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var c=0;c>26)-(y/67108864|0),this.words[x+m]=_&67108863}for(;x>26,this.words[x+m]=_&67108863;if(S===0)return this._strip();for(n(S===-1),S=0,x=0;x>26,this.words[x]=_&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(a,c){var m=this.length-a.length,b=this.clone(),x=a,_=x.words[x.length-1]|0,S=this._countBits(_);m=26-S,m!==0&&(x=x.ushln(m),b.iushln(m),_=x.words[x.length-1]|0);var y=b.length-x.length,l;if(c!=="mod"){l=new i(null),l.length=y+1,l.words=new Array(l.length);for(var E=0;E=0;L--){var F=(b.words[x.length+L]|0)*67108864+(b.words[x.length+L-1]|0);for(F=Math.min(F/_|0,67108863),b._ishlnsubmul(x,F,L);b.negative!==0;)F--,b.negative=0,b._ishlnsubmul(x,1,L),b.isZero()||(b.negative^=1);l&&(l.words[L]=F)}return l&&l._strip(),b._strip(),c!=="div"&&m!==0&&b.iushrn(m),{div:l||null,mod:b}},i.prototype.divmod=function(a,c,m){if(n(!a.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var b,x,_;return this.negative!==0&&a.negative===0?(_=this.neg().divmod(a,c),c!=="mod"&&(b=_.div.neg()),c!=="div"&&(x=_.mod.neg(),m&&x.negative!==0&&x.iadd(a)),{div:b,mod:x}):this.negative===0&&a.negative!==0?(_=this.divmod(a.neg(),c),c!=="mod"&&(b=_.div.neg()),{div:b,mod:_.mod}):this.negative&a.negative?(_=this.neg().divmod(a.neg(),c),c!=="div"&&(x=_.mod.neg(),m&&x.negative!==0&&x.isub(a)),{div:_.div,mod:x}):a.length>this.length||this.cmp(a)<0?{div:new i(0),mod:this}:a.length===1?c==="div"?{div:this.divn(a.words[0]),mod:null}:c==="mod"?{div:null,mod:new i(this.modrn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new i(this.modrn(a.words[0]))}:this._wordDiv(a,c)},i.prototype.div=function(a){return this.divmod(a,"div",!1).div},i.prototype.mod=function(a){return this.divmod(a,"mod",!1).mod},i.prototype.umod=function(a){return this.divmod(a,"mod",!0).mod},i.prototype.divRound=function(a){var c=this.divmod(a);if(c.mod.isZero())return c.div;var m=c.div.negative!==0?c.mod.isub(a):c.mod,b=a.ushrn(1),x=a.andln(1),_=m.cmp(b);return _<0||x===1&&_===0?c.div:c.div.negative!==0?c.div.isubn(1):c.div.iaddn(1)},i.prototype.modrn=function(a){var c=a<0;c&&(a=-a),n(a<=67108863);for(var m=(1<<26)%a,b=0,x=this.length-1;x>=0;x--)b=(m*b+(this.words[x]|0))%a;return c?-b:b},i.prototype.modn=function(a){return this.modrn(a)},i.prototype.idivn=function(a){var c=a<0;c&&(a=-a),n(a<=67108863);for(var m=0,b=this.length-1;b>=0;b--){var x=(this.words[b]|0)+m*67108864;this.words[b]=x/a|0,m=x%a}return this._strip(),c?this.ineg():this},i.prototype.divn=function(a){return this.clone().idivn(a)},i.prototype.egcd=function(a){n(a.negative===0),n(!a.isZero());var c=this,m=a.clone();c.negative!==0?c=c.umod(a):c=c.clone();for(var b=new i(1),x=new i(0),_=new i(0),S=new i(1),y=0;c.isEven()&&m.isEven();)c.iushrn(1),m.iushrn(1),++y;for(var l=m.clone(),E=c.clone();!c.isZero();){for(var Y=0,L=1;!(c.words[0]&L)&&Y<26;++Y,L<<=1);if(Y>0)for(c.iushrn(Y);Y-- >0;)(b.isOdd()||x.isOdd())&&(b.iadd(l),x.isub(E)),b.iushrn(1),x.iushrn(1);for(var F=0,V=1;!(m.words[0]&V)&&F<26;++F,V<<=1);if(F>0)for(m.iushrn(F);F-- >0;)(_.isOdd()||S.isOdd())&&(_.iadd(l),S.isub(E)),_.iushrn(1),S.iushrn(1);c.cmp(m)>=0?(c.isub(m),b.isub(_),x.isub(S)):(m.isub(c),_.isub(b),S.isub(x))}return{a:_,b:S,gcd:m.iushln(y)}},i.prototype._invmp=function(a){n(a.negative===0),n(!a.isZero());var c=this,m=a.clone();c.negative!==0?c=c.umod(a):c=c.clone();for(var b=new i(1),x=new i(0),_=m.clone();c.cmpn(1)>0&&m.cmpn(1)>0;){for(var S=0,y=1;!(c.words[0]&y)&&S<26;++S,y<<=1);if(S>0)for(c.iushrn(S);S-- >0;)b.isOdd()&&b.iadd(_),b.iushrn(1);for(var l=0,E=1;!(m.words[0]&E)&&l<26;++l,E<<=1);if(l>0)for(m.iushrn(l);l-- >0;)x.isOdd()&&x.iadd(_),x.iushrn(1);c.cmp(m)>=0?(c.isub(m),b.isub(x)):(m.isub(c),x.isub(b))}var Y;return c.cmpn(1)===0?Y=b:Y=x,Y.cmpn(0)<0&&Y.iadd(a),Y},i.prototype.gcd=function(a){if(this.isZero())return a.abs();if(a.isZero())return this.abs();var c=this.clone(),m=a.clone();c.negative=0,m.negative=0;for(var b=0;c.isEven()&&m.isEven();b++)c.iushrn(1),m.iushrn(1);do{for(;c.isEven();)c.iushrn(1);for(;m.isEven();)m.iushrn(1);var x=c.cmp(m);if(x<0){var _=c;c=m,m=_}else if(x===0||m.cmpn(1)===0)break;c.isub(m)}while(!0);return m.iushln(b)},i.prototype.invm=function(a){return this.egcd(a).a.umod(a)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(a){return this.words[0]&a},i.prototype.bincn=function(a){n(typeof a=="number");var c=a%26,m=(a-c)/26,b=1<>>26,S&=67108863,this.words[_]=S}return x!==0&&(this.words[_]=x,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(a){var c=a<0;if(this.negative!==0&&!c)return-1;if(this.negative===0&&c)return 1;this._strip();var m;if(this.length>1)m=1;else{c&&(a=-a),n(a<=67108863,"Number is too big");var b=this.words[0]|0;m=b===a?0:ba.length)return 1;if(this.length=0;m--){var b=this.words[m]|0,x=a.words[m]|0;if(b!==x){bx&&(c=1);break}}return c},i.prototype.gtn=function(a){return this.cmpn(a)===1},i.prototype.gt=function(a){return this.cmp(a)===1},i.prototype.gten=function(a){return this.cmpn(a)>=0},i.prototype.gte=function(a){return this.cmp(a)>=0},i.prototype.ltn=function(a){return this.cmpn(a)===-1},i.prototype.lt=function(a){return this.cmp(a)===-1},i.prototype.lten=function(a){return this.cmpn(a)<=0},i.prototype.lte=function(a){return this.cmp(a)<=0},i.prototype.eqn=function(a){return this.cmpn(a)===0},i.prototype.eq=function(a){return this.cmp(a)===0},i.red=function(a){return new P(a)},i.prototype.toRed=function(a){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),a.convertTo(this)._forceRed(a)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(a){return this.red=a,this},i.prototype.forceRed=function(a){return n(!this.red,"Already a number in reduction context"),this._forceRed(a)},i.prototype.redAdd=function(a){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,a)},i.prototype.redIAdd=function(a){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,a)},i.prototype.redSub=function(a){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,a)},i.prototype.redISub=function(a){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,a)},i.prototype.redShl=function(a){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,a)},i.prototype.redMul=function(a){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,a),this.red.mul(this,a)},i.prototype.redIMul=function(a){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,a),this.red.imul(this,a)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(a){return n(this.red&&!a.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,a)};var D={k256:null,p224:null,p192:null,p25519:null};function q(g,a){this.name=g,this.p=new i(a,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}q.prototype._tmp=function(){var a=new i(null);return a.words=new Array(Math.ceil(this.n/13)),a},q.prototype.ireduce=function(a){var c=a,m;do this.split(c,this.tmp),c=this.imulK(c),c=c.iadd(this.tmp),m=c.bitLength();while(m>this.n);var b=m0?c.isub(this.p):c.strip!==void 0?c.strip():c._strip(),c},q.prototype.split=function(a,c){a.iushrn(this.n,0,c)},q.prototype.imulK=function(a){return a.imul(this.k)};function W(){q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}s(W,q),W.prototype.split=function(a,c){for(var m=4194303,b=Math.min(a.length,9),x=0;x>>22,_=S}_>>>=22,a.words[x-10]=_,_===0&&a.length>10?a.length-=10:a.length-=9},W.prototype.imulK=function(a){a.words[a.length]=0,a.words[a.length+1]=0,a.length+=2;for(var c=0,m=0;m>>=26,a.words[m]=x,c=b}return c!==0&&(a.words[a.length++]=c),a},i._prime=function(a){if(D[a])return D[a];var c;if(a==="k256")c=new W;else if(a==="p224")c=new k;else if(a==="p192")c=new I;else if(a==="p25519")c=new H;else throw new Error("Unknown prime "+a);return D[a]=c,c};function P(g){if(typeof g=="string"){var a=i._prime(g);this.m=a.p,this.prime=a}else n(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}P.prototype._verify1=function(a){n(a.negative===0,"red works only with positives"),n(a.red,"red works only with red numbers")},P.prototype._verify2=function(a,c){n((a.negative|c.negative)===0,"red works only with positives"),n(a.red&&a.red===c.red,"red works only with red numbers")},P.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):(p(a,a.umod(this.m)._forceRed(this)),a)},P.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},P.prototype.add=function(a,c){this._verify2(a,c);var m=a.add(c);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},P.prototype.iadd=function(a,c){this._verify2(a,c);var m=a.iadd(c);return m.cmp(this.m)>=0&&m.isub(this.m),m},P.prototype.sub=function(a,c){this._verify2(a,c);var m=a.sub(c);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},P.prototype.isub=function(a,c){this._verify2(a,c);var m=a.isub(c);return m.cmpn(0)<0&&m.iadd(this.m),m},P.prototype.shl=function(a,c){return this._verify1(a),this.imod(a.ushln(c))},P.prototype.imul=function(a,c){return this._verify2(a,c),this.imod(a.imul(c))},P.prototype.mul=function(a,c){return this._verify2(a,c),this.imod(a.mul(c))},P.prototype.isqr=function(a){return this.imul(a,a.clone())},P.prototype.sqr=function(a){return this.mul(a,a)},P.prototype.sqrt=function(a){if(a.isZero())return a.clone();var c=this.m.andln(3);if(n(c%2===1),c===3){var m=this.m.add(new i(1)).iushrn(2);return this.pow(a,m)}for(var b=this.m.subn(1),x=0;!b.isZero()&&b.andln(1)===0;)x++,b.iushrn(1);n(!b.isZero());var _=new i(1).toRed(this),S=_.redNeg(),y=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);this.pow(l,y).cmp(S)!==0;)l.redIAdd(S);for(var E=this.pow(l,b),Y=this.pow(a,b.addn(1).iushrn(1)),L=this.pow(a,b),F=x;L.cmp(_)!==0;){for(var V=L,Z=0;V.cmp(_)!==0;Z++)V=V.redSqr();n(Z=0;x--){for(var E=c.words[x],Y=l-1;Y>=0;Y--){var L=E>>Y&1;if(_!==b[0]&&(_=this.sqr(_)),L===0&&S===0){y=0;continue}S<<=1,S|=L,y++,!(y!==m&&(x!==0||Y!==0))&&(_=this.mul(_,b[S]),y=0,S=0)}l=26}return _},P.prototype.convertTo=function(a){var c=a.umod(this.m);return c===a?c.clone():c},P.prototype.convertFrom=function(a){var c=a.clone();return c.red=null,c},i.mont=function(a){return new T(a)};function T(g){P.call(this,g),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}s(T,P),T.prototype.convertTo=function(a){return this.imod(a.ushln(this.shift))},T.prototype.convertFrom=function(a){var c=this.imod(a.mul(this.rinv));return c.red=null,c},T.prototype.imul=function(a,c){if(a.isZero()||c.isZero())return a.words[0]=0,a.length=1,a;var m=a.imul(c),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=m.isub(b).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},T.prototype.mul=function(a,c){if(a.isZero()||c.isZero())return new i(0)._forceRed(this);var m=a.mul(c),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=m.isub(b).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},T.prototype.invm=function(a){var c=this.imod(a._invmp(this.m).mul(this.r2));return c._forceRed(this)}})(t,ue)})(eL);const tL=xw,rL="bignumber/5.7.0";var xg=tL.BN;const Wo=new $t(rL),bb={},B4=9007199254740991;let I4=!1,Yi=class _a{constructor(e,r){e!==bb&&Wo.throwError("cannot call constructor directly; use BigNumber.from",$t.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return es(ur(this).fromTwos(e))}toTwos(e){return es(ur(this).toTwos(e))}abs(){return this._hex[0]==="-"?_a.from(this._hex.substring(1)):this}add(e){return es(ur(this).add(ur(e)))}sub(e){return es(ur(this).sub(ur(e)))}div(e){return _a.from(e).isZero()&&Ls("division-by-zero","div"),es(ur(this).div(ur(e)))}mul(e){return es(ur(this).mul(ur(e)))}mod(e){const r=ur(e);return r.isNeg()&&Ls("division-by-zero","mod"),es(ur(this).umod(r))}pow(e){const r=ur(e);return r.isNeg()&&Ls("negative-power","pow"),es(ur(this).pow(r))}and(e){const r=ur(e);return(this.isNegative()||r.isNeg())&&Ls("unbound-bitwise-result","and"),es(ur(this).and(r))}or(e){const r=ur(e);return(this.isNegative()||r.isNeg())&&Ls("unbound-bitwise-result","or"),es(ur(this).or(r))}xor(e){const r=ur(e);return(this.isNegative()||r.isNeg())&&Ls("unbound-bitwise-result","xor"),es(ur(this).xor(r))}mask(e){return(this.isNegative()||e<0)&&Ls("negative-width","mask"),es(ur(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&Ls("negative-width","shl"),es(ur(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&Ls("negative-width","shr"),es(ur(this).shrn(e))}eq(e){return ur(this).eq(ur(e))}lt(e){return ur(this).lt(ur(e))}lte(e){return ur(this).lte(ur(e))}gt(e){return ur(this).gt(ur(e))}gte(e){return ur(this).gte(ur(e))}isNegative(){return this._hex[0]==="-"}isZero(){return ur(this).isZero()}toNumber(){try{return ur(this).toNumber()}catch{Ls("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return Wo.throwError("this platform does not support BigInt",$t.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?I4||(I4=!0,Wo.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Wo.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",$t.errors.UNEXPECTED_ARGUMENT,{}):Wo.throwError("BigNumber.toString does not accept parameters",$t.errors.UNEXPECTED_ARGUMENT,{})),ur(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof _a)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new _a(bb,op(e)):e.match(/^-?[0-9]+$/)?new _a(bb,op(new xg(e))):Wo.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&Ls("underflow","BigNumber.from",e),(e>=B4||e<=-B4)&&Ls("overflow","BigNumber.from",e),_a.from(String(e));const r=e;if(typeof r=="bigint")return _a.from(r.toString());if(Fv(r))return _a.from(Rr(r));if(r)if(r.toHexString){const n=r.toHexString();if(typeof n=="string")return _a.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(xi(n)||n[0]==="-"&&xi(n.substring(1))))return _a.from(n)}return Wo.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}};function op(t){if(typeof t!="string")return op(t.toString(16));if(t[0]==="-")return t=t.substring(1),t[0]==="-"&&Wo.throwArgumentError("invalid hex","value",t),t=op(t),t==="0x00"?t:"-"+t;if(t.substring(0,2)!=="0x"&&(t="0x"+t),t==="0x")return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&t.substring(0,4)==="0x00";)t="0x"+t.substring(4);return t}function es(t){return Yi.from(op(t))}function ur(t){const e=Yi.from(t).toHexString();return e[0]==="-"?new xg("-"+e.substring(3),16):new xg(e.substring(2),16)}function Ls(t,e,r){const n={fault:t,operation:e};return r!=null&&(n.value=r),Wo.throwError(t,$t.errors.NUMERIC_FAULT,n)}function nL(t){return new xg(t,36).toString(16)}function fp(t){return"0x"+JA.keccak_256(kn(t))}const iL="rlp/5.7.0",fo=new $t(iL);function P4(t){const e=[];for(;t;)e.unshift(t&255),t>>=8;return e}function O4(t,e,r){let n=0;for(let s=0;se+1+n&&fo.throwError("child data too short",$t.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:s}}function q7(t,e){if(t.length===0&&fo.throwError("data too short",$t.errors.BUFFER_OVERRUN,{}),t[e]>=248){const r=t[e]-247;e+1+r>t.length&&fo.throwError("data short segment too short",$t.errors.BUFFER_OVERRUN,{});const n=O4(t,e+1,r);return e+1+r+n>t.length&&fo.throwError("data long segment too short",$t.errors.BUFFER_OVERRUN,{}),L4(t,e,e+1+r,r+n)}else if(t[e]>=192){const r=t[e]-192;return e+1+r>t.length&&fo.throwError("data array too short",$t.errors.BUFFER_OVERRUN,{}),L4(t,e,e+1,r)}else if(t[e]>=184){const r=t[e]-183;e+1+r>t.length&&fo.throwError("data array too short",$t.errors.BUFFER_OVERRUN,{});const n=O4(t,e+1,r);e+1+r+n>t.length&&fo.throwError("data array too short",$t.errors.BUFFER_OVERRUN,{});const s=Rr(t.slice(e+1+r,e+1+r+n));return{consumed:1+r+n,result:s}}else if(t[e]>=128){const r=t[e]-128;e+1+r>t.length&&fo.throwError("data too short",$t.errors.BUFFER_OVERRUN,{});const n=Rr(t.slice(e+1,e+1+r));return{consumed:1+r,result:n}}return{consumed:1,result:Rr(t[e])}}function Uie(t){const e=kn(t),r=q7(e,0);return r.consumed!==e.length&&fo.throwArgumentError("invalid rlp data","data",t),r.result}const aL="address/5.7.0",zu=new $t(aL);function D4(t){xi(t,20)||zu.throwArgumentError("invalid address","address",t),t=t.toLowerCase();const e=t.substring(2).split(""),r=new Uint8Array(40);for(let s=0;s<40;s++)r[s]=e[s].charCodeAt(0);const n=kn(fp(r));for(let s=0;s<40;s+=2)n[s>>1]>>4>=8&&(e[s]=e[s].toUpperCase()),(n[s>>1]&15)>=8&&(e[s+1]=e[s+1].toUpperCase());return"0x"+e.join("")}const oL=9007199254740991;function fL(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}const e3={};for(let t=0;t<10;t++)e3[String(t)]=String(t);for(let t=0;t<26;t++)e3[String.fromCharCode(65+t)]=String(10+t);const F4=Math.floor(fL(oL));function lL(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>e3[n]).join("");for(;e.length>=F4;){let n=e.substring(0,F4);e=parseInt(n,10)%97+e.substring(n.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}function lp(t){let e=null;if(typeof t!="string"&&zu.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))t.substring(0,2)!=="0x"&&(t="0x"+t),e=D4(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&zu.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==lL(t)&&zu.throwArgumentError("bad icap checksum","address",t),e=nL(t.substring(4));e.length<40;)e="0"+e;e=D4("0x"+e)}else zu.throwArgumentError("invalid address","address",t);return e}function Hie(t){let e=null;try{e=lp(t.from)}catch{zu.throwArgumentError("missing from address","transaction",t)}const r=QO(kn(Yi.from(t.nonce).toHexString()));return lp(z7(fp(sL([e,r])),12))}const cL="properties/5.7.0";var uL=globalThis&&globalThis.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function f(p){try{h(n.next(p))}catch(d){o(d)}}function u(p){try{h(n.throw(p))}catch(d){o(d)}}function h(p){p.done?i(p.value):s(p.value).then(f,u)}h((n=n.apply(t,e||[])).next())})};const Eg=new $t(cL);function yi(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function Z1(t,e){for(let r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||typeof t.prototype!="object")break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function jie(t){return uL(this,void 0,void 0,function*(){const e=Object.keys(t).map(n=>{const s=t[n];return Promise.resolve(s).then(i=>({key:n,value:i}))});return(yield Promise.all(e)).reduce((n,s)=>(n[s.key]=s.value,n),{})})}function zie(t,e){(!t||typeof t!="object")&&Eg.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(r=>{e[r]||Eg.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)})}function Kie(t){const e={};for(const r in t)e[r]=t[r];return e}const hL={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function G7(t){if(t==null||hL[typeof t])return!0;if(Array.isArray(t)||typeof t=="object"){if(!Object.isFrozen(t))return!1;const e=Object.keys(t);for(let r=0;rEw(e)));if(typeof t=="object"){const e={};for(const r in t){const n=t[r];n!==void 0&&yi(e,r,Ew(n))}return e}return Eg.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}function Ew(t){return dL(t)}let Uv=class{constructor(e){for(const r in e)this[r]=Ew(e[r])}};const pL=Yi.from(-1),mL=Yi.from(0),gL=Yi.from(1),vL=Yi.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),yL="strings/5.7.0",V7=new $t(yL);var cp;(function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"})(cp||(cp={}));var xs;(function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"})(xs||(xs={}));function bL(t,e,r,n,s){return V7.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)}function W7(t,e,r,n,s){if(t===xs.BAD_PREFIX||t===xs.UNEXPECTED_CONTINUE){let i=0;for(let o=e+1;o>6===2;o++)i++;return i}return t===xs.OVERRUN?r.length-e-1:0}function wL(t,e,r,n,s){return t===xs.OVERLONG?(n.push(s),0):(n.push(65533),W7(t,e,r))}const AL=Object.freeze({error:bL,ignore:W7,replace:wL});function Z7(t,e){e==null&&(e=AL.error),t=kn(t);const r=[];let n=0;for(;n>7)){r.push(s);continue}let i=null,o=null;if((s&224)===192)i=1,o=127;else if((s&240)===224)i=2,o=2047;else if((s&248)===240)i=3,o=65535;else{(s&192)===128?n+=e(xs.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(xs.BAD_PREFIX,n-1,t,r);continue}if(n-1+i>=t.length){n+=e(xs.OVERRUN,n-1,t,r);continue}let f=s&(1<<8-i-1)-1;for(let u=0;u1114111){n+=e(xs.OUT_OF_RANGE,n-1-i,t,r,f);continue}if(f>=55296&&f<=57343){n+=e(xs.UTF16_SURROGATE,n-1-i,t,r,f);continue}if(f<=o){n+=e(xs.OVERLONG,n-1-i,t,r,f);continue}r.push(f)}}return r}function t3(t,e=cp.current){e!=cp.current&&(V7.checkNormalize(),t=t.normalize(e));let r=[];for(let n=0;n>6|192),r.push(s&63|128);else if((s&64512)==55296){n++;const i=t.charCodeAt(n);if(n>=t.length||(i&64512)!==56320)throw new Error("invalid utf-8 string");const o=65536+((s&1023)<<10)+(i&1023);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(o&63|128)}else r.push(s>>12|224),r.push(s>>6&63|128),r.push(s&63|128)}return kn(r)}function xL(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function EL(t,e){return xL(Z7(t,e))}function Gie(t,e=cp.current){return Z7(t3(t,e))}function Y1(t){return fp(t3(t))}var Mw={},ML={get exports(){return Mw},set exports(t){Mw=t}};(function(t){(function(e,r){function n(g,a){if(!g)throw new Error(a||"Assertion failed")}function s(g,a){g.super_=a;var c=function(){};c.prototype=a.prototype,g.prototype=new c,g.prototype.constructor=g}function i(g,a,c){if(i.isBN(g))return g;this.negative=0,this.words=null,this.length=0,this.red=null,g!==null&&((a==="le"||a==="be")&&(c=a,a=10),this._init(g||0,a||10,c||"be"))}typeof e=="object"?e.exports=i:r.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=mt.Buffer}catch{}i.isBN=function(a){return a instanceof i?!0:a!==null&&typeof a=="object"&&a.constructor.wordSize===i.wordSize&&Array.isArray(a.words)},i.max=function(a,c){return a.cmp(c)>0?a:c},i.min=function(a,c){return a.cmp(c)<0?a:c},i.prototype._init=function(a,c,m){if(typeof a=="number")return this._initNumber(a,c,m);if(typeof a=="object")return this._initArray(a,c,m);c==="hex"&&(c=16),n(c===(c|0)&&c>=2&&c<=36),a=a.toString().replace(/\s+/g,"");var b=0;a[0]==="-"&&(b++,this.negative=1),b=0;b-=3)_=a[b]|a[b-1]<<8|a[b-2]<<16,this.words[x]|=_<>>26-S&67108863,S+=24,S>=26&&(S-=26,x++);else if(m==="le")for(b=0,x=0;b>>26-S&67108863,S+=24,S>=26&&(S-=26,x++);return this._strip()};function f(g,a){var c=g.charCodeAt(a);if(c>=48&&c<=57)return c-48;if(c>=65&&c<=70)return c-55;if(c>=97&&c<=102)return c-87;n(!1,"Invalid character in "+g)}function u(g,a,c){var m=f(g,c);return c-1>=a&&(m|=f(g,c-1)<<4),m}i.prototype._parseHex=function(a,c,m){this.length=Math.ceil((a.length-c)/6),this.words=new Array(this.length);for(var b=0;b=c;b-=2)S=u(a,c,b)<=18?(x-=18,_+=1,this.words[_]|=S>>>26):x+=8;else{var y=a.length-c;for(b=y%2===0?c+1:c;b=18?(x-=18,_+=1,this.words[_]|=S>>>26):x+=8}this._strip()};function h(g,a,c,m){for(var b=0,x=0,_=Math.min(g.length,c),S=a;S<_;S++){var y=g.charCodeAt(S)-48;b*=m,y>=49?x=y-49+10:y>=17?x=y-17+10:x=y,n(y>=0&&x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch{i.prototype.inspect=d}else i.prototype.inspect=d;function d(){return(this.red?""}var v=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],w=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(a,c){a=a||10,c=c|0||1;var m;if(a===16||a==="hex"){m="";for(var b=0,x=0,_=0;_>>24-b&16777215,b+=2,b>=26&&(b-=26,_--),x!==0||_!==this.length-1?m=v[6-y.length]+y+m:m=y+m}for(x!==0&&(m=x.toString(16)+m);m.length%c!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(a===(a|0)&&a>=2&&a<=36){var l=w[a],E=A[a];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var L=Y.modrn(E).toString(a);Y=Y.idivn(E),Y.isZero()?m=L+m:m=v[l-L.length]+L+m}for(this.isZero()&&(m="0"+m);m.length%c!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var a=this.words[0];return this.length===2?a+=this.words[1]*67108864:this.length===3&&this.words[2]===1?a+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-a:a},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(a,c){return this.toArrayLike(o,a,c)}),i.prototype.toArray=function(a,c){return this.toArrayLike(Array,a,c)};var M=function(a,c){return a.allocUnsafe?a.allocUnsafe(c):new a(c)};i.prototype.toArrayLike=function(a,c,m){this._strip();var b=this.byteLength(),x=m||Math.max(1,b);n(b<=x,"byte array longer than desired length"),n(x>0,"Requested array length <= 0");var _=M(a,x),S=c==="le"?"LE":"BE";return this["_toArrayLike"+S](_,b),_},i.prototype._toArrayLikeLE=function(a,c){for(var m=0,b=0,x=0,_=0;x>8&255),m>16&255),_===6?(m>24&255),b=0,_=0):(b=S>>>24,_+=2)}if(m=0&&(a[m--]=S>>8&255),m>=0&&(a[m--]=S>>16&255),_===6?(m>=0&&(a[m--]=S>>24&255),b=0,_=0):(b=S>>>24,_+=2)}if(m>=0)for(a[m--]=b;m>=0;)a[m--]=0},Math.clz32?i.prototype._countBits=function(a){return 32-Math.clz32(a)}:i.prototype._countBits=function(a){var c=a,m=0;return c>=4096&&(m+=13,c>>>=13),c>=64&&(m+=7,c>>>=7),c>=8&&(m+=4,c>>>=4),c>=2&&(m+=2,c>>>=2),m+c},i.prototype._zeroBits=function(a){if(a===0)return 26;var c=a,m=0;return c&8191||(m+=13,c>>>=13),c&127||(m+=7,c>>>=7),c&15||(m+=4,c>>>=4),c&3||(m+=2,c>>>=2),c&1||m++,m},i.prototype.bitLength=function(){var a=this.words[this.length-1],c=this._countBits(a);return(this.length-1)*26+c};function R(g){for(var a=new Array(g.bitLength()),c=0;c>>b&1}return a}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var a=0,c=0;ca.length?this.clone().ior(a):a.clone().ior(this)},i.prototype.uor=function(a){return this.length>a.length?this.clone().iuor(a):a.clone().iuor(this)},i.prototype.iuand=function(a){var c;this.length>a.length?c=a:c=this;for(var m=0;ma.length?this.clone().iand(a):a.clone().iand(this)},i.prototype.uand=function(a){return this.length>a.length?this.clone().iuand(a):a.clone().iuand(this)},i.prototype.iuxor=function(a){var c,m;this.length>a.length?(c=this,m=a):(c=a,m=this);for(var b=0;ba.length?this.clone().ixor(a):a.clone().ixor(this)},i.prototype.uxor=function(a){return this.length>a.length?this.clone().iuxor(a):a.clone().iuxor(this)},i.prototype.inotn=function(a){n(typeof a=="number"&&a>=0);var c=Math.ceil(a/26)|0,m=a%26;this._expand(c),m>0&&c--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-m),this._strip()},i.prototype.notn=function(a){return this.clone().inotn(a)},i.prototype.setn=function(a,c){n(typeof a=="number"&&a>=0);var m=a/26|0,b=a%26;return this._expand(m+1),c?this.words[m]=this.words[m]|1<a.length?(m=this,b=a):(m=a,b=this);for(var x=0,_=0;_>>26;for(;x!==0&&_>>26;if(this.length=m.length,x!==0)this.words[this.length]=x,this.length++;else if(m!==this)for(;_a.length?this.clone().iadd(a):a.clone().iadd(this)},i.prototype.isub=function(a){if(a.negative!==0){a.negative=0;var c=this.iadd(a);return a.negative=1,c._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(a),this.negative=1,this._normSign();var m=this.cmp(a);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,x;m>0?(b=this,x=a):(b=a,x=this);for(var _=0,S=0;S>26,this.words[S]=c&67108863;for(;_!==0&&S>26,this.words[S]=c&67108863;if(_===0&&S>>26,Y=y&67108863,L=Math.min(l,a.length-1),F=Math.max(0,l-g.length+1);F<=L;F++){var V=l-F|0;b=g.words[V]|0,x=a.words[F]|0,_=b*x+Y,E+=_/67108864|0,Y=_&67108863}c.words[l]=Y|0,y=E|0}return y!==0?c.words[l]=y|0:c.length--,c._strip()}var C=function(a,c,m){var b=a.words,x=c.words,_=m.words,S=0,y,l,E,Y=b[0]|0,L=Y&8191,F=Y>>>13,V=b[1]|0,Z=V&8191,ee=V>>>13,ce=b[2]|0,U=ce&8191,j=ce>>>13,se=b[3]|0,re=se&8191,oe=se>>>13,Q=b[4]|0,z=Q&8191,G=Q>>>13,X=b[5]|0,ne=X&8191,ae=X>>>13,Me=b[6]|0,ge=Me&8191,pe=Me>>>13,ot=b[7]|0,we=ot&8191,me=ot>>>13,ut=b[8]|0,ze=ut&8191,_e=ut>>>13,Bt=b[9]|0,qe=Bt&8191,Te=Bt>>>13,xt=x[0]|0,He=xt&8191,Se=xt>>>13,Rt=x[1]|0,Ve=Rt&8191,Ee=Rt>>>13,Nt=x[2]|0,Ze=Nt&8191,Re=Nt>>>13,Ct=x[3]|0,je=Ct&8191,ke=Ct>>>13,Pt=x[4]|0,Ke=Pt&8191,Ne=Pt>>>13,Ot=x[5]|0,De=Ot&8191,Be=Ot>>>13,kt=x[6]|0,Ge=kt&8191,Ie=kt>>>13,Ut=x[7]|0,Ue=Ut&8191,Oe=Ut>>>13,It=x[8]|0,We=It&8191,Pe=It>>>13,_t=x[9]|0,Le=_t&8191,Ye=_t>>>13;m.negative=a.negative^c.negative,m.length=19,y=Math.imul(L,He),l=Math.imul(L,Se),l=l+Math.imul(F,He)|0,E=Math.imul(F,Se);var Ar=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,y=Math.imul(Z,He),l=Math.imul(Z,Se),l=l+Math.imul(ee,He)|0,E=Math.imul(ee,Se),y=y+Math.imul(L,Ve)|0,l=l+Math.imul(L,Ee)|0,l=l+Math.imul(F,Ve)|0,E=E+Math.imul(F,Ee)|0;var xr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(xr>>>26)|0,xr&=67108863,y=Math.imul(U,He),l=Math.imul(U,Se),l=l+Math.imul(j,He)|0,E=Math.imul(j,Se),y=y+Math.imul(Z,Ve)|0,l=l+Math.imul(Z,Ee)|0,l=l+Math.imul(ee,Ve)|0,E=E+Math.imul(ee,Ee)|0,y=y+Math.imul(L,Ze)|0,l=l+Math.imul(L,Re)|0,l=l+Math.imul(F,Ze)|0,E=E+Math.imul(F,Re)|0;var Er=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Er>>>26)|0,Er&=67108863,y=Math.imul(re,He),l=Math.imul(re,Se),l=l+Math.imul(oe,He)|0,E=Math.imul(oe,Se),y=y+Math.imul(U,Ve)|0,l=l+Math.imul(U,Ee)|0,l=l+Math.imul(j,Ve)|0,E=E+Math.imul(j,Ee)|0,y=y+Math.imul(Z,Ze)|0,l=l+Math.imul(Z,Re)|0,l=l+Math.imul(ee,Ze)|0,E=E+Math.imul(ee,Re)|0,y=y+Math.imul(L,je)|0,l=l+Math.imul(L,ke)|0,l=l+Math.imul(F,je)|0,E=E+Math.imul(F,ke)|0;var Gt=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,y=Math.imul(z,He),l=Math.imul(z,Se),l=l+Math.imul(G,He)|0,E=Math.imul(G,Se),y=y+Math.imul(re,Ve)|0,l=l+Math.imul(re,Ee)|0,l=l+Math.imul(oe,Ve)|0,E=E+Math.imul(oe,Ee)|0,y=y+Math.imul(U,Ze)|0,l=l+Math.imul(U,Re)|0,l=l+Math.imul(j,Ze)|0,E=E+Math.imul(j,Re)|0,y=y+Math.imul(Z,je)|0,l=l+Math.imul(Z,ke)|0,l=l+Math.imul(ee,je)|0,E=E+Math.imul(ee,ke)|0,y=y+Math.imul(L,Ke)|0,l=l+Math.imul(L,Ne)|0,l=l+Math.imul(F,Ke)|0,E=E+Math.imul(F,Ne)|0;var Vt=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,y=Math.imul(ne,He),l=Math.imul(ne,Se),l=l+Math.imul(ae,He)|0,E=Math.imul(ae,Se),y=y+Math.imul(z,Ve)|0,l=l+Math.imul(z,Ee)|0,l=l+Math.imul(G,Ve)|0,E=E+Math.imul(G,Ee)|0,y=y+Math.imul(re,Ze)|0,l=l+Math.imul(re,Re)|0,l=l+Math.imul(oe,Ze)|0,E=E+Math.imul(oe,Re)|0,y=y+Math.imul(U,je)|0,l=l+Math.imul(U,ke)|0,l=l+Math.imul(j,je)|0,E=E+Math.imul(j,ke)|0,y=y+Math.imul(Z,Ke)|0,l=l+Math.imul(Z,Ne)|0,l=l+Math.imul(ee,Ke)|0,E=E+Math.imul(ee,Ne)|0,y=y+Math.imul(L,De)|0,l=l+Math.imul(L,Be)|0,l=l+Math.imul(F,De)|0,E=E+Math.imul(F,Be)|0;var Lr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,y=Math.imul(ge,He),l=Math.imul(ge,Se),l=l+Math.imul(pe,He)|0,E=Math.imul(pe,Se),y=y+Math.imul(ne,Ve)|0,l=l+Math.imul(ne,Ee)|0,l=l+Math.imul(ae,Ve)|0,E=E+Math.imul(ae,Ee)|0,y=y+Math.imul(z,Ze)|0,l=l+Math.imul(z,Re)|0,l=l+Math.imul(G,Ze)|0,E=E+Math.imul(G,Re)|0,y=y+Math.imul(re,je)|0,l=l+Math.imul(re,ke)|0,l=l+Math.imul(oe,je)|0,E=E+Math.imul(oe,ke)|0,y=y+Math.imul(U,Ke)|0,l=l+Math.imul(U,Ne)|0,l=l+Math.imul(j,Ke)|0,E=E+Math.imul(j,Ne)|0,y=y+Math.imul(Z,De)|0,l=l+Math.imul(Z,Be)|0,l=l+Math.imul(ee,De)|0,E=E+Math.imul(ee,Be)|0,y=y+Math.imul(L,Ge)|0,l=l+Math.imul(L,Ie)|0,l=l+Math.imul(F,Ge)|0,E=E+Math.imul(F,Ie)|0;var Zr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,y=Math.imul(we,He),l=Math.imul(we,Se),l=l+Math.imul(me,He)|0,E=Math.imul(me,Se),y=y+Math.imul(ge,Ve)|0,l=l+Math.imul(ge,Ee)|0,l=l+Math.imul(pe,Ve)|0,E=E+Math.imul(pe,Ee)|0,y=y+Math.imul(ne,Ze)|0,l=l+Math.imul(ne,Re)|0,l=l+Math.imul(ae,Ze)|0,E=E+Math.imul(ae,Re)|0,y=y+Math.imul(z,je)|0,l=l+Math.imul(z,ke)|0,l=l+Math.imul(G,je)|0,E=E+Math.imul(G,ke)|0,y=y+Math.imul(re,Ke)|0,l=l+Math.imul(re,Ne)|0,l=l+Math.imul(oe,Ke)|0,E=E+Math.imul(oe,Ne)|0,y=y+Math.imul(U,De)|0,l=l+Math.imul(U,Be)|0,l=l+Math.imul(j,De)|0,E=E+Math.imul(j,Be)|0,y=y+Math.imul(Z,Ge)|0,l=l+Math.imul(Z,Ie)|0,l=l+Math.imul(ee,Ge)|0,E=E+Math.imul(ee,Ie)|0,y=y+Math.imul(L,Ue)|0,l=l+Math.imul(L,Oe)|0,l=l+Math.imul(F,Ue)|0,E=E+Math.imul(F,Oe)|0;var Ir=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,y=Math.imul(ze,He),l=Math.imul(ze,Se),l=l+Math.imul(_e,He)|0,E=Math.imul(_e,Se),y=y+Math.imul(we,Ve)|0,l=l+Math.imul(we,Ee)|0,l=l+Math.imul(me,Ve)|0,E=E+Math.imul(me,Ee)|0,y=y+Math.imul(ge,Ze)|0,l=l+Math.imul(ge,Re)|0,l=l+Math.imul(pe,Ze)|0,E=E+Math.imul(pe,Re)|0,y=y+Math.imul(ne,je)|0,l=l+Math.imul(ne,ke)|0,l=l+Math.imul(ae,je)|0,E=E+Math.imul(ae,ke)|0,y=y+Math.imul(z,Ke)|0,l=l+Math.imul(z,Ne)|0,l=l+Math.imul(G,Ke)|0,E=E+Math.imul(G,Ne)|0,y=y+Math.imul(re,De)|0,l=l+Math.imul(re,Be)|0,l=l+Math.imul(oe,De)|0,E=E+Math.imul(oe,Be)|0,y=y+Math.imul(U,Ge)|0,l=l+Math.imul(U,Ie)|0,l=l+Math.imul(j,Ge)|0,E=E+Math.imul(j,Ie)|0,y=y+Math.imul(Z,Ue)|0,l=l+Math.imul(Z,Oe)|0,l=l+Math.imul(ee,Ue)|0,E=E+Math.imul(ee,Oe)|0,y=y+Math.imul(L,We)|0,l=l+Math.imul(L,Pe)|0,l=l+Math.imul(F,We)|0,E=E+Math.imul(F,Pe)|0;var Dr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,y=Math.imul(qe,He),l=Math.imul(qe,Se),l=l+Math.imul(Te,He)|0,E=Math.imul(Te,Se),y=y+Math.imul(ze,Ve)|0,l=l+Math.imul(ze,Ee)|0,l=l+Math.imul(_e,Ve)|0,E=E+Math.imul(_e,Ee)|0,y=y+Math.imul(we,Ze)|0,l=l+Math.imul(we,Re)|0,l=l+Math.imul(me,Ze)|0,E=E+Math.imul(me,Re)|0,y=y+Math.imul(ge,je)|0,l=l+Math.imul(ge,ke)|0,l=l+Math.imul(pe,je)|0,E=E+Math.imul(pe,ke)|0,y=y+Math.imul(ne,Ke)|0,l=l+Math.imul(ne,Ne)|0,l=l+Math.imul(ae,Ke)|0,E=E+Math.imul(ae,Ne)|0,y=y+Math.imul(z,De)|0,l=l+Math.imul(z,Be)|0,l=l+Math.imul(G,De)|0,E=E+Math.imul(G,Be)|0,y=y+Math.imul(re,Ge)|0,l=l+Math.imul(re,Ie)|0,l=l+Math.imul(oe,Ge)|0,E=E+Math.imul(oe,Ie)|0,y=y+Math.imul(U,Ue)|0,l=l+Math.imul(U,Oe)|0,l=l+Math.imul(j,Ue)|0,E=E+Math.imul(j,Oe)|0,y=y+Math.imul(Z,We)|0,l=l+Math.imul(Z,Pe)|0,l=l+Math.imul(ee,We)|0,E=E+Math.imul(ee,Pe)|0,y=y+Math.imul(L,Le)|0,l=l+Math.imul(L,Ye)|0,l=l+Math.imul(F,Le)|0,E=E+Math.imul(F,Ye)|0;var ar=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(ar>>>26)|0,ar&=67108863,y=Math.imul(qe,Ve),l=Math.imul(qe,Ee),l=l+Math.imul(Te,Ve)|0,E=Math.imul(Te,Ee),y=y+Math.imul(ze,Ze)|0,l=l+Math.imul(ze,Re)|0,l=l+Math.imul(_e,Ze)|0,E=E+Math.imul(_e,Re)|0,y=y+Math.imul(we,je)|0,l=l+Math.imul(we,ke)|0,l=l+Math.imul(me,je)|0,E=E+Math.imul(me,ke)|0,y=y+Math.imul(ge,Ke)|0,l=l+Math.imul(ge,Ne)|0,l=l+Math.imul(pe,Ke)|0,E=E+Math.imul(pe,Ne)|0,y=y+Math.imul(ne,De)|0,l=l+Math.imul(ne,Be)|0,l=l+Math.imul(ae,De)|0,E=E+Math.imul(ae,Be)|0,y=y+Math.imul(z,Ge)|0,l=l+Math.imul(z,Ie)|0,l=l+Math.imul(G,Ge)|0,E=E+Math.imul(G,Ie)|0,y=y+Math.imul(re,Ue)|0,l=l+Math.imul(re,Oe)|0,l=l+Math.imul(oe,Ue)|0,E=E+Math.imul(oe,Oe)|0,y=y+Math.imul(U,We)|0,l=l+Math.imul(U,Pe)|0,l=l+Math.imul(j,We)|0,E=E+Math.imul(j,Pe)|0,y=y+Math.imul(Z,Le)|0,l=l+Math.imul(Z,Ye)|0,l=l+Math.imul(ee,Le)|0,E=E+Math.imul(ee,Ye)|0;var mr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(mr>>>26)|0,mr&=67108863,y=Math.imul(qe,Ze),l=Math.imul(qe,Re),l=l+Math.imul(Te,Ze)|0,E=Math.imul(Te,Re),y=y+Math.imul(ze,je)|0,l=l+Math.imul(ze,ke)|0,l=l+Math.imul(_e,je)|0,E=E+Math.imul(_e,ke)|0,y=y+Math.imul(we,Ke)|0,l=l+Math.imul(we,Ne)|0,l=l+Math.imul(me,Ke)|0,E=E+Math.imul(me,Ne)|0,y=y+Math.imul(ge,De)|0,l=l+Math.imul(ge,Be)|0,l=l+Math.imul(pe,De)|0,E=E+Math.imul(pe,Be)|0,y=y+Math.imul(ne,Ge)|0,l=l+Math.imul(ne,Ie)|0,l=l+Math.imul(ae,Ge)|0,E=E+Math.imul(ae,Ie)|0,y=y+Math.imul(z,Ue)|0,l=l+Math.imul(z,Oe)|0,l=l+Math.imul(G,Ue)|0,E=E+Math.imul(G,Oe)|0,y=y+Math.imul(re,We)|0,l=l+Math.imul(re,Pe)|0,l=l+Math.imul(oe,We)|0,E=E+Math.imul(oe,Pe)|0,y=y+Math.imul(U,Le)|0,l=l+Math.imul(U,Ye)|0,l=l+Math.imul(j,Le)|0,E=E+Math.imul(j,Ye)|0;var jr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(jr>>>26)|0,jr&=67108863,y=Math.imul(qe,je),l=Math.imul(qe,ke),l=l+Math.imul(Te,je)|0,E=Math.imul(Te,ke),y=y+Math.imul(ze,Ke)|0,l=l+Math.imul(ze,Ne)|0,l=l+Math.imul(_e,Ke)|0,E=E+Math.imul(_e,Ne)|0,y=y+Math.imul(we,De)|0,l=l+Math.imul(we,Be)|0,l=l+Math.imul(me,De)|0,E=E+Math.imul(me,Be)|0,y=y+Math.imul(ge,Ge)|0,l=l+Math.imul(ge,Ie)|0,l=l+Math.imul(pe,Ge)|0,E=E+Math.imul(pe,Ie)|0,y=y+Math.imul(ne,Ue)|0,l=l+Math.imul(ne,Oe)|0,l=l+Math.imul(ae,Ue)|0,E=E+Math.imul(ae,Oe)|0,y=y+Math.imul(z,We)|0,l=l+Math.imul(z,Pe)|0,l=l+Math.imul(G,We)|0,E=E+Math.imul(G,Pe)|0,y=y+Math.imul(re,Le)|0,l=l+Math.imul(re,Ye)|0,l=l+Math.imul(oe,Le)|0,E=E+Math.imul(oe,Ye)|0;var Yr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,y=Math.imul(qe,Ke),l=Math.imul(qe,Ne),l=l+Math.imul(Te,Ke)|0,E=Math.imul(Te,Ne),y=y+Math.imul(ze,De)|0,l=l+Math.imul(ze,Be)|0,l=l+Math.imul(_e,De)|0,E=E+Math.imul(_e,Be)|0,y=y+Math.imul(we,Ge)|0,l=l+Math.imul(we,Ie)|0,l=l+Math.imul(me,Ge)|0,E=E+Math.imul(me,Ie)|0,y=y+Math.imul(ge,Ue)|0,l=l+Math.imul(ge,Oe)|0,l=l+Math.imul(pe,Ue)|0,E=E+Math.imul(pe,Oe)|0,y=y+Math.imul(ne,We)|0,l=l+Math.imul(ne,Pe)|0,l=l+Math.imul(ae,We)|0,E=E+Math.imul(ae,Pe)|0,y=y+Math.imul(z,Le)|0,l=l+Math.imul(z,Ye)|0,l=l+Math.imul(G,Le)|0,E=E+Math.imul(G,Ye)|0;var or=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(or>>>26)|0,or&=67108863,y=Math.imul(qe,De),l=Math.imul(qe,Be),l=l+Math.imul(Te,De)|0,E=Math.imul(Te,Be),y=y+Math.imul(ze,Ge)|0,l=l+Math.imul(ze,Ie)|0,l=l+Math.imul(_e,Ge)|0,E=E+Math.imul(_e,Ie)|0,y=y+Math.imul(we,Ue)|0,l=l+Math.imul(we,Oe)|0,l=l+Math.imul(me,Ue)|0,E=E+Math.imul(me,Oe)|0,y=y+Math.imul(ge,We)|0,l=l+Math.imul(ge,Pe)|0,l=l+Math.imul(pe,We)|0,E=E+Math.imul(pe,Pe)|0,y=y+Math.imul(ne,Le)|0,l=l+Math.imul(ne,Ye)|0,l=l+Math.imul(ae,Le)|0,E=E+Math.imul(ae,Ye)|0;var Qr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,y=Math.imul(qe,Ge),l=Math.imul(qe,Ie),l=l+Math.imul(Te,Ge)|0,E=Math.imul(Te,Ie),y=y+Math.imul(ze,Ue)|0,l=l+Math.imul(ze,Oe)|0,l=l+Math.imul(_e,Ue)|0,E=E+Math.imul(_e,Oe)|0,y=y+Math.imul(we,We)|0,l=l+Math.imul(we,Pe)|0,l=l+Math.imul(me,We)|0,E=E+Math.imul(me,Pe)|0,y=y+Math.imul(ge,Le)|0,l=l+Math.imul(ge,Ye)|0,l=l+Math.imul(pe,Le)|0,E=E+Math.imul(pe,Ye)|0;var Mr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,y=Math.imul(qe,Ue),l=Math.imul(qe,Oe),l=l+Math.imul(Te,Ue)|0,E=Math.imul(Te,Oe),y=y+Math.imul(ze,We)|0,l=l+Math.imul(ze,Pe)|0,l=l+Math.imul(_e,We)|0,E=E+Math.imul(_e,Pe)|0,y=y+Math.imul(we,Le)|0,l=l+Math.imul(we,Ye)|0,l=l+Math.imul(me,Le)|0,E=E+Math.imul(me,Ye)|0;var Xr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,y=Math.imul(qe,We),l=Math.imul(qe,Pe),l=l+Math.imul(Te,We)|0,E=Math.imul(Te,Pe),y=y+Math.imul(ze,Le)|0,l=l+Math.imul(ze,Ye)|0,l=l+Math.imul(_e,Le)|0,E=E+Math.imul(_e,Ye)|0;var on=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(on>>>26)|0,on&=67108863,y=Math.imul(qe,Le),l=Math.imul(qe,Ye),l=l+Math.imul(Te,Le)|0,E=Math.imul(Te,Ye);var Cr=(S+y|0)+((l&8191)<<13)|0;return S=(E+(l>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,_[0]=Ar,_[1]=xr,_[2]=Er,_[3]=Gt,_[4]=Vt,_[5]=Lr,_[6]=Zr,_[7]=Ir,_[8]=Dr,_[9]=ar,_[10]=mr,_[11]=jr,_[12]=Yr,_[13]=or,_[14]=Qr,_[15]=Mr,_[16]=Xr,_[17]=on,_[18]=Cr,S!==0&&(_[19]=S,m.length++),m};Math.imul||(C=N);function B(g,a,c){c.negative=a.negative^g.negative,c.length=g.length+a.length;for(var m=0,b=0,x=0;x>>26)|0,b+=_>>>26,_&=67108863}c.words[x]=S,m=_,_=b}return m!==0?c.words[x]=m:c.length--,c._strip()}function O(g,a,c){return B(g,a,c)}i.prototype.mulTo=function(a,c){var m,b=this.length+a.length;return this.length===10&&a.length===10?m=C(this,a,c):b<63?m=N(this,a,c):b<1024?m=B(this,a,c):m=O(this,a,c),m},i.prototype.mul=function(a){var c=new i(null);return c.words=new Array(this.length+a.length),this.mulTo(a,c)},i.prototype.mulf=function(a){var c=new i(null);return c.words=new Array(this.length+a.length),O(this,a,c)},i.prototype.imul=function(a){return this.clone().mulTo(a,this)},i.prototype.imuln=function(a){var c=a<0;c&&(a=-a),n(typeof a=="number"),n(a<67108864);for(var m=0,b=0;b>=26,m+=x/67108864|0,m+=_>>>26,this.words[b]=_&67108863}return m!==0&&(this.words[b]=m,this.length++),c?this.ineg():this},i.prototype.muln=function(a){return this.clone().imuln(a)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(a){var c=R(a);if(c.length===0)return new i(1);for(var m=this,b=0;b=0);var c=a%26,m=(a-c)/26,b=67108863>>>26-c<<26-c,x;if(c!==0){var _=0;for(x=0;x>>26-c}_&&(this.words[x]=_,this.length++)}if(m!==0){for(x=this.length-1;x>=0;x--)this.words[x+m]=this.words[x];for(x=0;x=0);var b;c?b=(c-c%26)/26:b=0;var x=a%26,_=Math.min((a-x)/26,this.length),S=67108863^67108863>>>x<_)for(this.length-=_,l=0;l=0&&(E!==0||l>=b);l--){var Y=this.words[l]|0;this.words[l]=E<<26-x|Y>>>x,E=Y&S}return y&&E!==0&&(y.words[y.length++]=E),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(a,c,m){return n(this.negative===0),this.iushrn(a,c,m)},i.prototype.shln=function(a){return this.clone().ishln(a)},i.prototype.ushln=function(a){return this.clone().iushln(a)},i.prototype.shrn=function(a){return this.clone().ishrn(a)},i.prototype.ushrn=function(a){return this.clone().iushrn(a)},i.prototype.testn=function(a){n(typeof a=="number"&&a>=0);var c=a%26,m=(a-c)/26,b=1<=0);var c=a%26,m=(a-c)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(c!==0&&m++,this.length=Math.min(m,this.length),c!==0){var b=67108863^67108863>>>c<=67108864;c++)this.words[c]-=67108864,c===this.length-1?this.words[c+1]=1:this.words[c+1]++;return this.length=Math.max(this.length,c+1),this},i.prototype.isubn=function(a){if(n(typeof a=="number"),n(a<67108864),a<0)return this.iaddn(-a);if(this.negative!==0)return this.negative=0,this.iaddn(a),this.negative=1,this;if(this.words[0]-=a,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var c=0;c>26)-(y/67108864|0),this.words[x+m]=_&67108863}for(;x>26,this.words[x+m]=_&67108863;if(S===0)return this._strip();for(n(S===-1),S=0,x=0;x>26,this.words[x]=_&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(a,c){var m=this.length-a.length,b=this.clone(),x=a,_=x.words[x.length-1]|0,S=this._countBits(_);m=26-S,m!==0&&(x=x.ushln(m),b.iushln(m),_=x.words[x.length-1]|0);var y=b.length-x.length,l;if(c!=="mod"){l=new i(null),l.length=y+1,l.words=new Array(l.length);for(var E=0;E=0;L--){var F=(b.words[x.length+L]|0)*67108864+(b.words[x.length+L-1]|0);for(F=Math.min(F/_|0,67108863),b._ishlnsubmul(x,F,L);b.negative!==0;)F--,b.negative=0,b._ishlnsubmul(x,1,L),b.isZero()||(b.negative^=1);l&&(l.words[L]=F)}return l&&l._strip(),b._strip(),c!=="div"&&m!==0&&b.iushrn(m),{div:l||null,mod:b}},i.prototype.divmod=function(a,c,m){if(n(!a.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var b,x,_;return this.negative!==0&&a.negative===0?(_=this.neg().divmod(a,c),c!=="mod"&&(b=_.div.neg()),c!=="div"&&(x=_.mod.neg(),m&&x.negative!==0&&x.iadd(a)),{div:b,mod:x}):this.negative===0&&a.negative!==0?(_=this.divmod(a.neg(),c),c!=="mod"&&(b=_.div.neg()),{div:b,mod:_.mod}):this.negative&a.negative?(_=this.neg().divmod(a.neg(),c),c!=="div"&&(x=_.mod.neg(),m&&x.negative!==0&&x.isub(a)),{div:_.div,mod:x}):a.length>this.length||this.cmp(a)<0?{div:new i(0),mod:this}:a.length===1?c==="div"?{div:this.divn(a.words[0]),mod:null}:c==="mod"?{div:null,mod:new i(this.modrn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new i(this.modrn(a.words[0]))}:this._wordDiv(a,c)},i.prototype.div=function(a){return this.divmod(a,"div",!1).div},i.prototype.mod=function(a){return this.divmod(a,"mod",!1).mod},i.prototype.umod=function(a){return this.divmod(a,"mod",!0).mod},i.prototype.divRound=function(a){var c=this.divmod(a);if(c.mod.isZero())return c.div;var m=c.div.negative!==0?c.mod.isub(a):c.mod,b=a.ushrn(1),x=a.andln(1),_=m.cmp(b);return _<0||x===1&&_===0?c.div:c.div.negative!==0?c.div.isubn(1):c.div.iaddn(1)},i.prototype.modrn=function(a){var c=a<0;c&&(a=-a),n(a<=67108863);for(var m=(1<<26)%a,b=0,x=this.length-1;x>=0;x--)b=(m*b+(this.words[x]|0))%a;return c?-b:b},i.prototype.modn=function(a){return this.modrn(a)},i.prototype.idivn=function(a){var c=a<0;c&&(a=-a),n(a<=67108863);for(var m=0,b=this.length-1;b>=0;b--){var x=(this.words[b]|0)+m*67108864;this.words[b]=x/a|0,m=x%a}return this._strip(),c?this.ineg():this},i.prototype.divn=function(a){return this.clone().idivn(a)},i.prototype.egcd=function(a){n(a.negative===0),n(!a.isZero());var c=this,m=a.clone();c.negative!==0?c=c.umod(a):c=c.clone();for(var b=new i(1),x=new i(0),_=new i(0),S=new i(1),y=0;c.isEven()&&m.isEven();)c.iushrn(1),m.iushrn(1),++y;for(var l=m.clone(),E=c.clone();!c.isZero();){for(var Y=0,L=1;!(c.words[0]&L)&&Y<26;++Y,L<<=1);if(Y>0)for(c.iushrn(Y);Y-- >0;)(b.isOdd()||x.isOdd())&&(b.iadd(l),x.isub(E)),b.iushrn(1),x.iushrn(1);for(var F=0,V=1;!(m.words[0]&V)&&F<26;++F,V<<=1);if(F>0)for(m.iushrn(F);F-- >0;)(_.isOdd()||S.isOdd())&&(_.iadd(l),S.isub(E)),_.iushrn(1),S.iushrn(1);c.cmp(m)>=0?(c.isub(m),b.isub(_),x.isub(S)):(m.isub(c),_.isub(b),S.isub(x))}return{a:_,b:S,gcd:m.iushln(y)}},i.prototype._invmp=function(a){n(a.negative===0),n(!a.isZero());var c=this,m=a.clone();c.negative!==0?c=c.umod(a):c=c.clone();for(var b=new i(1),x=new i(0),_=m.clone();c.cmpn(1)>0&&m.cmpn(1)>0;){for(var S=0,y=1;!(c.words[0]&y)&&S<26;++S,y<<=1);if(S>0)for(c.iushrn(S);S-- >0;)b.isOdd()&&b.iadd(_),b.iushrn(1);for(var l=0,E=1;!(m.words[0]&E)&&l<26;++l,E<<=1);if(l>0)for(m.iushrn(l);l-- >0;)x.isOdd()&&x.iadd(_),x.iushrn(1);c.cmp(m)>=0?(c.isub(m),b.isub(x)):(m.isub(c),x.isub(b))}var Y;return c.cmpn(1)===0?Y=b:Y=x,Y.cmpn(0)<0&&Y.iadd(a),Y},i.prototype.gcd=function(a){if(this.isZero())return a.abs();if(a.isZero())return this.abs();var c=this.clone(),m=a.clone();c.negative=0,m.negative=0;for(var b=0;c.isEven()&&m.isEven();b++)c.iushrn(1),m.iushrn(1);do{for(;c.isEven();)c.iushrn(1);for(;m.isEven();)m.iushrn(1);var x=c.cmp(m);if(x<0){var _=c;c=m,m=_}else if(x===0||m.cmpn(1)===0)break;c.isub(m)}while(!0);return m.iushln(b)},i.prototype.invm=function(a){return this.egcd(a).a.umod(a)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(a){return this.words[0]&a},i.prototype.bincn=function(a){n(typeof a=="number");var c=a%26,m=(a-c)/26,b=1<>>26,S&=67108863,this.words[_]=S}return x!==0&&(this.words[_]=x,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(a){var c=a<0;if(this.negative!==0&&!c)return-1;if(this.negative===0&&c)return 1;this._strip();var m;if(this.length>1)m=1;else{c&&(a=-a),n(a<=67108863,"Number is too big");var b=this.words[0]|0;m=b===a?0:ba.length)return 1;if(this.length=0;m--){var b=this.words[m]|0,x=a.words[m]|0;if(b!==x){bx&&(c=1);break}}return c},i.prototype.gtn=function(a){return this.cmpn(a)===1},i.prototype.gt=function(a){return this.cmp(a)===1},i.prototype.gten=function(a){return this.cmpn(a)>=0},i.prototype.gte=function(a){return this.cmp(a)>=0},i.prototype.ltn=function(a){return this.cmpn(a)===-1},i.prototype.lt=function(a){return this.cmp(a)===-1},i.prototype.lten=function(a){return this.cmpn(a)<=0},i.prototype.lte=function(a){return this.cmp(a)<=0},i.prototype.eqn=function(a){return this.cmpn(a)===0},i.prototype.eq=function(a){return this.cmp(a)===0},i.red=function(a){return new P(a)},i.prototype.toRed=function(a){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),a.convertTo(this)._forceRed(a)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(a){return this.red=a,this},i.prototype.forceRed=function(a){return n(!this.red,"Already a number in reduction context"),this._forceRed(a)},i.prototype.redAdd=function(a){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,a)},i.prototype.redIAdd=function(a){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,a)},i.prototype.redSub=function(a){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,a)},i.prototype.redISub=function(a){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,a)},i.prototype.redShl=function(a){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,a)},i.prototype.redMul=function(a){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,a),this.red.mul(this,a)},i.prototype.redIMul=function(a){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,a),this.red.imul(this,a)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(a){return n(this.red&&!a.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,a)};var D={k256:null,p224:null,p192:null,p25519:null};function q(g,a){this.name=g,this.p=new i(a,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}q.prototype._tmp=function(){var a=new i(null);return a.words=new Array(Math.ceil(this.n/13)),a},q.prototype.ireduce=function(a){var c=a,m;do this.split(c,this.tmp),c=this.imulK(c),c=c.iadd(this.tmp),m=c.bitLength();while(m>this.n);var b=m0?c.isub(this.p):c.strip!==void 0?c.strip():c._strip(),c},q.prototype.split=function(a,c){a.iushrn(this.n,0,c)},q.prototype.imulK=function(a){return a.imul(this.k)};function W(){q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}s(W,q),W.prototype.split=function(a,c){for(var m=4194303,b=Math.min(a.length,9),x=0;x>>22,_=S}_>>>=22,a.words[x-10]=_,_===0&&a.length>10?a.length-=10:a.length-=9},W.prototype.imulK=function(a){a.words[a.length]=0,a.words[a.length+1]=0,a.length+=2;for(var c=0,m=0;m>>=26,a.words[m]=x,c=b}return c!==0&&(a.words[a.length++]=c),a},i._prime=function(a){if(D[a])return D[a];var c;if(a==="k256")c=new W;else if(a==="p224")c=new k;else if(a==="p192")c=new I;else if(a==="p25519")c=new H;else throw new Error("Unknown prime "+a);return D[a]=c,c};function P(g){if(typeof g=="string"){var a=i._prime(g);this.m=a.p,this.prime=a}else n(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}P.prototype._verify1=function(a){n(a.negative===0,"red works only with positives"),n(a.red,"red works only with red numbers")},P.prototype._verify2=function(a,c){n((a.negative|c.negative)===0,"red works only with positives"),n(a.red&&a.red===c.red,"red works only with red numbers")},P.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):(p(a,a.umod(this.m)._forceRed(this)),a)},P.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},P.prototype.add=function(a,c){this._verify2(a,c);var m=a.add(c);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},P.prototype.iadd=function(a,c){this._verify2(a,c);var m=a.iadd(c);return m.cmp(this.m)>=0&&m.isub(this.m),m},P.prototype.sub=function(a,c){this._verify2(a,c);var m=a.sub(c);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},P.prototype.isub=function(a,c){this._verify2(a,c);var m=a.isub(c);return m.cmpn(0)<0&&m.iadd(this.m),m},P.prototype.shl=function(a,c){return this._verify1(a),this.imod(a.ushln(c))},P.prototype.imul=function(a,c){return this._verify2(a,c),this.imod(a.imul(c))},P.prototype.mul=function(a,c){return this._verify2(a,c),this.imod(a.mul(c))},P.prototype.isqr=function(a){return this.imul(a,a.clone())},P.prototype.sqr=function(a){return this.mul(a,a)},P.prototype.sqrt=function(a){if(a.isZero())return a.clone();var c=this.m.andln(3);if(n(c%2===1),c===3){var m=this.m.add(new i(1)).iushrn(2);return this.pow(a,m)}for(var b=this.m.subn(1),x=0;!b.isZero()&&b.andln(1)===0;)x++,b.iushrn(1);n(!b.isZero());var _=new i(1).toRed(this),S=_.redNeg(),y=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);this.pow(l,y).cmp(S)!==0;)l.redIAdd(S);for(var E=this.pow(l,b),Y=this.pow(a,b.addn(1).iushrn(1)),L=this.pow(a,b),F=x;L.cmp(_)!==0;){for(var V=L,Z=0;V.cmp(_)!==0;Z++)V=V.redSqr();n(Z=0;x--){for(var E=c.words[x],Y=l-1;Y>=0;Y--){var L=E>>Y&1;if(_!==b[0]&&(_=this.sqr(_)),L===0&&S===0){y=0;continue}S<<=1,S|=L,y++,!(y!==m&&(x!==0||Y!==0))&&(_=this.mul(_,b[S]),y=0,S=0)}l=26}return _},P.prototype.convertTo=function(a){var c=a.umod(this.m);return c===a?c.clone():c},P.prototype.convertFrom=function(a){var c=a.clone();return c.red=null,c},i.mont=function(a){return new T(a)};function T(g){P.call(this,g),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}s(T,P),T.prototype.convertTo=function(a){return this.imod(a.ushln(this.shift))},T.prototype.convertFrom=function(a){var c=this.imod(a.mul(this.rinv));return c.red=null,c},T.prototype.imul=function(a,c){if(a.isZero()||c.isZero())return a.words[0]=0,a.length=1,a;var m=a.imul(c),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=m.isub(b).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},T.prototype.mul=function(a,c){if(a.isZero()||c.isZero())return new i(0)._forceRed(this);var m=a.mul(c),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=m.isub(b).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},T.prototype.invm=function(a){var c=this.imod(a._invmp(this.m).mul(this.r2));return c._forceRed(this)}})(t,ue)})(ML);const qt=Mw,SL="logger/5.7.0";let U4=!1,H4=!1;const Dm={debug:1,default:2,info:2,warning:3,error:4,off:5};let j4=Dm.default,wb=null;function _L(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{t.push(e)}}),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}const z4=_L();var Sw;(function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"})(Sw||(Sw={}));var Ba;(function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"})(Ba||(Ba={}));const K4="0123456789abcdef";let at=class Yn{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,r){const n=e.toLowerCase();Dm[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(j4>Dm[n])&&console.log.apply(console,r)}debug(...e){this._log(Yn.levels.DEBUG,e)}info(...e){this._log(Yn.levels.INFO,e)}warn(...e){this._log(Yn.levels.WARNING,e)}makeError(e,r,n){if(H4)return this.makeError("censored error",r,{});r||(r=Yn.errors.UNKNOWN_ERROR),n||(n={});const s=[];Object.keys(n).forEach(u=>{const h=n[u];try{if(h instanceof Uint8Array){let p="";for(let d=0;d>4],p+=K4[h[d]&15];s.push(u+"=Uint8Array(0x"+p+")")}else s.push(u+"="+JSON.stringify(h))}catch{s.push(u+"="+JSON.stringify(n[u].toString()))}}),s.push(`code=${r}`),s.push(`version=${this.version}`);const i=e;let o="";switch(r){case Ba.NUMERIC_FAULT:{o="NUMERIC_FAULT";const u=e;switch(u){case"overflow":case"underflow":case"division-by-zero":o+="-"+u;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result";break}break}case Ba.CALL_EXCEPTION:case Ba.INSUFFICIENT_FUNDS:case Ba.MISSING_NEW:case Ba.NONCE_EXPIRED:case Ba.REPLACEMENT_UNDERPRICED:case Ba.TRANSACTION_REPLACED:case Ba.UNPREDICTABLE_GAS_LIMIT:o=r;break}o&&(e+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),s.length&&(e+=" ("+s.join(", ")+")");const f=new Error(e);return f.reason=i,f.code=r,Object.keys(n).forEach(function(u){f[u]=n[u]}),f}throwError(e,r,n){throw this.makeError(e,r,n)}throwArgumentError(e,r,n){return this.throwError(e,Yn.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(e,r,n,s){e||this.throwError(r,n,s)}assertArgument(e,r,n,s){e||this.throwArgumentError(r,n,s)}checkNormalize(e){z4&&this.throwError("platform missing String.prototype.normalize",Yn.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:z4})}checkSafeUint53(e,r){typeof e=="number"&&(r==null&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,Yn.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,Yn.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,r,n){n?n=": "+n:n="",er&&this.throwError("too many arguments"+n,Yn.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})}checkNew(e,r){(e===Object||e==null)&&this.throwError("missing new",Yn.errors.MISSING_NEW,{name:r.name})}checkAbstract(e,r){e===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",Yn.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",Yn.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return wb||(wb=new Yn(SL)),wb}static setCensorship(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",Yn.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),U4){if(!e)return;this.globalLogger().throwError("error censorship permanent",Yn.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}H4=!!e,U4=!!r}static setLogLevel(e){const r=Dm[e.toLowerCase()];if(r==null){Yn.globalLogger().warn("invalid log level - "+e);return}j4=r}static from(e){return new Yn(e)}};at.errors=Ba;at.levels=Sw;const RL="bytes/5.7.0",Nn=new at(RL);function Y7(t){return!!t.toHexString}function oh(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return oh(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function r3(t){return sn(t)&&!(t.length%2)||Hv(t)}function q4(t){return typeof t=="number"&&t==t&&t%1===0}function Hv(t){if(t==null)return!1;if(t.constructor===Uint8Array)return!0;if(typeof t=="string"||!q4(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function nr(t,e){if(e||(e={}),typeof t=="number"){Nn.checkSafeUint53(t,"invalid arrayify value");const r=[];for(;t;)r.unshift(t&255),t=parseInt(String(t/256));return r.length===0&&r.push(0),oh(new Uint8Array(r))}if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),Y7(t)&&(t=t.toHexString()),sn(t)){let r=t.substring(2);r.length%2&&(e.hexPad==="left"?r="0"+r:e.hexPad==="right"?r+="0":Nn.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let s=0;snr(s)),r=e.reduce((s,i)=>s+i.length,0),n=new Uint8Array(r);return e.reduce((s,i)=>(n.set(i,s),s+i.length),0),oh(n)}function dd(t){let e=nr(t);if(e.length===0)return e;let r=0;for(;re&&Nn.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(e);return r.set(t,e-t.length),oh(r)}function sn(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}const Ab="0123456789abcdef";function Qt(t,e){if(e||(e={}),typeof t=="number"){Nn.checkSafeUint53(t,"invalid hexlify value");let r="";for(;t;)r=Ab[t&15]+r,t=Math.floor(t/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof t=="bigint")return t=t.toString(16),t.length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),Y7(t))return t.toHexString();if(sn(t))return t.length%2&&(e.hexPad==="left"?t="0x0"+t.substring(2):e.hexPad==="right"?t+="0":Nn.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(Hv(t)){let r="0x";for(let n=0;n>4]+Ab[s&15]}return r}return Nn.throwArgumentError("invalid hexlify value","value",t)}function Id(t){if(typeof t!="string")t=Qt(t);else if(!sn(t)||t.length%2)return null;return(t.length-2)/2}function El(t,e,r){return typeof t!="string"?t=Qt(t):(!sn(t)||t.length%2)&&Nn.throwArgumentError("invalid hexData","value",t),e=2+2*e,r!=null?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function So(t){let e="0x";return t.forEach(r=>{e+=Qt(r).substring(2)}),e}function n3(t){const e=CL(Qt(t,{hexPad:"left"}));return e==="0x"?"0x0":e}function CL(t){typeof t!="string"&&(t=Qt(t)),sn(t)||Nn.throwArgumentError("invalid hex string","value",t),t=t.substring(2);let e=0;for(;e2*e+2&&Nn.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function jv(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(r3(t)){let r=nr(t);r.length===64?(e.v=27+(r[32]>>7),r[32]&=127,e.r=Qt(r.slice(0,32)),e.s=Qt(r.slice(32,64))):r.length===65?(e.r=Qt(r.slice(0,32)),e.s=Qt(r.slice(32,64)),e.v=r[64]):Nn.throwArgumentError("invalid signature string","signature",t),e.v<27&&(e.v===0||e.v===1?e.v+=27:Nn.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=Qt(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,e._vs!=null){const s=NL(nr(e._vs),32);e._vs=Qt(s);const i=s[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=i:e.recoveryParam!==i&&Nn.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),s[0]&=127;const o=Qt(s);e.s==null?e.s=o:e.s!==o&&Nn.throwArgumentError("signature v mismatch _vs","signature",t)}if(e.recoveryParam==null)e.v==null?Nn.throwArgumentError("signature missing v and recoveryParam","signature",t):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{const s=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==s&&Nn.throwArgumentError("signature recoveryParam mismatch v","signature",t)}e.r==null||!sn(e.r)?Nn.throwArgumentError("signature missing or invalid r","signature",t):e.r=Jn(e.r,32),e.s==null||!sn(e.s)?Nn.throwArgumentError("signature missing or invalid s","signature",t):e.s=Jn(e.s,32);const r=nr(e.s);r[0]>=128&&Nn.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);const n=Qt(r);e._vs&&(sn(e._vs)||Nn.throwArgumentError("signature invalid _vs","signature",t),e._vs=Jn(e._vs,32)),e._vs==null?e._vs=n:e._vs!==n&&Nn.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}const TL="bignumber/5.7.0";var Mg=qt.BN;const Zo=new at(TL),xb={},G4=9007199254740991;let V4=!1;class Mt{constructor(e,r){e!==xb&&Zo.throwError("cannot call constructor directly; use BigNumber.from",at.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return ts(hr(this).fromTwos(e))}toTwos(e){return ts(hr(this).toTwos(e))}abs(){return this._hex[0]==="-"?Mt.from(this._hex.substring(1)):this}add(e){return ts(hr(this).add(hr(e)))}sub(e){return ts(hr(this).sub(hr(e)))}div(e){return Mt.from(e).isZero()&&Ds("division-by-zero","div"),ts(hr(this).div(hr(e)))}mul(e){return ts(hr(this).mul(hr(e)))}mod(e){const r=hr(e);return r.isNeg()&&Ds("division-by-zero","mod"),ts(hr(this).umod(r))}pow(e){const r=hr(e);return r.isNeg()&&Ds("negative-power","pow"),ts(hr(this).pow(r))}and(e){const r=hr(e);return(this.isNegative()||r.isNeg())&&Ds("unbound-bitwise-result","and"),ts(hr(this).and(r))}or(e){const r=hr(e);return(this.isNegative()||r.isNeg())&&Ds("unbound-bitwise-result","or"),ts(hr(this).or(r))}xor(e){const r=hr(e);return(this.isNegative()||r.isNeg())&&Ds("unbound-bitwise-result","xor"),ts(hr(this).xor(r))}mask(e){return(this.isNegative()||e<0)&&Ds("negative-width","mask"),ts(hr(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&Ds("negative-width","shl"),ts(hr(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&Ds("negative-width","shr"),ts(hr(this).shrn(e))}eq(e){return hr(this).eq(hr(e))}lt(e){return hr(this).lt(hr(e))}lte(e){return hr(this).lte(hr(e))}gt(e){return hr(this).gt(hr(e))}gte(e){return hr(this).gte(hr(e))}isNegative(){return this._hex[0]==="-"}isZero(){return hr(this).isZero()}toNumber(){try{return hr(this).toNumber()}catch{Ds("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return Zo.throwError("this platform does not support BigInt",at.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?V4||(V4=!0,Zo.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Zo.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",at.errors.UNEXPECTED_ARGUMENT,{}):Zo.throwError("BigNumber.toString does not accept parameters",at.errors.UNEXPECTED_ARGUMENT,{})),hr(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof Mt)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new Mt(xb,up(e)):e.match(/^-?[0-9]+$/)?new Mt(xb,up(new Mg(e))):Zo.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&Ds("underflow","BigNumber.from",e),(e>=G4||e<=-G4)&&Ds("overflow","BigNumber.from",e),Mt.from(String(e));const r=e;if(typeof r=="bigint")return Mt.from(r.toString());if(Hv(r))return Mt.from(Qt(r));if(r)if(r.toHexString){const n=r.toHexString();if(typeof n=="string")return Mt.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(sn(n)||n[0]==="-"&&sn(n.substring(1))))return Mt.from(n)}return Zo.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function up(t){if(typeof t!="string")return up(t.toString(16));if(t[0]==="-")return t=t.substring(1),t[0]==="-"&&Zo.throwArgumentError("invalid hex","value",t),t=up(t),t==="0x00"?t:"-"+t;if(t.substring(0,2)!=="0x"&&(t="0x"+t),t==="0x")return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&t.substring(0,4)==="0x00";)t="0x"+t.substring(4);return t}function ts(t){return Mt.from(up(t))}function hr(t){const e=Mt.from(t).toHexString();return e[0]==="-"?new Mg("-"+e.substring(3),16):new Mg(e.substring(2),16)}function Ds(t,e,r){const n={fault:t,operation:e};return r!=null&&(n.value=r),Zo.throwError(t,at.errors.NUMERIC_FAULT,n)}function kL(t){return new Mg(t,36).toString(16)}const BL="properties/5.7.0";var IL=globalThis&&globalThis.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function f(p){try{h(n.next(p))}catch(d){o(d)}}function u(p){try{h(n.throw(p))}catch(d){o(d)}}function h(p){p.done?i(p.value):s(p.value).then(f,u)}h((n=n.apply(t,e||[])).next())})};const Sg=new at(BL);function Nr(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function C0(t,e){for(let r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||typeof t.prototype!="object")break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function vi(t){return IL(this,void 0,void 0,function*(){const e=Object.keys(t).map(n=>{const s=t[n];return Promise.resolve(s).then(i=>({key:n,value:i}))});return(yield Promise.all(e)).reduce((n,s)=>(n[s.key]=s.value,n),{})})}function PL(t,e){(!t||typeof t!="object")&&Sg.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(r=>{e[r]||Sg.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)})}function ds(t){const e={};for(const r in t)e[r]=t[r];return e}const OL={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function Q7(t){if(t==null||OL[typeof t])return!0;if(Array.isArray(t)||typeof t=="object"){if(!Object.isFrozen(t))return!1;const e=Object.keys(t);for(let r=0;rhp(e)));if(typeof t=="object"){const e={};for(const r in t){const n=t[r];n!==void 0&&Nr(e,r,hp(n))}return e}return Sg.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}function hp(t){return LL(t)}class DL{constructor(e){for(const r in e)this[r]=hp(e[r])}}const FL="abstract-provider/5.7.0";var UL=globalThis&&globalThis.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function f(p){try{h(n.next(p))}catch(d){o(d)}}function u(p){try{h(n.throw(p))}catch(d){o(d)}}function h(p){p.done?i(p.value):s(p.value).then(f,u)}h((n=n.apply(t,e||[])).next())})};const HL=new at(FL);class jL extends DL{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class _g{constructor(){HL.checkAbstract(new.target,_g),Nr(this,"_isProvider",!0)}getFeeData(){return UL(this,void 0,void 0,function*(){const{block:e,gasPrice:r}=yield vi({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(o=>null)});let n=null,s=null,i=null;return e&&e.baseFeePerGas&&(n=e.baseFeePerGas,i=Mt.from("1500000000"),s=e.baseFeePerGas.mul(2).add(i)),{lastBaseFeePerGas:n,maxFeePerGas:s,maxPriorityFeePerGas:i,gasPrice:r}})}addListener(e,r){return this.on(e,r)}removeListener(e,r){return this.off(e,r)}static isProvider(e){return!!(e&&e._isProvider)}}const zL="networks/5.7.1",W4=new at(zL);function KL(t){return t&&typeof t.renetwork=="function"}function Jo(t){const e=function(r,n){n==null&&(n={});const s=[];if(r.InfuraProvider&&n.infura!=="-")try{s.push(new r.InfuraProvider(t,n.infura))}catch{}if(r.EtherscanProvider&&n.etherscan!=="-")try{s.push(new r.EtherscanProvider(t,n.etherscan))}catch{}if(r.AlchemyProvider&&n.alchemy!=="-")try{s.push(new r.AlchemyProvider(t,n.alchemy))}catch{}if(r.PocketProvider&&n.pocket!=="-"){const i=["goerli","ropsten","rinkeby","sepolia"];try{const o=new r.PocketProvider(t,n.pocket);o.network&&i.indexOf(o.network.name)===-1&&s.push(o)}catch{}}if(r.CloudflareProvider&&n.cloudflare!=="-")try{s.push(new r.CloudflareProvider(t))}catch{}if(r.AnkrProvider&&n.ankr!=="-")try{const i=["ropsten"],o=new r.AnkrProvider(t,n.ankr);o.network&&i.indexOf(o.network.name)===-1&&s.push(o)}catch{}if(s.length===0)return null;if(r.FallbackProvider){let i=1;return n.quorum!=null?i=n.quorum:t==="homestead"&&(i=2),new r.FallbackProvider(s,i)}return s[0]};return e.renetwork=function(r){return Jo(r)},e}function Rg(t,e){const r=function(n,s){return n.JsonRpcProvider?new n.JsonRpcProvider(t,e):null};return r.renetwork=function(n){return Rg(t,n)},r}const Z4={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:Jo("homestead")},Y4={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:Jo("ropsten")},Q4={chainId:63,name:"classicMordor",_defaultProvider:Rg("https://www.ethercluster.com/mordor","classicMordor")},Q1={unspecified:{chainId:0,name:"unspecified"},homestead:Z4,mainnet:Z4,morden:{chainId:2,name:"morden"},ropsten:Y4,testnet:Y4,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:Jo("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:Jo("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:Jo("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:Jo("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:Rg("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:Q4,classicTestnet:Q4,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:Rg("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:Jo("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:Jo("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function qL(t){if(t==null)return null;if(typeof t=="number"){for(const n in Q1){const s=Q1[n];if(s.chainId===t)return{name:s.name,chainId:s.chainId,ensAddress:s.ensAddress||null,_defaultProvider:s._defaultProvider||null}}return{chainId:t,name:"unknown"}}if(typeof t=="string"){const n=Q1[t];return n==null?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}const e=Q1[t.name];if(!e)return typeof t.chainId!="number"&&W4.throwArgumentError("invalid network chainId","network",t),t;t.chainId!==0&&t.chainId!==e.chainId&&W4.throwArgumentError("network chainId mismatch","network",t);let r=t._defaultProvider||null;return r==null&&e._defaultProvider&&(KL(e._defaultProvider)?r=e._defaultProvider.renetwork(t):r=e._defaultProvider),{name:t.name,chainId:e.chainId,ensAddress:t.ensAddress||e.ensAddress||null,_defaultProvider:r}}class X7{constructor(e){Nr(this,"alphabet",e),Nr(this,"base",e.length),Nr(this,"_alphabetMap",{}),Nr(this,"_leader",e.charAt(0));for(let r=0;r0;)n.push(o%this.base),o=o/this.base|0}let s="";for(let i=0;r[i]===0&&i=0;--i)s+=this.alphabet[n[i]];return s}decode(e){if(typeof e!="string")throw new TypeError("Expected String");let r=[];if(e.length===0)return new Uint8Array(r);r.push(0);for(let n=0;n>=8;for(;i>0;)r.push(i&255),i>>=8}for(let n=0;e[n]===this._leader&&n>6===2;o++)i++;return i}return t===Es.OVERRUN?r.length-e-1:0}function QL(t,e,r,n,s){return t===Es.OVERLONG?(n.push(s),0):(n.push(65533),eM(t,e,r))}const XL=Object.freeze({error:YL,ignore:eM,replace:QL});function tM(t,e){e==null&&(e=XL.error),t=nr(t);const r=[];let n=0;for(;n>7)){r.push(s);continue}let i=null,o=null;if((s&224)===192)i=1,o=127;else if((s&240)===224)i=2,o=2047;else if((s&248)===240)i=3,o=65535;else{(s&192)===128?n+=e(Es.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(Es.BAD_PREFIX,n-1,t,r);continue}if(n-1+i>=t.length){n+=e(Es.OVERRUN,n-1,t,r);continue}let f=s&(1<<8-i-1)-1;for(let u=0;u1114111){n+=e(Es.OUT_OF_RANGE,n-1-i,t,r,f);continue}if(f>=55296&&f<=57343){n+=e(Es.UTF16_SURROGATE,n-1-i,t,r,f);continue}if(f<=o){n+=e(Es.OVERLONG,n-1-i,t,r,f);continue}r.push(f)}}return r}function Nf(t,e=dp.current){e!=dp.current&&($7.checkNormalize(),t=t.normalize(e));let r=[];for(let n=0;n>6|192),r.push(s&63|128);else if((s&64512)==55296){n++;const i=t.charCodeAt(n);if(n>=t.length||(i&64512)!==56320)throw new Error("invalid utf-8 string");const o=65536+((s&1023)<<10)+(i&1023);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(o&63|128)}else r.push(s>>12|224),r.push(s>>6&63|128),r.push(s&63|128)}return nr(r)}function JL(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function l1(t,e){return JL(tM(t,e))}function $L(t,e=dp.current){return tM(Nf(t,e))}function rM(t){return Ai(Nf(t))}const nM="hash/5.7.0";function iM(t){t=atob(t);const e=[];for(let r=0;r0&&Array.isArray(f)?s(f,o-1):r.push(f)})};return s(t,e),r}function tD(t){const e={};for(let r=0;r>--u&1}const d=31,v=Math.pow(2,d),w=v>>>1,A=w>>1,M=v-1;let R=0;for(let D=0;D1;){let H=q+W>>>1;D>>1|p(),k=k<<1^w,I=(I^w)<<1|w|1;C=k,B=1+I-k}let O=n-4;return N.map(D=>{switch(D-O){case 3:return O+65792+(t[f++]<<16|t[f++]<<8|t[f++]);case 2:return O+256+(t[f++]<<8|t[f++]);case 1:return O+t[f++];default:return D-1}})}function nD(t){let e=0;return()=>t[e++]}function iD(t){return nD(rD(t))}function sD(t){return t&1?~t>>1:t>>1}function aD(t,e){let r=Array(t);for(let n=0;ne[o]):r}function fD(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(cD(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(uD(r,t))}return tD(sM(e))}function lD(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(r)}return e}function aM(t,e,r){let n=Array(t).fill(void 0).map(()=>[]);for(let s=0;sn[o].push(i));return n}function cD(t,e){let r=1+e(),n=e(),s=lD(e),i=aM(s.length,1+t,e);return sM(i.map((o,f)=>{const u=o[0],h=o.slice(1);return Array(s[f]).fill(void 0).map((p,d)=>{let v=d*n;return[u+d*r,h.map(w=>w+v)]})}))}function uD(t,e){let r=1+e();return aM(r,1+t,e).map(s=>[s[0],s.slice(1)])}function hD(t){let e=Ng(t).sort((n,s)=>n-s);return r();function r(){let n=[];for(;;){let h=Ng(t,e);if(h.length==0)break;n.push({set:new Set(h),node:r()})}n.sort((h,p)=>p.set.size-h.set.size);let s=t(),i=s%3;s=s/3|0;let o=!!(s&1);s>>=1;let f=s==1,u=s==2;return{branches:n,valid:i,fe0f:o,save:f,check:u}}}function dD(){return iD(iM("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAb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uncbFkA=="))}const zv=dD(),pD=new Set(Ng(zv)),mD=new Set(Ng(zv)),gD=fD(zv),vD=hD(zv),J4=45,$4=95;function oM(t){return $L(t)}function yD(t){return t.filter(e=>e!=65039)}function fM(t){for(let e of t.split(".")){let r=oM(e);try{for(let n=r.lastIndexOf($4)-1;n>=0;n--)if(r[n]!==$4)throw new Error("underscore only allowed at start");if(r.length>=4&&r.every(n=>n<128)&&r[2]===J4&&r[3]===J4)throw new Error("invalid label extension")}catch(n){throw new Error(`Invalid label "${e}": ${n.message}`)}}return t}function bD(t){return fM(wD(t,yD))}function wD(t,e){let r=oM(t).reverse(),n=[];for(;r.length;){let s=xD(r);if(s){n.push(...e(s));continue}let i=r.pop();if(pD.has(i)){n.push(i);continue}if(mD.has(i))continue;let o=gD[i];if(o){n.push(...o);continue}throw new Error(`Disallowed codepoint: 0x${i.toString(16).toUpperCase()}`)}return fM(AD(String.fromCodePoint(...n)))}function AD(t){return t.normalize("NFC")}function xD(t,e){var r;let n=vD,s,i,o=[],f=t.length;for(e&&(e.length=0);f;){let u=t[--f];if(n=(r=n.branches.find(h=>h.set.has(u)))===null||r===void 0?void 0:r.node,!n)break;if(n.save)i=u;else if(n.check&&u===i)break;o.push(u),n.fe0f&&(o.push(65039),f>0&&t[f-1]==65039&&f--),n.valid&&(s=o.slice(),n.valid==2&&s.splice(1,1),e&&e.push(...t.slice(f).reverse()),t.length=f)}return s}const ED=new at(nM),lM=new Uint8Array(32);lM.fill(0);function e5(t){if(t.length===0)throw new Error("invalid ENS name; empty component");return t}function MD(t){const e=Nf(bD(t)),r=[];if(t.length===0)return r;let n=0;for(let s=0;s=e.length)throw new Error("invalid ENS name; empty component");return r.push(e5(e.slice(n))),r}function Cg(t){typeof t!="string"&&ED.throwArgumentError("invalid ENS name; not a string","name",t);let e=lM;const r=MD(t);for(;r.length;)e=Ai(Ku([e,Ai(r.pop())]));return Qt(e)}const SD="rlp/5.7.0",lo=new at(SD);function t5(t){const e=[];for(;t;)e.unshift(t&255),t>>=8;return e}function r5(t,e,r){let n=0;for(let s=0;se+1+n&&lo.throwError("child data too short",at.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:s}}function uM(t,e){if(t.length===0&&lo.throwError("data too short",at.errors.BUFFER_OVERRUN,{}),t[e]>=248){const r=t[e]-247;e+1+r>t.length&&lo.throwError("data short segment too short",at.errors.BUFFER_OVERRUN,{});const n=r5(t,e+1,r);return e+1+r+n>t.length&&lo.throwError("data long segment too short",at.errors.BUFFER_OVERRUN,{}),n5(t,e,e+1+r,r+n)}else if(t[e]>=192){const r=t[e]-192;return e+1+r>t.length&&lo.throwError("data array too short",at.errors.BUFFER_OVERRUN,{}),n5(t,e,e+1,r)}else if(t[e]>=184){const r=t[e]-183;e+1+r>t.length&&lo.throwError("data array too short",at.errors.BUFFER_OVERRUN,{});const n=r5(t,e+1,r);e+1+r+n>t.length&&lo.throwError("data array too short",at.errors.BUFFER_OVERRUN,{});const s=Qt(t.slice(e+1+r,e+1+r+n));return{consumed:1+r+n,result:s}}else if(t[e]>=128){const r=t[e]-128;e+1+r>t.length&&lo.throwError("data too short",at.errors.BUFFER_OVERRUN,{});const n=Qt(t.slice(e+1,e+1+r));return{consumed:1+r,result:n}}return{consumed:1,result:Qt(t[e])}}function i3(t){const e=nr(t),r=uM(e,0);return r.consumed!==e.length&&lo.throwArgumentError("invalid rlp data","data",t),r.result}const _D="address/5.7.0",qu=new at(_D);function i5(t){sn(t,20)||qu.throwArgumentError("invalid address","address",t),t=t.toLowerCase();const e=t.substring(2).split(""),r=new Uint8Array(40);for(let s=0;s<40;s++)r[s]=e[s].charCodeAt(0);const n=nr(Ai(r));for(let s=0;s<40;s+=2)n[s>>1]>>4>=8&&(e[s]=e[s].toUpperCase()),(n[s>>1]&15)>=8&&(e[s+1]=e[s+1].toUpperCase());return"0x"+e.join("")}const RD=9007199254740991;function ND(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}const s3={};for(let t=0;t<10;t++)s3[String(t)]=String(t);for(let t=0;t<26;t++)s3[String.fromCharCode(65+t)]=String(10+t);const s5=Math.floor(ND(RD));function CD(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>s3[n]).join("");for(;e.length>=s5;){let n=e.substring(0,s5);e=parseInt(n,10)%97+e.substring(n.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}function qa(t){let e=null;if(typeof t!="string"&&qu.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))t.substring(0,2)!=="0x"&&(t="0x"+t),e=i5(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&qu.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==CD(t)&&qu.throwArgumentError("bad icap checksum","address",t),e=kL(t.substring(4));e.length<40;)e="0"+e;e=i5("0x"+e)}else qu.throwArgumentError("invalid address","address",t);return e}function TD(t){let e=null;try{e=qa(t.from)}catch{qu.throwArgumentError("missing from address","transaction",t)}const r=dd(nr(Mt.from(t.nonce).toHexString()));return qa(El(Ai(Kv([e,r])),12))}var kD=globalThis&&globalThis.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function f(p){try{h(n.next(p))}catch(d){o(d)}}function u(p){try{h(n.throw(p))}catch(d){o(d)}}function h(p){p.done?i(p.value):s(p.value).then(f,u)}h((n=n.apply(t,e||[])).next())})};const An=new at(nM),hM=new Uint8Array(32);hM.fill(0);const BD=Mt.from(-1),dM=Mt.from(0),pM=Mt.from(1),ID=Mt.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function PD(t){const e=nr(t),r=e.length%32;return r?So([e,hM.slice(r)]):Qt(e)}const OD=Jn(pM.toHexString(),32),LD=Jn(dM.toHexString(),32),a5={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Eb=["name","version","chainId","verifyingContract","salt"];function o5(t){return function(e){return typeof e!="string"&&An.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const DD={name:o5("name"),version:o5("version"),chainId:function(t){try{return Mt.from(t).toString()}catch{}return An.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return qa(t).toLowerCase()}catch{}return An.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{const e=nr(t);if(e.length!==32)throw new Error("bad length");return Qt(e)}catch{}return An.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function Mb(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const r=e[1]==="",n=parseInt(e[2]||"256");(n%8!==0||n>256||e[2]&&e[2]!==String(n))&&An.throwArgumentError("invalid numeric width","type",t);const s=ID.mask(r?n-1:n),i=r?s.add(pM).mul(BD):dM;return function(o){const f=Mt.from(o);return(f.lt(i)||f.gt(s))&&An.throwArgumentError(`value out-of-bounds for ${t}`,"value",o),Jn(f.toTwos(256).toHexString(),32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return(r===0||r>32||e[1]!==String(r))&&An.throwArgumentError("invalid bytes width","type",t),function(n){return nr(n).length!==r&&An.throwArgumentError(`invalid length for ${t}`,"value",n),PD(n)}}}switch(t){case"address":return function(e){return Jn(qa(e),32)};case"bool":return function(e){return e?OD:LD};case"bytes":return function(e){return Ai(e)};case"string":return function(e){return rM(e)}}return null}function f5(t,e){return`${t}(${e.map(({name:r,type:n})=>n+" "+r).join(",")})`}let l5=class Ra{constructor(e){Nr(this,"types",Object.freeze(hp(e))),Nr(this,"_encoderCache",{}),Nr(this,"_types",{});const r={},n={},s={};Object.keys(e).forEach(f=>{r[f]={},n[f]=[],s[f]={}});for(const f in e){const u={};e[f].forEach(h=>{u[h.name]&&An.throwArgumentError(`duplicate variable name ${JSON.stringify(h.name)} in ${JSON.stringify(f)}`,"types",e),u[h.name]=!0;const p=h.type.match(/^([^\x5b]*)(\x5b|$)/)[1];p===f&&An.throwArgumentError(`circular type reference to ${JSON.stringify(p)}`,"types",e),!Mb(p)&&(n[p]||An.throwArgumentError(`unknown type ${JSON.stringify(p)}`,"types",e),n[p].push(f),r[f][p]=!0)})}const i=Object.keys(n).filter(f=>n[f].length===0);i.length===0?An.throwArgumentError("missing primary type","types",e):i.length>1&&An.throwArgumentError(`ambiguous primary types or unused types: ${i.map(f=>JSON.stringify(f)).join(", ")}`,"types",e),Nr(this,"primaryType",i[0]);function o(f,u){u[f]&&An.throwArgumentError(`circular type reference to ${JSON.stringify(f)}`,"types",e),u[f]=!0,Object.keys(r[f]).forEach(h=>{n[h]&&(o(h,u),Object.keys(u).forEach(p=>{s[p][h]=!0}))}),delete u[f]}o(this.primaryType,{});for(const f in s){const u=Object.keys(s[f]);u.sort(),this._types[f]=f5(f,e[f])+u.map(h=>f5(h,e[h])).join("")}}getEncoder(e){let r=this._encoderCache[e];return r||(r=this._encoderCache[e]=this._getEncoder(e)),r}_getEncoder(e){{const s=Mb(e);if(s)return s}const r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const s=r[1],i=this.getEncoder(s),o=parseInt(r[3]);return f=>{o>=0&&f.length!==o&&An.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",f);let u=f.map(i);return this._types[s]&&(u=u.map(Ai)),Ai(So(u))}}const n=this.types[e];if(n){const s=rM(this._types[e]);return i=>{const o=n.map(({name:f,type:u})=>{const h=this.getEncoder(u)(i[f]);return this._types[u]?Ai(h):h});return o.unshift(s),So(o)}}return An.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const r=this._types[e];return r||An.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),r}encodeData(e,r){return this.getEncoder(e)(r)}hashStruct(e,r){return Ai(this.encodeData(e,r))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,r,n){if(Mb(e))return n(e,r);const s=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(s){const o=s[1],f=parseInt(s[3]);return f>=0&&r.length!==f&&An.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",r),r.map(u=>this._visit(o,u,n))}const i=this.types[e];return i?i.reduce((o,{name:f,type:u})=>(o[f]=this._visit(u,r[f],n),o),{}):An.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,r){return this._visit(this.primaryType,e,r)}static from(e){return new Ra(e)}static getPrimaryType(e){return Ra.from(e).primaryType}static hashStruct(e,r,n){return Ra.from(r).hashStruct(e,n)}static hashDomain(e){const r=[];for(const n in e){const s=a5[n];s||An.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),r.push({name:n,type:s})}return r.sort((n,s)=>Eb.indexOf(n.name)-Eb.indexOf(s.name)),Ra.hashStruct("EIP712Domain",{EIP712Domain:r},e)}static encode(e,r,n){return So(["0x1901",Ra.hashDomain(e),Ra.from(r).hash(n)])}static hash(e,r,n){return Ai(Ra.encode(e,r,n))}static resolveNames(e,r,n,s){return kD(this,void 0,void 0,function*(){e=ds(e);const i={};e.verifyingContract&&!sn(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const o=Ra.from(r);o.visit(n,(f,u)=>(f==="address"&&!sn(u,20)&&(i[u]="0x"),u));for(const f in i)i[f]=yield s(f);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),n=o.visit(n,(f,u)=>f==="address"&&i[u]?i[u]:u),{domain:e,value:n}})}static getPayload(e,r,n){Ra.hashDomain(e);const s={},i=[];Eb.forEach(u=>{const h=e[u];h!=null&&(s[u]=DD[u](h),i.push({name:u,type:a5[u]}))});const o=Ra.from(r),f=ds(r);return f.EIP712Domain?An.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):f.EIP712Domain=i,o.encode(n),{types:f,domain:s,primaryType:o.primaryType,message:o.visit(n,(u,h)=>{if(u.match(/^bytes(\d*)/))return Qt(nr(h));if(u.match(/^u?int/))return Mt.from(h).toString();switch(u){case"address":return h.toLowerCase();case"bool":return!!h;case"string":return typeof h!="string"&&An.throwArgumentError("invalid string","value",h),h}return An.throwArgumentError("unsupported type","type",u)})}}};function c5(t){return"0x"+fs.sha256().update(nr(t)).digest("hex")}const FD="web/5.7.1";var UD=globalThis&&globalThis.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function f(p){try{h(n.next(p))}catch(d){o(d)}}function u(p){try{h(n.throw(p))}catch(d){o(d)}}function h(p){p.done?i(p.value):s(p.value).then(f,u)}h((n=n.apply(t,e||[])).next())})};function HD(t,e){return UD(this,void 0,void 0,function*(){e==null&&(e={});const r={method:e.method||"GET",headers:e.headers||{},body:e.body||void 0};if(e.skipFetchSetup!==!0&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),e.fetchOptions!=null){const o=e.fetchOptions;o.mode&&(r.mode=o.mode),o.cache&&(r.cache=o.cache),o.credentials&&(r.credentials=o.credentials),o.redirect&&(r.redirect=o.redirect),o.referrer&&(r.referrer=o.referrer)}const n=yield fetch(t,r),s=yield n.arrayBuffer(),i={};return n.headers.forEach?n.headers.forEach((o,f)=>{i[f.toLowerCase()]=o}):n.headers.keys().forEach(o=>{i[o.toLowerCase()]=n.headers.get(o)}),{headers:i,statusCode:n.status,statusMessage:n.statusText,body:nr(new Uint8Array(s))}})}var jD=globalThis&&globalThis.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function f(p){try{h(n.next(p))}catch(d){o(d)}}function u(p){try{h(n.throw(p))}catch(d){o(d)}}function h(p){p.done?i(p.value):s(p.value).then(f,u)}h((n=n.apply(t,e||[])).next())})};const Na=new at(FD);function u5(t){return new Promise(e=>{setTimeout(e,t)})}function qf(t,e){if(t==null)return null;if(typeof t=="string")return t;if(r3(t)){if(e&&(e.split("/")[0]==="text"||e.split(";")[0].trim()==="application/json"))try{return l1(t)}catch{}return Qt(t)}return t}function zD(t){return Nf(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,r)=>String.fromCharCode(parseInt(r,16))))}function KD(t,e,r){const n=typeof t=="object"&&t.throttleLimit!=null?t.throttleLimit:12;Na.assertArgument(n>0&&n%1===0,"invalid connection throttle limit","connection.throttleLimit",n);const s=typeof t=="object"?t.throttleCallback:null,i=typeof t=="object"&&typeof t.throttleSlotInterval=="number"?t.throttleSlotInterval:100;Na.assertArgument(i>0&&i%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",i);const o=typeof t=="object"?!!t.errorPassThrough:!1,f={};let u=null;const h={method:"GET"};let p=!1,d=2*60*1e3;if(typeof t=="string")u=t;else if(typeof t=="object"){if((t==null||t.url==null)&&Na.throwArgumentError("missing URL","connection.url",t),u=t.url,typeof t.timeout=="number"&&t.timeout>0&&(d=t.timeout),t.headers)for(const N in t.headers)f[N.toLowerCase()]={key:N,value:String(t.headers[N])},["if-none-match","if-modified-since"].indexOf(N.toLowerCase())>=0&&(p=!0);if(h.allowGzip=!!t.allowGzip,t.user!=null&&t.password!=null){u.substring(0,6)!=="https:"&&t.allowInsecureAuthentication!==!0&&Na.throwError("basic authentication requires a secure https url",at.errors.INVALID_ARGUMENT,{argument:"url",url:u,user:t.user,password:"[REDACTED]"});const N=t.user+":"+t.password;f.authorization={key:"Authorization",value:"Basic "+eD(Nf(N))}}t.skipFetchSetup!=null&&(h.skipFetchSetup=!!t.skipFetchSetup),t.fetchOptions!=null&&(h.fetchOptions=ds(t.fetchOptions))}const v=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),w=u?u.match(v):null;if(w)try{const N={statusCode:200,statusMessage:"OK",headers:{"content-type":w[1]||"text/plain"},body:w[2]?iM(w[3]):zD(w[3])};let C=N.body;return r&&(C=r(N.body,N)),Promise.resolve(C)}catch(N){Na.throwError("processing response error",at.errors.SERVER_ERROR,{body:qf(w[1],w[2]),error:N,requestBody:null,requestMethod:"GET",url:u})}e&&(h.method="POST",h.body=e,f["content-type"]==null&&(f["content-type"]={key:"Content-Type",value:"application/octet-stream"}),f["content-length"]==null&&(f["content-length"]={key:"Content-Length",value:String(e.length)}));const A={};Object.keys(f).forEach(N=>{const C=f[N];A[C.key]=C.value}),h.headers=A;const M=function(){let N=null;return{promise:new Promise(function(O,D){d&&(N=setTimeout(()=>{N!=null&&(N=null,D(Na.makeError("timeout",at.errors.TIMEOUT,{requestBody:qf(h.body,A["content-type"]),requestMethod:h.method,timeout:d,url:u})))},d))}),cancel:function(){N!=null&&(clearTimeout(N),N=null)}}}(),R=function(){return jD(this,void 0,void 0,function*(){for(let N=0;N=300)&&(M.cancel(),Na.throwError("bad response",at.errors.SERVER_ERROR,{status:C.statusCode,headers:C.headers,body:qf(B,C.headers?C.headers["content-type"]:null),requestBody:qf(h.body,A["content-type"]),requestMethod:h.method,url:u})),r)try{const O=yield r(B,C);return M.cancel(),O}catch(O){if(O.throttleRetry&&N{let f=null;if(i!=null)try{f=JSON.parse(l1(i))}catch(u){Na.throwError("invalid JSON",at.errors.SERVER_ERROR,{body:i,error:u})}return r&&(f=r(f,o)),f},s=null;if(e!=null){s=Nf(e);const i=typeof t=="string"?{url:t}:ds(t);i.headers?Object.keys(i.headers).filter(f=>f.toLowerCase()==="content-type").length!==0||(i.headers=ds(i.headers),i.headers["content-type"]="application/json"):i.headers={"content-type":"application/json"},t=i}return KD(t,s,n)}function T0(t,e){return e||(e={}),e=ds(e),e.floor==null&&(e.floor=0),e.ceiling==null&&(e.ceiling=1e4),e.interval==null&&(e.interval=250),new Promise(function(r,n){let s=null,i=!1;const o=()=>i?!1:(i=!0,s&&clearTimeout(s),!0);e.timeout&&(s=setTimeout(()=>{o()&&n(new Error("timeout"))},e.timeout));const f=e.retryLimit;let u=0;function h(){return t().then(function(p){if(p!==void 0)o()&&r(p);else if(e.oncePoll)e.oncePoll.once("poll",h);else if(e.onceBlock)e.onceBlock.once("block",h);else if(!i){if(u++,u>f){o()&&n(new Error("retry limit reached"));return}let d=e.interval*parseInt(String(Math.random()*Math.pow(2,u)));de.ceiling&&(d=e.ceiling),setTimeout(h,d)}return null},function(p){o()&&n(p)})}h()})}var Tg="qpzry9x8gf2tvdw0s3jn54khce6mua7l",_w={};for(var X1=0;X1>25;return(t&33554431)<<5^-(e>>0&1)&996825010^-(e>>1&1)&642813549^-(e>>2&1)&513874426^-(e>>3&1)&1027748829^-(e>>4&1)&705979059}function gM(t){for(var e=1,r=0;r126)return"Invalid prefix ("+t+")";e=fh(e)^n>>5}for(e=fh(e),r=0;rr)throw new TypeError("Exceeds length limit");t=t.toLowerCase();var n=gM(t);if(typeof n=="string")throw new Error(n);for(var s=t+"1",i=0;i>5)throw new Error("Non 5-bit word");n=fh(n)^o,s+=Tg.charAt(o)}for(i=0;i<6;++i)n=fh(n);for(n^=1,i=0;i<6;++i){var f=n>>(5-i)*5&31;s+=Tg.charAt(f)}return s}function vM(t,e){if(e=e||90,t.length<8)return t+" too short";if(t.length>e)return"Exceeds length limit";var r=t.toLowerCase(),n=t.toUpperCase();if(t!==r&&t!==n)return"Mixed-case string "+t;t=r;var s=t.lastIndexOf("1");if(s===-1)return"No separator character for "+t;if(s===0)return"Missing prefix for "+t;var i=t.slice(0,s),o=t.slice(s+1);if(o.length<6)return"Data too short";var f=gM(i);if(typeof f=="string")return f;for(var u=[],h=0;h=o.length)&&u.push(d)}return f!==1?"Invalid checksum for "+t:{prefix:i,words:u}}function GD(){var t=vM.apply(null,arguments);if(typeof t=="object")return t}function VD(t){var e=vM.apply(null,arguments);if(typeof e=="object")return e;throw new Error(e)}function qv(t,e,r,n){for(var s=0,i=0,o=(1<=r;)i-=r,f.push(s>>i&o);if(n)i>0&&f.push(s<=e)return"Excess padding";if(s<>8,v=p&255;d?u.push(d,v):u.push(v)}return u}r.toArray=n;function s(o){return o.length===1?"0"+o:o}r.zero2=s;function i(o){for(var f="",u=0;u(v>>1)-1?M=(v>>1)-R:M=R,w.isubn(M)):M=0,d[A]=M,w.iushrn(1)}return d}r.getNAF=n;function s(u,h){var p=[[],[]];u=u.clone(),h=h.clone();for(var d=0,v=0,w;u.cmpn(-d)>0||h.cmpn(-v)>0;){var A=u.andln(3)+d&3,M=h.andln(3)+v&3;A===3&&(A=-1),M===3&&(M=-1);var R;A&1?(w=u.andln(7)+d&7,(w===3||w===5)&&M===2?R=-A:R=A):R=0,p[0].push(R);var N;M&1?(w=h.andln(7)+v&7,(w===3||w===5)&&A===2?N=-M:N=M):N=0,p[1].push(N),2*d===R+1&&(d=1-d),2*v===N+1&&(v=1-v),u.iushrn(1),h.iushrn(1)}return p}r.getJSF=s;function i(u,h,p){var d="_"+h;u.prototype[h]=function(){return this[d]!==void 0?this[d]:this[d]=p.call(this)}}r.cachedProperty=i;function o(u){return typeof u=="string"?r.toArray(u,"hex"):u}r.parseBytes=o;function f(u){return new qt(u,"hex","le")}r.intFromLE=f}),kg=Ts.getNAF,$D=Ts.getJSF,Bg=Ts.assert;function Ll(t,e){this.type=t,this.p=new qt(e.p,16),this.red=e.prime?qt.red(e.prime):qt.mont(this.p),this.zero=new qt(0).toRed(this.red),this.one=new qt(1).toRed(this.red),this.two=new qt(2).toRed(this.red),this.n=e.n&&new qt(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var ru=Ll;Ll.prototype.point=function(){throw new Error("Not implemented")};Ll.prototype.validate=function(){throw new Error("Not implemented")};Ll.prototype._fixedNafMul=function(e,r){Bg(e.precomputed);var n=e._getDoubles(),s=kg(r,1,this._bitLength),i=(1<=f;h--)u=(u<<1)+s[h];o.push(u)}for(var p=this.jpoint(null,null,null),d=this.jpoint(null,null,null),v=i;v>0;v--){for(f=0;f=0;u--){for(var h=0;u>=0&&o[u]===0;u--)h++;if(u>=0&&h++,f=f.dblp(h),u<0)break;var p=o[u];Bg(p!==0),e.type==="affine"?p>0?f=f.mixedAdd(i[p-1>>1]):f=f.mixedAdd(i[-p-1>>1].neg()):p>0?f=f.add(i[p-1>>1]):f=f.add(i[-p-1>>1].neg())}return e.type==="affine"?f.toP():f};Ll.prototype._wnafMulAdd=function(e,r,n,s,i){var o=this._wnafT1,f=this._wnafT2,u=this._wnafT3,h=0,p,d,v;for(p=0;p=1;p-=2){var A=p-1,M=p;if(o[A]!==1||o[M]!==1){u[A]=kg(n[A],o[A],this._bitLength),u[M]=kg(n[M],o[M],this._bitLength),h=Math.max(u[A].length,h),h=Math.max(u[M].length,h);continue}var R=[r[A],null,null,r[M]];r[A].y.cmp(r[M].y)===0?(R[1]=r[A].add(r[M]),R[2]=r[A].toJ().mixedAdd(r[M].neg())):r[A].y.cmp(r[M].y.redNeg())===0?(R[1]=r[A].toJ().mixedAdd(r[M]),R[2]=r[A].add(r[M].neg())):(R[1]=r[A].toJ().mixedAdd(r[M]),R[2]=r[A].toJ().mixedAdd(r[M].neg()));var N=[-3,-1,-5,-7,0,7,5,1,3],C=$D(n[A],n[M]);for(h=Math.max(C[0].length,h),u[A]=new Array(h),u[M]=new Array(h),d=0;d=0;p--){for(var W=0;p>=0;){var k=!0;for(d=0;d=0&&W++,D=D.dblp(W),p<0)break;for(d=0;d0?v=f[d][I-1>>1]:I<0&&(v=f[d][-I-1>>1].neg()),v.type==="affine"?D=D.mixedAdd(v):D=D.add(v))}}for(p=0;p=Math.ceil((e.bitLength()+1)/r.step):!1};la.prototype._getDoubles=function(e,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],s=this,i=0;i=0&&(w=h,A=p),d.negative&&(d=d.neg(),v=v.neg()),w.negative&&(w=w.neg(),A=A.neg()),[{a:d,b:v},{a:w,b:A}]};ca.prototype._endoSplit=function(e){var r=this.endo.basis,n=r[0],s=r[1],i=s.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),f=i.mul(n.a),u=o.mul(s.a),h=i.mul(n.b),p=o.mul(s.b),d=e.sub(f).sub(u),v=h.add(p).neg();return{k1:d,k2:v}};ca.prototype.pointFromX=function(e,r){e=new qt(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),s=n.redSqrt();if(s.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var i=s.fromRed().isOdd();return(r&&!i||!r&&i)&&(s=s.redNeg()),this.point(e,s)};ca.prototype.validate=function(e){if(e.inf)return!0;var r=e.x,n=e.y,s=this.a.redMul(r),i=r.redSqr().redMul(r).redIAdd(s).redIAdd(this.b);return n.redSqr().redISub(i).cmpn(0)===0};ca.prototype._endoWnafMulAdd=function(e,r,n){for(var s=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""};ci.prototype.isInfinity=function(){return this.inf};ci.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var r=this.y.redSub(e.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(e.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(e.x),s=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,s)};ci.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),s=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(s),o=i.redSqr().redISub(this.x.redAdd(this.x)),f=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,f)};ci.prototype.getX=function(){return this.x.fromRed()};ci.prototype.getY=function(){return this.y.fromRed()};ci.prototype.mul=function(e){return e=new qt(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};ci.prototype.mulAdd=function(e,r,n){var s=[this,r],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(s,i):this.curve._wnafMulAdd(1,s,i,2)};ci.prototype.jmulAdd=function(e,r,n){var s=[this,r],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(s,i,!0):this.curve._wnafMulAdd(1,s,i,2,!0)};ci.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};ci.prototype.neg=function(e){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,s=function(i){return i.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(s)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(s)}}}return r};ci.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function Mi(t,e,r,n){ru.BasePoint.call(this,t,"jacobian"),e===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new qt(0)):(this.x=new qt(e,16),this.y=new qt(r,16),this.z=new qt(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o3(Mi,ru.BasePoint);ca.prototype.jpoint=function(e,r,n){return new Mi(this,e,r,n)};Mi.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),r=e.redSqr(),n=this.x.redMul(r),s=this.y.redMul(r).redMul(e);return this.curve.point(n,s)};Mi.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Mi.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var r=e.z.redSqr(),n=this.z.redSqr(),s=this.x.redMul(r),i=e.x.redMul(n),o=this.y.redMul(r.redMul(e.z)),f=e.y.redMul(n.redMul(this.z)),u=s.redSub(i),h=o.redSub(f);if(u.cmpn(0)===0)return h.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var p=u.redSqr(),d=p.redMul(u),v=s.redMul(p),w=h.redSqr().redIAdd(d).redISub(v).redISub(v),A=h.redMul(v.redISub(w)).redISub(o.redMul(d)),M=this.z.redMul(e.z).redMul(u);return this.curve.jpoint(w,A,M)};Mi.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var r=this.z.redSqr(),n=this.x,s=e.x.redMul(r),i=this.y,o=e.y.redMul(r).redMul(this.z),f=n.redSub(s),u=i.redSub(o);if(f.cmpn(0)===0)return u.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var h=f.redSqr(),p=h.redMul(f),d=n.redMul(h),v=u.redSqr().redIAdd(p).redISub(d).redISub(d),w=u.redMul(d.redISub(v)).redISub(i.redMul(p)),A=this.z.redMul(f);return this.curve.jpoint(v,w,A)};Mi.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r=0)return!1;if(n.redIAdd(i),this.x.cmp(n)===0)return!0}};Mi.prototype.inspect=function(){return this.isInfinity()?"":""};Mi.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var Fm=Pd(function(t,e){var r=e;r.base=ru,r.short=tF,r.mont=null,r.edwards=null}),Um=Pd(function(t,e){var r=e,n=Ts.assert;function s(f){f.type==="short"?this.curve=new Fm.short(f):f.type==="edwards"?this.curve=new Fm.edwards(f):this.curve=new Fm.mont(f),this.g=this.curve.g,this.n=this.curve.n,this.hash=f.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}r.PresetCurve=s;function i(f,u){Object.defineProperty(r,f,{configurable:!0,enumerable:!0,get:function(){var h=new s(u);return Object.defineProperty(r,f,{configurable:!0,enumerable:!0,value:h}),h}})}i("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:fs.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),i("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:fs.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),i("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:fs.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),i("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:fs.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),i("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:fs.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),i("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:fs.sha256,gRed:!1,g:["9"]}),i("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:fs.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var o;try{o=null.crash()}catch{o=void 0}i("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:fs.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",o]})});function Nl(t){if(!(this instanceof Nl))return new Nl(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Ha.toArray(t.entropy,t.entropyEnc||"hex"),r=Ha.toArray(t.nonce,t.nonceEnc||"hex"),n=Ha.toArray(t.pers,t.persEnc||"hex");a3(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var bM=Nl;Nl.prototype._init=function(e,r,n){var s=e.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1};Nl.prototype.generate=function(e,r,n,s){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(s=n,n=r,r=null),n&&(n=Ha.toArray(n,s||"hex"),this._update(n));for(var i=[];i.length"};var rF=Ts.assert;function Vv(t,e){if(t instanceof Vv)return t;this._importDER(t,e)||(rF(t.r&&t.s,"Signature without r or s"),this.r=new qt(t.r,16),this.s=new qt(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var Wv=Vv;function nF(){this.place=0}function _b(t,e){var r=t[e.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4)return!1;for(var s=0,i=0,o=e.place;i>>=0;return s<=127?!1:(e.place=o,s)}function d5(t){for(var e=0,r=t.length-1;!t[e]&&!(t[e+1]&128)&&e>>3);for(t.push(r|128);--r;)t.push(e>>>(r<<3)&255);t.push(e)}Vv.prototype.toDER=function(e){var r=this.r.toArray(),n=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),n[0]&128&&(n=[0].concat(n)),r=d5(r),n=d5(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var s=[2];Rb(s,r.length),s=s.concat(r),s.push(2),Rb(s,n.length);var i=s.concat(n),o=[48];return Rb(o,i.length),o=o.concat(i),Ts.encode(o,e)};var iF=function(){throw new Error("unsupported")},wM=Ts.assert;function ra(t){if(!(this instanceof ra))return new ra(t);typeof t=="string"&&(wM(Object.prototype.hasOwnProperty.call(Um,t),"Unknown curve "+t),t=Um[t]),t instanceof Um.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var sF=ra;ra.prototype.keyPair=function(e){return new f3(this,e)};ra.prototype.keyFromPrivate=function(e,r){return f3.fromPrivate(this,e,r)};ra.prototype.keyFromPublic=function(e,r){return f3.fromPublic(this,e,r)};ra.prototype.genKeyPair=function(e){e||(e={});for(var r=new bM({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||iF(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),s=this.n.sub(new qt(2));;){var i=new qt(r.generate(n));if(!(i.cmp(s)>0))return i.iaddn(1),this.keyFromPrivate(i)}};ra.prototype._truncateToN=function(e,r){var n=e.byteLength()*8-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!r&&e.cmp(this.n)>=0?e.sub(this.n):e};ra.prototype.sign=function(e,r,n,s){typeof n=="object"&&(s=n,n=null),s||(s={}),r=this.keyFromPrivate(r,n),e=this._truncateToN(new qt(e,16));for(var i=this.n.byteLength(),o=r.getPrivate().toArray("be",i),f=e.toArray("be",i),u=new bM({hash:this.hash,entropy:o,nonce:f,pers:s.pers,persEnc:s.persEnc||"utf8"}),h=this.n.sub(new qt(1)),p=0;;p++){var d=s.k?s.k(p):new qt(u.generate(this.n.byteLength()));if(d=this._truncateToN(d,!0),!(d.cmpn(1)<=0||d.cmp(h)>=0)){var v=this.g.mul(d);if(!v.isInfinity()){var w=v.getX(),A=w.umod(this.n);if(A.cmpn(0)!==0){var M=d.invm(this.n).mul(A.mul(r.getPrivate()).iadd(e));if(M=M.umod(this.n),M.cmpn(0)!==0){var R=(v.getY().isOdd()?1:0)|(w.cmp(A)!==0?2:0);return s.canonical&&M.cmp(this.nh)>0&&(M=this.n.sub(M),R^=1),new Wv({r:A,s:M,recoveryParam:R})}}}}}};ra.prototype.verify=function(e,r,n,s){e=this._truncateToN(new qt(e,16)),n=this.keyFromPublic(n,s),r=new Wv(r,"hex");var i=r.r,o=r.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var f=o.invm(this.n),u=f.mul(e).umod(this.n),h=f.mul(i).umod(this.n),p;return this.curve._maxwellTrick?(p=this.g.jmulAdd(u,n.getPublic(),h),p.isInfinity()?!1:p.eqXToP(i)):(p=this.g.mulAdd(u,n.getPublic(),h),p.isInfinity()?!1:p.getX().umod(this.n).cmp(i)===0)};ra.prototype.recoverPubKey=function(t,e,r,n){wM((3&r)===r,"The recovery param is more than two bits"),e=new Wv(e,n);var s=this.n,i=new qt(t),o=e.r,f=e.s,u=r&1,h=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");h?o=this.curve.pointFromX(o.add(this.curve.n),u):o=this.curve.pointFromX(o,u);var p=e.r.invm(s),d=s.sub(i).mul(p).umod(s),v=f.mul(p).umod(s);return this.g.mulAdd(d,o,v)};ra.prototype.getKeyRecoveryParam=function(t,e,r,n){if(e=new Wv(e,n),e.recoveryParam!==null)return e.recoveryParam;for(var s=0;s<4;s++){var i;try{i=this.recoverPubKey(t,e,s)}catch{continue}if(i.eq(r))return s}throw new Error("Unable to find valid recovery factor")};var aF=Pd(function(t,e){var r=e;r.version="6.5.4",r.utils=Ts,r.rand=function(){throw new Error("unsupported")},r.curve=Fm,r.curves=Um,r.ec=sF,r.eddsa=null}),oF=aF.ec;const fF="signing-key/5.7.0",Nw=new at(fF);let Nb=null;function yo(){return Nb||(Nb=new oF("secp256k1")),Nb}let lF=class{constructor(e){Nr(this,"curve","secp256k1"),Nr(this,"privateKey",Qt(e)),Id(this.privateKey)!==32&&Nw.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const r=yo().keyFromPrivate(nr(this.privateKey));Nr(this,"publicKey","0x"+r.getPublic(!1,"hex")),Nr(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),Nr(this,"_isSigningKey",!0)}_addPoint(e){const r=yo().keyFromPublic(nr(this.publicKey)),n=yo().keyFromPublic(nr(e));return"0x"+r.pub.add(n.pub).encodeCompressed("hex")}signDigest(e){const r=yo().keyFromPrivate(nr(this.privateKey)),n=nr(e);n.length!==32&&Nw.throwArgumentError("bad digest length","digest",e);const s=r.sign(n,{canonical:!0});return jv({recoveryParam:s.recoveryParam,r:Jn("0x"+s.r.toString(16),32),s:Jn("0x"+s.s.toString(16),32)})}computeSharedSecret(e){const r=yo().keyFromPrivate(nr(this.privateKey)),n=yo().keyFromPublic(nr(AM(e)));return Jn("0x"+r.derive(n.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}};function cF(t,e){const r=jv(e),n={r:nr(r.r),s:nr(r.s)};return"0x"+yo().recoverPubKey(nr(t),n,r.recoveryParam).encode("hex",!1)}function AM(t,e){const r=nr(t);if(r.length===32){const n=new lF(r);return e?"0x"+yo().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}else{if(r.length===33)return e?Qt(r):"0x"+yo().keyFromPublic(r).getPublic(!1,"hex");if(r.length===65)return e?"0x"+yo().keyFromPublic(r).getPublic(!0,"hex"):Qt(r)}return Nw.throwArgumentError("invalid public or private key","key","[REDACTED]")}const uF="transactions/5.7.0",Of=new at(uF);var p5;(function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"})(p5||(p5={}));function l3(t){return t==="0x"?null:qa(t)}function Ii(t){return t==="0x"?VL:Mt.from(t)}function hF(t){const e=AM(t);return qa(El(Ai(El(e,1)),12))}function xM(t,e){return hF(cF(nr(t),e))}function Ms(t,e){const r=dd(Mt.from(t).toHexString());return r.length>32&&Of.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function Cb(t,e){return{address:qa(t),storageKeys:(e||[]).map((r,n)=>(Id(r)!==32&&Of.throwArgumentError("invalid access list storageKey",`accessList[${t}:${n}]`,r),r.toLowerCase()))}}function c1(t){if(Array.isArray(t))return t.map((r,n)=>Array.isArray(r)?(r.length>2&&Of.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${n}]`,r),Cb(r[0],r[1])):Cb(r.address,r.storageKeys));const e=Object.keys(t).map(r=>{const n=t[r].reduce((s,i)=>(s[i]=!0,s),{});return Cb(r,Object.keys(n).sort())});return e.sort((r,n)=>r.address.localeCompare(n.address)),e}function EM(t){return c1(t).map(e=>[e.address,e.storageKeys])}function dF(t,e){if(t.gasPrice!=null){const n=Mt.from(t.gasPrice),s=Mt.from(t.maxFeePerGas||0);n.eq(s)||Of.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:s})}const r=[Ms(t.chainId||0,"chainId"),Ms(t.nonce||0,"nonce"),Ms(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Ms(t.maxFeePerGas||0,"maxFeePerGas"),Ms(t.gasLimit||0,"gasLimit"),t.to!=null?qa(t.to):"0x",Ms(t.value||0,"value"),t.data||"0x",EM(t.accessList||[])];if(e){const n=jv(e);r.push(Ms(n.recoveryParam,"recoveryParam")),r.push(dd(n.r)),r.push(dd(n.s))}return So(["0x02",Kv(r)])}function pF(t,e){const r=[Ms(t.chainId||0,"chainId"),Ms(t.nonce||0,"nonce"),Ms(t.gasPrice||0,"gasPrice"),Ms(t.gasLimit||0,"gasLimit"),t.to!=null?qa(t.to):"0x",Ms(t.value||0,"value"),t.data||"0x",EM(t.accessList||[])];if(e){const n=jv(e);r.push(Ms(n.recoveryParam,"recoveryParam")),r.push(dd(n.r)),r.push(dd(n.s))}return So(["0x01",Kv(r)])}function MM(t,e,r){try{const n=Ii(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");t.v=n}catch{Of.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=Jn(e[1],32),t.s=Jn(e[2],32);try{const n=Ai(r(t));t.from=xM(n,{r:t.r,s:t.s,recoveryParam:t.v})}catch{}}function mF(t){const e=i3(t.slice(1));e.length!==9&&e.length!==12&&Of.throwArgumentError("invalid component count for transaction type: 2","payload",Qt(t));const r=Ii(e[2]),n=Ii(e[3]),s={type:2,chainId:Ii(e[0]).toNumber(),nonce:Ii(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:Ii(e[4]),to:l3(e[5]),value:Ii(e[6]),data:e[7],accessList:c1(e[8])};return e.length===9||(s.hash=Ai(t),MM(s,e.slice(9),dF)),s}function gF(t){const e=i3(t.slice(1));e.length!==8&&e.length!==11&&Of.throwArgumentError("invalid component count for transaction type: 1","payload",Qt(t));const r={type:1,chainId:Ii(e[0]).toNumber(),nonce:Ii(e[1]).toNumber(),gasPrice:Ii(e[2]),gasLimit:Ii(e[3]),to:l3(e[4]),value:Ii(e[5]),data:e[6],accessList:c1(e[7])};return e.length===8||(r.hash=Ai(t),MM(r,e.slice(8),pF)),r}function vF(t){const e=i3(t);e.length!==9&&e.length!==6&&Of.throwArgumentError("invalid raw transaction","rawTransaction",t);const r={nonce:Ii(e[0]).toNumber(),gasPrice:Ii(e[1]),gasLimit:Ii(e[2]),to:l3(e[3]),value:Ii(e[4]),data:e[5],chainId:0};if(e.length===6)return r;try{r.v=Mt.from(e[6]).toNumber()}catch{return r}if(r.r=Jn(e[7],32),r.s=Jn(e[8],32),Mt.from(r.r).isZero()&&Mt.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let n=r.v-27;const s=e.slice(0,6);r.chainId!==0&&(s.push(Qt(r.chainId)),s.push("0x"),s.push("0x"),n-=r.chainId*2+8);const i=Ai(Kv(s));try{r.from=xM(i,{r:Qt(r.r),s:Qt(r.s),recoveryParam:n})}catch{}r.hash=Ai(t)}return r.type=null,r}function yF(t){const e=nr(t);if(e[0]>127)return vF(e);switch(e[0]){case 1:return gF(e);case 2:return mF(e)}return Of.throwError(`unsupported transaction type: ${e[0]}`,at.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}const Au=new at(Gv);class pt{constructor(){Au.checkNew(new.target,pt),this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},r=this.address.bind(this),n=this.bigNumber.bind(this),s=this.blockTag.bind(this),i=this.data.bind(this),o=this.hash.bind(this),f=this.hex.bind(this),u=this.number.bind(this),h=this.type.bind(this),p=d=>this.data(d,!0);return e.transaction={hash:o,type:h,accessList:pt.allowNull(this.accessList.bind(this),null),blockHash:pt.allowNull(o,null),blockNumber:pt.allowNull(u,null),transactionIndex:pt.allowNull(u,null),confirmations:pt.allowNull(u,null),from:r,gasPrice:pt.allowNull(n),maxPriorityFeePerGas:pt.allowNull(n),maxFeePerGas:pt.allowNull(n),gasLimit:n,to:pt.allowNull(r,null),value:n,nonce:u,data:i,r:pt.allowNull(this.uint256),s:pt.allowNull(this.uint256),v:pt.allowNull(u),creates:pt.allowNull(r,null),raw:pt.allowNull(i)},e.transactionRequest={from:pt.allowNull(r),nonce:pt.allowNull(u),gasLimit:pt.allowNull(n),gasPrice:pt.allowNull(n),maxPriorityFeePerGas:pt.allowNull(n),maxFeePerGas:pt.allowNull(n),to:pt.allowNull(r),value:pt.allowNull(n),data:pt.allowNull(p),type:pt.allowNull(u),accessList:pt.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:u,blockNumber:u,transactionHash:o,address:r,topics:pt.arrayOf(o),data:i,logIndex:u,blockHash:o},e.receipt={to:pt.allowNull(this.address,null),from:pt.allowNull(this.address,null),contractAddress:pt.allowNull(r,null),transactionIndex:u,root:pt.allowNull(f),gasUsed:n,logsBloom:pt.allowNull(i),blockHash:o,transactionHash:o,logs:pt.arrayOf(this.receiptLog.bind(this)),blockNumber:u,confirmations:pt.allowNull(u,null),cumulativeGasUsed:n,effectiveGasPrice:pt.allowNull(n),status:pt.allowNull(u),type:h},e.block={hash:o,parentHash:o,number:u,timestamp:u,nonce:pt.allowNull(f),difficulty:this.difficulty.bind(this),gasLimit:n,gasUsed:n,miner:r,extraData:i,transactions:pt.allowNull(pt.arrayOf(o)),baseFeePerGas:pt.allowNull(n)},e.blockWithTransactions=ds(e.block),e.blockWithTransactions.transactions=pt.allowNull(pt.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:pt.allowNull(s,void 0),toBlock:pt.allowNull(s,void 0),blockHash:pt.allowNull(o,void 0),address:pt.allowNull(r,void 0),topics:pt.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:pt.allowNull(u),blockHash:pt.allowNull(o),transactionIndex:u,removed:pt.allowNull(this.boolean.bind(this)),address:r,data:pt.allowFalsish(i,"0x"),topics:pt.arrayOf(o),transactionHash:o,logIndex:u},e}accessList(e){return c1(e||[])}number(e){return e==="0x"?0:Mt.from(e).toNumber()}type(e){return e==="0x"||e==null?0:Mt.from(e).toNumber()}bigNumber(e){return Mt.from(e)}boolean(e){if(typeof e=="boolean")return e;if(typeof e=="string"){if(e=e.toLowerCase(),e==="true")return!0;if(e==="false")return!1}throw new Error("invalid boolean - "+e)}hex(e,r){return typeof e=="string"&&(!r&&e.substring(0,2)!=="0x"&&(e="0x"+e),sn(e))?e.toLowerCase():Au.throwArgumentError("invalid hash","value",e)}data(e,r){const n=this.hex(e,r);if(n.length%2!==0)throw new Error("invalid data; odd-length - "+e);return n}address(e){return qa(e)}callAddress(e){if(!sn(e,32))return null;const r=qa(El(e,12));return r===GL?null:r}contractAddress(e){return TD(e)}blockTag(e){if(e==null)return"latest";if(e==="earliest")return"0x0";if(e==="latest"||e==="pending")return e;if(typeof e=="number"||sn(e))return n3(e);throw new Error("invalid blockTag")}hash(e,r){const n=this.hex(e,r);return Id(n)!==32?Au.throwArgumentError("invalid hash","value",e):n}difficulty(e){if(e==null)return null;const r=Mt.from(e);try{return r.toNumber()}catch{}return null}uint256(e){if(!sn(e))throw new Error("invalid uint256");return Jn(e,32)}_block(e,r){e.author!=null&&e.miner==null&&(e.miner=e.author);const n=e._difficulty!=null?e._difficulty:e.difficulty,s=pt.check(r,e);return s._difficulty=n==null?null:Mt.from(n),s}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return pt.check(this.formats.transactionRequest,e)}transactionResponse(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&Mt.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),e.input!=null&&e.data==null&&(e.data=e.input),e.to==null&&e.creates==null&&(e.creates=this.contractAddress(e)),(e.type===1||e.type===2)&&e.accessList==null&&(e.accessList=[]);const r=pt.check(this.formats.transaction,e);if(e.chainId!=null){let n=e.chainId;sn(n)&&(n=Mt.from(n).toNumber()),r.chainId=n}else{let n=e.networkId;n==null&&r.v==null&&(n=e.chainId),sn(n)&&(n=Mt.from(n).toNumber()),typeof n!="number"&&r.v!=null&&(n=(r.v-35)/2,n<0&&(n=0),n=parseInt(n)),typeof n!="number"&&(n=0),r.chainId=n}return r.blockHash&&r.blockHash.replace(/0/g,"")==="x"&&(r.blockHash=null),r}transaction(e){return yF(e)}receiptLog(e){return pt.check(this.formats.receiptLog,e)}receipt(e){const r=pt.check(this.formats.receipt,e);if(r.root!=null)if(r.root.length<=4){const n=Mt.from(r.root).toNumber();n===0||n===1?(r.status!=null&&r.status!==n&&Au.throwArgumentError("alt-root-status/status mismatch","value",{root:r.root,status:r.status}),r.status=n,delete r.root):Au.throwArgumentError("invalid alt-root-status","value.root",r.root)}else r.root.length!==66&&Au.throwArgumentError("invalid root hash","value.root",r.root);return r.status!=null&&(r.byzantium=!0),r}topics(e){return Array.isArray(e)?e.map(r=>this.topics(r)):e!=null?this.hash(e,!0):null}filter(e){return pt.check(this.formats.filter,e)}filterLog(e){return pt.check(this.formats.filterLog,e)}static check(e,r){const n={};for(const s in e)try{const i=e[s](r[s]);i!==void 0&&(n[s]=i)}catch(i){throw i.checkKey=s,i.checkValue=r[s],i}return n}static allowNull(e,r){return function(n){return n==null?r:e(n)}}static allowFalsish(e,r){return function(n){return n?e(n):r}}static arrayOf(e){return function(r){if(!Array.isArray(r))throw new Error("not an array");const n=[];return r.forEach(function(s){n.push(e(s))}),n}}}var Yt=globalThis&&globalThis.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function f(p){try{h(n.next(p))}catch(d){o(d)}}function u(p){try{h(n.throw(p))}catch(d){o(d)}}function h(p){p.done?i(p.value):s(p.value).then(f,u)}h((n=n.apply(t,e||[])).next())})};const Vr=new at(Gv);function m5(t){return t==null?"null":(Id(t)!==32&&Vr.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function g5(t){for(t=t.slice();t.length>0&&t[t.length-1]==null;)t.pop();return t.map(e=>{if(Array.isArray(e)){const r={};e.forEach(s=>{r[m5(s)]=!0});const n=Object.keys(r);return n.sort(),n.join("|")}else return m5(e)}).join("&")}function bF(t){return t===""?[]:t.split(/&/g).map(e=>{if(e==="")return[];const r=e.split("|").map(n=>n==="null"?null:n);return r.length===1?r[0]:r})}function xu(t){if(typeof t=="string"){if(t=t.toLowerCase(),Id(t)===32)return"tx:"+t;if(t.indexOf(":")===-1)return t}else{if(Array.isArray(t))return"filter:*:"+g5(t);if(jL.isForkEvent(t))throw Vr.warn("not implemented"),new Error("not implemented");if(t&&typeof t=="object")return"filter:"+(t.address||"*")+":"+g5(t.topics||[])}throw new Error("invalid event - "+t)}function c0(){return new Date().getTime()}function v5(t){return new Promise(e=>{setTimeout(e,t)})}const wF=["block","network","pending","poll"];class AF{constructor(e,r,n){Nr(this,"tag",e),Nr(this,"listener",r),Nr(this,"once",n)}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return e[0]!=="tx"?null:e[1]}get filter(){const e=this.tag.split(":");if(e[0]!=="filter")return null;const r=e[1],n=bF(e[2]),s={};return n.length>0&&(s.topics=n),r&&r!=="*"&&(s.address=r),s}pollable(){return this.tag.indexOf(":")>=0||wF.indexOf(this.tag)>=0}}const xF={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function Tb(t){return Jn(Mt.from(t).toHexString(),32)}function y5(t){return J7.encode(Ku([t,El(c5(c5(t)),0,4)]))}const SM=new RegExp("^(ipfs)://(.*)$","i"),b5=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),SM,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function EF(t){try{return l1(_M(t))}catch{}return null}function _M(t){if(t==="0x")return null;const e=Mt.from(El(t,0,32)).toNumber(),r=Mt.from(El(t,e,e+32)).toNumber();return El(t,e+32,e+32+r)}function w5(t){return`https://gateway.ipfs.io/ipfs/${t.substring(7)}`}class A5{constructor(e,r,n,s){Nr(this,"provider",e),Nr(this,"name",n),Nr(this,"address",e.formatter.address(r)),Nr(this,"_resolvedAddress",s)}_fetchBytes(e,r){return Yt(this,void 0,void 0,function*(){const n={to:this.address,data:So([e,Cg(this.name),r||"0x"])};try{return _M(yield this.provider.call(n))}catch(s){return s.code===at.errors.CALL_EXCEPTION,null}})}_getAddress(e,r){const n=xF[String(e)];if(n==null&&Vr.throwError(`unsupported coin type: ${e}`,at.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),n.ilk==="eth")return this.provider.formatter.address(r);const s=nr(r);if(n.p2pkh!=null){const i=r.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(i){const o=parseInt(i[1],16);if(i[2].length===o*2&&o>=1&&o<=75)return y5(Ku([[n.p2pkh],"0x"+i[2]]))}}if(n.p2sh!=null){const i=r.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(i){const o=parseInt(i[1],16);if(i[2].length===o*2&&o>=1&&o<=75)return y5(Ku([[n.p2sh],"0x"+i[2]]))}}if(n.prefix!=null){const i=s[1];let o=s[0];if(o===0?i!==20&&i!==32&&(o=-1):o=-1,o>=0&&s.length===2+i&&i>=1&&i<=75){const f=h5.toWords(s.slice(2));return f.unshift(o),h5.encode(n.prefix,f)}}return null}getAddress(e){return Yt(this,void 0,void 0,function*(){if(e==null&&(e=60),e===60)try{const s={to:this.address,data:"0x3b3b57de"+Cg(this.name).substring(2)},i=yield this.provider.call(s);return i==="0x"||i===WL?null:this.provider.formatter.callAddress(i)}catch(s){if(s.code===at.errors.CALL_EXCEPTION)return null;throw s}const r=yield this._fetchBytes("0xf1cb7e06",Tb(e));if(r==null||r==="0x")return null;const n=this._getAddress(e,r);return n==null&&Vr.throwError("invalid or unsupported coin data",at.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:r}),n})}getAvatar(){return Yt(this,void 0,void 0,function*(){const e=[{type:"name",content:this.name}];try{const r=yield this.getText("avatar");if(r==null)return null;for(let n=0;n{}),this._ready().catch(r=>{});else{const r=C0(new.target,"getNetwork")(e);r?(Nr(this,"_network",r),this.emit("network",r,null)):Vr.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return Yt(this,void 0,void 0,function*(){if(this._network==null){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch{}e==null&&(e=yield this.detectNetwork()),e||Vr.throwError("no network detected",at.errors.UNKNOWN_ERROR,{}),this._network==null&&(this.anyNetwork?this._network=e:Nr(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return T0(()=>this._ready().then(e=>e,e=>{if(!(e.code===at.errors.NETWORK_ERROR&&e.event==="noNetwork"))throw e}))}static getFormatter(){return kb==null&&(kb=new pt),kb}static getNetwork(e){return qL(e??"homestead")}_getInternalBlockNumber(e){return Yt(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const s=this._internalBlockNumber;try{const i=yield s;if(c0()-i.respTime<=e)return i.blockNumber;break}catch{if(this._internalBlockNumber===s)break}}const r=c0(),n=vi({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(s=>null,s=>s)}).then(({blockNumber:s,networkError:i})=>{if(i)throw this._internalBlockNumber===n&&(this._internalBlockNumber=null),i;const o=c0();return s=Mt.from(s).toNumber(),s{this._internalBlockNumber===n&&(this._internalBlockNumber=null)}),(yield n).blockNumber})}poll(){return Yt(this,void 0,void 0,function*(){const e=MF++,r=[];let n=null;try{n=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(s){this.emit("error",s);return}if(this._setFastBlockNumber(n),this.emit("poll",e,n),n===this._lastBlockNumber){this.emit("didPoll",e);return}if(this._emitted.block===-2&&(this._emitted.block=n-1),Math.abs(this._emitted.block-n)>1e3)Vr.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${n})`),this.emit("error",Vr.makeError("network block skew detected",at.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n);else for(let s=this._emitted.block+1;s<=n;s++)this.emit("block",s);this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach(s=>{if(s==="block")return;const i=this._emitted[s];i!=="pending"&&n-i>12&&delete this._emitted[s]})),this._lastBlockNumber===-2&&(this._lastBlockNumber=n-1),this._events.forEach(s=>{switch(s.type){case"tx":{const i=s.hash;let o=this.getTransactionReceipt(i).then(f=>(!f||f.blockNumber==null||(this._emitted["t:"+i]=f.blockNumber,this.emit(i,f)),null)).catch(f=>{this.emit("error",f)});r.push(o);break}case"filter":{const i=s.filter;i.fromBlock=this._lastBlockNumber+1,i.toBlock=n;const o=this.getLogs(i).then(f=>{f.length!==0&&f.forEach(u=>{this._emitted["b:"+u.blockHash]=u.blockNumber,this._emitted["t:"+u.transactionHash]=u.blockNumber,this.emit(i,u)})}).catch(f=>{this.emit("error",f)});r.push(o);break}}}),this._lastBlockNumber=n,Promise.all(r).then(()=>{this.emit("didPoll",e)}).catch(s=>{this.emit("error",s)})})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return Yt(this,void 0,void 0,function*(){return Vr.throwError("provider does not support network detection",at.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return Yt(this,void 0,void 0,function*(){const e=yield this._ready(),r=yield this.detectNetwork();if(e.chainId!==r.chainId){if(this.anyNetwork)return this._network=r,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",r,e),yield v5(0),this._network;const n=Vr.makeError("underlying network changed",at.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:r});throw this.emit("error",n),n}return e})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(e=>{this._setFastBlockNumber(e)},e=>{}),this._fastBlockNumber!=null?this._fastBlockNumber:-1}get polling(){return this._poller!=null}set polling(e){e&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if(typeof e!="number"||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){const e=c0();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(r=>((this._fastBlockNumber==null||r>this._fastBlockNumber)&&(this._fastBlockNumber=r),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){this._fastBlockNumber!=null&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,r,n){return Yt(this,void 0,void 0,function*(){return this._waitForTransaction(e,r??1,n||0,null)})}_waitForTransaction(e,r,n,s){return Yt(this,void 0,void 0,function*(){const i=yield this.getTransactionReceipt(e);return(i?i.confirmations:0)>=r?i:new Promise((o,f)=>{const u=[];let h=!1;const p=function(){return h?!0:(h=!0,u.forEach(v=>{v()}),!1)},d=v=>{v.confirmations{this.removeListener(e,d)}),s){let v=s.startBlock,w=null;const A=M=>Yt(this,void 0,void 0,function*(){h||(yield v5(1e3),this.getTransactionCount(s.from).then(R=>Yt(this,void 0,void 0,function*(){if(!h){if(R<=s.nonce)v=M;else{{const N=yield this.getTransaction(e);if(N&&N.blockNumber!=null)return}for(w==null&&(w=v-3,w{h||this.once("block",A)}))});if(h)return;this.once("block",A),u.push(()=>{this.removeListener("block",A)})}if(typeof n=="number"&&n>0){const v=setTimeout(()=>{p()||f(Vr.makeError("timeout exceeded",at.errors.TIMEOUT,{timeout:n}))},n);v.unref&&v.unref(),u.push(()=>{clearTimeout(v)})}})})}getBlockNumber(){return Yt(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return Yt(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return Mt.from(e)}catch(r){return Vr.throwError("bad result from backend",at.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:r})}})}getBalance(e,r){return Yt(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield vi({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),s=yield this.perform("getBalance",n);try{return Mt.from(s)}catch(i){return Vr.throwError("bad result from backend",at.errors.SERVER_ERROR,{method:"getBalance",params:n,result:s,error:i})}})}getTransactionCount(e,r){return Yt(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield vi({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),s=yield this.perform("getTransactionCount",n);try{return Mt.from(s).toNumber()}catch(i){return Vr.throwError("bad result from backend",at.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:s,error:i})}})}getCode(e,r){return Yt(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield vi({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),s=yield this.perform("getCode",n);try{return Qt(s)}catch(i){return Vr.throwError("bad result from backend",at.errors.SERVER_ERROR,{method:"getCode",params:n,result:s,error:i})}})}getStorageAt(e,r,n){return Yt(this,void 0,void 0,function*(){yield this.getNetwork();const s=yield vi({address:this._getAddress(e),blockTag:this._getBlockTag(n),position:Promise.resolve(r).then(o=>n3(o))}),i=yield this.perform("getStorageAt",s);try{return Qt(i)}catch(o){return Vr.throwError("bad result from backend",at.errors.SERVER_ERROR,{method:"getStorageAt",params:s,result:i,error:o})}})}_wrapTransaction(e,r,n){if(r!=null&&Id(r)!==32)throw new Error("invalid response - sendTransaction");const s=e;return r!=null&&e.hash!==r&&Vr.throwError("Transaction hash mismatch from Provider.sendTransaction.",at.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:r}),s.wait=(i,o)=>Yt(this,void 0,void 0,function*(){i==null&&(i=1),o==null&&(o=0);let f;i!==0&&n!=null&&(f={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:n});const u=yield this._waitForTransaction(e.hash,i,o,f);return u==null&&i===0?null:(this._emitted["t:"+e.hash]=u.blockNumber,u.status===0&&Vr.throwError("transaction failed",at.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:u}),u)}),s}sendTransaction(e){return Yt(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Promise.resolve(e).then(i=>Qt(i)),n=this.formatter.transaction(e);n.confirmations==null&&(n.confirmations=0);const s=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const i=yield this.perform("sendTransaction",{signedTransaction:r});return this._wrapTransaction(n,i,s)}catch(i){throw i.transaction=n,i.transactionHash=n.hash,i}})}_getTransactionRequest(e){return Yt(this,void 0,void 0,function*(){const r=yield e,n={};return["from","to"].forEach(s=>{r[s]!=null&&(n[s]=Promise.resolve(r[s]).then(i=>i?this._getAddress(i):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(s=>{r[s]!=null&&(n[s]=Promise.resolve(r[s]).then(i=>i?Mt.from(i):null))}),["type"].forEach(s=>{r[s]!=null&&(n[s]=Promise.resolve(r[s]).then(i=>i??null))}),r.accessList&&(n.accessList=this.formatter.accessList(r.accessList)),["data"].forEach(s=>{r[s]!=null&&(n[s]=Promise.resolve(r[s]).then(i=>i?Qt(i):null))}),this.formatter.transactionRequest(yield vi(n))})}_getFilter(e){return Yt(this,void 0,void 0,function*(){e=yield e;const r={};return e.address!=null&&(r.address=this._getAddress(e.address)),["blockHash","topics"].forEach(n=>{e[n]!=null&&(r[n]=e[n])}),["fromBlock","toBlock"].forEach(n=>{e[n]!=null&&(r[n]=this._getBlockTag(e[n]))}),this.formatter.filter(yield vi(r))})}call(e,r){return Yt(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield vi({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(r)}),s=yield this.perform("call",n);try{return Qt(s)}catch(i){return Vr.throwError("bad result from backend",at.errors.SERVER_ERROR,{method:"call",params:n,result:s,error:i})}})}estimateGas(e){return Yt(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield vi({transaction:this._getTransactionRequest(e)}),n=yield this.perform("estimateGas",r);try{return Mt.from(n)}catch(s){return Vr.throwError("bad result from backend",at.errors.SERVER_ERROR,{method:"estimateGas",params:r,result:n,error:s})}})}_getAddress(e){return Yt(this,void 0,void 0,function*(){e=yield e,typeof e!="string"&&Vr.throwArgumentError("invalid address or ENS name","name",e);const r=yield this.resolveName(e);return r==null&&Vr.throwError("ENS name not configured",at.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(e)})`}),r})}_getBlock(e,r){return Yt(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let n=-128;const s={includeTransactions:!!r};if(sn(e,32))s.blockHash=e;else try{s.blockTag=yield this._getBlockTag(e),sn(s.blockTag)&&(n=parseInt(s.blockTag.substring(2),16))}catch{Vr.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",e)}return T0(()=>Yt(this,void 0,void 0,function*(){const i=yield this.perform("getBlock",s);if(i==null)return s.blockHash!=null&&this._emitted["b:"+s.blockHash]==null||s.blockTag!=null&&n>this._emitted.block?null:void 0;if(r){let o=null;for(let u=0;uthis._wrapTransaction(u)),f}return this.formatter.block(i)}),{oncePoll:this})})}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return Yt(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return T0(()=>Yt(this,void 0,void 0,function*(){const n=yield this.perform("getTransaction",r);if(n==null)return this._emitted["t:"+e]==null?null:void 0;const s=this.formatter.transactionResponse(n);if(s.blockNumber==null)s.confirmations=0;else if(s.confirmations==null){let o=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-s.blockNumber+1;o<=0&&(o=1),s.confirmations=o}return this._wrapTransaction(s)}),{oncePoll:this})})}getTransactionReceipt(e){return Yt(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return T0(()=>Yt(this,void 0,void 0,function*(){const n=yield this.perform("getTransactionReceipt",r);if(n==null)return this._emitted["t:"+e]==null?null:void 0;if(n.blockHash==null)return;const s=this.formatter.receipt(n);if(s.blockNumber==null)s.confirmations=0;else if(s.confirmations==null){let o=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-s.blockNumber+1;o<=0&&(o=1),s.confirmations=o}return s}),{oncePoll:this})})}getLogs(e){return Yt(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield vi({filter:this._getFilter(e)}),n=yield this.perform("getLogs",r);return n.forEach(s=>{s.removed==null&&(s.removed=!1)}),pt.arrayOf(this.formatter.filterLog.bind(this.formatter))(n)})}getEtherPrice(){return Yt(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return Yt(this,void 0,void 0,function*(){if(e=yield e,typeof e=="number"&&e<0){e%1&&Vr.throwArgumentError("invalid BlockTag","blockTag",e);let r=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return r+=e,r<0&&(r=0),this.formatter.blockTag(r)}return this.formatter.blockTag(e)})}getResolver(e){return Yt(this,void 0,void 0,function*(){try{const r=yield this._getResolver(e);return r==null?null:new A5(this,r,e)}catch(r){if(r.code===at.errors.CALL_EXCEPTION)return null;throw r}})}_getResolver(e){return Yt(this,void 0,void 0,function*(){const r=yield this.getNetwork();r.ensAddress||Vr.throwError("network does not support ENS",at.errors.UNSUPPORTED_OPERATION,{operation:"ENS",network:r.name});const n={to:r.ensAddress,data:"0x0178b8bf"+Cg(e).substring(2)};try{return this.formatter.callAddress(yield this.call(n))}catch(s){if(s.code===at.errors.CALL_EXCEPTION)return null;throw s}})}resolveName(e){return Yt(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(n){if(sn(e))throw n}typeof e!="string"&&Vr.throwArgumentError("invalid ENS name","name",e);const r=yield this.getResolver(e);return r?yield r.getAddress():null})}lookupAddress(e){return Yt(this,void 0,void 0,function*(){e=yield e,e=this.formatter.address(e);const r=e.substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(r);if(!n)return null;let s=nr(yield this.call({to:n,data:"0x691f3431"+Cg(r).substring(2)}));if(s.length<32||!Mt.from(s.slice(0,32)).eq(32)||(s=s.slice(32),s.length<32))return null;const i=Mt.from(s.slice(0,32)).toNumber();if(s=s.slice(32),i>s.length)return null;const o=l1(s.slice(0,i));return(yield this.resolveName(o))!=e?null:o})}getAvatar(e){return Yt(this,void 0,void 0,function*(){let r=null;if(sn(e)){const s=this.formatter.address(e),i=s.substring(2).toLowerCase()+".addr.reverse",o=yield this._getResolver(i);if(!o)return null;r=new A5(this,o,"_",s)}else if(r=yield this.getResolver(e),!r)return null;const n=yield r.getAvatar();return n==null?null:n.url})}perform(e,r){return Vr.throwError(e+" not implemented",at.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter(r=>r.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(r=>r.pollable()).length>0}_addEventListener(e,r,n){const s=new AF(xu(e),r,n);return this._events.push(s),this._startEvent(s),this}on(e,r){return this._addEventListener(e,r,!1)}once(e,r){return this._addEventListener(e,r,!0)}emit(e,...r){let n=!1,s=[],i=xu(e);return this._events=this._events.filter(o=>o.tag!==i?!0:(setTimeout(()=>{o.listener.apply(this,r)},0),n=!0,o.once?(s.push(o),!1):!0)),s.forEach(o=>{this._stopEvent(o)}),n}listenerCount(e){if(!e)return this._events.length;let r=xu(e);return this._events.filter(n=>n.tag===r).length}listeners(e){if(e==null)return this._events.map(n=>n.listener);let r=xu(e);return this._events.filter(n=>n.tag===r).map(n=>n.listener)}off(e,r){if(r==null)return this.removeAllListeners(e);const n=[];let s=!1,i=xu(e);return this._events=this._events.filter(o=>o.tag!==i||o.listener!=r||s?!0:(s=!0,n.push(o),!1)),n.forEach(o=>{this._stopEvent(o)}),this}removeAllListeners(e){let r=[];if(e==null)r=this._events,this._events=[];else{const n=xu(e);this._events=this._events.filter(s=>s.tag!==n?!0:(r.push(s),!1))}return r.forEach(n=>{this._stopEvent(n)}),this}}const _F="abstract-signer/5.7.0";var Ma=globalThis&&globalThis.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function f(p){try{h(n.next(p))}catch(d){o(d)}}function u(p){try{h(n.throw(p))}catch(d){o(d)}}function h(p){p.done?i(p.value):s(p.value).then(f,u)}h((n=n.apply(t,e||[])).next())})};const Sa=new at(_F),RF=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],NF=[at.errors.INSUFFICIENT_FUNDS,at.errors.NONCE_EXPIRED,at.errors.REPLACEMENT_UNDERPRICED];class c3{constructor(){Sa.checkAbstract(new.target,c3),Nr(this,"_isSigner",!0)}getBalance(e){return Ma(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return Ma(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return Ma(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const r=yield vi(this.checkTransaction(e));return yield this.provider.estimateGas(r)})}call(e,r){return Ma(this,void 0,void 0,function*(){this._checkProvider("call");const n=yield vi(this.checkTransaction(e));return yield this.provider.call(n,r)})}sendTransaction(e){return Ma(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const r=yield this.populateTransaction(e),n=yield this.signTransaction(r);return yield this.provider.sendTransaction(n)})}getChainId(){return Ma(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return Ma(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return Ma(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return Ma(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(const n in e)RF.indexOf(n)===-1&&Sa.throwArgumentError("invalid transaction key: "+n,"transaction",e);const r=ds(e);return r.from==null?r.from=this.getAddress():r.from=Promise.all([Promise.resolve(r.from),this.getAddress()]).then(n=>(n[0].toLowerCase()!==n[1].toLowerCase()&&Sa.throwArgumentError("from address mismatch","transaction",e),n[0])),r}populateTransaction(e){return Ma(this,void 0,void 0,function*(){const r=yield vi(this.checkTransaction(e));r.to!=null&&(r.to=Promise.resolve(r.to).then(s=>Ma(this,void 0,void 0,function*(){if(s==null)return null;const i=yield this.resolveName(s);return i==null&&Sa.throwArgumentError("provided ENS name resolves to null","tx.to",s),i})),r.to.catch(s=>{}));const n=r.maxFeePerGas!=null||r.maxPriorityFeePerGas!=null;if(r.gasPrice!=null&&(r.type===2||n)?Sa.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(r.type===0||r.type===1)&&n&&Sa.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(r.type===2||r.type==null)&&r.maxFeePerGas!=null&&r.maxPriorityFeePerGas!=null)r.type=2;else if(r.type===0||r.type===1)r.gasPrice==null&&(r.gasPrice=this.getGasPrice());else{const s=yield this.getFeeData();if(r.type==null)if(s.maxFeePerGas!=null&&s.maxPriorityFeePerGas!=null)if(r.type=2,r.gasPrice!=null){const i=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=i,r.maxPriorityFeePerGas=i}else r.maxFeePerGas==null&&(r.maxFeePerGas=s.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=s.maxPriorityFeePerGas);else s.gasPrice!=null?(n&&Sa.throwError("network does not support EIP-1559",at.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=s.gasPrice),r.type=0):Sa.throwError("failed to get consistent fee data",at.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else r.type===2&&(r.maxFeePerGas==null&&(r.maxFeePerGas=s.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=s.maxPriorityFeePerGas))}return r.nonce==null&&(r.nonce=this.getTransactionCount("pending")),r.gasLimit==null&&(r.gasLimit=this.estimateGas(r).catch(s=>{if(NF.indexOf(s.code)>=0)throw s;return Sa.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",at.errors.UNPREDICTABLE_GAS_LIMIT,{error:s,tx:r})})),r.chainId==null?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then(s=>(s[1]!==0&&s[0]!==s[1]&&Sa.throwArgumentError("chainId address mismatch","transaction",e),s[0])),yield vi(r)})}_checkProvider(e){this.provider||Sa.throwError("missing provider",at.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}var Yo=globalThis&&globalThis.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function f(p){try{h(n.next(p))}catch(d){o(d)}}function u(p){try{h(n.throw(p))}catch(d){o(d)}}function h(p){p.done?i(p.value):s(p.value).then(f,u)}h((n=n.apply(t,e||[])).next())})};const bi=new at(Gv),CF=["call","estimateGas"];function RM(t,e,r){if(t==="call"&&e.code===at.errors.SERVER_ERROR){const i=e.error;if(i&&i.message.match("reverted")&&sn(i.data))return i.data;bi.throwError("missing revert data in call exception",at.errors.CALL_EXCEPTION,{error:e,data:"0x"})}let n=e.message;e.code===at.errors.SERVER_ERROR&&e.error&&typeof e.error.message=="string"?n=e.error.message:typeof e.body=="string"?n=e.body:typeof e.responseText=="string"&&(n=e.responseText),n=(n||"").toLowerCase();const s=r.transaction||r.signedTransaction;throw n.match(/insufficient funds|base fee exceeds gas limit/)&&bi.throwError("insufficient funds for intrinsic transaction cost",at.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:s}),n.match(/nonce too low/)&&bi.throwError("nonce has already been used",at.errors.NONCE_EXPIRED,{error:e,method:t,transaction:s}),n.match(/replacement transaction underpriced/)&&bi.throwError("replacement fee too low",at.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:s}),n.match(/only replay-protected/)&&bi.throwError("legacy pre-eip-155 transactions not supported",at.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:s}),CF.indexOf(t)>=0&&n.match(/gas required exceeds allowance|always failing transaction|execution reverted/)&&bi.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",at.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:s}),e}function x5(t){return new Promise(function(e){setTimeout(e,t)})}function TF(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}function u0(t){return t&&t.toLowerCase()}const Cw={};let NM=class CM extends c3{constructor(e,r,n){if(bi.checkNew(new.target,CM),super(),e!==Cw)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");Nr(this,"provider",r),n==null&&(n=0),typeof n=="string"?(Nr(this,"_address",this.provider.formatter.address(n)),Nr(this,"_index",null)):typeof n=="number"?(Nr(this,"_index",n),Nr(this,"_address",null)):bi.throwArgumentError("invalid address or index","addressOrIndex",n)}connect(e){return bi.throwError("cannot alter JSON-RPC Signer connection",at.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new kF(Cw,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(e=>(e.length<=this._index&&bi.throwError("unknown account #"+this._index,at.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=ds(e);const r=this.getAddress().then(n=>(n&&(n=n.toLowerCase()),n));if(e.gasLimit==null){const n=ds(e);n.from=r,e.gasLimit=this.provider.estimateGas(n)}return e.to!=null&&(e.to=Promise.resolve(e.to).then(n=>Yo(this,void 0,void 0,function*(){if(n==null)return null;const s=yield this.provider.resolveName(n);return s==null&&bi.throwArgumentError("provided ENS name resolves to null","tx.to",n),s}))),vi({tx:vi(e),sender:r}).then(({tx:n,sender:s})=>{n.from!=null?n.from.toLowerCase()!==s&&bi.throwArgumentError("from address mismatch","transaction",e):n.from=s;const i=this.provider.constructor.hexlifyTransaction(n,{from:!0});return this.provider.send("eth_sendTransaction",[i]).then(o=>o,o=>RM("sendTransaction",o,i))})}signTransaction(e){return bi.throwError("signing transactions is unsupported",at.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return Yo(this,void 0,void 0,function*(){const r=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),n=yield this.sendUncheckedTransaction(e);try{return yield T0(()=>Yo(this,void 0,void 0,function*(){const s=yield this.provider.getTransaction(n);if(s!==null)return this.provider._wrapTransaction(s,n,r)}),{oncePoll:this.provider})}catch(s){throw s.transactionHash=n,s}})}signMessage(e){return Yo(this,void 0,void 0,function*(){const r=typeof e=="string"?Nf(e):e,n=yield this.getAddress();return yield this.provider.send("personal_sign",[Qt(r),n.toLowerCase()])})}_legacySignMessage(e){return Yo(this,void 0,void 0,function*(){const r=typeof e=="string"?Nf(e):e,n=yield this.getAddress();return yield this.provider.send("eth_sign",[n.toLowerCase(),Qt(r)])})}_signTypedData(e,r,n){return Yo(this,void 0,void 0,function*(){const s=yield l5.resolveNames(e,r,n,o=>this.provider.resolveName(o)),i=yield this.getAddress();return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(l5.getPayload(s.domain,r,s.value))])})}unlock(e){return Yo(this,void 0,void 0,function*(){const r=this.provider,n=yield this.getAddress();return r.send("personal_unlockAccount",[n.toLowerCase(),e,null])})}};class kF extends NM{sendTransaction(e){return this.sendUncheckedTransaction(e).then(r=>({hash:r,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:n=>this.provider.waitForTransaction(r,n)}))}}const BF={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class u3 extends SF{constructor(e,r){bi.checkNew(new.target,u3);let n=r;n==null&&(n=new Promise((s,i)=>{setTimeout(()=>{this.detectNetwork().then(o=>{s(o)},o=>{i(o)})},0)})),super(n),e||(e=C0(this.constructor,"defaultUrl")()),typeof e=="string"?Nr(this,"connection",Object.freeze({url:e})):Nr(this,"connection",Object.freeze(ds(e))),this._nextId=42}get _cache(){return this._eventLoopCache==null&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return Yo(this,void 0,void 0,function*(){yield x5(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch{try{e=yield this.send("net_version",[])}catch{}}if(e!=null){const r=C0(this.constructor,"getNetwork");try{return r(Mt.from(e).toNumber())}catch(n){return bi.throwError("could not detect network",at.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:n})}}return bi.throwError("could not detect network",at.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new NM(Cw,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(e=>e.map(r=>this.formatter.address(r)))}send(e,r){const n={method:e,params:r,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:hp(n),provider:this});const s=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(s&&this._cache[e])return this._cache[e];const i=mM(this.connection,JSON.stringify(n),TF).then(o=>(this.emit("debug",{action:"response",request:n,response:o,provider:this}),o),o=>{throw this.emit("debug",{action:"response",error:o,request:n,provider:this}),o});return s&&(this._cache[e]=i,setTimeout(()=>{this._cache[e]=null},0)),i}prepareRequest(e,r){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[u0(r.address),r.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[u0(r.address),r.blockTag]];case"getCode":return["eth_getCode",[u0(r.address),r.blockTag]];case"getStorageAt":return["eth_getStorageAt",[u0(r.address),r.position,r.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[r.signedTransaction]];case"getBlock":return r.blockTag?["eth_getBlockByNumber",[r.blockTag,!!r.includeTransactions]]:r.blockHash?["eth_getBlockByHash",[r.blockHash,!!r.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[r.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[r.transactionHash]];case"call":return["eth_call",[C0(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0}),r.blockTag]];case"estimateGas":return["eth_estimateGas",[C0(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0})]];case"getLogs":return r.filter&&r.filter.address!=null&&(r.filter.address=u0(r.filter.address)),["eth_getLogs",[r.filter]]}return null}perform(e,r){return Yo(this,void 0,void 0,function*(){if(e==="call"||e==="estimateGas"){const s=r.transaction;if(s&&s.type!=null&&Mt.from(s.type).isZero()&&s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null){const i=yield this.getFeeData();i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(r=ds(r),r.transaction=ds(s),delete r.transaction.type)}}const n=this.prepareRequest(e,r);n==null&&bi.throwError(e+" not implemented",at.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(n[0],n[1])}catch(s){return RM(e,s,r)}})}_startEvent(e){e.tag==="pending"&&this._startPending(),super._startEvent(e)}_startPending(){if(this._pendingFilter!=null)return;const e=this,r=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=r,r.then(function(n){function s(){e.send("eth_getFilterChanges",[n]).then(function(i){if(e._pendingFilter!=r)return null;let o=Promise.resolve();return i.forEach(function(f){e._emitted["t:"+f.toLowerCase()]="pending",o=o.then(function(){return e.getTransaction(f).then(function(u){return e.emit("pending",u),null})})}),o.then(function(){return x5(1e3)})}).then(function(){if(e._pendingFilter!=r){e.send("eth_uninstallFilter",[n]);return}return setTimeout(function(){s()},0),null}).catch(i=>{})}return s(),n}).catch(n=>{})}_stopEvent(e){e.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,r){const n=ds(BF);if(r)for(const i in r)r[i]&&(n[i]=!0);PL(e,n);const s={};return["gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(i){if(e[i]==null)return;const o=n3(e[i]);i==="gasLimit"&&(i="gas"),s[i]=o}),["from","to","data"].forEach(function(i){e[i]!=null&&(s[i]=Qt(e[i]))}),e.accessList&&(s.accessList=c1(e.accessList)),s}}var IF=globalThis&&globalThis.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function f(p){try{h(n.next(p))}catch(d){o(d)}}function u(p){try{h(n.throw(p))}catch(d){o(d)}}function h(p){p.done?i(p.value):s(p.value).then(f,u)}h((n=n.apply(t,e||[])).next())})};const PF=new at(Gv);class OF extends u3{detectNetwork(){const e=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return IF(this,void 0,void 0,function*(){let r=this.network;return r==null&&(r=yield e.detectNetwork.call(this),r||PF.throwError("no network detected",at.errors.UNKNOWN_ERROR,{}),this._network==null&&(Nr(this,"_network",r),this.emit("network",r,null))),r})}}const LF="logger/5.7.0";let E5=!1,M5=!1;const Hm={debug:1,default:2,info:2,warning:3,error:4,off:5};let S5=Hm.default,Bb=null;function DF(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{t.push(e)}}),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}const _5=DF();var Tw;(function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"})(Tw||(Tw={}));var Ia;(function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"})(Ia||(Ia={}));const R5="0123456789abcdef";class wn{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,r){const n=e.toLowerCase();Hm[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(S5>Hm[n])&&console.log.apply(console,r)}debug(...e){this._log(wn.levels.DEBUG,e)}info(...e){this._log(wn.levels.INFO,e)}warn(...e){this._log(wn.levels.WARNING,e)}makeError(e,r,n){if(M5)return this.makeError("censored error",r,{});r||(r=wn.errors.UNKNOWN_ERROR),n||(n={});const s=[];Object.keys(n).forEach(u=>{const h=n[u];try{if(h instanceof Uint8Array){let p="";for(let d=0;d>4],p+=R5[h[d]&15];s.push(u+"=Uint8Array(0x"+p+")")}else s.push(u+"="+JSON.stringify(h))}catch{s.push(u+"="+JSON.stringify(n[u].toString()))}}),s.push(`code=${r}`),s.push(`version=${this.version}`);const i=e;let o="";switch(r){case Ia.NUMERIC_FAULT:{o="NUMERIC_FAULT";const u=e;switch(u){case"overflow":case"underflow":case"division-by-zero":o+="-"+u;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result";break}break}case Ia.CALL_EXCEPTION:case Ia.INSUFFICIENT_FUNDS:case Ia.MISSING_NEW:case Ia.NONCE_EXPIRED:case Ia.REPLACEMENT_UNDERPRICED:case Ia.TRANSACTION_REPLACED:case Ia.UNPREDICTABLE_GAS_LIMIT:o=r;break}o&&(e+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),s.length&&(e+=" ("+s.join(", ")+")");const f=new Error(e);return f.reason=i,f.code=r,Object.keys(n).forEach(function(u){f[u]=n[u]}),f}throwError(e,r,n){throw this.makeError(e,r,n)}throwArgumentError(e,r,n){return this.throwError(e,wn.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(e,r,n,s){e||this.throwError(r,n,s)}assertArgument(e,r,n,s){e||this.throwArgumentError(r,n,s)}checkNormalize(e){_5&&this.throwError("platform missing String.prototype.normalize",wn.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:_5})}checkSafeUint53(e,r){typeof e=="number"&&(r==null&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,wn.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,wn.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,r,n){n?n=": "+n:n="",er&&this.throwError("too many arguments"+n,wn.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})}checkNew(e,r){(e===Object||e==null)&&this.throwError("missing new",wn.errors.MISSING_NEW,{name:r.name})}checkAbstract(e,r){e===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",wn.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",wn.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return Bb||(Bb=new wn(LF)),Bb}static setCensorship(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",wn.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),E5){if(!e)return;this.globalLogger().throwError("error censorship permanent",wn.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}M5=!!e,E5=!!r}static setLogLevel(e){const r=Hm[e.toLowerCase()];if(r==null){wn.globalLogger().warn("invalid log level - "+e);return}S5=r}static from(e){return new wn(e)}}wn.errors=Ia;wn.levels=Tw;const FF="bytes/5.7.0",Ib=new wn(FF);function UF(t){return!!t.toHexString}function jm(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return jm(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function N5(t){return typeof t=="number"&&t==t&&t%1===0}function HF(t){if(t==null)return!1;if(t.constructor===Uint8Array)return!0;if(typeof t=="string"||!N5(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function TM(t,e){if(e||(e={}),typeof t=="number"){Ib.checkSafeUint53(t,"invalid arrayify value");const r=[];for(;t;)r.unshift(t&255),t=parseInt(String(t/256));return r.length===0&&r.push(0),jm(new Uint8Array(r))}if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),UF(t)&&(t=t.toHexString()),kM(t)){let r=t.substring(2);r.length%2&&(e.hexPad==="left"?r="0"+r:e.hexPad==="right"?r+="0":Ib.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let s=0;s0?a:c},i.min=function(a,c){return a.cmp(c)<0?a:c},i.prototype._init=function(a,c,m){if(typeof a=="number")return this._initNumber(a,c,m);if(typeof a=="object")return this._initArray(a,c,m);c==="hex"&&(c=16),n(c===(c|0)&&c>=2&&c<=36),a=a.toString().replace(/\s+/g,"");var b=0;a[0]==="-"&&(b++,this.negative=1),b=0;b-=3)_=a[b]|a[b-1]<<8|a[b-2]<<16,this.words[x]|=_<>>26-S&67108863,S+=24,S>=26&&(S-=26,x++);else if(m==="le")for(b=0,x=0;b>>26-S&67108863,S+=24,S>=26&&(S-=26,x++);return this._strip()};function f(g,a){var c=g.charCodeAt(a);if(c>=48&&c<=57)return c-48;if(c>=65&&c<=70)return c-55;if(c>=97&&c<=102)return c-87;n(!1,"Invalid character in "+g)}function u(g,a,c){var m=f(g,c);return c-1>=a&&(m|=f(g,c-1)<<4),m}i.prototype._parseHex=function(a,c,m){this.length=Math.ceil((a.length-c)/6),this.words=new Array(this.length);for(var b=0;b=c;b-=2)S=u(a,c,b)<=18?(x-=18,_+=1,this.words[_]|=S>>>26):x+=8;else{var y=a.length-c;for(b=y%2===0?c+1:c;b=18?(x-=18,_+=1,this.words[_]|=S>>>26):x+=8}this._strip()};function h(g,a,c,m){for(var b=0,x=0,_=Math.min(g.length,c),S=a;S<_;S++){var y=g.charCodeAt(S)-48;b*=m,y>=49?x=y-49+10:y>=17?x=y-17+10:x=y,n(y>=0&&x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch{i.prototype.inspect=d}else i.prototype.inspect=d;function d(){return(this.red?""}var v=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],w=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(a,c){a=a||10,c=c|0||1;var m;if(a===16||a==="hex"){m="";for(var b=0,x=0,_=0;_>>24-b&16777215,b+=2,b>=26&&(b-=26,_--),x!==0||_!==this.length-1?m=v[6-y.length]+y+m:m=y+m}for(x!==0&&(m=x.toString(16)+m);m.length%c!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(a===(a|0)&&a>=2&&a<=36){var l=w[a],E=A[a];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var L=Y.modrn(E).toString(a);Y=Y.idivn(E),Y.isZero()?m=L+m:m=v[l-L.length]+L+m}for(this.isZero()&&(m="0"+m);m.length%c!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var a=this.words[0];return this.length===2?a+=this.words[1]*67108864:this.length===3&&this.words[2]===1?a+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-a:a},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(a,c){return this.toArrayLike(o,a,c)}),i.prototype.toArray=function(a,c){return this.toArrayLike(Array,a,c)};var M=function(a,c){return a.allocUnsafe?a.allocUnsafe(c):new a(c)};i.prototype.toArrayLike=function(a,c,m){this._strip();var b=this.byteLength(),x=m||Math.max(1,b);n(b<=x,"byte array longer than desired length"),n(x>0,"Requested array length <= 0");var _=M(a,x),S=c==="le"?"LE":"BE";return this["_toArrayLike"+S](_,b),_},i.prototype._toArrayLikeLE=function(a,c){for(var m=0,b=0,x=0,_=0;x>8&255),m>16&255),_===6?(m>24&255),b=0,_=0):(b=S>>>24,_+=2)}if(m=0&&(a[m--]=S>>8&255),m>=0&&(a[m--]=S>>16&255),_===6?(m>=0&&(a[m--]=S>>24&255),b=0,_=0):(b=S>>>24,_+=2)}if(m>=0)for(a[m--]=b;m>=0;)a[m--]=0},Math.clz32?i.prototype._countBits=function(a){return 32-Math.clz32(a)}:i.prototype._countBits=function(a){var c=a,m=0;return c>=4096&&(m+=13,c>>>=13),c>=64&&(m+=7,c>>>=7),c>=8&&(m+=4,c>>>=4),c>=2&&(m+=2,c>>>=2),m+c},i.prototype._zeroBits=function(a){if(a===0)return 26;var c=a,m=0;return c&8191||(m+=13,c>>>=13),c&127||(m+=7,c>>>=7),c&15||(m+=4,c>>>=4),c&3||(m+=2,c>>>=2),c&1||m++,m},i.prototype.bitLength=function(){var a=this.words[this.length-1],c=this._countBits(a);return(this.length-1)*26+c};function R(g){for(var a=new Array(g.bitLength()),c=0;c>>b&1}return a}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var a=0,c=0;ca.length?this.clone().ior(a):a.clone().ior(this)},i.prototype.uor=function(a){return this.length>a.length?this.clone().iuor(a):a.clone().iuor(this)},i.prototype.iuand=function(a){var c;this.length>a.length?c=a:c=this;for(var m=0;ma.length?this.clone().iand(a):a.clone().iand(this)},i.prototype.uand=function(a){return this.length>a.length?this.clone().iuand(a):a.clone().iuand(this)},i.prototype.iuxor=function(a){var c,m;this.length>a.length?(c=this,m=a):(c=a,m=this);for(var b=0;ba.length?this.clone().ixor(a):a.clone().ixor(this)},i.prototype.uxor=function(a){return this.length>a.length?this.clone().iuxor(a):a.clone().iuxor(this)},i.prototype.inotn=function(a){n(typeof a=="number"&&a>=0);var c=Math.ceil(a/26)|0,m=a%26;this._expand(c),m>0&&c--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-m),this._strip()},i.prototype.notn=function(a){return this.clone().inotn(a)},i.prototype.setn=function(a,c){n(typeof a=="number"&&a>=0);var m=a/26|0,b=a%26;return this._expand(m+1),c?this.words[m]=this.words[m]|1<a.length?(m=this,b=a):(m=a,b=this);for(var x=0,_=0;_>>26;for(;x!==0&&_>>26;if(this.length=m.length,x!==0)this.words[this.length]=x,this.length++;else if(m!==this)for(;_a.length?this.clone().iadd(a):a.clone().iadd(this)},i.prototype.isub=function(a){if(a.negative!==0){a.negative=0;var c=this.iadd(a);return a.negative=1,c._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(a),this.negative=1,this._normSign();var m=this.cmp(a);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,x;m>0?(b=this,x=a):(b=a,x=this);for(var _=0,S=0;S>26,this.words[S]=c&67108863;for(;_!==0&&S>26,this.words[S]=c&67108863;if(_===0&&S>>26,Y=y&67108863,L=Math.min(l,a.length-1),F=Math.max(0,l-g.length+1);F<=L;F++){var V=l-F|0;b=g.words[V]|0,x=a.words[F]|0,_=b*x+Y,E+=_/67108864|0,Y=_&67108863}c.words[l]=Y|0,y=E|0}return y!==0?c.words[l]=y|0:c.length--,c._strip()}var C=function(a,c,m){var b=a.words,x=c.words,_=m.words,S=0,y,l,E,Y=b[0]|0,L=Y&8191,F=Y>>>13,V=b[1]|0,Z=V&8191,ee=V>>>13,ce=b[2]|0,U=ce&8191,j=ce>>>13,se=b[3]|0,re=se&8191,oe=se>>>13,Q=b[4]|0,z=Q&8191,G=Q>>>13,X=b[5]|0,ne=X&8191,ae=X>>>13,Me=b[6]|0,ge=Me&8191,pe=Me>>>13,ot=b[7]|0,we=ot&8191,me=ot>>>13,ut=b[8]|0,ze=ut&8191,_e=ut>>>13,Bt=b[9]|0,qe=Bt&8191,Te=Bt>>>13,xt=x[0]|0,He=xt&8191,Se=xt>>>13,Rt=x[1]|0,Ve=Rt&8191,Ee=Rt>>>13,Nt=x[2]|0,Ze=Nt&8191,Re=Nt>>>13,Ct=x[3]|0,je=Ct&8191,ke=Ct>>>13,Pt=x[4]|0,Ke=Pt&8191,Ne=Pt>>>13,Ot=x[5]|0,De=Ot&8191,Be=Ot>>>13,kt=x[6]|0,Ge=kt&8191,Ie=kt>>>13,Ut=x[7]|0,Ue=Ut&8191,Oe=Ut>>>13,It=x[8]|0,We=It&8191,Pe=It>>>13,_t=x[9]|0,Le=_t&8191,Ye=_t>>>13;m.negative=a.negative^c.negative,m.length=19,y=Math.imul(L,He),l=Math.imul(L,Se),l=l+Math.imul(F,He)|0,E=Math.imul(F,Se);var Ar=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,y=Math.imul(Z,He),l=Math.imul(Z,Se),l=l+Math.imul(ee,He)|0,E=Math.imul(ee,Se),y=y+Math.imul(L,Ve)|0,l=l+Math.imul(L,Ee)|0,l=l+Math.imul(F,Ve)|0,E=E+Math.imul(F,Ee)|0;var xr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(xr>>>26)|0,xr&=67108863,y=Math.imul(U,He),l=Math.imul(U,Se),l=l+Math.imul(j,He)|0,E=Math.imul(j,Se),y=y+Math.imul(Z,Ve)|0,l=l+Math.imul(Z,Ee)|0,l=l+Math.imul(ee,Ve)|0,E=E+Math.imul(ee,Ee)|0,y=y+Math.imul(L,Ze)|0,l=l+Math.imul(L,Re)|0,l=l+Math.imul(F,Ze)|0,E=E+Math.imul(F,Re)|0;var Er=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Er>>>26)|0,Er&=67108863,y=Math.imul(re,He),l=Math.imul(re,Se),l=l+Math.imul(oe,He)|0,E=Math.imul(oe,Se),y=y+Math.imul(U,Ve)|0,l=l+Math.imul(U,Ee)|0,l=l+Math.imul(j,Ve)|0,E=E+Math.imul(j,Ee)|0,y=y+Math.imul(Z,Ze)|0,l=l+Math.imul(Z,Re)|0,l=l+Math.imul(ee,Ze)|0,E=E+Math.imul(ee,Re)|0,y=y+Math.imul(L,je)|0,l=l+Math.imul(L,ke)|0,l=l+Math.imul(F,je)|0,E=E+Math.imul(F,ke)|0;var Gt=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,y=Math.imul(z,He),l=Math.imul(z,Se),l=l+Math.imul(G,He)|0,E=Math.imul(G,Se),y=y+Math.imul(re,Ve)|0,l=l+Math.imul(re,Ee)|0,l=l+Math.imul(oe,Ve)|0,E=E+Math.imul(oe,Ee)|0,y=y+Math.imul(U,Ze)|0,l=l+Math.imul(U,Re)|0,l=l+Math.imul(j,Ze)|0,E=E+Math.imul(j,Re)|0,y=y+Math.imul(Z,je)|0,l=l+Math.imul(Z,ke)|0,l=l+Math.imul(ee,je)|0,E=E+Math.imul(ee,ke)|0,y=y+Math.imul(L,Ke)|0,l=l+Math.imul(L,Ne)|0,l=l+Math.imul(F,Ke)|0,E=E+Math.imul(F,Ne)|0;var Vt=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,y=Math.imul(ne,He),l=Math.imul(ne,Se),l=l+Math.imul(ae,He)|0,E=Math.imul(ae,Se),y=y+Math.imul(z,Ve)|0,l=l+Math.imul(z,Ee)|0,l=l+Math.imul(G,Ve)|0,E=E+Math.imul(G,Ee)|0,y=y+Math.imul(re,Ze)|0,l=l+Math.imul(re,Re)|0,l=l+Math.imul(oe,Ze)|0,E=E+Math.imul(oe,Re)|0,y=y+Math.imul(U,je)|0,l=l+Math.imul(U,ke)|0,l=l+Math.imul(j,je)|0,E=E+Math.imul(j,ke)|0,y=y+Math.imul(Z,Ke)|0,l=l+Math.imul(Z,Ne)|0,l=l+Math.imul(ee,Ke)|0,E=E+Math.imul(ee,Ne)|0,y=y+Math.imul(L,De)|0,l=l+Math.imul(L,Be)|0,l=l+Math.imul(F,De)|0,E=E+Math.imul(F,Be)|0;var Lr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,y=Math.imul(ge,He),l=Math.imul(ge,Se),l=l+Math.imul(pe,He)|0,E=Math.imul(pe,Se),y=y+Math.imul(ne,Ve)|0,l=l+Math.imul(ne,Ee)|0,l=l+Math.imul(ae,Ve)|0,E=E+Math.imul(ae,Ee)|0,y=y+Math.imul(z,Ze)|0,l=l+Math.imul(z,Re)|0,l=l+Math.imul(G,Ze)|0,E=E+Math.imul(G,Re)|0,y=y+Math.imul(re,je)|0,l=l+Math.imul(re,ke)|0,l=l+Math.imul(oe,je)|0,E=E+Math.imul(oe,ke)|0,y=y+Math.imul(U,Ke)|0,l=l+Math.imul(U,Ne)|0,l=l+Math.imul(j,Ke)|0,E=E+Math.imul(j,Ne)|0,y=y+Math.imul(Z,De)|0,l=l+Math.imul(Z,Be)|0,l=l+Math.imul(ee,De)|0,E=E+Math.imul(ee,Be)|0,y=y+Math.imul(L,Ge)|0,l=l+Math.imul(L,Ie)|0,l=l+Math.imul(F,Ge)|0,E=E+Math.imul(F,Ie)|0;var Zr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,y=Math.imul(we,He),l=Math.imul(we,Se),l=l+Math.imul(me,He)|0,E=Math.imul(me,Se),y=y+Math.imul(ge,Ve)|0,l=l+Math.imul(ge,Ee)|0,l=l+Math.imul(pe,Ve)|0,E=E+Math.imul(pe,Ee)|0,y=y+Math.imul(ne,Ze)|0,l=l+Math.imul(ne,Re)|0,l=l+Math.imul(ae,Ze)|0,E=E+Math.imul(ae,Re)|0,y=y+Math.imul(z,je)|0,l=l+Math.imul(z,ke)|0,l=l+Math.imul(G,je)|0,E=E+Math.imul(G,ke)|0,y=y+Math.imul(re,Ke)|0,l=l+Math.imul(re,Ne)|0,l=l+Math.imul(oe,Ke)|0,E=E+Math.imul(oe,Ne)|0,y=y+Math.imul(U,De)|0,l=l+Math.imul(U,Be)|0,l=l+Math.imul(j,De)|0,E=E+Math.imul(j,Be)|0,y=y+Math.imul(Z,Ge)|0,l=l+Math.imul(Z,Ie)|0,l=l+Math.imul(ee,Ge)|0,E=E+Math.imul(ee,Ie)|0,y=y+Math.imul(L,Ue)|0,l=l+Math.imul(L,Oe)|0,l=l+Math.imul(F,Ue)|0,E=E+Math.imul(F,Oe)|0;var Ir=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,y=Math.imul(ze,He),l=Math.imul(ze,Se),l=l+Math.imul(_e,He)|0,E=Math.imul(_e,Se),y=y+Math.imul(we,Ve)|0,l=l+Math.imul(we,Ee)|0,l=l+Math.imul(me,Ve)|0,E=E+Math.imul(me,Ee)|0,y=y+Math.imul(ge,Ze)|0,l=l+Math.imul(ge,Re)|0,l=l+Math.imul(pe,Ze)|0,E=E+Math.imul(pe,Re)|0,y=y+Math.imul(ne,je)|0,l=l+Math.imul(ne,ke)|0,l=l+Math.imul(ae,je)|0,E=E+Math.imul(ae,ke)|0,y=y+Math.imul(z,Ke)|0,l=l+Math.imul(z,Ne)|0,l=l+Math.imul(G,Ke)|0,E=E+Math.imul(G,Ne)|0,y=y+Math.imul(re,De)|0,l=l+Math.imul(re,Be)|0,l=l+Math.imul(oe,De)|0,E=E+Math.imul(oe,Be)|0,y=y+Math.imul(U,Ge)|0,l=l+Math.imul(U,Ie)|0,l=l+Math.imul(j,Ge)|0,E=E+Math.imul(j,Ie)|0,y=y+Math.imul(Z,Ue)|0,l=l+Math.imul(Z,Oe)|0,l=l+Math.imul(ee,Ue)|0,E=E+Math.imul(ee,Oe)|0,y=y+Math.imul(L,We)|0,l=l+Math.imul(L,Pe)|0,l=l+Math.imul(F,We)|0,E=E+Math.imul(F,Pe)|0;var Dr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,y=Math.imul(qe,He),l=Math.imul(qe,Se),l=l+Math.imul(Te,He)|0,E=Math.imul(Te,Se),y=y+Math.imul(ze,Ve)|0,l=l+Math.imul(ze,Ee)|0,l=l+Math.imul(_e,Ve)|0,E=E+Math.imul(_e,Ee)|0,y=y+Math.imul(we,Ze)|0,l=l+Math.imul(we,Re)|0,l=l+Math.imul(me,Ze)|0,E=E+Math.imul(me,Re)|0,y=y+Math.imul(ge,je)|0,l=l+Math.imul(ge,ke)|0,l=l+Math.imul(pe,je)|0,E=E+Math.imul(pe,ke)|0,y=y+Math.imul(ne,Ke)|0,l=l+Math.imul(ne,Ne)|0,l=l+Math.imul(ae,Ke)|0,E=E+Math.imul(ae,Ne)|0,y=y+Math.imul(z,De)|0,l=l+Math.imul(z,Be)|0,l=l+Math.imul(G,De)|0,E=E+Math.imul(G,Be)|0,y=y+Math.imul(re,Ge)|0,l=l+Math.imul(re,Ie)|0,l=l+Math.imul(oe,Ge)|0,E=E+Math.imul(oe,Ie)|0,y=y+Math.imul(U,Ue)|0,l=l+Math.imul(U,Oe)|0,l=l+Math.imul(j,Ue)|0,E=E+Math.imul(j,Oe)|0,y=y+Math.imul(Z,We)|0,l=l+Math.imul(Z,Pe)|0,l=l+Math.imul(ee,We)|0,E=E+Math.imul(ee,Pe)|0,y=y+Math.imul(L,Le)|0,l=l+Math.imul(L,Ye)|0,l=l+Math.imul(F,Le)|0,E=E+Math.imul(F,Ye)|0;var ar=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(ar>>>26)|0,ar&=67108863,y=Math.imul(qe,Ve),l=Math.imul(qe,Ee),l=l+Math.imul(Te,Ve)|0,E=Math.imul(Te,Ee),y=y+Math.imul(ze,Ze)|0,l=l+Math.imul(ze,Re)|0,l=l+Math.imul(_e,Ze)|0,E=E+Math.imul(_e,Re)|0,y=y+Math.imul(we,je)|0,l=l+Math.imul(we,ke)|0,l=l+Math.imul(me,je)|0,E=E+Math.imul(me,ke)|0,y=y+Math.imul(ge,Ke)|0,l=l+Math.imul(ge,Ne)|0,l=l+Math.imul(pe,Ke)|0,E=E+Math.imul(pe,Ne)|0,y=y+Math.imul(ne,De)|0,l=l+Math.imul(ne,Be)|0,l=l+Math.imul(ae,De)|0,E=E+Math.imul(ae,Be)|0,y=y+Math.imul(z,Ge)|0,l=l+Math.imul(z,Ie)|0,l=l+Math.imul(G,Ge)|0,E=E+Math.imul(G,Ie)|0,y=y+Math.imul(re,Ue)|0,l=l+Math.imul(re,Oe)|0,l=l+Math.imul(oe,Ue)|0,E=E+Math.imul(oe,Oe)|0,y=y+Math.imul(U,We)|0,l=l+Math.imul(U,Pe)|0,l=l+Math.imul(j,We)|0,E=E+Math.imul(j,Pe)|0,y=y+Math.imul(Z,Le)|0,l=l+Math.imul(Z,Ye)|0,l=l+Math.imul(ee,Le)|0,E=E+Math.imul(ee,Ye)|0;var mr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(mr>>>26)|0,mr&=67108863,y=Math.imul(qe,Ze),l=Math.imul(qe,Re),l=l+Math.imul(Te,Ze)|0,E=Math.imul(Te,Re),y=y+Math.imul(ze,je)|0,l=l+Math.imul(ze,ke)|0,l=l+Math.imul(_e,je)|0,E=E+Math.imul(_e,ke)|0,y=y+Math.imul(we,Ke)|0,l=l+Math.imul(we,Ne)|0,l=l+Math.imul(me,Ke)|0,E=E+Math.imul(me,Ne)|0,y=y+Math.imul(ge,De)|0,l=l+Math.imul(ge,Be)|0,l=l+Math.imul(pe,De)|0,E=E+Math.imul(pe,Be)|0,y=y+Math.imul(ne,Ge)|0,l=l+Math.imul(ne,Ie)|0,l=l+Math.imul(ae,Ge)|0,E=E+Math.imul(ae,Ie)|0,y=y+Math.imul(z,Ue)|0,l=l+Math.imul(z,Oe)|0,l=l+Math.imul(G,Ue)|0,E=E+Math.imul(G,Oe)|0,y=y+Math.imul(re,We)|0,l=l+Math.imul(re,Pe)|0,l=l+Math.imul(oe,We)|0,E=E+Math.imul(oe,Pe)|0,y=y+Math.imul(U,Le)|0,l=l+Math.imul(U,Ye)|0,l=l+Math.imul(j,Le)|0,E=E+Math.imul(j,Ye)|0;var jr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(jr>>>26)|0,jr&=67108863,y=Math.imul(qe,je),l=Math.imul(qe,ke),l=l+Math.imul(Te,je)|0,E=Math.imul(Te,ke),y=y+Math.imul(ze,Ke)|0,l=l+Math.imul(ze,Ne)|0,l=l+Math.imul(_e,Ke)|0,E=E+Math.imul(_e,Ne)|0,y=y+Math.imul(we,De)|0,l=l+Math.imul(we,Be)|0,l=l+Math.imul(me,De)|0,E=E+Math.imul(me,Be)|0,y=y+Math.imul(ge,Ge)|0,l=l+Math.imul(ge,Ie)|0,l=l+Math.imul(pe,Ge)|0,E=E+Math.imul(pe,Ie)|0,y=y+Math.imul(ne,Ue)|0,l=l+Math.imul(ne,Oe)|0,l=l+Math.imul(ae,Ue)|0,E=E+Math.imul(ae,Oe)|0,y=y+Math.imul(z,We)|0,l=l+Math.imul(z,Pe)|0,l=l+Math.imul(G,We)|0,E=E+Math.imul(G,Pe)|0,y=y+Math.imul(re,Le)|0,l=l+Math.imul(re,Ye)|0,l=l+Math.imul(oe,Le)|0,E=E+Math.imul(oe,Ye)|0;var Yr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,y=Math.imul(qe,Ke),l=Math.imul(qe,Ne),l=l+Math.imul(Te,Ke)|0,E=Math.imul(Te,Ne),y=y+Math.imul(ze,De)|0,l=l+Math.imul(ze,Be)|0,l=l+Math.imul(_e,De)|0,E=E+Math.imul(_e,Be)|0,y=y+Math.imul(we,Ge)|0,l=l+Math.imul(we,Ie)|0,l=l+Math.imul(me,Ge)|0,E=E+Math.imul(me,Ie)|0,y=y+Math.imul(ge,Ue)|0,l=l+Math.imul(ge,Oe)|0,l=l+Math.imul(pe,Ue)|0,E=E+Math.imul(pe,Oe)|0,y=y+Math.imul(ne,We)|0,l=l+Math.imul(ne,Pe)|0,l=l+Math.imul(ae,We)|0,E=E+Math.imul(ae,Pe)|0,y=y+Math.imul(z,Le)|0,l=l+Math.imul(z,Ye)|0,l=l+Math.imul(G,Le)|0,E=E+Math.imul(G,Ye)|0;var or=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(or>>>26)|0,or&=67108863,y=Math.imul(qe,De),l=Math.imul(qe,Be),l=l+Math.imul(Te,De)|0,E=Math.imul(Te,Be),y=y+Math.imul(ze,Ge)|0,l=l+Math.imul(ze,Ie)|0,l=l+Math.imul(_e,Ge)|0,E=E+Math.imul(_e,Ie)|0,y=y+Math.imul(we,Ue)|0,l=l+Math.imul(we,Oe)|0,l=l+Math.imul(me,Ue)|0,E=E+Math.imul(me,Oe)|0,y=y+Math.imul(ge,We)|0,l=l+Math.imul(ge,Pe)|0,l=l+Math.imul(pe,We)|0,E=E+Math.imul(pe,Pe)|0,y=y+Math.imul(ne,Le)|0,l=l+Math.imul(ne,Ye)|0,l=l+Math.imul(ae,Le)|0,E=E+Math.imul(ae,Ye)|0;var Qr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,y=Math.imul(qe,Ge),l=Math.imul(qe,Ie),l=l+Math.imul(Te,Ge)|0,E=Math.imul(Te,Ie),y=y+Math.imul(ze,Ue)|0,l=l+Math.imul(ze,Oe)|0,l=l+Math.imul(_e,Ue)|0,E=E+Math.imul(_e,Oe)|0,y=y+Math.imul(we,We)|0,l=l+Math.imul(we,Pe)|0,l=l+Math.imul(me,We)|0,E=E+Math.imul(me,Pe)|0,y=y+Math.imul(ge,Le)|0,l=l+Math.imul(ge,Ye)|0,l=l+Math.imul(pe,Le)|0,E=E+Math.imul(pe,Ye)|0;var Mr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,y=Math.imul(qe,Ue),l=Math.imul(qe,Oe),l=l+Math.imul(Te,Ue)|0,E=Math.imul(Te,Oe),y=y+Math.imul(ze,We)|0,l=l+Math.imul(ze,Pe)|0,l=l+Math.imul(_e,We)|0,E=E+Math.imul(_e,Pe)|0,y=y+Math.imul(we,Le)|0,l=l+Math.imul(we,Ye)|0,l=l+Math.imul(me,Le)|0,E=E+Math.imul(me,Ye)|0;var Xr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,y=Math.imul(qe,We),l=Math.imul(qe,Pe),l=l+Math.imul(Te,We)|0,E=Math.imul(Te,Pe),y=y+Math.imul(ze,Le)|0,l=l+Math.imul(ze,Ye)|0,l=l+Math.imul(_e,Le)|0,E=E+Math.imul(_e,Ye)|0;var on=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(on>>>26)|0,on&=67108863,y=Math.imul(qe,Le),l=Math.imul(qe,Ye),l=l+Math.imul(Te,Le)|0,E=Math.imul(Te,Ye);var Cr=(S+y|0)+((l&8191)<<13)|0;return S=(E+(l>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,_[0]=Ar,_[1]=xr,_[2]=Er,_[3]=Gt,_[4]=Vt,_[5]=Lr,_[6]=Zr,_[7]=Ir,_[8]=Dr,_[9]=ar,_[10]=mr,_[11]=jr,_[12]=Yr,_[13]=or,_[14]=Qr,_[15]=Mr,_[16]=Xr,_[17]=on,_[18]=Cr,S!==0&&(_[19]=S,m.length++),m};Math.imul||(C=N);function B(g,a,c){c.negative=a.negative^g.negative,c.length=g.length+a.length;for(var m=0,b=0,x=0;x>>26)|0,b+=_>>>26,_&=67108863}c.words[x]=S,m=_,_=b}return m!==0?c.words[x]=m:c.length--,c._strip()}function O(g,a,c){return B(g,a,c)}i.prototype.mulTo=function(a,c){var m,b=this.length+a.length;return this.length===10&&a.length===10?m=C(this,a,c):b<63?m=N(this,a,c):b<1024?m=B(this,a,c):m=O(this,a,c),m},i.prototype.mul=function(a){var c=new i(null);return c.words=new Array(this.length+a.length),this.mulTo(a,c)},i.prototype.mulf=function(a){var c=new i(null);return c.words=new Array(this.length+a.length),O(this,a,c)},i.prototype.imul=function(a){return this.clone().mulTo(a,this)},i.prototype.imuln=function(a){var c=a<0;c&&(a=-a),n(typeof a=="number"),n(a<67108864);for(var m=0,b=0;b>=26,m+=x/67108864|0,m+=_>>>26,this.words[b]=_&67108863}return m!==0&&(this.words[b]=m,this.length++),c?this.ineg():this},i.prototype.muln=function(a){return this.clone().imuln(a)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(a){var c=R(a);if(c.length===0)return new i(1);for(var m=this,b=0;b=0);var c=a%26,m=(a-c)/26,b=67108863>>>26-c<<26-c,x;if(c!==0){var _=0;for(x=0;x>>26-c}_&&(this.words[x]=_,this.length++)}if(m!==0){for(x=this.length-1;x>=0;x--)this.words[x+m]=this.words[x];for(x=0;x=0);var b;c?b=(c-c%26)/26:b=0;var x=a%26,_=Math.min((a-x)/26,this.length),S=67108863^67108863>>>x<_)for(this.length-=_,l=0;l=0&&(E!==0||l>=b);l--){var Y=this.words[l]|0;this.words[l]=E<<26-x|Y>>>x,E=Y&S}return y&&E!==0&&(y.words[y.length++]=E),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(a,c,m){return n(this.negative===0),this.iushrn(a,c,m)},i.prototype.shln=function(a){return this.clone().ishln(a)},i.prototype.ushln=function(a){return this.clone().iushln(a)},i.prototype.shrn=function(a){return this.clone().ishrn(a)},i.prototype.ushrn=function(a){return this.clone().iushrn(a)},i.prototype.testn=function(a){n(typeof a=="number"&&a>=0);var c=a%26,m=(a-c)/26,b=1<=0);var c=a%26,m=(a-c)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(c!==0&&m++,this.length=Math.min(m,this.length),c!==0){var b=67108863^67108863>>>c<=67108864;c++)this.words[c]-=67108864,c===this.length-1?this.words[c+1]=1:this.words[c+1]++;return this.length=Math.max(this.length,c+1),this},i.prototype.isubn=function(a){if(n(typeof a=="number"),n(a<67108864),a<0)return this.iaddn(-a);if(this.negative!==0)return this.negative=0,this.iaddn(a),this.negative=1,this;if(this.words[0]-=a,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var c=0;c>26)-(y/67108864|0),this.words[x+m]=_&67108863}for(;x>26,this.words[x+m]=_&67108863;if(S===0)return this._strip();for(n(S===-1),S=0,x=0;x>26,this.words[x]=_&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(a,c){var m=this.length-a.length,b=this.clone(),x=a,_=x.words[x.length-1]|0,S=this._countBits(_);m=26-S,m!==0&&(x=x.ushln(m),b.iushln(m),_=x.words[x.length-1]|0);var y=b.length-x.length,l;if(c!=="mod"){l=new i(null),l.length=y+1,l.words=new Array(l.length);for(var E=0;E=0;L--){var F=(b.words[x.length+L]|0)*67108864+(b.words[x.length+L-1]|0);for(F=Math.min(F/_|0,67108863),b._ishlnsubmul(x,F,L);b.negative!==0;)F--,b.negative=0,b._ishlnsubmul(x,1,L),b.isZero()||(b.negative^=1);l&&(l.words[L]=F)}return l&&l._strip(),b._strip(),c!=="div"&&m!==0&&b.iushrn(m),{div:l||null,mod:b}},i.prototype.divmod=function(a,c,m){if(n(!a.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var b,x,_;return this.negative!==0&&a.negative===0?(_=this.neg().divmod(a,c),c!=="mod"&&(b=_.div.neg()),c!=="div"&&(x=_.mod.neg(),m&&x.negative!==0&&x.iadd(a)),{div:b,mod:x}):this.negative===0&&a.negative!==0?(_=this.divmod(a.neg(),c),c!=="mod"&&(b=_.div.neg()),{div:b,mod:_.mod}):this.negative&a.negative?(_=this.neg().divmod(a.neg(),c),c!=="div"&&(x=_.mod.neg(),m&&x.negative!==0&&x.isub(a)),{div:_.div,mod:x}):a.length>this.length||this.cmp(a)<0?{div:new i(0),mod:this}:a.length===1?c==="div"?{div:this.divn(a.words[0]),mod:null}:c==="mod"?{div:null,mod:new i(this.modrn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new i(this.modrn(a.words[0]))}:this._wordDiv(a,c)},i.prototype.div=function(a){return this.divmod(a,"div",!1).div},i.prototype.mod=function(a){return this.divmod(a,"mod",!1).mod},i.prototype.umod=function(a){return this.divmod(a,"mod",!0).mod},i.prototype.divRound=function(a){var c=this.divmod(a);if(c.mod.isZero())return c.div;var m=c.div.negative!==0?c.mod.isub(a):c.mod,b=a.ushrn(1),x=a.andln(1),_=m.cmp(b);return _<0||x===1&&_===0?c.div:c.div.negative!==0?c.div.isubn(1):c.div.iaddn(1)},i.prototype.modrn=function(a){var c=a<0;c&&(a=-a),n(a<=67108863);for(var m=(1<<26)%a,b=0,x=this.length-1;x>=0;x--)b=(m*b+(this.words[x]|0))%a;return c?-b:b},i.prototype.modn=function(a){return this.modrn(a)},i.prototype.idivn=function(a){var c=a<0;c&&(a=-a),n(a<=67108863);for(var m=0,b=this.length-1;b>=0;b--){var x=(this.words[b]|0)+m*67108864;this.words[b]=x/a|0,m=x%a}return this._strip(),c?this.ineg():this},i.prototype.divn=function(a){return this.clone().idivn(a)},i.prototype.egcd=function(a){n(a.negative===0),n(!a.isZero());var c=this,m=a.clone();c.negative!==0?c=c.umod(a):c=c.clone();for(var b=new i(1),x=new i(0),_=new i(0),S=new i(1),y=0;c.isEven()&&m.isEven();)c.iushrn(1),m.iushrn(1),++y;for(var l=m.clone(),E=c.clone();!c.isZero();){for(var Y=0,L=1;!(c.words[0]&L)&&Y<26;++Y,L<<=1);if(Y>0)for(c.iushrn(Y);Y-- >0;)(b.isOdd()||x.isOdd())&&(b.iadd(l),x.isub(E)),b.iushrn(1),x.iushrn(1);for(var F=0,V=1;!(m.words[0]&V)&&F<26;++F,V<<=1);if(F>0)for(m.iushrn(F);F-- >0;)(_.isOdd()||S.isOdd())&&(_.iadd(l),S.isub(E)),_.iushrn(1),S.iushrn(1);c.cmp(m)>=0?(c.isub(m),b.isub(_),x.isub(S)):(m.isub(c),_.isub(b),S.isub(x))}return{a:_,b:S,gcd:m.iushln(y)}},i.prototype._invmp=function(a){n(a.negative===0),n(!a.isZero());var c=this,m=a.clone();c.negative!==0?c=c.umod(a):c=c.clone();for(var b=new i(1),x=new i(0),_=m.clone();c.cmpn(1)>0&&m.cmpn(1)>0;){for(var S=0,y=1;!(c.words[0]&y)&&S<26;++S,y<<=1);if(S>0)for(c.iushrn(S);S-- >0;)b.isOdd()&&b.iadd(_),b.iushrn(1);for(var l=0,E=1;!(m.words[0]&E)&&l<26;++l,E<<=1);if(l>0)for(m.iushrn(l);l-- >0;)x.isOdd()&&x.iadd(_),x.iushrn(1);c.cmp(m)>=0?(c.isub(m),b.isub(x)):(m.isub(c),x.isub(b))}var Y;return c.cmpn(1)===0?Y=b:Y=x,Y.cmpn(0)<0&&Y.iadd(a),Y},i.prototype.gcd=function(a){if(this.isZero())return a.abs();if(a.isZero())return this.abs();var c=this.clone(),m=a.clone();c.negative=0,m.negative=0;for(var b=0;c.isEven()&&m.isEven();b++)c.iushrn(1),m.iushrn(1);do{for(;c.isEven();)c.iushrn(1);for(;m.isEven();)m.iushrn(1);var x=c.cmp(m);if(x<0){var _=c;c=m,m=_}else if(x===0||m.cmpn(1)===0)break;c.isub(m)}while(!0);return m.iushln(b)},i.prototype.invm=function(a){return this.egcd(a).a.umod(a)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(a){return this.words[0]&a},i.prototype.bincn=function(a){n(typeof a=="number");var c=a%26,m=(a-c)/26,b=1<>>26,S&=67108863,this.words[_]=S}return x!==0&&(this.words[_]=x,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(a){var c=a<0;if(this.negative!==0&&!c)return-1;if(this.negative===0&&c)return 1;this._strip();var m;if(this.length>1)m=1;else{c&&(a=-a),n(a<=67108863,"Number is too big");var b=this.words[0]|0;m=b===a?0:ba.length)return 1;if(this.length=0;m--){var b=this.words[m]|0,x=a.words[m]|0;if(b!==x){bx&&(c=1);break}}return c},i.prototype.gtn=function(a){return this.cmpn(a)===1},i.prototype.gt=function(a){return this.cmp(a)===1},i.prototype.gten=function(a){return this.cmpn(a)>=0},i.prototype.gte=function(a){return this.cmp(a)>=0},i.prototype.ltn=function(a){return this.cmpn(a)===-1},i.prototype.lt=function(a){return this.cmp(a)===-1},i.prototype.lten=function(a){return this.cmpn(a)<=0},i.prototype.lte=function(a){return this.cmp(a)<=0},i.prototype.eqn=function(a){return this.cmpn(a)===0},i.prototype.eq=function(a){return this.cmp(a)===0},i.red=function(a){return new P(a)},i.prototype.toRed=function(a){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),a.convertTo(this)._forceRed(a)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(a){return this.red=a,this},i.prototype.forceRed=function(a){return n(!this.red,"Already a number in reduction context"),this._forceRed(a)},i.prototype.redAdd=function(a){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,a)},i.prototype.redIAdd=function(a){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,a)},i.prototype.redSub=function(a){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,a)},i.prototype.redISub=function(a){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,a)},i.prototype.redShl=function(a){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,a)},i.prototype.redMul=function(a){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,a),this.red.mul(this,a)},i.prototype.redIMul=function(a){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,a),this.red.imul(this,a)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(a){return n(this.red&&!a.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,a)};var D={k256:null,p224:null,p192:null,p25519:null};function q(g,a){this.name=g,this.p=new i(a,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}q.prototype._tmp=function(){var a=new i(null);return a.words=new Array(Math.ceil(this.n/13)),a},q.prototype.ireduce=function(a){var c=a,m;do this.split(c,this.tmp),c=this.imulK(c),c=c.iadd(this.tmp),m=c.bitLength();while(m>this.n);var b=m0?c.isub(this.p):c.strip!==void 0?c.strip():c._strip(),c},q.prototype.split=function(a,c){a.iushrn(this.n,0,c)},q.prototype.imulK=function(a){return a.imul(this.k)};function W(){q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}s(W,q),W.prototype.split=function(a,c){for(var m=4194303,b=Math.min(a.length,9),x=0;x>>22,_=S}_>>>=22,a.words[x-10]=_,_===0&&a.length>10?a.length-=10:a.length-=9},W.prototype.imulK=function(a){a.words[a.length]=0,a.words[a.length+1]=0,a.length+=2;for(var c=0,m=0;m>>=26,a.words[m]=x,c=b}return c!==0&&(a.words[a.length++]=c),a},i._prime=function(a){if(D[a])return D[a];var c;if(a==="k256")c=new W;else if(a==="p224")c=new k;else if(a==="p192")c=new I;else if(a==="p25519")c=new H;else throw new Error("Unknown prime "+a);return D[a]=c,c};function P(g){if(typeof g=="string"){var a=i._prime(g);this.m=a.p,this.prime=a}else n(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}P.prototype._verify1=function(a){n(a.negative===0,"red works only with positives"),n(a.red,"red works only with red numbers")},P.prototype._verify2=function(a,c){n((a.negative|c.negative)===0,"red works only with positives"),n(a.red&&a.red===c.red,"red works only with red numbers")},P.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):(p(a,a.umod(this.m)._forceRed(this)),a)},P.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},P.prototype.add=function(a,c){this._verify2(a,c);var m=a.add(c);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},P.prototype.iadd=function(a,c){this._verify2(a,c);var m=a.iadd(c);return m.cmp(this.m)>=0&&m.isub(this.m),m},P.prototype.sub=function(a,c){this._verify2(a,c);var m=a.sub(c);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},P.prototype.isub=function(a,c){this._verify2(a,c);var m=a.isub(c);return m.cmpn(0)<0&&m.iadd(this.m),m},P.prototype.shl=function(a,c){return this._verify1(a),this.imod(a.ushln(c))},P.prototype.imul=function(a,c){return this._verify2(a,c),this.imod(a.imul(c))},P.prototype.mul=function(a,c){return this._verify2(a,c),this.imod(a.mul(c))},P.prototype.isqr=function(a){return this.imul(a,a.clone())},P.prototype.sqr=function(a){return this.mul(a,a)},P.prototype.sqrt=function(a){if(a.isZero())return a.clone();var c=this.m.andln(3);if(n(c%2===1),c===3){var m=this.m.add(new i(1)).iushrn(2);return this.pow(a,m)}for(var b=this.m.subn(1),x=0;!b.isZero()&&b.andln(1)===0;)x++,b.iushrn(1);n(!b.isZero());var _=new i(1).toRed(this),S=_.redNeg(),y=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);this.pow(l,y).cmp(S)!==0;)l.redIAdd(S);for(var E=this.pow(l,b),Y=this.pow(a,b.addn(1).iushrn(1)),L=this.pow(a,b),F=x;L.cmp(_)!==0;){for(var V=L,Z=0;V.cmp(_)!==0;Z++)V=V.redSqr();n(Z=0;x--){for(var E=c.words[x],Y=l-1;Y>=0;Y--){var L=E>>Y&1;if(_!==b[0]&&(_=this.sqr(_)),L===0&&S===0){y=0;continue}S<<=1,S|=L,y++,!(y!==m&&(x!==0||Y!==0))&&(_=this.mul(_,b[S]),y=0,S=0)}l=26}return _},P.prototype.convertTo=function(a){var c=a.umod(this.m);return c===a?c.clone():c},P.prototype.convertFrom=function(a){var c=a.clone();return c.red=null,c},i.mont=function(a){return new T(a)};function T(g){P.call(this,g),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}s(T,P),T.prototype.convertTo=function(a){return this.imod(a.ushln(this.shift))},T.prototype.convertFrom=function(a){var c=this.imod(a.mul(this.rinv));return c.red=null,c},T.prototype.imul=function(a,c){if(a.isZero()||c.isZero())return a.words[0]=0,a.length=1,a;var m=a.imul(c),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=m.isub(b).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},T.prototype.mul=function(a,c){if(a.isZero()||c.isZero())return new i(0)._forceRed(this);var m=a.mul(c),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=m.isub(b).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},T.prototype.invm=function(a){var c=this.imod(a._invmp(this.m).mul(this.r2));return c._forceRed(this)}})(t,ue)})(jF);const zF=kw;var KF=zF.BN;function qF(t){return new KF(t,36).toString(16)}function GF(t){return"0x"+JA.keccak_256(TM(t))}const VF="address/5.5.0",k0=new wn(VF);function C5(t){kM(t,20)||k0.throwArgumentError("invalid address","address",t),t=t.toLowerCase();const e=t.substring(2).split(""),r=new Uint8Array(40);for(let s=0;s<40;s++)r[s]=e[s].charCodeAt(0);const n=TM(GF(r));for(let s=0;s<40;s+=2)n[s>>1]>>4>=8&&(e[s]=e[s].toUpperCase()),(n[s>>1]&15)>=8&&(e[s+1]=e[s+1].toUpperCase());return"0x"+e.join("")}const WF=9007199254740991;function ZF(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}const h3={};for(let t=0;t<10;t++)h3[String(t)]=String(t);for(let t=0;t<26;t++)h3[String.fromCharCode(65+t)]=String(10+t);const T5=Math.floor(ZF(WF));function YF(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>h3[n]).join("");for(;e.length>=T5;){let n=e.substring(0,T5);e=parseInt(n,10)%97+e.substring(n.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}function QF(t){let e=null;if(typeof t!="string"&&k0.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))t.substring(0,2)!=="0x"&&(t="0x"+t),e=C5(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&k0.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==YF(t)&&k0.throwArgumentError("bad icap checksum","address",t),e=qF(t.substring(4));e.length<40;)e="0"+e;e=C5("0x"+e)}else k0.throwArgumentError("invalid address","address",t);return e}function XF(t){try{return QF(t),!0}catch{}return!1}var BM={},u1={},d3={},p3={},Ig={},JF={get exports(){return Ig},set exports(t){Ig=t}};function $F(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Pg={},eU={get exports(){return Pg},set exports(t){Pg=t}},Zt={},Cl={},k5={get exports(){return Cl},set exports(t){Cl=t}},Wt={},tU={get exports(){return Wt},set exports(t){Wt=t}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(t,e){var r=mt,n=r.Buffer;function s(o,f){for(var u in o)f[u]=o[u]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(s(r,e),e.Buffer=i);function i(o,f,u){return n(o,f,u)}i.prototype=Object.create(n.prototype),s(n,i),i.from=function(o,f,u){if(typeof o=="number")throw new TypeError("Argument must not be a number");return n(o,f,u)},i.alloc=function(o,f,u){if(typeof o!="number")throw new TypeError("Argument must be a number");var h=n(o);return f!==void 0?typeof u=="string"?h.fill(f,u):h.fill(f):h.fill(0),h},i.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n(o)},i.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(o)}})(tU,Wt);var Pb=65536,rU=4294967295;function nU(){throw new Error(`Secure random number generation is not supported by this browser. -Use Chrome, Firefox or Internet Explorer 11`)}var iU=Wt.Buffer,Og=ue.crypto||ue.msCrypto;Og&&Og.getRandomValues?k5.exports=sU:k5.exports=nU;function sU(t,e){if(t>rU)throw new RangeError("requested too many random bytes");var r=iU.allocUnsafe(t);if(t>0)if(t>Pb)for(var n=0;n0&&(o=r[0]),o instanceof Error)throw o;var f=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw f.context=o,f}var u=i[e];if(u===void 0)return!1;if(typeof u=="function")B5(u,this,r);else for(var h=u.length,p=UM(u,h),n=0;n0&&o.length>s&&!o.warned){o.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=t,f.type=e,f.count=o.length,fU(f)}return t}en.prototype.addListener=function(e,r){return OM(this,e,r,!1)};en.prototype.on=en.prototype.addListener;en.prototype.prependListener=function(e,r){return OM(this,e,r,!0)};function lU(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function LM(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},s=lU.bind(n);return s.listener=r,n.wrapFn=s,s}en.prototype.once=function(e,r){return Zv(r),this.on(e,LM(this,e,r)),this};en.prototype.prependOnceListener=function(e,r){return Zv(r),this.prependListener(e,LM(this,e,r)),this};en.prototype.removeListener=function(e,r){var n,s,i,o,f;if(Zv(r),s=this._events,s===void 0)return this;if(n=s[e],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete s[e],s.removeListener&&this.emit("removeListener",e,n.listener||r));else if(typeof n!="function"){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){f=n[o].listener,i=o;break}if(i<0)return this;i===0?n.shift():cU(n,i),n.length===1&&(s[e]=n[0]),s.removeListener!==void 0&&this.emit("removeListener",e,f||r)}return this};en.prototype.off=en.prototype.removeListener;en.prototype.removeAllListeners=function(e){var r,n,s;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),o;for(s=0;s=0;s--)this.removeListener(e,r[s]);return this};function DM(t,e,r){var n=t._events;if(n===void 0)return[];var s=n[e];return s===void 0?[]:typeof s=="function"?r?[s.listener||s]:[s]:r?uU(s):UM(s,s.length)}en.prototype.listeners=function(e){return DM(this,e,!0)};en.prototype.rawListeners=function(e){return DM(this,e,!1)};en.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):FM.call(t,e)};en.prototype.listenerCount=FM;function FM(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}en.prototype.eventNames=function(){return this._eventsCount>0?zm(this._events):[]};function UM(t,e){for(var r=new Array(e),n=0;n"u"?dr:bo(Uint8Array),Ic={"%AggregateError%":typeof AggregateError>"u"?dr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?dr:ArrayBuffer,"%ArrayIteratorPrototype%":Eu?bo([][Symbol.iterator]()):dr,"%AsyncFromSyncIteratorPrototype%":dr,"%AsyncFunction%":Bu,"%AsyncGenerator%":Bu,"%AsyncGeneratorFunction%":Bu,"%AsyncIteratorPrototype%":Bu,"%Atomics%":typeof Atomics>"u"?dr:Atomics,"%BigInt%":typeof BigInt>"u"?dr:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?dr:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?dr:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?dr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?dr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?dr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?dr:FinalizationRegistry,"%Function%":qM,"%GeneratorFunction%":Bu,"%Int8Array%":typeof Int8Array>"u"?dr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?dr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?dr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Eu?bo(bo([][Symbol.iterator]())):dr,"%JSON%":typeof JSON=="object"?JSON:dr,"%Map%":typeof Map>"u"?dr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Eu?dr:bo(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?dr:Promise,"%Proxy%":typeof Proxy>"u"?dr:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?dr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?dr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Eu?dr:bo(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?dr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Eu?bo(""[Symbol.iterator]()):dr,"%Symbol%":Eu?Symbol:dr,"%SyntaxError%":pd,"%ThrowTypeError%":MU,"%TypedArray%":SU,"%TypeError%":ch,"%Uint8Array%":typeof Uint8Array>"u"?dr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?dr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?dr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?dr:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?dr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?dr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?dr:WeakSet};try{null.error}catch(t){var _U=bo(bo(t));Ic["%Error.prototype%"]=_U}var RU=function t(e){var r;if(e==="%AsyncFunction%")r=Lb("async function () {}");else if(e==="%GeneratorFunction%")r=Lb("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Lb("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var s=t("%AsyncGenerator%");s&&(r=bo(s.prototype))}return Ic[e]=r,r},O5={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},d1=m3,Lg=EU,NU=d1.call(Function.call,Array.prototype.concat),CU=d1.call(Function.apply,Array.prototype.splice),L5=d1.call(Function.call,String.prototype.replace),Dg=d1.call(Function.call,String.prototype.slice),TU=d1.call(Function.call,RegExp.prototype.exec),kU=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,BU=/\\(\\)?/g,IU=function(e){var r=Dg(e,0,1),n=Dg(e,-1);if(r==="%"&&n!=="%")throw new pd("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new pd("invalid intrinsic syntax, expected opening `%`");var s=[];return L5(e,kU,function(i,o,f,u){s[s.length]=f?L5(u,BU,"$1"):o||i}),s},PU=function(e,r){var n=e,s;if(Lg(O5,n)&&(s=O5[n],n="%"+s[0]+"%"),Lg(Ic,n)){var i=Ic[n];if(i===Bu&&(i=RU(n)),typeof i>"u"&&!r)throw new ch("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:s,name:n,value:i}}throw new pd("intrinsic "+e+" does not exist!")},g3=function(e,r){if(typeof e!="string"||e.length===0)throw new ch("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ch('"allowMissing" argument must be a boolean');if(TU(/^%?[^%]*%?$/,e)===null)throw new pd("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=IU(e),s=n.length>0?n[0]:"",i=PU("%"+s+"%",r),o=i.name,f=i.value,u=!1,h=i.alias;h&&(s=h[0],CU(n,NU([0,1],h)));for(var p=1,d=!0;p=n.length){var M=Bc(f,v);d=!!M,d&&"get"in M&&!("originalValue"in M.get)?f=M.get:f=f[v]}else d=Lg(f,v),f=f[v];d&&!u&&(Ic[o]=f)}}return f},Bw={},OU={get exports(){return Bw},set exports(t){Bw=t}};(function(t){var e=m3,r=g3,n=r("%Function.prototype.apply%"),s=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||e.call(s,n),o=r("%Object.getOwnPropertyDescriptor%",!0),f=r("%Object.defineProperty%",!0),u=r("%Math.max%");if(f)try{f({},"a",{value:1})}catch{f=null}t.exports=function(d){var v=i(e,s,arguments);if(o&&f){var w=o(v,"length");w.configurable&&f(v,"length",{value:1+u(0,d.length-(arguments.length-1))})}return v};var h=function(){return i(e,n,arguments)};f?f(t.exports,"apply",{value:h}):t.exports.apply=h})(OU);var GM=g3,VM=Bw,LU=VM(GM("String.prototype.indexOf")),v3=function(e,r){var n=GM(e,!!r);return typeof n=="function"&&LU(e,".prototype.")>-1?VM(n):n},DU=Yv(),FU=v3,Iw=FU("Object.prototype.toString"),Qv=function(e){return DU&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Iw(e)==="[object Arguments]"},WM=function(e){return Qv(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Iw(e)!=="[object Array]"&&Iw(e.callee)==="[object Function]"},UU=function(){return Qv(arguments)}();Qv.isLegacyArguments=WM;var HU=UU?Qv:WM,jU=Object.prototype.toString,zU=Function.prototype.toString,KU=/^\s*(?:function)?\*/,ZM=Yv(),Fb=Object.getPrototypeOf,qU=function(){if(!ZM)return!1;try{return Function("return function*() {}")()}catch{}},Ub,GU=function(e){if(typeof e!="function")return!1;if(KU.test(zU.call(e)))return!0;if(!ZM){var r=jU.call(e);return r==="[object GeneratorFunction]"}if(!Fb)return!1;if(typeof Ub>"u"){var n=qU();Ub=n?Fb(n):!1}return Fb(e)===Ub},YM=Function.prototype.toString,Gu=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Pw,Km;if(typeof Gu=="function"&&typeof Object.defineProperty=="function")try{Pw=Object.defineProperty({},"length",{get:function(){throw Km}}),Km={},Gu(function(){throw 42},null,Pw)}catch(t){t!==Km&&(Gu=null)}else Gu=null;var VU=/^\s*class\b/,Ow=function(e){try{var r=YM.call(e);return VU.test(r)}catch{return!1}},Hb=function(e){try{return Ow(e)?!1:(YM.call(e),!0)}catch{return!1}},qm=Object.prototype.toString,WU="[object Object]",ZU="[object Function]",YU="[object GeneratorFunction]",QU="[object HTMLAllCollection]",XU="[object HTML document.all class]",JU="[object HTMLCollection]",$U=typeof Symbol=="function"&&!!Symbol.toStringTag,eH=!(0 in[,]),Lw=function(){return!1};if(typeof document=="object"){var tH=document.all;qm.call(tH)===qm.call(document.all)&&(Lw=function(e){if((eH||!e)&&(typeof e>"u"||typeof e=="object"))try{var r=qm.call(e);return(r===QU||r===XU||r===JU||r===WU)&&e("")==null}catch{}return!1})}var rH=Gu?function(e){if(Lw(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{Gu(e,null,Pw)}catch(r){if(r!==Km)return!1}return!Ow(e)&&Hb(e)}:function(e){if(Lw(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if($U)return Hb(e);if(Ow(e))return!1;var r=qm.call(e);return r!==ZU&&r!==YU&&!/^\[object HTML/.test(r)?!1:Hb(e)},nH=rH,iH=Object.prototype.toString,QM=Object.prototype.hasOwnProperty,sH=function(e,r,n){for(var s=0,i=e.length;s=3&&(s=n),iH.call(e)==="[object Array]"?sH(e,r,s):typeof e=="string"?aH(e,r,s):oH(e,r,s)},XM=fH,jb=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],lH=typeof globalThis>"u"?ue:globalThis,JM=function(){for(var e=[],r=0;r"u"?ue:globalThis,rS=uH(),pH=y3("Array.prototype.indexOf",!0)||function(e,r){for(var n=0;n-1}return Vm?gH(e):!1},sS=XM,vH=JM,aS=v3,Kb=$M,yH=aS("Object.prototype.toString"),oS=Yv(),D5=typeof globalThis>"u"?ue:globalThis,bH=vH(),wH=aS("String.prototype.slice"),fS={},qb=Object.getPrototypeOf;oS&&Kb&&qb&&sS(bH,function(t){if(typeof D5[t]=="function"){var e=new D5[t];if(Symbol.toStringTag in e){var r=qb(e),n=Kb(r,Symbol.toStringTag);if(!n){var s=qb(r);n=Kb(s,Symbol.toStringTag)}fS[t]=n.get}}});var AH=function(e){var r=!1;return sS(fS,function(n,s){if(!r)try{var i=n.call(e);i===s&&(r=i)}catch{}}),r},xH=iS,EH=function(e){return xH(e)?!oS||!(Symbol.toStringTag in e)?wH(yH(e),8,-1):AH(e):!1};(function(t){var e=HU,r=GU,n=EH,s=iS;function i(X){return X.call.bind(X)}var o=typeof BigInt<"u",f=typeof Symbol<"u",u=i(Object.prototype.toString),h=i(Number.prototype.valueOf),p=i(String.prototype.valueOf),d=i(Boolean.prototype.valueOf);if(o)var v=i(BigInt.prototype.valueOf);if(f)var w=i(Symbol.prototype.valueOf);function A(X,ne){if(typeof X!="object")return!1;try{return ne(X),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=r,t.isTypedArray=s;function M(X){return typeof Promise<"u"&&X instanceof Promise||X!==null&&typeof X=="object"&&typeof X.then=="function"&&typeof X.catch=="function"}t.isPromise=M;function R(X){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(X):s(X)||E(X)}t.isArrayBufferView=R;function N(X){return n(X)==="Uint8Array"}t.isUint8Array=N;function C(X){return n(X)==="Uint8ClampedArray"}t.isUint8ClampedArray=C;function B(X){return n(X)==="Uint16Array"}t.isUint16Array=B;function O(X){return n(X)==="Uint32Array"}t.isUint32Array=O;function D(X){return n(X)==="Int8Array"}t.isInt8Array=D;function q(X){return n(X)==="Int16Array"}t.isInt16Array=q;function W(X){return n(X)==="Int32Array"}t.isInt32Array=W;function k(X){return n(X)==="Float32Array"}t.isFloat32Array=k;function I(X){return n(X)==="Float64Array"}t.isFloat64Array=I;function H(X){return n(X)==="BigInt64Array"}t.isBigInt64Array=H;function P(X){return n(X)==="BigUint64Array"}t.isBigUint64Array=P;function T(X){return u(X)==="[object Map]"}T.working=typeof Map<"u"&&T(new Map);function g(X){return typeof Map>"u"?!1:T.working?T(X):X instanceof Map}t.isMap=g;function a(X){return u(X)==="[object Set]"}a.working=typeof Set<"u"&&a(new Set);function c(X){return typeof Set>"u"?!1:a.working?a(X):X instanceof Set}t.isSet=c;function m(X){return u(X)==="[object WeakMap]"}m.working=typeof WeakMap<"u"&&m(new WeakMap);function b(X){return typeof WeakMap>"u"?!1:m.working?m(X):X instanceof WeakMap}t.isWeakMap=b;function x(X){return u(X)==="[object WeakSet]"}x.working=typeof WeakSet<"u"&&x(new WeakSet);function _(X){return x(X)}t.isWeakSet=_;function S(X){return u(X)==="[object ArrayBuffer]"}S.working=typeof ArrayBuffer<"u"&&S(new ArrayBuffer);function y(X){return typeof ArrayBuffer>"u"?!1:S.working?S(X):X instanceof ArrayBuffer}t.isArrayBuffer=y;function l(X){return u(X)==="[object DataView]"}l.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&l(new DataView(new ArrayBuffer(1),0,1));function E(X){return typeof DataView>"u"?!1:l.working?l(X):X instanceof DataView}t.isDataView=E;var Y=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function L(X){return u(X)==="[object SharedArrayBuffer]"}function F(X){return typeof Y>"u"?!1:(typeof L.working>"u"&&(L.working=L(new Y)),L.working?L(X):X instanceof Y)}t.isSharedArrayBuffer=F;function V(X){return u(X)==="[object AsyncFunction]"}t.isAsyncFunction=V;function Z(X){return u(X)==="[object Map Iterator]"}t.isMapIterator=Z;function ee(X){return u(X)==="[object Set Iterator]"}t.isSetIterator=ee;function ce(X){return u(X)==="[object Generator]"}t.isGeneratorObject=ce;function U(X){return u(X)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=U;function j(X){return A(X,h)}t.isNumberObject=j;function se(X){return A(X,p)}t.isStringObject=se;function re(X){return A(X,d)}t.isBooleanObject=re;function oe(X){return o&&A(X,v)}t.isBigIntObject=oe;function Q(X){return f&&A(X,w)}t.isSymbolObject=Q;function z(X){return j(X)||se(X)||re(X)||oe(X)||Q(X)}t.isBoxedPrimitive=z;function G(X){return typeof Uint8Array<"u"&&(y(X)||F(X))}t.isAnyArrayBuffer=G,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(X){Object.defineProperty(t,X,{enumerable:!1,value:function(){throw new Error(X+" is not supported in userland")}})})})(zM);var MH=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"};(function(t){var e=Object.getOwnPropertyDescriptors||function(E){for(var Y=Object.keys(E),L={},F=0;F=F)return ee;switch(ee){case"%s":return String(L[Y++]);case"%d":return Number(L[Y++]);case"%j":try{return JSON.stringify(L[Y++])}catch{return"[Circular]"}default:return ee}}),Z=L[Y];Y"u")return function(){return t.deprecate(l,E).apply(this,arguments)};var Y=!1;function L(){if(!Y){if(ft.throwDeprecation)throw new Error(E);ft.traceDeprecation?console.trace(E):console.error(E),Y=!0}return l.apply(this,arguments)}return L};var n={},s=/^$/;if({}.NODE_DEBUG){var i={}.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+i+"$","i")}t.debuglog=function(l){if(l=l.toUpperCase(),!n[l])if(s.test(l)){var E=ft.pid;n[l]=function(){var Y=t.format.apply(t,arguments);console.error("%s %d: %s",l,E,Y)}}else n[l]=function(){};return n[l]};function o(l,E){var Y={seen:[],stylize:u};return arguments.length>=3&&(Y.depth=arguments[2]),arguments.length>=4&&(Y.colors=arguments[3]),N(E)?Y.showHidden=E:E&&t._extend(Y,E),W(Y.showHidden)&&(Y.showHidden=!1),W(Y.depth)&&(Y.depth=2),W(Y.colors)&&(Y.colors=!1),W(Y.customInspect)&&(Y.customInspect=!0),Y.colors&&(Y.stylize=f),p(Y,l,Y.depth)}t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function f(l,E){var Y=o.styles[E];return Y?"\x1B["+o.colors[Y][0]+"m"+l+"\x1B["+o.colors[Y][1]+"m":l}function u(l,E){return l}function h(l){var E={};return l.forEach(function(Y,L){E[Y]=!0}),E}function p(l,E,Y){if(l.customInspect&&E&&T(E.inspect)&&E.inspect!==t.inspect&&!(E.constructor&&E.constructor.prototype===E)){var L=E.inspect(Y,l);return D(L)||(L=p(l,L,Y)),L}var F=d(l,E);if(F)return F;var V=Object.keys(E),Z=h(V);if(l.showHidden&&(V=Object.getOwnPropertyNames(E)),P(E)&&(V.indexOf("message")>=0||V.indexOf("description")>=0))return v(E);if(V.length===0){if(T(E)){var ee=E.name?": "+E.name:"";return l.stylize("[Function"+ee+"]","special")}if(k(E))return l.stylize(RegExp.prototype.toString.call(E),"regexp");if(H(E))return l.stylize(Date.prototype.toString.call(E),"date");if(P(E))return v(E)}var ce="",U=!1,j=["{","}"];if(R(E)&&(U=!0,j=["[","]"]),T(E)){var se=E.name?": "+E.name:"";ce=" [Function"+se+"]"}if(k(E)&&(ce=" "+RegExp.prototype.toString.call(E)),H(E)&&(ce=" "+Date.prototype.toUTCString.call(E)),P(E)&&(ce=" "+v(E)),V.length===0&&(!U||E.length==0))return j[0]+ce+j[1];if(Y<0)return k(E)?l.stylize(RegExp.prototype.toString.call(E),"regexp"):l.stylize("[Object]","special");l.seen.push(E);var re;return U?re=w(l,E,Y,Z,V):re=V.map(function(oe){return A(l,E,Y,Z,oe,U)}),l.seen.pop(),M(re,ce,j)}function d(l,E){if(W(E))return l.stylize("undefined","undefined");if(D(E)){var Y="'"+JSON.stringify(E).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return l.stylize(Y,"string")}if(O(E))return l.stylize(""+E,"number");if(N(E))return l.stylize(""+E,"boolean");if(C(E))return l.stylize("null","null")}function v(l){return"["+Error.prototype.toString.call(l)+"]"}function w(l,E,Y,L,F){for(var V=[],Z=0,ee=E.length;Z-1&&(V?ee=ee.split(` -`).map(function(U){return" "+U}).join(` -`).slice(2):ee=` -`+ee.split(` -`).map(function(U){return" "+U}).join(` -`))):ee=l.stylize("[Circular]","special")),W(Z)){if(V&&F.match(/^\d+$/))return ee;Z=JSON.stringify(""+F),Z.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Z=Z.slice(1,-1),Z=l.stylize(Z,"name")):(Z=Z.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Z=l.stylize(Z,"string"))}return Z+": "+ee}function M(l,E,Y){var L=l.reduce(function(F,V){return V.indexOf(` -`)>=0,F+V.replace(/\u001b\[\d\d?m/g,"").length+1},0);return L>60?Y[0]+(E===""?"":E+` - `)+" "+l.join(`, - `)+" "+Y[1]:Y[0]+E+" "+l.join(", ")+" "+Y[1]}t.types=zM;function R(l){return Array.isArray(l)}t.isArray=R;function N(l){return typeof l=="boolean"}t.isBoolean=N;function C(l){return l===null}t.isNull=C;function B(l){return l==null}t.isNullOrUndefined=B;function O(l){return typeof l=="number"}t.isNumber=O;function D(l){return typeof l=="string"}t.isString=D;function q(l){return typeof l=="symbol"}t.isSymbol=q;function W(l){return l===void 0}t.isUndefined=W;function k(l){return I(l)&&a(l)==="[object RegExp]"}t.isRegExp=k,t.types.isRegExp=k;function I(l){return typeof l=="object"&&l!==null}t.isObject=I;function H(l){return I(l)&&a(l)==="[object Date]"}t.isDate=H,t.types.isDate=H;function P(l){return I(l)&&(a(l)==="[object Error]"||l instanceof Error)}t.isError=P,t.types.isNativeError=P;function T(l){return typeof l=="function"}t.isFunction=T;function g(l){return l===null||typeof l=="boolean"||typeof l=="number"||typeof l=="string"||typeof l=="symbol"||typeof l>"u"}t.isPrimitive=g,t.isBuffer=MH;function a(l){return Object.prototype.toString.call(l)}function c(l){return l<10?"0"+l.toString(10):l.toString(10)}var m=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function b(){var l=new Date,E=[c(l.getHours()),c(l.getMinutes()),c(l.getSeconds())].join(":");return[l.getDate(),m[l.getMonth()],E].join(" ")}t.log=function(){console.log("%s - %s",b(),t.format.apply(t,arguments))},t.inherits=Ht,t._extend=function(l,E){if(!E||!I(E))return l;for(var Y=Object.keys(E),L=Y.length;L--;)l[Y[L]]=E[Y[L]];return l};function x(l,E){return Object.prototype.hasOwnProperty.call(l,E)}var _=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;t.promisify=function(E){if(typeof E!="function")throw new TypeError('The "original" argument must be of type Function');if(_&&E[_]){var Y=E[_];if(typeof Y!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Y,_,{value:Y,enumerable:!1,writable:!1,configurable:!0}),Y}function Y(){for(var L,F,V=new Promise(function(ce,U){L=ce,F=U}),Z=[],ee=0;ee0?this.tail.next=M:this.head=M,this.tail=M,++this.length}},{key:"unshift",value:function(A){var M={data:A,next:this.head};this.length===0&&(this.tail=M),this.head=M,++this.length}},{key:"shift",value:function(){if(this.length!==0){var A=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,A}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(A){if(this.length===0)return"";for(var M=this.head,R=""+M.data;M=M.next;)R+=A+M.data;return R}},{key:"concat",value:function(A){if(this.length===0)return f.alloc(0);for(var M=f.allocUnsafe(A>>>0),R=this.head,N=0;R;)d(R.data,M,N),N+=R.data.length,R=R.next;return M}},{key:"consume",value:function(A,M){var R;return AC.length?C.length:A;if(B===C.length?N+=C:N+=C.slice(0,A),A-=B,A===0){B===C.length?(++R,M.next?this.head=M.next:this.head=this.tail=null):(this.head=M,M.data=C.slice(B));break}++R}return this.length-=R,N}},{key:"_getBuffer",value:function(A){var M=f.allocUnsafe(A),R=this.head,N=1;for(R.data.copy(M),A-=R.data.length;R=R.next;){var C=R.data,B=A>C.length?C.length:A;if(C.copy(M,M.length-A,0,B),A-=B,A===0){B===C.length?(++N,R.next?this.head=R.next:this.head=this.tail=null):(this.head=R,R.data=C.slice(B));break}++N}return this.length-=N,M}},{key:p,value:function(A,M){return h(this,e({},M,{depth:0,customInspect:!1}))}}]),v}(),Gb}function _H(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return n||s?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ft.nextTick(Dw,this,t)):ft.nextTick(Dw,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(i){!e&&i?r._writableState?r._writableState.errorEmitted?ft.nextTick(Wm,r):(r._writableState.errorEmitted=!0,ft.nextTick(U5,r,i)):ft.nextTick(U5,r,i):e?(ft.nextTick(Wm,r),e(i)):ft.nextTick(Wm,r)}),this)}function U5(t,e){Dw(t,e),Wm(t)}function Wm(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function RH(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Dw(t,e){t.emit("error",e)}function NH(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}var lS={destroy:_H,undestroy:RH,errorOrDestroy:NH},nu={};function CH(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var cS={};function ua(t,e,r){r||(r=Error);function n(i,o,f){return typeof e=="string"?e:e(i,o,f)}var s=function(i){CH(o,i);function o(f,u,h){return i.call(this,n(f,u,h))||this}return o}(r);s.prototype.name=r.name,s.prototype.code=t,cS[t]=s}function H5(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(n){return String(n)}),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:r===2?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}else return"of ".concat(e," ").concat(String(t))}function TH(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function kH(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function BH(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}ua("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);ua("ERR_INVALID_ARG_TYPE",function(t,e,r){var n;typeof e=="string"&&TH(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";var s;if(kH(t," argument"))s="The ".concat(t," ").concat(n," ").concat(H5(e,"type"));else{var i=BH(t,".")?"property":"argument";s='The "'.concat(t,'" ').concat(i," ").concat(n," ").concat(H5(e,"type"))}return s+=". Received type ".concat(typeof r),s},TypeError);ua("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");ua("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});ua("ERR_STREAM_PREMATURE_CLOSE","Premature close");ua("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});ua("ERR_MULTIPLE_CALLBACK","Callback called multiple times");ua("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");ua("ERR_STREAM_WRITE_AFTER_END","write after end");ua("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);ua("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);ua("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");nu.codes=cS;var IH=nu.codes.ERR_INVALID_OPT_VALUE;function PH(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function OH(t,e,r,n){var s=PH(e,n,r);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var i=n?r:"highWaterMark";throw new IH(i,s)}return Math.floor(s)}return t.objectMode?16:16*1024}var uS={getHighWaterMark:OH},hS=LH;function LH(t,e){if(Vb("noDeprecation"))return t;var r=!1;function n(){if(!r){if(Vb("throwDeprecation"))throw new Error(e);Vb("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return n}function Vb(t){try{if(!ue.localStorage)return!1}catch{return!1}var e=ue.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}var Wb,j5;function dS(){if(j5)return Wb;j5=1,Wb=k;function t(F){var V=this;this.next=null,this.entry=null,this.finish=function(){L(V,F)}}var e;k.WritableState=q;var r={deprecate:hS},n=jM,s=mt.Buffer,i=ue.Uint8Array||function(){};function o(F){return s.from(F)}function f(F){return s.isBuffer(F)||F instanceof i}var u=lS,h=uS,p=h.getHighWaterMark,d=nu.codes,v=d.ERR_INVALID_ARG_TYPE,w=d.ERR_METHOD_NOT_IMPLEMENTED,A=d.ERR_MULTIPLE_CALLBACK,M=d.ERR_STREAM_CANNOT_PIPE,R=d.ERR_STREAM_DESTROYED,N=d.ERR_STREAM_NULL_VALUES,C=d.ERR_STREAM_WRITE_AFTER_END,B=d.ERR_UNKNOWN_ENCODING,O=u.errorOrDestroy;Ht(k,n);function D(){}function q(F,V,Z){e=e||md(),F=F||{},typeof Z!="boolean"&&(Z=V instanceof e),this.objectMode=!!F.objectMode,Z&&(this.objectMode=this.objectMode||!!F.writableObjectMode),this.highWaterMark=p(this,F,"writableHighWaterMark",Z),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ee=F.decodeStrings===!1;this.decodeStrings=!ee,this.defaultEncoding=F.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ce){m(V,ce)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=F.emitClose!==!1,this.autoDestroy=!!F.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}q.prototype.getBuffer=function(){for(var V=this.bufferedRequest,Z=[];V;)Z.push(V),V=V.next;return Z},function(){try{Object.defineProperty(q.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var W;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(W=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(V){return W.call(this,V)?!0:this!==k?!1:V&&V._writableState instanceof q}})):W=function(V){return V instanceof this};function k(F){e=e||md();var V=this instanceof e;if(!V&&!W.call(k,this))return new k(F);this._writableState=new q(F,this,V),this.writable=!0,F&&(typeof F.write=="function"&&(this._write=F.write),typeof F.writev=="function"&&(this._writev=F.writev),typeof F.destroy=="function"&&(this._destroy=F.destroy),typeof F.final=="function"&&(this._final=F.final)),n.call(this)}k.prototype.pipe=function(){O(this,new M)};function I(F,V){var Z=new C;O(F,Z),ft.nextTick(V,Z)}function H(F,V,Z,ee){var ce;return Z===null?ce=new N:typeof Z!="string"&&!V.objectMode&&(ce=new v("chunk",["string","Buffer"],Z)),ce?(O(F,ce),ft.nextTick(ee,ce),!1):!0}k.prototype.write=function(F,V,Z){var ee=this._writableState,ce=!1,U=!ee.objectMode&&f(F);return U&&!s.isBuffer(F)&&(F=o(F)),typeof V=="function"&&(Z=V,V=null),U?V="buffer":V||(V=ee.defaultEncoding),typeof Z!="function"&&(Z=D),ee.ending?I(this,Z):(U||H(this,ee,F,Z))&&(ee.pendingcb++,ce=T(this,ee,U,F,V,Z)),ce},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var F=this._writableState;F.corked&&(F.corked--,!F.writing&&!F.corked&&!F.bufferProcessing&&F.bufferedRequest&&_(this,F))},k.prototype.setDefaultEncoding=function(V){if(typeof V=="string"&&(V=V.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((V+"").toLowerCase())>-1))throw new B(V);return this._writableState.defaultEncoding=V,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function P(F,V,Z){return!F.objectMode&&F.decodeStrings!==!1&&typeof V=="string"&&(V=s.from(V,Z)),V}Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function T(F,V,Z,ee,ce,U){if(!Z){var j=P(V,ee,ce);ee!==j&&(Z=!0,ce="buffer",ee=j)}var se=V.objectMode?1:ee.length;V.length+=se;var re=V.length>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function UH(t,e,r){var n=e.length-1;if(n=0?(s>0&&(t.lastNeed=s-1),s):--n=0?(s>0&&(t.lastNeed=s-2),s):--n=0?(s>0&&(s===2?s=0:t.lastNeed=s-3),s):0))}function HH(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"�"}}function jH(t){var e=this.lastTotal-this.lastNeed,r=HH(this,t);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function zH(t,e){var r=UH(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function KH(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function qH(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function GH(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function VH(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function WH(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function ZH(t){return t.toString(this.encoding)}function YH(t){return t&&t.length?this.write(t):""}var q5=nu.codes.ERR_STREAM_PREMATURE_CLOSE;function QH(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),s=0;s0)if(typeof j!="string"&&!Q.objectMode&&Object.getPrototypeOf(j)!==n.prototype&&(j=i(j)),re)Q.endEmitted?D(U,new N):P(U,Q,j,!0);else if(Q.ended)D(U,new M);else{if(Q.destroyed)return!1;Q.reading=!1,Q.decoder&&!se?(j=Q.decoder.write(j),Q.objectMode||j.length!==0?P(U,Q,j,!1):_(U,Q)):P(U,Q,j,!1)}else re||(Q.reading=!1,_(U,Q))}return!Q.ended&&(Q.length=g?U=g:(U--,U|=U>>>1,U|=U>>>2,U|=U>>>4,U|=U>>>8,U|=U>>>16,U++),U}function c(U,j){return U<=0||j.length===0&&j.ended?0:j.objectMode?1:U!==U?j.flowing&&j.length?j.buffer.head.data.length:j.length:(U>j.highWaterMark&&(j.highWaterMark=a(U)),U<=j.length?U:j.ended?j.length:(j.needReadable=!0,0))}I.prototype.read=function(U){u("read",U),U=parseInt(U,10);var j=this._readableState,se=U;if(U!==0&&(j.emittedReadable=!1),U===0&&j.needReadable&&((j.highWaterMark!==0?j.length>=j.highWaterMark:j.length>0)||j.ended))return u("read: emitReadable",j.length,j.ended),j.length===0&&j.ended?Z(this):b(this),null;if(U=c(U,j),U===0&&j.ended)return j.length===0&&Z(this),null;var re=j.needReadable;u("need readable",re),(j.length===0||j.length-U0?oe=V(U,j):oe=null,oe===null?(j.needReadable=j.length<=j.highWaterMark,U=0):(j.length-=U,j.awaitDrain=0),j.length===0&&(j.ended||(j.needReadable=!0),se!==U&&j.ended&&Z(this)),oe!==null&&this.emit("data",oe),oe};function m(U,j){if(u("onEofChunk"),!j.ended){if(j.decoder){var se=j.decoder.end();se&&se.length&&(j.buffer.push(se),j.length+=j.objectMode?1:se.length)}j.ended=!0,j.sync?b(U):(j.needReadable=!1,j.emittedReadable||(j.emittedReadable=!0,x(U)))}}function b(U){var j=U._readableState;u("emitReadable",j.needReadable,j.emittedReadable),j.needReadable=!1,j.emittedReadable||(u("emitReadable",j.flowing),j.emittedReadable=!0,ft.nextTick(x,U))}function x(U){var j=U._readableState;u("emitReadable_",j.destroyed,j.length,j.ended),!j.destroyed&&(j.length||j.ended)&&(U.emit("readable"),j.emittedReadable=!1),j.needReadable=!j.flowing&&!j.ended&&j.length<=j.highWaterMark,F(U)}function _(U,j){j.readingMore||(j.readingMore=!0,ft.nextTick(S,U,j))}function S(U,j){for(;!j.reading&&!j.ended&&(j.length1&&ce(re.pipes,U)!==-1)&&!ne&&(u("false write response, pause",re.awaitDrain),re.awaitDrain++),se.pause())}function ge(me){u("onerror",me),we(),U.removeListener("error",ge),e(U,"error")===0&&D(U,me)}W(U,"error",ge);function pe(){U.removeListener("finish",ot),we()}U.once("close",pe);function ot(){u("onfinish"),U.removeListener("close",pe),we()}U.once("finish",ot);function we(){u("unpipe"),se.unpipe(U)}return U.emit("pipe",se),re.flowing||(u("pipe resume"),se.resume()),U};function y(U){return function(){var se=U._readableState;u("pipeOnDrain",se.awaitDrain),se.awaitDrain&&se.awaitDrain--,se.awaitDrain===0&&e(U,"data")&&(se.flowing=!0,F(U))}}I.prototype.unpipe=function(U){var j=this._readableState,se={hasUnpiped:!1};if(j.pipesCount===0)return this;if(j.pipesCount===1)return U&&U!==j.pipes?this:(U||(U=j.pipes),j.pipes=null,j.pipesCount=0,j.flowing=!1,U&&U.emit("unpipe",this,se),this);if(!U){var re=j.pipes,oe=j.pipesCount;j.pipes=null,j.pipesCount=0,j.flowing=!1;for(var Q=0;Q0,re.flowing!==!1&&this.resume()):U==="readable"&&!re.endEmitted&&!re.readableListening&&(re.readableListening=re.needReadable=!0,re.flowing=!1,re.emittedReadable=!1,u("on readable",re.length,re.reading),re.length?b(this):re.reading||ft.nextTick(E,this)),se},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(U,j){var se=r.prototype.removeListener.call(this,U,j);return U==="readable"&&ft.nextTick(l,this),se},I.prototype.removeAllListeners=function(U){var j=r.prototype.removeAllListeners.apply(this,arguments);return(U==="readable"||U===void 0)&&ft.nextTick(l,this),j};function l(U){var j=U._readableState;j.readableListening=U.listenerCount("readable")>0,j.resumeScheduled&&!j.paused?j.flowing=!0:U.listenerCount("data")>0&&U.resume()}function E(U){u("readable nexttick read 0"),U.read(0)}I.prototype.resume=function(){var U=this._readableState;return U.flowing||(u("resume"),U.flowing=!U.readableListening,Y(this,U)),U.paused=!1,this};function Y(U,j){j.resumeScheduled||(j.resumeScheduled=!0,ft.nextTick(L,U,j))}function L(U,j){u("resume",j.reading),j.reading||U.read(0),j.resumeScheduled=!1,U.emit("resume"),F(U),j.flowing&&!j.reading&&U.read(0)}I.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function F(U){var j=U._readableState;for(u("flow",j.flowing);j.flowing&&U.read()!==null;);}I.prototype.wrap=function(U){var j=this,se=this._readableState,re=!1;U.on("end",function(){if(u("wrapped end"),se.decoder&&!se.ended){var z=se.decoder.end();z&&z.length&&j.push(z)}j.push(null)}),U.on("data",function(z){if(u("wrapped data"),se.decoder&&(z=se.decoder.write(z)),!(se.objectMode&&z==null)&&!(!se.objectMode&&(!z||!z.length))){var G=j.push(z);G||(re=!0,U.pause())}});for(var oe in U)this[oe]===void 0&&typeof U[oe]=="function"&&(this[oe]=function(G){return function(){return U[G].apply(U,arguments)}}(oe));for(var Q=0;Q=j.length?(j.decoder?se=j.buffer.join(""):j.buffer.length===1?se=j.buffer.first():se=j.buffer.concat(j.length),j.buffer.clear()):se=j.buffer.consume(U,j.decoder),se}function Z(U){var j=U._readableState;u("endReadable",j.endEmitted),j.endEmitted||(j.ended=!0,ft.nextTick(ee,j,U))}function ee(U,j){if(u("endReadableNT",U.endEmitted,U.length),!U.endEmitted&&U.length===0&&(U.endEmitted=!0,j.readable=!1,j.emit("end"),U.autoDestroy)){var se=j._writableState;(!se||se.autoDestroy&&se.finished)&&j.destroy()}}typeof Symbol=="function"&&(I.from=function(U,j){return O===void 0&&(O=ej()),O(I,U,j)});function ce(U,j){for(var se=0,re=U.length;se0;return hj(o,u,h,function(p){s||(s=p),p&&i.forEach(Q5),!u&&(i.forEach(Q5),n(s))})});return e.reduce(dj)}var gj=mj;(function(t,e){e=t.exports=mS(),e.Stream=e,e.Readable=e,e.Writable=dS(),e.Duplex=md(),e.Transform=gS,e.PassThrough=oj,e.finished=w3,e.pipeline=gj})(aU,pp);var Fg=Wt.Buffer,bS=pp.Transform,vj=Ht;function yj(t,e){if(!Fg.isBuffer(t)&&typeof t!="string")throw new TypeError(e+" must be a string or a buffer")}function Dl(t){bS.call(this),this._block=Fg.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}vj(Dl,bS);Dl.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(s){n=s}r(n)};Dl.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(r){e=r}t(e)};Dl.prototype.update=function(t,e){if(yj(t,"Data"),this._finalized)throw new Error("Digest already called");Fg.isBuffer(t)||(t=Fg.from(t,e));for(var r=this._block,n=0;this._blockOffset+t.length-n>=this._blockSize;){for(var s=this._blockOffset;s0;++i)this._length[i]+=o,o=this._length[i]/4294967296|0,o>0&&(this._length[i]-=4294967296*o);return this};Dl.prototype._update=function(){throw new Error("_update is not implemented")};Dl.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();t!==void 0&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e};Dl.prototype._digest=function(){throw new Error("_digest is not implemented")};var wS=Dl,bj=Ht,AS=wS,wj=Wt.Buffer,Aj=new Array(16);function $v(){AS.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}bj($v,AS);$v.prototype._update=function(){for(var t=Aj,e=0;e<16;++e)t[e]=this._block.readInt32LE(e*4);var r=this._a,n=this._b,s=this._c,i=this._d;r=_i(r,n,s,i,t[0],3614090360,7),i=_i(i,r,n,s,t[1],3905402710,12),s=_i(s,i,r,n,t[2],606105819,17),n=_i(n,s,i,r,t[3],3250441966,22),r=_i(r,n,s,i,t[4],4118548399,7),i=_i(i,r,n,s,t[5],1200080426,12),s=_i(s,i,r,n,t[6],2821735955,17),n=_i(n,s,i,r,t[7],4249261313,22),r=_i(r,n,s,i,t[8],1770035416,7),i=_i(i,r,n,s,t[9],2336552879,12),s=_i(s,i,r,n,t[10],4294925233,17),n=_i(n,s,i,r,t[11],2304563134,22),r=_i(r,n,s,i,t[12],1804603682,7),i=_i(i,r,n,s,t[13],4254626195,12),s=_i(s,i,r,n,t[14],2792965006,17),n=_i(n,s,i,r,t[15],1236535329,22),r=Ri(r,n,s,i,t[1],4129170786,5),i=Ri(i,r,n,s,t[6],3225465664,9),s=Ri(s,i,r,n,t[11],643717713,14),n=Ri(n,s,i,r,t[0],3921069994,20),r=Ri(r,n,s,i,t[5],3593408605,5),i=Ri(i,r,n,s,t[10],38016083,9),s=Ri(s,i,r,n,t[15],3634488961,14),n=Ri(n,s,i,r,t[4],3889429448,20),r=Ri(r,n,s,i,t[9],568446438,5),i=Ri(i,r,n,s,t[14],3275163606,9),s=Ri(s,i,r,n,t[3],4107603335,14),n=Ri(n,s,i,r,t[8],1163531501,20),r=Ri(r,n,s,i,t[13],2850285829,5),i=Ri(i,r,n,s,t[2],4243563512,9),s=Ri(s,i,r,n,t[7],1735328473,14),n=Ri(n,s,i,r,t[12],2368359562,20),r=Ni(r,n,s,i,t[5],4294588738,4),i=Ni(i,r,n,s,t[8],2272392833,11),s=Ni(s,i,r,n,t[11],1839030562,16),n=Ni(n,s,i,r,t[14],4259657740,23),r=Ni(r,n,s,i,t[1],2763975236,4),i=Ni(i,r,n,s,t[4],1272893353,11),s=Ni(s,i,r,n,t[7],4139469664,16),n=Ni(n,s,i,r,t[10],3200236656,23),r=Ni(r,n,s,i,t[13],681279174,4),i=Ni(i,r,n,s,t[0],3936430074,11),s=Ni(s,i,r,n,t[3],3572445317,16),n=Ni(n,s,i,r,t[6],76029189,23),r=Ni(r,n,s,i,t[9],3654602809,4),i=Ni(i,r,n,s,t[12],3873151461,11),s=Ni(s,i,r,n,t[15],530742520,16),n=Ni(n,s,i,r,t[2],3299628645,23),r=Ci(r,n,s,i,t[0],4096336452,6),i=Ci(i,r,n,s,t[7],1126891415,10),s=Ci(s,i,r,n,t[14],2878612391,15),n=Ci(n,s,i,r,t[5],4237533241,21),r=Ci(r,n,s,i,t[12],1700485571,6),i=Ci(i,r,n,s,t[3],2399980690,10),s=Ci(s,i,r,n,t[10],4293915773,15),n=Ci(n,s,i,r,t[1],2240044497,21),r=Ci(r,n,s,i,t[8],1873313359,6),i=Ci(i,r,n,s,t[15],4264355552,10),s=Ci(s,i,r,n,t[6],2734768916,15),n=Ci(n,s,i,r,t[13],1309151649,21),r=Ci(r,n,s,i,t[4],4149444226,6),i=Ci(i,r,n,s,t[11],3174756917,10),s=Ci(s,i,r,n,t[2],718787259,15),n=Ci(n,s,i,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+s|0,this._d=this._d+i|0};$v.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=wj.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t};function ey(t,e){return t<>>32-e}function _i(t,e,r,n,s,i,o){return ey(t+(e&r|~e&n)+s+i|0,o)+e|0}function Ri(t,e,r,n,s,i,o){return ey(t+(e&n|r&~n)+s+i|0,o)+e|0}function Ni(t,e,r,n,s,i,o){return ey(t+(e^r^n)+s+i|0,o)+e|0}function Ci(t,e,r,n,s,i,o){return ey(t+(r^(e|~n))+s+i|0,o)+e|0}var A3=$v,e2=mt.Buffer,xj=Ht,xS=wS,Ej=new Array(16),h0=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],d0=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],p0=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],m0=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],g0=[0,1518500249,1859775393,2400959708,2840853838],v0=[1352829926,1548603684,1836072691,2053994217,0];function ty(){xS.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}xj(ty,xS);ty.prototype._update=function(){for(var t=Ej,e=0;e<16;++e)t[e]=this._block.readInt32LE(e*4);for(var r=this._a|0,n=this._b|0,s=this._c|0,i=this._d|0,o=this._e|0,f=this._a|0,u=this._b|0,h=this._c|0,p=this._d|0,d=this._e|0,v=0;v<80;v+=1){var w,A;v<16?(w=X5(r,n,s,i,o,t[h0[v]],g0[0],p0[v]),A=tx(f,u,h,p,d,t[d0[v]],v0[0],m0[v])):v<32?(w=J5(r,n,s,i,o,t[h0[v]],g0[1],p0[v]),A=ex(f,u,h,p,d,t[d0[v]],v0[1],m0[v])):v<48?(w=$5(r,n,s,i,o,t[h0[v]],g0[2],p0[v]),A=$5(f,u,h,p,d,t[d0[v]],v0[2],m0[v])):v<64?(w=ex(r,n,s,i,o,t[h0[v]],g0[3],p0[v]),A=J5(f,u,h,p,d,t[d0[v]],v0[3],m0[v])):(w=tx(r,n,s,i,o,t[h0[v]],g0[4],p0[v]),A=X5(f,u,h,p,d,t[d0[v]],v0[4],m0[v])),r=o,o=i,i=zc(s,10),s=n,n=w,f=d,d=p,p=zc(h,10),h=u,u=A}var M=this._b+s+p|0;this._b=this._c+i+d|0,this._c=this._d+o+f|0,this._d=this._e+r+u|0,this._e=this._a+n+h|0,this._a=M};ty.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=e2.alloc?e2.alloc(20):new e2(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t};function zc(t,e){return t<>>32-e}function X5(t,e,r,n,s,i,o,f){return zc(t+(e^r^n)+i+o|0,f)+s|0}function J5(t,e,r,n,s,i,o,f){return zc(t+(e&r|~e&n)+i+o|0,f)+s|0}function $5(t,e,r,n,s,i,o,f){return zc(t+((e|~r)^n)+i+o|0,f)+s|0}function ex(t,e,r,n,s,i,o,f){return zc(t+(e&n|r&~n)+i+o|0,f)+s|0}function tx(t,e,r,n,s,i,o,f){return zc(t+(e^(r|~n))+i+o|0,f)+s|0}var x3=ty,gp={},Mj={get exports(){return gp},set exports(t){gp=t}},ES=Wt.Buffer;function ry(t,e){this._block=ES.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}ry.prototype.update=function(t,e){typeof t=="string"&&(e=e||"utf8",t=ES.from(t,e));for(var r=this._block,n=this._blockSize,s=t.length,i=this._len,o=0;o=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(r&4294967295)>>>0,s=(r-n)/4294967296;this._block.writeUInt32BE(s,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var i=this._hash();return t?i.toString(t):i};ry.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var Od=ry,Sj=Ht,MS=Od,_j=Wt.Buffer,Rj=[1518500249,1859775393,-1894007588,-899497514],Nj=new Array(80);function m1(){this.init(),this._w=Nj,MS.call(this,64,56)}Sj(m1,MS);m1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Cj(t){return t<<5|t>>>27}function Tj(t){return t<<30|t>>>2}function kj(t,e,r,n){return t===0?e&r|~e&n:t===2?e&r|e&n|r&n:e^r^n}m1.prototype._update=function(t){for(var e=this._w,r=this._a|0,n=this._b|0,s=this._c|0,i=this._d|0,o=this._e|0,f=0;f<16;++f)e[f]=t.readInt32BE(f*4);for(;f<80;++f)e[f]=e[f-3]^e[f-8]^e[f-14]^e[f-16];for(var u=0;u<80;++u){var h=~~(u/20),p=Cj(r)+kj(h,n,s,i)+o+e[u]+Rj[h]|0;o=i,i=s,s=Tj(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=s+this._c|0,this._d=i+this._d|0,this._e=o+this._e|0};m1.prototype._hash=function(){var t=_j.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};var Bj=m1,Ij=Ht,SS=Od,Pj=Wt.Buffer,Oj=[1518500249,1859775393,-1894007588,-899497514],Lj=new Array(80);function g1(){this.init(),this._w=Lj,SS.call(this,64,56)}Ij(g1,SS);g1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Dj(t){return t<<1|t>>>31}function Fj(t){return t<<5|t>>>27}function Uj(t){return t<<30|t>>>2}function Hj(t,e,r,n){return t===0?e&r|~e&n:t===2?e&r|e&n|r&n:e^r^n}g1.prototype._update=function(t){for(var e=this._w,r=this._a|0,n=this._b|0,s=this._c|0,i=this._d|0,o=this._e|0,f=0;f<16;++f)e[f]=t.readInt32BE(f*4);for(;f<80;++f)e[f]=Dj(e[f-3]^e[f-8]^e[f-14]^e[f-16]);for(var u=0;u<80;++u){var h=~~(u/20),p=Fj(r)+Hj(h,n,s,i)+o+e[u]+Oj[h]|0;o=i,i=s,s=Uj(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=s+this._c|0,this._d=i+this._d|0,this._e=o+this._e|0};g1.prototype._hash=function(){var t=Pj.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};var jj=g1,zj=Ht,_S=Od,Kj=Wt.Buffer,qj=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Gj=new Array(64);function v1(){this.init(),this._w=Gj,_S.call(this,64,56)}zj(v1,_S);v1.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function Vj(t,e,r){return r^t&(e^r)}function Wj(t,e,r){return t&e|r&(t|e)}function Zj(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function Yj(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function Qj(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function Xj(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}v1.prototype._update=function(t){for(var e=this._w,r=this._a|0,n=this._b|0,s=this._c|0,i=this._d|0,o=this._e|0,f=this._f|0,u=this._g|0,h=this._h|0,p=0;p<16;++p)e[p]=t.readInt32BE(p*4);for(;p<64;++p)e[p]=Xj(e[p-2])+e[p-7]+Qj(e[p-15])+e[p-16]|0;for(var d=0;d<64;++d){var v=h+Yj(o)+Vj(o,f,u)+qj[d]+e[d]|0,w=Zj(r)+Wj(r,n,s)|0;h=u,u=f,f=o,o=i+v|0,i=s,s=n,n=r,r=v+w|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=s+this._c|0,this._d=i+this._d|0,this._e=o+this._e|0,this._f=f+this._f|0,this._g=u+this._g|0,this._h=h+this._h|0};v1.prototype._hash=function(){var t=Kj.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t};var RS=v1,Jj=Ht,$j=RS,ez=Od,tz=Wt.Buffer,rz=new Array(64);function ny(){this.init(),this._w=rz,ez.call(this,64,56)}Jj(ny,$j);ny.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};ny.prototype._hash=function(){var t=tz.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t};var nz=ny,iz=Ht,NS=Od,sz=Wt.Buffer,rx=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],az=new Array(160);function y1(){this.init(),this._w=az,NS.call(this,128,112)}iz(y1,NS);y1.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function nx(t,e,r){return r^t&(e^r)}function ix(t,e,r){return t&e|r&(t|e)}function sx(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function ax(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function oz(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function fz(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function lz(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function cz(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function si(t,e){return t>>>0>>0?1:0}y1.prototype._update=function(t){for(var e=this._w,r=this._ah|0,n=this._bh|0,s=this._ch|0,i=this._dh|0,o=this._eh|0,f=this._fh|0,u=this._gh|0,h=this._hh|0,p=this._al|0,d=this._bl|0,v=this._cl|0,w=this._dl|0,A=this._el|0,M=this._fl|0,R=this._gl|0,N=this._hl|0,C=0;C<32;C+=2)e[C]=t.readInt32BE(C*4),e[C+1]=t.readInt32BE(C*4+4);for(;C<160;C+=2){var B=e[C-30],O=e[C-15*2+1],D=oz(B,O),q=fz(O,B);B=e[C-2*2],O=e[C-2*2+1];var W=lz(B,O),k=cz(O,B),I=e[C-7*2],H=e[C-7*2+1],P=e[C-16*2],T=e[C-16*2+1],g=q+H|0,a=D+I+si(g,q)|0;g=g+k|0,a=a+W+si(g,k)|0,g=g+T|0,a=a+P+si(g,T)|0,e[C]=a,e[C+1]=g}for(var c=0;c<160;c+=2){a=e[c],g=e[c+1];var m=ix(r,n,s),b=ix(p,d,v),x=sx(r,p),_=sx(p,r),S=ax(o,A),y=ax(A,o),l=rx[c],E=rx[c+1],Y=nx(o,f,u),L=nx(A,M,R),F=N+y|0,V=h+S+si(F,N)|0;F=F+L|0,V=V+Y+si(F,L)|0,F=F+E|0,V=V+l+si(F,E)|0,F=F+g|0,V=V+a+si(F,g)|0;var Z=_+b|0,ee=x+m+si(Z,_)|0;h=u,N=R,u=f,R=M,f=o,M=A,A=w+F|0,o=i+V+si(A,w)|0,i=s,w=v,s=n,v=d,n=r,d=p,p=F+Z|0,r=V+ee+si(p,F)|0}this._al=this._al+p|0,this._bl=this._bl+d|0,this._cl=this._cl+v|0,this._dl=this._dl+w|0,this._el=this._el+A|0,this._fl=this._fl+M|0,this._gl=this._gl+R|0,this._hl=this._hl+N|0,this._ah=this._ah+r+si(this._al,p)|0,this._bh=this._bh+n+si(this._bl,d)|0,this._ch=this._ch+s+si(this._cl,v)|0,this._dh=this._dh+i+si(this._dl,w)|0,this._eh=this._eh+o+si(this._el,A)|0,this._fh=this._fh+f+si(this._fl,M)|0,this._gh=this._gh+u+si(this._gl,R)|0,this._hh=this._hh+h+si(this._hl,N)|0};y1.prototype._hash=function(){var t=sz.allocUnsafe(64);function e(r,n,s){t.writeInt32BE(r,s),t.writeInt32BE(n,s+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t};var CS=y1,uz=Ht,hz=CS,dz=Od,pz=Wt.Buffer,mz=new Array(160);function iy(){this.init(),this._w=mz,dz.call(this,128,112)}uz(iy,hz);iy.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};iy.prototype._hash=function(){var t=pz.allocUnsafe(48);function e(r,n,s){t.writeInt32BE(r,s),t.writeInt32BE(n,s+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t};var gz=iy,iu=Mj.exports=function(e){e=e.toLowerCase();var r=iu[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r};iu.sha=Bj;iu.sha1=jj;iu.sha224=nz;iu.sha256=RS;iu.sha384=gz;iu.sha512=CS;var t2,ox;function TS(){return ox||(ox=1,t2=Tl.EventEmitter),t2}var r2,fx;function vz(){if(fx)return r2;fx=1;function t(d,v){var w=Object.keys(d);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(d);v&&(A=A.filter(function(M){return Object.getOwnPropertyDescriptor(d,M).enumerable})),w.push.apply(w,A)}return w}function e(d){for(var v=1;v0?this.tail.next=w:this.head=w,this.tail=w,++this.length}unshift(v){const w={data:v,next:this.head};this.length===0&&(this.tail=w),this.head=w,++this.length}shift(){if(this.length===0)return;const v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}clear(){this.head=this.tail=null,this.length=0}join(v){if(this.length===0)return"";for(var w=this.head,A=""+w.data;w=w.next;)A+=v+w.data;return A}concat(v){if(this.length===0)return o.alloc(0);const w=o.allocUnsafe(v>>>0);for(var A=this.head,M=0;A;)p(A.data,w,M),M+=A.data.length,A=A.next;return w}consume(v,w){var A;return vR.length?R.length:v;if(N===R.length?M+=R:M+=R.slice(0,v),v-=N,v===0){N===R.length?(++A,w.next?this.head=w.next:this.head=this.tail=null):(this.head=w,w.data=R.slice(N));break}++A}return this.length-=A,M}_getBuffer(v){const w=o.allocUnsafe(v);var A=this.head,M=1;for(A.data.copy(w),v-=A.data.length;A=A.next;){const R=A.data,N=v>R.length?R.length:v;if(R.copy(w,w.length-v,0,N),v-=N,v===0){N===R.length?(++M,A.next?this.head=A.next:this.head=this.tail=null):(this.head=A,A.data=R.slice(N));break}++M}return this.length-=M,w}[h](v,w){return u(this,e(e({},w),{},{depth:0,customInspect:!1}))}},r2}var n2,lx;function kS(){if(lx)return n2;lx=1;function t(o,f){const u=this._readableState&&this._readableState.destroyed,h=this._writableState&&this._writableState.destroyed;return u||h?(f?f(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ft.nextTick(s,this,o)):ft.nextTick(s,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,p=>{!f&&p?this._writableState?this._writableState.errorEmitted?ft.nextTick(r,this):(this._writableState.errorEmitted=!0,ft.nextTick(e,this,p)):ft.nextTick(e,this,p):f?(ft.nextTick(r,this),f(p)):ft.nextTick(r,this)}),this)}function e(o,f){s(o,f),r(o)}function r(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(o,f){o.emit("error",f)}function i(o,f){const u=o._readableState,h=o._writableState;u&&u.autoDestroy||h&&h.autoDestroy?o.destroy(f):o.emit("error",f)}return n2={destroy:t,undestroy:n,errorOrDestroy:i},n2}var i2={},cx;function Ld(){if(cx)return i2;cx=1;function t(f,u){f.prototype=Object.create(u.prototype),f.prototype.constructor=f,f.__proto__=u}var e={};function r(f,u,h){h||(h=Error);function p(v,w,A){return typeof u=="string"?u:u(v,w,A)}var d=function(v){t(w,v);function w(A,M,R){return v.call(this,p(A,M,R))||this}return w}(h);d.prototype.name=h.name,d.prototype.code=f,e[f]=d}function n(f,u){if(Array.isArray(f)){var h=f.length;return f=f.map(function(p){return String(p)}),h>2?"one of ".concat(u," ").concat(f.slice(0,h-1).join(", "),", or ")+f[h-1]:h===2?"one of ".concat(u," ").concat(f[0]," or ").concat(f[1]):"of ".concat(u," ").concat(f[0])}else return"of ".concat(u," ").concat(String(f))}function s(f,u,h){return f.substr(!h||h<0?0:+h,u.length)===u}function i(f,u,h){return(h===void 0||h>f.length)&&(h=f.length),f.substring(h-u.length,h)===u}function o(f,u,h){return typeof h!="number"&&(h=0),h+u.length>f.length?!1:f.indexOf(u,h)!==-1}return r("ERR_INVALID_OPT_VALUE",function(f,u){return'The value "'+u+'" is invalid for option "'+f+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(f,u,h){var p;typeof u=="string"&&s(u,"not ")?(p="must not be",u=u.replace(/^not /,"")):p="must be";var d;if(i(f," argument"))d="The ".concat(f," ").concat(p," ").concat(n(u,"type"));else{var v=o(f,".")?"property":"argument";d='The "'.concat(f,'" ').concat(v," ").concat(p," ").concat(n(u,"type"))}return d+=". Received type ".concat(typeof h),d},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(f){return"The "+f+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(f){return"Cannot call "+f+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(f){return"Unknown encoding: "+f},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),i2.codes=e,i2}var s2,ux;function BS(){if(ux)return s2;ux=1;const t=Ld().codes.ERR_INVALID_OPT_VALUE;function e(n,s,i){return n.highWaterMark!=null?n.highWaterMark:s?n[i]:null}function r(n,s,i,o){const f=e(s,o,i);if(f!=null){if(!(isFinite(f)&&Math.floor(f)===f)||f<0){const u=o?i:"highWaterMark";throw new t(u,f)}return Math.floor(f)}return n.objectMode?16:16*1024}return s2={getHighWaterMark:r},s2}var a2,hx;function IS(){if(hx)return a2;hx=1,a2=k;function t(F){this.next=null,this.entry=null,this.finish=()=>{L(this,F)}}var e;k.WritableState=q;const r={deprecate:hS};var n=TS();const s=mt.Buffer,i=(typeof ue<"u"?ue:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(F){return s.from(F)}function f(F){return s.isBuffer(F)||F instanceof i}const u=kS(),h=BS(),p=h.getHighWaterMark,d=Ld().codes,v=d.ERR_INVALID_ARG_TYPE,w=d.ERR_METHOD_NOT_IMPLEMENTED,A=d.ERR_MULTIPLE_CALLBACK,M=d.ERR_STREAM_CANNOT_PIPE,R=d.ERR_STREAM_DESTROYED,N=d.ERR_STREAM_NULL_VALUES,C=d.ERR_STREAM_WRITE_AFTER_END,B=d.ERR_UNKNOWN_ENCODING,O=u.errorOrDestroy;Ht(k,n);function D(){}function q(F,V,Z){e=e||vd(),F=F||{},typeof Z!="boolean"&&(Z=V instanceof e),this.objectMode=!!F.objectMode,Z&&(this.objectMode=this.objectMode||!!F.writableObjectMode),this.highWaterMark=p(this,F,"writableHighWaterMark",Z),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ee=F.decodeStrings===!1;this.decodeStrings=!ee,this.defaultEncoding=F.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ce){m(V,ce)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=F.emitClose!==!1,this.autoDestroy=!!F.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}q.prototype.getBuffer=function(){for(var V=this.bufferedRequest,Z=[];V;)Z.push(V),V=V.next;return Z},function(){try{Object.defineProperty(q.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var W;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(W=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(V){return W.call(this,V)?!0:this!==k?!1:V&&V._writableState instanceof q}})):W=function(V){return V instanceof this};function k(F){e=e||vd();const V=this instanceof e;if(!V&&!W.call(k,this))return new k(F);this._writableState=new q(F,this,V),this.writable=!0,F&&(typeof F.write=="function"&&(this._write=F.write),typeof F.writev=="function"&&(this._writev=F.writev),typeof F.destroy=="function"&&(this._destroy=F.destroy),typeof F.final=="function"&&(this._final=F.final)),n.call(this)}k.prototype.pipe=function(){O(this,new M)};function I(F,V){var Z=new C;O(F,Z),ft.nextTick(V,Z)}function H(F,V,Z,ee){var ce;return Z===null?ce=new N:typeof Z!="string"&&!V.objectMode&&(ce=new v("chunk",["string","Buffer"],Z)),ce?(O(F,ce),ft.nextTick(ee,ce),!1):!0}k.prototype.write=function(F,V,Z){var ee=this._writableState,ce=!1,U=!ee.objectMode&&f(F);return U&&!s.isBuffer(F)&&(F=o(F)),typeof V=="function"&&(Z=V,V=null),U?V="buffer":V||(V=ee.defaultEncoding),typeof Z!="function"&&(Z=D),ee.ending?I(this,Z):(U||H(this,ee,F,Z))&&(ee.pendingcb++,ce=T(this,ee,U,F,V,Z)),ce},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var F=this._writableState;F.corked&&(F.corked--,!F.writing&&!F.corked&&!F.bufferProcessing&&F.bufferedRequest&&_(this,F))},k.prototype.setDefaultEncoding=function(V){if(typeof V=="string"&&(V=V.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((V+"").toLowerCase())>-1))throw new B(V);return this._writableState.defaultEncoding=V,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function P(F,V,Z){return!F.objectMode&&F.decodeStrings!==!1&&typeof V=="string"&&(V=s.from(V,Z)),V}Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function T(F,V,Z,ee,ce,U){if(!Z){var j=P(V,ee,ce);ee!==j&&(Z=!0,ce="buffer",ee=j)}var se=V.objectMode?1:ee.length;V.length+=se;var re=V.length{V.pendingcb--,Z&&O(F,Z),V.prefinished=!0,F.emit("prefinish"),E(F,V)})}function l(F,V){!V.prefinished&&!V.finalCalled&&(typeof F._final=="function"&&!V.destroyed?(V.pendingcb++,V.finalCalled=!0,ft.nextTick(y,F,V)):(V.prefinished=!0,F.emit("prefinish")))}function E(F,V){var Z=S(V);if(Z&&(l(F,V),V.pendingcb===0&&(V.finished=!0,F.emit("finish"),V.autoDestroy))){const ee=F._readableState;(!ee||ee.autoDestroy&&ee.endEmitted)&&F.destroy()}return Z}function Y(F,V,Z){V.ending=!0,E(F,V),Z&&(V.finished?ft.nextTick(Z):F.once("finish",Z)),V.ended=!0,F.writable=!1}function L(F,V,Z){var ee=F.entry;for(F.entry=null;ee;){var ce=ee.callback;V.pendingcb--,ce(Z),ee=ee.next}V.corkedRequestsFree.next=F}return Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get(){return this._writableState===void 0?!1:this._writableState.destroyed},set(F){this._writableState&&(this._writableState.destroyed=F)}}),k.prototype.destroy=u.destroy,k.prototype._undestroy=u.undestroy,k.prototype._destroy=function(F,V){V(F)},a2}var o2,dx;function vd(){if(dx)return o2;dx=1;var t=Object.keys||function(f){var u=[];for(var h in f)u.push(h);return u};o2=s;const e=PS(),r=IS();Ht(s,e);{const f=t(r.prototype);for(var n=0;n{i.writable||v()};var d=i._writableState&&i._writableState.finished;const v=()=>{h=!1,d=!0,u||f.call(i)};var w=i._readableState&&i._readableState.endEmitted;const A=()=>{u=!1,w=!0,h||f.call(i)},M=C=>{f.call(i,C)},R=()=>{let C;if(u&&!w)return(!i._readableState||!i._readableState.ended)&&(C=new t),f.call(i,C);if(h&&!d)return(!i._writableState||!i._writableState.ended)&&(C=new t),f.call(i,C)},N=()=>{i.req.on("finish",v)};return n(i)?(i.on("complete",v),i.on("abort",R),i.req?N():i.on("request",N)):h&&!i._writableState&&(i.on("end",p),i.on("close",p)),i.on("end",A),i.on("finish",v),o.error!==!1&&i.on("error",M),i.on("close",R),function(){i.removeListener("complete",v),i.removeListener("abort",R),i.removeListener("request",N),i.req&&i.req.removeListener("finish",v),i.removeListener("end",p),i.removeListener("close",p),i.removeListener("finish",v),i.removeListener("end",A),i.removeListener("error",M),i.removeListener("close",R)}}return f2=s,f2}var l2,mx;function yz(){if(mx)return l2;mx=1;const t=E3(),e=Symbol("lastResolve"),r=Symbol("lastReject"),n=Symbol("error"),s=Symbol("ended"),i=Symbol("lastPromise"),o=Symbol("handlePromise"),f=Symbol("stream");function u(M,R){return{value:M,done:R}}function h(M){const R=M[e];if(R!==null){const N=M[f].read();N!==null&&(M[i]=null,M[e]=null,M[r]=null,R(u(N,!1)))}}function p(M){ft.nextTick(h,M)}function d(M,R){return(N,C)=>{M.then(()=>{if(R[s]){N(u(void 0,!0));return}R[o](N,C)},C)}}const v=Object.getPrototypeOf(function(){}),w=Object.setPrototypeOf({get stream(){return this[f]},next(){const M=this[n];if(M!==null)return Promise.reject(M);if(this[s])return Promise.resolve(u(void 0,!0));if(this[f].destroyed)return new Promise((C,B)=>{ft.nextTick(()=>{this[n]?B(this[n]):C(u(void 0,!0))})});const R=this[i];let N;if(R)N=new Promise(d(R,this));else{const C=this[f].read();if(C!==null)return Promise.resolve(u(C,!1));N=new Promise(this[o])}return this[i]=N,N},[Symbol.asyncIterator](){return this},return(){return new Promise((M,R)=>{this[f].destroy(null,N=>{if(N){R(N);return}M(u(void 0,!0))})})}},v);return l2=M=>{const R=Object.create(w,{[f]:{value:M,writable:!0},[e]:{value:null,writable:!0},[r]:{value:null,writable:!0},[n]:{value:null,writable:!0},[s]:{value:M._readableState.endEmitted,writable:!0},[o]:{value:(N,C)=>{const B=R[f].read();B?(R[i]=null,R[e]=null,R[r]=null,N(u(B,!1))):(R[e]=N,R[r]=C)},writable:!0}});return R[i]=null,t(M,N=>{if(N&&N.code!=="ERR_STREAM_PREMATURE_CLOSE"){const B=R[r];B!==null&&(R[i]=null,R[e]=null,R[r]=null,B(N)),R[n]=N;return}const C=R[e];C!==null&&(R[i]=null,R[e]=null,R[r]=null,C(u(void 0,!0))),R[s]=!0}),M.on("readable",p.bind(null,R)),R},l2}var c2,gx;function bz(){return gx||(gx=1,c2=function(){throw new Error("Readable.from is not available in the browser")}),c2}var u2,vx;function PS(){if(vx)return u2;vx=1,u2=I;var t;I.ReadableState=k,Tl.EventEmitter;var e=function(j,se){return j.listeners(se).length},r=TS();const n=mt.Buffer,s=(typeof ue<"u"?ue:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(U){return n.from(U)}function o(U){return n.isBuffer(U)||U instanceof s}const f=h1;let u;f&&f.debuglog?u=f.debuglog("stream"):u=function(){};const h=vz(),p=kS(),d=BS(),v=d.getHighWaterMark,w=Ld().codes,A=w.ERR_INVALID_ARG_TYPE,M=w.ERR_STREAM_PUSH_AFTER_EOF,R=w.ERR_METHOD_NOT_IMPLEMENTED,N=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;let C,B,O;Ht(I,r);const D=p.errorOrDestroy,q=["error","close","destroy","pause","resume"];function W(U,j,se){if(typeof U.prependListener=="function")return U.prependListener(j,se);!U._events||!U._events[j]?U.on(j,se):Array.isArray(U._events[j])?U._events[j].unshift(se):U._events[j]=[se,U._events[j]]}function k(U,j,se){t=t||vd(),U=U||{},typeof se!="boolean"&&(se=j instanceof t),this.objectMode=!!U.objectMode,se&&(this.objectMode=this.objectMode||!!U.readableObjectMode),this.highWaterMark=v(this,U,"readableHighWaterMark",se),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=U.emitClose!==!1,this.autoDestroy=!!U.autoDestroy,this.destroyed=!1,this.defaultEncoding=U.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,U.encoding&&(C||(C=gd.StringDecoder),this.decoder=new C(U.encoding),this.encoding=U.encoding)}function I(U){if(t=t||vd(),!(this instanceof I))return new I(U);const j=this instanceof t;this._readableState=new k(U,this,j),this.readable=!0,U&&(typeof U.read=="function"&&(this._read=U.read),typeof U.destroy=="function"&&(this._destroy=U.destroy)),r.call(this)}Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get(){return this._readableState===void 0?!1:this._readableState.destroyed},set(U){this._readableState&&(this._readableState.destroyed=U)}}),I.prototype.destroy=p.destroy,I.prototype._undestroy=p.undestroy,I.prototype._destroy=function(U,j){j(U)},I.prototype.push=function(U,j){var se=this._readableState,re;return se.objectMode?re=!0:typeof U=="string"&&(j=j||se.defaultEncoding,j!==se.encoding&&(U=n.from(U,j),j=""),re=!0),H(this,U,j,!1,re)},I.prototype.unshift=function(U){return H(this,U,null,!0,!1)};function H(U,j,se,re,oe){u("readableAddChunk",j);var Q=U._readableState;if(j===null)Q.reading=!1,m(U,Q);else{var z;if(oe||(z=T(Q,j)),z)D(U,z);else if(Q.objectMode||j&&j.length>0)if(typeof j!="string"&&!Q.objectMode&&Object.getPrototypeOf(j)!==n.prototype&&(j=i(j)),re)Q.endEmitted?D(U,new N):P(U,Q,j,!0);else if(Q.ended)D(U,new M);else{if(Q.destroyed)return!1;Q.reading=!1,Q.decoder&&!se?(j=Q.decoder.write(j),Q.objectMode||j.length!==0?P(U,Q,j,!1):_(U,Q)):P(U,Q,j,!1)}else re||(Q.reading=!1,_(U,Q))}return!Q.ended&&(Q.length=g?U=g:(U--,U|=U>>>1,U|=U>>>2,U|=U>>>4,U|=U>>>8,U|=U>>>16,U++),U}function c(U,j){return U<=0||j.length===0&&j.ended?0:j.objectMode?1:U!==U?j.flowing&&j.length?j.buffer.head.data.length:j.length:(U>j.highWaterMark&&(j.highWaterMark=a(U)),U<=j.length?U:j.ended?j.length:(j.needReadable=!0,0))}I.prototype.read=function(U){u("read",U),U=parseInt(U,10);var j=this._readableState,se=U;if(U!==0&&(j.emittedReadable=!1),U===0&&j.needReadable&&((j.highWaterMark!==0?j.length>=j.highWaterMark:j.length>0)||j.ended))return u("read: emitReadable",j.length,j.ended),j.length===0&&j.ended?Z(this):b(this),null;if(U=c(U,j),U===0&&j.ended)return j.length===0&&Z(this),null;var re=j.needReadable;u("need readable",re),(j.length===0||j.length-U0?oe=V(U,j):oe=null,oe===null?(j.needReadable=j.length<=j.highWaterMark,U=0):(j.length-=U,j.awaitDrain=0),j.length===0&&(j.ended||(j.needReadable=!0),se!==U&&j.ended&&Z(this)),oe!==null&&this.emit("data",oe),oe};function m(U,j){if(u("onEofChunk"),!j.ended){if(j.decoder){var se=j.decoder.end();se&&se.length&&(j.buffer.push(se),j.length+=j.objectMode?1:se.length)}j.ended=!0,j.sync?b(U):(j.needReadable=!1,j.emittedReadable||(j.emittedReadable=!0,x(U)))}}function b(U){var j=U._readableState;u("emitReadable",j.needReadable,j.emittedReadable),j.needReadable=!1,j.emittedReadable||(u("emitReadable",j.flowing),j.emittedReadable=!0,ft.nextTick(x,U))}function x(U){var j=U._readableState;u("emitReadable_",j.destroyed,j.length,j.ended),!j.destroyed&&(j.length||j.ended)&&(U.emit("readable"),j.emittedReadable=!1),j.needReadable=!j.flowing&&!j.ended&&j.length<=j.highWaterMark,F(U)}function _(U,j){j.readingMore||(j.readingMore=!0,ft.nextTick(S,U,j))}function S(U,j){for(;!j.reading&&!j.ended&&(j.length1&&ce(re.pipes,U)!==-1)&&!ne&&(u("false write response, pause",re.awaitDrain),re.awaitDrain++),se.pause())}function ge(me){u("onerror",me),we(),U.removeListener("error",ge),e(U,"error")===0&&D(U,me)}W(U,"error",ge);function pe(){U.removeListener("finish",ot),we()}U.once("close",pe);function ot(){u("onfinish"),U.removeListener("close",pe),we()}U.once("finish",ot);function we(){u("unpipe"),se.unpipe(U)}return U.emit("pipe",se),re.flowing||(u("pipe resume"),se.resume()),U};function y(U){return function(){var se=U._readableState;u("pipeOnDrain",se.awaitDrain),se.awaitDrain&&se.awaitDrain--,se.awaitDrain===0&&e(U,"data")&&(se.flowing=!0,F(U))}}I.prototype.unpipe=function(U){var j=this._readableState,se={hasUnpiped:!1};if(j.pipesCount===0)return this;if(j.pipesCount===1)return U&&U!==j.pipes?this:(U||(U=j.pipes),j.pipes=null,j.pipesCount=0,j.flowing=!1,U&&U.emit("unpipe",this,se),this);if(!U){var re=j.pipes,oe=j.pipesCount;j.pipes=null,j.pipesCount=0,j.flowing=!1;for(var Q=0;Q0,re.flowing!==!1&&this.resume()):U==="readable"&&!re.endEmitted&&!re.readableListening&&(re.readableListening=re.needReadable=!0,re.flowing=!1,re.emittedReadable=!1,u("on readable",re.length,re.reading),re.length?b(this):re.reading||ft.nextTick(E,this)),se},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(U,j){const se=r.prototype.removeListener.call(this,U,j);return U==="readable"&&ft.nextTick(l,this),se},I.prototype.removeAllListeners=function(U){const j=r.prototype.removeAllListeners.apply(this,arguments);return(U==="readable"||U===void 0)&&ft.nextTick(l,this),j};function l(U){const j=U._readableState;j.readableListening=U.listenerCount("readable")>0,j.resumeScheduled&&!j.paused?j.flowing=!0:U.listenerCount("data")>0&&U.resume()}function E(U){u("readable nexttick read 0"),U.read(0)}I.prototype.resume=function(){var U=this._readableState;return U.flowing||(u("resume"),U.flowing=!U.readableListening,Y(this,U)),U.paused=!1,this};function Y(U,j){j.resumeScheduled||(j.resumeScheduled=!0,ft.nextTick(L,U,j))}function L(U,j){u("resume",j.reading),j.reading||U.read(0),j.resumeScheduled=!1,U.emit("resume"),F(U),j.flowing&&!j.reading&&U.read(0)}I.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function F(U){const j=U._readableState;for(u("flow",j.flowing);j.flowing&&U.read()!==null;);}I.prototype.wrap=function(U){var j=this._readableState,se=!1;U.on("end",()=>{if(u("wrapped end"),j.decoder&&!j.ended){var Q=j.decoder.end();Q&&Q.length&&this.push(Q)}this.push(null)}),U.on("data",Q=>{if(u("wrapped data"),j.decoder&&(Q=j.decoder.write(Q)),!(j.objectMode&&Q==null)&&!(!j.objectMode&&(!Q||!Q.length))){var z=this.push(Q);z||(se=!0,U.pause())}});for(var re in U)this[re]===void 0&&typeof U[re]=="function"&&(this[re]=function(z){return function(){return U[z].apply(U,arguments)}}(re));for(var oe=0;oe{u("wrapped _read",Q),se&&(se=!1,U.resume())},this},typeof Symbol=="function"&&(I.prototype[Symbol.asyncIterator]=function(){return B===void 0&&(B=yz()),B(this)}),Object.defineProperty(I.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(I.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(I.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(j){this._readableState&&(this._readableState.flowing=j)}}),I._fromList=V,Object.defineProperty(I.prototype,"readableLength",{enumerable:!1,get(){return this._readableState.length}});function V(U,j){if(j.length===0)return null;var se;return j.objectMode?se=j.buffer.shift():!U||U>=j.length?(j.decoder?se=j.buffer.join(""):j.buffer.length===1?se=j.buffer.first():se=j.buffer.concat(j.length),j.buffer.clear()):se=j.buffer.consume(U,j.decoder),se}function Z(U){var j=U._readableState;u("endReadable",j.endEmitted),j.endEmitted||(j.ended=!0,ft.nextTick(ee,j,U))}function ee(U,j){if(u("endReadableNT",U.endEmitted,U.length),!U.endEmitted&&U.length===0&&(U.endEmitted=!0,j.readable=!1,j.emit("end"),U.autoDestroy)){const se=j._writableState;(!se||se.autoDestroy&&se.finished)&&j.destroy()}}typeof Symbol=="function"&&(I.from=function(U,j){return O===void 0&&(O=bz()),O(I,U,j)});function ce(U,j){for(var se=0,re=U.length;se{h(this,p,d)}):h(this,null,null)}f.prototype.push=function(p,d){return this._transformState.needTransform=!1,i.prototype.push.call(this,p,d)},f.prototype._transform=function(p,d,v){v(new e("_transform()"))},f.prototype._write=function(p,d,v){var w=this._transformState;if(w.writecb=v,w.writechunk=p,w.writeencoding=d,!w.transforming){var A=this._readableState;(w.needTransform||A.needReadable||A.length{d(v)})};function h(p,d,v){if(d)return p.emit("error",d);if(v!=null&&p.push(v),p._writableState.length)throw new s;if(p._transformState.transforming)throw new n;return p.push(null)}return h2}var d2,bx;function wz(){if(bx)return d2;bx=1,d2=e;const t=OS();Ht(e,t);function e(r){if(!(this instanceof e))return new e(r);t.call(this,r)}return e.prototype._transform=function(r,n,s){s(null,r)},d2}var p2,wx;function Az(){if(wx)return p2;wx=1;let t;function e(v){let w=!1;return function(){w||(w=!0,v(...arguments))}}const r=Ld().codes,n=r.ERR_MISSING_ARGS,s=r.ERR_STREAM_DESTROYED;function i(v){if(v)throw v}function o(v){return v.setHeader&&typeof v.abort=="function"}function f(v,w,A,M){M=e(M);let R=!1;v.on("close",()=>{R=!0}),t===void 0&&(t=E3()),t(v,{readable:w,writable:A},C=>{if(C)return M(C);R=!0,M()});let N=!1;return C=>{if(!R&&!N){if(N=!0,o(v))return v.abort();if(typeof v.destroy=="function")return v.destroy();M(C||new s("pipe"))}}}function u(v){v()}function h(v,w){return v.pipe(w)}function p(v){return!v.length||typeof v[v.length-1]!="function"?i:v.pop()}function d(){for(var v=arguments.length,w=new Array(v),A=0;A0;return f(C,O,D,function(q){R||(R=q),q&&N.forEach(u),!O&&(N.forEach(u),M(R))})});return w.reduce(h)}return p2=d,p2}var xz=na,M3=Tl.EventEmitter,Ez=Ht;Ez(na,M3);na.Readable=PS();na.Writable=IS();na.Duplex=vd();na.Transform=OS();na.PassThrough=wz();na.finished=E3();na.pipeline=Az();na.Stream=na;function na(){M3.call(this)}na.prototype.pipe=function(t,e){var r=this;function n(p){t.writable&&t.write(p)===!1&&r.pause&&r.pause()}r.on("data",n);function s(){r.readable&&r.resume&&r.resume()}t.on("drain",s),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",o),r.on("close",f));var i=!1;function o(){i||(i=!0,t.end())}function f(){i||(i=!0,typeof t.destroy=="function"&&t.destroy())}function u(p){if(h(),M3.listenerCount(this,"error")===0)throw p}r.on("error",u),t.on("error",u);function h(){r.removeListener("data",n),t.removeListener("drain",s),r.removeListener("end",o),r.removeListener("close",f),r.removeListener("error",u),t.removeListener("error",u),r.removeListener("end",h),r.removeListener("close",h),t.removeListener("close",h)}return r.on("end",h),r.on("close",h),t.on("close",h),t.emit("pipe",r),t};var LS=Wt.Buffer,DS=xz.Transform,Mz=gd.StringDecoder,Sz=Ht;function Za(t){DS.call(this),this.hashMode=typeof t=="string",this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}Sz(Za,DS);Za.prototype.update=function(t,e,r){typeof t=="string"&&(t=LS.from(t,e));var n=this._update(t);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)};Za.prototype.setAutoPadding=function(){};Za.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};Za.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};Za.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};Za.prototype._transform=function(t,e,r){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(s){n=s}finally{r(n)}};Za.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(r){e=r}t(e)};Za.prototype._finalOrDigest=function(t){var e=this.__final()||LS.alloc(0);return t&&(e=this._toString(e,t,!0)),e};Za.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new Mz(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(t);return r&&(n+=this._decoder.end()),n};var Fl=Za,_z=Ht,Rz=A3,Nz=x3,Cz=gp,FS=Fl;function sy(t){FS.call(this,"digest"),this._hash=t}_z(sy,FS);sy.prototype._update=function(t){this._hash.update(t)};sy.prototype._final=function(){return this._hash.digest()};var b1=function(e){return e=e.toLowerCase(),e==="md5"?new Rz:e==="rmd160"||e==="ripemd160"?new Nz:new sy(Cz(e))},Tz=Ht,cc=Wt.Buffer,US=Fl,kz=cc.alloc(128),Mu=64;function ay(t,e){US.call(this,"digest"),typeof e=="string"&&(e=cc.from(e)),this._alg=t,this._key=e,e.length>Mu?e=t(e):e.lengthr){var n=t==="rmd160"?new Fw:Uw(t);e=n.update(e).digest()}else e.lengthQz||e!==e)throw new TypeError("Bad key length")},Zm;if(ue.process&&ue.process.browser)Zm="utf-8";else if(ue.process&&ue.process.version){var Xz=parseInt(ft.version.split(".")[0].slice(1),10);Zm=Xz>=6?"utf-8":"binary"}else Zm="utf-8";var GS=Zm,m2=Wt.Buffer,VS=function(t,e,r){if(m2.isBuffer(t))return t;if(typeof t=="string")return m2.from(t,e);if(ArrayBuffer.isView(t))return m2.from(t.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")},Jz=HS,$z=x3,eK=gp,uc=Wt.Buffer,tK=qS,Ax=GS,xx=VS,rK=uc.alloc(128),Ym={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function WS(t,e,r){var n=nK(t),s=t==="sha512"||t==="sha384"?128:64;e.length>s?e=n(e):e.length>>0};ks.writeUInt32BE=function(e,r,n){e[0+n]=r>>>24,e[1+n]=r>>>16&255,e[2+n]=r>>>8&255,e[3+n]=r&255};ks.ip=function(e,r,n,s){for(var i=0,o=0,f=6;f>=0;f-=2){for(var u=0;u<=24;u+=8)i<<=1,i|=r>>>u+f&1;for(var u=0;u<=24;u+=8)i<<=1,i|=e>>>u+f&1}for(var f=6;f>=0;f-=2){for(var u=1;u<=25;u+=8)o<<=1,o|=r>>>u+f&1;for(var u=1;u<=25;u+=8)o<<=1,o|=e>>>u+f&1}n[s+0]=i>>>0,n[s+1]=o>>>0};ks.rip=function(e,r,n,s){for(var i=0,o=0,f=0;f<4;f++)for(var u=24;u>=0;u-=8)i<<=1,i|=r>>>u+f&1,i<<=1,i|=e>>>u+f&1;for(var f=4;f<8;f++)for(var u=24;u>=0;u-=8)o<<=1,o|=r>>>u+f&1,o<<=1,o|=e>>>u+f&1;n[s+0]=i>>>0,n[s+1]=o>>>0};ks.pc1=function(e,r,n,s){for(var i=0,o=0,f=7;f>=5;f--){for(var u=0;u<=24;u+=8)i<<=1,i|=r>>u+f&1;for(var u=0;u<=24;u+=8)i<<=1,i|=e>>u+f&1}for(var u=0;u<=24;u+=8)i<<=1,i|=r>>u+f&1;for(var f=1;f<=3;f++){for(var u=0;u<=24;u+=8)o<<=1,o|=r>>u+f&1;for(var u=0;u<=24;u+=8)o<<=1,o|=e>>u+f&1}for(var u=0;u<=24;u+=8)o<<=1,o|=e>>u+f&1;n[s+0]=i>>>0,n[s+1]=o>>>0};ks.r28shl=function(e,r){return e<>>28-r};var $1=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];ks.pc2=function(e,r,n,s){for(var i=0,o=0,f=$1.length>>>1,u=0;u>>$1[u]&1;for(var u=f;u<$1.length;u++)o<<=1,o|=r>>>$1[u]&1;n[s+0]=i>>>0,n[s+1]=o>>>0};ks.expand=function(e,r,n){var s=0,i=0;s=(e&1)<<5|e>>>27;for(var o=23;o>=15;o-=4)s<<=6,s|=e>>>o&63;for(var o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(e&31)<<1|e>>>31,r[n+0]=s>>>0,r[n+1]=i>>>0};var _x=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];ks.substitute=function(e,r){for(var n=0,s=0;s<4;s++){var i=e>>>18-s*6&63,o=_x[s*64+i];n<<=4,n|=o}for(var s=0;s<4;s++){var i=r>>>18-s*6&63,o=_x[4*64+s*64+i];n<<=4,n|=o}return n>>>0};var Rx=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];ks.permute=function(e){for(var r=0,n=0;n>>Rx[n]&1;return r>>>0};ks.padSplit=function(e,r,n){for(var s=e.toString(2);s.length0;s--)r+=this._buffer(e,r),n+=this._flushBuffer(i,n);return r+=this._buffer(e,r),i};ha.prototype.final=function(e){var r;e&&(r=this.update(e));var n;return this.type==="encrypt"?n=this._finalEncrypt():n=this._finalDecrypt(),r?r.concat(n):n};ha.prototype._pad=function(e,r){if(r===0)return!1;for(;r>>1];n=Qn.r28shl(n,o),s=Qn.r28shl(s,o),Qn.pc2(n,s,e.keys,i)}};Oo.prototype._update=function(e,r,n,s){var i=this._desState,o=Qn.readUInt32BE(e,r),f=Qn.readUInt32BE(e,r+4);Qn.ip(o,f,i.tmp,0),o=i.tmp[0],f=i.tmp[1],this.type==="encrypt"?this._encrypt(i,o,f,i.tmp,0):this._decrypt(i,o,f,i.tmp,0),o=i.tmp[0],f=i.tmp[1],Qn.writeUInt32BE(n,o,s),Qn.writeUInt32BE(n,f,s+4)};Oo.prototype._pad=function(e,r){for(var n=e.length-r,s=r;s>>0,o=w}Qn.rip(f,o,s,i)};Oo.prototype._decrypt=function(e,r,n,s,i){for(var o=n,f=r,u=e.keys.length-2;u>=0;u-=2){var h=e.keys[u],p=e.keys[u+1];Qn.expand(o,e.tmp,0),h^=e.tmp[0],p^=e.tmp[1];var d=Qn.substitute(h,p),v=Qn.permute(d),w=o;o=(f^v)>>>0,f=w}Qn.rip(o,f,s,i)};var e_={},pK=fa,mK=Ht,Ug={};function gK(t){pK.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e>s%8,t._prev=RK(t._prev,r?f:u);return o}function RK(t,e){var r=t.length,n=-1,s=Qm.allocUnsafe(t.length);for(t=Qm.concat([t,Qm.from([e])]);++n>7;return s}a_.encrypt=function(t,e,r){for(var n=e.length,s=Qm.allocUnsafe(n),i=-1;++i>>24]^o[p>>>16&255]^f[d>>>8&255]^u[v&255]^e[N++],A=i[p>>>24]^o[d>>>16&255]^f[v>>>8&255]^u[h&255]^e[N++],M=i[d>>>24]^o[v>>>16&255]^f[h>>>8&255]^u[p&255]^e[N++],R=i[v>>>24]^o[h>>>16&255]^f[p>>>8&255]^u[d&255]^e[N++],h=w,p=A,d=M,v=R;return w=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[d>>>8&255]<<8|n[v&255])^e[N++],A=(n[p>>>24]<<24|n[d>>>16&255]<<16|n[v>>>8&255]<<8|n[h&255])^e[N++],M=(n[d>>>24]<<24|n[v>>>16&255]<<16|n[h>>>8&255]<<8|n[p&255])^e[N++],R=(n[v>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[d&255])^e[N++],w=w>>>0,A=A>>>0,M=M>>>0,R=R>>>0,[w,A,M,R]}var FK=[0,1,2,4,8,16,32,64,128,27,54],Hn=function(){for(var t=new Array(256),e=0;e<256;e++)e<128?t[e]=e<<1:t[e]=e<<1^283;for(var r=[],n=[],s=[[],[],[],[]],i=[[],[],[],[]],o=0,f=0,u=0;u<256;++u){var h=f^f<<1^f<<2^f<<3^f<<4;h=h>>>8^h&255^99,r[o]=h,n[h]=o;var p=t[o],d=t[p],v=t[d],w=t[h]*257^h*16843008;s[0][o]=w<<24|w>>>8,s[1][o]=w<<16|w>>>16,s[2][o]=w<<8|w>>>24,s[3][o]=w,w=v*16843009^d*65537^p*257^o*16843008,i[0][h]=w<<24|w>>>8,i[1][h]=w<<16|w>>>16,i[2][h]=w<<8|w>>>24,i[3][h]=w,o===0?o=f=1:(o=p^t[t[t[v^p]]],f^=t[t[f]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:s,INV_SUB_MIX:i}}();function ia(t){this._key=T3(t),this._reset()}ia.blockSize=4*4;ia.keySize=256/8;ia.prototype.blockSize=ia.blockSize;ia.prototype.keySize=ia.keySize;ia.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,n=(r+1)*4,s=[],i=0;i>>24,o=Hn.SBOX[o>>>24]<<24|Hn.SBOX[o>>>16&255]<<16|Hn.SBOX[o>>>8&255]<<8|Hn.SBOX[o&255],o^=FK[i/e|0]<<24):e>6&&i%e===4&&(o=Hn.SBOX[o>>>24]<<24|Hn.SBOX[o>>>16&255]<<16|Hn.SBOX[o>>>8&255]<<8|Hn.SBOX[o&255]),s[i]=s[i-e]^o}for(var f=[],u=0;u>>24]]^Hn.INV_SUB_MIX[1][Hn.SBOX[p>>>16&255]]^Hn.INV_SUB_MIX[2][Hn.SBOX[p>>>8&255]]^Hn.INV_SUB_MIX[3][Hn.SBOX[p&255]]}this._nRounds=r,this._keySchedule=s,this._invKeySchedule=f};ia.prototype.encryptBlockRaw=function(t){return t=T3(t),c_(t,this._keySchedule,Hn.SUB_MIX,Hn.SBOX,this._nRounds)};ia.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=Hg.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r};ia.prototype.decryptBlock=function(t){t=T3(t);var e=t[1];t[1]=t[3],t[3]=e;var r=c_(t,this._invKeySchedule,Hn.INV_SUB_MIX,Hn.INV_SBOX,this._nRounds),n=Hg.allocUnsafe(16);return n.writeUInt32BE(r[0],0),n.writeUInt32BE(r[3],4),n.writeUInt32BE(r[2],8),n.writeUInt32BE(r[1],12),n};ia.prototype.scrub=function(){y2(this._keySchedule),y2(this._invKeySchedule),y2(this._key)};A1.AES=ia;var yd=Wt.Buffer,UK=yd.alloc(16,0);function HK(t){return[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)]}function u_(t){var e=yd.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function x1(t){this.h=t,this.state=yd.alloc(16,0),this.cache=yd.allocUnsafe(0)}x1.prototype.ghash=function(t){for(var e=-1;++e0;r--)t[r]=t[r]>>>1|(t[r-1]&1)<<31;t[0]=t[0]>>>1,s&&(t[0]=t[0]^225<<24)}this.state=u_(e)};x1.prototype.update=function(t){this.cache=yd.concat([this.cache,t]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)};x1.prototype.final=function(t,e){return this.cache.length&&this.ghash(yd.concat([this.cache,UK],16)),this.ghash(u_([0,t,0,e])),this.state};var jK=x1,zK=A1,ls=Wt.Buffer,h_=Fl,KK=Ht,d_=jK,qK=w1,GK=f_;function VK(t,e){var r=0;t.length!==e.length&&r++;for(var n=Math.min(t.length,e.length),s=0;s0||n>0;){var u=new QK;u.update(f),u.update(t),e&&u.update(e),f=u.digest();var h=0;if(s>0){var p=i.length-s;h=Math.min(s,f.length),f.copy(i,p,0,h),s-=h}if(h0){var d=o.length-n,v=Math.min(n,f.length-h);f.copy(o,d,h,h+v),n-=v}}return f.fill(0),{key:i,iv:o}}var cy=XK,v_=C3,JK=p_,Tf=Wt.Buffer,$K=g_,y_=Fl,eq=A1,tq=cy,rq=Ht;function E1(t,e,r){y_.call(this),this._cache=new uy,this._cipher=new eq.AES(e),this._prev=Tf.from(r),this._mode=t,this._autopadding=!0}rq(E1,y_);E1.prototype._update=function(t){this._cache.add(t);for(var e,r,n=[];e=this._cache.get();)r=this._mode.encrypt(this,e),n.push(r);return Tf.concat(n)};var nq=Tf.alloc(16,16);E1.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(nq))throw this._cipher.scrub(),new Error("data not multiple of block length")};E1.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this};function uy(){this.cache=Tf.allocUnsafe(0)}uy.prototype.add=function(t){this.cache=Tf.concat([this.cache,t])};uy.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null};uy.prototype.flush=function(){for(var t=16-this.cache.length,e=Tf.allocUnsafe(t),r=-1;++r16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null};hy.prototype.flush=function(){if(this.cache.length)return this.cache};function cq(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var r=-1;++r=0);return f},r.prototype._randrange=function(s,i){var o=i.sub(s);return s.add(this._randbelow(o))},r.prototype.test=function(s,i,o){var f=s.bitLength(),u=t.mont(s),h=new t(1).toRed(u);i||(i=Math.max(1,f/48|0));for(var p=s.subn(1),d=0;!p.testn(d);d++);for(var v=s.shrn(d),w=p.toRed(u),A=!0;i>0;i--){var M=this._randrange(new t(2),p);o&&o(M);var R=M.toRed(u).redPow(v);if(!(R.cmp(h)===0||R.cmp(w)===0)){for(var N=1;N0;i--){var w=this._randrange(new t(2),h),A=s.gcd(w);if(A.cmpn(1)!==0)return A;var M=w.toRed(f).redPow(d);if(!(M.cmp(u)===0||M.cmp(v)===0)){for(var R=1;RN;)B.ishrn(1);if(B.isEven()&&B.iadd(i),B.testn(1)||B.iadd(o),C.cmp(o)){if(!C.cmp(f))for(;B.mod(u).cmp(h);)B.iadd(d)}else for(;B.mod(r).cmp(p);)B.iadd(d);if(O=B.shrn(1),A(O)&&A(B)&&M(O)&&M(B)&&s.test(O)&&s.test(B))return B}}return A2}const yq={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},bq={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},wq={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},Aq={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},xq={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},Eq={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},Mq={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},Sq={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},_q={modp1:yq,modp2:bq,modp5:wq,modp14:Aq,modp15:xq,modp16:Eq,modp17:Mq,modp18:Sq};var x2,Px;function Rq(){if(Px)return x2;Px=1;var t=gn,e=T_(),r=new e,n=new t(24),s=new t(11),i=new t(10),o=new t(3),f=new t(7),u=k_(),h=Cl;x2=A;function p(R,N){return N=N||"utf8",mt.Buffer.isBuffer(R)||(R=new mt.Buffer(R,N)),this._pub=new t(R),this}function d(R,N){return N=N||"utf8",mt.Buffer.isBuffer(R)||(R=new mt.Buffer(R,N)),this._priv=new t(R),this}var v={};function w(R,N){var C=N.toString("hex"),B=[C,R.toString(16)].join("_");if(B in v)return v[B];var O=0;if(R.isEven()||!u.simpleSieve||!u.fermatTest(R)||!r.test(R))return O+=1,C==="02"||C==="05"?O+=8:O+=4,v[B]=O,O;r.test(R.shrn(1))||(O+=2);var D;switch(C){case"02":R.mod(n).cmp(s)&&(O+=8);break;case"05":D=R.mod(i),D.cmp(o)&&D.cmp(f)&&(O+=8);break;default:O+=4}return v[B]=O,O}function A(R,N,C){this.setGenerator(N),this.__prime=new t(R),this._prime=t.mont(this.__prime),this._primeLen=R.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,C?(this.setPublicKey=p,this.setPrivateKey=d):this._primeCode=8}Object.defineProperty(A.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=w(this.__prime,this.__gen)),this._primeCode}}),A.prototype.generateKeys=function(){return this._priv||(this._priv=new t(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},A.prototype.computeSecret=function(R){R=new t(R),R=R.toRed(this._prime);var N=R.redPow(this._priv).fromRed(),C=new mt.Buffer(N.toArray()),B=this.getPrime();if(C.length0?a:c},i.min=function(a,c){return a.cmp(c)<0?a:c},i.prototype._init=function(a,c,m){if(typeof a=="number")return this._initNumber(a,c,m);if(typeof a=="object")return this._initArray(a,c,m);c==="hex"&&(c=16),n(c===(c|0)&&c>=2&&c<=36),a=a.toString().replace(/\s+/g,"");var b=0;a[0]==="-"&&(b++,this.negative=1),b=0;b-=3)_=a[b]|a[b-1]<<8|a[b-2]<<16,this.words[x]|=_<>>26-S&67108863,S+=24,S>=26&&(S-=26,x++);else if(m==="le")for(b=0,x=0;b>>26-S&67108863,S+=24,S>=26&&(S-=26,x++);return this._strip()};function f(g,a){var c=g.charCodeAt(a);if(c>=48&&c<=57)return c-48;if(c>=65&&c<=70)return c-55;if(c>=97&&c<=102)return c-87;n(!1,"Invalid character in "+g)}function u(g,a,c){var m=f(g,c);return c-1>=a&&(m|=f(g,c-1)<<4),m}i.prototype._parseHex=function(a,c,m){this.length=Math.ceil((a.length-c)/6),this.words=new Array(this.length);for(var b=0;b=c;b-=2)S=u(a,c,b)<=18?(x-=18,_+=1,this.words[_]|=S>>>26):x+=8;else{var y=a.length-c;for(b=y%2===0?c+1:c;b=18?(x-=18,_+=1,this.words[_]|=S>>>26):x+=8}this._strip()};function h(g,a,c,m){for(var b=0,x=0,_=Math.min(g.length,c),S=a;S<_;S++){var y=g.charCodeAt(S)-48;b*=m,y>=49?x=y-49+10:y>=17?x=y-17+10:x=y,n(y>=0&&x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch{i.prototype.inspect=d}else i.prototype.inspect=d;function d(){return(this.red?""}var v=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],w=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(a,c){a=a||10,c=c|0||1;var m;if(a===16||a==="hex"){m="";for(var b=0,x=0,_=0;_>>24-b&16777215,b+=2,b>=26&&(b-=26,_--),x!==0||_!==this.length-1?m=v[6-y.length]+y+m:m=y+m}for(x!==0&&(m=x.toString(16)+m);m.length%c!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(a===(a|0)&&a>=2&&a<=36){var l=w[a],E=A[a];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var L=Y.modrn(E).toString(a);Y=Y.idivn(E),Y.isZero()?m=L+m:m=v[l-L.length]+L+m}for(this.isZero()&&(m="0"+m);m.length%c!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var a=this.words[0];return this.length===2?a+=this.words[1]*67108864:this.length===3&&this.words[2]===1?a+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-a:a},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(a,c){return this.toArrayLike(o,a,c)}),i.prototype.toArray=function(a,c){return this.toArrayLike(Array,a,c)};var M=function(a,c){return a.allocUnsafe?a.allocUnsafe(c):new a(c)};i.prototype.toArrayLike=function(a,c,m){this._strip();var b=this.byteLength(),x=m||Math.max(1,b);n(b<=x,"byte array longer than desired length"),n(x>0,"Requested array length <= 0");var _=M(a,x),S=c==="le"?"LE":"BE";return this["_toArrayLike"+S](_,b),_},i.prototype._toArrayLikeLE=function(a,c){for(var m=0,b=0,x=0,_=0;x>8&255),m>16&255),_===6?(m>24&255),b=0,_=0):(b=S>>>24,_+=2)}if(m=0&&(a[m--]=S>>8&255),m>=0&&(a[m--]=S>>16&255),_===6?(m>=0&&(a[m--]=S>>24&255),b=0,_=0):(b=S>>>24,_+=2)}if(m>=0)for(a[m--]=b;m>=0;)a[m--]=0},Math.clz32?i.prototype._countBits=function(a){return 32-Math.clz32(a)}:i.prototype._countBits=function(a){var c=a,m=0;return c>=4096&&(m+=13,c>>>=13),c>=64&&(m+=7,c>>>=7),c>=8&&(m+=4,c>>>=4),c>=2&&(m+=2,c>>>=2),m+c},i.prototype._zeroBits=function(a){if(a===0)return 26;var c=a,m=0;return c&8191||(m+=13,c>>>=13),c&127||(m+=7,c>>>=7),c&15||(m+=4,c>>>=4),c&3||(m+=2,c>>>=2),c&1||m++,m},i.prototype.bitLength=function(){var a=this.words[this.length-1],c=this._countBits(a);return(this.length-1)*26+c};function R(g){for(var a=new Array(g.bitLength()),c=0;c>>b&1}return a}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var a=0,c=0;ca.length?this.clone().ior(a):a.clone().ior(this)},i.prototype.uor=function(a){return this.length>a.length?this.clone().iuor(a):a.clone().iuor(this)},i.prototype.iuand=function(a){var c;this.length>a.length?c=a:c=this;for(var m=0;ma.length?this.clone().iand(a):a.clone().iand(this)},i.prototype.uand=function(a){return this.length>a.length?this.clone().iuand(a):a.clone().iuand(this)},i.prototype.iuxor=function(a){var c,m;this.length>a.length?(c=this,m=a):(c=a,m=this);for(var b=0;ba.length?this.clone().ixor(a):a.clone().ixor(this)},i.prototype.uxor=function(a){return this.length>a.length?this.clone().iuxor(a):a.clone().iuxor(this)},i.prototype.inotn=function(a){n(typeof a=="number"&&a>=0);var c=Math.ceil(a/26)|0,m=a%26;this._expand(c),m>0&&c--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-m),this._strip()},i.prototype.notn=function(a){return this.clone().inotn(a)},i.prototype.setn=function(a,c){n(typeof a=="number"&&a>=0);var m=a/26|0,b=a%26;return this._expand(m+1),c?this.words[m]=this.words[m]|1<a.length?(m=this,b=a):(m=a,b=this);for(var x=0,_=0;_>>26;for(;x!==0&&_>>26;if(this.length=m.length,x!==0)this.words[this.length]=x,this.length++;else if(m!==this)for(;_a.length?this.clone().iadd(a):a.clone().iadd(this)},i.prototype.isub=function(a){if(a.negative!==0){a.negative=0;var c=this.iadd(a);return a.negative=1,c._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(a),this.negative=1,this._normSign();var m=this.cmp(a);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,x;m>0?(b=this,x=a):(b=a,x=this);for(var _=0,S=0;S>26,this.words[S]=c&67108863;for(;_!==0&&S>26,this.words[S]=c&67108863;if(_===0&&S>>26,Y=y&67108863,L=Math.min(l,a.length-1),F=Math.max(0,l-g.length+1);F<=L;F++){var V=l-F|0;b=g.words[V]|0,x=a.words[F]|0,_=b*x+Y,E+=_/67108864|0,Y=_&67108863}c.words[l]=Y|0,y=E|0}return y!==0?c.words[l]=y|0:c.length--,c._strip()}var C=function(a,c,m){var b=a.words,x=c.words,_=m.words,S=0,y,l,E,Y=b[0]|0,L=Y&8191,F=Y>>>13,V=b[1]|0,Z=V&8191,ee=V>>>13,ce=b[2]|0,U=ce&8191,j=ce>>>13,se=b[3]|0,re=se&8191,oe=se>>>13,Q=b[4]|0,z=Q&8191,G=Q>>>13,X=b[5]|0,ne=X&8191,ae=X>>>13,Me=b[6]|0,ge=Me&8191,pe=Me>>>13,ot=b[7]|0,we=ot&8191,me=ot>>>13,ut=b[8]|0,ze=ut&8191,_e=ut>>>13,Bt=b[9]|0,qe=Bt&8191,Te=Bt>>>13,xt=x[0]|0,He=xt&8191,Se=xt>>>13,Rt=x[1]|0,Ve=Rt&8191,Ee=Rt>>>13,Nt=x[2]|0,Ze=Nt&8191,Re=Nt>>>13,Ct=x[3]|0,je=Ct&8191,ke=Ct>>>13,Pt=x[4]|0,Ke=Pt&8191,Ne=Pt>>>13,Ot=x[5]|0,De=Ot&8191,Be=Ot>>>13,kt=x[6]|0,Ge=kt&8191,Ie=kt>>>13,Ut=x[7]|0,Ue=Ut&8191,Oe=Ut>>>13,It=x[8]|0,We=It&8191,Pe=It>>>13,_t=x[9]|0,Le=_t&8191,Ye=_t>>>13;m.negative=a.negative^c.negative,m.length=19,y=Math.imul(L,He),l=Math.imul(L,Se),l=l+Math.imul(F,He)|0,E=Math.imul(F,Se);var Ar=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,y=Math.imul(Z,He),l=Math.imul(Z,Se),l=l+Math.imul(ee,He)|0,E=Math.imul(ee,Se),y=y+Math.imul(L,Ve)|0,l=l+Math.imul(L,Ee)|0,l=l+Math.imul(F,Ve)|0,E=E+Math.imul(F,Ee)|0;var xr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(xr>>>26)|0,xr&=67108863,y=Math.imul(U,He),l=Math.imul(U,Se),l=l+Math.imul(j,He)|0,E=Math.imul(j,Se),y=y+Math.imul(Z,Ve)|0,l=l+Math.imul(Z,Ee)|0,l=l+Math.imul(ee,Ve)|0,E=E+Math.imul(ee,Ee)|0,y=y+Math.imul(L,Ze)|0,l=l+Math.imul(L,Re)|0,l=l+Math.imul(F,Ze)|0,E=E+Math.imul(F,Re)|0;var Er=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Er>>>26)|0,Er&=67108863,y=Math.imul(re,He),l=Math.imul(re,Se),l=l+Math.imul(oe,He)|0,E=Math.imul(oe,Se),y=y+Math.imul(U,Ve)|0,l=l+Math.imul(U,Ee)|0,l=l+Math.imul(j,Ve)|0,E=E+Math.imul(j,Ee)|0,y=y+Math.imul(Z,Ze)|0,l=l+Math.imul(Z,Re)|0,l=l+Math.imul(ee,Ze)|0,E=E+Math.imul(ee,Re)|0,y=y+Math.imul(L,je)|0,l=l+Math.imul(L,ke)|0,l=l+Math.imul(F,je)|0,E=E+Math.imul(F,ke)|0;var Gt=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,y=Math.imul(z,He),l=Math.imul(z,Se),l=l+Math.imul(G,He)|0,E=Math.imul(G,Se),y=y+Math.imul(re,Ve)|0,l=l+Math.imul(re,Ee)|0,l=l+Math.imul(oe,Ve)|0,E=E+Math.imul(oe,Ee)|0,y=y+Math.imul(U,Ze)|0,l=l+Math.imul(U,Re)|0,l=l+Math.imul(j,Ze)|0,E=E+Math.imul(j,Re)|0,y=y+Math.imul(Z,je)|0,l=l+Math.imul(Z,ke)|0,l=l+Math.imul(ee,je)|0,E=E+Math.imul(ee,ke)|0,y=y+Math.imul(L,Ke)|0,l=l+Math.imul(L,Ne)|0,l=l+Math.imul(F,Ke)|0,E=E+Math.imul(F,Ne)|0;var Vt=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,y=Math.imul(ne,He),l=Math.imul(ne,Se),l=l+Math.imul(ae,He)|0,E=Math.imul(ae,Se),y=y+Math.imul(z,Ve)|0,l=l+Math.imul(z,Ee)|0,l=l+Math.imul(G,Ve)|0,E=E+Math.imul(G,Ee)|0,y=y+Math.imul(re,Ze)|0,l=l+Math.imul(re,Re)|0,l=l+Math.imul(oe,Ze)|0,E=E+Math.imul(oe,Re)|0,y=y+Math.imul(U,je)|0,l=l+Math.imul(U,ke)|0,l=l+Math.imul(j,je)|0,E=E+Math.imul(j,ke)|0,y=y+Math.imul(Z,Ke)|0,l=l+Math.imul(Z,Ne)|0,l=l+Math.imul(ee,Ke)|0,E=E+Math.imul(ee,Ne)|0,y=y+Math.imul(L,De)|0,l=l+Math.imul(L,Be)|0,l=l+Math.imul(F,De)|0,E=E+Math.imul(F,Be)|0;var Lr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,y=Math.imul(ge,He),l=Math.imul(ge,Se),l=l+Math.imul(pe,He)|0,E=Math.imul(pe,Se),y=y+Math.imul(ne,Ve)|0,l=l+Math.imul(ne,Ee)|0,l=l+Math.imul(ae,Ve)|0,E=E+Math.imul(ae,Ee)|0,y=y+Math.imul(z,Ze)|0,l=l+Math.imul(z,Re)|0,l=l+Math.imul(G,Ze)|0,E=E+Math.imul(G,Re)|0,y=y+Math.imul(re,je)|0,l=l+Math.imul(re,ke)|0,l=l+Math.imul(oe,je)|0,E=E+Math.imul(oe,ke)|0,y=y+Math.imul(U,Ke)|0,l=l+Math.imul(U,Ne)|0,l=l+Math.imul(j,Ke)|0,E=E+Math.imul(j,Ne)|0,y=y+Math.imul(Z,De)|0,l=l+Math.imul(Z,Be)|0,l=l+Math.imul(ee,De)|0,E=E+Math.imul(ee,Be)|0,y=y+Math.imul(L,Ge)|0,l=l+Math.imul(L,Ie)|0,l=l+Math.imul(F,Ge)|0,E=E+Math.imul(F,Ie)|0;var Zr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,y=Math.imul(we,He),l=Math.imul(we,Se),l=l+Math.imul(me,He)|0,E=Math.imul(me,Se),y=y+Math.imul(ge,Ve)|0,l=l+Math.imul(ge,Ee)|0,l=l+Math.imul(pe,Ve)|0,E=E+Math.imul(pe,Ee)|0,y=y+Math.imul(ne,Ze)|0,l=l+Math.imul(ne,Re)|0,l=l+Math.imul(ae,Ze)|0,E=E+Math.imul(ae,Re)|0,y=y+Math.imul(z,je)|0,l=l+Math.imul(z,ke)|0,l=l+Math.imul(G,je)|0,E=E+Math.imul(G,ke)|0,y=y+Math.imul(re,Ke)|0,l=l+Math.imul(re,Ne)|0,l=l+Math.imul(oe,Ke)|0,E=E+Math.imul(oe,Ne)|0,y=y+Math.imul(U,De)|0,l=l+Math.imul(U,Be)|0,l=l+Math.imul(j,De)|0,E=E+Math.imul(j,Be)|0,y=y+Math.imul(Z,Ge)|0,l=l+Math.imul(Z,Ie)|0,l=l+Math.imul(ee,Ge)|0,E=E+Math.imul(ee,Ie)|0,y=y+Math.imul(L,Ue)|0,l=l+Math.imul(L,Oe)|0,l=l+Math.imul(F,Ue)|0,E=E+Math.imul(F,Oe)|0;var Ir=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,y=Math.imul(ze,He),l=Math.imul(ze,Se),l=l+Math.imul(_e,He)|0,E=Math.imul(_e,Se),y=y+Math.imul(we,Ve)|0,l=l+Math.imul(we,Ee)|0,l=l+Math.imul(me,Ve)|0,E=E+Math.imul(me,Ee)|0,y=y+Math.imul(ge,Ze)|0,l=l+Math.imul(ge,Re)|0,l=l+Math.imul(pe,Ze)|0,E=E+Math.imul(pe,Re)|0,y=y+Math.imul(ne,je)|0,l=l+Math.imul(ne,ke)|0,l=l+Math.imul(ae,je)|0,E=E+Math.imul(ae,ke)|0,y=y+Math.imul(z,Ke)|0,l=l+Math.imul(z,Ne)|0,l=l+Math.imul(G,Ke)|0,E=E+Math.imul(G,Ne)|0,y=y+Math.imul(re,De)|0,l=l+Math.imul(re,Be)|0,l=l+Math.imul(oe,De)|0,E=E+Math.imul(oe,Be)|0,y=y+Math.imul(U,Ge)|0,l=l+Math.imul(U,Ie)|0,l=l+Math.imul(j,Ge)|0,E=E+Math.imul(j,Ie)|0,y=y+Math.imul(Z,Ue)|0,l=l+Math.imul(Z,Oe)|0,l=l+Math.imul(ee,Ue)|0,E=E+Math.imul(ee,Oe)|0,y=y+Math.imul(L,We)|0,l=l+Math.imul(L,Pe)|0,l=l+Math.imul(F,We)|0,E=E+Math.imul(F,Pe)|0;var Dr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,y=Math.imul(qe,He),l=Math.imul(qe,Se),l=l+Math.imul(Te,He)|0,E=Math.imul(Te,Se),y=y+Math.imul(ze,Ve)|0,l=l+Math.imul(ze,Ee)|0,l=l+Math.imul(_e,Ve)|0,E=E+Math.imul(_e,Ee)|0,y=y+Math.imul(we,Ze)|0,l=l+Math.imul(we,Re)|0,l=l+Math.imul(me,Ze)|0,E=E+Math.imul(me,Re)|0,y=y+Math.imul(ge,je)|0,l=l+Math.imul(ge,ke)|0,l=l+Math.imul(pe,je)|0,E=E+Math.imul(pe,ke)|0,y=y+Math.imul(ne,Ke)|0,l=l+Math.imul(ne,Ne)|0,l=l+Math.imul(ae,Ke)|0,E=E+Math.imul(ae,Ne)|0,y=y+Math.imul(z,De)|0,l=l+Math.imul(z,Be)|0,l=l+Math.imul(G,De)|0,E=E+Math.imul(G,Be)|0,y=y+Math.imul(re,Ge)|0,l=l+Math.imul(re,Ie)|0,l=l+Math.imul(oe,Ge)|0,E=E+Math.imul(oe,Ie)|0,y=y+Math.imul(U,Ue)|0,l=l+Math.imul(U,Oe)|0,l=l+Math.imul(j,Ue)|0,E=E+Math.imul(j,Oe)|0,y=y+Math.imul(Z,We)|0,l=l+Math.imul(Z,Pe)|0,l=l+Math.imul(ee,We)|0,E=E+Math.imul(ee,Pe)|0,y=y+Math.imul(L,Le)|0,l=l+Math.imul(L,Ye)|0,l=l+Math.imul(F,Le)|0,E=E+Math.imul(F,Ye)|0;var ar=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(ar>>>26)|0,ar&=67108863,y=Math.imul(qe,Ve),l=Math.imul(qe,Ee),l=l+Math.imul(Te,Ve)|0,E=Math.imul(Te,Ee),y=y+Math.imul(ze,Ze)|0,l=l+Math.imul(ze,Re)|0,l=l+Math.imul(_e,Ze)|0,E=E+Math.imul(_e,Re)|0,y=y+Math.imul(we,je)|0,l=l+Math.imul(we,ke)|0,l=l+Math.imul(me,je)|0,E=E+Math.imul(me,ke)|0,y=y+Math.imul(ge,Ke)|0,l=l+Math.imul(ge,Ne)|0,l=l+Math.imul(pe,Ke)|0,E=E+Math.imul(pe,Ne)|0,y=y+Math.imul(ne,De)|0,l=l+Math.imul(ne,Be)|0,l=l+Math.imul(ae,De)|0,E=E+Math.imul(ae,Be)|0,y=y+Math.imul(z,Ge)|0,l=l+Math.imul(z,Ie)|0,l=l+Math.imul(G,Ge)|0,E=E+Math.imul(G,Ie)|0,y=y+Math.imul(re,Ue)|0,l=l+Math.imul(re,Oe)|0,l=l+Math.imul(oe,Ue)|0,E=E+Math.imul(oe,Oe)|0,y=y+Math.imul(U,We)|0,l=l+Math.imul(U,Pe)|0,l=l+Math.imul(j,We)|0,E=E+Math.imul(j,Pe)|0,y=y+Math.imul(Z,Le)|0,l=l+Math.imul(Z,Ye)|0,l=l+Math.imul(ee,Le)|0,E=E+Math.imul(ee,Ye)|0;var mr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(mr>>>26)|0,mr&=67108863,y=Math.imul(qe,Ze),l=Math.imul(qe,Re),l=l+Math.imul(Te,Ze)|0,E=Math.imul(Te,Re),y=y+Math.imul(ze,je)|0,l=l+Math.imul(ze,ke)|0,l=l+Math.imul(_e,je)|0,E=E+Math.imul(_e,ke)|0,y=y+Math.imul(we,Ke)|0,l=l+Math.imul(we,Ne)|0,l=l+Math.imul(me,Ke)|0,E=E+Math.imul(me,Ne)|0,y=y+Math.imul(ge,De)|0,l=l+Math.imul(ge,Be)|0,l=l+Math.imul(pe,De)|0,E=E+Math.imul(pe,Be)|0,y=y+Math.imul(ne,Ge)|0,l=l+Math.imul(ne,Ie)|0,l=l+Math.imul(ae,Ge)|0,E=E+Math.imul(ae,Ie)|0,y=y+Math.imul(z,Ue)|0,l=l+Math.imul(z,Oe)|0,l=l+Math.imul(G,Ue)|0,E=E+Math.imul(G,Oe)|0,y=y+Math.imul(re,We)|0,l=l+Math.imul(re,Pe)|0,l=l+Math.imul(oe,We)|0,E=E+Math.imul(oe,Pe)|0,y=y+Math.imul(U,Le)|0,l=l+Math.imul(U,Ye)|0,l=l+Math.imul(j,Le)|0,E=E+Math.imul(j,Ye)|0;var jr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(jr>>>26)|0,jr&=67108863,y=Math.imul(qe,je),l=Math.imul(qe,ke),l=l+Math.imul(Te,je)|0,E=Math.imul(Te,ke),y=y+Math.imul(ze,Ke)|0,l=l+Math.imul(ze,Ne)|0,l=l+Math.imul(_e,Ke)|0,E=E+Math.imul(_e,Ne)|0,y=y+Math.imul(we,De)|0,l=l+Math.imul(we,Be)|0,l=l+Math.imul(me,De)|0,E=E+Math.imul(me,Be)|0,y=y+Math.imul(ge,Ge)|0,l=l+Math.imul(ge,Ie)|0,l=l+Math.imul(pe,Ge)|0,E=E+Math.imul(pe,Ie)|0,y=y+Math.imul(ne,Ue)|0,l=l+Math.imul(ne,Oe)|0,l=l+Math.imul(ae,Ue)|0,E=E+Math.imul(ae,Oe)|0,y=y+Math.imul(z,We)|0,l=l+Math.imul(z,Pe)|0,l=l+Math.imul(G,We)|0,E=E+Math.imul(G,Pe)|0,y=y+Math.imul(re,Le)|0,l=l+Math.imul(re,Ye)|0,l=l+Math.imul(oe,Le)|0,E=E+Math.imul(oe,Ye)|0;var Yr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,y=Math.imul(qe,Ke),l=Math.imul(qe,Ne),l=l+Math.imul(Te,Ke)|0,E=Math.imul(Te,Ne),y=y+Math.imul(ze,De)|0,l=l+Math.imul(ze,Be)|0,l=l+Math.imul(_e,De)|0,E=E+Math.imul(_e,Be)|0,y=y+Math.imul(we,Ge)|0,l=l+Math.imul(we,Ie)|0,l=l+Math.imul(me,Ge)|0,E=E+Math.imul(me,Ie)|0,y=y+Math.imul(ge,Ue)|0,l=l+Math.imul(ge,Oe)|0,l=l+Math.imul(pe,Ue)|0,E=E+Math.imul(pe,Oe)|0,y=y+Math.imul(ne,We)|0,l=l+Math.imul(ne,Pe)|0,l=l+Math.imul(ae,We)|0,E=E+Math.imul(ae,Pe)|0,y=y+Math.imul(z,Le)|0,l=l+Math.imul(z,Ye)|0,l=l+Math.imul(G,Le)|0,E=E+Math.imul(G,Ye)|0;var or=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(or>>>26)|0,or&=67108863,y=Math.imul(qe,De),l=Math.imul(qe,Be),l=l+Math.imul(Te,De)|0,E=Math.imul(Te,Be),y=y+Math.imul(ze,Ge)|0,l=l+Math.imul(ze,Ie)|0,l=l+Math.imul(_e,Ge)|0,E=E+Math.imul(_e,Ie)|0,y=y+Math.imul(we,Ue)|0,l=l+Math.imul(we,Oe)|0,l=l+Math.imul(me,Ue)|0,E=E+Math.imul(me,Oe)|0,y=y+Math.imul(ge,We)|0,l=l+Math.imul(ge,Pe)|0,l=l+Math.imul(pe,We)|0,E=E+Math.imul(pe,Pe)|0,y=y+Math.imul(ne,Le)|0,l=l+Math.imul(ne,Ye)|0,l=l+Math.imul(ae,Le)|0,E=E+Math.imul(ae,Ye)|0;var Qr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,y=Math.imul(qe,Ge),l=Math.imul(qe,Ie),l=l+Math.imul(Te,Ge)|0,E=Math.imul(Te,Ie),y=y+Math.imul(ze,Ue)|0,l=l+Math.imul(ze,Oe)|0,l=l+Math.imul(_e,Ue)|0,E=E+Math.imul(_e,Oe)|0,y=y+Math.imul(we,We)|0,l=l+Math.imul(we,Pe)|0,l=l+Math.imul(me,We)|0,E=E+Math.imul(me,Pe)|0,y=y+Math.imul(ge,Le)|0,l=l+Math.imul(ge,Ye)|0,l=l+Math.imul(pe,Le)|0,E=E+Math.imul(pe,Ye)|0;var Mr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,y=Math.imul(qe,Ue),l=Math.imul(qe,Oe),l=l+Math.imul(Te,Ue)|0,E=Math.imul(Te,Oe),y=y+Math.imul(ze,We)|0,l=l+Math.imul(ze,Pe)|0,l=l+Math.imul(_e,We)|0,E=E+Math.imul(_e,Pe)|0,y=y+Math.imul(we,Le)|0,l=l+Math.imul(we,Ye)|0,l=l+Math.imul(me,Le)|0,E=E+Math.imul(me,Ye)|0;var Xr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,y=Math.imul(qe,We),l=Math.imul(qe,Pe),l=l+Math.imul(Te,We)|0,E=Math.imul(Te,Pe),y=y+Math.imul(ze,Le)|0,l=l+Math.imul(ze,Ye)|0,l=l+Math.imul(_e,Le)|0,E=E+Math.imul(_e,Ye)|0;var on=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(on>>>26)|0,on&=67108863,y=Math.imul(qe,Le),l=Math.imul(qe,Ye),l=l+Math.imul(Te,Le)|0,E=Math.imul(Te,Ye);var Cr=(S+y|0)+((l&8191)<<13)|0;return S=(E+(l>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,_[0]=Ar,_[1]=xr,_[2]=Er,_[3]=Gt,_[4]=Vt,_[5]=Lr,_[6]=Zr,_[7]=Ir,_[8]=Dr,_[9]=ar,_[10]=mr,_[11]=jr,_[12]=Yr,_[13]=or,_[14]=Qr,_[15]=Mr,_[16]=Xr,_[17]=on,_[18]=Cr,S!==0&&(_[19]=S,m.length++),m};Math.imul||(C=N);function B(g,a,c){c.negative=a.negative^g.negative,c.length=g.length+a.length;for(var m=0,b=0,x=0;x>>26)|0,b+=_>>>26,_&=67108863}c.words[x]=S,m=_,_=b}return m!==0?c.words[x]=m:c.length--,c._strip()}function O(g,a,c){return B(g,a,c)}i.prototype.mulTo=function(a,c){var m,b=this.length+a.length;return this.length===10&&a.length===10?m=C(this,a,c):b<63?m=N(this,a,c):b<1024?m=B(this,a,c):m=O(this,a,c),m},i.prototype.mul=function(a){var c=new i(null);return c.words=new Array(this.length+a.length),this.mulTo(a,c)},i.prototype.mulf=function(a){var c=new i(null);return c.words=new Array(this.length+a.length),O(this,a,c)},i.prototype.imul=function(a){return this.clone().mulTo(a,this)},i.prototype.imuln=function(a){var c=a<0;c&&(a=-a),n(typeof a=="number"),n(a<67108864);for(var m=0,b=0;b>=26,m+=x/67108864|0,m+=_>>>26,this.words[b]=_&67108863}return m!==0&&(this.words[b]=m,this.length++),c?this.ineg():this},i.prototype.muln=function(a){return this.clone().imuln(a)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(a){var c=R(a);if(c.length===0)return new i(1);for(var m=this,b=0;b=0);var c=a%26,m=(a-c)/26,b=67108863>>>26-c<<26-c,x;if(c!==0){var _=0;for(x=0;x>>26-c}_&&(this.words[x]=_,this.length++)}if(m!==0){for(x=this.length-1;x>=0;x--)this.words[x+m]=this.words[x];for(x=0;x=0);var b;c?b=(c-c%26)/26:b=0;var x=a%26,_=Math.min((a-x)/26,this.length),S=67108863^67108863>>>x<_)for(this.length-=_,l=0;l=0&&(E!==0||l>=b);l--){var Y=this.words[l]|0;this.words[l]=E<<26-x|Y>>>x,E=Y&S}return y&&E!==0&&(y.words[y.length++]=E),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(a,c,m){return n(this.negative===0),this.iushrn(a,c,m)},i.prototype.shln=function(a){return this.clone().ishln(a)},i.prototype.ushln=function(a){return this.clone().iushln(a)},i.prototype.shrn=function(a){return this.clone().ishrn(a)},i.prototype.ushrn=function(a){return this.clone().iushrn(a)},i.prototype.testn=function(a){n(typeof a=="number"&&a>=0);var c=a%26,m=(a-c)/26,b=1<=0);var c=a%26,m=(a-c)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(c!==0&&m++,this.length=Math.min(m,this.length),c!==0){var b=67108863^67108863>>>c<=67108864;c++)this.words[c]-=67108864,c===this.length-1?this.words[c+1]=1:this.words[c+1]++;return this.length=Math.max(this.length,c+1),this},i.prototype.isubn=function(a){if(n(typeof a=="number"),n(a<67108864),a<0)return this.iaddn(-a);if(this.negative!==0)return this.negative=0,this.iaddn(a),this.negative=1,this;if(this.words[0]-=a,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var c=0;c>26)-(y/67108864|0),this.words[x+m]=_&67108863}for(;x>26,this.words[x+m]=_&67108863;if(S===0)return this._strip();for(n(S===-1),S=0,x=0;x>26,this.words[x]=_&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(a,c){var m=this.length-a.length,b=this.clone(),x=a,_=x.words[x.length-1]|0,S=this._countBits(_);m=26-S,m!==0&&(x=x.ushln(m),b.iushln(m),_=x.words[x.length-1]|0);var y=b.length-x.length,l;if(c!=="mod"){l=new i(null),l.length=y+1,l.words=new Array(l.length);for(var E=0;E=0;L--){var F=(b.words[x.length+L]|0)*67108864+(b.words[x.length+L-1]|0);for(F=Math.min(F/_|0,67108863),b._ishlnsubmul(x,F,L);b.negative!==0;)F--,b.negative=0,b._ishlnsubmul(x,1,L),b.isZero()||(b.negative^=1);l&&(l.words[L]=F)}return l&&l._strip(),b._strip(),c!=="div"&&m!==0&&b.iushrn(m),{div:l||null,mod:b}},i.prototype.divmod=function(a,c,m){if(n(!a.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var b,x,_;return this.negative!==0&&a.negative===0?(_=this.neg().divmod(a,c),c!=="mod"&&(b=_.div.neg()),c!=="div"&&(x=_.mod.neg(),m&&x.negative!==0&&x.iadd(a)),{div:b,mod:x}):this.negative===0&&a.negative!==0?(_=this.divmod(a.neg(),c),c!=="mod"&&(b=_.div.neg()),{div:b,mod:_.mod}):this.negative&a.negative?(_=this.neg().divmod(a.neg(),c),c!=="div"&&(x=_.mod.neg(),m&&x.negative!==0&&x.isub(a)),{div:_.div,mod:x}):a.length>this.length||this.cmp(a)<0?{div:new i(0),mod:this}:a.length===1?c==="div"?{div:this.divn(a.words[0]),mod:null}:c==="mod"?{div:null,mod:new i(this.modrn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new i(this.modrn(a.words[0]))}:this._wordDiv(a,c)},i.prototype.div=function(a){return this.divmod(a,"div",!1).div},i.prototype.mod=function(a){return this.divmod(a,"mod",!1).mod},i.prototype.umod=function(a){return this.divmod(a,"mod",!0).mod},i.prototype.divRound=function(a){var c=this.divmod(a);if(c.mod.isZero())return c.div;var m=c.div.negative!==0?c.mod.isub(a):c.mod,b=a.ushrn(1),x=a.andln(1),_=m.cmp(b);return _<0||x===1&&_===0?c.div:c.div.negative!==0?c.div.isubn(1):c.div.iaddn(1)},i.prototype.modrn=function(a){var c=a<0;c&&(a=-a),n(a<=67108863);for(var m=(1<<26)%a,b=0,x=this.length-1;x>=0;x--)b=(m*b+(this.words[x]|0))%a;return c?-b:b},i.prototype.modn=function(a){return this.modrn(a)},i.prototype.idivn=function(a){var c=a<0;c&&(a=-a),n(a<=67108863);for(var m=0,b=this.length-1;b>=0;b--){var x=(this.words[b]|0)+m*67108864;this.words[b]=x/a|0,m=x%a}return this._strip(),c?this.ineg():this},i.prototype.divn=function(a){return this.clone().idivn(a)},i.prototype.egcd=function(a){n(a.negative===0),n(!a.isZero());var c=this,m=a.clone();c.negative!==0?c=c.umod(a):c=c.clone();for(var b=new i(1),x=new i(0),_=new i(0),S=new i(1),y=0;c.isEven()&&m.isEven();)c.iushrn(1),m.iushrn(1),++y;for(var l=m.clone(),E=c.clone();!c.isZero();){for(var Y=0,L=1;!(c.words[0]&L)&&Y<26;++Y,L<<=1);if(Y>0)for(c.iushrn(Y);Y-- >0;)(b.isOdd()||x.isOdd())&&(b.iadd(l),x.isub(E)),b.iushrn(1),x.iushrn(1);for(var F=0,V=1;!(m.words[0]&V)&&F<26;++F,V<<=1);if(F>0)for(m.iushrn(F);F-- >0;)(_.isOdd()||S.isOdd())&&(_.iadd(l),S.isub(E)),_.iushrn(1),S.iushrn(1);c.cmp(m)>=0?(c.isub(m),b.isub(_),x.isub(S)):(m.isub(c),_.isub(b),S.isub(x))}return{a:_,b:S,gcd:m.iushln(y)}},i.prototype._invmp=function(a){n(a.negative===0),n(!a.isZero());var c=this,m=a.clone();c.negative!==0?c=c.umod(a):c=c.clone();for(var b=new i(1),x=new i(0),_=m.clone();c.cmpn(1)>0&&m.cmpn(1)>0;){for(var S=0,y=1;!(c.words[0]&y)&&S<26;++S,y<<=1);if(S>0)for(c.iushrn(S);S-- >0;)b.isOdd()&&b.iadd(_),b.iushrn(1);for(var l=0,E=1;!(m.words[0]&E)&&l<26;++l,E<<=1);if(l>0)for(m.iushrn(l);l-- >0;)x.isOdd()&&x.iadd(_),x.iushrn(1);c.cmp(m)>=0?(c.isub(m),b.isub(x)):(m.isub(c),x.isub(b))}var Y;return c.cmpn(1)===0?Y=b:Y=x,Y.cmpn(0)<0&&Y.iadd(a),Y},i.prototype.gcd=function(a){if(this.isZero())return a.abs();if(a.isZero())return this.abs();var c=this.clone(),m=a.clone();c.negative=0,m.negative=0;for(var b=0;c.isEven()&&m.isEven();b++)c.iushrn(1),m.iushrn(1);do{for(;c.isEven();)c.iushrn(1);for(;m.isEven();)m.iushrn(1);var x=c.cmp(m);if(x<0){var _=c;c=m,m=_}else if(x===0||m.cmpn(1)===0)break;c.isub(m)}while(!0);return m.iushln(b)},i.prototype.invm=function(a){return this.egcd(a).a.umod(a)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(a){return this.words[0]&a},i.prototype.bincn=function(a){n(typeof a=="number");var c=a%26,m=(a-c)/26,b=1<>>26,S&=67108863,this.words[_]=S}return x!==0&&(this.words[_]=x,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(a){var c=a<0;if(this.negative!==0&&!c)return-1;if(this.negative===0&&c)return 1;this._strip();var m;if(this.length>1)m=1;else{c&&(a=-a),n(a<=67108863,"Number is too big");var b=this.words[0]|0;m=b===a?0:ba.length)return 1;if(this.length=0;m--){var b=this.words[m]|0,x=a.words[m]|0;if(b!==x){bx&&(c=1);break}}return c},i.prototype.gtn=function(a){return this.cmpn(a)===1},i.prototype.gt=function(a){return this.cmp(a)===1},i.prototype.gten=function(a){return this.cmpn(a)>=0},i.prototype.gte=function(a){return this.cmp(a)>=0},i.prototype.ltn=function(a){return this.cmpn(a)===-1},i.prototype.lt=function(a){return this.cmp(a)===-1},i.prototype.lten=function(a){return this.cmpn(a)<=0},i.prototype.lte=function(a){return this.cmp(a)<=0},i.prototype.eqn=function(a){return this.cmpn(a)===0},i.prototype.eq=function(a){return this.cmp(a)===0},i.red=function(a){return new P(a)},i.prototype.toRed=function(a){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),a.convertTo(this)._forceRed(a)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(a){return this.red=a,this},i.prototype.forceRed=function(a){return n(!this.red,"Already a number in reduction context"),this._forceRed(a)},i.prototype.redAdd=function(a){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,a)},i.prototype.redIAdd=function(a){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,a)},i.prototype.redSub=function(a){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,a)},i.prototype.redISub=function(a){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,a)},i.prototype.redShl=function(a){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,a)},i.prototype.redMul=function(a){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,a),this.red.mul(this,a)},i.prototype.redIMul=function(a){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,a),this.red.imul(this,a)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(a){return n(this.red&&!a.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,a)};var D={k256:null,p224:null,p192:null,p25519:null};function q(g,a){this.name=g,this.p=new i(a,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}q.prototype._tmp=function(){var a=new i(null);return a.words=new Array(Math.ceil(this.n/13)),a},q.prototype.ireduce=function(a){var c=a,m;do this.split(c,this.tmp),c=this.imulK(c),c=c.iadd(this.tmp),m=c.bitLength();while(m>this.n);var b=m0?c.isub(this.p):c.strip!==void 0?c.strip():c._strip(),c},q.prototype.split=function(a,c){a.iushrn(this.n,0,c)},q.prototype.imulK=function(a){return a.imul(this.k)};function W(){q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}s(W,q),W.prototype.split=function(a,c){for(var m=4194303,b=Math.min(a.length,9),x=0;x>>22,_=S}_>>>=22,a.words[x-10]=_,_===0&&a.length>10?a.length-=10:a.length-=9},W.prototype.imulK=function(a){a.words[a.length]=0,a.words[a.length+1]=0,a.length+=2;for(var c=0,m=0;m>>=26,a.words[m]=x,c=b}return c!==0&&(a.words[a.length++]=c),a},i._prime=function(a){if(D[a])return D[a];var c;if(a==="k256")c=new W;else if(a==="p224")c=new k;else if(a==="p192")c=new I;else if(a==="p25519")c=new H;else throw new Error("Unknown prime "+a);return D[a]=c,c};function P(g){if(typeof g=="string"){var a=i._prime(g);this.m=a.p,this.prime=a}else n(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}P.prototype._verify1=function(a){n(a.negative===0,"red works only with positives"),n(a.red,"red works only with red numbers")},P.prototype._verify2=function(a,c){n((a.negative|c.negative)===0,"red works only with positives"),n(a.red&&a.red===c.red,"red works only with red numbers")},P.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):(p(a,a.umod(this.m)._forceRed(this)),a)},P.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},P.prototype.add=function(a,c){this._verify2(a,c);var m=a.add(c);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},P.prototype.iadd=function(a,c){this._verify2(a,c);var m=a.iadd(c);return m.cmp(this.m)>=0&&m.isub(this.m),m},P.prototype.sub=function(a,c){this._verify2(a,c);var m=a.sub(c);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},P.prototype.isub=function(a,c){this._verify2(a,c);var m=a.isub(c);return m.cmpn(0)<0&&m.iadd(this.m),m},P.prototype.shl=function(a,c){return this._verify1(a),this.imod(a.ushln(c))},P.prototype.imul=function(a,c){return this._verify2(a,c),this.imod(a.imul(c))},P.prototype.mul=function(a,c){return this._verify2(a,c),this.imod(a.mul(c))},P.prototype.isqr=function(a){return this.imul(a,a.clone())},P.prototype.sqr=function(a){return this.mul(a,a)},P.prototype.sqrt=function(a){if(a.isZero())return a.clone();var c=this.m.andln(3);if(n(c%2===1),c===3){var m=this.m.add(new i(1)).iushrn(2);return this.pow(a,m)}for(var b=this.m.subn(1),x=0;!b.isZero()&&b.andln(1)===0;)x++,b.iushrn(1);n(!b.isZero());var _=new i(1).toRed(this),S=_.redNeg(),y=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);this.pow(l,y).cmp(S)!==0;)l.redIAdd(S);for(var E=this.pow(l,b),Y=this.pow(a,b.addn(1).iushrn(1)),L=this.pow(a,b),F=x;L.cmp(_)!==0;){for(var V=L,Z=0;V.cmp(_)!==0;Z++)V=V.redSqr();n(Z=0;x--){for(var E=c.words[x],Y=l-1;Y>=0;Y--){var L=E>>Y&1;if(_!==b[0]&&(_=this.sqr(_)),L===0&&S===0){y=0;continue}S<<=1,S|=L,y++,!(y!==m&&(x!==0||Y!==0))&&(_=this.mul(_,b[S]),y=0,S=0)}l=26}return _},P.prototype.convertTo=function(a){var c=a.umod(this.m);return c===a?c.clone():c},P.prototype.convertFrom=function(a){var c=a.clone();return c.red=null,c},i.mont=function(a){return new T(a)};function T(g){P.call(this,g),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}s(T,P),T.prototype.convertTo=function(a){return this.imod(a.ushln(this.shift))},T.prototype.convertFrom=function(a){var c=this.imod(a.mul(this.rinv));return c.red=null,c},T.prototype.imul=function(a,c){if(a.isZero()||c.isZero())return a.words[0]=0,a.length=1,a;var m=a.imul(c),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=m.isub(b).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},T.prototype.mul=function(a,c){if(a.isZero()||c.isZero())return new i(0)._forceRed(this);var m=a.mul(c),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=m.isub(b).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},T.prototype.invm=function(a){var c=this.imod(a._invmp(this.m).mul(this.r2));return c._forceRed(this)}})(t,ue)})(Tq);var uh=qw,kq=Cl;function Bq(t){var e=B_(t),r=e.toRed(uh.mont(t.modulus)).redPow(new uh(t.publicExponent)).fromRed();return{blinder:r,unblinder:e.invm(t.modulus)}}function B_(t){var e=t.modulus.byteLength(),r;do r=new uh(kq(e));while(r.cmp(t.modulus)>=0||!r.umod(t.prime1)||!r.umod(t.prime2));return r}function I_(t,e){var r=Bq(e),n=e.modulus.byteLength(),s=new uh(t).mul(r.blinder).umod(e.modulus),i=s.toRed(uh.mont(e.prime1)),o=s.toRed(uh.mont(e.prime2)),f=e.coefficient,u=e.prime1,h=e.prime2,p=i.redPow(e.exponent1).fromRed(),d=o.redPow(e.exponent2).fromRed(),v=p.isub(d).imul(f).umod(u).imul(h);return d.iadd(v).imul(r.unblinder).umod(e.modulus).toArrayLike(mt.Buffer,"be",n)}I_.getr=B_;var P3=I_,E2={};const Iq="elliptic",Pq="6.5.4",Oq="EC cryptography",Lq="lib/elliptic.js",Dq=["lib"],Fq={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},Uq={type:"git",url:"git@github.com:indutny/elliptic"},Hq=["EC","Elliptic","curve","Cryptography"],jq="Fedor Indutny ",zq="MIT",Kq={url:"https://github.com/indutny/elliptic/issues"},qq="https://github.com/indutny/elliptic",Gq={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},Vq={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},Wq={name:Iq,version:Pq,description:Oq,main:Lq,files:Dq,scripts:Fq,repository:Uq,keywords:Hq,author:jq,license:zq,bugs:Kq,homepage:qq,devDependencies:Gq,dependencies:Vq};var Bs={},O3={};(function(t){var e=t;function r(i,o){if(Array.isArray(i))return i.slice();if(!i)return[];var f=[];if(typeof i!="string"){for(var u=0;u>8,d=h&255;p?f.push(p,d):f.push(d)}return f}e.toArray=r;function n(i){return i.length===1?"0"+i:i}e.zero2=n;function s(i){for(var o="",f=0;f(A>>1)-1?N=(A>>1)-C:N=C,M.isubn(N)):N=0,w[R]=N,M.iushrn(1)}return w}e.getNAF=i;function o(p,d){var v=[[],[]];p=p.clone(),d=d.clone();for(var w=0,A=0,M;p.cmpn(-w)>0||d.cmpn(-A)>0;){var R=p.andln(3)+w&3,N=d.andln(3)+A&3;R===3&&(R=-1),N===3&&(N=-1);var C;R&1?(M=p.andln(7)+w&7,(M===3||M===5)&&N===2?C=-R:C=R):C=0,v[0].push(C);var B;N&1?(M=d.andln(7)+A&7,(M===3||M===5)&&R===2?B=-N:B=N):B=0,v[1].push(B),2*w===C+1&&(w=1-w),2*A===B+1&&(A=1-A),p.iushrn(1),d.iushrn(1)}return v}e.getJSF=o;function f(p,d,v){var w="_"+d;p.prototype[d]=function(){return this[w]!==void 0?this[w]:this[w]=v.call(this)}}e.cachedProperty=f;function u(p){return typeof p=="string"?e.toArray(p,"hex"):p}e.parseBytes=u;function h(p){return new r(p,"hex","le")}e.intFromLE=h})(Bs);var L3={},ic=gn,S1=Bs,jg=S1.getNAF,Zq=S1.getJSF,zg=S1.assert;function Ul(t,e){this.type=t,this.p=new ic(e.p,16),this.red=e.prime?ic.red(e.prime):ic.mont(this.p),this.zero=new ic(0).toRed(this.red),this.one=new ic(1).toRed(this.red),this.two=new ic(2).toRed(this.red),this.n=e.n&&new ic(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var dy=Ul;Ul.prototype.point=function(){throw new Error("Not implemented")};Ul.prototype.validate=function(){throw new Error("Not implemented")};Ul.prototype._fixedNafMul=function(e,r){zg(e.precomputed);var n=e._getDoubles(),s=jg(r,1,this._bitLength),i=(1<=f;h--)u=(u<<1)+s[h];o.push(u)}for(var p=this.jpoint(null,null,null),d=this.jpoint(null,null,null),v=i;v>0;v--){for(f=0;f=0;u--){for(var h=0;u>=0&&o[u]===0;u--)h++;if(u>=0&&h++,f=f.dblp(h),u<0)break;var p=o[u];zg(p!==0),e.type==="affine"?p>0?f=f.mixedAdd(i[p-1>>1]):f=f.mixedAdd(i[-p-1>>1].neg()):p>0?f=f.add(i[p-1>>1]):f=f.add(i[-p-1>>1].neg())}return e.type==="affine"?f.toP():f};Ul.prototype._wnafMulAdd=function(e,r,n,s,i){var o=this._wnafT1,f=this._wnafT2,u=this._wnafT3,h=0,p,d,v;for(p=0;p=1;p-=2){var A=p-1,M=p;if(o[A]!==1||o[M]!==1){u[A]=jg(n[A],o[A],this._bitLength),u[M]=jg(n[M],o[M],this._bitLength),h=Math.max(u[A].length,h),h=Math.max(u[M].length,h);continue}var R=[r[A],null,null,r[M]];r[A].y.cmp(r[M].y)===0?(R[1]=r[A].add(r[M]),R[2]=r[A].toJ().mixedAdd(r[M].neg())):r[A].y.cmp(r[M].y.redNeg())===0?(R[1]=r[A].toJ().mixedAdd(r[M]),R[2]=r[A].add(r[M].neg())):(R[1]=r[A].toJ().mixedAdd(r[M]),R[2]=r[A].toJ().mixedAdd(r[M].neg()));var N=[-3,-1,-5,-7,0,7,5,1,3],C=Zq(n[A],n[M]);for(h=Math.max(C[0].length,h),u[A]=new Array(h),u[M]=new Array(h),d=0;d=0;p--){for(var W=0;p>=0;){var k=!0;for(d=0;d=0&&W++,D=D.dblp(W),p<0)break;for(d=0;d0?v=f[d][I-1>>1]:I<0&&(v=f[d][-I-1>>1].neg()),v.type==="affine"?D=D.mixedAdd(v):D=D.add(v))}}for(p=0;p=Math.ceil((e.bitLength()+1)/r.step):!1};da.prototype._getDoubles=function(e,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],s=this,i=0;i=0&&(w=h,A=p),d.negative&&(d=d.neg(),v=v.neg()),w.negative&&(w=w.neg(),A=A.neg()),[{a:d,b:v},{a:w,b:A}]};pa.prototype._endoSplit=function(e){var r=this.endo.basis,n=r[0],s=r[1],i=s.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),f=i.mul(n.a),u=o.mul(s.a),h=i.mul(n.b),p=o.mul(s.b),d=e.sub(f).sub(u),v=h.add(p).neg();return{k1:d,k2:v}};pa.prototype.pointFromX=function(e,r){e=new Tn(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),s=n.redSqrt();if(s.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var i=s.fromRed().isOdd();return(r&&!i||!r&&i)&&(s=s.redNeg()),this.point(e,s)};pa.prototype.validate=function(e){if(e.inf)return!0;var r=e.x,n=e.y,s=this.a.redMul(r),i=r.redSqr().redMul(r).redIAdd(s).redIAdd(this.b);return n.redSqr().redISub(i).cmpn(0)===0};pa.prototype._endoWnafMulAdd=function(e,r,n){for(var s=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""};ui.prototype.isInfinity=function(){return this.inf};ui.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var r=this.y.redSub(e.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(e.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(e.x),s=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,s)};ui.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),s=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(s),o=i.redSqr().redISub(this.x.redAdd(this.x)),f=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,f)};ui.prototype.getX=function(){return this.x.fromRed()};ui.prototype.getY=function(){return this.y.fromRed()};ui.prototype.mul=function(e){return e=new Tn(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};ui.prototype.mulAdd=function(e,r,n){var s=[this,r],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(s,i):this.curve._wnafMulAdd(1,s,i,2)};ui.prototype.jmulAdd=function(e,r,n){var s=[this,r],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(s,i,!0):this.curve._wnafMulAdd(1,s,i,2,!0)};ui.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};ui.prototype.neg=function(e){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,s=function(i){return i.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(s)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(s)}}}return r};ui.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function Si(t,e,r,n){Fd.BasePoint.call(this,t,"jacobian"),e===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Tn(0)):(this.x=new Tn(e,16),this.y=new Tn(r,16),this.z=new Tn(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}D3(Si,Fd.BasePoint);pa.prototype.jpoint=function(e,r,n){return new Si(this,e,r,n)};Si.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),r=e.redSqr(),n=this.x.redMul(r),s=this.y.redMul(r).redMul(e);return this.curve.point(n,s)};Si.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Si.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var r=e.z.redSqr(),n=this.z.redSqr(),s=this.x.redMul(r),i=e.x.redMul(n),o=this.y.redMul(r.redMul(e.z)),f=e.y.redMul(n.redMul(this.z)),u=s.redSub(i),h=o.redSub(f);if(u.cmpn(0)===0)return h.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var p=u.redSqr(),d=p.redMul(u),v=s.redMul(p),w=h.redSqr().redIAdd(d).redISub(v).redISub(v),A=h.redMul(v.redISub(w)).redISub(o.redMul(d)),M=this.z.redMul(e.z).redMul(u);return this.curve.jpoint(w,A,M)};Si.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var r=this.z.redSqr(),n=this.x,s=e.x.redMul(r),i=this.y,o=e.y.redMul(r).redMul(this.z),f=n.redSub(s),u=i.redSub(o);if(f.cmpn(0)===0)return u.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var h=f.redSqr(),p=h.redMul(f),d=n.redMul(h),v=u.redSqr().redIAdd(p).redISub(d).redISub(d),w=u.redMul(d.redISub(v)).redISub(i.redMul(p)),A=this.z.redMul(f);return this.curve.jpoint(v,w,A)};Si.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r=0)return!1;if(n.redIAdd(i),this.x.cmp(n)===0)return!0}};Si.prototype.inspect=function(){return this.isInfinity()?"":""};Si.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var Wu=gn,P_=Ht,py=dy,Jq=Bs;function Ud(t){py.call(this,"mont",t),this.a=new Wu(t.a,16).toRed(this.red),this.b=new Wu(t.b,16).toRed(this.red),this.i4=new Wu(4).toRed(this.red).redInvm(),this.two=new Wu(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}P_(Ud,py);var $q=Ud;Ud.prototype.validate=function(e){var r=e.normalize().x,n=r.redSqr(),s=n.redMul(r).redAdd(n.redMul(this.a)).redAdd(r),i=s.redSqrt();return i.redSqr().cmp(s)===0};function li(t,e,r){py.BasePoint.call(this,t,"projective"),e===null&&r===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Wu(e,16),this.z=new Wu(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}P_(li,py.BasePoint);Ud.prototype.decodePoint=function(e,r){return this.point(Jq.toArray(e,r),1)};Ud.prototype.point=function(e,r){return new li(this,e,r)};Ud.prototype.pointFromJSON=function(e){return li.fromJSON(this,e)};li.prototype.precompute=function(){};li.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};li.fromJSON=function(e,r){return new li(e,r[0],r[1]||e.one)};li.prototype.inspect=function(){return this.isInfinity()?"":""};li.prototype.isInfinity=function(){return this.z.cmpn(0)===0};li.prototype.dbl=function(){var e=this.x.redAdd(this.z),r=e.redSqr(),n=this.x.redSub(this.z),s=n.redSqr(),i=r.redSub(s),o=r.redMul(s),f=i.redMul(s.redAdd(this.curve.a24.redMul(i)));return this.curve.point(o,f)};li.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};li.prototype.diffAdd=function(e,r){var n=this.x.redAdd(this.z),s=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z),f=o.redMul(n),u=i.redMul(s),h=r.z.redMul(f.redAdd(u).redSqr()),p=r.x.redMul(f.redISub(u).redSqr());return this.curve.point(h,p)};li.prototype.mul=function(e){for(var r=e.clone(),n=this,s=this.curve.point(null,null),i=this,o=[];r.cmpn(0)!==0;r.iushrn(1))o.push(r.andln(1));for(var f=o.length-1;f>=0;f--)o[f]===0?(n=n.diffAdd(s,i),s=s.dbl()):(s=n.diffAdd(s,i),n=n.dbl());return s};li.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};li.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};li.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};li.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};li.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var eG=Bs,vf=gn,O_=Ht,my=dy,tG=eG.assert;function Uo(t){this.twisted=(t.a|0)!==1,this.mOneA=this.twisted&&(t.a|0)===-1,this.extended=this.mOneA,my.call(this,"edwards",t),this.a=new vf(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new vf(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new vf(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),tG(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(t.c|0)===1}O_(Uo,my);var rG=Uo;Uo.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};Uo.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};Uo.prototype.jpoint=function(e,r,n,s){return this.point(e,r,n,s)};Uo.prototype.pointFromX=function(e,r){e=new vf(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),s=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=s.redMul(i.redInvm()),f=o.redSqrt();if(f.redSqr().redSub(o).cmp(this.zero)!==0)throw new Error("invalid point");var u=f.fromRed().isOdd();return(r&&!u||!r&&u)&&(f=f.redNeg()),this.point(e,f)};Uo.prototype.pointFromY=function(e,r){e=new vf(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),s=n.redSub(this.c2),i=n.redMul(this.d).redMul(this.c2).redSub(this.a),o=s.redMul(i.redInvm());if(o.cmp(this.zero)===0){if(r)throw new Error("invalid point");return this.point(this.zero,e)}var f=o.redSqrt();if(f.redSqr().redSub(o).cmp(this.zero)!==0)throw new Error("invalid point");return f.fromRed().isOdd()!==r&&(f=f.redNeg()),this.point(f,e)};Uo.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var r=e.x.redSqr(),n=e.y.redSqr(),s=r.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(r).redMul(n)));return s.cmp(i)===0};function an(t,e,r,n,s){my.BasePoint.call(this,t,"projective"),e===null&&r===null&&n===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new vf(e,16),this.y=new vf(r,16),this.z=n?new vf(n,16):this.curve.one,this.t=s&&new vf(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}O_(an,my.BasePoint);Uo.prototype.pointFromJSON=function(e){return an.fromJSON(this,e)};Uo.prototype.point=function(e,r,n,s){return new an(this,e,r,n,s)};an.fromJSON=function(e,r){return new an(e,r[0],r[1],r[2])};an.prototype.inspect=function(){return this.isInfinity()?"":""};an.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};an.prototype._extDbl=function(){var e=this.x.redSqr(),r=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var s=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(r),o=s.redAdd(r),f=o.redSub(n),u=s.redSub(r),h=i.redMul(f),p=o.redMul(u),d=i.redMul(u),v=f.redMul(o);return this.curve.point(h,p,v,d)};an.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),n=this.y.redSqr(),s,i,o,f,u,h;if(this.curve.twisted){f=this.curve._mulA(r);var p=f.redAdd(n);this.zOne?(s=e.redSub(r).redSub(n).redMul(p.redSub(this.curve.two)),i=p.redMul(f.redSub(n)),o=p.redSqr().redSub(p).redSub(p)):(u=this.z.redSqr(),h=p.redSub(u).redISub(u),s=e.redSub(r).redISub(n).redMul(h),i=p.redMul(f.redSub(n)),o=p.redMul(h))}else f=r.redAdd(n),u=this.curve._mulC(this.z).redSqr(),h=f.redSub(u).redSub(u),s=this.curve._mulC(e.redISub(f)).redMul(h),i=this.curve._mulC(f).redMul(r.redISub(n)),o=f.redMul(h);return this.curve.point(s,i,o)};an.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};an.prototype._extAdd=function(e){var r=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),s=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=n.redSub(r),f=i.redSub(s),u=i.redAdd(s),h=n.redAdd(r),p=o.redMul(f),d=u.redMul(h),v=o.redMul(h),w=f.redMul(u);return this.curve.point(p,d,w,v)};an.prototype._projAdd=function(e){var r=this.z.redMul(e.z),n=r.redSqr(),s=this.x.redMul(e.x),i=this.y.redMul(e.y),o=this.curve.d.redMul(s).redMul(i),f=n.redSub(o),u=n.redAdd(o),h=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(s).redISub(i),p=r.redMul(f).redMul(h),d,v;return this.curve.twisted?(d=r.redMul(u).redMul(i.redSub(this.curve._mulA(s))),v=f.redMul(u)):(d=r.redMul(u).redMul(i.redSub(s)),v=this.curve._mulC(f).redMul(u)),this.curve.point(p,d,v)};an.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};an.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};an.prototype.mulAdd=function(e,r,n){return this.curve._wnafMulAdd(1,[this,r],[e,n],2,!1)};an.prototype.jmulAdd=function(e,r,n){return this.curve._wnafMulAdd(1,[this,r],[e,n],2,!0)};an.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this};an.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};an.prototype.getX=function(){return this.normalize(),this.x.fromRed()};an.prototype.getY=function(){return this.normalize(),this.y.fromRed()};an.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};an.prototype.eqXToP=function(e){var r=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(r)===0)return!0;for(var n=e.clone(),s=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(s),this.x.cmp(r)===0)return!0}};an.prototype.toP=an.prototype.normalize;an.prototype.mixedAdd=an.prototype.add;(function(t){var e=t;e.base=dy,e.short=Xq,e.mont=$q,e.edwards=rG})(L3);var gy={},M2,Lx;function nG(){return Lx||(Lx=1,M2={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),M2}(function(t){var e=t,r=fs,n=L3,s=Bs,i=s.assert;function o(h){h.type==="short"?this.curve=new n.short(h):h.type==="edwards"?this.curve=new n.edwards(h):this.curve=new n.mont(h),this.g=this.curve.g,this.n=this.curve.n,this.hash=h.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}e.PresetCurve=o;function f(h,p){Object.defineProperty(e,h,{configurable:!0,enumerable:!0,get:function(){var d=new o(p);return Object.defineProperty(e,h,{configurable:!0,enumerable:!0,value:d}),d}})}f("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:r.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:r.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:r.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:r.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),f("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:r.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["9"]}),f("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var u;try{u=nG()}catch{u=void 0}f("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:r.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",u]})})(gy);var iG=fs,Pc=O3,L_=fa;function kl(t){if(!(this instanceof kl))return new kl(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Pc.toArray(t.entropy,t.entropyEnc||"hex"),r=Pc.toArray(t.nonce,t.nonceEnc||"hex"),n=Pc.toArray(t.pers,t.persEnc||"hex");L_(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var sG=kl;kl.prototype._init=function(e,r,n){var s=e.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1};kl.prototype.generate=function(e,r,n,s){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(s=n,n=r,r=null),n&&(n=Pc.toArray(n,s||"hex"),this._update(n));for(var i=[];i.length"};var Kg=gn,F3=Bs,lG=F3.assert;function vy(t,e){if(t instanceof vy)return t;this._importDER(t,e)||(lG(t.r&&t.s,"Signature without r or s"),this.r=new Kg(t.r,16),this.s=new Kg(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var cG=vy;function uG(){this.place=0}function S2(t,e){var r=t[e.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4)return!1;for(var s=0,i=0,o=e.place;i>>=0;return s<=127?!1:(e.place=o,s)}function Dx(t){for(var e=0,r=t.length-1;!t[e]&&!(t[e+1]&128)&&e>>3);for(t.push(r|128);--r;)t.push(e>>>(r<<3)&255);t.push(e)}vy.prototype.toDER=function(e){var r=this.r.toArray(),n=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),n[0]&128&&(n=[0].concat(n)),r=Dx(r),n=Dx(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var s=[2];_2(s,r.length),s=s.concat(r),s.push(2),_2(s,n.length);var i=s.concat(n),o=[48];return _2(o,i.length),o=o.concat(i),F3.encode(o,e)};var R2,Fx;function hG(){if(Fx)return R2;Fx=1;var t=gn,e=sG,r=Bs,n=gy,s=I3(),i=r.assert,o=fG,f=cG;function u(h){if(!(this instanceof u))return new u(h);typeof h=="string"&&(i(Object.prototype.hasOwnProperty.call(n,h),"Unknown curve "+h),h=n[h]),h instanceof n.PresetCurve&&(h={curve:h}),this.curve=h.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=h.curve.g,this.g.precompute(h.curve.n.bitLength()+1),this.hash=h.hash||h.curve.hash}return R2=u,u.prototype.keyPair=function(p){return new o(this,p)},u.prototype.keyFromPrivate=function(p,d){return o.fromPrivate(this,p,d)},u.prototype.keyFromPublic=function(p,d){return o.fromPublic(this,p,d)},u.prototype.genKeyPair=function(p){p||(p={});for(var d=new e({hash:this.hash,pers:p.pers,persEnc:p.persEnc||"utf8",entropy:p.entropy||s(this.hash.hmacStrength),entropyEnc:p.entropy&&p.entropyEnc||"utf8",nonce:this.n.toArray()}),v=this.n.byteLength(),w=this.n.sub(new t(2));;){var A=new t(d.generate(v));if(!(A.cmp(w)>0))return A.iaddn(1),this.keyFromPrivate(A)}},u.prototype._truncateToN=function(p,d){var v=p.byteLength()*8-this.n.bitLength();return v>0&&(p=p.ushrn(v)),!d&&p.cmp(this.n)>=0?p.sub(this.n):p},u.prototype.sign=function(p,d,v,w){typeof v=="object"&&(w=v,v=null),w||(w={}),d=this.keyFromPrivate(d,v),p=this._truncateToN(new t(p,16));for(var A=this.n.byteLength(),M=d.getPrivate().toArray("be",A),R=p.toArray("be",A),N=new e({hash:this.hash,entropy:M,nonce:R,pers:w.pers,persEnc:w.persEnc||"utf8"}),C=this.n.sub(new t(1)),B=0;;B++){var O=w.k?w.k(B):new t(N.generate(this.n.byteLength()));if(O=this._truncateToN(O,!0),!(O.cmpn(1)<=0||O.cmp(C)>=0)){var D=this.g.mul(O);if(!D.isInfinity()){var q=D.getX(),W=q.umod(this.n);if(W.cmpn(0)!==0){var k=O.invm(this.n).mul(W.mul(d.getPrivate()).iadd(p));if(k=k.umod(this.n),k.cmpn(0)!==0){var I=(D.getY().isOdd()?1:0)|(q.cmp(W)!==0?2:0);return w.canonical&&k.cmp(this.nh)>0&&(k=this.n.sub(k),I^=1),new f({r:W,s:k,recoveryParam:I})}}}}}},u.prototype.verify=function(p,d,v,w){p=this._truncateToN(new t(p,16)),v=this.keyFromPublic(v,w),d=new f(d,"hex");var A=d.r,M=d.s;if(A.cmpn(1)<0||A.cmp(this.n)>=0||M.cmpn(1)<0||M.cmp(this.n)>=0)return!1;var R=M.invm(this.n),N=R.mul(p).umod(this.n),C=R.mul(A).umod(this.n),B;return this.curve._maxwellTrick?(B=this.g.jmulAdd(N,v.getPublic(),C),B.isInfinity()?!1:B.eqXToP(A)):(B=this.g.mulAdd(N,v.getPublic(),C),B.isInfinity()?!1:B.getX().umod(this.n).cmp(A)===0)},u.prototype.recoverPubKey=function(h,p,d,v){i((3&d)===d,"The recovery param is more than two bits"),p=new f(p,v);var w=this.n,A=new t(h),M=p.r,R=p.s,N=d&1,C=d>>1;if(M.cmp(this.curve.p.umod(this.curve.n))>=0&&C)throw new Error("Unable to find sencond key candinate");C?M=this.curve.pointFromX(M.add(this.curve.n),N):M=this.curve.pointFromX(M,N);var B=p.r.invm(w),O=w.sub(A).mul(B).umod(w),D=R.mul(B).umod(w);return this.g.mulAdd(O,M,D)},u.prototype.getKeyRecoveryParam=function(h,p,d,v){if(p=new f(p,v),p.recoveryParam!==null)return p.recoveryParam;for(var w=0;w<4;w++){var A;try{A=this.recoverPubKey(h,p,w)}catch{continue}if(A.eq(d))return w}throw new Error("Unable to find valid recovery factor")},R2}var _1=Bs,D_=_1.assert,Ux=_1.parseBytes,Hd=_1.cachedProperty;function fi(t,e){this.eddsa=t,this._secret=Ux(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=Ux(e.pub)}fi.fromPublic=function(e,r){return r instanceof fi?r:new fi(e,{pub:r})};fi.fromSecret=function(e,r){return r instanceof fi?r:new fi(e,{secret:r})};fi.prototype.secret=function(){return this._secret};Hd(fi,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});Hd(fi,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});Hd(fi,"privBytes",function(){var e=this.eddsa,r=this.hash(),n=e.encodingLength-1,s=r.slice(0,e.encodingLength);return s[0]&=248,s[n]&=127,s[n]|=64,s});Hd(fi,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});Hd(fi,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});Hd(fi,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});fi.prototype.sign=function(e){return D_(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};fi.prototype.verify=function(e,r){return this.eddsa.verify(e,r,this)};fi.prototype.getSecret=function(e){return D_(this._secret,"KeyPair is public only"),_1.encode(this.secret(),e)};fi.prototype.getPublic=function(e){return _1.encode(this.pubBytes(),e)};var dG=fi,pG=gn,yy=Bs,mG=yy.assert,by=yy.cachedProperty,gG=yy.parseBytes;function au(t,e){this.eddsa=t,typeof e!="object"&&(e=gG(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),mG(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof pG&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}by(au,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});by(au,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});by(au,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});by(au,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});au.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};au.prototype.toHex=function(){return yy.encode(this.toBytes(),"hex").toUpperCase()};var vG=au,yG=fs,bG=gy,wd=Bs,wG=wd.assert,F_=wd.parseBytes,U_=dG,Hx=vG;function ms(t){if(wG(t==="ed25519","only tested with ed25519 so far"),!(this instanceof ms))return new ms(t);t=bG[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=yG.sha512}var AG=ms;ms.prototype.sign=function(e,r){e=F_(e);var n=this.keyFromSecret(r),s=this.hashInt(n.messagePrefix(),e),i=this.g.mul(s),o=this.encodePoint(i),f=this.hashInt(o,n.pubBytes(),e).mul(n.priv()),u=s.add(f).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})};ms.prototype.verify=function(e,r,n){e=F_(e),r=this.makeSignature(r);var s=this.keyFromPublic(n),i=this.hashInt(r.Rencoded(),s.pubBytes(),e),o=this.g.mul(r.S()),f=r.R().add(s.pub().mul(i));return f.eq(o)};ms.prototype.hashInt=function(){for(var e=this.hash(),r=0;r0?a:c},i.min=function(a,c){return a.cmp(c)<0?a:c},i.prototype._init=function(a,c,m){if(typeof a=="number")return this._initNumber(a,c,m);if(typeof a=="object")return this._initArray(a,c,m);c==="hex"&&(c=16),n(c===(c|0)&&c>=2&&c<=36),a=a.toString().replace(/\s+/g,"");var b=0;a[0]==="-"&&(b++,this.negative=1),b=0;b-=3)_=a[b]|a[b-1]<<8|a[b-2]<<16,this.words[x]|=_<>>26-S&67108863,S+=24,S>=26&&(S-=26,x++);else if(m==="le")for(b=0,x=0;b>>26-S&67108863,S+=24,S>=26&&(S-=26,x++);return this._strip()};function f(g,a){var c=g.charCodeAt(a);if(c>=48&&c<=57)return c-48;if(c>=65&&c<=70)return c-55;if(c>=97&&c<=102)return c-87;n(!1,"Invalid character in "+g)}function u(g,a,c){var m=f(g,c);return c-1>=a&&(m|=f(g,c-1)<<4),m}i.prototype._parseHex=function(a,c,m){this.length=Math.ceil((a.length-c)/6),this.words=new Array(this.length);for(var b=0;b=c;b-=2)S=u(a,c,b)<=18?(x-=18,_+=1,this.words[_]|=S>>>26):x+=8;else{var y=a.length-c;for(b=y%2===0?c+1:c;b=18?(x-=18,_+=1,this.words[_]|=S>>>26):x+=8}this._strip()};function h(g,a,c,m){for(var b=0,x=0,_=Math.min(g.length,c),S=a;S<_;S++){var y=g.charCodeAt(S)-48;b*=m,y>=49?x=y-49+10:y>=17?x=y-17+10:x=y,n(y>=0&&x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch{i.prototype.inspect=d}else i.prototype.inspect=d;function d(){return(this.red?""}var v=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],w=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(a,c){a=a||10,c=c|0||1;var m;if(a===16||a==="hex"){m="";for(var b=0,x=0,_=0;_>>24-b&16777215,b+=2,b>=26&&(b-=26,_--),x!==0||_!==this.length-1?m=v[6-y.length]+y+m:m=y+m}for(x!==0&&(m=x.toString(16)+m);m.length%c!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(a===(a|0)&&a>=2&&a<=36){var l=w[a],E=A[a];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var L=Y.modrn(E).toString(a);Y=Y.idivn(E),Y.isZero()?m=L+m:m=v[l-L.length]+L+m}for(this.isZero()&&(m="0"+m);m.length%c!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var a=this.words[0];return this.length===2?a+=this.words[1]*67108864:this.length===3&&this.words[2]===1?a+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-a:a},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(a,c){return this.toArrayLike(o,a,c)}),i.prototype.toArray=function(a,c){return this.toArrayLike(Array,a,c)};var M=function(a,c){return a.allocUnsafe?a.allocUnsafe(c):new a(c)};i.prototype.toArrayLike=function(a,c,m){this._strip();var b=this.byteLength(),x=m||Math.max(1,b);n(b<=x,"byte array longer than desired length"),n(x>0,"Requested array length <= 0");var _=M(a,x),S=c==="le"?"LE":"BE";return this["_toArrayLike"+S](_,b),_},i.prototype._toArrayLikeLE=function(a,c){for(var m=0,b=0,x=0,_=0;x>8&255),m>16&255),_===6?(m>24&255),b=0,_=0):(b=S>>>24,_+=2)}if(m=0&&(a[m--]=S>>8&255),m>=0&&(a[m--]=S>>16&255),_===6?(m>=0&&(a[m--]=S>>24&255),b=0,_=0):(b=S>>>24,_+=2)}if(m>=0)for(a[m--]=b;m>=0;)a[m--]=0},Math.clz32?i.prototype._countBits=function(a){return 32-Math.clz32(a)}:i.prototype._countBits=function(a){var c=a,m=0;return c>=4096&&(m+=13,c>>>=13),c>=64&&(m+=7,c>>>=7),c>=8&&(m+=4,c>>>=4),c>=2&&(m+=2,c>>>=2),m+c},i.prototype._zeroBits=function(a){if(a===0)return 26;var c=a,m=0;return c&8191||(m+=13,c>>>=13),c&127||(m+=7,c>>>=7),c&15||(m+=4,c>>>=4),c&3||(m+=2,c>>>=2),c&1||m++,m},i.prototype.bitLength=function(){var a=this.words[this.length-1],c=this._countBits(a);return(this.length-1)*26+c};function R(g){for(var a=new Array(g.bitLength()),c=0;c>>b&1}return a}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var a=0,c=0;ca.length?this.clone().ior(a):a.clone().ior(this)},i.prototype.uor=function(a){return this.length>a.length?this.clone().iuor(a):a.clone().iuor(this)},i.prototype.iuand=function(a){var c;this.length>a.length?c=a:c=this;for(var m=0;ma.length?this.clone().iand(a):a.clone().iand(this)},i.prototype.uand=function(a){return this.length>a.length?this.clone().iuand(a):a.clone().iuand(this)},i.prototype.iuxor=function(a){var c,m;this.length>a.length?(c=this,m=a):(c=a,m=this);for(var b=0;ba.length?this.clone().ixor(a):a.clone().ixor(this)},i.prototype.uxor=function(a){return this.length>a.length?this.clone().iuxor(a):a.clone().iuxor(this)},i.prototype.inotn=function(a){n(typeof a=="number"&&a>=0);var c=Math.ceil(a/26)|0,m=a%26;this._expand(c),m>0&&c--;for(var b=0;b0&&(this.words[b]=~this.words[b]&67108863>>26-m),this._strip()},i.prototype.notn=function(a){return this.clone().inotn(a)},i.prototype.setn=function(a,c){n(typeof a=="number"&&a>=0);var m=a/26|0,b=a%26;return this._expand(m+1),c?this.words[m]=this.words[m]|1<a.length?(m=this,b=a):(m=a,b=this);for(var x=0,_=0;_>>26;for(;x!==0&&_>>26;if(this.length=m.length,x!==0)this.words[this.length]=x,this.length++;else if(m!==this)for(;_a.length?this.clone().iadd(a):a.clone().iadd(this)},i.prototype.isub=function(a){if(a.negative!==0){a.negative=0;var c=this.iadd(a);return a.negative=1,c._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(a),this.negative=1,this._normSign();var m=this.cmp(a);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,x;m>0?(b=this,x=a):(b=a,x=this);for(var _=0,S=0;S>26,this.words[S]=c&67108863;for(;_!==0&&S>26,this.words[S]=c&67108863;if(_===0&&S>>26,Y=y&67108863,L=Math.min(l,a.length-1),F=Math.max(0,l-g.length+1);F<=L;F++){var V=l-F|0;b=g.words[V]|0,x=a.words[F]|0,_=b*x+Y,E+=_/67108864|0,Y=_&67108863}c.words[l]=Y|0,y=E|0}return y!==0?c.words[l]=y|0:c.length--,c._strip()}var C=function(a,c,m){var b=a.words,x=c.words,_=m.words,S=0,y,l,E,Y=b[0]|0,L=Y&8191,F=Y>>>13,V=b[1]|0,Z=V&8191,ee=V>>>13,ce=b[2]|0,U=ce&8191,j=ce>>>13,se=b[3]|0,re=se&8191,oe=se>>>13,Q=b[4]|0,z=Q&8191,G=Q>>>13,X=b[5]|0,ne=X&8191,ae=X>>>13,Me=b[6]|0,ge=Me&8191,pe=Me>>>13,ot=b[7]|0,we=ot&8191,me=ot>>>13,ut=b[8]|0,ze=ut&8191,_e=ut>>>13,Bt=b[9]|0,qe=Bt&8191,Te=Bt>>>13,xt=x[0]|0,He=xt&8191,Se=xt>>>13,Rt=x[1]|0,Ve=Rt&8191,Ee=Rt>>>13,Nt=x[2]|0,Ze=Nt&8191,Re=Nt>>>13,Ct=x[3]|0,je=Ct&8191,ke=Ct>>>13,Pt=x[4]|0,Ke=Pt&8191,Ne=Pt>>>13,Ot=x[5]|0,De=Ot&8191,Be=Ot>>>13,kt=x[6]|0,Ge=kt&8191,Ie=kt>>>13,Ut=x[7]|0,Ue=Ut&8191,Oe=Ut>>>13,It=x[8]|0,We=It&8191,Pe=It>>>13,_t=x[9]|0,Le=_t&8191,Ye=_t>>>13;m.negative=a.negative^c.negative,m.length=19,y=Math.imul(L,He),l=Math.imul(L,Se),l=l+Math.imul(F,He)|0,E=Math.imul(F,Se);var Ar=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,y=Math.imul(Z,He),l=Math.imul(Z,Se),l=l+Math.imul(ee,He)|0,E=Math.imul(ee,Se),y=y+Math.imul(L,Ve)|0,l=l+Math.imul(L,Ee)|0,l=l+Math.imul(F,Ve)|0,E=E+Math.imul(F,Ee)|0;var xr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(xr>>>26)|0,xr&=67108863,y=Math.imul(U,He),l=Math.imul(U,Se),l=l+Math.imul(j,He)|0,E=Math.imul(j,Se),y=y+Math.imul(Z,Ve)|0,l=l+Math.imul(Z,Ee)|0,l=l+Math.imul(ee,Ve)|0,E=E+Math.imul(ee,Ee)|0,y=y+Math.imul(L,Ze)|0,l=l+Math.imul(L,Re)|0,l=l+Math.imul(F,Ze)|0,E=E+Math.imul(F,Re)|0;var Er=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Er>>>26)|0,Er&=67108863,y=Math.imul(re,He),l=Math.imul(re,Se),l=l+Math.imul(oe,He)|0,E=Math.imul(oe,Se),y=y+Math.imul(U,Ve)|0,l=l+Math.imul(U,Ee)|0,l=l+Math.imul(j,Ve)|0,E=E+Math.imul(j,Ee)|0,y=y+Math.imul(Z,Ze)|0,l=l+Math.imul(Z,Re)|0,l=l+Math.imul(ee,Ze)|0,E=E+Math.imul(ee,Re)|0,y=y+Math.imul(L,je)|0,l=l+Math.imul(L,ke)|0,l=l+Math.imul(F,je)|0,E=E+Math.imul(F,ke)|0;var Gt=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,y=Math.imul(z,He),l=Math.imul(z,Se),l=l+Math.imul(G,He)|0,E=Math.imul(G,Se),y=y+Math.imul(re,Ve)|0,l=l+Math.imul(re,Ee)|0,l=l+Math.imul(oe,Ve)|0,E=E+Math.imul(oe,Ee)|0,y=y+Math.imul(U,Ze)|0,l=l+Math.imul(U,Re)|0,l=l+Math.imul(j,Ze)|0,E=E+Math.imul(j,Re)|0,y=y+Math.imul(Z,je)|0,l=l+Math.imul(Z,ke)|0,l=l+Math.imul(ee,je)|0,E=E+Math.imul(ee,ke)|0,y=y+Math.imul(L,Ke)|0,l=l+Math.imul(L,Ne)|0,l=l+Math.imul(F,Ke)|0,E=E+Math.imul(F,Ne)|0;var Vt=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,y=Math.imul(ne,He),l=Math.imul(ne,Se),l=l+Math.imul(ae,He)|0,E=Math.imul(ae,Se),y=y+Math.imul(z,Ve)|0,l=l+Math.imul(z,Ee)|0,l=l+Math.imul(G,Ve)|0,E=E+Math.imul(G,Ee)|0,y=y+Math.imul(re,Ze)|0,l=l+Math.imul(re,Re)|0,l=l+Math.imul(oe,Ze)|0,E=E+Math.imul(oe,Re)|0,y=y+Math.imul(U,je)|0,l=l+Math.imul(U,ke)|0,l=l+Math.imul(j,je)|0,E=E+Math.imul(j,ke)|0,y=y+Math.imul(Z,Ke)|0,l=l+Math.imul(Z,Ne)|0,l=l+Math.imul(ee,Ke)|0,E=E+Math.imul(ee,Ne)|0,y=y+Math.imul(L,De)|0,l=l+Math.imul(L,Be)|0,l=l+Math.imul(F,De)|0,E=E+Math.imul(F,Be)|0;var Lr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,y=Math.imul(ge,He),l=Math.imul(ge,Se),l=l+Math.imul(pe,He)|0,E=Math.imul(pe,Se),y=y+Math.imul(ne,Ve)|0,l=l+Math.imul(ne,Ee)|0,l=l+Math.imul(ae,Ve)|0,E=E+Math.imul(ae,Ee)|0,y=y+Math.imul(z,Ze)|0,l=l+Math.imul(z,Re)|0,l=l+Math.imul(G,Ze)|0,E=E+Math.imul(G,Re)|0,y=y+Math.imul(re,je)|0,l=l+Math.imul(re,ke)|0,l=l+Math.imul(oe,je)|0,E=E+Math.imul(oe,ke)|0,y=y+Math.imul(U,Ke)|0,l=l+Math.imul(U,Ne)|0,l=l+Math.imul(j,Ke)|0,E=E+Math.imul(j,Ne)|0,y=y+Math.imul(Z,De)|0,l=l+Math.imul(Z,Be)|0,l=l+Math.imul(ee,De)|0,E=E+Math.imul(ee,Be)|0,y=y+Math.imul(L,Ge)|0,l=l+Math.imul(L,Ie)|0,l=l+Math.imul(F,Ge)|0,E=E+Math.imul(F,Ie)|0;var Zr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,y=Math.imul(we,He),l=Math.imul(we,Se),l=l+Math.imul(me,He)|0,E=Math.imul(me,Se),y=y+Math.imul(ge,Ve)|0,l=l+Math.imul(ge,Ee)|0,l=l+Math.imul(pe,Ve)|0,E=E+Math.imul(pe,Ee)|0,y=y+Math.imul(ne,Ze)|0,l=l+Math.imul(ne,Re)|0,l=l+Math.imul(ae,Ze)|0,E=E+Math.imul(ae,Re)|0,y=y+Math.imul(z,je)|0,l=l+Math.imul(z,ke)|0,l=l+Math.imul(G,je)|0,E=E+Math.imul(G,ke)|0,y=y+Math.imul(re,Ke)|0,l=l+Math.imul(re,Ne)|0,l=l+Math.imul(oe,Ke)|0,E=E+Math.imul(oe,Ne)|0,y=y+Math.imul(U,De)|0,l=l+Math.imul(U,Be)|0,l=l+Math.imul(j,De)|0,E=E+Math.imul(j,Be)|0,y=y+Math.imul(Z,Ge)|0,l=l+Math.imul(Z,Ie)|0,l=l+Math.imul(ee,Ge)|0,E=E+Math.imul(ee,Ie)|0,y=y+Math.imul(L,Ue)|0,l=l+Math.imul(L,Oe)|0,l=l+Math.imul(F,Ue)|0,E=E+Math.imul(F,Oe)|0;var Ir=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,y=Math.imul(ze,He),l=Math.imul(ze,Se),l=l+Math.imul(_e,He)|0,E=Math.imul(_e,Se),y=y+Math.imul(we,Ve)|0,l=l+Math.imul(we,Ee)|0,l=l+Math.imul(me,Ve)|0,E=E+Math.imul(me,Ee)|0,y=y+Math.imul(ge,Ze)|0,l=l+Math.imul(ge,Re)|0,l=l+Math.imul(pe,Ze)|0,E=E+Math.imul(pe,Re)|0,y=y+Math.imul(ne,je)|0,l=l+Math.imul(ne,ke)|0,l=l+Math.imul(ae,je)|0,E=E+Math.imul(ae,ke)|0,y=y+Math.imul(z,Ke)|0,l=l+Math.imul(z,Ne)|0,l=l+Math.imul(G,Ke)|0,E=E+Math.imul(G,Ne)|0,y=y+Math.imul(re,De)|0,l=l+Math.imul(re,Be)|0,l=l+Math.imul(oe,De)|0,E=E+Math.imul(oe,Be)|0,y=y+Math.imul(U,Ge)|0,l=l+Math.imul(U,Ie)|0,l=l+Math.imul(j,Ge)|0,E=E+Math.imul(j,Ie)|0,y=y+Math.imul(Z,Ue)|0,l=l+Math.imul(Z,Oe)|0,l=l+Math.imul(ee,Ue)|0,E=E+Math.imul(ee,Oe)|0,y=y+Math.imul(L,We)|0,l=l+Math.imul(L,Pe)|0,l=l+Math.imul(F,We)|0,E=E+Math.imul(F,Pe)|0;var Dr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,y=Math.imul(qe,He),l=Math.imul(qe,Se),l=l+Math.imul(Te,He)|0,E=Math.imul(Te,Se),y=y+Math.imul(ze,Ve)|0,l=l+Math.imul(ze,Ee)|0,l=l+Math.imul(_e,Ve)|0,E=E+Math.imul(_e,Ee)|0,y=y+Math.imul(we,Ze)|0,l=l+Math.imul(we,Re)|0,l=l+Math.imul(me,Ze)|0,E=E+Math.imul(me,Re)|0,y=y+Math.imul(ge,je)|0,l=l+Math.imul(ge,ke)|0,l=l+Math.imul(pe,je)|0,E=E+Math.imul(pe,ke)|0,y=y+Math.imul(ne,Ke)|0,l=l+Math.imul(ne,Ne)|0,l=l+Math.imul(ae,Ke)|0,E=E+Math.imul(ae,Ne)|0,y=y+Math.imul(z,De)|0,l=l+Math.imul(z,Be)|0,l=l+Math.imul(G,De)|0,E=E+Math.imul(G,Be)|0,y=y+Math.imul(re,Ge)|0,l=l+Math.imul(re,Ie)|0,l=l+Math.imul(oe,Ge)|0,E=E+Math.imul(oe,Ie)|0,y=y+Math.imul(U,Ue)|0,l=l+Math.imul(U,Oe)|0,l=l+Math.imul(j,Ue)|0,E=E+Math.imul(j,Oe)|0,y=y+Math.imul(Z,We)|0,l=l+Math.imul(Z,Pe)|0,l=l+Math.imul(ee,We)|0,E=E+Math.imul(ee,Pe)|0,y=y+Math.imul(L,Le)|0,l=l+Math.imul(L,Ye)|0,l=l+Math.imul(F,Le)|0,E=E+Math.imul(F,Ye)|0;var ar=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(ar>>>26)|0,ar&=67108863,y=Math.imul(qe,Ve),l=Math.imul(qe,Ee),l=l+Math.imul(Te,Ve)|0,E=Math.imul(Te,Ee),y=y+Math.imul(ze,Ze)|0,l=l+Math.imul(ze,Re)|0,l=l+Math.imul(_e,Ze)|0,E=E+Math.imul(_e,Re)|0,y=y+Math.imul(we,je)|0,l=l+Math.imul(we,ke)|0,l=l+Math.imul(me,je)|0,E=E+Math.imul(me,ke)|0,y=y+Math.imul(ge,Ke)|0,l=l+Math.imul(ge,Ne)|0,l=l+Math.imul(pe,Ke)|0,E=E+Math.imul(pe,Ne)|0,y=y+Math.imul(ne,De)|0,l=l+Math.imul(ne,Be)|0,l=l+Math.imul(ae,De)|0,E=E+Math.imul(ae,Be)|0,y=y+Math.imul(z,Ge)|0,l=l+Math.imul(z,Ie)|0,l=l+Math.imul(G,Ge)|0,E=E+Math.imul(G,Ie)|0,y=y+Math.imul(re,Ue)|0,l=l+Math.imul(re,Oe)|0,l=l+Math.imul(oe,Ue)|0,E=E+Math.imul(oe,Oe)|0,y=y+Math.imul(U,We)|0,l=l+Math.imul(U,Pe)|0,l=l+Math.imul(j,We)|0,E=E+Math.imul(j,Pe)|0,y=y+Math.imul(Z,Le)|0,l=l+Math.imul(Z,Ye)|0,l=l+Math.imul(ee,Le)|0,E=E+Math.imul(ee,Ye)|0;var mr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(mr>>>26)|0,mr&=67108863,y=Math.imul(qe,Ze),l=Math.imul(qe,Re),l=l+Math.imul(Te,Ze)|0,E=Math.imul(Te,Re),y=y+Math.imul(ze,je)|0,l=l+Math.imul(ze,ke)|0,l=l+Math.imul(_e,je)|0,E=E+Math.imul(_e,ke)|0,y=y+Math.imul(we,Ke)|0,l=l+Math.imul(we,Ne)|0,l=l+Math.imul(me,Ke)|0,E=E+Math.imul(me,Ne)|0,y=y+Math.imul(ge,De)|0,l=l+Math.imul(ge,Be)|0,l=l+Math.imul(pe,De)|0,E=E+Math.imul(pe,Be)|0,y=y+Math.imul(ne,Ge)|0,l=l+Math.imul(ne,Ie)|0,l=l+Math.imul(ae,Ge)|0,E=E+Math.imul(ae,Ie)|0,y=y+Math.imul(z,Ue)|0,l=l+Math.imul(z,Oe)|0,l=l+Math.imul(G,Ue)|0,E=E+Math.imul(G,Oe)|0,y=y+Math.imul(re,We)|0,l=l+Math.imul(re,Pe)|0,l=l+Math.imul(oe,We)|0,E=E+Math.imul(oe,Pe)|0,y=y+Math.imul(U,Le)|0,l=l+Math.imul(U,Ye)|0,l=l+Math.imul(j,Le)|0,E=E+Math.imul(j,Ye)|0;var jr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(jr>>>26)|0,jr&=67108863,y=Math.imul(qe,je),l=Math.imul(qe,ke),l=l+Math.imul(Te,je)|0,E=Math.imul(Te,ke),y=y+Math.imul(ze,Ke)|0,l=l+Math.imul(ze,Ne)|0,l=l+Math.imul(_e,Ke)|0,E=E+Math.imul(_e,Ne)|0,y=y+Math.imul(we,De)|0,l=l+Math.imul(we,Be)|0,l=l+Math.imul(me,De)|0,E=E+Math.imul(me,Be)|0,y=y+Math.imul(ge,Ge)|0,l=l+Math.imul(ge,Ie)|0,l=l+Math.imul(pe,Ge)|0,E=E+Math.imul(pe,Ie)|0,y=y+Math.imul(ne,Ue)|0,l=l+Math.imul(ne,Oe)|0,l=l+Math.imul(ae,Ue)|0,E=E+Math.imul(ae,Oe)|0,y=y+Math.imul(z,We)|0,l=l+Math.imul(z,Pe)|0,l=l+Math.imul(G,We)|0,E=E+Math.imul(G,Pe)|0,y=y+Math.imul(re,Le)|0,l=l+Math.imul(re,Ye)|0,l=l+Math.imul(oe,Le)|0,E=E+Math.imul(oe,Ye)|0;var Yr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,y=Math.imul(qe,Ke),l=Math.imul(qe,Ne),l=l+Math.imul(Te,Ke)|0,E=Math.imul(Te,Ne),y=y+Math.imul(ze,De)|0,l=l+Math.imul(ze,Be)|0,l=l+Math.imul(_e,De)|0,E=E+Math.imul(_e,Be)|0,y=y+Math.imul(we,Ge)|0,l=l+Math.imul(we,Ie)|0,l=l+Math.imul(me,Ge)|0,E=E+Math.imul(me,Ie)|0,y=y+Math.imul(ge,Ue)|0,l=l+Math.imul(ge,Oe)|0,l=l+Math.imul(pe,Ue)|0,E=E+Math.imul(pe,Oe)|0,y=y+Math.imul(ne,We)|0,l=l+Math.imul(ne,Pe)|0,l=l+Math.imul(ae,We)|0,E=E+Math.imul(ae,Pe)|0,y=y+Math.imul(z,Le)|0,l=l+Math.imul(z,Ye)|0,l=l+Math.imul(G,Le)|0,E=E+Math.imul(G,Ye)|0;var or=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(or>>>26)|0,or&=67108863,y=Math.imul(qe,De),l=Math.imul(qe,Be),l=l+Math.imul(Te,De)|0,E=Math.imul(Te,Be),y=y+Math.imul(ze,Ge)|0,l=l+Math.imul(ze,Ie)|0,l=l+Math.imul(_e,Ge)|0,E=E+Math.imul(_e,Ie)|0,y=y+Math.imul(we,Ue)|0,l=l+Math.imul(we,Oe)|0,l=l+Math.imul(me,Ue)|0,E=E+Math.imul(me,Oe)|0,y=y+Math.imul(ge,We)|0,l=l+Math.imul(ge,Pe)|0,l=l+Math.imul(pe,We)|0,E=E+Math.imul(pe,Pe)|0,y=y+Math.imul(ne,Le)|0,l=l+Math.imul(ne,Ye)|0,l=l+Math.imul(ae,Le)|0,E=E+Math.imul(ae,Ye)|0;var Qr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,y=Math.imul(qe,Ge),l=Math.imul(qe,Ie),l=l+Math.imul(Te,Ge)|0,E=Math.imul(Te,Ie),y=y+Math.imul(ze,Ue)|0,l=l+Math.imul(ze,Oe)|0,l=l+Math.imul(_e,Ue)|0,E=E+Math.imul(_e,Oe)|0,y=y+Math.imul(we,We)|0,l=l+Math.imul(we,Pe)|0,l=l+Math.imul(me,We)|0,E=E+Math.imul(me,Pe)|0,y=y+Math.imul(ge,Le)|0,l=l+Math.imul(ge,Ye)|0,l=l+Math.imul(pe,Le)|0,E=E+Math.imul(pe,Ye)|0;var Mr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,y=Math.imul(qe,Ue),l=Math.imul(qe,Oe),l=l+Math.imul(Te,Ue)|0,E=Math.imul(Te,Oe),y=y+Math.imul(ze,We)|0,l=l+Math.imul(ze,Pe)|0,l=l+Math.imul(_e,We)|0,E=E+Math.imul(_e,Pe)|0,y=y+Math.imul(we,Le)|0,l=l+Math.imul(we,Ye)|0,l=l+Math.imul(me,Le)|0,E=E+Math.imul(me,Ye)|0;var Xr=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,y=Math.imul(qe,We),l=Math.imul(qe,Pe),l=l+Math.imul(Te,We)|0,E=Math.imul(Te,Pe),y=y+Math.imul(ze,Le)|0,l=l+Math.imul(ze,Ye)|0,l=l+Math.imul(_e,Le)|0,E=E+Math.imul(_e,Ye)|0;var on=(S+y|0)+((l&8191)<<13)|0;S=(E+(l>>>13)|0)+(on>>>26)|0,on&=67108863,y=Math.imul(qe,Le),l=Math.imul(qe,Ye),l=l+Math.imul(Te,Le)|0,E=Math.imul(Te,Ye);var Cr=(S+y|0)+((l&8191)<<13)|0;return S=(E+(l>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,_[0]=Ar,_[1]=xr,_[2]=Er,_[3]=Gt,_[4]=Vt,_[5]=Lr,_[6]=Zr,_[7]=Ir,_[8]=Dr,_[9]=ar,_[10]=mr,_[11]=jr,_[12]=Yr,_[13]=or,_[14]=Qr,_[15]=Mr,_[16]=Xr,_[17]=on,_[18]=Cr,S!==0&&(_[19]=S,m.length++),m};Math.imul||(C=N);function B(g,a,c){c.negative=a.negative^g.negative,c.length=g.length+a.length;for(var m=0,b=0,x=0;x>>26)|0,b+=_>>>26,_&=67108863}c.words[x]=S,m=_,_=b}return m!==0?c.words[x]=m:c.length--,c._strip()}function O(g,a,c){return B(g,a,c)}i.prototype.mulTo=function(a,c){var m,b=this.length+a.length;return this.length===10&&a.length===10?m=C(this,a,c):b<63?m=N(this,a,c):b<1024?m=B(this,a,c):m=O(this,a,c),m},i.prototype.mul=function(a){var c=new i(null);return c.words=new Array(this.length+a.length),this.mulTo(a,c)},i.prototype.mulf=function(a){var c=new i(null);return c.words=new Array(this.length+a.length),O(this,a,c)},i.prototype.imul=function(a){return this.clone().mulTo(a,this)},i.prototype.imuln=function(a){var c=a<0;c&&(a=-a),n(typeof a=="number"),n(a<67108864);for(var m=0,b=0;b>=26,m+=x/67108864|0,m+=_>>>26,this.words[b]=_&67108863}return m!==0&&(this.words[b]=m,this.length++),c?this.ineg():this},i.prototype.muln=function(a){return this.clone().imuln(a)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(a){var c=R(a);if(c.length===0)return new i(1);for(var m=this,b=0;b=0);var c=a%26,m=(a-c)/26,b=67108863>>>26-c<<26-c,x;if(c!==0){var _=0;for(x=0;x>>26-c}_&&(this.words[x]=_,this.length++)}if(m!==0){for(x=this.length-1;x>=0;x--)this.words[x+m]=this.words[x];for(x=0;x=0);var b;c?b=(c-c%26)/26:b=0;var x=a%26,_=Math.min((a-x)/26,this.length),S=67108863^67108863>>>x<_)for(this.length-=_,l=0;l=0&&(E!==0||l>=b);l--){var Y=this.words[l]|0;this.words[l]=E<<26-x|Y>>>x,E=Y&S}return y&&E!==0&&(y.words[y.length++]=E),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(a,c,m){return n(this.negative===0),this.iushrn(a,c,m)},i.prototype.shln=function(a){return this.clone().ishln(a)},i.prototype.ushln=function(a){return this.clone().iushln(a)},i.prototype.shrn=function(a){return this.clone().ishrn(a)},i.prototype.ushrn=function(a){return this.clone().iushrn(a)},i.prototype.testn=function(a){n(typeof a=="number"&&a>=0);var c=a%26,m=(a-c)/26,b=1<=0);var c=a%26,m=(a-c)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(c!==0&&m++,this.length=Math.min(m,this.length),c!==0){var b=67108863^67108863>>>c<=67108864;c++)this.words[c]-=67108864,c===this.length-1?this.words[c+1]=1:this.words[c+1]++;return this.length=Math.max(this.length,c+1),this},i.prototype.isubn=function(a){if(n(typeof a=="number"),n(a<67108864),a<0)return this.iaddn(-a);if(this.negative!==0)return this.negative=0,this.iaddn(a),this.negative=1,this;if(this.words[0]-=a,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var c=0;c>26)-(y/67108864|0),this.words[x+m]=_&67108863}for(;x>26,this.words[x+m]=_&67108863;if(S===0)return this._strip();for(n(S===-1),S=0,x=0;x>26,this.words[x]=_&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(a,c){var m=this.length-a.length,b=this.clone(),x=a,_=x.words[x.length-1]|0,S=this._countBits(_);m=26-S,m!==0&&(x=x.ushln(m),b.iushln(m),_=x.words[x.length-1]|0);var y=b.length-x.length,l;if(c!=="mod"){l=new i(null),l.length=y+1,l.words=new Array(l.length);for(var E=0;E=0;L--){var F=(b.words[x.length+L]|0)*67108864+(b.words[x.length+L-1]|0);for(F=Math.min(F/_|0,67108863),b._ishlnsubmul(x,F,L);b.negative!==0;)F--,b.negative=0,b._ishlnsubmul(x,1,L),b.isZero()||(b.negative^=1);l&&(l.words[L]=F)}return l&&l._strip(),b._strip(),c!=="div"&&m!==0&&b.iushrn(m),{div:l||null,mod:b}},i.prototype.divmod=function(a,c,m){if(n(!a.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var b,x,_;return this.negative!==0&&a.negative===0?(_=this.neg().divmod(a,c),c!=="mod"&&(b=_.div.neg()),c!=="div"&&(x=_.mod.neg(),m&&x.negative!==0&&x.iadd(a)),{div:b,mod:x}):this.negative===0&&a.negative!==0?(_=this.divmod(a.neg(),c),c!=="mod"&&(b=_.div.neg()),{div:b,mod:_.mod}):this.negative&a.negative?(_=this.neg().divmod(a.neg(),c),c!=="div"&&(x=_.mod.neg(),m&&x.negative!==0&&x.isub(a)),{div:_.div,mod:x}):a.length>this.length||this.cmp(a)<0?{div:new i(0),mod:this}:a.length===1?c==="div"?{div:this.divn(a.words[0]),mod:null}:c==="mod"?{div:null,mod:new i(this.modrn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new i(this.modrn(a.words[0]))}:this._wordDiv(a,c)},i.prototype.div=function(a){return this.divmod(a,"div",!1).div},i.prototype.mod=function(a){return this.divmod(a,"mod",!1).mod},i.prototype.umod=function(a){return this.divmod(a,"mod",!0).mod},i.prototype.divRound=function(a){var c=this.divmod(a);if(c.mod.isZero())return c.div;var m=c.div.negative!==0?c.mod.isub(a):c.mod,b=a.ushrn(1),x=a.andln(1),_=m.cmp(b);return _<0||x===1&&_===0?c.div:c.div.negative!==0?c.div.isubn(1):c.div.iaddn(1)},i.prototype.modrn=function(a){var c=a<0;c&&(a=-a),n(a<=67108863);for(var m=(1<<26)%a,b=0,x=this.length-1;x>=0;x--)b=(m*b+(this.words[x]|0))%a;return c?-b:b},i.prototype.modn=function(a){return this.modrn(a)},i.prototype.idivn=function(a){var c=a<0;c&&(a=-a),n(a<=67108863);for(var m=0,b=this.length-1;b>=0;b--){var x=(this.words[b]|0)+m*67108864;this.words[b]=x/a|0,m=x%a}return this._strip(),c?this.ineg():this},i.prototype.divn=function(a){return this.clone().idivn(a)},i.prototype.egcd=function(a){n(a.negative===0),n(!a.isZero());var c=this,m=a.clone();c.negative!==0?c=c.umod(a):c=c.clone();for(var b=new i(1),x=new i(0),_=new i(0),S=new i(1),y=0;c.isEven()&&m.isEven();)c.iushrn(1),m.iushrn(1),++y;for(var l=m.clone(),E=c.clone();!c.isZero();){for(var Y=0,L=1;!(c.words[0]&L)&&Y<26;++Y,L<<=1);if(Y>0)for(c.iushrn(Y);Y-- >0;)(b.isOdd()||x.isOdd())&&(b.iadd(l),x.isub(E)),b.iushrn(1),x.iushrn(1);for(var F=0,V=1;!(m.words[0]&V)&&F<26;++F,V<<=1);if(F>0)for(m.iushrn(F);F-- >0;)(_.isOdd()||S.isOdd())&&(_.iadd(l),S.isub(E)),_.iushrn(1),S.iushrn(1);c.cmp(m)>=0?(c.isub(m),b.isub(_),x.isub(S)):(m.isub(c),_.isub(b),S.isub(x))}return{a:_,b:S,gcd:m.iushln(y)}},i.prototype._invmp=function(a){n(a.negative===0),n(!a.isZero());var c=this,m=a.clone();c.negative!==0?c=c.umod(a):c=c.clone();for(var b=new i(1),x=new i(0),_=m.clone();c.cmpn(1)>0&&m.cmpn(1)>0;){for(var S=0,y=1;!(c.words[0]&y)&&S<26;++S,y<<=1);if(S>0)for(c.iushrn(S);S-- >0;)b.isOdd()&&b.iadd(_),b.iushrn(1);for(var l=0,E=1;!(m.words[0]&E)&&l<26;++l,E<<=1);if(l>0)for(m.iushrn(l);l-- >0;)x.isOdd()&&x.iadd(_),x.iushrn(1);c.cmp(m)>=0?(c.isub(m),b.isub(x)):(m.isub(c),x.isub(b))}var Y;return c.cmpn(1)===0?Y=b:Y=x,Y.cmpn(0)<0&&Y.iadd(a),Y},i.prototype.gcd=function(a){if(this.isZero())return a.abs();if(a.isZero())return this.abs();var c=this.clone(),m=a.clone();c.negative=0,m.negative=0;for(var b=0;c.isEven()&&m.isEven();b++)c.iushrn(1),m.iushrn(1);do{for(;c.isEven();)c.iushrn(1);for(;m.isEven();)m.iushrn(1);var x=c.cmp(m);if(x<0){var _=c;c=m,m=_}else if(x===0||m.cmpn(1)===0)break;c.isub(m)}while(!0);return m.iushln(b)},i.prototype.invm=function(a){return this.egcd(a).a.umod(a)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(a){return this.words[0]&a},i.prototype.bincn=function(a){n(typeof a=="number");var c=a%26,m=(a-c)/26,b=1<>>26,S&=67108863,this.words[_]=S}return x!==0&&(this.words[_]=x,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(a){var c=a<0;if(this.negative!==0&&!c)return-1;if(this.negative===0&&c)return 1;this._strip();var m;if(this.length>1)m=1;else{c&&(a=-a),n(a<=67108863,"Number is too big");var b=this.words[0]|0;m=b===a?0:ba.length)return 1;if(this.length=0;m--){var b=this.words[m]|0,x=a.words[m]|0;if(b!==x){bx&&(c=1);break}}return c},i.prototype.gtn=function(a){return this.cmpn(a)===1},i.prototype.gt=function(a){return this.cmp(a)===1},i.prototype.gten=function(a){return this.cmpn(a)>=0},i.prototype.gte=function(a){return this.cmp(a)>=0},i.prototype.ltn=function(a){return this.cmpn(a)===-1},i.prototype.lt=function(a){return this.cmp(a)===-1},i.prototype.lten=function(a){return this.cmpn(a)<=0},i.prototype.lte=function(a){return this.cmp(a)<=0},i.prototype.eqn=function(a){return this.cmpn(a)===0},i.prototype.eq=function(a){return this.cmp(a)===0},i.red=function(a){return new P(a)},i.prototype.toRed=function(a){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),a.convertTo(this)._forceRed(a)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(a){return this.red=a,this},i.prototype.forceRed=function(a){return n(!this.red,"Already a number in reduction context"),this._forceRed(a)},i.prototype.redAdd=function(a){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,a)},i.prototype.redIAdd=function(a){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,a)},i.prototype.redSub=function(a){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,a)},i.prototype.redISub=function(a){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,a)},i.prototype.redShl=function(a){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,a)},i.prototype.redMul=function(a){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,a),this.red.mul(this,a)},i.prototype.redIMul=function(a){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,a),this.red.imul(this,a)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(a){return n(this.red&&!a.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,a)};var D={k256:null,p224:null,p192:null,p25519:null};function q(g,a){this.name=g,this.p=new i(a,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}q.prototype._tmp=function(){var a=new i(null);return a.words=new Array(Math.ceil(this.n/13)),a},q.prototype.ireduce=function(a){var c=a,m;do this.split(c,this.tmp),c=this.imulK(c),c=c.iadd(this.tmp),m=c.bitLength();while(m>this.n);var b=m0?c.isub(this.p):c.strip!==void 0?c.strip():c._strip(),c},q.prototype.split=function(a,c){a.iushrn(this.n,0,c)},q.prototype.imulK=function(a){return a.imul(this.k)};function W(){q.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}s(W,q),W.prototype.split=function(a,c){for(var m=4194303,b=Math.min(a.length,9),x=0;x>>22,_=S}_>>>=22,a.words[x-10]=_,_===0&&a.length>10?a.length-=10:a.length-=9},W.prototype.imulK=function(a){a.words[a.length]=0,a.words[a.length+1]=0,a.length+=2;for(var c=0,m=0;m>>=26,a.words[m]=x,c=b}return c!==0&&(a.words[a.length++]=c),a},i._prime=function(a){if(D[a])return D[a];var c;if(a==="k256")c=new W;else if(a==="p224")c=new k;else if(a==="p192")c=new I;else if(a==="p25519")c=new H;else throw new Error("Unknown prime "+a);return D[a]=c,c};function P(g){if(typeof g=="string"){var a=i._prime(g);this.m=a.p,this.prime=a}else n(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}P.prototype._verify1=function(a){n(a.negative===0,"red works only with positives"),n(a.red,"red works only with red numbers")},P.prototype._verify2=function(a,c){n((a.negative|c.negative)===0,"red works only with positives"),n(a.red&&a.red===c.red,"red works only with red numbers")},P.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):(p(a,a.umod(this.m)._forceRed(this)),a)},P.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},P.prototype.add=function(a,c){this._verify2(a,c);var m=a.add(c);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},P.prototype.iadd=function(a,c){this._verify2(a,c);var m=a.iadd(c);return m.cmp(this.m)>=0&&m.isub(this.m),m},P.prototype.sub=function(a,c){this._verify2(a,c);var m=a.sub(c);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},P.prototype.isub=function(a,c){this._verify2(a,c);var m=a.isub(c);return m.cmpn(0)<0&&m.iadd(this.m),m},P.prototype.shl=function(a,c){return this._verify1(a),this.imod(a.ushln(c))},P.prototype.imul=function(a,c){return this._verify2(a,c),this.imod(a.imul(c))},P.prototype.mul=function(a,c){return this._verify2(a,c),this.imod(a.mul(c))},P.prototype.isqr=function(a){return this.imul(a,a.clone())},P.prototype.sqr=function(a){return this.mul(a,a)},P.prototype.sqrt=function(a){if(a.isZero())return a.clone();var c=this.m.andln(3);if(n(c%2===1),c===3){var m=this.m.add(new i(1)).iushrn(2);return this.pow(a,m)}for(var b=this.m.subn(1),x=0;!b.isZero()&&b.andln(1)===0;)x++,b.iushrn(1);n(!b.isZero());var _=new i(1).toRed(this),S=_.redNeg(),y=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);this.pow(l,y).cmp(S)!==0;)l.redIAdd(S);for(var E=this.pow(l,b),Y=this.pow(a,b.addn(1).iushrn(1)),L=this.pow(a,b),F=x;L.cmp(_)!==0;){for(var V=L,Z=0;V.cmp(_)!==0;Z++)V=V.redSqr();n(Z=0;x--){for(var E=c.words[x],Y=l-1;Y>=0;Y--){var L=E>>Y&1;if(_!==b[0]&&(_=this.sqr(_)),L===0&&S===0){y=0;continue}S<<=1,S|=L,y++,!(y!==m&&(x!==0||Y!==0))&&(_=this.mul(_,b[S]),y=0,S=0)}l=26}return _},P.prototype.convertTo=function(a){var c=a.umod(this.m);return c===a?c.clone():c},P.prototype.convertFrom=function(a){var c=a.clone();return c.red=null,c},i.mont=function(a){return new T(a)};function T(g){P.call(this,g),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}s(T,P),T.prototype.convertTo=function(a){return this.imod(a.ushln(this.shift))},T.prototype.convertFrom=function(a){var c=this.imod(a.mul(this.rinv));return c.red=null,c},T.prototype.imul=function(a,c){if(a.isZero()||c.isZero())return a.words[0]=0,a.length=1,a;var m=a.imul(c),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=m.isub(b).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},T.prototype.mul=function(a,c){if(a.isZero()||c.isZero())return new i(0)._forceRed(this);var m=a.mul(c),b=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=m.isub(b).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},T.prototype.invm=function(a){var c=this.imod(a._invmp(this.m).mul(this.r2));return c._forceRed(this)}})(t,ue)})(xG);var Ya={},U3={},H_={},H3={},Jm=mt,hh=Jm.Buffer,Js={},$s;for($s in Jm)Jm.hasOwnProperty($s)&&($s==="SlowBuffer"||$s==="Buffer"||(Js[$s]=Jm[$s]));var dh=Js.Buffer={};for($s in hh)hh.hasOwnProperty($s)&&($s==="allocUnsafe"||$s==="allocUnsafeSlow"||(dh[$s]=hh[$s]));Js.Buffer.prototype=hh.prototype;(!dh.from||dh.from===Uint8Array.from)&&(dh.from=function(t,e,r){if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&typeof t.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return hh(t,e,r)});dh.alloc||(dh.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var n=hh(t);return!e||e.length===0?n.fill(0):typeof r=="string"?n.fill(e,r):n.fill(e),n});if(!Js.kStringMaxLength)try{Js.kStringMaxLength=ft.binding("buffer").kStringMaxLength}catch{}Js.constants||(Js.constants={MAX_LENGTH:Js.kMaxLength},Js.kStringMaxLength&&(Js.constants.MAX_STRING_LENGTH=Js.kStringMaxLength));var j3=Js,Ay={};const EG=Ht;function ma(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}Ay.Reporter=ma;ma.prototype.isError=function(e){return e instanceof Ad};ma.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}};ma.prototype.restore=function(e){const r=this._reporterState;r.obj=e.obj,r.path=r.path.slice(0,e.pathLen)};ma.prototype.enterKey=function(e){return this._reporterState.path.push(e)};ma.prototype.exitKey=function(e){const r=this._reporterState;r.path=r.path.slice(0,e-1)};ma.prototype.leaveKey=function(e,r,n){const s=this._reporterState;this.exitKey(e),s.obj!==null&&(s.obj[r]=n)};ma.prototype.path=function(){return this._reporterState.path.join("/")};ma.prototype.enterObject=function(){const e=this._reporterState,r=e.obj;return e.obj={},r};ma.prototype.leaveObject=function(e){const r=this._reporterState,n=r.obj;return r.obj=e,n};ma.prototype.error=function(e){let r;const n=this._reporterState,s=e instanceof Ad;if(s?r=e:r=new Ad(n.path.map(function(i){return"["+JSON.stringify(i)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw r;return s||n.errors.push(r),r};ma.prototype.wrapResult=function(e){const r=this._reporterState;return r.options.partial?{result:this.isError(e)?null:e,errors:r.errors}:e};function Ad(t,e){this.path=t,this.rethrow(e)}EG(Ad,Error);Ad.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,Ad),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this};var qc={};const MG=Ht,xy=Ay.Reporter,xd=j3.Buffer;function sa(t,e){if(xy.call(this,e),!xd.isBuffer(t)){this.error("Input not Buffer");return}this.base=t,this.offset=0,this.length=t.length}MG(sa,xy);qc.DecoderBuffer=sa;sa.isDecoderBuffer=function(e){return e instanceof sa?!0:typeof e=="object"&&xd.isBuffer(e.base)&&e.constructor.name==="DecoderBuffer"&&typeof e.offset=="number"&&typeof e.length=="number"&&typeof e.save=="function"&&typeof e.restore=="function"&&typeof e.isEmpty=="function"&&typeof e.readUInt8=="function"&&typeof e.skip=="function"&&typeof e.raw=="function"};sa.prototype.save=function(){return{offset:this.offset,reporter:xy.prototype.save.call(this)}};sa.prototype.restore=function(e){const r=new sa(this.base);return r.offset=e.offset,r.length=this.offset,this.offset=e.offset,xy.prototype.restore.call(this,e.reporter),r};sa.prototype.isEmpty=function(){return this.offset===this.length};sa.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")};sa.prototype.skip=function(e,r){if(!(this.offset+e<=this.length))return this.error(r||"DecoderBuffer overrun");const n=new sa(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n};sa.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)};function Ed(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(r){return Ed.isEncoderBuffer(r)||(r=new Ed(r,e)),this.length+=r.length,r},this);else if(typeof t=="number"){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if(typeof t=="string")this.value=t,this.length=xd.byteLength(t);else if(xd.isBuffer(t))this.value=t,this.length=t.length;else return e.error("Unsupported type: "+typeof t)}qc.EncoderBuffer=Ed;Ed.isEncoderBuffer=function(e){return e instanceof Ed?!0:typeof e=="object"&&e.constructor.name==="EncoderBuffer"&&typeof e.length=="number"&&typeof e.join=="function"};Ed.prototype.join=function(e,r){return e||(e=xd.alloc(this.length)),r||(r=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,r),r+=n.length}):(typeof this.value=="number"?e[r]=this.value:typeof this.value=="string"?e.write(this.value,r):xd.isBuffer(this.value)&&this.value.copy(e,r),r+=this.length)),e};const SG=Ay.Reporter,_G=qc.EncoderBuffer,RG=qc.DecoderBuffer,Qi=fa,j_=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],NG=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(j_),CG=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function tn(t,e,r){const n={};this._baseState=n,n.name=r,n.enc=t,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}var z3=tn;const TG=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];tn.prototype.clone=function(){const e=this._baseState,r={};TG.forEach(function(s){r[s]=e[s]});const n=new this.constructor(r.parent);return n._baseState=r,n};tn.prototype._wrap=function(){const e=this._baseState;NG.forEach(function(r){this[r]=function(){const s=new this.constructor(this);return e.children.push(s),s[r].apply(s,arguments)}},this)};tn.prototype._init=function(e){const r=this._baseState;Qi(r.parent===null),e.call(this),r.children=r.children.filter(function(n){return n._baseState.parent===this},this),Qi.equal(r.children.length,1,"Root node can have only one child")};tn.prototype._useArgs=function(e){const r=this._baseState,n=e.filter(function(s){return s instanceof this.constructor},this);e=e.filter(function(s){return!(s instanceof this.constructor)},this),n.length!==0&&(Qi(r.children===null),r.children=n,n.forEach(function(s){s._baseState.parent=this},this)),e.length!==0&&(Qi(r.args===null),r.args=e,r.reverseArgs=e.map(function(s){if(typeof s!="object"||s.constructor!==Object)return s;const i={};return Object.keys(s).forEach(function(o){o==(o|0)&&(o|=0);const f=s[o];i[f]=o}),i}))};CG.forEach(function(t){tn.prototype[t]=function(){const r=this._baseState;throw new Error(t+" not implemented for encoding: "+r.enc)}});j_.forEach(function(t){tn.prototype[t]=function(){const r=this._baseState,n=Array.prototype.slice.call(arguments);return Qi(r.tag===null),r.tag=t,this._useArgs(n),this}});tn.prototype.use=function(e){Qi(e);const r=this._baseState;return Qi(r.use===null),r.use=e,this};tn.prototype.optional=function(){const e=this._baseState;return e.optional=!0,this};tn.prototype.def=function(e){const r=this._baseState;return Qi(r.default===null),r.default=e,r.optional=!0,this};tn.prototype.explicit=function(e){const r=this._baseState;return Qi(r.explicit===null&&r.implicit===null),r.explicit=e,this};tn.prototype.implicit=function(e){const r=this._baseState;return Qi(r.explicit===null&&r.implicit===null),r.implicit=e,this};tn.prototype.obj=function(){const e=this._baseState,r=Array.prototype.slice.call(arguments);return e.obj=!0,r.length!==0&&this._useArgs(r),this};tn.prototype.key=function(e){const r=this._baseState;return Qi(r.key===null),r.key=e,this};tn.prototype.any=function(){const e=this._baseState;return e.any=!0,this};tn.prototype.choice=function(e){const r=this._baseState;return Qi(r.choice===null),r.choice=e,this._useArgs(Object.keys(e).map(function(n){return e[n]})),this};tn.prototype.contains=function(e){const r=this._baseState;return Qi(r.use===null),r.contains=e,this};tn.prototype._decode=function(e,r){const n=this._baseState;if(n.parent===null)return e.wrapResult(n.children[0]._decode(e,r));let s=n.default,i=!0,o=null;if(n.key!==null&&(o=e.enterKey(n.key)),n.optional){let u=null;if(n.explicit!==null?u=n.explicit:n.implicit!==null?u=n.implicit:n.tag!==null&&(u=n.tag),u===null&&!n.any){const h=e.save();try{n.choice===null?this._decodeGeneric(n.tag,e,r):this._decodeChoice(e,r),i=!0}catch{i=!1}e.restore(h)}else if(i=this._peekTag(e,u,n.any),e.isError(i))return i}let f;if(n.obj&&i&&(f=e.enterObject()),i){if(n.explicit!==null){const h=this._decodeTag(e,n.explicit);if(e.isError(h))return h;e=h}const u=e.offset;if(n.use===null&&n.choice===null){let h;n.any&&(h=e.save());const p=this._decodeTag(e,n.implicit!==null?n.implicit:n.tag,n.any);if(e.isError(p))return p;n.any?s=e.raw(h):e=p}if(r&&r.track&&n.tag!==null&&r.track(e.path(),u,e.length,"tagged"),r&&r.track&&n.tag!==null&&r.track(e.path(),e.offset,e.length,"content"),n.any||(n.choice===null?s=this._decodeGeneric(n.tag,e,r):s=this._decodeChoice(e,r)),e.isError(s))return s;if(!n.any&&n.choice===null&&n.children!==null&&n.children.forEach(function(p){p._decode(e,r)}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){const h=new RG(s);s=this._getUse(n.contains,e._reporterState.obj)._decode(h,r)}}return n.obj&&i&&(s=e.leaveObject(f)),n.key!==null&&(s!==null||i===!0)?e.leaveKey(o,n.key,s):o!==null&&e.exitKey(o),s};tn.prototype._decodeGeneric=function(e,r,n){const s=this._baseState;return e==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(r,e,s.args[0],n):/str$/.test(e)?this._decodeStr(r,e,n):e==="objid"&&s.args?this._decodeObjid(r,s.args[0],s.args[1],n):e==="objid"?this._decodeObjid(r,null,null,n):e==="gentime"||e==="utctime"?this._decodeTime(r,e,n):e==="null_"?this._decodeNull(r,n):e==="bool"?this._decodeBool(r,n):e==="objDesc"?this._decodeStr(r,e,n):e==="int"||e==="enum"?this._decodeInt(r,s.args&&s.args[0],n):s.use!==null?this._getUse(s.use,r._reporterState.obj)._decode(r,n):r.error("unknown tag: "+e)};tn.prototype._getUse=function(e,r){const n=this._baseState;return n.useDecoder=this._use(e,r),Qi(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder};tn.prototype._decodeChoice=function(e,r){const n=this._baseState;let s=null,i=!1;return Object.keys(n.choice).some(function(o){const f=e.save(),u=n.choice[o];try{const h=u._decode(e,r);if(e.isError(h))return!1;s={type:o,value:h},i=!0}catch{return e.restore(f),!1}return!0},this),i?s:e.error("Choice not matched")};tn.prototype._createEncoderBuffer=function(e){return new _G(e,this.reporter)};tn.prototype._encode=function(e,r,n){const s=this._baseState;if(s.default!==null&&s.default===e)return;const i=this._encodeValue(e,r,n);if(i!==void 0&&!this._skipDefault(i,r,n))return i};tn.prototype._encodeValue=function(e,r,n){const s=this._baseState;if(s.parent===null)return s.children[0]._encode(e,r||new SG);let i=null;if(this.reporter=r,s.optional&&e===void 0)if(s.default!==null)e=s.default;else return;let o=null,f=!1;if(s.any)i=this._createEncoderBuffer(e);else if(s.choice)i=this._encodeChoice(e,r);else if(s.contains)o=this._getUse(s.contains,n)._encode(e,r),f=!0;else if(s.children)o=s.children.map(function(u){if(u._baseState.tag==="null_")return u._encode(null,r,e);if(u._baseState.key===null)return r.error("Child should have a key");const h=r.enterKey(u._baseState.key);if(typeof e!="object")return r.error("Child expected, but input is not object");const p=u._encode(e[u._baseState.key],r,e);return r.leaveKey(h),p},this).filter(function(u){return u}),o=this._createEncoderBuffer(o);else if(s.tag==="seqof"||s.tag==="setof"){if(!(s.args&&s.args.length===1))return r.error("Too many args for : "+s.tag);if(!Array.isArray(e))return r.error("seqof/setof, but data is not Array");const u=this.clone();u._baseState.implicit=null,o=this._createEncoderBuffer(e.map(function(h){const p=this._baseState;return this._getUse(p.args[0],e)._encode(h,r)},u))}else s.use!==null?i=this._getUse(s.use,n)._encode(e,r):(o=this._encodePrimitive(s.tag,e),f=!0);if(!s.any&&s.choice===null){const u=s.implicit!==null?s.implicit:s.tag,h=s.implicit===null?"universal":"context";u===null?s.use===null&&r.error("Tag could be omitted only for .use()"):s.use===null&&(i=this._encodeComposite(u,f,h,o))}return s.explicit!==null&&(i=this._encodeComposite(s.explicit,!1,"context",i)),i};tn.prototype._encodeChoice=function(e,r){const n=this._baseState,s=n.choice[e.type];return s||Qi(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),s._encode(e.value,r)};tn.prototype._encodePrimitive=function(e,r){const n=this._baseState;if(/str$/.test(e))return this._encodeStr(r,e);if(e==="objid"&&n.args)return this._encodeObjid(r,n.reverseArgs[0],n.args[1]);if(e==="objid")return this._encodeObjid(r,null,null);if(e==="gentime"||e==="utctime")return this._encodeTime(r,e);if(e==="null_")return this._encodeNull();if(e==="int"||e==="enum")return this._encodeInt(r,n.args&&n.reverseArgs[0]);if(e==="bool")return this._encodeBool(r);if(e==="objDesc")return this._encodeStr(r,e);throw new Error("Unsupported tag: "+e)};tn.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)};tn.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)};var Ey={};(function(t){function e(r){const n={};return Object.keys(r).forEach(function(s){(s|0)==s&&(s=s|0);const i=r[s];n[i]=s}),n}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=e(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=e(t.tag)})(Ey);const kG=Ht,pf=j3.Buffer,z_=z3,N2=Ey;function K_(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new Qa,this.tree._init(t.body)}var q_=K_;K_.prototype.encode=function(e,r){return this.tree._encode(e,r).join()};function Qa(t){z_.call(this,"der",t)}kG(Qa,z_);Qa.prototype._encodeComposite=function(e,r,n,s){const i=BG(e,r,n,this.reporter);if(s.length<128){const u=pf.alloc(2);return u[0]=i,u[1]=s.length,this._createEncoderBuffer([u,s])}let o=1;for(let u=s.length;u>=256;u>>=8)o++;const f=pf.alloc(1+1+o);f[0]=i,f[1]=128|o;for(let u=1+o,h=s.length;h>0;u--,h>>=8)f[u]=h&255;return this._createEncoderBuffer([f,s])};Qa.prototype._encodeStr=function(e,r){if(r==="bitstr")return this._createEncoderBuffer([e.unused|0,e.data]);if(r==="bmpstr"){const n=pf.alloc(e.length*2);for(let s=0;s=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,e[0]*40+e[1])}let s=0;for(let f=0;f=128;u>>=7)s++}const i=pf.alloc(s);let o=i.length-1;for(let f=e.length-1;f>=0;f--){let u=e[f];for(i[o--]=u&127;(u>>=7)>0;)i[o--]=128|u&127}return this._createEncoderBuffer(i)};function Fs(t){return t<10?"0"+t:t}Qa.prototype._encodeTime=function(e,r){let n;const s=new Date(e);return r==="gentime"?n=[Fs(s.getUTCFullYear()),Fs(s.getUTCMonth()+1),Fs(s.getUTCDate()),Fs(s.getUTCHours()),Fs(s.getUTCMinutes()),Fs(s.getUTCSeconds()),"Z"].join(""):r==="utctime"?n=[Fs(s.getUTCFullYear()%100),Fs(s.getUTCMonth()+1),Fs(s.getUTCDate()),Fs(s.getUTCHours()),Fs(s.getUTCMinutes()),Fs(s.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(n,"octstr")};Qa.prototype._encodeNull=function(){return this._createEncoderBuffer("")};Qa.prototype._encodeInt=function(e,r){if(typeof e=="string"){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=r[e]}if(typeof e!="number"&&!pf.isBuffer(e)){const i=e.toArray();!e.sign&&i[0]&128&&i.unshift(0),e=pf.from(i)}if(pf.isBuffer(e)){let i=e.length;e.length===0&&i++;const o=pf.alloc(i);return e.copy(o),e.length===0&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let i=e;i>=256;i>>=8)n++;const s=new Array(n);for(let i=s.length-1;i>=0;i--)s[i]=e&255,e>>=8;return s[0]&128&&s.unshift(0),this._createEncoderBuffer(pf.from(s))};Qa.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)};Qa.prototype._use=function(e,r){return typeof e=="function"&&(e=e(r)),e._getEncoder("der").tree};Qa.prototype._skipDefault=function(e,r,n){const s=this._baseState;let i;if(s.default===null)return!1;const o=e.join();if(s.defaultBuffer===void 0&&(s.defaultBuffer=this._encodeValue(s.default,r,n).join()),o.length!==s.defaultBuffer.length)return!1;for(i=0;i=31?n.error("Multi-octet tag encoding unsupported"):(e||(s|=32),s|=N2.tagClassByName[r||"universal"]<<6,s)}const IG=Ht,K3=q_;function q3(t){K3.call(this,t),this.enc="pem"}IG(q3,K3);var PG=q3;q3.prototype.encode=function(e,r){const s=K3.prototype.encode.call(this,e).toString("base64"),i=["-----BEGIN "+r.label+"-----"];for(let o=0;o>6],s=(r&32)===0;if((r&31)===31){let o=r;for(r=0;(o&128)===128;){if(o=t.readUInt8(e),t.isError(o))return o;r<<=7,r|=o&127}}else r&=31;const i=Kx.tag[r];return{cls:n,primitive:s,tag:r,tagStr:i}}function Z_(t,e,r){let n=t.readUInt8(r);if(t.isError(n))return n;if(!e&&n===128)return null;if(!(n&128))return n;const s=n&127;if(s>4)return t.error("length octect is too long");n=0;for(let i=0;i0&&C.ishrn(B),C}function w(R,N){R=v(R,N),R=R.mod(N);var C=t.from(R.toArray());if(C.length=p)throw new Error("invalid sig")}return C2=i,C2}var T2,Zx;function vV(){if(Zx)return T2;Zx=1;var t=Wt.Buffer,e=b1,r=pp,n=Ht,s=mV(),i=gV(),o=KS;Object.keys(o).forEach(function(d){o[d].id=t.from(o[d].id,"hex"),o[d.toLowerCase()]=o[d]});function f(d){r.Writable.call(this);var v=o[d];if(!v)throw new Error("Unknown message digest");this._hashType=v.hash,this._hash=e(v.hash),this._tag=v.id,this._signType=v.sign}n(f,r.Writable),f.prototype._write=function(v,w,A){this._hash.update(v),A()},f.prototype.update=function(v,w){return typeof v=="string"&&(v=t.from(v,w)),this._hash.update(v),this},f.prototype.sign=function(v,w){this.end();var A=this._hash.digest(),M=s(A,v,this._hashType,this._signType,this._tag);return w?M.toString(w):M};function u(d){r.Writable.call(this);var v=o[d];if(!v)throw new Error("Unknown message digest");this._hash=e(v.hash),this._tag=v.id,this._signType=v.sign}n(u,r.Writable),u.prototype._write=function(v,w,A){this._hash.update(v),A()},u.prototype.update=function(v,w){return typeof v=="string"&&(v=t.from(v,w)),this._hash.update(v),this},u.prototype.verify=function(v,w,A){typeof w=="string"&&(w=t.from(w,A)),this.end();var M=this._hash.digest();return i(w,M,v,this._signType,this._tag)};function h(d){return new f(d)}function p(d){return new u(d)}return T2={Sign:h,Verify:p,createSign:h,createVerify:p},T2}var k2,Yx;function yV(){if(Yx)return k2;Yx=1;var t=wy(),e=gn;k2=function(o){return new n(o)};var r={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};r.p224=r.secp224r1,r.p256=r.secp256r1=r.prime256v1,r.p192=r.secp192r1=r.prime192v1,r.p384=r.secp384r1,r.p521=r.secp521r1;function n(i){this.curveType=r[i],this.curveType||(this.curveType={name:i}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}n.prototype.generateKeys=function(i,o){return this.keys=this.curve.genKeyPair(),this.getPublicKey(i,o)},n.prototype.computeSecret=function(i,o,f){o=o||"utf8",mt.Buffer.isBuffer(i)||(i=new mt.Buffer(i,o));var u=this.curve.keyFromPublic(i).getPublic(),h=u.mul(this.keys.getPrivate()).getX();return s(h,f,this.curveType.byteLength)},n.prototype.getPublicKey=function(i,o){var f=this.keys.getPublic(o==="compressed",!0);return o==="hybrid"&&(f[f.length-1]%2?f[0]=7:f[0]=6),s(f,i)},n.prototype.getPrivateKey=function(i){return s(this.keys.getPrivate(),i)},n.prototype.setPublicKey=function(i,o){return o=o||"utf8",mt.Buffer.isBuffer(i)||(i=new mt.Buffer(i,o)),this.keys._importPublic(i),this},n.prototype.setPrivateKey=function(i,o){o=o||"utf8",mt.Buffer.isBuffer(i)||(i=new mt.Buffer(i,o));var f=new e(i);return f=f.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(f),this};function s(i,o,f){Array.isArray(i)||(i=i.toArray());var u=new mt.Buffer(i);if(f&&u.length=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return n?_V(o,i):SV(o,i)};function NV(t,e){var r=t.modulus.byteLength(),n=e.length,s=MV("sha1").update(Fa.alloc(0)).digest(),i=s.length,o=2*i;if(n>r-o-2)throw new Error("message too long");var f=Fa.alloc(r-n-o-2),u=r-i-1,h=Zw(i),p=Jx(Fa.concat([s,f,Fa.alloc(1,1),e],u),Xx(h,u)),d=Jx(h,Xx(p,i));return new Q3(Fa.concat([Fa.alloc(1),d,p],r))}function CV(t,e,r){var n=e.length,s=t.modulus.byteLength();if(n>s-11)throw new Error("message too long");var i;return r?i=Fa.alloc(s-n-3,255):i=TV(s-n-3),new Q3(Fa.concat([Fa.from([0,r?1:2]),i,Fa.alloc(1),e],s))}function TV(t){for(var e=Fa.allocUnsafe(t),r=0,n=Zw(t*2),s=0,i;ro||new t8(r).cmp(i.modulus)>=0)throw new Error("decryption error");var f;n?f=PV(new t8(r),i):f=BV(r,i);var u=bp.alloc(o-f.length);if(f=bp.concat([u,f],o),s===4)return LV(i,f);if(s===1)return DV(i,f,n);if(s===3)return f;throw new Error("unknown padding")};function LV(t,e){var r=t.modulus.byteLength(),n=IV("sha1").update(bp.alloc(0)).digest(),s=n.length;if(e[0]!==0)throw new Error("decryption error");var i=e.slice(1,s+1),o=e.slice(s+1),f=e8(i,$x(o,s)),u=e8(o,$x(f,r-s-1));if(FV(n,u.slice(0,s)))throw new Error("decryption error");for(var h=s;u[h]===0;)h++;if(u[h++]!==1)throw new Error("decryption error");return u.slice(h)}function DV(t,e,r){for(var n=e.slice(0,2),s=2,i=0;e[s++]!==0;)if(s>=e.length){i++;break}var o=e.slice(2,s-1);if((n.toString("hex")!=="0002"&&!r||n.toString("hex")!=="0001"&&r)&&i++,o.length<8&&i++,i)throw new Error("decryption error");return e.slice(s)}function FV(t,e){t=bp.from(t),e=bp.from(e);var r=0,n=t.length;t.length!==e.length&&(r++,n=Math.min(t.length,e.length));for(var s=-1;++soR||t<0)throw new TypeError("offset must be a uint32");if(t>aR||t>e)throw new RangeError("offset out of range")}function lR(t,e,r){if(typeof t!="number"||t!==t)throw new TypeError("size must be a number");if(t>oR||t<0)throw new TypeError("size must be a uint32");if(t+e>r||t>aR)throw new RangeError("buffer too small")}Yw&&Yw.getRandomValues||!ft.browser?(P0.randomFill=UV,P0.randomFillSync=HV):(P0.randomFill=r8,P0.randomFillSync=r8);function UV(t,e,r,n){if(!sR.isBuffer(t)&&!(t instanceof ue.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof e=="function")n=e,e=0,r=t.length;else if(typeof r=="function")n=r,r=t.length-e;else if(typeof n!="function")throw new TypeError('"cb" argument must be a function');return fR(e,t.length),lR(r,e,t.length),cR(t,e,r,n)}function cR(t,e,r,n){if(ft.browser){var s=t.buffer,i=new Uint8Array(s,e,r);if(Yw.getRandomValues(i),n){ft.nextTick(function(){n(null,t)});return}return t}if(n){n8(r,function(f,u){if(f)return n(f);u.copy(t,e),n(null,t)});return}var o=n8(r);return o.copy(t,e),t}function HV(t,e,r){if(typeof e>"u"&&(e=0),!sR.isBuffer(t)&&!(t instanceof ue.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return fR(e,t.length),r===void 0&&(r=t.length-e),lR(r,e,t.length),cR(t,e,r)}var i8;function X3(){if(i8)return Zt;i8=1,Zt.randomBytes=Zt.rng=Zt.pseudoRandomBytes=Zt.prng=Cl,Zt.createHash=Zt.Hash=b1,Zt.createHmac=Zt.Hmac=zS;var t=Hw,e=Object.keys(t),r=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(e);Zt.getHashes=function(){return r};var n=oy;Zt.pbkdf2=n.pbkdf2,Zt.pbkdf2Sync=n.pbkdf2Sync;var s=Ga;Zt.Cipher=s.Cipher,Zt.createCipher=s.createCipher,Zt.Cipheriv=s.Cipheriv,Zt.createCipheriv=s.createCipheriv,Zt.Decipher=s.Decipher,Zt.createDecipher=s.createDecipher,Zt.Decipheriv=s.Decipheriv,Zt.createDecipheriv=s.createDecipheriv,Zt.getCiphers=s.getCiphers,Zt.listCiphers=s.listCiphers;var i=Nq();Zt.DiffieHellmanGroup=i.DiffieHellmanGroup,Zt.createDiffieHellmanGroup=i.createDiffieHellmanGroup,Zt.getDiffieHellman=i.getDiffieHellman,Zt.createDiffieHellman=i.createDiffieHellman,Zt.DiffieHellman=i.DiffieHellman;var o=vV();Zt.createSign=o.createSign,Zt.Sign=o.Sign,Zt.createVerify=o.createVerify,Zt.Verify=o.Verify,Zt.createECDH=yV();var f=eR;Zt.publicEncrypt=f.publicEncrypt,Zt.privateEncrypt=f.privateEncrypt,Zt.publicDecrypt=f.publicDecrypt,Zt.privateDecrypt=f.privateDecrypt;var u=P0;return Zt.randomFill=u.randomFill,Zt.randomFillSync=u.randomFillSync,Zt.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(` -`))},Zt.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},Zt}var s8;function R1(){return s8||(s8=1,function(t,e){(function(r,n){t.exports=n()})(ue,function(){var r=r||function(n,s){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof ue<"u"&&ue.crypto&&(i=ue.crypto),!i&&typeof $F=="function")try{i=X3()}catch{}var o=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},f=Object.create||function(){function C(){}return function(B){var O;return C.prototype=B,O=new C,C.prototype=null,O}}(),u={},h=u.lib={},p=h.Base=function(){return{extend:function(C){var B=f(this);return C&&B.mixIn(C),(!B.hasOwnProperty("init")||this.init===B.init)&&(B.init=function(){B.$super.init.apply(this,arguments)}),B.init.prototype=B,B.$super=this,B},create:function(){var C=this.extend();return C.init.apply(C,arguments),C},init:function(){},mixIn:function(C){for(var B in C)C.hasOwnProperty(B)&&(this[B]=C[B]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=h.WordArray=p.extend({init:function(C,B){C=this.words=C||[],B!=s?this.sigBytes=B:this.sigBytes=C.length*4},toString:function(C){return(C||w).stringify(this)},concat:function(C){var B=this.words,O=C.words,D=this.sigBytes,q=C.sigBytes;if(this.clamp(),D%4)for(var W=0;W>>2]>>>24-W%4*8&255;B[D+W>>>2]|=k<<24-(D+W)%4*8}else for(var I=0;I>>2]=O[I>>>2];return this.sigBytes+=q,this},clamp:function(){var C=this.words,B=this.sigBytes;C[B>>>2]&=4294967295<<32-B%4*8,C.length=n.ceil(B/4)},clone:function(){var C=p.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var B=[],O=0;O>>2]>>>24-q%4*8&255;D.push((W>>>4).toString(16)),D.push((W&15).toString(16))}return D.join("")},parse:function(C){for(var B=C.length,O=[],D=0;D>>3]|=parseInt(C.substr(D,2),16)<<24-D%8*4;return new d.init(O,B/2)}},A=v.Latin1={stringify:function(C){for(var B=C.words,O=C.sigBytes,D=[],q=0;q>>2]>>>24-q%4*8&255;D.push(String.fromCharCode(W))}return D.join("")},parse:function(C){for(var B=C.length,O=[],D=0;D>>2]|=(C.charCodeAt(D)&255)<<24-D%4*8;return new d.init(O,B)}},M=v.Utf8={stringify:function(C){try{return decodeURIComponent(escape(A.stringify(C)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(C){return A.parse(unescape(encodeURIComponent(C)))}},R=h.BufferedBlockAlgorithm=p.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(C){typeof C=="string"&&(C=M.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var B,O=this._data,D=O.words,q=O.sigBytes,W=this.blockSize,k=W*4,I=q/k;C?I=n.ceil(I):I=n.max((I|0)-this._minBufferSize,0);var H=I*W,P=n.min(H*4,q);if(H){for(var T=0;T>>7)^(I<<14|I>>>18)^I>>>3,P=d[k-2],T=(P<<15|P>>>17)^(P<<13|P>>>19)^P>>>10;d[k]=H+d[k-7]+T+d[k-16]}var g=O&D^~O&q,a=R&N^R&C^N&C,c=(R<<30|R>>>2)^(R<<19|R>>>13)^(R<<10|R>>>22),m=(O<<26|O>>>6)^(O<<21|O>>>11)^(O<<7|O>>>25),b=W+m+g+p[k]+d[k],x=c+a;W=q,q=D,D=O,O=B+b|0,B=C,C=N,N=R,R=b+x|0}M[0]=M[0]+R|0,M[1]=M[1]+N|0,M[2]=M[2]+C|0,M[3]=M[3]+B|0,M[4]=M[4]+O|0,M[5]=M[5]+D|0,M[6]=M[6]+q|0,M[7]=M[7]+W|0},_doFinalize:function(){var w=this._data,A=w.words,M=this._nDataBytes*8,R=w.sigBytes*8;return A[R>>>5]|=128<<24-R%32,A[(R+64>>>9<<4)+14]=n.floor(M/4294967296),A[(R+64>>>9<<4)+15]=M,w.sigBytes=A.length*4,this._process(),this._hash},clone:function(){var w=f.clone.call(this);return w._hash=this._hash.clone(),w}});s.SHA256=f._createHelper(v),s.HmacSHA256=f._createHmacHelper(v)}(Math),r.SHA256})})(JF);var Gg={},jV={get exports(){return Gg},set exports(t){Gg=t}};(function(t,e){(function(r,n){t.exports=n(R1())})(ue,function(r){return r.enc.Hex})})(jV);(function(t){var e=ue&&ue.__importDefault||function(D){return D&&D.__esModule?D:{default:D}};Object.defineProperty(t,"__esModule",{value:!0}),t.fromBech32Address=t.toBech32Address=t.toChecksumAddress=void 0;var r=e(gn),n=e(Ig),s=e(Gg),i="qpzry9x8gf2tvdw0s3jn54khce6mua7l",o=[996825010,642813549,513874426,1027748829,705979059],f="zil",u="tzil";function h(D,q){return!!D.replace("0x","").match("^[0-9a-fA-F]{".concat(q,"}$"))}function p(D){return h(D,40)}function d(D,q,W,k){k===void 0&&(k=!0);for(var I=0,H=0,P=[],T=(1<>q)return null;for(I=I<=W;)H-=W,P.push(I>>H&T)}if(k)H>0&&P.push(I<=q||I<>5);for(q.push(0),W=0;W>25;q=(q&33554431)<<5^D[W];for(var I=0;I<5;++I)k>>I&1&&(q^=o[I])}return q}function A(D,q){for(var W=mt.Buffer.concat([mt.Buffer.from(v(D)),q,mt.Buffer.from([0,0,0,0,0,0])]),k=w(W)^1,I=[],H=0;H<6;++H)I.push(k>>5*(5-H)&31);return mt.Buffer.from(I)}function M(D,q){return w(mt.Buffer.concat([v(D),q]))===1}function R(D,q){for(var W=mt.Buffer.concat([q,A(D,q)]),k=D+"1",I=0;I126)return null;D.charCodeAt(q)>=97&&D.charCodeAt(q)<=122&&(W=!0),D.charCodeAt(q)>=65&&D.charCodeAt(q)<=90&&(k=!0)}if(W&&k)return null;D=D.toLowerCase();var I=D.lastIndexOf("1");if(I<1||I+7>D.length||D.length>90)return null;var H=D.substring(0,I),P=[];for(q=I+1;q")},r[n.MetadataEndpointError]=function(o){return"Failed to query tokenUri ".concat(o.tokenUri,". Error: ").concat(o.errorMessage)},r[n.UnsupportedService]=function(o){return"Naming service ".concat(o.namingService," is not supported")},r[n.InvalidDomainAddress]=function(o){return"Domain address ".concat(o.domain," is invalid")},r),i=function(o){e(f,o);function f(u,h){h===void 0&&(h={});var p=this,d=s[u],v=h.domain,w=h.method,A=h.currencyTicker,M=d(h);return p=o.call(this,M)||this,p.code=u,p.domain=v,p.method=w,p.currencyTicker=A,p.name="ResolutionError",Object.setPrototypeOf(p,f.prototype),p}return f}(Error);t.ResolutionError=i,t.default=i})(Ho);var C1={},jd={},Vg={},zV={get exports(){return Vg},set exports(t){Vg=t}};(function(t,e){var r=typeof self<"u"?self:ue,n=function(){function i(){this.fetch=!1,this.DOMException=r.DOMException}return i.prototype=r,new i}();(function(i){(function(o){var f={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function u(a){return a&&DataView.prototype.isPrototypeOf(a)}if(f.arrayBuffer)var h=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(a){return a&&h.indexOf(Object.prototype.toString.call(a))>-1};function d(a){if(typeof a!="string"&&(a=String(a)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(a))throw new TypeError("Invalid character in header field name");return a.toLowerCase()}function v(a){return typeof a!="string"&&(a=String(a)),a}function w(a){var c={next:function(){var m=a.shift();return{done:m===void 0,value:m}}};return f.iterable&&(c[Symbol.iterator]=function(){return c}),c}function A(a){this.map={},a instanceof A?a.forEach(function(c,m){this.append(m,c)},this):Array.isArray(a)?a.forEach(function(c){this.append(c[0],c[1])},this):a&&Object.getOwnPropertyNames(a).forEach(function(c){this.append(c,a[c])},this)}A.prototype.append=function(a,c){a=d(a),c=v(c);var m=this.map[a];this.map[a]=m?m+", "+c:c},A.prototype.delete=function(a){delete this.map[d(a)]},A.prototype.get=function(a){return a=d(a),this.has(a)?this.map[a]:null},A.prototype.has=function(a){return this.map.hasOwnProperty(d(a))},A.prototype.set=function(a,c){this.map[d(a)]=v(c)},A.prototype.forEach=function(a,c){for(var m in this.map)this.map.hasOwnProperty(m)&&a.call(c,this.map[m],m,this)},A.prototype.keys=function(){var a=[];return this.forEach(function(c,m){a.push(m)}),w(a)},A.prototype.values=function(){var a=[];return this.forEach(function(c){a.push(c)}),w(a)},A.prototype.entries=function(){var a=[];return this.forEach(function(c,m){a.push([m,c])}),w(a)},f.iterable&&(A.prototype[Symbol.iterator]=A.prototype.entries);function M(a){if(a.bodyUsed)return Promise.reject(new TypeError("Already read"));a.bodyUsed=!0}function R(a){return new Promise(function(c,m){a.onload=function(){c(a.result)},a.onerror=function(){m(a.error)}})}function N(a){var c=new FileReader,m=R(c);return c.readAsArrayBuffer(a),m}function C(a){var c=new FileReader,m=R(c);return c.readAsText(a),m}function B(a){for(var c=new Uint8Array(a),m=new Array(c.length),b=0;b-1?c:a}function k(a,c){c=c||{};var m=c.body;if(a instanceof k){if(a.bodyUsed)throw new TypeError("Already read");this.url=a.url,this.credentials=a.credentials,c.headers||(this.headers=new A(a.headers)),this.method=a.method,this.mode=a.mode,this.signal=a.signal,!m&&a._bodyInit!=null&&(m=a._bodyInit,a.bodyUsed=!0)}else this.url=String(a);if(this.credentials=c.credentials||this.credentials||"same-origin",(c.headers||!this.headers)&&(this.headers=new A(c.headers)),this.method=W(c.method||this.method||"GET"),this.mode=c.mode||this.mode||null,this.signal=c.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&m)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(m)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})};function I(a){var c=new FormData;return a.trim().split("&").forEach(function(m){if(m){var b=m.split("="),x=b.shift().replace(/\+/g," "),_=b.join("=").replace(/\+/g," ");c.append(decodeURIComponent(x),decodeURIComponent(_))}}),c}function H(a){var c=new A,m=a.replace(/\r?\n[\t ]+/g," ");return m.split(/\r?\n/).forEach(function(b){var x=b.split(":"),_=x.shift().trim();if(_){var S=x.join(":").trim();c.append(_,S)}}),c}D.call(k.prototype);function P(a,c){c||(c={}),this.type="default",this.status=c.status===void 0?200:c.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in c?c.statusText:"OK",this.headers=new A(c.headers),this.url=c.url||"",this._initBody(a)}D.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new A(this.headers),url:this.url})},P.error=function(){var a=new P(null,{status:0,statusText:""});return a.type="error",a};var T=[301,302,303,307,308];P.redirect=function(a,c){if(T.indexOf(c)===-1)throw new RangeError("Invalid status code");return new P(null,{status:c,headers:{location:a}})},o.DOMException=i.DOMException;try{new o.DOMException}catch{o.DOMException=function(c,m){this.message=c,this.name=m;var b=Error(c);this.stack=b.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function g(a,c){return new Promise(function(m,b){var x=new k(a,c);if(x.signal&&x.signal.aborted)return b(new o.DOMException("Aborted","AbortError"));var _=new XMLHttpRequest;function S(){_.abort()}_.onload=function(){var y={status:_.status,statusText:_.statusText,headers:H(_.getAllResponseHeaders()||"")};y.url="responseURL"in _?_.responseURL:y.headers.get("X-Request-URL");var l="response"in _?_.response:_.responseText;m(new P(l,y))},_.onerror=function(){b(new TypeError("Network request failed"))},_.ontimeout=function(){b(new TypeError("Network request failed"))},_.onabort=function(){b(new o.DOMException("Aborted","AbortError"))},_.open(x.method,x.url,!0),x.credentials==="include"?_.withCredentials=!0:x.credentials==="omit"&&(_.withCredentials=!1),"responseType"in _&&f.blob&&(_.responseType="blob"),x.headers.forEach(function(y,l){_.setRequestHeader(l,y)}),x.signal&&(x.signal.addEventListener("abort",S),_.onreadystatechange=function(){_.readyState===4&&x.signal.removeEventListener("abort",S)}),_.send(typeof x._bodyInit>"u"?null:x._bodyInit)})}return g.polyfill=!0,i.fetch||(i.fetch=g,i.Headers=A,i.Request=k,i.Response=P),o.Headers=A,o.Request=k,o.Response=P,o.fetch=g,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var s=n;e=s.fetch,e.default=s.fetch,e.fetch=s.fetch,e.Headers=s.Headers,e.Request=s.Request,e.Response=s.Response,t.exports=e})(zV,Vg);var KV=ue&&ue.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function f(p){try{h(n.next(p))}catch(d){o(d)}}function u(p){try{h(n.throw(p))}catch(d){o(d)}}function h(p){p.done?i(p.value):s(p.value).then(f,u)}h((n=n.apply(t,e||[])).next())})},qV=ue&&ue.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,o;return o={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function f(h){return function(p){return u([h,p])}}function u(h){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,s&&(i=h[0]&2?s.return:h[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,h[1])).done)return i;switch(s=0,i&&(h=[h[0]&2,i.value]),h[0]){case 0:case 1:i=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,s=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]0&&i[i.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]>>24)&16711935|(D<<24|D>>>8)&4278255360,q=(q<<8|q>>>24)&16711935|(q<<24|q>>>8)&4278255360;var W=C[O];W.high^=q,W.low^=D}for(var k=0;k<24;k++){for(var I=0;I<5;I++){for(var H=0,P=0,T=0;T<5;T++){var W=C[I+5*T];H^=W.high,P^=W.low}var g=A[I];g.high=H,g.low=P}for(var I=0;I<5;I++)for(var a=A[(I+4)%5],c=A[(I+1)%5],m=c.high,b=c.low,H=a.high^(m<<1|b>>>31),P=a.low^(b<<1|m>>>31),T=0;T<5;T++){var W=C[I+5*T];W.high^=H,W.low^=P}for(var x=1;x<25;x++){var H,P,W=C[x],_=W.high,S=W.low,y=d[x];y<32?(H=_<>>32-y,P=S<>>32-y):(H=S<>>64-y,P=_<>>64-y);var l=A[v[x]];l.high=H,l.low=P}var E=A[0],Y=C[0];E.high=Y.high,E.low=Y.low;for(var I=0;I<5;I++)for(var T=0;T<5;T++){var x=I+5*T,W=C[x],L=A[x],F=A[(I+1)%5+5*T],V=A[(I+2)%5+5*T];W.high=L.high^~F.high&V.high,W.low=L.low^~F.low&V.low}var W=C[0],Z=w[k];W.high^=Z.high,W.low^=Z.low}},_doFinalize:function(){var R=this._data,N=R.words;this._nDataBytes*8;var C=R.sigBytes*8,B=this.blockSize*32;N[C>>>5]|=1<<24-C%32,N[(n.ceil((C+1)/B)*B>>>5)-1]|=128,R.sigBytes=N.length*4,this._process();for(var O=this._state,D=this.cfg.outputLength/8,q=D/8,W=[],k=0;k>>24)&16711935|(H<<24|H>>>8)&4278255360,P=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,W.push(P),W.push(H)}return new o.init(W,D)},clone:function(){for(var R=f.clone.call(this),N=R._state=this._state.slice(0),C=0;C<25;C++)N[C]=N[C].clone();return R}});s.SHA3=f._createHelper(M),s.HmacSHA3=f._createHmacHelper(M)}(Math),r.SHA3})})(eW);var Xw={},nW={get exports(){return Xw},set exports(t){Xw=t}};(function(t,e){(function(r,n){t.exports=n(R1())})(ue,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,s=n.lib,i=s.WordArray,o=i.init,f=i.init=function(u){if(u instanceof ArrayBuffer&&(u=new Uint8Array(u)),(u instanceof Int8Array||typeof Uint8ClampedArray<"u"&&u instanceof Uint8ClampedArray||u instanceof Int16Array||u instanceof Uint16Array||u instanceof Int32Array||u instanceof Uint32Array||u instanceof Float32Array||u instanceof Float64Array)&&(u=new Uint8Array(u.buffer,u.byteOffset,u.byteLength)),u instanceof Uint8Array){for(var h=u.byteLength,p=[],d=0;d>>2]|=u[d]<<24-d%4*8;o.call(this,p,h)}else o.apply(this,arguments)};f.prototype=i}}(),r.lib.WordArray})})(nW);var T1=ue&&ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.fromDecStringToHex=Xn.fromHexStringToDecimals=Xn.znsChildhash=Xn.znsNamehash=Xn.eip137Childhash=Xn.eip137Namehash=void 0;var uR=T1(Ig),hR=T1(Qw),$m=T1(Gg),iW=T1(Xw),dR=T1(gn);function sW(t){var e=J3(t,"sha3");return mR(e)}Xn.eip137Namehash=sW;function aW(t,e){return pR(t,e,"sha3")}Xn.eip137Childhash=aW;function oW(t){var e=J3(t,"sha256");return mR(e)}Xn.znsNamehash=oW;function fW(t,e){return pR(t,e,"sha256")}Xn.znsChildhash=fW;function pR(t,e,r){var n=r==="sha256"?uR.default:hR.default,s={outputLength:256},i=t.replace(/^0x/,""),o=$m.default.stringify(n(e,s));return"0x".concat($m.default.stringify(n($m.default.parse("".concat(i).concat(o)),s)))}function J3(t,e){if(!t)return iW.default.create(Array.from(new Uint8Array(8)));var r=e==="sha256"?uR.default:hR.default,n={outputLength:256},s=t.split("."),i=s[0],o=s.slice(1),f=r(i,n),u=J3(o.join("."),e);return r(u.concat(f),n)}function mR(t){return"0x".concat($m.default.stringify(t))}function lW(t){if(t.startsWith("0x")){var e=t.slice(2,t.length),r=new dR.default(e,16);return r.toString(10)}return t}Xn.fromHexStringToDecimals=lW;function cW(t){if(!t.startsWith("0x")){var e=new dR.default(t,10),r=e.toString(16);return"0x".concat(r.padStart(64,"0"))}return t}Xn.fromDecStringToHex=cW;var zd={};Object.defineProperty(zd,"__esModule",{value:!0});zd.NamingService=void 0;var uW=function(){function t(){}return t}();zd.NamingService=uW;var ou={};(function(t){var e=ue&&ue.__extends||function(){var o=function(f,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var d in p)Object.prototype.hasOwnProperty.call(p,d)&&(h[d]=p[d])},o(f,u)};return function(f,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");o(f,u);function h(){this.constructor=f}f.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}}(),r;Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationError=t.ConfigurationErrorCode=void 0;var n;(function(o){o.IncorrectProvider="IncorrectProvider",o.UnsupportedNetwork="UnsupportedNetwork",o.UnspecifiedUrl="UnspecifiedUrl",o.NetworkConfigMissing="NetworkConfigMissing",o.CustomNetworkConfigMissing="CustomNetworkConfigMissing",o.InvalidConfigurationField="InvalidProxyReader"})(n=t.ConfigurationErrorCode||(t.ConfigurationErrorCode={}));var s=(r={},r[n.IncorrectProvider]=function(){return"Provider doesn't implement sendAsync or send method"},r[n.UnsupportedNetwork]=function(o){return"Unsupported network in Resolution ".concat(o.method||""," configuration")},r[n.UnspecifiedUrl]=function(o){return"Unspecified url in Resolution ".concat(o.method," configuration")},r[n.NetworkConfigMissing]=function(o){return"Missing configuration in Resolution ".concat(o.method,". Please specify ").concat(o.config)},r[n.CustomNetworkConfigMissing]=function(o){return"Missing configuration in Resolution ".concat(o.method,". Please specify ").concat(o.config," when using a custom network")},r[n.InvalidConfigurationField]=function(o){return"Invalid '".concat(o.field,"' in Resolution ").concat(o.method)},r),i=function(o){e(f,o);function f(u,h){h===void 0&&(h={});var p=this,d=s[u];return p=o.call(this,d(h))||this,p.code=u,p.method=h.method,p.name="ConfigurationError",Object.setPrototypeOf(p,f.prototype),p}return f}(Error);t.ConfigurationError=i,t.default=i})(ou);var hW=ue&&ue.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Zg=ue&&ue.__assign||function(){return Zg=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&i[i.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]7?v[M+2].toUpperCase():v[M+2];return A},p=function(v){var w=(0,r.hexToBytes)(mt.Buffer.from(v,"utf8").toString("hex")),A=mt.Buffer.from(w),M=`Ethereum Signed Message: -`+w.length,R=mt.Buffer.from(M),N=mt.Buffer.concat([R,A]);return"0x"+(0,e.keccak256)(N.toString())};t.hashMessage=p;var d=function(v,w){var A=(0,t.hashMessage)(v),M=u(w),R={v:f(M[0]),r:M[1].slice(2),s:M[2].slice(2)},N=s.recoverPubKey(mt.Buffer.from(A.slice(2),"hex"),R,R.v<2?R.v:1-R.v%2),C="0x"+N.encode("hex",!1).slice(2),B="0x"+(0,e.keccak256)((0,r.hexToBytes)(C));return h("0x"+B.slice(-40))};t.recover=d})(gR);Object.defineProperty(k1,"__esModule",{value:!0});k1.isValidTwitterSignature=void 0;var AW=Hl,xW=sp,EW=gR,MW=Xn,SW="0x12cfb13522F13a78b650a8bCbFCf50b7CB899d82",_W=function(t){var e=t.tokenId,r=t.owner,n=t.twitterHandle,s=t.validationSignature,i=(0,MW.fromHexStringToDecimals)(e),o=[i,r,"social.twitter.username",n].map(function(u){return"0x"+(0,xW.keccak256)(u.startsWith("0x")?(0,AW.hexToBytes)(u):u)}).reduce(function(u,h){return u+h},""),f=(0,EW.recover)(o,s);return f===SW};k1.isValidTwitterSignature=_W;var e6={},t6={};const B1="abi/5.7.0",yr=new $t(B1),Gc={};let c8={calldata:!0,memory:!0,storage:!0},RW={calldata:!0,memory:!0};function nm(t,e){if(t==="bytes"||t==="string"){if(c8[e])return!0}else if(t==="address"){if(e==="payable")return!0}else if((t.indexOf("[")>=0||t==="tuple")&&RW[e])return!0;return(c8[e]||e==="payable")&&yr.throwArgumentError("invalid modifier","name",e),!1}function NW(t,e){let r=t;function n(f){yr.throwArgumentError(`unexpected character at position ${f}`,"param",t)}t=t.replace(/\s/g," ");function s(f){let u={type:"",name:"",parent:f,state:{allowType:!0}};return e&&(u.indexed=!1),u}let i={type:"",name:"",state:{allowType:!0}},o=i;for(let f=0;fJSON.parse(s.format(e)))),JSON.stringify(n)}let r="";return this.baseType==="array"?(r+=this.arrayChildren.format(e),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):this.baseType==="tuple"?(e!==kr.sighash&&(r+=this.type),r+="("+this.components.map(n=>n.format(e)).join(e===kr.full?", ":",")+")"):r+=this.type,e!==kr.sighash&&(this.indexed===!0&&(r+=" indexed"),e===kr.full&&this.name&&(r+=" "+this.name)),r}static from(e,r){return typeof e=="string"?$f.fromString(e,r):$f.fromObject(e)}static fromObject(e){return $f.isParamType(e)?e:new $f(Gc,{name:e.name||null,type:Du(e.type),indexed:e.indexed==null?null:!!e.indexed,components:e.components?e.components.map($f.fromObject):null})}static fromString(e,r){function n(s){return $f.fromObject({name:s.name,type:s.type,indexed:s.indexed,components:s.components})}return n(NW(e,!!r))}static isParamType(e){return!!(e!=null&&e._isParamType)}};function wp(t,e){return kW(t).map(r=>za.fromString(r,e))}let I1=class O0{constructor(e,r){e!==Gc&&yr.throwError("use a static from method",$t.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),eg(this,r),this._isFragment=!0,Object.freeze(this)}static from(e){return O0.isFragment(e)?e:typeof e=="string"?O0.fromString(e):O0.fromObject(e)}static fromObject(e){if(O0.isFragment(e))return e;switch(e.type){case"function":return xp.fromObject(e);case"event":return Yg.fromObject(e);case"constructor":return Ap.fromObject(e);case"error":return Jw.fromObject(e);case"fallback":case"receive":return null}return yr.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return e=e.replace(/\s/g," "),e=e.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),e=e.trim(),e.split(" ")[0]==="event"?Yg.fromString(e.substring(5).trim()):e.split(" ")[0]==="function"?xp.fromString(e.substring(8).trim()):e.split("(")[0].trim()==="constructor"?Ap.fromString(e.trim()):e.split(" ")[0]==="error"?Jw.fromString(e.substring(5).trim()):yr.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}},Yg=class Iu extends I1{format(e){if(e||(e=kr.sighash),kr[e]||yr.throwArgumentError("invalid format type","format",e),e===kr.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==kr.sighash&&(r+="event "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===kr.full?", ":",")+") ",e!==kr.sighash&&this.anonymous&&(r+="anonymous "),r.trim()}static from(e){return typeof e=="string"?Iu.fromString(e):Iu.fromObject(e)}static fromObject(e){if(Iu.isEventFragment(e))return e;e.type!=="event"&&yr.throwArgumentError("invalid event object","value",e);const r={name:Ep(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(za.fromObject):[],type:"event"};return new Iu(Gc,r)}static fromString(e){let r=e.match(Mp);r||yr.throwArgumentError("invalid event string","value",e);let n=!1;return r[3].split(" ").forEach(s=>{switch(s.trim()){case"anonymous":n=!0;break;case"":break;default:yr.warn("unknown modifier: "+s)}}),Iu.fromObject({name:r[1].trim(),anonymous:n,inputs:wp(r[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&e.type==="event"}};function vR(t,e){e.gas=null;let r=t.split("@");return r.length!==1?(r.length>2&&yr.throwArgumentError("invalid human-readable ABI signature","value",t),r[1].match(/^[0-9]+$/)||yr.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=Yi.from(r[1]),r[0]):t}function yR(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach(r=>{switch(r.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+r)}})}function bR(t){let e={constant:!1,payable:!0,stateMutability:"payable"};return t.stateMutability!=null?(e.stateMutability=t.stateMutability,e.constant=e.stateMutability==="view"||e.stateMutability==="pure",t.constant!=null&&!!t.constant!==e.constant&&yr.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable=e.stateMutability==="payable",t.payable!=null&&!!t.payable!==e.payable&&yr.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):t.payable!=null?(e.payable=!!t.payable,t.constant==null&&!e.payable&&t.type!=="constructor"&&yr.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&yr.throwArgumentError("cannot have constant payable function","value",t)):t.constant!=null?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):t.type!=="constructor"&&yr.throwArgumentError("unable to determine stateMutability","value",t),e}let Ap=class Pu extends I1{format(e){if(e||(e=kr.sighash),kr[e]||yr.throwArgumentError("invalid format type","format",e),e===kr.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});e===kr.sighash&&yr.throwError("cannot format a constructor for sighash",$t.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let r="constructor("+this.inputs.map(n=>n.format(e)).join(e===kr.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "),r.trim()}static from(e){return typeof e=="string"?Pu.fromString(e):Pu.fromObject(e)}static fromObject(e){if(Pu.isConstructorFragment(e))return e;e.type!=="constructor"&&yr.throwArgumentError("invalid constructor object","value",e);let r=bR(e);r.constant&&yr.throwArgumentError("constructor cannot be constant","value",e);const n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(za.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?Yi.from(e.gas):null};return new Pu(Gc,n)}static fromString(e){let r={type:"constructor"};e=vR(e,r);let n=e.match(Mp);return(!n||n[1].trim()!=="constructor")&&yr.throwArgumentError("invalid constructor string","value",e),r.inputs=wp(n[2].trim(),!1),yR(n[3].trim(),r),Pu.fromObject(r)}static isConstructorFragment(e){return e&&e._isFragment&&e.type==="constructor"}},xp=class Ou extends Ap{format(e){if(e||(e=kr.sighash),kr[e]||yr.throwArgumentError("invalid format type","format",e),e===kr.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(n=>JSON.parse(n.format(e))),outputs:this.outputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==kr.sighash&&(r+="function "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===kr.full?", ":",")+") ",e!==kr.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "):this.constant&&(r+="view "),this.outputs&&this.outputs.length&&(r+="returns ("+this.outputs.map(n=>n.format(e)).join(", ")+") "),this.gas!=null&&(r+="@"+this.gas.toString()+" ")),r.trim()}static from(e){return typeof e=="string"?Ou.fromString(e):Ou.fromObject(e)}static fromObject(e){if(Ou.isFunctionFragment(e))return e;e.type!=="function"&&yr.throwArgumentError("invalid function object","value",e);let r=bR(e);const n={type:e.type,name:Ep(e.name),constant:r.constant,inputs:e.inputs?e.inputs.map(za.fromObject):[],outputs:e.outputs?e.outputs.map(za.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?Yi.from(e.gas):null};return new Ou(Gc,n)}static fromString(e){let r={type:"function"};e=vR(e,r);let n=e.split(" returns ");n.length>2&&yr.throwArgumentError("invalid function string","value",e);let s=n[0].match(Mp);if(s||yr.throwArgumentError("invalid function signature","value",e),r.name=s[1].trim(),r.name&&Ep(r.name),r.inputs=wp(s[2],!1),yR(s[3].trim(),r),n.length>1){let i=n[1].match(Mp);(i[1].trim()!=""||i[3].trim()!="")&&yr.throwArgumentError("unexpected tokens","value",e),r.outputs=wp(i[2],!1)}else r.outputs=[];return Ou.fromObject(r)}static isFunctionFragment(e){return e&&e._isFragment&&e.type==="function"}};function u8(t){const e=t.format();return(e==="Error(string)"||e==="Panic(uint256)")&&yr.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}let Jw=class Lu extends I1{format(e){if(e||(e=kr.sighash),kr[e]||yr.throwArgumentError("invalid format type","format",e),e===kr.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==kr.sighash&&(r+="error "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===kr.full?", ":",")+") ",r.trim()}static from(e){return typeof e=="string"?Lu.fromString(e):Lu.fromObject(e)}static fromObject(e){if(Lu.isErrorFragment(e))return e;e.type!=="error"&&yr.throwArgumentError("invalid error object","value",e);const r={type:e.type,name:Ep(e.name),inputs:e.inputs?e.inputs.map(za.fromObject):[]};return u8(new Lu(Gc,r))}static fromString(e){let r={type:"error"},n=e.match(Mp);return n||yr.throwArgumentError("invalid error signature","value",e),r.name=n[1].trim(),r.name&&Ep(r.name),r.inputs=wp(n[2],!1),u8(Lu.fromObject(r))}static isErrorFragment(e){return e&&e._isFragment&&e.type==="error"}};function Du(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}const TW=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function Ep(t){return(!t||!t.match(TW))&&yr.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}const Mp=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function kW(t){t=t.trim();let e=[],r="",n=0;for(let s=0;sthis.wordSize&&r6.throwError("value out-of-bounds",$t.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:r.length}),r.length%this.wordSize&&(r=ah([this._padding.slice(r.length%this.wordSize),r])),r}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,r=>{this._data[e]=this._getValue(r)}}},IW=class eA{constructor(e,r,n,s){yi(this,"_data",kn(e)),yi(this,"wordSize",r||32),yi(this,"_coerceFunc",n),yi(this,"allowLoose",s),this._offset=0}get data(){return Rr(this._data)}get consumed(){return this._offset}static coerce(e,r){let n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(r=r.toNumber()),r}coerce(e,r){return this._coerceFunc?this._coerceFunc(e,r):eA.coerce(e,r)}_peekBytes(e,r,n){let s=Math.ceil(r/this.wordSize)*this.wordSize;return this._offset+s>this._data.length&&(this.allowLoose&&n&&this._offset+r<=this._data.length?s=r:r6.throwError("data out-of-bounds",$t.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+s})),this._data.slice(this._offset,this._offset+s)}subReader(e){return new eA(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,r){let n=this._peekBytes(0,e,!!r);return this._offset+=n.length,n.slice(0,e)}readValue(){return Yi.from(this.readBytes(this.wordSize))}},PW=class extends Lf{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,r){try{r=lp(r)}catch(n){this._throwError(n.message,r)}return e.writeValue(r)}decode(e){return lp(K0(e.readValue().toHexString(),20))}},OW=class extends Lf{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,r){return this.coder.encode(e,r)}decode(e){return this.coder.decode(e)}};const Zu=new $t(B1);function wR(t,e,r){let n=null;if(Array.isArray(r))n=r;else if(r&&typeof r=="object"){let u={};n=e.map(h=>{const p=h.localName;return p||Zu.throwError("cannot encode object for signature with missing names",$t.errors.INVALID_ARGUMENT,{argument:"values",coder:h,value:r}),u[p]&&Zu.throwError("cannot encode object for signature with duplicate names",$t.errors.INVALID_ARGUMENT,{argument:"values",coder:h,value:r}),u[p]=!0,r[p]})}else Zu.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&Zu.throwArgumentError("types/value length mismatch","tuple",r);let s=new $w(t.wordSize),i=new $w(t.wordSize),o=[];e.forEach((u,h)=>{let p=n[h];if(u.dynamic){let d=i.length;u.encode(i,p);let v=s.writeUpdatableValue();o.push(w=>{v(w+d)})}else u.encode(s,p)}),o.forEach(u=>{u(s.length)});let f=t.appendWriter(s);return f+=t.appendWriter(i),f}function AR(t,e){let r=[],n=t.subReader(0);e.forEach(i=>{let o=null;if(i.dynamic){let f=t.readValue(),u=n.subReader(f.toNumber());try{o=i.decode(u)}catch(h){if(h.code===$t.errors.BUFFER_OVERRUN)throw h;o=h,o.baseType=i.name,o.name=i.localName,o.type=i.type}}else try{o=i.decode(t)}catch(f){if(f.code===$t.errors.BUFFER_OVERRUN)throw f;o=f,o.baseType=i.name,o.name=i.localName,o.type=i.type}o!=null&&r.push(o)});const s=e.reduce((i,o)=>{const f=o.localName;return f&&(i[f]||(i[f]=0),i[f]++),i},{});e.forEach((i,o)=>{let f=i.localName;if(!f||s[f]!==1||(f==="length"&&(f="_length"),r[f]!=null))return;const u=r[o];u instanceof Error?Object.defineProperty(r,f,{enumerable:!0,get:()=>{throw u}}):r[f]=u});for(let i=0;i{throw o}})}return Object.freeze(r)}let LW=class extends Lf{constructor(e,r,n){const s=e.type+"["+(r>=0?r:"")+"]",i=r===-1||e.dynamic;super("array",s,n,i),this.coder=e,this.length=r}defaultValue(){const e=this.coder.defaultValue(),r=[];for(let n=0;ne._data.length&&Zu.throwError("insufficient data length",$t.errors.BUFFER_OVERRUN,{length:e._data.length,count:r}));let n=[];for(let s=0;s{o.dynamic&&(n=!0),s.push(o.type)});const i="tuple("+s.join(",")+")";super("tuple",i,r,n),this.coders=e}defaultValue(){const e=[];this.coders.forEach(n=>{e.push(n.defaultValue())});const r=this.coders.reduce((n,s)=>{const i=s.localName;return i&&(n[i]||(n[i]=0),n[i]++),n},{});return this.coders.forEach((n,s)=>{let i=n.localName;!i||r[i]!==1||(i==="length"&&(i="_length"),e[i]==null&&(e[i]=e[s]))}),Object.freeze(e)}encode(e,r){return wR(e,this.coders,r)}decode(e){return e.coerce(this.name,AR(e,this.coders))}};const sm=new $t(B1),KW=new RegExp(/^bytes([0-9]*)$/),qW=new RegExp(/^(u?int)([0-9]*)$/);let ER=class{constructor(e){yi(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new PW(e.name);case"bool":return new DW(e.name);case"string":return new zW(e.name);case"bytes":return new FW(e.name);case"array":return new LW(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new im((e.components||[]).map(n=>this._getCoder(n)),e.name);case"":return new HW(e.name)}let r=e.type.match(qW);if(r){let n=parseInt(r[2]||"256");return(n===0||n>256||n%8!==0)&&sm.throwArgumentError("invalid "+r[1]+" bit length","param",e),new jW(n/8,r[1]==="int",e.name)}if(r=e.type.match(KW),r){let n=parseInt(r[1]);return(n===0||n>32)&&sm.throwArgumentError("invalid bytes length","param",e),new UW(n,e.name)}return sm.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,r){return new IW(e,this._getWordSize(),this.coerceFunc,r)}_getWriter(){return new $w(this._getWordSize())}getDefaultValue(e){const r=e.map(s=>this._getCoder(za.from(s)));return new im(r,"_").defaultValue()}encode(e,r){e.length!==r.length&&sm.throwError("types/values length mismatch",$t.errors.INVALID_ARGUMENT,{count:{types:e.length,values:r.length},value:{types:e,values:r}});const n=e.map(o=>this._getCoder(za.from(o))),s=new im(n,"_"),i=this._getWriter();return s.encode(i,r),i.data}decode(e,r,n){const s=e.map(o=>this._getCoder(za.from(o)));return new im(s,"_").decode(this._getReader(kn(r),n))}};const MR=new ER,bn=new $t(B1);let SR=class extends Uv{},_R=class extends Uv{},GW=class extends Uv{},tA=class extends Uv{static isIndexed(e){return!!(e&&e._isIndexed)}};const VW={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function h8(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);return r.error=e,r}let WW=class{constructor(e){let r=[];typeof e=="string"?r=JSON.parse(e):r=e,yi(this,"fragments",r.map(n=>I1.from(n)).filter(n=>n!=null)),yi(this,"_abiCoder",Z1(new.target,"getAbiCoder")()),yi(this,"functions",{}),yi(this,"errors",{}),yi(this,"events",{}),yi(this,"structs",{}),this.fragments.forEach(n=>{let s=null;switch(n.type){case"constructor":if(this.deploy){bn.warn("duplicate definition - constructor");return}yi(this,"deploy",n);return;case"function":s=this.functions;break;case"event":s=this.events;break;case"error":s=this.errors;break;default:return}let i=n.format();if(s[i]){bn.warn("duplicate definition - "+i);return}s[i]=n}),this.deploy||yi(this,"deploy",Ap.from({payable:!1,type:"constructor"})),yi(this,"_isInterface",!0)}format(e){e||(e=kr.full),e===kr.sighash&&bn.throwArgumentError("interface does not support formatting sighash","format",e);const r=this.fragments.map(n=>n.format(e));return e===kr.json?JSON.stringify(r.map(n=>JSON.parse(n))):r}static getAbiCoder(){return MR}static getAddress(e){return lp(e)}static getSighash(e){return z7(Y1(e.format()),0,4)}static getEventTopic(e){return Y1(e.format())}getFunction(e){if(xi(e)){for(const n in this.functions)if(e===this.getSighash(n))return this.functions[n];bn.throwArgumentError("no matching function","sighash",e)}if(e.indexOf("(")===-1){const n=e.trim(),s=Object.keys(this.functions).filter(i=>i.split("(")[0]===n);return s.length===0?bn.throwArgumentError("no matching function","name",n):s.length>1&&bn.throwArgumentError("multiple matching functions","name",n),this.functions[s[0]]}const r=this.functions[xp.fromString(e).format()];return r||bn.throwArgumentError("no matching function","signature",e),r}getEvent(e){if(xi(e)){const n=e.toLowerCase();for(const s in this.events)if(n===this.getEventTopic(s))return this.events[s];bn.throwArgumentError("no matching event","topichash",n)}if(e.indexOf("(")===-1){const n=e.trim(),s=Object.keys(this.events).filter(i=>i.split("(")[0]===n);return s.length===0?bn.throwArgumentError("no matching event","name",n):s.length>1&&bn.throwArgumentError("multiple matching events","name",n),this.events[s[0]]}const r=this.events[Yg.fromString(e).format()];return r||bn.throwArgumentError("no matching event","signature",e),r}getError(e){if(xi(e)){const n=Z1(this.constructor,"getSighash");for(const s in this.errors){const i=this.errors[s];if(e===n(i))return this.errors[s]}bn.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){const n=e.trim(),s=Object.keys(this.errors).filter(i=>i.split("(")[0]===n);return s.length===0?bn.throwArgumentError("no matching error","name",n):s.length>1&&bn.throwArgumentError("multiple matching errors","name",n),this.errors[s[0]]}const r=this.errors[xp.fromString(e).format()];return r||bn.throwArgumentError("no matching error","signature",e),r}getSighash(e){if(typeof e=="string")try{e=this.getFunction(e)}catch(r){try{e=this.getError(e)}catch{throw r}}return Z1(this.constructor,"getSighash")(e)}getEventTopic(e){return typeof e=="string"&&(e=this.getEvent(e)),Z1(this.constructor,"getEventTopic")(e)}_decodeParams(e,r){return this._abiCoder.decode(e,r)}_encodeParams(e,r){return this._abiCoder.encode(e,r)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,r){typeof e=="string"&&(e=this.getError(e));const n=kn(r);return Rr(n.slice(0,4))!==this.getSighash(e)&&bn.throwArgumentError(`data signature does not match error ${e.name}.`,"data",Rr(n)),this._decodeParams(e.inputs,n.slice(4))}encodeErrorResult(e,r){return typeof e=="string"&&(e=this.getError(e)),Rr(ah([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionData(e,r){typeof e=="string"&&(e=this.getFunction(e));const n=kn(r);return Rr(n.slice(0,4))!==this.getSighash(e)&&bn.throwArgumentError(`data signature does not match function ${e.name}.`,"data",Rr(n)),this._decodeParams(e.inputs,n.slice(4))}encodeFunctionData(e,r){return typeof e=="string"&&(e=this.getFunction(e)),Rr(ah([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionResult(e,r){typeof e=="string"&&(e=this.getFunction(e));let n=kn(r),s=null,i="",o=null,f=null,u=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch{}break;case 4:{const h=Rr(n.slice(0,4)),p=VW[h];if(p)o=this._abiCoder.decode(p.inputs,n.slice(4)),f=p.name,u=p.signature,p.reason&&(s=o[0]),f==="Error"?i=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(o[0])}`:f==="Panic"&&(i=`; VM Exception while processing transaction: reverted with panic code ${o[0]}`);else try{const d=this.getError(h);o=this._abiCoder.decode(d.inputs,n.slice(4)),f=d.name,u=d.format()}catch{}break}}return bn.throwError("call revert exception"+i,$t.errors.CALL_EXCEPTION,{method:e.format(),data:Rr(r),errorArgs:o,errorName:f,errorSignature:u,reason:s})}encodeFunctionResult(e,r){return typeof e=="string"&&(e=this.getFunction(e)),Rr(this._abiCoder.encode(e.outputs,r||[]))}encodeFilterTopics(e,r){typeof e=="string"&&(e=this.getEvent(e)),r.length>e.inputs.length&&bn.throwError("too many arguments for "+e.format(),$t.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:r});let n=[];e.anonymous||n.push(this.getEventTopic(e));const s=(i,o)=>i.type==="string"?Y1(o):i.type==="bytes"?fp(Rr(o)):(i.type==="bool"&&typeof o=="boolean"&&(o=o?"0x01":"0x00"),i.type.match(/^u?int/)&&(o=Yi.from(o).toHexString()),i.type==="address"&&this._abiCoder.encode(["address"],[o]),K0(Rr(o),32));for(r.forEach((i,o)=>{let f=e.inputs[o];if(!f.indexed){i!=null&&bn.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+f.name,i);return}i==null?n.push(null):f.baseType==="array"||f.baseType==="tuple"?bn.throwArgumentError("filtering with tuples or arrays not supported","contract."+f.name,i):Array.isArray(i)?n.push(i.map(u=>s(f,u))):n.push(s(f,i))});n.length&&n[n.length-1]===null;)n.pop();return n}encodeEventLog(e,r){typeof e=="string"&&(e=this.getEvent(e));const n=[],s=[],i=[];return e.anonymous||n.push(this.getEventTopic(e)),r.length!==e.inputs.length&&bn.throwArgumentError("event arguments/values mismatch","values",r),e.inputs.forEach((o,f)=>{const u=r[f];if(o.indexed)if(o.type==="string")n.push(Y1(u));else if(o.type==="bytes")n.push(fp(u));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");n.push(this._abiCoder.encode([o.type],[u]))}else s.push(o),i.push(u)}),{data:this._abiCoder.encode(s,i),topics:n}}decodeEventLog(e,r,n){if(typeof e=="string"&&(e=this.getEvent(e)),n!=null&&!e.anonymous){let v=this.getEventTopic(e);(!xi(n[0],32)||n[0].toLowerCase()!==v)&&bn.throwError("fragment/topic mismatch",$t.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:v,value:n[0]}),n=n.slice(1)}let s=[],i=[],o=[];e.inputs.forEach((v,w)=>{v.indexed?v.type==="string"||v.type==="bytes"||v.baseType==="tuple"||v.baseType==="array"?(s.push(za.fromObject({type:"bytes32",name:v.name})),o.push(!0)):(s.push(v),o.push(!1)):(i.push(v),o.push(!1))});let f=n!=null?this._abiCoder.decode(s,ah(n)):null,u=this._abiCoder.decode(i,r,!0),h=[],p=0,d=0;e.inputs.forEach((v,w)=>{if(v.indexed)if(f==null)h[w]=new tA({_isIndexed:!0,hash:null});else if(o[w])h[w]=new tA({_isIndexed:!0,hash:f[d++]});else try{h[w]=f[d++]}catch(A){h[w]=A}else try{h[w]=u[p++]}catch(A){h[w]=A}if(v.name&&h[v.name]==null){const A=h[w];A instanceof Error?Object.defineProperty(h,v.name,{enumerable:!0,get:()=>{throw h8(`property ${JSON.stringify(v.name)}`,A)}}):h[v.name]=A}});for(let v=0;v{throw h8(`index ${v}`,w)}})}return Object.freeze(h)}parseTransaction(e){let r=this.getFunction(e.data.substring(0,10).toLowerCase());return r?new _R({args:this._abiCoder.decode(r.inputs,"0x"+e.data.substring(10)),functionFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r),value:Yi.from(e.value||"0")}):null}parseLog(e){let r=this.getEvent(e.topics[0]);return!r||r.anonymous?null:new SR({eventFragment:r,name:r.name,signature:r.format(),topic:this.getEventTopic(r),args:this.decodeEventLog(r,e.data,e.topics)})}parseError(e){const r=Rr(e);let n=this.getError(r.substring(0,10).toLowerCase());return n?new GW({args:this._abiCoder.decode(n.inputs,"0x"+r.substring(10)),errorFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n)}):null}static isInterface(e){return!!(e&&e._isInterface)}};const ZW=Object.freeze(Object.defineProperty({__proto__:null,AbiCoder:ER,ConstructorFragment:Ap,ErrorFragment:Jw,EventFragment:Yg,FormatTypes:kr,Fragment:I1,FunctionFragment:xp,Indexed:tA,Interface:WW,LogDescription:SR,ParamType:za,TransactionDescription:_R,checkResultErrors:BW,defaultAbiCoder:MR},Symbol.toStringTag,{value:"Module"})),YW=fT(ZW);var am=ue&&ue.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function f(p){try{h(n.next(p))}catch(d){o(d)}}function u(p){try{h(n.throw(p))}catch(d){o(d)}}function h(p){p.done?i(p.value):s(p.value).then(f,u)}h((n=n.apply(t,e||[])).next())})},om=ue&&ue.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,o;return o={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function f(h){return function(p){return u([h,p])}}function u(h){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,s&&(i=h[0]&2?s.return:h[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,h[1])).done)return i;switch(s=0,i&&(h=[h[0]&2,i.value]),h[0]){case 0:case 1:i=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,s=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]0&&i[i.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]0&&i[i.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]0&&i[i.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]0&&i[i.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]0&&i[i.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]-1}function Ut(ie,he){var be=this.__data__,lt=Ir(be,ie);return lt<0?(++this.size,be.push([ie,he])):be[lt][1]=he,this}De.prototype.clear=Be,De.prototype.delete=kt,De.prototype.get=Ge,De.prototype.has=Ie,De.prototype.set=Ut;function Ue(ie){var he=-1,be=ie==null?0:ie.length;for(this.clear();++he1?be[Xt-1]:void 0,Fr=Xt>2?be[2]:void 0;for(zt=ie.length>3&&typeof zt=="function"?(Xt--,zt):void 0,Fr&&Jd(be[0],be[1],Fr)&&(zt=Xt<3?void 0:zt,Xt=1),he=Object(he);++lt-1&&ie%1==0&&ie0){if(++he>=s)return arguments[0]}else he=0;return ie.apply(void 0,arguments)}}function hu(ie){if(ie!=null){try{return Me.call(ie)}catch{}try{return ie+""}catch{}}return""}function Hf(ie,he){return ie===he||ie!==ie&&he!==he}var Ko=jr(function(){return arguments}())?jr:function(ie){return ya(ie)&&ge.call(ie,"callee")&&!xt.call(ie,"callee")},Yl=Array.isArray;function Ql(ie){return ie!=null&&Ln(ie.length)&&!hi(ie)}function ga(ie){return ya(ie)&&Ql(ie)}var du=Ve||wa;function hi(ie){if(!va(ie))return!1;var he=mr(ie);return he==w||he==A||he==h||he==B}function Ln(ie){return typeof ie=="number"&&ie>-1&&ie%1==0&&ie<=o}function va(ie){var he=typeof ie;return ie!=null&&(he=="object"||he=="function")}function ya(ie){return ie!=null&&typeof ie=="object"}function ba(ie){if(!ya(ie)||mr(ie)!=C)return!1;var he=qe(ie);if(he===null)return!0;var be=ge.call(he,"constructor")&&he.constructor;return typeof be=="function"&&be instanceof be&&Me.call(be)==we}var pu=j?oe(j):or;function s0(ie){return Qd(ie,mu(ie))}function mu(ie){return Ql(ie)?Vt(ie,!0):Qr(ie)}var Xl=Xd(function(ie,he,be){Mr(ie,he,be)});function Jl(ie){return function(){return ie}}function gu(ie){return ie}function wa(){return!1}t.exports=Xl})(nY,Qg);const iY=Qg;var rA={},sY={get exports(){return rA},set exports(t){rA=t}};(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function s(u,h,p){this.fn=u,this.context=h,this.once=p||!1}function i(u,h,p,d,v){if(typeof p!="function")throw new TypeError("The listener must be a function");var w=new s(p,d||u,v),A=r?r+h:h;return u._events[A]?u._events[A].fn?u._events[A]=[u._events[A],w]:u._events[A].push(w):(u._events[A]=w,u._eventsCount++),u}function o(u,h){--u._eventsCount===0?u._events=new n:delete u._events[h]}function f(){this._events=new n,this._eventsCount=0}f.prototype.eventNames=function(){var h=[],p,d;if(this._eventsCount===0)return h;for(d in p=this._events)e.call(p,d)&&h.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(p)):h},f.prototype.listeners=function(h){var p=r?r+h:h,d=this._events[p];if(!d)return[];if(d.fn)return[d.fn];for(var v=0,w=d.length,A=new Array(w);v - - - - - - - - - - - - - - - - - - - - - - - - -`,oY=` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -`,fY=` - - - -`,a6=` - - - -`,x0=` - - - - - - - - -`,lY=` - - - -`,cY=` - - - -`,uY=` - - - -`,b8=` - - - - -`,hY=` - - - -`,dY=` - - - -`,pY=` - - - - - - - -`,mY=` - - - - - - - - - -`,gY=` - - - - - - - - -`,vY=` - - - -`,yY=` - - -`,o6=` - - - -`,IR=` - - - -`,bY=` - - - -`;function wY(){if(typeof window<"u"){const t=EB.getParser(window.navigator.userAgent),e=t.getOS(),r=t.getBrowser(),{type:n}=t.getPlatform();return{type:n,os:e,browser:r}}else return{type:null,os:null,browser:null}}const AY=t=>t!=null;function tg(t){switch(t){case"0x1":case"0x3":case"0x4":case"0x5":return!0;default:return!1}}function f6(t){return t.includes("11?`${t.slice(0,4)}...${t.slice(-6)}`:t}async function mse(t){try{return await navigator.clipboard.writeText(t)}catch(e){console.error("Failed to copy: ",e)}}const PR=t=>typeof t=="number"?`0x${t.toString(16)}`:t;function xY(t){return t.map(({id:e,...r})=>({id:PR(e),...r}))}function gse(t){return`0x${(t*1e9).toString(16)}`}const vse={"0x1":"Ethereum","0x3":"Ropsten","0x4":"Rinkeby","0x5":"Goerli","0x2a":"Kovan","0x38":"Binance","0x89":"Polygon","0xfa":"Fantom","0xa":"Optimism","0x45":"Optimism Kovan","0xa86a":"Avalanche","0xa4ec":"Celo","0x64":"Gnosis","0x63564C40":"Harmony One","0xa4b1":"Arbitrum"},w8={main:"0x1",ropsten:"0x3",rinkeby:"0x4",goerli:"0x5",kovan:"0x2a",xdai:"0x64","bsc-main":"0x38","matic-main":"0x89","fantom-main":"0xfa","matic-mumbai":"0x80001"},EY={"0x1":{icon:x0,color:"#627EEA"},"0x3":{icon:x0,color:"#627EEA"},"0x4":{icon:x0,color:"#627EEA"},"0x5":{icon:x0,color:"#627EEA"},"0x2a":{icon:x0,color:"#627EEA"},"0x38":{icon:cY,color:"#F3BA2F"},"0x89":{icon:lY,color:"#8247E5"},"0xfa":{icon:uY,color:"#1969FF"},"0xa":{icon:b8,color:"#FF0420"},"0x45":{icon:b8,color:"#FF0420"},"0xa86a":{icon:hY,color:"#E84142"},"0xa4ec":{icon:dY,color:"#FBCC5C"},"0x64":{icon:pY,color:"#04795B"},"0x63564C40":{icon:mY,color:"#ffffff"},"0xa4b1":{icon:gY,color:"#33394B"}},yse={icon:a6,color:"#33394B"};function bse(t){return t?EY[t.toLowerCase()]:void 0}function wse(t,e){return!!e.find(({id:r,namespace:n})=>r===t.id&&n===t.namespace)}const Ase={pending:{backgroundColor:"var(--onboard-primary-700, var(--primary-700))",borderColor:"#6370E5",eventIcon:fY},success:{backgroundColor:"#052E17",borderColor:"var(--onboard-success-300, var(--success-300))",eventIcon:vY},error:{backgroundColor:"#FDB1B11A",borderColor:"var(--onboard-danger-300, var(--danger-300))",eventIcon:yY},hint:{backgroundColor:"var(--onboard-gray-500, var(--gray-500))",borderColor:"var(--onboard-gray-500, var(--gray-500))",iconColor:"var(--onboard-gray-100, var(--gray-100))",eventIcon:o6}},MY=t=>new Promise(e=>setTimeout(e,t));function OR(t){try{return localStorage.getItem(t)}catch{return null}}function LR(t,e){try{localStorage.setItem(t,e)}catch{return}}function SY(t){try{localStorage.removeItem(t)}catch{return}}let Kn={svelteInstance:null,appMetadata:null,apiKey:null,device:wY(),initialWalletInit:[],gas:null,containerElements:{accountCenter:null,connectModal:null},transactionPreview:null};function A8(t){Kn={...Kn,...t}}const tl={wallets:[],walletModules:[],chains:[],accountCenter:{enabled:!0,position:"topRight",expanded:!1,minimal:Kn.device.type==="mobile"},notify:{enabled:!0,transactionHandler:()=>{},position:"topRight",replacement:{gasPriceProbability:{speedup:80,cancel:95}}},notifications:[],locale:"",connect:{showSidebar:!0,disableClose:!1}},V0={TERMS_AGREEMENT:"onboard.js:agreement",LAST_CONNECTED_WALLET:"onboard.js:last_connected_wallet"},Li=768,DR="add_chains",FR="reset_store",UR="add_wallet",HR="update_wallet",jR="remove_wallet",zR="update_account",KR="update_account_center",qR="update_connect_modal",GR="set_wallet_modules",VR="set_locale",WR="update_notify",l6="add_notification",ZR="remove_notification",YR="update_balance";function _Y(t,e){const{type:r,payload:n}=e;switch(r){case DR:return{...t,chains:[...t.chains,...n]};case UR:{const s=n,i=t.wallets.find(({label:o})=>o===s.label);return{...t,wallets:[i||n,...t.wallets.filter(({label:o})=>o!==s.label)]}}case HR:{const s=n,{id:i,...o}=s,f=t.wallets.map(u=>u.label===i?{...u,...o}:u);return{...t,wallets:f}}case jR:{const s=n;return{...t,wallets:t.wallets.filter(({label:i})=>i!==s.id)}}case zR:{const s=n,{id:i,address:o,...f}=s,u=t.wallets.map(h=>(h.label===i&&(h.accounts=h.accounts.map(p=>p.address===o?{...p,...f}:p)),h));return{...t,wallets:u}}case YR:return{...t,wallets:n};case qR:{const s=n;return{...t,connect:{...t.connect,...s}}}case KR:{const s=n;return{...t,accountCenter:{...t.accountCenter,...s}}}case WR:{const s=n;return{...t,notify:{...t.notify,...s}}}case l6:{const s=n,i=[...t.notifications],o=i.findIndex(({id:f})=>f===s.id);return o!==-1?i[o]=s:i.unshift(s),{...t,notifications:i}}case ZR:{const s=n;return{...t,notifications:t.notifications.filter(i=>i.id!==s)}}case GR:return{...t,walletModules:n};case VR:return tu.set(n),{...t,locale:n};case FR:return tl;default:throw new Error(`Unknown type: ${r} in appStore reducer`)}}const Ny=new s1(tl),Xg=new Bf;Xg.subscribe(Ny);function Ji(t){const e=Ny.getValue();Xg.next(_Y(e,t))}function RY(t){if(!t)return Xg.asObservable();if(!Object.keys(Ny.getValue()).includes(String(t)))throw new Error(`key: ${t} does not exist on this store`);return Xg.asObservable().pipe(vB(t),WA(t),sd(AY))}function NY(){return Ny.getValue()}const rr={select:RY,get:NY};function et(){}const O1=t=>t;function CY(t,e){for(const r in e)t[r]=e[r];return t}function TY(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}function QR(t){return t()}function x8(){return Object.create(null)}function Df(t){t.forEach(QR)}function zl(t){return typeof t=="function"}function $n(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let pm;function Jg(t,e){return pm||(pm=document.createElement("a")),pm.href=e,t===pm.href}function kY(t){return Object.keys(t).length===0}function BY(t,...e){if(t==null)return et;const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function Pi(t,e,r){t.$$.on_destroy.push(BY(e,r))}function c6(t,e,r,n){if(t){const s=XR(t,e,r,n);return t[0](s)}}function XR(t,e,r,n){return t[1]&&n?CY(r.ctx.slice(),t[1](n(e))):r.ctx}function u6(t,e,r,n){if(t[2]&&n){const s=t[2](n(r));if(e.dirty===void 0)return s;if(typeof s=="object"){const i=[],o=Math.max(e.dirty.length,s.length);for(let f=0;f32){const e=[],r=t.ctx.length/32;for(let n=0;nwindow.performance.now():()=>Date.now(),p6=JR?t=>requestAnimationFrame(t):et;const ph=new Set;function $R(t){ph.forEach(e=>{e.c(t)||(ph.delete(e),e.f())}),ph.size!==0&&p6($R)}function Ty(t){let e;return ph.size===0&&p6($R),{promise:new Promise(r=>{ph.add(e={c:t,f:r})}),abort(){ph.delete(e)}}}function Ce(t,e){t.appendChild(e)}function ei(t,e,r){const n=m6(t);if(!n.getElementById(e)){const s=Xe("style");s.id=e,s.textContent=r,eN(n,s)}}function m6(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function IY(t){const e=Xe("style");return eN(m6(t),e),e.sheet}function eN(t,e){return Ce(t.head||t,e),e.sheet}function it(t,e,r){t.insertBefore(e,r||null)}function rt(t){t.parentNode&&t.parentNode.removeChild(t)}function tN(t,e){for(let r=0;rt.removeEventListener(e,r,n)}function OY(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function ve(t,e,r){r==null?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function LY(t){return Array.from(t.childNodes)}function $r(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Ao(t,e,r,n){r===null?t.style.removeProperty(e):t.style.setProperty(e,r,n?"important":"")}function xse(t,e){for(let r=0;r>>0}function UY(t,e){const r={stylesheet:IY(e),rules:{}};return $g.set(t,r),r}function Sp(t,e,r,n,s,i,o,f=0){const u=16.666/n;let h=`{ -`;for(let R=0;R<=1;R+=u){const N=e+(r-e)*i(R);h+=R*100+`%{${o(N,1-N)}} -`}const p=h+`100% {${o(r,1-r)}} -}`,d=`__svelte_${FY(p)}_${f}`,v=m6(t),{stylesheet:w,rules:A}=$g.get(v)||UY(v,t);A[d]||(A[d]=!0,w.insertRule(`@keyframes ${d} ${p}`,w.cssRules.length));const M=t.style.animation||"";return t.style.animation=`${M?`${M}, `:""}${d} ${n}ms linear ${s}ms 1 both`,ev+=1,d}function _p(t,e){const r=(t.style.animation||"").split(", "),n=r.filter(e?i=>i.indexOf(e)<0:i=>i.indexOf("__svelte")===-1),s=r.length-n.length;s&&(t.style.animation=n.join(", "),ev-=s,ev||HY())}function HY(){p6(()=>{ev||($g.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&rt(e)}),$g.clear())})}function Ese(t,e,r,n){if(!e)return et;const s=t.getBoundingClientRect();if(e.left===s.left&&e.right===s.right&&e.top===s.top&&e.bottom===s.bottom)return et;const{delay:i=0,duration:o=300,easing:f=O1,start:u=Cy()+i,end:h=u+o,tick:p=et,css:d}=r(t,{from:e,to:s},n);let v=!0,w=!1,A;function M(){d&&(A=Sp(t,0,1,o,i,f,d)),i||(w=!0)}function R(){d&&_p(t,A),v=!1}return Ty(N=>{if(!w&&N>=u&&(w=!0),w&&N>=h&&(p(1,0),R()),!v)return!1;if(w){const C=N-u,B=0+1*f(C/o);p(B,1-B)}return!0}),M(),p(0,1),R}function Mse(t){const e=getComputedStyle(t);if(e.position!=="absolute"&&e.position!=="fixed"){const{width:r,height:n}=e,s=t.getBoundingClientRect();t.style.position="absolute",t.style.width=r,t.style.height=n,jY(t,s)}}function jY(t,e){const r=t.getBoundingClientRect();if(e.left!==r.left||e.top!==r.top){const n=getComputedStyle(t),s=n.transform==="none"?"":n.transform;t.style.transform=`${s} translate(${e.left-r.left}px, ${e.top-r.top}px)`}}let Rp;function yf(t){Rp=t}function g6(){if(!Rp)throw new Error("Function called outside component initialization");return Rp}function zY(t){g6().$$.on_mount.push(t)}function rN(t){g6().$$.on_destroy.push(t)}function KY(t,e){const r=t.$$.callbacks[e.type];r&&r.slice().forEach(n=>n.call(this,e))}const Fu=[],tv=[],rg=[],nA=[],qY=Promise.resolve();let iA=!1;function GY(){iA||(iA=!0,qY.then(v6))}function Xi(t){rg.push(t)}function VY(t){nA.push(t)}const D2=new Set;let Nu=0;function v6(){if(Nu!==0)return;const t=Rp;do{try{for(;Nu{E0=null})),E0}function Lc(t,e,r){t.dispatchEvent(DY(`${e?"intro":"outro"}${r}`))}const ng=new Set;let Ro;function cn(){Ro={r:0,c:[],p:Ro}}function un(){Ro.r||Df(Ro.c),Ro=Ro.p}function Je(t,e){t&&t.i&&(ng.delete(t),t.i(e))}function st(t,e,r,n){if(t&&t.o){if(ng.has(t))return;ng.add(t),Ro.c.push(()=>{ng.delete(t),n&&(r&&t.d(1),n())}),t.o(e)}else n&&n()}const b6={duration:0};function w6(t,e,r){const n={direction:"in"};let s=e(t,r,n),i=!1,o,f,u=0;function h(){o&&_p(t,o)}function p(){const{delay:v=0,duration:w=300,easing:A=O1,tick:M=et,css:R}=s||b6;R&&(o=Sp(t,0,1,w,v,A,R,u++)),M(0,1);const N=Cy()+v,C=N+w;f&&f.abort(),i=!0,Xi(()=>Lc(t,!0,"start")),f=Ty(B=>{if(i){if(B>=C)return M(1,0),Lc(t,!0,"end"),h(),i=!1;if(B>=N){const O=A((B-N)/w);M(O,1-O)}}return i})}let d=!1;return{start(){d||(d=!0,_p(t),zl(s)?(s=s(n),y6().then(p)):p())},invalidate(){d=!1},end(){i&&(h(),i=!1)}}}function Sse(t,e,r){const n={direction:"out"};let s=e(t,r,n),i=!0,o;const f=Ro;f.r+=1;function u(){const{delay:h=0,duration:p=300,easing:d=O1,tick:v=et,css:w}=s||b6;w&&(o=Sp(t,1,0,p,h,d,w));const A=Cy()+h,M=A+p;Xi(()=>Lc(t,!1,"start")),Ty(R=>{if(i){if(R>=M)return v(0,1),Lc(t,!1,"end"),--f.r||Df(f.c),!1;if(R>=A){const N=d((R-A)/p);v(1-N,N)}}return i})}return zl(s)?y6().then(()=>{s=s(n),u()}):u(),{end(h){h&&s.tick&&s.tick(1,0),i&&(o&&_p(t,o),i=!1)}}}function M8(t,e,r,n){const s={direction:"both"};let i=e(t,r,s),o=n?0:1,f=null,u=null,h=null;function p(){h&&_p(t,h)}function d(w,A){const M=w.b-o;return A*=Math.abs(M),{a:o,b:w.b,d:M,duration:A,start:w.start,end:w.start+A,group:w.group}}function v(w){const{delay:A=0,duration:M=300,easing:R=O1,tick:N=et,css:C}=i||b6,B={start:Cy()+A,b:w};w||(B.group=Ro,Ro.r+=1),f||u?u=B:(C&&(p(),h=Sp(t,o,w,M,A,R,C)),w&&N(0,1),f=d(B,M),Xi(()=>Lc(t,w,"start")),Ty(O=>{if(u&&O>u.start&&(f=d(u,M),u=null,Lc(t,f.b,"start"),C&&(p(),h=Sp(t,o,f.b,f.duration,0,R,i.css))),f){if(O>=f.end)N(o=f.b,1-o),Lc(t,f.b,"end"),u||(f.b?p():--f.group.r||Df(f.group.c)),f=null;else if(O>=f.start){const D=O-f.start;o=f.a+f.d*R(D/f.duration),N(o,1-o)}}return!!(f||u)}))}return{run(w){zl(i)?y6().then(()=>{i=i(s),v(w)}):v(w)},end(){p(),f=u=null}}}function Vc(t,e){const r=e.token={};function n(s,i,o,f){if(e.token!==r)return;e.resolved=f;let u=e.ctx;o!==void 0&&(u=u.slice(),u[o]=f);const h=s&&(e.current=s)(u);let p=!1;e.block&&(e.blocks?e.blocks.forEach((d,v)=>{v!==i&&d&&(cn(),st(d,1,1,()=>{e.blocks[v]===d&&(e.blocks[v]=null)}),un())}):e.block.d(1),h.c(),Je(h,1),h.m(e.mount(),e.anchor),p=!0),e.block=h,e.blocks&&(e.blocks[i]=h),p&&v6()}if(TY(t)){const s=g6();if(t.then(i=>{yf(s),n(e.then,1,e.value,i),yf(null)},i=>{if(yf(s),n(e.catch,2,e.error,i),yf(null),!e.hasCatch)throw i}),e.current!==e.pending)return n(e.pending,0),!0}else{if(e.current!==e.then)return n(e.then,1,e.value,t),!0;e.resolved=t}}function Gd(t,e,r){const n=e.slice(),{resolved:s}=t;t.current===t.then&&(n[t.value]=s),t.current===t.catch&&(n[t.error]=s),t.block.p(n,r)}function _se(t,e){t.d(1),e.delete(t.key)}function ZY(t,e){st(t,1,1,()=>{e.delete(t.key)})}function Rse(t,e){t.f(),ZY(t,e)}function Nse(t,e,r,n,s,i,o,f,u,h,p,d){let v=t.length,w=i.length,A=v;const M={};for(;A--;)M[t[A].key]=A;const R=[],N=new Map,C=new Map;for(A=w;A--;){const q=d(s,i,A),W=r(q);let k=o.get(W);k?n&&k.p(q,e):(k=h(W,q),k.c()),N.set(W,R[A]=k),W in M&&C.set(W,Math.abs(A-M[W]))}const B=new Set,O=new Set;function D(q){Je(q,1),q.m(f,p),o.set(q.key,q),p=q.first,w--}for(;v&&w;){const q=R[w-1],W=t[v-1],k=q.key,I=W.key;q===W?(p=q.first,v--,w--):N.has(I)?!o.has(k)||B.has(k)?D(q):O.has(I)?v--:C.get(k)>C.get(I)?(O.add(k),D(q)):(B.add(I),v--):(u(W,o),v--)}for(;v--;){const q=t[v];N.has(q.key)||u(q,o)}for(;w;)D(R[w-1]);return R}function YY(t,e,r){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=r,r(t.$$.ctx[n]))}function lr(t){t&&t.c()}function ir(t,e,r,n){const{fragment:s,after_update:i}=t.$$;s&&s.m(e,r),n||Xi(()=>{const o=t.$$.on_mount.map(QR).filter(zl);t.$$.on_destroy?t.$$.on_destroy.push(...o):Df(o),t.$$.on_mount=[]}),i.forEach(Xi)}function sr(t,e){const r=t.$$;r.fragment!==null&&(Df(r.on_destroy),r.fragment&&r.fragment.d(e),r.on_destroy=r.fragment=null,r.ctx=[])}function QY(t,e){t.$$.dirty[0]===-1&&(Fu.push(t),GY(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const A=w.length?w[0]:v;return h.ctx&&s(h.ctx[d],h.ctx[d]=A)&&(!h.skip_bound&&h.bound[d]&&h.bound[d](A),p&&QY(t,d)),v}):[],h.update(),p=!0,Df(h.before_update),h.fragment=n?n(h.ctx):!1,e.target){if(e.hydrate){const d=LY(e.target);h.fragment&&h.fragment.l(d),d.forEach(rt)}else h.fragment&&h.fragment.c();e.intro&&Je(t.$$.fragment),ir(t,e.target,e.anchor,e.customElement),v6()}yf(u)}class ri{$destroy(){sr(this,1),this.$destroy=et}$on(e,r){if(!zl(r))return et;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(r),()=>{const s=n.indexOf(r);s!==-1&&n.splice(s,1)}}$set(e){this.$$set&&!kY(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const A6=new Bf,x6=new Bf,Xs=new s1({inProgress:!1,actionRequired:""}),Md=new s1(null),ky=rr.select("wallets").pipe(sw(1));A6.pipe(V9(ky),WA("1")).subscribe(t=>{t.forEach(({label:e})=>{x6.next(e)}),GQ()});const W0=new s1([]);function XY(t){const e=W0.getValue(),r=e.findIndex(({hash:n})=>n===t.hash);if(r!==-1){const n=e.map((s,i)=>i===r?t:s);W0.next(n)}else W0.next([...e,t])}function Cse(t){const e=W0.getValue();W0.next(e.filter(r=>r.hash!==t))}const S8=lB(()=>{const t=new Bf;return rN(()=>{t.next()}),t.asObservable().pipe(VA(1))}),Qu={default:{"--w3o-background-color":"unset","--w3o-foreground-color":"unset","--w3o-text-color":"unset","--w3o-border-color":"unset","--w3o-action-color":"unset","--w3o-border-radius":"unset"},light:{"--w3o-background-color":"#ffffff","--w3o-foreground-color":"#EFF1FC","--w3o-text-color":"#1a1d26","--w3o-border-color":"#d0d4f7","--w3o-action-color":"#6370E5","--w3o-border-radius":"16px"},dark:{"--w3o-background-color":"#1A1D26","--w3o-foreground-color":"#242835","--w3o-text-color":"#EFF1FC","--w3o-border-color":"#33394B","--w3o-action-color":"#929bed","--w3o-border-radius":"16px"}},JY=t=>typeof t=="string"&&t==="system"?eQ():$Y(t),$Y=t=>{if(typeof t=="string"&&t in Qu)return Qu[t];if(typeof t=="object")return t},L0=t=>{Object.keys(t).forEach(e=>{document.documentElement.style.setProperty(e,t[e])})},eQ=()=>{const t=window.matchMedia("(prefers-color-scheme: dark)");t.matches?L0(Qu.dark):L0(Qu.light),nw(t,"change").pipe(rp(A6)).subscribe(e=>{e.matches?L0(Qu.dark):L0(Qu.light)})},_8=de.object().unknown(),tQ=de.object({namespace:DA.required(),id:LA.required()}),rQ=de.any().allow(de.object({name:de.string().required(),avatar:de.string(),contentHash:de.any().allow(de.string(),null),getText:de.function().arity(1).required()}),null),nQ=de.any().allow(de.object({name:de.string().required()}),null),iQ=de.any().allow(de.object({eth:de.number()}).unknown(),null),sQ=de.object({address:de.string().required(),ens:rQ,uns:nQ,balance:iQ}),aQ=de.array().items(bT).unique((t,e)=>t.id===e.id).error(t=>t[0].code==="array.unique"?new Error(`There is a duplicate Chain ID in your Onboard Chains array: ${t}`):new Error(`${t}`)),oQ=de.array().items(sQ),nN=de.object({label:de.string(),icon:de.string(),provider:_8,instance:_8,accounts:oQ,chains:de.array().items(tQ)}).required().error(new Error("wallet must be defined")),fQ=de.array().items(nN),lQ=de.object({name:de.string().required(),url:de.string().uri().required()}),cQ=de.object({version:de.string().required(),termsUrl:de.string().uri(),privacyUrl:de.string().uri()}),uQ=de.object({name:de.string().required(),description:de.string().required(),icon:de.string(),logo:de.string(),gettingStartedGuide:de.string(),email:de.string(),appUrl:de.string(),explore:de.string(),recommendedInjectedWallets:de.array().items(lQ),agreement:cQ});de.object({label:de.string().required(),getInfo:de.function().arity(1).required(),getInterface:de.function().arity(1).required()});const iN=de.array().items(de.function()).required(),hQ=de.string(),E6=de.string().valid("topRight","bottomRight","bottomLeft","topLeft"),R8=[70,80,90,95,99],rv=de.object({transactionHandler:de.function(),enabled:de.boolean(),position:E6,replacement:de.object({gasPriceProbability:de.object({speedup:de.number().valid(...R8),cancel:de.number().valid(...R8)})})}),sN=de.object({desktop:rv,mobile:rv}),N8=de.object({enabled:de.boolean(),position:E6,minimal:de.boolean(),containerElement:de.string()}),dQ=de.object({enabled:de.boolean(),position:E6,expanded:de.boolean(),minimal:de.boolean(),containerElement:de.string()}),aN=de.object({showSidebar:de.boolean(),disableClose:de.boolean(),autoConnectLastWallet:de.boolean()}),pQ=de.object({accountCenter:de.string(),connectModal:de.string()}),mQ=de.object({"--w3o-background-color":de.string(),"--w3o-foreground-color":de.string(),"--w3o-text-color":de.string(),"--w3o-border-color":de.string(),"--w3o-action-color":de.string(),"--w3o-border-radius":de.string()}),gQ=de.string().valid("default","dark","light","system"),oN=de.alternatives().try(mQ,gQ),vQ=de.object({wallets:iN,chains:aQ.required(),appMetadata:uQ,i18n:de.object().unknown(),apiKey:de.string(),accountCenter:de.object({desktop:N8,mobile:N8}),notify:[sN,rv],gas:de.object({get:de.function().required(),stream:de.function().required()}),connect:aN,containerElements:pQ,transactionPreview:de.object({patchProvider:de.function().required(),init:de.function().required(),previewTransaction:de.function()}),theme:oN}),yQ=de.object({autoSelect:de.alternatives().try(de.object({label:de.string().required(),disableModals:de.boolean()}),de.string()).required()}),bQ=de.object({label:de.string().required()}).required(),wQ=de.object({chainId:LA.required(),chainNamespace:DA,wallet:de.string()}),fN=de.object({key:de.string().required(),type:de.string().allow("pending","error","success","hint"),eventCode:de.string(),message:de.string().required(),id:de.string().required(),autoDismiss:de.number(),onClick:de.function(),link:de.string()}),AQ=de.object({sendTransaction:de.function(),estimateGas:de.function(),gasPrice:de.function(),balance:de.alternatives(de.string(),de.number()),txDetails:de.object({value:de.alternatives(de.string(),de.number()),to:de.string(),from:de.string()}),txApproveReminderTimeout:de.number()}),xQ=de.object({key:de.string(),type:de.string().allow("pending","error","success","hint"),eventCode:de.string(),message:de.string(),id:de.string(),autoDismiss:de.number(),onClick:de.function(),link:de.string()}),EQ=de.object({id:de.string().required(),key:de.string().required(),type:de.string().allow("pending","error","success","hint").required(),eventCode:de.string().required(),message:de.string().required(),autoDismiss:de.number().required(),network:de.string().required(),startTime:de.number(),onClick:de.function(),link:de.string()}),MQ=de.any().allow(fN,de.boolean().allow(!1));function M6(t){return qn(nN,t)}function SQ(t){return qn(vQ,t)}function _Q(t){return qn(yQ,t)}function RQ(t){return qn(bQ,t)}function lN(t,e){return qn(de.string().required().label(e||"value"),t)}function NQ(t){return qn(wQ,t)}function CQ(t){return qn(dQ,t)}function TQ(t){return qn(aN,t)}function kQ(t){return qn(iN,t)}function BQ(t){return qn(hQ,t)}function cN(t){return qn(rv,t)}function IQ(t){return qn(sN,t)}function PQ(t){return qn(MQ,t)}function OQ(t){return qn(EQ,t)}function LQ(t){return qn(AQ,t)}function DQ(t){return qn(fN,t)}function C8(t){return qn(xQ,t)}function FQ(t){return qn(fQ,t)}function UQ(t){return qn(oN,t)}function HQ(t){const e={type:DR,payload:t.map(({namespace:r="evm",id:n,rpcUrl:s,...i})=>({...i,namespace:r,id:n.toLowerCase(),rpcUrl:s.trim()}))};Ji(e)}function sA(t){const e=M6(t);if(e)throw console.error(e),e;Ji({type:UR,payload:t})}function ig(t,e){const r=M6(e);if(r)throw console.error(r),r;const n={type:HR,payload:{id:t,...e}};Ji(n)}function jQ(t){const e=lN(t,"wallet id");if(e)throw e;Ji({type:jR,payload:{id:t}})}function zQ(t,e){const r=M6(t)||e&&lN(e,"address");if(r)throw r;if(e){const n=t.accounts.find(s=>s.address===e);n&&(t.accounts=[n,...t.accounts.filter(({address:s})=>s!==n.address)])}sA(t)}function sg(t,e,r){const n={type:zR,payload:{id:t,address:e,...r}};Ji(n)}function uN(t){const e=CQ(t);if(e)throw e;Ji({type:KR,payload:t})}function KQ(t){const e=TQ(t);if(e)throw e;Ji({type:qR,payload:t})}function ag(t){const e=cN(t);if(e)throw e;Ji({type:WR,payload:t})}function Uu(t){const e=OQ(t);if(e)throw e;Ji({type:l6,payload:t})}function F2(t){const e=DQ(t);if(e)throw e;Ji({type:l6,payload:t})}function qQ(t){const e=C8(t);if(e)throw e;const r=`customNotification-${w7()}`,n={...t,id:r,key:r};F2(n);const s=()=>hN(n.id),i=o=>{const f=C8(t);if(f)throw f;const u={...o,id:n.id,key:n.key};return F2(u),{dismiss:s,update:i}};return F2(n),{dismiss:s,update:i}}function hN(t){if(typeof t!="string")throw new Error("Notification id must be of type string");Ji({type:ZR,payload:t})}function GQ(){Ji({type:FR})}function dN(t){const e=kQ(t);if(e)throw e;const r=ZQ(t),n=YQ(r);Ji({type:GR,payload:n})}function VQ(t){const e=BQ(t);if(e)throw e;Ji({type:VR,payload:t})}function WQ(t){const e=FQ(t);if(e)throw e;Ji({type:YR,payload:t})}function ZQ(t){const{device:e}=Kn;return t.reduce((r,n)=>{const s=n({device:e});return s&&r.push(...Array.isArray(s)?s:[s]),r},[])}function YQ(t){return t.filter((e,r)=>e&&t.findIndex(n=>n&&n.label===e.label)===r)}function pN(t){const e=UQ(t);if(e)throw e;const r=JY(t);r&&L0(r)}async function QQ(t){if(t){const s=_Q(t);if(s)throw s}const{chains:e}=rr.get();if(!e.length)throw new Error("At least one chain must be set before attempting to connect a wallet");const{autoSelect:r}=t||{autoSelect:{label:"",disableModals:!1}};r&&(typeof r=="string"||r.label)&&await MY(50),rr.get().walletModules.length||dN(Kn.initialWalletInit),Xs.next({autoSelect:typeof r=="string"?{label:r,disableModals:!1}:r,inProgress:!0});const n=Xs.pipe(sd(({inProgress:s,actionRequired:i})=>s===!1&&!i),V9(ky),WA(1));return kv(n)}var XQ={selectingWallet:{header:"Available Wallets",sidebar:{heading:"",subheading:"Connect your wallet",paragraph:"Connecting your wallet is like “logging in” to Web3. Select your wallet from the options to get started."},recommendedWalletsPart1:"{app} only supports",recommendedWalletsPart2:"on this platform. Please use or install one of the supported wallets to continue",installWallet:"You do not have any wallets installed that {app} supports, please use a supported wallet",agreement:{agree:"I agree to the",terms:"Terms & Conditions",and:"and",privacy:"Privacy Policy"}},connectingWallet:{header:"{connectionRejected, select, false {Connecting to {wallet}...} other {Connection Rejected}}",sidebar:{subheading:"Approve Connection",paragraph:"Please approve the connection in your wallet and authorize access to continue."},mainText:"Connecting...",paragraph:"Make sure to select all accounts that you want to grant access to.",previousConnection:"{wallet} already has a pending connection request, please open the {wallet} app to login and connect.",rejectedText:"Connection Rejected!",rejectedCTA:"Click here to try again",primaryButton:"Back to wallets"},connectedWallet:{header:"Connection Successful",sidebar:{subheading:"Connection Successful!",paragraph:"Your wallet is now connected to {app}"},mainText:"Connected"}},JQ={actionRequired:{heading:"Action required in {wallet}",paragraph:"Please switch the active account in your wallet.",linkText:"Learn more.",buttonText:"Okay"},switchChain:{heading:"Switch Chain",paragraph1:"{app} requires that you switch your wallet to the {nextNetworkName} network to continue.",paragraph2:"*Some wallets may not support changing networks. If you can not change networks in your wallet you may consider switching to a different wallet."},confirmDisconnectAll:{heading:"Disconnect all Wallets",description:"Are you sure that you would like to disconnect all your wallets?",confirm:"Confirm",cancel:"Cancel"}},$Q={connectAnotherWallet:"Connect another Wallet",disconnectAllWallets:"Disconnect all Wallets",currentNetwork:"Current Network",appInfo:"App Info",learnMore:"Learn More",gettingStartedGuide:"Getting Started Guide",smartContracts:"Smart Contract(s)",explore:"Explore",backToApp:"Back to dapp",poweredBy:"powered by",addAccount:"Add Account",setPrimaryAccount:"Set Primary Account",disconnectWallet:"Disconnect Wallet",copyAddress:"Copy Wallet address"},eX={transaction:{txRequest:"Your transaction is waiting for you to confirm",nsfFail:"You have insufficient funds for this transaction",txUnderpriced:"The gas price for your transaction is too low, try a higher gas price",txRepeat:"This could be a repeat transaction",txAwaitingApproval:"You have a previous transaction waiting for you to confirm",txConfirmReminder:"Please confirm your transaction to continue",txSendFail:"You rejected the transaction",txSent:"Your transaction has been sent to the network",txStallPending:"Your transaction has stalled before it was sent, please try again",txStuck:"Your transaction is stuck due to a nonce gap",txPool:"Your transaction has started",txStallConfirmed:"Your transaction has stalled and hasn't been confirmed",txSpeedUp:"Your transaction has been sped up",txCancel:"Your transaction is being canceled",txFailed:"Your transaction has failed",txConfirmed:"Your transaction has succeeded",txError:"Oops something went wrong, please try again",txReplaceError:"There was an error replacing your transaction, please try again"},watched:{txPool:"Your account is {verb} {formattedValue} {asset} {preposition} {counterpartyShortened}",txSpeedUp:"Transaction for {formattedValue} {asset} {preposition} {counterpartyShortened} has been sped up",txCancel:"Transaction for {formattedValue} {asset} {preposition} {counterpartyShortened} has been canceled",txConfirmed:"Your account successfully {verb} {formattedValue} {asset} {preposition} {counterpartyShortened}",txFailed:"Your account failed to {verb} {formattedValue} {asset} {preposition} {counterpartyShortened}",txStuck:"Your transaction is stuck due to a nonce gap"},time:{minutes:"min",seconds:"sec"}},vr={connect:XQ,modals:JQ,accountCenter:$Q,notify:eX};const U2={};function tX(t){return t?(U2[t.rpcUrl]||(U2[t.rpcUrl]=new OF(t.providerConnectionInfo&&t.providerConnectionInfo.url?t.providerConnectionInfo:t.rpcUrl)),U2[t.rpcUrl]):null}function rX(t){const e={method:"eth_requestAccounts"};return t.request(e)}function nX(t){const e={method:"eth_selectAccounts"};return t.request(e)}function iX(t){return t.request({method:"eth_chainId"})}function mN(t){const{provider:e,disconnected$:r}=t;return GA(i=>{e.on("accountsChanged",i)},i=>{e.removeListener("accountsChanged",i)}).pipe(rp(r))}function sX(t){const{provider:e,disconnected$:r}=t;return GA(i=>{e.on("chainChanged",i)},i=>{e.removeListener("chainChanged",i)}).pipe(rp(r))}function aX(t,e){const r=x6.pipe(sd(i=>i===e),VA(1)),n=mN({provider:t,disconnected$:r}).pipe(iw());n.subscribe(async([i])=>{try{await lX(e)}catch(p){console.warn("Web3Onboard: Error whilst trying to sync connected accounts:",p)}if(!i){bN({label:e});return}const{wallets:o}=rr.get(),{accounts:f}=o.find(p=>p.label===e),[[u],h]=uP(f,p=>p.address===i);if(ig(e,{accounts:[u||{address:i,ens:null,uns:null,balance:null},...h]}),rr.get().notify.enabled&&!u){const p=await iv();if(p){const d=rr.get().wallets.find(v=>v.label===e);try{p.subscribe({id:i,chainId:d.chains[0].id,type:"account"})}catch{}}}}),n.pipe(e4(async([i])=>{if(!i)return;const{wallets:o,chains:f}=rr.get(),{chains:u,accounts:h}=o.find(R=>R.label===e),[p]=u,d=f.find(({namespace:R,id:N})=>R==="evm"&&N===p.id),v=nv(i,d),w=h.find(R=>R.address===i),A=w&&w.ens?Promise.resolve(w.ens):tg(p.id)?aA(i,d):Promise.resolve(null),M=w&&w.uns?Promise.resolve(w.uns):oA(i,d);return Promise.all([Promise.resolve(i),v,A,M])})).subscribe(i=>{if(!i)return;const[o,f,u,h]=i;sg(e,o,{balance:f,ens:u,uns:h})});const s=sX({provider:t,disconnected$:r}).pipe(iw());s.subscribe(async i=>{const{wallets:o}=rr.get(),{chains:f,accounts:u}=o.find(d=>d.label===e),[h]=f;if(i===h.id)return;if(rr.get().notify.enabled){const d=await iv();if(d){const v=rr.get().wallets.find(w=>w.label===e);v.accounts.forEach(({address:w})=>{d.unsubscribe({id:w,chainId:v.chains[0].id,timeout:6e4})}),v.accounts.forEach(({address:w})=>{try{d.subscribe({id:w,chainId:i,type:"account"})}catch{}})}}const p=u.map(({address:d})=>({address:d,ens:null,uns:null,balance:null}));ig(e,{chains:[{namespace:"evm",id:i}],accounts:p})}),s.pipe(e4(async i=>{const{wallets:o,chains:f}=rr.get(),{accounts:u}=o.find(p=>p.label===e),h=f.find(({namespace:p,id:d})=>p==="evm"&&d===i);return Promise.all(u.map(async({address:p})=>{const d=nv(p,h),v=tg(i)?aA(p,h):Promise.resolve(null),w=tg(i)?oA(p,h):Promise.resolve(null),[A,M,R]=await Promise.all([d,v,w]);return{address:p,balance:A,ens:M,uns:R}}))})).subscribe(i=>{i&&ig(e,{accounts:i})}),r.subscribe(()=>{t.disconnect&&t.disconnect()})}async function aA(t,e){if(!e)return null;const r=tX(e);try{const n=await r.lookupAddress(t);let s=null;if(n){const i=await r.getResolver(n);if(i){const[o,f]=await Promise.all([i.getContentHash(),i.getAvatar()]),u=i.getText.bind(i);s={name:n,avatar:f,contentHash:o,getText:u}}}return s}catch(n){return console.error(n),null}}async function oA(t,e){if(!XF(t)||!e)return null;const r=new BM.Resolution;try{const n=await r.reverse(t);let s=null;return n&&(s={name:n}),s}catch(n){return console.error(n),null}}async function nv(t,e){if(!e)return null;const{wallets:r}=rr.get();try{const i=await r.find(o=>!!o.provider).provider.request({method:"eth_getBalance",params:[t,"latest"]});return i?{[e.token||"eth"]:gT(i)}:null}catch(n){return console.error(n),null}}function gN(t,e){return t.request({method:"wallet_switchEthereumChain",params:[{chainId:e}]})}function oX(t,e){return t.request({method:"wallet_addEthereumChain",params:[{chainId:e.id,chainName:e.label,nativeCurrency:{name:e.label,symbol:e.token,decimals:18},rpcUrls:[e.publicRpcUrl||e.rpcUrl],blockExplorerUrls:e.blockExplorerUrl?[e.blockExplorerUrl]:void 0}]})}async function fX(t){try{const e=await t.request({method:"wallet_getPermissions"});return Array.isArray(e)?e:[]}catch{return[]}}async function lX(t){const e=rr.get().wallets.find(s=>s.label===t),n=(await fX(e.provider)).find(({parentCapability:s})=>s==="eth_accounts");if(n){const{value:s}=n.caveats.find(({type:i})=>i==="restrictReturnedAccounts")||{value:null};if(s){const i=e.accounts.filter(({address:o})=>s.includes(o));ig(e.label,{...e,accounts:i})}}}async function vN(t){const{wallets:e,chains:r}=rr.get(),n=await Promise.all(e.map(async s=>{const i=r.find(({id:f})=>f===s.chains[0].id),o=await Promise.all(s.accounts.map(async f=>{if(!t||t.some(u=>u.toLowerCase()===f.address.toLowerCase())){const u=await nv(f.address,i);return{...f,balance:u}}return f}));return{...s,accounts:o}}));WQ(n)}function cX(t){const e=rr.get().notify.transactionHandler(t),r=PQ(e);if(r)throw r;t.eventCode==="txConfirmed"&&vN([t.watchedAddress,t.counterparty]);const n=uX(t,e);Uu(n),XY(t)}function uX(t,e){const{id:r,hash:n,startTime:s,eventCode:i,direction:o,counterparty:f,value:u,asset:h,network:p}=t,d=yN(i),v=`${r||n}-${typeof e=="object"&&e.eventCode||i}`,w=f&&f.substring(0,4)+"..."+f.substring(f.length-4),A=new Hc(u||0).div(new Hc("1000000000000000000")).toString(10),M=f&&u?{messageId:`notify.watched['${i}']`,values:{verb:i==="txConfirmed"?o==="incoming"?"received":"sent":o==="incoming"?"receiving":"sending",formattedValue:A,preposition:o==="incoming"?"from":"to",counterpartyShortened:w,asset:h}}:{messageId:`notify.transaction['${i}']`,values:{formattedValue:A,asset:h}},R=HB(Pf),O=vr.notify[f?"watched":"transaction"][i],D=R(M.messageId,{values:M.values,default:O});let q={id:r||n,type:d,key:v,network:p,startTime:s||Date.now(),eventCode:i,message:D,autoDismiss:hX(typeof e=="object"&&e.type||d)};return typeof e=="object"&&(q={...q,...e}),q}function yN(t){switch(t){case"txSent":case"txPool":return"pending";case"txSpeedUp":case"txCancel":case"txRequest":case"txRepeat":case"txAwaitingApproval":case"txConfirmReminder":case"txStuck":return"hint";case"txError":case"txSendFail":case"txFailed":case"txDropped":case"nsfFail":case"txUnderpriced":return"error";case"txConfirmed":return"success";default:return"hint"}}function hX(t){switch(t){case"success":case"hint":return 4e3;default:return 0}}let mm,gm;async function iv(){const{apiKey:t}=Kn;if(!t)return null;if(!mm){const{default:e}=await vt(()=>import("./index-fff385ce.js"),["assets/index-fff385ce.js","assets/tslib.es6-c2094241.js"]);mm=e.multichain({apiKey:Kn.apiKey}),mm.transactions$.subscribe(cX)}return mm}async function dX(){const{apiKey:t}=Kn;if(!t)return null;if(!gm){const{default:e}=await vt(()=>import("./index-fff385ce.js"),["assets/index-fff385ce.js","assets/tslib.es6-c2094241.js"]);return gm=new e({dappId:Kn.apiKey,networkId:1}),gm}return gm}async function bN(t){const e=RQ(t);if(e)throw e;const{label:r}=t;if(rr.get().notify.enabled){const n=await iv();if(n){const s=rr.get().wallets.find(i=>i.label===r);s.accounts.forEach(({address:i})=>{n.unsubscribe({id:i,chainId:s.chains[0].id,timeout:6e4})})}}return x6.next(r),jQ(r),rr.get().wallets}async function pX(t){const e=NQ(t);if(e)throw e;const{wallets:r,chains:n}=rr.get(),{chainId:s,chainNamespace:i="evm",wallet:o}=t,f=PR(s),u=n.find(({namespace:d,id:v})=>d===i&&v===f);if(!u)throw new Error(`Chain with chainId: ${s} and chainNamespace: ${i} has not been set and must be added when Onboard is initialized.`);const h=o?r.find(({label:d})=>d===o):r[0];if(!h)throw new Error(o?`Wallet with label ${o} is not connected`:"A wallet must be connected before a chain can be set");const[p]=h.chains;if(p.namespace===i&&p.id===f)return!0;try{return await gN(h.provider,f),!0}catch(d){const{code:v}=d,w=Md.pipe(sd(A=>A===null),a1(()=>!1));if(v===Mo.CHAIN_NOT_ADDED||v===Mo.UNRECOGNIZED_CHAIN_ID)return mX(h,u,w,f);if(v===Mo.UNSUPPORTED_METHOD)return Md.next({chain:u}),kv(w)}return!1}const mX=async(t,e,r,n)=>{try{return await oX(t.provider,e),await gN(t.provider,n),!0}catch(s){const{code:i}=s;return i===Mo.ACCOUNT_ACCESS_REJECTED?!1:(Md.next({chain:e}),kv(r))}};function gX(t){if(t){const{en:e}=t,r=iY(vr,e||{});Bm("en",r),Object.keys(t).filter(s=>s!=="en").forEach(s=>{const i=t[s];i&&Bm(s,i)})}else Bm("en",vr);QI({fallbackLocale:"en",initialLocale:XI()})}var vX=` - - - -`;function yX(t){ei(t,"svelte-1ubf722",".close-button.svelte-1ubf722.svelte-1ubf722{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;height:2rem;width:2rem;border-radius:2rem;cursor:pointer;color:var(--onboard-close-button-color, inherit)}.close-button.svelte-1ubf722.svelte-1ubf722:hover::before{opacity:0.2}.close-button.svelte-1ubf722:hover .svg-box.svelte-1ubf722{opacity:1}.close-button.svelte-1ubf722.svelte-1ubf722::before{content:'';position:absolute;height:inherit;width:inherit;opacity:0.1;background:currentColor;transition:300ms ease-in-out opacity}.svg-box.svelte-1ubf722.svelte-1ubf722{position:absolute;height:1.5rem;width:1.5rem;opacity:0.6;transition:300ms ease-in-out opacity}")}function bX(t){let e,r;return{c(){e=Xe("div"),r=Xe("div"),ve(r,"class","svg-box svelte-1ubf722"),ve(e,"class","close-button svelte-1ubf722")},m(n,s){it(n,e,s),Ce(e,r),r.innerHTML=vX},p:et,i:et,o:et,d(n){n&&rt(e)}}}class wN extends ri{constructor(e){super(),ti(this,e,null,bX,$n,{},yX)}}function wX(t){const e=t-1;return e*e*e+1}function Tse(t){return Math.pow(t-1,3)*(1-t)+1}function Np(t,{delay:e=0,duration:r=400,easing:n=O1}={}){const s=+getComputedStyle(t).opacity;return{delay:e,duration:r,easing:n,css:i=>`opacity: ${i*s}`}}function kse(t,{delay:e=0,duration:r=400,easing:n=wX,x:s=0,y:i=0,opacity:o=0}={}){const f=getComputedStyle(t),u=+f.opacity,h=f.transform==="none"?"":f.transform,p=u*(1-o);return{delay:e,duration:r,easing:n,css:(d,v)=>` - transform: ${h} translate(${(1-d)*s}px, ${(1-d)*i}px); - opacity: ${u-p*v}`}}function AX(t){ei(t,"svelte-12kbyxa",`section.svelte-12kbyxa{top:0;left:0;pointer-events:none;z-index:var(--onboard-modal-z-index, var(--modal-z-index))}.background.svelte-12kbyxa{background:var(--onboard-modal-backdrop, var(--modal-backdrop));pointer-events:all}.full-screen-background.svelte-12kbyxa{width:100vw;height:100vh}.max-height.svelte-12kbyxa{max-height:calc(100vh - 2rem)}.modal-position.svelte-12kbyxa{top:var(--onboard-modal-top, var(--modal-top));bottom:var(--onboard-modal-bottom, var(--modal-bottom));left:var(--onboard-modal-left, var(--modal-left));right:var(--onboard-modal-right, var(--modal-right))}.modal-overflow.svelte-12kbyxa{overflow:hidden}.modal-styling.svelte-12kbyxa{--border-radius:var(--onboard-modal-border-radius, - var(--w3o-border-radius, 1rem) - );border-radius:var(--border-radius) var(--border-radius) 0 0;box-shadow:var(--onboard-modal-box-shadow, var(--box-shadow-0));max-width:100vw}.modal.svelte-12kbyxa{overflow-y:auto;background:var(--onboard-modal-background, white);color:var(--onboard-modal-color, initial)}.width-100.svelte-12kbyxa{width:100%}.modal-container-mobile.svelte-12kbyxa{bottom:0}@media all and (min-width: 768px){.modal-styling.svelte-12kbyxa{border-radius:var(--border-radius)}.modal-container-mobile.svelte-12kbyxa{bottom:unset;margin:1rem}.width-100.svelte-12kbyxa{width:unset}}`)}function xX(t){let e,r,n,s,i,o,f,u,h,p;const d=t[3].default,v=c6(d,t,t[2],null);return{c(){e=Xe("section"),r=Xe("div"),n=Xe("div"),s=Xe("div"),i=Xe("div"),o=Xe("div"),v&&v.c(),ve(o,"class","modal relative svelte-12kbyxa"),ve(i,"class","modal-overflow modal-styling relative flex justify-center svelte-12kbyxa"),ve(i,"style",`${t[1]?"max-width: 100%;":""}`),ve(s,"class","flex relative max-height svelte-12kbyxa"),bt(s,"width-100",t[1]),ve(n,"class","modal-container-mobile modal-position flex svelte-12kbyxa"),bt(n,"absolute",!t[1]),bt(n,"width-100",t[1]),ve(r,"class","background flex items-center justify-center relative svelte-12kbyxa"),bt(r,"full-screen-background",!t[1]),ve(e,"class","svelte-12kbyxa"),bt(e,"fixed",!t[1])},m(w,A){it(w,e,A),Ce(e,r),Ce(r,n),Ce(n,s),Ce(s,i),Ce(i,o),v&&v.m(o,null),u=!0,h||(p=[gs(s,"click",OY(t[4])),gs(r,"click",function(){zl(t[0])&&t[0].apply(this,arguments)})],h=!0)},p(w,[A]){t=w,v&&v.p&&(!u||A&4)&&h6(v,d,t,t[2],u?u6(d,t[2],A,null):d6(t[2]),null)},i(w){u||(Je(v,w),Xi(()=>{f||(f=M8(e,Np,{},!0)),f.run(1)}),u=!0)},o(w){st(v,w),f||(f=M8(e,Np,{},!1)),f.run(0),u=!1},d(w){w&&rt(e),v&&v.d(w),w&&f&&f.end(),h=!1,Df(p)}}}function EX(t,e,r){let{$$slots:n={},$$scope:s}=e;const i=!!Kn.containerElements.connectModal,o=document.documentElement;zY(()=>{i||(o.style.position="sticky",o.style.overflow="hidden")}),rN(()=>{i||(o.style.position="",o.style.removeProperty("overflow"))});let{close:f}=e;function u(h){KY.call(this,t,h)}return t.$$set=h=>{"close"in h&&r(0,f=h.close),"$$scope"in h&&r(2,s=h.$$scope)},[f,i,s,n,u]}class S6 extends ri{constructor(e){super(),ti(this,e,EX,xX,$n,{close:0},AX)}}function MX(t){ei(t,"svelte-tz7ru1",".container.svelte-tz7ru1{padding:var(--onboard-spacing-4, var(--spacing-4));font-size:var(--onboard-font-size-6, var(--font-size-6));line-height:24px}input.svelte-tz7ru1{height:1rem;width:1rem;margin-right:0.5rem}")}function SX(t){let e,r,n,s,i,o=t[1]("connect.selectingWallet.agreement.agree")+"",f,u,h=" ",p,d,v,w,A,M=t[2]&&_X(t),R=t[3]&&RX(t);return{c(){e=Xe("div"),r=Xe("label"),n=Xe("input"),s=gt(),i=Xe("span"),f=wr(o),u=gt(),p=wr(h),d=gt(),M&&M.c(),v=gt(),R&&R.c(),ve(n,"class"," svelte-tz7ru1"),ve(n,"type","checkbox"),ve(r,"class","flex"),ve(e,"class","container flex items-center svelte-tz7ru1")},m(N,C){it(N,e,C),Ce(e,r),Ce(r,n),n.checked=t[0],Ce(r,s),Ce(r,i),Ce(i,f),Ce(i,u),Ce(i,p),Ce(i,d),M&&M.m(i,null),Ce(i,v),R&&R.m(i,null),w||(A=gs(n,"change",t[5]),w=!0)},p(N,C){C&1&&(n.checked=N[0]),C&2&&o!==(o=N[1]("connect.selectingWallet.agreement.agree")+"")&&$r(f,o),N[2]&&M.p(N,C),N[3]&&R.p(N,C)},d(N){N&&rt(e),M&&M.d(),R&&R.d(),w=!1,A()}}}function _X(t){let e,r=t[1]("connect.selectingWallet.agreement.terms")+"",n,s=t[3]?" "+t[1]("connect.selectingWallet.agreement.and")+" ":".",i;return{c(){e=Xe("a"),n=wr(r),i=wr(s),ve(e,"href",t[2]),ve(e,"target","_blank")},m(o,f){it(o,e,f),Ce(e,n),it(o,i,f)},p(o,f){f&2&&r!==(r=o[1]("connect.selectingWallet.agreement.terms")+"")&&$r(n,r),f&2&&s!==(s=o[3]?" "+o[1]("connect.selectingWallet.agreement.and")+" ":".")&&$r(i,s)},d(o){o&&rt(e),o&&rt(i)}}}function RX(t){let e,r=t[1]("connect.selectingWallet.agreement.privacy")+"",n,s;return{c(){e=Xe("a"),n=wr(r),s=wr("."),ve(e,"href",t[3]),ve(e,"target","_blank")},m(i,o){it(i,e,o),Ce(e,n),it(i,s,o)},p(i,o){o&2&&r!==(r=i[1]("connect.selectingWallet.agreement.privacy")+"")&&$r(n,r)},d(i){i&&rt(e),i&&rt(s)}}}function NX(t){let e,r=t[4]&&SX(t);return{c(){r&&r.c(),e=rn()},m(n,s){r&&r.m(n,s),it(n,e,s)},p(n,[s]){n[4]&&r.p(n,s)},i:et,o:et,d(n){r&&r.d(n),n&&rt(e)}}}function CX(t,e,r){let n;Pi(t,Pf,M=>r(1,n=M));let{agreed:s}=e;const{terms:i,privacy:o,version:f}=JSON.parse(OR(V0.TERMS_AGREEMENT)||"{}"),u={termsUrl:"",privacyUrl:"",version:""},{appMetadata:h}=Kn,{termsUrl:p,privacyUrl:d,version:v}=h&&h.agreement||u,w=!!(p&&!i||d&&!o||v&&v!==f);s=!w;function A(){s=this.checked,r(0,s)}return t.$$set=M=>{"agreed"in M&&r(0,s=M.agreed)},t.$$.update=()=>{t.$$.dirty&1&&(s?LR(V0.TERMS_AGREEMENT,JSON.stringify({version:v,terms:!!p,privacy:!!d})):s===!1&&SY(V0.TERMS_AGREEMENT))},[s,n,p,d,w,A]}class TX extends ri{constructor(e){super(),ti(this,e,CX,NX,$n,{agreed:0},MX)}}function kX(t){ei(t,"svelte-2btye1",".icon.svelte-2btye1{color:var(--onboard-white, var(--white));border-radius:50px;bottom:-0.25rem;right:-0.25rem}.yellow.svelte-2btye1{background:var(--onboard-warning-500, var(--warning-500))}")}function BX(t){let e,r,n;return{c(){e=Xe("div"),ve(e,"class",r=E8(`${t[2]} icon flex absolute`)+" svelte-2btye1"),ve(e,"style",n=`width: ${t[0]}px; height: ${t[0]}px; padding: ${t[0]/6}px;`),bt(e,"yellow",t[1]==="yellow")},m(s,i){it(s,e,i),e.innerHTML=bY},p(s,[i]){i&4&&r!==(r=E8(`${s[2]} icon flex absolute`)+" svelte-2btye1")&&ve(e,"class",r),i&1&&n!==(n=`width: ${s[0]}px; height: ${s[0]}px; padding: ${s[0]/6}px;`)&&ve(e,"style",n),i&6&&bt(e,"yellow",s[1]==="yellow")},i:et,o:et,d(s){s&&rt(e)}}}function IX(t,e,r){let{size:n}=e,{color:s="yellow"}=e,{class:i="test"}=e;return t.$$set=o=>{"size"in o&&r(0,n=o.size),"color"in o&&r(1,s=o.color),"class"in o&&r(2,i=o.class)},[n,s,i]}class PX extends ri{constructor(e){super(),ti(this,e,IX,BX,$n,{size:0,color:1,class:2},kX)}}function OX(t){ei(t,"svelte-1bikw7k",".icon.svelte-1bikw7k{color:var(--onboard-white, var(--white));border-radius:50px}.green.svelte-1bikw7k{background:var(--onboard-success-600, var(--success-600))}.blue.svelte-1bikw7k{background:var(--onboard-primary-1, var(--primary-1))}")}function LX(t){let e,r;return{c(){e=Xe("div"),ve(e,"class","icon flex svelte-1bikw7k"),ve(e,"style",r=`width: ${t[0]}px; height: ${t[0]}px; padding: ${t[0]/5}px;`),bt(e,"green",t[1]==="green"),bt(e,"blue",t[1]==="blue")},m(n,s){it(n,e,s),e.innerHTML=IR},p(n,[s]){s&1&&r!==(r=`width: ${n[0]}px; height: ${n[0]}px; padding: ${n[0]/5}px;`)&&ve(e,"style",r),s&2&&bt(e,"green",n[1]==="green"),s&2&&bt(e,"blue",n[1]==="blue")},i:et,o:et,d(n){n&&rt(e)}}}function DX(t,e,r){let{size:n}=e,{color:s="green"}=e;return t.$$set=i=>{"size"in i&&r(0,n=i.size),"color"in i&&r(1,s=i.color)},[n,s]}class AN extends ri{constructor(e){super(),ti(this,e,DX,LX,$n,{size:0,color:1},OX)}}function FX(t){ei(t,"svelte-1le5672",".loading-container.svelte-1le5672.svelte-1le5672{font-family:inherit;font-size:inherit;color:inherit}span.svelte-1le5672.svelte-1le5672{font-family:inherit;font-size:0.889em;margin-top:1rem}.loading.svelte-1le5672.svelte-1le5672{display:inline-block}.loading.svelte-1le5672 div.svelte-1le5672{font-size:inherit;display:block;position:absolute;border:3px solid;border-radius:50%;animation:svelte-1le5672-bn-loading 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;border-color:currentColor transparent transparent transparent}.loading.svelte-1le5672 .loading-first.svelte-1le5672{animation-delay:-0.45s}.loading.svelte-1le5672 .loading-second.svelte-1le5672{animation-delay:-0.3s}.loading.svelte-1le5672 .loading-third.svelte-1le5672{animation-delay:-0.15s}@keyframes svelte-1le5672-bn-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}")}function T8(t){let e,r;return{c(){e=Xe("span"),r=wr(t[0]),ve(e,"class","svelte-1le5672")},m(n,s){it(n,e,s),Ce(e,r)},p(n,s){s&1&&$r(r,n[0])},d(n){n&&rt(e)}}}function UX(t){let e,r,n,s,i,o,f,u,h,p,d,v,w=t[0]&&T8(t);return{c(){e=Xe("div"),r=Xe("div"),n=Xe("div"),i=gt(),o=Xe("div"),u=gt(),h=Xe("div"),v=gt(),w&&w.c(),ve(n,"class","loading-first svelte-1le5672"),ve(n,"style",s=`height: ${t[1]}; width: ${t[1]};`),ve(o,"class","loading-second svelte-1le5672"),ve(o,"style",f=`height: ${t[1]}; width: ${t[1]};`),ve(h,"class","loading-third svelte-1le5672"),ve(h,"style",p=`height: ${t[1]}; width: ${t[1]};`),ve(r,"class","loading relative svelte-1le5672"),ve(r,"style",d=`height: ${t[1]}; width: ${t[1]};`),ve(e,"class","loading-container flex flex-column justify-center items-center absolute svelte-1le5672")},m(A,M){it(A,e,M),Ce(e,r),Ce(r,n),Ce(r,i),Ce(r,o),Ce(r,u),Ce(r,h),Ce(e,v),w&&w.m(e,null)},p(A,[M]){M&2&&s!==(s=`height: ${A[1]}; width: ${A[1]};`)&&ve(n,"style",s),M&2&&f!==(f=`height: ${A[1]}; width: ${A[1]};`)&&ve(o,"style",f),M&2&&p!==(p=`height: ${A[1]}; width: ${A[1]};`)&&ve(h,"style",p),M&2&&d!==(d=`height: ${A[1]}; width: ${A[1]};`)&&ve(r,"style",d),A[0]?w?w.p(A,M):(w=T8(A),w.c(),w.m(e,null)):w&&(w.d(1),w=null)},i:et,o:et,d(A){A&&rt(e),w&&w.d()}}}function HX(t,e,r){let{description:n=""}=e,{size:s="2rem"}=e;return t.$$set=i=>{"description"in i&&r(0,n=i.description),"size"in i&&r(1,s=i.size)},[n,s]}class jX extends ri{constructor(e){super(),ti(this,e,HX,UX,$n,{description:0,size:1},FX)}}function zX(t){ei(t,"svelte-i129jl",`.icon.svelte-i129jl{height:100%}.border-custom.svelte-i129jl{border:1px solid var(--border-color)}.border-yellow.svelte-i129jl{border:1px solid var(--onboard-warning-500, var(--warning-500))}.border-gray.svelte-i129jl{border:1px solid var(--onboard-gray-400, var(--gray-400))}.border-green.svelte-i129jl{border:1px solid var(--onboard-success-500, var(--success-500))}.border-dark-green.svelte-i129jl{border:1px solid var(--onboard-success-700, var(--success-700))}.border-blue.svelte-i129jl{border:1px solid - var( - --onboard-wallet-app-icon-border-color, - var(--onboard-primary-300, var(--primary-300)) - )}.border-dark-blue.svelte-i129jl{border:1px solid - var( - --onboard-wallet-app-icon-border-color, - var(--onboard-primary-600, var(--primary-600)) - )}.border-transparent.svelte-i129jl{border:1px solid transparent}.border-black.svelte-i129jl{border:1px solid var(--onboard-gray-600, var(--gray-600))}.background-gray.svelte-i129jl{background:var( - --onboard-wallet-app-icon-background-gray, - var(--onboard-gray-500, var(--gray-500)) - )}.background-light-gray.svelte-i129jl{background:var( - --onboard-wallet-app-icon-background-light-gray, - var(--onboard-gray-100, var(--gray-100)) - )}.background-light-blue.svelte-i129jl{background:var( - --onboard-wallet-app-icon-background-light-blue, - var(--onboard-primary-100, var(--primary-100)) - )}.background-green.svelte-i129jl{background:var( - --onboard-wallet-app-icon-background-green, - var(--onboard-success-100, var(--success-100)) - )}.background-white.svelte-i129jl{background:var( - --onboard-wallet-app-icon-background-white, - var(--onboard-white, var(--white)) - )}.background-transparent.svelte-i129jl{background:var( - --onboard-wallet-app-icon-background-transparent, - transparent - )}@keyframes svelte-i129jl-pulse{from{opacity:0}to{opacity:1}}.placeholder-icon.svelte-i129jl{width:100%;height:100%;background:var(--onboard-gray-100, var(--gray-100));border-radius:32px;animation:svelte-i129jl-pulse infinite 750ms alternate ease-in-out}.spinner-container.svelte-i129jl{color:var(--onboard-primary-300, var(--primary-300))}img.svelte-i129jl{max-width:100%;height:auto}.pending-status-icon{z-index:1;fill:white;box-shadow:0px 2px 12px 0px rgba(0, 0, 0, 0.1)}.status-icon-container.svelte-i129jl{right:-0.25rem;bottom:-0.25rem;position:absolute}`)}const KX=t=>({}),k8=t=>({});function qX(t){let e,r,n,s={ctx:t,current:null,token:null,hasCatch:!1,pending:QX,then:WX,catch:VX,value:13,blocks:[,,,]};return Vc(r=t[1],s),{c(){e=rn(),s.block.c()},m(i,o){it(i,e,o),s.block.m(i,s.anchor=o),s.mount=()=>e.parentNode,s.anchor=e,n=!0},p(i,o){t=i,s.ctx=t,o&2&&r!==(r=t[1])&&Vc(r,s)||Gd(s,t,o)},i(i){n||(Je(s.block),n=!0)},o(i){for(let o=0;o<3;o+=1){const f=s.blocks[o];st(f)}n=!1},d(i){i&&rt(e),s.block.d(i),s.token=null,s=null}}}function GX(t){let e,r,n;return r=new jX({props:{size:"2rem"}}),{c(){e=Xe("div"),lr(r.$$.fragment),ve(e,"class","spinner-container svelte-i129jl")},m(s,i){it(s,e,i),ir(r,e,null),n=!0},p:et,i(s){n||(Je(r.$$.fragment,s),n=!0)},o(s){st(r.$$.fragment,s),n=!1},d(s){s&&rt(e),sr(r)}}}function VX(t){return{c:et,m:et,p:et,i:et,o:et,d:et}}function WX(t){let e,r,n,s,i,o;function f(d,v){return v&2&&(r=null),r==null&&(r=!!f6(d[13])),r?YX:ZX}let u=f(t,-1),h=u(t),p=t[2]&&t[9]<=Li&&B8();return{c(){e=Xe("div"),h.c(),s=gt(),p&&p.c(),i=rn(),ve(e,"class","icon flex justify-center items-center svelte-i129jl")},m(d,v){it(d,e,v),h.m(e,null),it(d,s,v),p&&p.m(d,v),it(d,i,v),o=!0},p(d,v){u===(u=f(d,v))&&h?h.p(d,v):(h.d(1),h=u(d),h&&(h.c(),h.m(e,null))),d[2]&&d[9]<=Li?p?v&516&&Je(p,1):(p=B8(),p.c(),Je(p,1),p.m(i.parentNode,i)):p&&(cn(),st(p,1,1,()=>{p=null}),un())},i(d){o||(n||Xi(()=>{n=w6(e,Np,{}),n.start()}),Je(p),o=!0)},o(d){st(p),o=!1},d(d){d&&rt(e),h.d(),d&&rt(s),p&&p.d(d),d&&rt(i)}}}function ZX(t){let e,r;return{c(){e=Xe("img"),Jg(e.src,r=t[13])||ve(e,"src",r),ve(e,"alt","logo"),ve(e,"class","svelte-i129jl")},m(n,s){it(n,e,s)},p(n,s){s&2&&!Jg(e.src,r=n[13])&&ve(e,"src",r)},d(n){n&&rt(e)}}}function YX(t){let e,r=t[13]+"",n;return{c(){e=new qd(!1),n=rn(),e.a=n},m(s,i){e.m(r,s,i),it(s,n,i)},p(s,i){i&2&&r!==(r=s[13]+"")&&e.p(r)},d(s){s&&rt(n),s&&e.d()}}}function B8(t){let e,r,n;return r=new PX({props:{class:"pending-status-icon",size:20}}),{c(){e=Xe("div"),lr(r.$$.fragment),ve(e,"class","status-icon-container svelte-i129jl")},m(s,i){it(s,e,i),ir(r,e,null),n=!0},i(s){n||(Je(r.$$.fragment,s),n=!0)},o(s){st(r.$$.fragment,s),n=!1},d(s){s&&rt(e),sr(r)}}}function QX(t){let e;return{c(){e=Xe("div"),ve(e,"class","placeholder-icon svelte-i129jl")},m(r,n){it(r,e,n)},p:et,i:et,o:et,d(r){r&&rt(e)}}}function XX(t){let e,r,n,s,i,o,f,u;Xi(t[12]);const h=[GX,qX],p=[];function d(A,M){return A[2]&&A[9]>=Li?0:1}r=d(t),n=p[r]=h[r](t);const v=t[11].status,w=c6(v,t,t[10],k8);return{c(){e=Xe("div"),n.c(),s=gt(),w&&w.c(),ve(e,"class","relative svelte-i129jl"),ve(e,"style",i=`${t[6]==="custom"?`background-color: ${t[7]}`:""}; padding: ${t[3]-1}px; width: ${t[0]}px; height: ${t[0]}px; border-radius: ${t[8]}px; color: ${t[4]};`),bt(e,"border-custom",t[5]==="custom"),bt(e,"border-yellow",t[5]==="yellow"),bt(e,"border-gray",t[5]==="gray"),bt(e,"border-green",t[5]==="green"),bt(e,"border-dark-green",t[5]==="darkGreen"),bt(e,"border-blue",t[5]==="blue"),bt(e,"border-dark-blue",t[5]==="darkBlue"),bt(e,"border-transparent",t[5]==="transparent"),bt(e,"border-black",t[5]==="black"),bt(e,"background-gray",t[6]==="gray"),bt(e,"background-light-gray",t[6]==="lightGray"),bt(e,"background-light-blue",t[6]==="lightBlue"),bt(e,"background-green",t[6]==="green"),bt(e,"background-white",t[6]==="white"),bt(e,"background-transparent",t[6]==="transparent")},m(A,M){it(A,e,M),p[r].m(e,null),Ce(e,s),w&&w.m(e,null),o=!0,f||(u=gs(window,"resize",t[12]),f=!0)},p(A,[M]){let R=r;r=d(A),r===R?p[r].p(A,M):(cn(),st(p[R],1,1,()=>{p[R]=null}),un(),n=p[r],n?n.p(A,M):(n=p[r]=h[r](A),n.c()),Je(n,1),n.m(e,s)),w&&w.p&&(!o||M&1024)&&h6(w,v,A,A[10],o?u6(v,A[10],M,KX):d6(A[10]),k8),(!o||M&473&&i!==(i=`${A[6]==="custom"?`background-color: ${A[7]}`:""}; padding: ${A[3]-1}px; width: ${A[0]}px; height: ${A[0]}px; border-radius: ${A[8]}px; color: ${A[4]};`))&&ve(e,"style",i),(!o||M&32)&&bt(e,"border-custom",A[5]==="custom"),(!o||M&32)&&bt(e,"border-yellow",A[5]==="yellow"),(!o||M&32)&&bt(e,"border-gray",A[5]==="gray"),(!o||M&32)&&bt(e,"border-green",A[5]==="green"),(!o||M&32)&&bt(e,"border-dark-green",A[5]==="darkGreen"),(!o||M&32)&&bt(e,"border-blue",A[5]==="blue"),(!o||M&32)&&bt(e,"border-dark-blue",A[5]==="darkBlue"),(!o||M&32)&&bt(e,"border-transparent",A[5]==="transparent"),(!o||M&32)&&bt(e,"border-black",A[5]==="black"),(!o||M&64)&&bt(e,"background-gray",A[6]==="gray"),(!o||M&64)&&bt(e,"background-light-gray",A[6]==="lightGray"),(!o||M&64)&&bt(e,"background-light-blue",A[6]==="lightBlue"),(!o||M&64)&&bt(e,"background-green",A[6]==="green"),(!o||M&64)&&bt(e,"background-white",A[6]==="white"),(!o||M&64)&&bt(e,"background-transparent",A[6]==="transparent")},i(A){o||(Je(n),Je(w,A),o=!0)},o(A){st(n),st(w,A),o=!1},d(A){A&&rt(e),p[r].d(),w&&w.d(A),f=!1,u()}}}function JX(t,e,r){let{$$slots:n={},$$scope:s}=e,{size:i}=e,{icon:o}=e,{loading:f=!1}=e,{padding:u=i/6}=e,{color:h="black"}=e,{border:p="transparent"}=e,{background:d="transparent"}=e,{customBackgroundColor:v=""}=e,{radius:w=12}=e,A;function M(){r(9,A=window.innerWidth)}return t.$$set=R=>{"size"in R&&r(0,i=R.size),"icon"in R&&r(1,o=R.icon),"loading"in R&&r(2,f=R.loading),"padding"in R&&r(3,u=R.padding),"color"in R&&r(4,h=R.color),"border"in R&&r(5,p=R.border),"background"in R&&r(6,d=R.background),"customBackgroundColor"in R&&r(7,v=R.customBackgroundColor),"radius"in R&&r(8,w=R.radius),"$$scope"in R&&r(10,s=R.$$scope)},[i,o,f,u,h,p,d,v,w,A,s,n,M]}class Cp extends ri{constructor(e){super(),ti(this,e,JX,XX,$n,{size:0,icon:1,loading:2,padding:3,color:4,border:5,background:6,customBackgroundColor:7,radius:8},zX)}}function $X(t){ei(t,"svelte-105a3pw",".container.svelte-105a3pw{padding:var(--onboard-spacing-5, var(--spacing-5));color:var(--onboard-warning-700, var(--warning-700));font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:16px;border:1px solid var(--onboard-warning-400, var(--warning-400));background:var(--onboard-warning-100, var(--warning-100));margin:0;border-radius:12px}.icon.svelte-105a3pw{color:var(--onboard-warning-700, var(--warning-700));width:1rem;height:1rem;margin-left:var(--onboard-spacing-5, var(--spacing-5))}p.svelte-105a3pw{margin:0;width:fit-content}")}function eJ(t){let e,r,n,s,i,o;const f=t[1].default,u=c6(f,t,t[0],null);return{c(){e=Xe("div"),r=Xe("p"),u&&u.c(),n=gt(),s=Xe("div"),ve(r,"class","svelte-105a3pw"),ve(s,"class","icon svelte-105a3pw"),ve(e,"class","container flex justify-between svelte-105a3pw")},m(h,p){it(h,e,p),Ce(e,r),u&&u.m(r,null),Ce(e,n),Ce(e,s),s.innerHTML=o6,o=!0},p(h,[p]){u&&u.p&&(!o||p&1)&&h6(u,f,h,h[0],o?u6(f,h[0],p,null):d6(h[0]),null)},i(h){o||(Je(u,h),i||Xi(()=>{i=w6(e,Np,{}),i.start()}),o=!0)},o(h){st(u,h),o=!1},d(h){h&&rt(e),u&&u.d(h)}}}function tJ(t,e,r){let{$$slots:n={},$$scope:s}=e;return t.$$set=i=>{"$$scope"in i&&r(0,s=i.$$scope)},[s,n]}class xN extends ri{constructor(e){super(),ti(this,e,tJ,eJ,$n,{},$X)}}function rJ(t){ei(t,"svelte-1kfgpsl",`.container.svelte-1kfgpsl{padding:var(--onboard-spacing-4, var(--spacing-4));color:var( - --onboard-connect-accent-text-color, - var(--onboard-gray-700, var(--gray-700)) - )}.connecting-container.svelte-1kfgpsl{padding:var(--onboard-spacing-4, var(--spacing-4));border-radius:var(--onboard-border-radius-1, var(--border-radius-1));background:var(--onboard-success-100, var(--success-100));border:1px solid var(--onboard-success-600, var(--success-600));width:100%}.text.svelte-1kfgpsl{right:var(--onboard-spacing-5, var(--spacing-5))}.tick.svelte-1kfgpsl{color:var(--onboard-success-700, var(--success-700))}`)}function nJ(t){let e,r,n,s,i,o,f,u,h,p,d,v,w,A=t[1]("connect.connectedWallet.mainText",{default:vr.connect.connectedWallet.mainText})+"",M,R,N,C;return i=new Cp({props:{size:40,padding:8,background:t[2]&&t[2].icon?"lightBlue":"lightGray",border:"darkGreen",icon:t[2]&&t[2].icon||a6}}),u=new AN({props:{size:17}}),d=new Cp({props:{size:40,padding:8,border:"darkGreen",background:"white",icon:t[0].icon}}),{c(){e=Xe("div"),r=Xe("div"),n=Xe("div"),s=Xe("div"),lr(i.$$.fragment),o=gt(),f=Xe("div"),lr(u.$$.fragment),h=gt(),p=Xe("div"),lr(d.$$.fragment),v=gt(),w=Xe("div"),M=wr(A),R=gt(),N=Xe("div"),ve(f,"class","relative"),Ao(f,"right","1rem"),Ao(f,"top","4px"),Ao(f,"z-index","1"),ve(p,"class","relative"),Ao(p,"right","1.75rem"),ve(s,"class","flex justify-center items-end relative"),ve(w,"class","text relative svelte-1kfgpsl"),ve(n,"class","flex items-center"),ve(N,"class","tick flex items-center svelte-1kfgpsl"),Ao(N,"width","24px"),ve(r,"class","connecting-container flex justify-between items-center svelte-1kfgpsl"),ve(e,"class","container svelte-1kfgpsl")},m(B,O){it(B,e,O),Ce(e,r),Ce(r,n),Ce(n,s),ir(i,s,null),Ce(s,o),Ce(s,f),ir(u,f,null),Ce(s,h),Ce(s,p),ir(d,p,null),Ce(n,v),Ce(n,w),Ce(w,M),Ce(r,R),Ce(r,N),N.innerHTML=IR,C=!0},p(B,[O]){const D={};O&1&&(D.icon=B[0].icon),d.$set(D),(!C||O&2)&&A!==(A=B[1]("connect.connectedWallet.mainText",{default:vr.connect.connectedWallet.mainText})+"")&&$r(M,A)},i(B){C||(Je(i.$$.fragment,B),Je(u.$$.fragment,B),Je(d.$$.fragment,B),C=!0)},o(B){st(i.$$.fragment,B),st(u.$$.fragment,B),st(d.$$.fragment,B),C=!1},d(B){B&&rt(e),sr(i),sr(u),sr(d)}}}function iJ(t,e,r){let n;Pi(t,Pf,o=>r(1,n=o));let{selectedWallet:s}=e;const{appMetadata:i}=Kn;return t.$$set=o=>{"selectedWallet"in o&&r(0,s=o.selectedWallet)},[s,n,i]}class sJ extends ri{constructor(e){super(),ti(this,e,iJ,nJ,$n,{selectedWallet:0},rJ)}}function aJ(t){ei(t,"svelte-j1ywa3",`.container.svelte-j1ywa3{padding:var(--onboard-spacing-4, var(--spacing-4))}.connecting-container.svelte-j1ywa3{width:100%;padding:var(--onboard-spacing-4, var(--spacing-4));transition:background-color 100ms ease-in-out, - border-color 100ms ease-in-out;border-radius:24px;background:var(--onboard-primary-100, var(--primary-100));border:1px solid;border-color:var(--onboard-primary-300, var(--primary-300));color:var(--onboard-gray-600, var(--gray-600))}.connecting-container.warning.svelte-j1ywa3{background:var(--onboard-warning-100, var(--warning-100));border-color:var(--onboard-warning-400, var(--warning-400))}.text.svelte-j1ywa3{line-height:16px;margin-bottom:var(--onboard-spacing-5, var(--spacing-5))}.text.text-rejected.svelte-j1ywa3{line-height:24px;margin-bottom:0}.subtext.svelte-j1ywa3{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:16px}.rejected-cta.svelte-j1ywa3{color:var(--onboard-primary-500, var(--primary-500))}.onboard-button-primary.svelte-j1ywa3{bottom:var(--onboard-spacing-3, var(--spacing-3))}.ml.svelte-j1ywa3{margin-left:var(--onboard-spacing-4, var(--spacing-4))}@media all and (max-width: 520px){.connecting-container.svelte-j1ywa3{border-radius:var(--onboard-border-radius-4, var(--border-radius-4))}.container.svelte-j1ywa3{padding-bottom:0}.wallet-badges.svelte-j1ywa3{display:none}.connecting-wallet-info.svelte-j1ywa3{margin:0}.onboard-button-primary.svelte-j1ywa3{display:none}}`)}function oJ(t){let e,r=t[6](`connect.connectingWallet.${t[5]?"previousConnection":"paragraph"}`,{default:vr.connect.connectingWallet.paragraph,values:{wallet:t[1].label}})+"",n;return{c(){e=Xe("div"),n=wr(r),ve(e,"class","subtext svelte-j1ywa3")},m(s,i){it(s,e,i),Ce(e,n)},p(s,i){i&98&&r!==(r=s[6](`connect.connectingWallet.${s[5]?"previousConnection":"paragraph"}`,{default:vr.connect.connectingWallet.paragraph,values:{wallet:s[1].label}})+"")&&$r(n,r)},d(s){s&&rt(e)}}}function fJ(t){let e,r=t[6]("connect.connectingWallet.rejectedCTA",{default:vr.connect.connectingWallet.rejectedCTA})+"",n,s,i;return{c(){e=Xe("div"),n=wr(r),ve(e,"class","rejected-cta pointer subtext svelte-j1ywa3")},m(o,f){it(o,e,f),Ce(e,n),s||(i=gs(e,"click",function(){zl(t[0])&&t[0].apply(this,arguments)}),s=!0)},p(o,f){t=o,f&64&&r!==(r=t[6]("connect.connectingWallet.rejectedCTA",{default:vr.connect.connectingWallet.rejectedCTA})+"")&&$r(n,r)},d(o){o&&rt(e),s=!1,i()}}}function lJ(t){let e,r,n,s,i,o,f,u,h,p,d,v=t[6](`connect.connectingWallet.${t[4]?"rejectedText":"mainText"}`,{default:t[4]?vr.connect.connectingWallet.rejectedText:vr.connect.connectingWallet.mainText})+"",w,A,M,R,N=t[6]("connect.connectingWallet.primaryButton",{default:vr.connect.connectingWallet.primaryButton})+"",C,B,O,D;i=new Cp({props:{size:40,padding:8,icon:t[7]&&t[7].icon||a6,border:t[4]||t[5]?"yellow":"blue",background:"lightGray"}}),u=new Cp({props:{size:40,padding:8,border:t[4]||t[5]?"yellow":"blue",background:"white",icon:t[1].icon}});function q(I,H){return I[4]?fJ:oJ}let W=q(t),k=W(t);return{c(){e=Xe("div"),r=Xe("div"),n=Xe("div"),s=Xe("div"),lr(i.$$.fragment),o=gt(),f=Xe("div"),lr(u.$$.fragment),h=gt(),p=Xe("div"),d=Xe("div"),w=wr(v),A=gt(),k.c(),M=gt(),R=Xe("button"),C=wr(N),ve(f,"class","relative"),Ao(f,"right","0.5rem"),ve(s,"class","flex justify-center relative wallet-badges svelte-j1ywa3"),ve(d,"class","text svelte-j1ywa3"),bt(d,"text-rejected",t[4]),ve(p,"class","flex flex-column justify-center ml connecting-wallet-info svelte-j1ywa3"),ve(n,"class","flex"),ve(r,"class","connecting-container flex justify-between items-center svelte-j1ywa3"),bt(r,"warning",t[4]||t[5]),ve(R,"class","onboard-button-primary absolute svelte-j1ywa3"),ve(e,"class","container flex flex-column items-center svelte-j1ywa3")},m(I,H){it(I,e,H),Ce(e,r),Ce(r,n),Ce(n,s),ir(i,s,null),Ce(s,o),Ce(s,f),ir(u,f,null),Ce(n,h),Ce(n,p),Ce(p,d),Ce(d,w),Ce(p,A),k.m(p,null),Ce(e,M),Ce(e,R),Ce(R,C),B=!0,O||(D=gs(R,"click",t[8]),O=!0)},p(I,[H]){const P={};H&48&&(P.border=I[4]||I[5]?"yellow":"blue"),i.$set(P);const T={};H&48&&(T.border=I[4]||I[5]?"yellow":"blue"),H&2&&(T.icon=I[1].icon),u.$set(T),(!B||H&80)&&v!==(v=I[6](`connect.connectingWallet.${I[4]?"rejectedText":"mainText"}`,{default:I[4]?vr.connect.connectingWallet.rejectedText:vr.connect.connectingWallet.mainText})+"")&&$r(w,v),(!B||H&16)&&bt(d,"text-rejected",I[4]),W===(W=q(I))&&k?k.p(I,H):(k.d(1),k=W(I),k&&(k.c(),k.m(p,null))),(!B||H&48)&&bt(r,"warning",I[4]||I[5]),(!B||H&64)&&N!==(N=I[6]("connect.connectingWallet.primaryButton",{default:vr.connect.connectingWallet.primaryButton})+"")&&$r(C,N)},i(I){B||(Je(i.$$.fragment,I),Je(u.$$.fragment,I),B=!0)},o(I){st(i.$$.fragment,I),st(u.$$.fragment,I),B=!1},d(I){I&&rt(e),sr(i),sr(u),k.d(),O=!1,D()}}}function cJ(t,e,r){let n;Pi(t,Pf,v=>r(6,n=v));let{connectWallet:s}=e,{selectedWallet:i}=e,{deselectWallet:o}=e,{setStep:f}=e,{connectionRejected:u}=e,{previousConnectionRequest:h}=e;const{appMetadata:p}=Kn,d=()=>{o(i.label),f("selectingWallet")};return t.$$set=v=>{"connectWallet"in v&&r(0,s=v.connectWallet),"selectedWallet"in v&&r(1,i=v.selectedWallet),"deselectWallet"in v&&r(2,o=v.deselectWallet),"setStep"in v&&r(3,f=v.setStep),"connectionRejected"in v&&r(4,u=v.connectionRejected),"previousConnectionRequest"in v&&r(5,h=v.previousConnectionRequest)},[s,i,o,f,u,h,n,p,d]}class uJ extends ri{constructor(e){super(),ti(this,e,cJ,lJ,$n,{connectWallet:0,selectedWallet:1,deselectWallet:2,setStep:3,connectionRejected:4,previousConnectionRequest:5},aJ)}}function hJ(t){ei(t,"svelte-1uy2ffh",".outer-container.svelte-1uy2ffh{padding:var(--onboard-spacing-4, var(--spacing-4))}.link.svelte-1uy2ffh{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:16px;color:var(--onboard-primary-500, var(--primary-500));text-decoration:none}")}function I8(t,e,r){const n=t.slice();return n[2]=e[r].name,n[3]=e[r].url,n[5]=r,n}function dJ(t){let e=t[0]("connect.selectingWallet.installWallet",{default:vr.connect.selectingWallet.installWallet,values:{app:t[2]||"this app"}})+"",r;return{c(){r=wr(e)},m(n,s){it(n,r,s)},p(n,s){s&1&&e!==(e=n[0]("connect.selectingWallet.installWallet",{default:vr.connect.selectingWallet.installWallet,values:{app:n[2]||"this app"}})+"")&&$r(r,e)},d(n){n&&rt(r)}}}function pJ(t){let e=t[0]("connect.selectingWallet.recommendedWalletsPart1",{default:vr.connect.selectingWallet.recommendedWalletsPart1,values:{app:t[2]||"This app"}})+"",r,n,s,i=t[0]("connect.selectingWallet.recommendedWalletsPart2",{default:vr.connect.selectingWallet.recommendedWalletsPart2})+"",o,f=t[1],u=[];for(let h=0;hr(0,n=o));const{recommendedInjectedWallets:s,name:i}=Kn.appMetadata||{};return[n,s,i]}class yJ extends ri{constructor(e){super(),ti(this,e,vJ,gJ,$n,{},hJ)}}function bJ(t){ei(t,"svelte-1vlog3j","button.svelte-1vlog3j:disabled{opacity:0.5}button.wallet-button-styling.svelte-1vlog3j{position:relative;align-items:flex-start;flex:1;padding:0;background:none;color:var(--onboard-wallet-button-color, inherit)}.wallet-button-container.svelte-1vlog3j{display:flex}.wallet-button-container-inner.svelte-1vlog3j{position:relative;display:flex;flex-flow:column;align-items:center;gap:0.5rem;padding:0.75rem;width:5rem}.name.svelte-1vlog3j{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:1rem;text-overflow:ellipsis;max-width:5rem;max-height:2rem;overflow:hidden}.status-icon.svelte-1vlog3j{position:absolute;top:3.5rem;left:3.5rem}@media screen and (min-width: 768px){button.wallet-button-styling.svelte-1vlog3j{transition:background-color 250ms ease-in-out;background:var(--onboard-wallet-button-background, none);border:1px solid transparent;border-color:var(--onboard-wallet-button-border-color, var(--border-color));border-radius:var(--onboard-wallet-button-border-radius, var(--border-radius-1))}button.wallet-button-styling.svelte-1vlog3j:hover{background:var(--onboard-wallet-button-background-hover, var(--foreground-color));color:var(--onboard-wallet-button-color-hover)}.wallet-button-container-inner.svelte-1vlog3j{flex:1;flex-flow:row nowrap;gap:1rem;padding:1rem}button.connected.svelte-1vlog3j{border-color:var(--onboard-success-500, var(--success-500))}.name.svelte-1vlog3j{font-size:1rem;line-height:1.25rem;text-align:initial;max-width:inherit;max-height:3rem}.status-icon.svelte-1vlog3j{top:0;bottom:0;left:auto;right:1rem;margin:auto;height:20px}}")}function O8(t){let e,r,n;return r=new AN({props:{size:20}}),{c(){e=Xe("div"),lr(r.$$.fragment),ve(e,"class","status-icon svelte-1vlog3j")},m(s,i){it(s,e,i),ir(r,e,null),n=!0},i(s){n||(Je(r.$$.fragment,s),n=!0)},o(s){st(r.$$.fragment,s),n=!1},d(s){s&&rt(e),sr(r)}}}function wJ(t){let e,r,n,s,i,o,f,u,h,p,d,v;Xi(t[7]),s=new Cp({props:{size:t[6]>=Li?48:56,icon:t[0],loading:t[4],border:t[3]?"green":"custom",background:"transparent"}});let w=t[3]&&O8();return{c(){e=Xe("div"),r=Xe("button"),n=Xe("div"),lr(s.$$.fragment),i=gt(),o=Xe("div"),f=wr(t[1]),u=gt(),w&&w.c(),ve(o,"class","name svelte-1vlog3j"),ve(n,"class","wallet-button-container-inner svelte-1vlog3j"),ve(r,"class","wallet-button-styling svelte-1vlog3j"),r.disabled=t[5],bt(r,"connected",t[3]),ve(e,"class","wallet-button-container svelte-1vlog3j")},m(A,M){it(A,e,M),Ce(e,r),Ce(r,n),ir(s,n,null),Ce(n,i),Ce(n,o),Ce(o,f),Ce(n,u),w&&w.m(n,null),p=!0,d||(v=[gs(window,"resize",t[7]),gs(r,"click",function(){zl(t[2])&&t[2].apply(this,arguments)})],d=!0)},p(A,[M]){t=A;const R={};M&64&&(R.size=t[6]>=Li?48:56),M&1&&(R.icon=t[0]),M&16&&(R.loading=t[4]),M&8&&(R.border=t[3]?"green":"custom"),s.$set(R),(!p||M&2)&&$r(f,t[1]),t[3]?w?M&8&&Je(w,1):(w=O8(),w.c(),Je(w,1),w.m(n,null)):w&&(cn(),st(w,1,1,()=>{w=null}),un()),(!p||M&32)&&(r.disabled=t[5]),(!p||M&8)&&bt(r,"connected",t[3])},i(A){p||(Je(s.$$.fragment,A),Je(w),h||Xi(()=>{h=w6(r,Np,{}),h.start()}),p=!0)},o(A){st(s.$$.fragment,A),st(w),p=!1},d(A){A&&rt(e),sr(s),w&&w.d(),d=!1,Df(v)}}}function AJ(t,e,r){let{icon:n}=e,{label:s}=e,{onClick:i}=e,{connected:o}=e,{connecting:f}=e,{disabled:u}=e,h;function p(){r(6,h=window.innerWidth)}return t.$$set=d=>{"icon"in d&&r(0,n=d.icon),"label"in d&&r(1,s=d.label),"onClick"in d&&r(2,i=d.onClick),"connected"in d&&r(3,o=d.connected),"connecting"in d&&r(4,f=d.connecting),"disabled"in d&&r(5,u=d.disabled)},[n,s,i,o,f,u,h,p]}class xJ extends ri{constructor(e){super(),ti(this,e,AJ,wJ,$n,{icon:0,label:1,onClick:2,connected:3,connecting:4,disabled:5},bJ)}}function EJ(t){ei(t,"svelte-gl8lq2",".wallets-container.svelte-gl8lq2{display:flex;gap:0.5rem;overflow-x:scroll;overflow-y:hidden;padding:0.75rem 0.5rem;border-bottom:1px solid var(--border-color);-ms-overflow-style:none;scrollbar-width:none}.wallets-container.svelte-gl8lq2::-webkit-scrollbar{display:none}.warning-container.svelte-gl8lq2{margin:1rem 1rem 0}@media all and (min-width: 768px){.wallets-container.svelte-gl8lq2{display:grid;grid-template-columns:repeat(var(--onboard-wallet-columns, 2), 1fr);padding:1rem;border:none}}")}function L8(t,e,r){const n=t.slice();return n[8]=e[r],n}function D8(t){let e,r,n;return r=new xN({props:{$$slots:{default:[MJ]},$$scope:{ctx:t}}}),{c(){e=Xe("div"),lr(r.$$.fragment),ve(e,"class","warning-container svelte-gl8lq2")},m(s,i){it(s,e,i),ir(r,e,null),n=!0},p(s,i){const o={};i&2056&&(o.$$scope={dirty:i,ctx:s}),r.$set(o)},i(s){n||(Je(r.$$.fragment,s),n=!0)},o(s){st(r.$$.fragment,s),n=!1},d(s){s&&rt(e),sr(r)}}}function MJ(t){let e,r;return{c(){e=new qd(!1),r=rn(),e.a=r},m(n,s){e.m(t[3],n,s),it(n,r,s)},p(n,s){s&8&&e.p(n[3])},d(n){n&&rt(r),n&&e.d()}}}function F8(t){let e,r;function n(){return t[7](t[8])}return e=new xJ({props:{connected:t[5](t[8].label),connecting:t[2]===t[8].label,label:t[8].label,icon:t[8].icon,onClick:n,disabled:t[4]<=Li&&t[2]&&t[2]!==t[8].label}}),{c(){lr(e.$$.fragment)},m(s,i){ir(e,s,i),r=!0},p(s,i){t=s;const o={};i&1&&(o.connected=t[5](t[8].label)),i&5&&(o.connecting=t[2]===t[8].label),i&1&&(o.label=t[8].label),i&1&&(o.icon=t[8].icon),i&3&&(o.onClick=n),i&21&&(o.disabled=t[4]<=Li&&t[2]&&t[2]!==t[8].label),e.$set(o)},i(s){r||(Je(e.$$.fragment,s),r=!0)},o(s){st(e.$$.fragment,s),r=!1},d(s){sr(e,s)}}}function SJ(t){let e,r,n,s,i,o;Xi(t[6]);let f=t[3]&&D8(t),u=t[0],h=[];for(let d=0;dst(h[d],1,1,()=>{h[d]=null});return{c(){e=Xe("div"),f&&f.c(),r=gt(),n=Xe("div");for(let d=0;d{f=null}),un()),v&55){u=d[0];let w;for(w=0;ww.label===d)}function h(){r(4,f=window.innerWidth)}const p=d=>s(d);return t.$$set=d=>{"wallets"in d&&r(0,n=d.wallets),"selectWallet"in d&&r(1,s=d.selectWallet),"connectingWalletLabel"in d&&r(2,i=d.connectingWalletLabel),"connectingErrorMessage"in d&&r(3,o=d.connectingErrorMessage)},[n,s,i,o,f,u,h,p]}class RJ extends ri{constructor(e){super(),ti(this,e,_J,SJ,$n,{wallets:0,selectWallet:1,connectingWalletLabel:2,connectingErrorMessage:3},EJ)}}function NJ(t){ei(t,"svelte-19knrcd",`.sidebar.svelte-19knrcd{--background-color:var( - --onboard-connect-sidebar-background, - var(--w3o-foreground-color, none) - );--text-color:var(--onboard-connect-sidebar-color, inherit);--border-color:var(--onboard-connect-sidebar-border-color, inherit);display:flex;flex-flow:column;gap:1rem;padding:1rem;align-items:center}.inner-container.svelte-19knrcd{display:flex;flex-flow:column;align-items:center;align-self:stretch;gap:0.5rem;padding:1.5rem;text-align:center;border:1px solid transparent;border-radius:12px;border-color:var(--border-color);background:var(--background-color);color:var(--text-color)}.icon-container.svelte-19knrcd{display:flex;height:3.5rem;width:auto;min-width:3.5rem;max-width:100%}.heading.svelte-19knrcd{font-size:var(--onboard-font-size-3, var(--font-size-3));margin:0 0 var(--onboard-spacing-5, var(--spacing-5)) 0}.subheading.svelte-19knrcd{line-height:1rem}.description.svelte-19knrcd{line-height:1.25rem;font-size:var(--onboard-font-size-6, var(--font-size-6))}img.svelte-19knrcd{max-width:100%;height:auto}.indicators.svelte-19knrcd{margin-top:1rem}.indicator.svelte-19knrcd{box-sizing:content-box;width:8px;height:8px;border-radius:8px;background:var( - --onboard-connect-sidebar-progress-background, - var(--onboard-gray-700, var(--gray-700)) - );transition:background 250ms ease-in-out}.indicator.on.svelte-19knrcd{background:var( - --onboard-connect-sidebar-progress-color, - var(--action-color) - );border:2px solid - var( - --onboard-connect-sidebar-progress-background, - var(--onboard-gray-700, var(--gray-700)) - )}.join.svelte-19knrcd{box-sizing:content-box;z-index:1;right:4px;height:2px;background:var( - --onboard-connect-sidebar-progress-background, - var(--onboard-gray-700, var(--gray-700)) - );transition:background 250ms ease-in-out}.join.active.svelte-19knrcd{background:var( - --onboard-connect-sidebar-progress-color, - var(--action-color) - )}@media all and (min-width: 768px){.sidebar.svelte-19knrcd{max-width:280px;border-right:1px solid;border-color:var(--border-color);background:var(--background-color)}.inner-container.svelte-19knrcd{border:none;text-align:initial;flex:1;align-items:flex-start;gap:1rem}}`)}function U8(t){let e,r,n=t[2](`connect.${t[0]}.sidebar.heading`,{default:""}),s;function i(h,p){return h[4]||h[3]?TJ:CJ}let f=i(t)(t),u=n&&H8(t);return{c(){e=Xe("div"),f.c(),r=gt(),u&&u.c(),s=rn(),ve(e,"class","icon-container svelte-19knrcd")},m(h,p){it(h,e,p),f.m(e,null),it(h,r,p),u&&u.m(h,p),it(h,s,p)},p(h,p){f.p(h,p),p&5&&(n=h[2](`connect.${h[0]}.sidebar.heading`,{default:""})),n?u?u.p(h,p):(u=H8(h),u.c(),u.m(s.parentNode,s)):u&&(u.d(1),u=null)},d(h){h&&rt(e),f.d(),h&&rt(r),u&&u.d(h),h&&rt(s)}}}function CJ(t){let e,r;return{c(){e=new qd(!1),r=rn(),e.a=r},m(n,s){e.m(BR,n,s),it(n,r,s)},p:et,d(n){n&&rt(r),n&&e.d()}}}function TJ(t){let e;function r(i,o){return f6(i[4]||i[3])?BJ:kJ}let s=r(t)(t);return{c(){s.c(),e=rn()},m(i,o){s.m(i,o),it(i,e,o)},p(i,o){s.p(i,o)},d(i){s.d(i),i&&rt(e)}}}function kJ(t){let e,r;return{c(){e=Xe("img"),Jg(e.src,r=t[4]||t[3])||ve(e,"src",r),ve(e,"alt","logo"),ve(e,"class","svelte-19knrcd")},m(n,s){it(n,e,s)},p:et,d(n){n&&rt(e)}}}function BJ(t){let e,r=(t[4]||t[3])+"",n;return{c(){e=new qd(!1),n=wr("​"),e.a=n},m(s,i){e.m(r,s,i),it(s,n,i)},p:et,d(s){s&&e.d(),s&&rt(n)}}}function H8(t){let e,r=t[2](`connect.${t[0]}.sidebar.heading`,{default:t[8]})+"",n;return{c(){e=Xe("div"),n=wr(r),ve(e,"class","heading svelte-19knrcd")},m(s,i){it(s,e,i),Ce(e,n)},p(s,i){i&5&&r!==(r=s[2](`connect.${s[0]}.sidebar.heading`,{default:s[8]})+"")&&$r(n,r)},d(s){s&&rt(e)}}}function IJ(t){let e,r,n,s,i=t[2](`connect.${t[0]}.sidebar.subheading`,{default:t[6]})+"",o,f,u,h=t[2](`connect.${t[0]}.sidebar.paragraph`,{values:{app:t[5]},default:t[7]})+"",p,d,v,w,A,M,R,N,C,B,O,D,q,W,k,I,H,P;Xi(t[9]);let T=t[1]>=Li&&U8(t);return{c(){e=Xe("div"),r=Xe("div"),T&&T.c(),n=gt(),s=Xe("div"),o=wr(i),f=gt(),u=Xe("div"),p=wr(h),d=gt(),v=Xe("div"),w=Xe("div"),A=gt(),M=Xe("div"),N=gt(),C=Xe("div"),B=gt(),O=Xe("div"),q=gt(),W=Xe("div"),k=gt(),I=Xe("div"),ve(s,"class","subheading svelte-19knrcd"),ve(u,"class","description svelte-19knrcd"),ve(w,"class","indicator relative svelte-19knrcd"),bt(w,"on",!0),ve(M,"class","join relative svelte-19knrcd"),ve(M,"style",R=`${t[0]!=="selectingWallet"?"right: 4px; width: 52px;":"right: 2px; width: 54px;"}`),bt(M,"active",t[0]!=="selectingWallet"),ve(C,"class","indicator relative svelte-19knrcd"),ve(C,"style","right: 8px;"),bt(C,"on",t[0]!=="selectingWallet"),ve(O,"class","join relative svelte-19knrcd"),ve(O,"style",D=`${t[0]==="connectedWallet"?"right: 12px; width: 52px;":"right: 10px; width: 54px;"}`),bt(O,"active",t[0]==="connectedWallet"),ve(W,"style","right: 16px;"),ve(W,"class","indicator relative svelte-19knrcd"),bt(W,"on",t[0]==="connectedWallet"),ve(v,"class","indicators flex items-center svelte-19knrcd"),ve(r,"class","inner-container svelte-19knrcd"),ve(e,"class","sidebar svelte-19knrcd")},m(g,a){it(g,e,a),Ce(e,r),T&&T.m(r,null),Ce(r,n),Ce(r,s),Ce(s,o),Ce(r,f),Ce(r,u),Ce(u,p),Ce(r,d),Ce(r,v),Ce(v,w),Ce(v,A),Ce(v,M),Ce(v,N),Ce(v,C),Ce(v,B),Ce(v,O),Ce(v,q),Ce(v,W),Ce(e,k),Ce(e,I),I.innerHTML=oY,H||(P=gs(window,"resize",t[9]),H=!0)},p(g,[a]){g[1]>=Li?T?T.p(g,a):(T=U8(g),T.c(),T.m(r,n)):T&&(T.d(1),T=null),a&5&&i!==(i=g[2](`connect.${g[0]}.sidebar.subheading`,{default:g[6]})+"")&&$r(o,i),a&5&&h!==(h=g[2](`connect.${g[0]}.sidebar.paragraph`,{values:{app:g[5]},default:g[7]})+"")&&$r(p,h),a&1&&R!==(R=`${g[0]!=="selectingWallet"?"right: 4px; width: 52px;":"right: 2px; width: 54px;"}`)&&ve(M,"style",R),a&1&&bt(M,"active",g[0]!=="selectingWallet"),a&1&&bt(C,"on",g[0]!=="selectingWallet"),a&1&&D!==(D=`${g[0]==="connectedWallet"?"right: 12px; width: 52px;":"right: 10px; width: 54px;"}`)&&ve(O,"style",D),a&1&&bt(O,"active",g[0]==="connectedWallet"),a&1&&bt(W,"on",g[0]==="connectedWallet")},i:et,o:et,d(g){g&&rt(e),T&&T.d(),H=!1,P()}}}function PJ(t,e,r){let n;Pi(t,Pf,M=>r(2,n=M));let{step:s}=e;const{appMetadata:i}=Kn,{icon:o,logo:f,name:u="This app"}=i||{},h=vr.connect[s].sidebar,{subheading:p,paragraph:d}=h,{heading:v}=h;let w;function A(){r(1,w=window.innerWidth)}return t.$$set=M=>{"step"in M&&r(0,s=M.step)},[s,w,n,o,f,u,p,d,v,A]}class OJ extends ri{constructor(e){super(),ti(this,e,PJ,IJ,$n,{step:0},NJ)}}function LJ(t){ei(t,"svelte-1qwmck3",`.container.svelte-1qwmck3{--background-color:var( - --onboard-main-scroll-container-background, - var(--w3o-background-color) - );--foreground-color:var(--w3o-foreground-color);--text-color:var(--onboard-connect-text-color, var(--w3o-text-color));--border-color:var(--w3o-border-color, var(--gray-200));--action-color:var(--w3o-action-color, var(--primary-500));font-family:var(--onboard-font-family-normal, var(--font-family-normal));font-size:var(--onboard-font-size-5, 1rem);background:var(--background-color);color:var(--text-color);border-color:var(--border-color);line-height:24px;overflow:hidden;position:relative;display:flex;height:min-content;flex-flow:column-reverse}.content.svelte-1qwmck3{width:var(--onboard-connect-content-width, 100%)}.header.svelte-1qwmck3{display:flex;padding:1rem;border-bottom:1px solid transparent;background:var(--onboard-connect-header-background);color:var(--onboard-connect-header-color);border-color:var(--border-color)}.header-heading.svelte-1qwmck3{line-height:1rem}.button-container.svelte-1qwmck3{right:0.5rem;top:0.5rem}.mobile-header.svelte-1qwmck3{display:flex;gap:0.5rem;height:4.5rem;padding:1rem;border-bottom:1px solid;border-color:var(--border-color)}.mobile-subheader.svelte-1qwmck3{opacity:0.6;font-size:0.875rem;font-weight:400;line-height:1rem;margin-top:0.25rem}.icon-container.svelte-1qwmck3{display:flex;flex:0 0 auto;height:2.5rem;width:2.5rem;min-width:2.5rem;justify-content:center;align-items:center}.disabled.svelte-1qwmck3{opacity:0.2;pointer-events:none;overflow:hidden}.icon-container svg{display:block;height:100%;width:auto}.w-full.svelte-1qwmck3{width:100%}.scroll-container.svelte-1qwmck3{overflow-y:auto;transition:opacity 250ms ease-in-out;scrollbar-width:none}.scroll-container.svelte-1qwmck3::-webkit-scrollbar{display:none}@media all and (min-width: 768px){.container.svelte-1qwmck3{margin:0;flex-flow:row;height:var(--onboard-connect-content-height, 440px)}.content.svelte-1qwmck3{width:var(--onboard-connect-content-width, 488px)}.mobile-subheader.svelte-1qwmck3{display:none}.icon-container.svelte-1qwmck3{display:none}}`)}function j8(t){let e,r;return e=new S6({props:{close:!t[15].disableClose&&t[19],$$slots:{default:[WJ]},$$scope:{ctx:t}}}),{c(){lr(e.$$.fragment)},m(n,s){ir(e,n,s),r=!0},p(n,s){const i={};s[0]&16382|s[1]&4&&(i.$$scope={dirty:s,ctx:n}),e.$set(i)},i(n){r||(Je(e.$$.fragment,n),r=!0)},o(n){st(e.$$.fragment,n),r=!1},d(n){sr(e,n)}}}function DJ(t){let e,r;return e=new OJ({props:{step:t[5]}}),{c(){lr(e.$$.fragment)},m(n,s){ir(e,n,s),r=!0},p(n,s){const i={};s[0]&32&&(i.step=n[5]),e.$set(i)},i(n){r||(Je(e.$$.fragment,n),r=!0)},o(n){st(e.$$.fragment,n),r=!1},d(n){sr(e,n)}}}function FJ(t){let e,r,n=t[13](`connect.${t[5]}.header`,{default:vr.connect[t[5]].header,values:{connectionRejected:t[1],wallet:t[3]&&t[3].label}})+"",s,i,o=t[5]==="selectingWallet"?`(${t[12]})`:"",f;return{c(){e=Xe("div"),r=Xe("div"),s=wr(n),i=gt(),f=wr(o),ve(r,"class","header-heading svelte-1qwmck3"),ve(e,"class","header relative flex items-center svelte-1qwmck3")},m(u,h){it(u,e,h),Ce(e,r),Ce(r,s),Ce(r,i),Ce(r,f)},p(u,h){h[0]&8234&&n!==(n=u[13](`connect.${u[5]}.header`,{default:vr.connect[u[5]].header,values:{connectionRejected:u[1],wallet:u[3]&&u[3].label}})+"")&&$r(s,n),h[0]&4128&&o!==(o=u[5]==="selectingWallet"?`(${u[12]})`:"")&&$r(f,o)},d(u){u&&rt(e)}}}function UJ(t){let e,r,n,s,i,o=t[13](t[5]==="connectingWallet"&&t[3]?`connect.${t[5]}.header`:`connect.${t[5]}.sidebar.subheading`,{default:t[5]==="connectingWallet"&&t[3]?vr.connect[t[5]].header:vr.connect[t[5]].sidebar.subheading,values:{connectionRejected:t[1],wallet:t[3]&&t[3].label}})+"",f,u,h,p=t[5]==="selectingWallet"?`${t[12]} available wallets`:"1 account selected",d;function v(M,R){return M[14]?jJ:HJ}let A=v(t)(t);return{c(){e=Xe("div"),r=Xe("div"),A.c(),n=gt(),s=Xe("div"),i=Xe("div"),f=wr(o),u=gt(),h=Xe("div"),d=wr(p),ve(r,"class","icon-container svelte-1qwmck3"),ve(i,"class","header-heading svelte-1qwmck3"),ve(h,"class","mobile-subheader svelte-1qwmck3"),ve(s,"class","flex flex-column justify-center w-full svelte-1qwmck3"),ve(e,"class","mobile-header svelte-1qwmck3")},m(M,R){it(M,e,R),Ce(e,r),A.m(r,null),Ce(e,n),Ce(e,s),Ce(s,i),Ce(i,f),Ce(s,u),Ce(s,h),Ce(h,d)},p(M,R){A.p(M,R),R[0]&8234&&o!==(o=M[13](M[5]==="connectingWallet"&&M[3]?`connect.${M[5]}.header`:`connect.${M[5]}.sidebar.subheading`,{default:M[5]==="connectingWallet"&&M[3]?vr.connect[M[5]].header:vr.connect[M[5]].sidebar.subheading,values:{connectionRejected:M[1],wallet:M[3]&&M[3].label}})+"")&&$r(f,o),R[0]&4128&&p!==(p=M[5]==="selectingWallet"?`${M[12]} available wallets`:"1 account selected")&&$r(d,p)},d(M){M&&rt(e),A.d()}}}function HJ(t){let e,r;return{c(){e=new qd(!1),r=rn(),e.a=r},m(n,s){e.m(BR,n,s),it(n,r,s)},p:et,d(n){n&&rt(r),n&&e.d()}}}function jJ(t){let e;function r(i,o){return f6(i[14])?KJ:zJ}let s=r(t)(t);return{c(){s.c(),e=rn()},m(i,o){s.m(i,o),it(i,e,o)},p(i,o){s.p(i,o)},d(i){s.d(i),i&&rt(e)}}}function zJ(t){let e,r;return{c(){e=Xe("img"),Jg(e.src,r=t[14])||ve(e,"src",r),ve(e,"alt","logo")},m(n,s){it(n,e,s)},p:et,d(n){n&&rt(e)}}}function KJ(t){let e,r;return{c(){e=new qd(!1),r=rn(),e.a=r},m(n,s){e.m(t[14],n,s),it(n,r,s)},p:et,d(n){n&&rt(r),n&&e.d()}}}function qJ(t){let e,r,n,s,i;return r=new wN({}),{c(){e=Xe("div"),lr(r.$$.fragment),ve(e,"class","button-container absolute svelte-1qwmck3")},m(o,f){it(o,e,f),ir(r,e,null),n=!0,s||(i=gs(e,"click",t[19]),s=!0)},p:et,i(o){n||(Je(r.$$.fragment,o),n=!0)},o(o){st(r.$$.fragment,o),n=!1},d(o){o&&rt(e),sr(r),s=!1,i()}}}function z8(t){let e,r,n,s;const i=[VJ,GJ],o=[];function f(u,h){return u[2].length?0:1}return e=f(t),r=o[e]=i[e](t),{c(){r.c(),n=rn()},m(u,h){o[e].m(u,h),it(u,n,h),s=!0},p(u,h){let p=e;e=f(u),e===p?o[e].p(u,h):(cn(),st(o[p],1,1,()=>{o[p]=null}),un(),r=o[e],r?r.p(u,h):(r=o[e]=i[e](u),r.c()),Je(r,1),r.m(n.parentNode,n))},i(u){s||(Je(r),s=!0)},o(u){st(r),s=!1},d(u){o[e].d(u),u&&rt(n)}}}function GJ(t){let e,r;return e=new yJ({}),{c(){lr(e.$$.fragment)},m(n,s){ir(e,n,s),r=!0},p:et,i(n){r||(Je(e.$$.fragment,n),r=!0)},o(n){st(e.$$.fragment,n),r=!1},d(n){sr(e,n)}}}function VJ(t){let e,r,n,s,i,o;function f(h){t[23](h)}let u={};return t[7]!==void 0&&(u.agreed=t[7]),e=new TX({props:u}),tv.push(()=>YY(e,"agreed",f)),i=new RJ({props:{selectWallet:t[17],wallets:t[2],connectingWalletLabel:t[8],connectingErrorMessage:t[9]}}),{c(){lr(e.$$.fragment),n=gt(),s=Xe("div"),lr(i.$$.fragment),ve(s,"class","svelte-1qwmck3"),bt(s,"disabled",!t[7])},m(h,p){ir(e,h,p),it(h,n,p),it(h,s,p),ir(i,s,null),o=!0},p(h,p){const d={};!r&&p[0]&128&&(r=!0,d.agreed=h[7],VY(()=>r=!1)),e.$set(d);const v={};p[0]&4&&(v.wallets=h[2]),p[0]&256&&(v.connectingWalletLabel=h[8]),p[0]&512&&(v.connectingErrorMessage=h[9]),i.$set(v),(!o||p[0]&128)&&bt(s,"disabled",!h[7])},i(h){o||(Je(e.$$.fragment,h),Je(i.$$.fragment,h),o=!0)},o(h){st(e.$$.fragment,h),st(i.$$.fragment,h),o=!1},d(h){sr(e,h),h&&rt(n),h&&rt(s),sr(i)}}}function K8(t){let e,r;return e=new uJ({props:{connectWallet:t[20],connectionRejected:t[1],previousConnectionRequest:t[6],setStep:t[21],deselectWallet:t[18],selectedWallet:t[3]}}),{c(){lr(e.$$.fragment)},m(n,s){ir(e,n,s),r=!0},p(n,s){const i={};s[0]&2&&(i.connectionRejected=n[1]),s[0]&64&&(i.previousConnectionRequest=n[6]),s[0]&8&&(i.selectedWallet=n[3]),e.$set(i)},i(n){r||(Je(e.$$.fragment,n),r=!0)},o(n){st(e.$$.fragment,n),r=!1},d(n){sr(e,n)}}}function q8(t){let e,r;return e=new sJ({props:{selectedWallet:t[3]}}),{c(){lr(e.$$.fragment)},m(n,s){ir(e,n,s),r=!0},p(n,s){const i={};s[0]&8&&(i.selectedWallet=n[3]),e.$set(i)},i(n){r||(Je(e.$$.fragment,n),r=!0)},o(n){st(e.$$.fragment,n),r=!1},d(n){sr(e,n)}}}function WJ(t){let e,r,n,s,i,o,f,u,h,p=t[15].showSidebar&&DJ(t);function d(C,B){return C[4]<=Li?UJ:FJ}let v=d(t),w=v(t),A=!t[15].disableClose&&qJ(t),M=(t[5]==="selectingWallet"||t[4]<=Li)&&z8(t),R=t[11]&&K8(t),N=t[5]==="connectedWallet"&&t[3]&&t[4]>=Li&&q8(t);return{c(){e=Xe("div"),p&&p.c(),r=gt(),n=Xe("div"),w.c(),s=gt(),A&&A.c(),i=gt(),o=Xe("div"),M&&M.c(),f=gt(),R&&R.c(),u=gt(),N&&N.c(),ve(o,"class","scroll-container svelte-1qwmck3"),ve(n,"class","content flex flex-column svelte-1qwmck3"),ve(e,"class","container svelte-1qwmck3")},m(C,B){it(C,e,B),p&&p.m(e,null),Ce(e,r),Ce(e,n),w.m(n,null),Ce(n,s),A&&A.m(n,null),Ce(n,i),Ce(n,o),M&&M.m(o,null),Ce(o,f),R&&R.m(o,null),Ce(o,u),N&&N.m(o,null),t[24](o),h=!0},p(C,B){C[15].showSidebar&&p.p(C,B),v===(v=d(C))&&w?w.p(C,B):(w.d(1),w=v(C),w&&(w.c(),w.m(n,s))),C[15].disableClose||A.p(C,B),C[5]==="selectingWallet"||C[4]<=Li?M?(M.p(C,B),B[0]&48&&Je(M,1)):(M=z8(C),M.c(),Je(M,1),M.m(o,f)):M&&(cn(),st(M,1,1,()=>{M=null}),un()),C[11]?R?(R.p(C,B),B[0]&2048&&Je(R,1)):(R=K8(C),R.c(),Je(R,1),R.m(o,u)):R&&(cn(),st(R,1,1,()=>{R=null}),un()),C[5]==="connectedWallet"&&C[3]&&C[4]>=Li?N?(N.p(C,B),B[0]&56&&Je(N,1)):(N=q8(C),N.c(),Je(N,1),N.m(o,null)):N&&(cn(),st(N,1,1,()=>{N=null}),un())},i(C){h||(Je(p),Je(A),Je(M),Je(R),Je(N),h=!0)},o(C){st(p),st(A),st(M),st(R),st(N),h=!1},d(C){C&&rt(e),p&&p.d(),w.d(),A&&A.d(),M&&M.d(),R&&R.d(),N&&N.d(),t[24](null)}}}function ZJ(t){let e,r,n,s;Xi(t[22]);let i=!t[0].disableModals&&j8(t);return{c(){i&&i.c(),e=rn()},m(o,f){i&&i.m(o,f),it(o,e,f),r=!0,n||(s=gs(window,"resize",t[22]),n=!0)},p(o,f){o[0].disableModals?i&&(cn(),st(i,1,1,()=>{i=null}),un()):i?(i.p(o,f),f[0]&1&&Je(i,1)):(i=j8(o),i.c(),Je(i,1),i.m(e.parentNode,e))},i(o){r||(Je(i),r=!0)},o(o){st(i),r=!1},d(o){i&&i.d(o),o&&rt(e),n=!1,s()}}}function YJ(t,e,r){let n,s,i,o;Pi(t,Pf,S=>r(13,o=S));let{autoSelect:f}=e;const{appMetadata:u}=Kn,{icon:h}=u||{},{walletModules:p,connect:d}=rr.get(),v=new Bf;let w=!1,A=!1,M=[],R,N,C,B,O,D;const q=new s1("selectingWallet");Pi(t,q,S=>r(5,i=S)),Xs.pipe(G9((S,y)=>S.autoSelect&&y.autoSelect&&S.autoSelect.disableModals===y.autoSelect.disableModals),sd(({autoSelect:S})=>S&&S.disableModals===!1),rp(S8)).subscribe(()=>{R&&g()});async function W({label:S,icon:y,getInterface:l}){r(8,C=S);try{const E=rr.get().wallets.find(Z=>Z.label===S);if(E){sA(E);try{await nX(E.provider),setTimeout(()=>c("connectedWallet"),1)}catch(Z){const{code:ee}=Z;(ee===Mo.UNSUPPORTED_METHOD||ee===Mo.DOES_NOT_EXIST)&&Xs.next({inProgress:!1,actionRequired:E.label})}r(3,R=E);return}const{chains:Y}=rr.get(),{provider:L,instance:F}=await l({chains:Y,BigNumber:$A,EventEmitter:aY,appMetadata:u}),V=await y;r(3,R={label:S,icon:V,provider:L,instance:F,accounts:[],chains:[{namespace:"evm",id:"0x1"}]}),r(9,B=""),m(),setTimeout(()=>c("connectingWallet"),1)}catch(E){const{message:Y}=E;r(9,B=Y),r(8,C=""),m()}}function k(){r(3,R=null)}function I(S){r(3,R={...R,...S})}async function H(S){const{getIcon:y,getInterface:l,label:E}=S,Y=y();W({label:E,icon:Y,getInterface:l})}async function P(){r(2,M=p.map(({getIcon:S,getInterface:y,label:l})=>({label:l,icon:S(),getInterface:y})))}function T(){Xs.next({inProgress:!1})}async function g(){r(1,w=!1);const{provider:S,label:y}=R;v.next();try{const[l]=await Promise.race([rX(S),kv(v.pipe($6([])))]);if(!l)return;rr.get().connect.autoConnectLastWallet&&LR(V0.LAST_CONNECTED_WALLET,y);const E=await iX(S);if(rr.get().notify.enabled){const L=await iv();if(L)try{L.subscribe({id:l,chainId:E,type:"account"})}catch{}}const Y={accounts:[{address:l,ens:null,uns:null,balance:null}],chains:[{namespace:"evm",id:E}]};sA({...R,...Y}),aX(S,y),I(Y),c("connectedWallet"),m()}catch(l){const{code:E}=l;if(m(),E===Mo.ACCOUNT_ACCESS_REJECTED){r(1,w=!0),f.disableModals?Xs.next({inProgress:!1}):f.label&&r(0,f.label="",f);return}if(E===Mo.ACCOUNT_ACCESS_ALREADY_REQUESTED){if(r(6,A=!0),f.disableModals){Xs.next({inProgress:!1});return}mN({provider:R.provider,disconnected$:Xs.pipe(sd(({inProgress:Y})=>!Y),$6(""))}).pipe(VA(1)).subscribe(([Y])=>{Y&&g()});return}}}async function a(){const{accounts:S,chains:y}=R,l=rr.get().chains,[E]=y,Y=l.find(({namespace:ee,id:ce})=>ee===E.namespace&&ce===E.id),{address:L}=S[0];let{balance:F,ens:V,uns:Z}=S[0];F===null&&nv(L,Y).then(ee=>{sg(R.label,L,{balance:ee})}),V===null&&tg(E.id)&&aA(L,Y).then(ee=>{sg(R.label,L,{ens:ee})}),Z===null&&oA(L,Y).then(ee=>{sg(R.label,L,{uns:ee})}),setTimeout(()=>Xs.next({inProgress:!1}),1500)}q.pipe(rp(S8)).subscribe(S=>{switch(S){case"selectingWallet":{if(f.label){const y=p.find(({label:l})=>l.toLowerCase()===f.label.toLowerCase());y?H(y):f.disableModals&&Xs.next({inProgress:!1})}else r(8,C=""),P();break}case"connectingWallet":{g();break}case"connectedWallet":{r(8,C=""),a();break}}});function c(S){v.next(),q.next(S)}function m(){D&&D.scrollTo(0,0)}function b(){r(4,O=window.innerWidth)}function x(S){N=S,r(7,N)}function _(S){tv[S?"unshift":"push"](()=>{D=S,r(10,D)})}return t.$$set=S=>{"autoSelect"in S&&r(0,f=S.autoSelect)},t.$$.update=()=>{t.$$.dirty[0]&4&&r(12,n=M.length-rr.get().wallets.length),t.$$.dirty[0]&58&&r(11,s=i==="connectingWallet"&&R&&O>=Li||O<=Li&&w&&i==="connectingWallet"&&R)},[f,w,M,R,O,i,A,N,C,B,D,s,n,o,h,d,q,W,k,T,g,c,b,x,_]}class QJ extends ri{constructor(e){super(),ti(this,e,YJ,ZJ,$n,{autoSelect:0},LJ,[-1,-1])}}function XJ(t){ei(t,"svelte-12yam41",".container.svelte-12yam41{padding:var(--onboard-spacing-4, var(--spacing-4));font-family:var(--onboard-font-family-normal, var(--font-family-normal));line-height:16px;font-size:var(--onboard-font-size-5, var(--font-size-5))}.close.svelte-12yam41{top:var(--onboard-spacing-5, var(--spacing-5));right:var(--onboard-spacing-5, var(--spacing-5));padding:0.5rem}h4.svelte-12yam41{font-size:var(--onboard-font-size-3, var(--font-size-3));margin:var(--onboard-spacing-4, var(--spacing-4)) 0}p.svelte-12yam41{margin:0 0 var(--onboard-spacing-4, var(--spacing-4)) 0;max-width:488px}")}function JJ(t){let e,r,n=t[0]("modals.switchChain.heading",{default:vr.modals.switchChain.heading})+"",s,i,o,f=t[0]("modals.switchChain.paragraph1",{default:vr.modals.switchChain.paragraph1,values:{app:t[1]&&t[1].name||"This app",nextNetworkName:t[2]}})+"",u,h,p,d=t[0]("modals.switchChain.paragraph2",{default:vr.modals.switchChain.paragraph2})+"",v,w,A,M,R,N,C;return M=new wN({}),{c(){e=Xe("div"),r=Xe("h4"),s=wr(n),i=gt(),o=Xe("p"),u=wr(f),h=gt(),p=Xe("p"),v=wr(d),w=gt(),A=Xe("div"),lr(M.$$.fragment),ve(r,"class","svelte-12yam41"),ve(o,"class","svelte-12yam41"),ve(p,"class","svelte-12yam41"),ve(A,"class","close absolute svelte-12yam41"),ve(e,"class","container relative svelte-12yam41")},m(B,O){it(B,e,O),Ce(e,r),Ce(r,s),Ce(e,i),Ce(e,o),Ce(o,u),Ce(e,h),Ce(e,p),Ce(p,v),Ce(e,w),Ce(e,A),ir(M,A,null),R=!0,N||(C=gs(A,"click",t[3]),N=!0)},p(B,O){(!R||O&1)&&n!==(n=B[0]("modals.switchChain.heading",{default:vr.modals.switchChain.heading})+"")&&$r(s,n),(!R||O&1)&&f!==(f=B[0]("modals.switchChain.paragraph1",{default:vr.modals.switchChain.paragraph1,values:{app:B[1]&&B[1].name||"This app",nextNetworkName:B[2]}})+"")&&$r(u,f),(!R||O&1)&&d!==(d=B[0]("modals.switchChain.paragraph2",{default:vr.modals.switchChain.paragraph2})+"")&&$r(v,d)},i(B){R||(Je(M.$$.fragment,B),R=!0)},o(B){st(M.$$.fragment,B),R=!1},d(B){B&&rt(e),sr(M),N=!1,C()}}}function $J(t){let e,r;return e=new S6({props:{close:t[3],$$slots:{default:[JJ]},$$scope:{ctx:t}}}),{c(){lr(e.$$.fragment)},m(n,s){ir(e,n,s),r=!0},p(n,[s]){const i={};s&33&&(i.$$scope={dirty:s,ctx:n}),e.$set(i)},i(n){r||(Je(e.$$.fragment,n),r=!0)},o(n){st(e.$$.fragment,n),r=!1},d(n){sr(e,n)}}}function e$(t,e,r){let n,s;Pi(t,Md,u=>r(4,n=u)),Pi(t,Pf,u=>r(0,s=u));const{appMetadata:i}=Kn,o=n.chain.label;function f(){Md.next(null)}return[s,i,o,f]}class t$ extends ri{constructor(e){super(),ti(this,e,e$,$J,$n,{},XJ)}}function r$(t){ei(t,"svelte-z54y2j",".icon.svelte-z54y2j{border-radius:50px;color:var(--onboard-primary-500, var(--primary-500))}")}function n$(t){let e,r;return{c(){e=Xe("div"),ve(e,"class","icon flex svelte-z54y2j"),ve(e,"style",r=`width: ${t[0]}px; height: ${t[0]}px;`)},m(n,s){it(n,e,s),e.innerHTML=o6},p(n,[s]){s&1&&r!==(r=`width: ${n[0]}px; height: ${n[0]}px;`)&&ve(e,"style",r)},i:et,o:et,d(n){n&&rt(e)}}}function i$(t,e,r){let{size:n=20}=e;return t.$$set=s=>{"size"in s&&r(0,n=s.size)},[n]}class s$ extends ri{constructor(e){super(),ti(this,e,i$,n$,$n,{size:0},r$)}}function a$(t){ei(t,"svelte-1pfpbt8",`.content.svelte-1pfpbt8{padding:1rem;width:300px;font-family:var(--onboard-font-family-normal, var(--font-family-normal));font-size:var(--onboard-font-size-5, var(--font-size-5));line-height:24px;background:var( - --onboard-action-required-modal-background, - var(--onboard-white, var(--white)) - )}.icon-container.svelte-1pfpbt8{width:3rem;height:3rem;background:var(--onboard-primary-100, var(--primary-100));border-radius:24px}h4.svelte-1pfpbt8{margin:1.5rem 0 0.5rem 0;font-weight:700}.action-required-heading.svelte-1pfpbt8,.action-required-info.svelte-1pfpbt8{color:var( - --onboard-action-required-text-color, - var(--onboard-black, inherit) - )}.action-required-btn.svelte-1pfpbt8{color:var( - --onboard-action-required-btn-text-color, - var(--onboard-black, inherit) - )}p.svelte-1pfpbt8{margin:0;font-weight:400}a.svelte-1pfpbt8{font-weight:700}button.svelte-1pfpbt8{margin-top:1.5rem;font-weight:700}`)}function G8(t){let e,r=t[1]("modals.actionRequired.linkText")+"",n;return{c(){e=Xe("a"),n=wr(r),ve(e,"href","https://metamask.zendesk.com/hc/en-us/articles/360061346311-Switching-accounts-in-MetaMask"),ve(e,"target","_blank"),ve(e,"rel","noreferrer noopener"),ve(e,"class","svelte-1pfpbt8")},m(s,i){it(s,e,i),Ce(e,n)},p(s,i){i&2&&r!==(r=s[1]("modals.actionRequired.linkText")+"")&&$r(n,r)},d(s){s&&rt(e)}}}function o$(t){let e,r,n,s,i,o=t[1]("modals.actionRequired.heading",{values:{wallet:t[0]}})+"",f,u,h,p=t[1]("modals.actionRequired.paragraph")+"",d,v,w,A,M=t[1]("modals.actionRequired.buttonText")+"",R,N,C,B;n=new s$({});let O=t[0]==="MetaMask"&&G8(t);return{c(){e=Xe("div"),r=Xe("div"),lr(n.$$.fragment),s=gt(),i=Xe("h4"),f=wr(o),u=gt(),h=Xe("p"),d=wr(p),v=gt(),O&&O.c(),w=gt(),A=Xe("button"),R=wr(M),ve(r,"class","icon-container flex justify-center items-center svelte-1pfpbt8"),ve(i,"class","action-required-heading svelte-1pfpbt8"),ve(h,"class","action-required-info svelte-1pfpbt8"),ve(A,"class","button-neutral-solid rounded action-required-btn svelte-1pfpbt8"),ve(e,"class","content svelte-1pfpbt8")},m(D,q){it(D,e,q),Ce(e,r),ir(n,r,null),Ce(e,s),Ce(e,i),Ce(i,f),Ce(e,u),Ce(e,h),Ce(h,d),Ce(h,v),O&&O.m(h,null),Ce(e,w),Ce(e,A),Ce(A,R),N=!0,C||(B=gs(A,"click",t[2]),C=!0)},p(D,q){(!N||q&3)&&o!==(o=D[1]("modals.actionRequired.heading",{values:{wallet:D[0]}})+"")&&$r(f,o),(!N||q&2)&&p!==(p=D[1]("modals.actionRequired.paragraph")+"")&&$r(d,p),D[0]==="MetaMask"?O?O.p(D,q):(O=G8(D),O.c(),O.m(h,null)):O&&(O.d(1),O=null),(!N||q&2)&&M!==(M=D[1]("modals.actionRequired.buttonText")+"")&&$r(R,M)},i(D){N||(Je(n.$$.fragment,D),N=!0)},o(D){st(n.$$.fragment,D),N=!1},d(D){D&&rt(e),sr(n),O&&O.d(),C=!1,B()}}}function f$(t){let e,r;return e=new S6({props:{close:t[2],$$slots:{default:[o$]},$$scope:{ctx:t}}}),{c(){lr(e.$$.fragment)},m(n,s){ir(e,n,s),r=!0},p(n,[s]){const i={};s&11&&(i.$$scope={dirty:s,ctx:n}),e.$set(i)},i(n){r||(Je(e.$$.fragment,n),r=!0)},o(n){st(e.$$.fragment,n),r=!1},d(n){sr(e,n)}}}function l$(t,e,r){let n;Pi(t,Pf,o=>r(1,n=o));let{wallet:s}=e;function i(){Xs.next({inProgress:!1,actionRequired:""})}return t.$$set=o=>{"wallet"in o&&r(0,s=o.wallet)},[s,n,i]}class c$ extends ri{constructor(e){super(),ti(this,e,l$,f$,$n,{wallet:0},a$)}}function u$(t){ei(t,"svelte-1mvm68y",`.flex{display:flex}.inline-flex{display:inline-flex}.flex-column{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}.justify-around{justify-content:space-around}.relative{position:relative}.absolute{position:absolute}.fixed{position:fixed}.pointer{cursor:pointer}.shadow-1{box-shadow:var(--onboard-shadow-1, var(--shadow-1))}.w-100{width:100%}*{box-sizing:border-box}input{background:var(--onboard-white, var(--white))}input{width:100%;padding:0.5rem 1rem;outline:2px solid var(--onboard-gray-200, var(--gray-200));border:none;border-radius:8px;font-size:1rem;line-height:1.5;color:var(--onboard-gray-600, var(--gray-600));transition:all 200ms ease-in-out}input[type='checkbox']{-webkit-appearance:none;width:auto;background:var(--onboard-white, var(--white));outline:1px solid var(--onboard-gray-300, var(--gray-300));border:none;padding:0.5em;border-radius:3px;display:flex;justify-content:center;align-items:center;position:relative;cursor:pointer}input[type='checkbox']:hover{border-color:var( - --onboard-checkbox-background, - var(--onboard-primary-500, var(--primary-500)) - )}input[type='checkbox']:checked{background:var( - --onboard-checkbox-background, - var(--onboard-primary-500, var(--primary-500)) - );border-color:var( - --onboard-checkbox-background, - var(--onboard-primary-500, var(--primary-500)) - );color:var(--onboard-checkbox-color, var(--onboard-white, var(--white)))}input[type='checkbox']:checked:after{content:url("data:image/svg+xml,%3Csvg width='0.885em' height='0.6em' viewBox='0 0 14 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 6L5 11L14 2L12.59 0.58L5 8.17L1.41 4.59L0 6Z' fill='white'/%3E%3C/svg%3E");font-size:12px;position:absolute;color:var(--onboard-checkbox-color, var(--onboard-white, var(--white)))}input:hover{border-color:var( - --onboard-checkbox-color, - var(--onboard-white, var(--white)) - )}input:focus{border-color:var(--onboard-primary-500, var(--primary-500));box-shadow:0 0 1px 1px - var( - --onboard-checkbox-background, - var(--onboard-primary-500, var(--primary-500)) - );box-shadow:0 0 0 1px -moz-mac-focusring}input:disabled, textarea:disabled, select:disabled{background:var(--gray-100)}input::-moz-focus-inner{outline:0;padding:0;margin-top:-2px;margin-bottom:-2px}a{color:var( - --onboard-link-color, - var(--onboard-primary-500, var(--primary-500)) - );text-decoration:none}a:hover{text-decoration:underline}button{display:flex;align-items:center;justify-content:center;padding:calc(var(--onboard-spacing-4, var(--spacing-4)) - 1px);border-radius:24px;cursor:pointer;font:inherit;border:none;transition:background-color 150ms ease-in-out, color 150ms ease-in-out}.onboard-button-primary{background:var(--onboard-white, var(--white));padding:calc(var(--onboard-spacing-5, var(--spacing-5)) - 1px) - calc(var(--onboard-spacing-4, var(--spacing-4)) - 1px);color:var(--onboard-gray-500, var(--gray-500));font-size:var(--onboard-font-size-6, var(--font-size-6));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));border:1px solid var(--onboard-gray-500, var(--gray-500));font-weight:700}.button-neutral-solid{width:100%;border-radius:8px;background:var(--onboard-gray-500, var(--gray-500));color:var(--onboard-white, var(--white));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3))}.button-neutral-solid-b{width:100%;background:var(--onboard-gray-100, var(--gray-100));color:var(--onboard-gray-500, var(--gray-500));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3))}button.rounded{border-radius:24px}.button-neutral-solid:hover{background:var(--onboard-gray-700, var(--gray-700))}.button-neutral-solid-b:hover{background:var(--onboard-gray-200, var(--gray-200))}.button-neutral-solid:active{color:var(--onboard-gray-300, var(--gray-300))}.button-neutral-solid-b:active{color:var(--onboard-gray-600, var(--gray-600));background:var(--onboard-gray-300, var(--gray-300))}.container.svelte-1mvm68y{padding:16px;font-family:var(--onboard-font-family-normal, var(--font-family-normal));width:100%;pointer-events:none;touch-action:none}.z-indexed.svelte-1mvm68y{z-index:var(--account-center-z-index)}@media all and (min-width: 428px){.container.svelte-1mvm68y{max-width:348px}}`)}function V8(t){let e,r;return e=new QJ({props:{autoSelect:t[8].autoSelect}}),{c(){lr(e.$$.fragment)},m(n,s){ir(e,n,s),r=!0},p(n,s){const i={};s&256&&(i.autoSelect=n[8].autoSelect),e.$set(i)},i(n){r||(Je(e.$$.fragment,n),r=!0)},o(n){st(e.$$.fragment,n),r=!1},d(n){sr(e,n)}}}function W8(t){let e,r;return e=new c$({props:{wallet:t[8].actionRequired}}),{c(){lr(e.$$.fragment)},m(n,s){ir(e,n,s),r=!0},p(n,s){const i={};s&256&&(i.wallet=n[8].actionRequired),e.$set(i)},i(n){r||(Je(e.$$.fragment,n),r=!0)},o(n){st(e.$$.fragment,n),r=!1},d(n){sr(e,n)}}}function Z8(t){let e,r;return e=new t$({}),{c(){lr(e.$$.fragment)},m(n,s){ir(e,n,s),r=!0},i(n){r||(Je(e.$$.fragment,n),r=!0)},o(n){st(e.$$.fragment,n),r=!1},d(n){sr(e,n)}}}function Y8(t){let e;return{c(){e=Xe("div"),ve(e,"class","container flex flex-column fixed z-indexed svelte-1mvm68y"),ve(e,"style","top: 0; right: 0; "+(t[11].type==="mobile"?"padding-bottom: 0;":"")),ve(e,"id","w3o-transaction-preview-container")},m(r,n){it(r,e,n)},p:et,d(r){r&&rt(e)}}}function Q8(t){let e,r=t[3].position.includes("bottom")&&t[1].position.includes("bottom")&&t[7],n,s=t[1].position.includes("bottom"),i,o,f,u,h=t[1].position.includes("top"),p,d=t[3].position.includes("top")&&t[1].position.includes("top")&&t[7],v,w,A=r&&X8(t),M=s&&J8(),R={ctx:t,current:null,token:null,hasCatch:!1,pending:b$,then:v$,catch:g$,value:23,blocks:[,,,]};Vc(t[16],R);let N=h&&$8(),C=d&&eE(t);return{c(){e=Xe("div"),A&&A.c(),n=gt(),M&&M.c(),i=gt(),o=Xe("div"),R.block.c(),u=gt(),N&&N.c(),p=gt(),C&&C.c(),ve(o,"style",f=!t[1].expanded&&t[1].minimal&&t[1].position.includes("Right")?"margin-left: auto":!t[1].expanded&&t[1].minimal&&t[1].position.includes("Left")?"margin-right: auto":""),ve(o,"id","account-center-with-notify"),ve(e,"class","container flex flex-column fixed z-indexed svelte-1mvm68y"),ve(e,"style",v=t[15](sv)[t[1].position]+"; "+(t[11].type==="mobile"&&t[1].position.includes("top")?"padding-bottom: 0;":t[11].type==="mobile"&&t[1].position.includes("bottom")?"padding-top:0;":""))},m(B,O){it(B,e,O),A&&A.m(e,null),Ce(e,n),M&&M.m(e,null),Ce(e,i),Ce(e,o),R.block.m(o,R.anchor=null),R.mount=()=>o,R.anchor=null,Ce(e,u),N&&N.m(e,null),Ce(e,p),C&&C.m(e,null),w=!0},p(B,O){t=B,O&138&&(r=t[3].position.includes("bottom")&&t[1].position.includes("bottom")&&t[7]),r?A?(A.p(t,O),O&138&&Je(A,1)):(A=X8(t),A.c(),Je(A,1),A.m(e,n)):A&&(cn(),st(A,1,1,()=>{A=null}),un()),O&2&&(s=t[1].position.includes("bottom")),s?M||(M=J8(),M.c(),M.m(e,i)):M&&(M.d(1),M=null),Gd(R,t,O),(!w||O&2&&f!==(f=!t[1].expanded&&t[1].minimal&&t[1].position.includes("Right")?"margin-left: auto":!t[1].expanded&&t[1].minimal&&t[1].position.includes("Left")?"margin-right: auto":""))&&ve(o,"style",f),O&2&&(h=t[1].position.includes("top")),h?N||(N=$8(),N.c(),N.m(e,p)):N&&(N.d(1),N=null),O&138&&(d=t[3].position.includes("top")&&t[1].position.includes("top")&&t[7]),d?C?(C.p(t,O),O&138&&Je(C,1)):(C=eE(t),C.c(),Je(C,1),C.m(e,null)):C&&(cn(),st(C,1,1,()=>{C=null}),un()),(!w||O&2&&v!==(v=t[15](sv)[t[1].position]+"; "+(t[11].type==="mobile"&&t[1].position.includes("top")?"padding-bottom: 0;":t[11].type==="mobile"&&t[1].position.includes("bottom")?"padding-top:0;":"")))&&ve(e,"style",v)},i(B){w||(Je(A),Je(R.block),Je(C),w=!0)},o(B){st(A);for(let O=0;O<3;O+=1){const D=R.blocks[O];st(D)}st(C),w=!1},d(B){B&&rt(e),A&&A.d(),M&&M.d(),R.block.d(),R.token=null,R=null,N&&N.d(),C&&C.d()}}}function X8(t){let e,r,n={ctx:t,current:null,token:null,hasCatch:!1,pending:m$,then:d$,catch:h$,value:22,blocks:[,,,]};return Vc(t[17],n),{c(){e=rn(),n.block.c()},m(s,i){it(s,e,i),n.block.m(s,n.anchor=i),n.mount=()=>e.parentNode,n.anchor=e,r=!0},p(s,i){t=s,Gd(n,t,i)},i(s){r||(Je(n.block),r=!0)},o(s){for(let i=0;i<3;i+=1){const o=n.blocks[i];st(o)}r=!1},d(s){s&&rt(e),n.block.d(s),n.token=null,n=null}}}function h$(t){return{c:et,m:et,p:et,i:et,o:et,d:et}}function d$(t){let e,r,n=t[22]&&p$(t);return{c(){n&&n.c(),e=rn()},m(s,i){n&&n.m(s,i),it(s,e,i),r=!0},p(s,i){s[22]&&n.p(s,i)},i(s){r||(Je(n),r=!0)},o(s){st(n),r=!1},d(s){n&&n.d(s),s&&rt(e)}}}function p$(t){let e,r,n;var s=t[22];function i(o){return{props:{notifications:o[10],position:o[3].position,sharedContainer:o[0]}}}return s&&(e=Lo(s,i(t))),{c(){e&&lr(e.$$.fragment),r=rn()},m(o,f){e&&ir(e,o,f),it(o,r,f),n=!0},p(o,f){const u={};if(f&1024&&(u.notifications=o[10]),f&8&&(u.position=o[3].position),f&1&&(u.sharedContainer=o[0]),s!==(s=o[22])){if(e){cn();const h=e;st(h.$$.fragment,1,0,()=>{sr(h,1)}),un()}s?(e=Lo(s,i(o)),lr(e.$$.fragment),Je(e.$$.fragment,1),ir(e,r.parentNode,r)):e=null}else s&&e.$set(u)},i(o){n||(e&&Je(e.$$.fragment,o),n=!0)},o(o){e&&st(e.$$.fragment,o),n=!1},d(o){o&&rt(r),e&&sr(e,o)}}}function m$(t){return{c:et,m:et,p:et,i:et,o:et,d:et}}function J8(t){let e;return{c(){e=Xe("div"),ve(e,"id","w3o-transaction-preview-container"),Ao(e,"margin-bottom","8px")},m(r,n){it(r,e,n)},d(r){r&&rt(e)}}}function g$(t){return{c:et,m:et,p:et,i:et,o:et,d:et}}function v$(t){let e,r,n=t[23]&&y$(t);return{c(){n&&n.c(),e=rn()},m(s,i){n&&n.m(s,i),it(s,e,i),r=!0},p(s,i){s[23]&&n.p(s,i)},i(s){r||(Je(n),r=!0)},o(s){st(n),r=!1},d(s){n&&n.d(s),s&&rt(e)}}}function y$(t){let e,r,n;var s=t[23];function i(o){return{}}return s&&(e=Lo(s,i())),{c(){e&&lr(e.$$.fragment),r=rn()},m(o,f){e&&ir(e,o,f),it(o,r,f),n=!0},p(o,f){if(s!==(s=o[23])){if(e){cn();const u=e;st(u.$$.fragment,1,0,()=>{sr(u,1)}),un()}s?(e=Lo(s,i()),lr(e.$$.fragment),Je(e.$$.fragment,1),ir(e,r.parentNode,r)):e=null}},i(o){n||(e&&Je(e.$$.fragment,o),n=!0)},o(o){e&&st(e.$$.fragment,o),n=!1},d(o){o&&rt(r),e&&sr(e,o)}}}function b$(t){return{c:et,m:et,p:et,i:et,o:et,d:et}}function $8(t){let e;return{c(){e=Xe("div"),ve(e,"id","w3o-transaction-preview-container"),Ao(e,"margin-top","8px")},m(r,n){it(r,e,n)},d(r){r&&rt(e)}}}function eE(t){let e,r,n={ctx:t,current:null,token:null,hasCatch:!1,pending:E$,then:A$,catch:w$,value:22,blocks:[,,,]};return Vc(t[17],n),{c(){e=rn(),n.block.c()},m(s,i){it(s,e,i),n.block.m(s,n.anchor=i),n.mount=()=>e.parentNode,n.anchor=e,r=!0},p(s,i){t=s,Gd(n,t,i)},i(s){r||(Je(n.block),r=!0)},o(s){for(let i=0;i<3;i+=1){const o=n.blocks[i];st(o)}r=!1},d(s){s&&rt(e),n.block.d(s),n.token=null,n=null}}}function w$(t){return{c:et,m:et,p:et,i:et,o:et,d:et}}function A$(t){let e,r,n=t[22]&&x$(t);return{c(){n&&n.c(),e=rn()},m(s,i){n&&n.m(s,i),it(s,e,i),r=!0},p(s,i){s[22]&&n.p(s,i)},i(s){r||(Je(n),r=!0)},o(s){st(n),r=!1},d(s){n&&n.d(s),s&&rt(e)}}}function x$(t){let e,r,n;var s=t[22];function i(o){return{props:{notifications:o[10],position:o[3].position,sharedContainer:o[0]}}}return s&&(e=Lo(s,i(t))),{c(){e&&lr(e.$$.fragment),r=rn()},m(o,f){e&&ir(e,o,f),it(o,r,f),n=!0},p(o,f){const u={};if(f&1024&&(u.notifications=o[10]),f&8&&(u.position=o[3].position),f&1&&(u.sharedContainer=o[0]),s!==(s=o[22])){if(e){cn();const h=e;st(h.$$.fragment,1,0,()=>{sr(h,1)}),un()}s?(e=Lo(s,i(o)),lr(e.$$.fragment),Je(e.$$.fragment,1),ir(e,r.parentNode,r)):e=null}else s&&e.$set(u)},i(o){n||(e&&Je(e.$$.fragment,o),n=!0)},o(o){e&&st(e.$$.fragment,o),n=!1},d(o){o&&rt(r),e&&sr(e,o)}}}function E$(t){return{c:et,m:et,p:et,i:et,o:et,d:et}}function tE(t){let e,r=t[1].position.includes("bottom"),n,s,i,o,f=t[1].position.includes("top"),u,h,p=r&&rE(),d=t[1].enabled&&t[2].length&&nE(t),v=f&&iE();return{c(){e=Xe("div"),p&&p.c(),n=gt(),s=Xe("div"),d&&d.c(),o=gt(),v&&v.c(),ve(s,"style",i=!t[1].expanded&&t[1].minimal&&t[1].position.includes("Right")?"margin-left: auto":!t[1].expanded&&t[1].minimal&&t[1].position.includes("Left")?"margin-right: auto":""),ve(e,"class","container flex flex-column fixed z-indexed svelte-1mvm68y"),ve(e,"style",u=t[15](sv)[t[1].position]+"; "+(t[11].type==="mobile"&&t[1].position.includes("top")?"padding-bottom: 0;":t[11].type==="mobile"&&t[1].position.includes("bottom")?"padding-top:0;":""))},m(w,A){it(w,e,A),p&&p.m(e,null),Ce(e,n),Ce(e,s),d&&d.m(s,null),Ce(e,o),v&&v.m(e,null),h=!0},p(w,A){A&2&&(r=w[1].position.includes("bottom")),r?p||(p=rE(),p.c(),p.m(e,n)):p&&(p.d(1),p=null),w[1].enabled&&w[2].length?d?(d.p(w,A),A&6&&Je(d,1)):(d=nE(w),d.c(),Je(d,1),d.m(s,null)):d&&(cn(),st(d,1,1,()=>{d=null}),un()),(!h||A&2&&i!==(i=!w[1].expanded&&w[1].minimal&&w[1].position.includes("Right")?"margin-left: auto":!w[1].expanded&&w[1].minimal&&w[1].position.includes("Left")?"margin-right: auto":""))&&ve(s,"style",i),A&2&&(f=w[1].position.includes("top")),f?v||(v=iE(),v.c(),v.m(e,null)):v&&(v.d(1),v=null),(!h||A&2&&u!==(u=w[15](sv)[w[1].position]+"; "+(w[11].type==="mobile"&&w[1].position.includes("top")?"padding-bottom: 0;":w[11].type==="mobile"&&w[1].position.includes("bottom")?"padding-top:0;":"")))&&ve(e,"style",u)},i(w){h||(Je(d),h=!0)},o(w){st(d),h=!1},d(w){w&&rt(e),p&&p.d(),d&&d.d(),v&&v.d()}}}function rE(t){let e;return{c(){e=Xe("div"),ve(e,"id","w3o-transaction-preview-container"),Ao(e,"margin-bottom","8px")},m(r,n){it(r,e,n)},d(r){r&&rt(e)}}}function nE(t){let e,r,n={ctx:t,current:null,token:null,hasCatch:!1,pending:R$,then:S$,catch:M$,value:23,blocks:[,,,]};return Vc(t[16],n),{c(){e=rn(),n.block.c()},m(s,i){it(s,e,i),n.block.m(s,n.anchor=i),n.mount=()=>e.parentNode,n.anchor=e,r=!0},p(s,i){t=s,Gd(n,t,i)},i(s){r||(Je(n.block),r=!0)},o(s){for(let i=0;i<3;i+=1){const o=n.blocks[i];st(o)}r=!1},d(s){s&&rt(e),n.block.d(s),n.token=null,n=null}}}function M$(t){return{c:et,m:et,p:et,i:et,o:et,d:et}}function S$(t){let e,r,n=t[23]&&_$(t);return{c(){n&&n.c(),e=rn()},m(s,i){n&&n.m(s,i),it(s,e,i),r=!0},p(s,i){s[23]&&n.p(s,i)},i(s){r||(Je(n),r=!0)},o(s){st(n),r=!1},d(s){n&&n.d(s),s&&rt(e)}}}function _$(t){let e,r,n;var s=t[23];function i(o){return{}}return s&&(e=Lo(s,i())),{c(){e&&lr(e.$$.fragment),r=rn()},m(o,f){e&&ir(e,o,f),it(o,r,f),n=!0},p(o,f){if(s!==(s=o[23])){if(e){cn();const u=e;st(u.$$.fragment,1,0,()=>{sr(u,1)}),un()}s?(e=Lo(s,i()),lr(e.$$.fragment),Je(e.$$.fragment,1),ir(e,r.parentNode,r)):e=null}},i(o){n||(e&&Je(e.$$.fragment,o),n=!0)},o(o){e&&st(e.$$.fragment,o),n=!1},d(o){o&&rt(r),e&&sr(e,o)}}}function R$(t){return{c:et,m:et,p:et,i:et,o:et,d:et}}function iE(t){let e;return{c(){e=Xe("div"),ve(e,"id","w3o-transaction-preview-container"),Ao(e,"margin-top","8px")},m(r,n){it(r,e,n)},d(r){r&&rt(e)}}}function sE(t){let e,r=t[3].position.includes("top"),n,s,i=t[3].position.includes("bottom"),o,f,u=r&&aE(),h={ctx:t,current:null,token:null,hasCatch:!1,pending:k$,then:C$,catch:N$,value:22,blocks:[,,,]};Vc(t[17],h);let p=i&&oE();return{c(){e=Xe("div"),u&&u.c(),n=gt(),h.block.c(),s=gt(),p&&p.c(),ve(e,"class","container flex flex-column fixed z-indexed svelte-1mvm68y"),ve(e,"style",o=t[15](fE)[t[3].position]+"; "+(t[11].type==="mobile"&&t[3].position.includes("top")?"padding-bottom: 0;":t[11].type==="mobile"&&t[3].position.includes("bottom")?"padding-top:0;":""))},m(d,v){it(d,e,v),u&&u.m(e,null),Ce(e,n),h.block.m(e,h.anchor=null),h.mount=()=>e,h.anchor=s,Ce(e,s),p&&p.m(e,null),f=!0},p(d,v){t=d,v&8&&(r=t[3].position.includes("top")),r?u||(u=aE(),u.c(),u.m(e,n)):u&&(u.d(1),u=null),Gd(h,t,v),v&8&&(i=t[3].position.includes("bottom")),i?p||(p=oE(),p.c(),p.m(e,null)):p&&(p.d(1),p=null),(!f||v&8&&o!==(o=t[15](fE)[t[3].position]+"; "+(t[11].type==="mobile"&&t[3].position.includes("top")?"padding-bottom: 0;":t[11].type==="mobile"&&t[3].position.includes("bottom")?"padding-top:0;":"")))&&ve(e,"style",o)},i(d){f||(Je(h.block),f=!0)},o(d){for(let v=0;v<3;v+=1){const w=h.blocks[v];st(w)}f=!1},d(d){d&&rt(e),u&&u.d(),h.block.d(),h.token=null,h=null,p&&p.d()}}}function aE(t){let e;return{c(){e=Xe("div"),ve(e,"id","w3o-transaction-preview-container")},m(r,n){it(r,e,n)},d(r){r&&rt(e)}}}function N$(t){return{c:et,m:et,p:et,i:et,o:et,d:et}}function C$(t){let e,r,n=t[22]&&T$(t);return{c(){n&&n.c(),e=rn()},m(s,i){n&&n.m(s,i),it(s,e,i),r=!0},p(s,i){s[22]&&n.p(s,i)},i(s){r||(Je(n),r=!0)},o(s){st(n),r=!1},d(s){n&&n.d(s),s&&rt(e)}}}function T$(t){let e,r,n;var s=t[22];function i(o){return{props:{notifications:o[10],position:o[3].position,sharedContainer:o[0]}}}return s&&(e=Lo(s,i(t))),{c(){e&&lr(e.$$.fragment),r=rn()},m(o,f){e&&ir(e,o,f),it(o,r,f),n=!0},p(o,f){const u={};if(f&1024&&(u.notifications=o[10]),f&8&&(u.position=o[3].position),f&1&&(u.sharedContainer=o[0]),s!==(s=o[22])){if(e){cn();const h=e;st(h.$$.fragment,1,0,()=>{sr(h,1)}),un()}s?(e=Lo(s,i(o)),lr(e.$$.fragment),Je(e.$$.fragment,1),ir(e,r.parentNode,r)):e=null}else s&&e.$set(u)},i(o){n||(e&&Je(e.$$.fragment,o),n=!0)},o(o){e&&st(e.$$.fragment,o),n=!1},d(o){o&&rt(r),e&&sr(e,o)}}}function k$(t){return{c:et,m:et,p:et,i:et,o:et,d:et}}function oE(t){let e;return{c(){e=Xe("div"),ve(e,"id","w3o-transaction-preview-container")},m(r,n){it(r,e,n)},d(r){r&&rt(e)}}}function B$(t){let e,r,n,s,i,o,f,u,h=t[8].inProgress&&V8(t),p=t[8].actionRequired&&W8(t),d=t[9]&&Z8(),v=!t[1].enabled&&!t[3].enabled&&Y8(t),w=t[4]&&Q8(t),A=t[5]&&tE(t),M=t[6]&&sE(t);return{c(){h&&h.c(),e=gt(),p&&p.c(),r=gt(),d&&d.c(),n=gt(),v&&v.c(),s=gt(),w&&w.c(),i=gt(),A&&A.c(),o=gt(),M&&M.c(),f=rn()},m(R,N){h&&h.m(R,N),it(R,e,N),p&&p.m(R,N),it(R,r,N),d&&d.m(R,N),it(R,n,N),v&&v.m(R,N),it(R,s,N),w&&w.m(R,N),it(R,i,N),A&&A.m(R,N),it(R,o,N),M&&M.m(R,N),it(R,f,N),u=!0},p(R,[N]){R[8].inProgress?h?(h.p(R,N),N&256&&Je(h,1)):(h=V8(R),h.c(),Je(h,1),h.m(e.parentNode,e)):h&&(cn(),st(h,1,1,()=>{h=null}),un()),R[8].actionRequired?p?(p.p(R,N),N&256&&Je(p,1)):(p=W8(R),p.c(),Je(p,1),p.m(r.parentNode,r)):p&&(cn(),st(p,1,1,()=>{p=null}),un()),R[9]?d?N&512&&Je(d,1):(d=Z8(),d.c(),Je(d,1),d.m(n.parentNode,n)):d&&(cn(),st(d,1,1,()=>{d=null}),un()),!R[1].enabled&&!R[3].enabled?v?v.p(R,N):(v=Y8(R),v.c(),v.m(s.parentNode,s)):v&&(v.d(1),v=null),R[4]?w?(w.p(R,N),N&16&&Je(w,1)):(w=Q8(R),w.c(),Je(w,1),w.m(i.parentNode,i)):w&&(cn(),st(w,1,1,()=>{w=null}),un()),R[5]?A?(A.p(R,N),N&32&&Je(A,1)):(A=tE(R),A.c(),Je(A,1),A.m(o.parentNode,o)):A&&(cn(),st(A,1,1,()=>{A=null}),un()),R[6]?M?(M.p(R,N),N&64&&Je(M,1)):(M=sE(R),M.c(),Je(M,1),M.m(f.parentNode,f)):M&&(cn(),st(M,1,1,()=>{M=null}),un())},i(R){u||(Je(h),Je(p),Je(d),Je(w),Je(A),Je(M),u=!0)},o(R){st(h),st(p),st(d),st(w),st(A),st(M),u=!1},d(R){h&&h.d(R),R&&rt(e),p&&p.d(R),R&&rt(r),d&&d.d(R),R&&rt(n),v&&v.d(R),R&&rt(s),w&&w.d(R),R&&rt(i),A&&A.d(R),R&&rt(o),M&&M.d(R),R&&rt(f)}}}const sv="account-center",fE="notify-onboard-container";function I$(t,e,r){let n,s,i,o,f,u,h,p,d,v,w,A;Pi(t,ky,I=>r(2,p=I)),Pi(t,Xs,I=>r(8,v=I)),Pi(t,Md,I=>r(9,w=I));const{device:M,containerElements:R}=Kn,N=rr.select("accountCenter").pipe(rb(rr.get().accountCenter),sw(1));Pi(t,N,I=>r(1,h=I));const C=rr.select("notify").pipe(rb(rr.get().notify),sw(1));Pi(t,C,I=>r(3,d=I));const B=rr.select("notifications").pipe(rb(rr.get().notifications));Pi(t,B,I=>r(10,A=I));const O=I=>({topLeft:` - top: var(--${I}-position-top, 0); - left: var(--${I}-position-left, 0);`,topRight:` - top: var(--${I}-position-top, 0); - right: var(--${I}-position-right, 0);`,bottomRight:` - bottom: var(--${I}-position-bottom, 0); - right: var(--${I}-position-right, 0);`,bottomLeft:` - bottom: var(--${I}-position-bottom, 0); - left: var(--${I}-position-left, 0);`}),D=h.enabled?vt(()=>import("./Index-c6a19500-8864b476.js"),["assets/Index-c6a19500-8864b476.js","assets/merge-7af99d5f.js","assets/skip-2d52d7ac.js"]).then(I=>I.default):Promise.resolve(null),q=d.enabled?vt(()=>import("./Index-5a58a04a-286652f5.js"),[]).then(I=>I.default):Promise.resolve(null),W=h.enabled&&R&&R.accountCenter,k=(I,H,P,T)=>{const g=I.attachShadow({mode:"open"});let c=document.querySelector("onboard-v2").shadowRoot.styleSheets;const m=new CSSStyleSheet;Object.values(c).forEach(_=>{Object.values(_.cssRules).forEach(y=>m.insertRule(y.cssText))}),g.adoptedStyleSheets=[m];const b=document.querySelector(H);if(b.appendChild(I),!b)throw new Error(`Element with query ${H} does not exist.`);(async()=>{let _=await P;_&&new _({target:g,props:{settings:T,mountInContainer:!0}})})()};if(W){const I=document.createElement("onboard-account-center");k(I,W,D,h)}return t.$$.update=()=>{t.$$.dirty&10&&r(0,n=!W&&h.enabled&&d.enabled&&d.position===h.position),t.$$.dirty&10&&r(7,s=M.type==="mobile"||h.position===d.position),t.$$.dirty&10&&r(18,i=d.position.includes("bottom")&&h.position.includes("bottom")||d.position.includes("top")&&h.position.includes("top")),t.$$.dirty&262158&&r(6,o=d.enabled&&(!h.enabled||W||d.position!==h.position&&M.type!=="mobile"||M.type==="mobile"&&!i||!p.length)),t.$$.dirty&262158&&r(5,f=h.enabled&&(!d.enabled||d.position!==h.position&&M.type!=="mobile"||M.type==="mobile"&&!i)&&p.length),t.$$.dirty&262159&&r(4,u=d.enabled&&h.enabled&&(n||M.type==="mobile"&&i)&&p.length)},[n,h,p,d,u,f,o,s,v,w,A,M,N,C,B,O,D,q,i]}class P$ extends ri{constructor(e){super(),ti(this,e,I$,B$,$n,{},u$)}}let fA;rr.select("notifications").subscribe(t=>{fA=t});async function O$(t){const e=LQ(t);if(e)throw e;const{sendTransaction:r,estimateGas:n,gasPrice:s,balance:i,txDetails:o,txApproveReminderTimeout:f}=t,u=f&&f>3e3?f:15e3,[h,p]=await H$(n,s),d=D$(w7()),v=new Hc(o&&o.value||0);i&&h&&p&&h.times(p).plus(v).gt(new Hc(i))&&Uu(M0("nsfFail",d));const w=fA.find(R=>R.eventCode==="txRequest");if(w){const N=M0("txAwaitingApproval",w.id);Uu(N)}if(setTimeout(()=>{const R=fA.find(N=>N.id===d&&N.eventCode==="txRequest");if(R){const C=M0("txConfirmReminder",R.id);Uu(C)}},u),Uu(M0("txRequest",d)),!r)return d;let M;try{M=await r()}catch(R){const{eventCode:N,errorMsg:C}=U$(R);Uu(M0(N,d)),console.error(C);return}if(hN(d),M)return M}const M0=(t,e)=>({eventCode:t,type:yN(t),id:e,key:L$(e,t),message:F$(t),startTime:Date.now(),network:Object.keys(w8).find(r=>w8[r]===rr.get().chains[0].id),autoDismiss:0}),L$=(t,e)=>`${t}-${e}`,D$=t=>`${t}-preflight`,F$=t=>{const e=vr.notify;return e.transaction,e.transaction[t]};function U$(t){if(!t.stack||!t.message)return{eventCode:"txError",errorMsg:"An unknown error occured"};const e=t.stack||t.message;return e.includes("User denied transaction signature")?{eventCode:"txSendFail",errorMsg:"User denied transaction signature"}:e.includes("transaction underpriced")?{eventCode:"txUnderpriced",errorMsg:"Transaction is under priced"}:{eventCode:"txError",errorMsg:e}}const H$=async(t,e)=>{if(!t||!e)return Promise.resolve([]);const r=t();if(!r.then)throw new Error("The `estimateGas` function must return a Promise");const n=e();if(!n.then)throw new Error("The `gasPrice` function must return a Promise");return Promise.all([r,n]).then(([s,i])=>{if(typeof s!="string")throw new Error(`The Promise returned from calling 'estimateGas' must resolve with a value of type 'string'. Received a value of: ${s} with a type: ${typeof s}`);if(typeof i!="string")throw new Error(`The Promise returned from calling 'gasPrice' must resolve with a value of type 'string'. Received a value of: ${i} with a type: ${typeof i}`);return[new Hc(s),new Hc(i)]}).catch(s=>{throw new Error(`There was an error getting gas estimates: ${s}`)})},H2={connectWallet:QQ,disconnectWallet:bN,setChain:pX,state:{get:rr.get,select:rr.select,actions:{setWalletModules:dN,setLocale:VQ,updateNotify:ag,customNotification:qQ,preflightNotifications:O$,updateBalances:vN,updateAccountCenter:uN,setPrimaryWallet:zQ,updateTheme:pN}}};function j$(t){if(typeof window>"u")return H2;if(t){const R=SQ(t);if(R)throw R}const{wallets:e,chains:r,appMetadata:n=null,i18n:s,accountCenter:i,apiKey:o,notify:f,gas:u,connect:h,containerElements:p,transactionPreview:d,theme:v}=t;p&&A8({containerElements:p});const{device:w,svelteInstance:A}=Kn;if(A&&(console.warn("Re-initializing Onboard and resetting back to initial state"),A6.next()),gX(s),HQ(xY(r)),typeof h!==void 0&&KQ(h),typeof i<"u"){let R;w.type==="mobile"?R={...tl.accountCenter,...i.mobile?i.mobile:{}}:i.desktop&&(R={...tl.accountCenter,...i.desktop}),uN(R)}if(typeof f<"u")if("desktop"in f||"mobile"in f){const R=IQ(f);if(R)throw R;(!f.desktop||f.desktop&&!f.desktop.position)&&i&&i.desktop&&i.desktop.position&&(f.desktop.position=i.desktop.position),(!f.mobile||f.mobile&&!f.mobile.position)&&i&&i.mobile&&i.mobile.position&&(f.mobile.position=i.mobile.position);let N;w.type==="mobile"&&f.mobile?N={...tl.notify,...f.mobile}:f.desktop&&(N={...tl.notify,...f.desktop}),ag(N)}else{const R=cN(f);if(R)throw R;const N={...tl.notify,...f};ag(N)}else{const R=tl.notify;ag(R)}const M=A||z$();if(A8({appMetadata:n,svelteInstance:M,apiKey:o,initialWalletInit:e,gas:u,transactionPreview:d}),o&&d&&(async()=>(d.init({containerElement:"#w3o-transaction-preview-container",sdk:await dX(),apiKey:o}),ky.subscribe(N=>{N.forEach(({provider:C})=>{d.patchProvider(C)})})))(),v&&pN(v),h&&h.autoConnectLastWallet){const R=OR(V0.LAST_CONNECTED_WALLET);R&&H2.connectWallet({autoSelect:{label:R,disableModals:!0}})}return H2}function z$(){class t extends HTMLElement{constructor(){super()}}customElements.get("onboard-v2")||customElements.define("onboard-v2",t);const e=document.createElement("style");e.innerHTML=` - ${pT} - `,document.body.appendChild(e);const r=document.createElement("onboard-v2"),n=r.attachShadow({mode:"open"});r.style.all="initial",n.innerHTML=` - - `;const i=Kn.containerElements.connectModal||rr.get().accountCenter.containerElement||"body",o=document.querySelector(i);if(!o)throw new Error(`Element with query ${i} does not exist.`);return o.appendChild(r),new P$({target:n})}const K$=window.networks,q$=wk(),G$=Ak({}),V$=xk(),lE=j$({wallets:[q$,V$,G$],chains:K$,accountCenter:{desktop:{enabled:!1},mobile:{enabled:!1}}}),W$="6.6.2";function Z$(t,e,r){const n=e.split("|").map(i=>i.trim());for(let i=0;iPromise.resolve(t[n])))).reduce((n,s,i)=>(n[e[i]]=s,n),{})}function Dt(t,e,r){for(let n in e){let s=e[n];const i=r?r[n]:null;i&&Z$(s,i,n),Object.defineProperty(t,n,{enumerable:!0,value:s,writable:!1})}}function Xu(t){if(t==null)return"null";if(Array.isArray(t))return"[ "+t.map(Xu).join(", ")+" ]";if(t instanceof Uint8Array){const e="0123456789abcdef";let r="0x";for(let n=0;n>4],r+=e[t[n]&15];return r}if(typeof t=="object"&&typeof t.toJSON=="function")return Xu(t.toJSON());switch(typeof t){case"boolean":case"symbol":return t.toString();case"bigint":return BigInt(t).toString();case"number":return t.toString();case"string":return JSON.stringify(t);case"object":{const e=Object.keys(t);return e.sort(),"{ "+e.map(r=>`${Xu(r)}: ${Xu(t[r])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function ko(t,e){return t&&t.code===e}function _6(t){return ko(t,"CALL_EXCEPTION")}function oi(t,e,r){{const s=[];if(r){if("message"in r||"code"in r||"name"in r)throw new Error(`value will overwrite populated values: ${Xu(r)}`);for(const i in r){const o=r[i];s.push(i+"="+Xu(o))}}s.push(`code=${e}`),s.push(`version=${W$}`),s.length&&(t+=" ("+s.join(", ")+")")}let n;switch(e){case"INVALID_ARGUMENT":n=new TypeError(t);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":n=new RangeError(t);break;default:n=new Error(t)}return Dt(n,{code:e}),r&&Object.assign(n,r),n}function nt(t,e,r,n){if(!t)throw oi(e,r,n)}function ye(t,e,r,n){nt(t,e,"INVALID_ARGUMENT",{argument:r,value:n})}function EN(t,e,r){r==null&&(r=""),r&&(r=": "+r),nt(t>=e,"missing arguemnt"+r,"MISSING_ARGUMENT",{count:t,expectedCount:e}),nt(t<=e,"too many arguemnts"+r,"UNEXPECTED_ARGUMENT",{count:t,expectedCount:e})}const Y$=["NFD","NFC","NFKD","NFKC"].reduce((t,e)=>{try{if("test".normalize(e)!=="test")throw new Error("bad");if(e==="NFD"){const r=String.fromCharCode(233).normalize("NFD"),n=String.fromCharCode(101,769);if(r!==n)throw new Error("broken")}t.push(e)}catch{}return t},[]);function Q$(t){nt(Y$.indexOf(t)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:t}})}function By(t,e,r){if(r==null&&(r=""),t!==e){let n=r,s="new";r&&(n+=".",s+=" "+r),nt(!1,`private constructor; use ${n}from* methods`,"UNSUPPORTED_OPERATION",{operation:s})}}function MN(t,e,r){if(t instanceof Uint8Array)return r?new Uint8Array(t):t;if(typeof t=="string"&&t.match(/^0x([0-9a-f][0-9a-f])*$/i)){const n=new Uint8Array((t.length-2)/2);let s=2;for(let i=0;i>4]+cE[s&15]}return r}function jn(t){return"0x"+t.map(e=>At(e).substring(2)).join("")}function mh(t){return Mn(t,!0)?(t.length-2)/2:Br(t).length}function Cn(t,e,r){const n=Br(t);return r!=null&&r>n.length&&nt(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:n,length:n.length,offset:r}),At(n.slice(e??0,r??n.length))}function J$(t,e,r){const n=Br(t);nt(e>=n.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(n),length:e,offset:e+1});const s=new Uint8Array(e);return s.fill(0),r?s.set(n,e-n.length):s.set(n,0),At(s)}function Wc(t,e){return J$(t,e,!0)}const Iy=BigInt(0),Ua=BigInt(1),Ju=9007199254740991;function $$(t,e){const r=Py(t,"value"),n=BigInt(br(e,"width"));if(nt(r>>n===Iy,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:t}),r>>n-Ua){const s=(Ua<=-Ju&&t<=Ju,"overflow",e||"value",t),BigInt(t);case"string":try{if(t==="")throw new Error("empty string");return t[0]==="-"&&t[1]!=="-"?-BigInt(t.substring(1)):BigInt(t)}catch(r){ye(!1,`invalid BigNumberish string: ${r.message}`,e||"value",t)}}ye(!1,"invalid BigNumberish value",e||"value",t)}function Py(t,e){const r=St(t,e);return nt(r>=Iy,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:t}),r}const uE="0123456789abcdef";function R6(t){if(t instanceof Uint8Array){let e="0x0";for(const r of t)e+=uE[r>>4],e+=uE[r&15];return BigInt(e)}return St(t)}function br(t,e){switch(typeof t){case"bigint":return ye(t>=-Ju&&t<=Ju,"overflow",e||"value",t),Number(t);case"number":return ye(Number.isInteger(t),"underflow",e||"value",t),ye(t>=-Ju&&t<=Ju,"overflow",e||"value",t),t;case"string":try{if(t==="")throw new Error("empty string");return br(BigInt(t),e)}catch(r){ye(!1,`invalid numeric string: ${r.message}`,e||"value",t)}}ye(!1,"invalid numeric value",e||"value",t)}function eee(t){return br(R6(t))}function Il(t,e){let n=Py(t,"value").toString(16);if(e==null)n.length%2&&(n="0"+n);else{const s=br(e,"width");for(nt(s*2>=n.length,`value exceeds width (${s} bits)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:t});n.length>6===2;o++)i++;return i}return t==="OVERRUN"?r.length-e-1:0}function aee(t,e,r,n,s){return t==="OVERLONG"?(ye(typeof s=="number","invalid bad code point for replacement","badCodepoint",s),n.push(s),0):(n.push(65533),RN(t,e,r))}const oee=Object.freeze({error:see,ignore:RN,replace:aee});function fee(t,e){e==null&&(e=oee.error);const r=Br(t,"bytes"),n=[];let s=0;for(;s>7)){n.push(i);continue}let o=null,f=null;if((i&224)===192)o=1,f=127;else if((i&240)===224)o=2,f=2047;else if((i&248)===240)o=3,f=65535;else{(i&192)===128?s+=e("UNEXPECTED_CONTINUE",s-1,r,n):s+=e("BAD_PREFIX",s-1,r,n);continue}if(s-1+o>=r.length){s+=e("OVERRUN",s-1,r,n);continue}let u=i&(1<<8-o-1)-1;for(let h=0;h1114111){s+=e("OUT_OF_RANGE",s-1-o,r,n,u);continue}if(u>=55296&&u<=57343){s+=e("UTF16_SURROGATE",s-1-o,r,n,u);continue}if(u<=f){s+=e("OVERLONG",s-1-o,r,n,u);continue}n.push(u)}}return n}function xf(t,e){e!=null&&(Q$(e),t=t.normalize(e));let r=[];for(let n=0;n>6|192),r.push(s&63|128);else if((s&64512)==55296){n++;const i=t.charCodeAt(n);ye(n>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(o&63|128)}else r.push(s>>12|224),r.push(s>>6&63|128),r.push(s&63|128)}return new Uint8Array(r)}function lee(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function N6(t,e){return lee(fee(t,e))}async function cee(t,e){const r=t.url.split(":")[0].toLowerCase();nt(r==="http"||r==="https",`unsupported protocol ${r}`,"UNSUPPORTED_OPERATION",{info:{protocol:r},operation:"request"}),nt(r==="https"||!t.credentials||t.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let n;if(e){const h=new AbortController;n=h.signal,e.addListener(()=>{h.abort()})}const s={method:t.method,headers:new Headers(Array.from(t)),body:t.body||void 0,signal:n},i=await fetch(t.url,s),o={};i.headers.forEach((h,p)=>{o[p.toLowerCase()]=h});const f=await i.arrayBuffer(),u=f==null?null:new Uint8Array(f);return{statusCode:i.status,statusMessage:i.statusText,headers:o,body:u}}const uee=12,hee=250;let dE=cee;const dee=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),pee=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let j2=!1;async function NN(t,e){try{const r=t.match(dee);if(!r)throw new Error("invalid data");return new Sl(200,"OK",{"content-type":r[1]||"text/plain"},r[2]?nee(r[3]):gee(r[3]))}catch{return new Sl(599,"BAD REQUEST (invalid data: URI)",{},null,new Zc(t))}}function CN(t){async function e(r,n){try{const s=r.match(pee);if(!s)throw new Error("invalid link");return new Zc(`${t}${s[2]}`)}catch{return new Sl(599,"BAD REQUEST (invalid IPFS URI)",{},null,new Zc(r))}}return e}const vm={data:NN,ipfs:CN("https://gateway.ipfs.io/ipfs/")},TN=new WeakMap;var dc,sl;class mee{constructor(e){Fe(this,dc,void 0);Fe(this,sl,void 0);le(this,dc,[]),le(this,sl,!1),TN.set(e,()=>{if(!te(this,sl)){le(this,sl,!0);for(const r of te(this,dc))setTimeout(()=>{r()},0);le(this,dc,[])}})}addListener(e){nt(!te(this,sl),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),te(this,dc).push(e)}get cancelled(){return te(this,sl)}checkSignal(){nt(!this.cancelled,"cancelled","CANCELLED",{})}}dc=new WeakMap,sl=new WeakMap;function ym(t){if(t==null)throw new Error("missing signal; should not happen");return t.checkSignal(),t}var wh,Ah,Pa,ef,xh,Eh,ai,bs,tf,pc,mc,gc,co,rf,vc,F0;const wv=class{constructor(e){Fe(this,vc);Fe(this,wh,void 0);Fe(this,Ah,void 0);Fe(this,Pa,void 0);Fe(this,ef,void 0);Fe(this,xh,void 0);Fe(this,Eh,void 0);Fe(this,ai,void 0);Fe(this,bs,void 0);Fe(this,tf,void 0);Fe(this,pc,void 0);Fe(this,mc,void 0);Fe(this,gc,void 0);Fe(this,co,void 0);Fe(this,rf,void 0);le(this,Eh,String(e)),le(this,wh,!1),le(this,Ah,!0),le(this,Pa,{}),le(this,ef,""),le(this,xh,3e5),le(this,rf,{slotInterval:hee,maxAttempts:uee})}get url(){return te(this,Eh)}set url(e){le(this,Eh,String(e))}get body(){return te(this,ai)==null?null:new Uint8Array(te(this,ai))}set body(e){if(e==null)le(this,ai,void 0),le(this,bs,void 0);else if(typeof e=="string")le(this,ai,xf(e)),le(this,bs,"text/plain");else if(e instanceof Uint8Array)le(this,ai,e),le(this,bs,"application/octet-stream");else if(typeof e=="object")le(this,ai,xf(JSON.stringify(e))),le(this,bs,"application/json");else throw new Error("invalid body")}hasBody(){return te(this,ai)!=null}get method(){return te(this,ef)?te(this,ef):this.hasBody()?"POST":"GET"}set method(e){e==null&&(e=""),le(this,ef,String(e).toUpperCase())}get headers(){const e=Object.assign({},te(this,Pa));return te(this,tf)&&(e.authorization=`Basic ${iee(xf(te(this,tf)))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),e["content-type"]==null&&te(this,bs)&&(e["content-type"]=te(this,bs)),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,r){te(this,Pa)[String(e).toLowerCase()]=String(r)}clearHeaders(){le(this,Pa,{})}[Symbol.iterator](){const e=this.headers,r=Object.keys(e);let n=0;return{next:()=>{if(n=0,"timeout must be non-zero","timeout",e),le(this,xh,e)}get preflightFunc(){return te(this,pc)||null}set preflightFunc(e){le(this,pc,e)}get processFunc(){return te(this,mc)||null}set processFunc(e){le(this,mc,e)}get retryFunc(){return te(this,gc)||null}set retryFunc(e){le(this,gc,e)}toString(){return``}setThrottleParams(e){e.slotInterval!=null&&(te(this,rf).slotInterval=e.slotInterval),e.maxAttempts!=null&&(te(this,rf).maxAttempts=e.maxAttempts)}send(){return nt(te(this,co)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),le(this,co,new mee(this)),ct(this,vc,F0).call(this,0,pE()+this.timeout,0,this,new Sl(0,"",{},null,this))}cancel(){nt(te(this,co)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=TN.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const r=this.url.split(":")[0].toLowerCase(),n=e.split(":")[0].toLowerCase();nt(this.method==="GET"&&(r!=="https"||n!=="http")&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const s=new wv(e);return s.method="GET",s.allowGzip=this.allowGzip,s.timeout=this.timeout,le(s,Pa,Object.assign({},te(this,Pa))),te(this,ai)&&le(s,ai,new Uint8Array(te(this,ai))),le(s,bs,te(this,bs)),s}clone(){const e=new wv(this.url);return le(e,ef,te(this,ef)),te(this,ai)&&le(e,ai,te(this,ai)),le(e,bs,te(this,bs)),le(e,Pa,Object.assign({},te(this,Pa))),le(e,tf,te(this,tf)),this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),le(e,pc,te(this,pc)),le(e,mc,te(this,mc)),le(e,gc,te(this,gc)),e}static lockConfig(){j2=!0}static getGateway(e){return vm[e.toLowerCase()]||null}static registerGateway(e,r){if(e=e.toLowerCase(),e==="http"||e==="https")throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(j2)throw new Error("gateways locked");vm[e]=r}static registerGetUrl(e){if(j2)throw new Error("gateways locked");dE=e}static createDataGateway(){return NN}static createIpfsGatewayFunc(e){return CN(e)}};let Zc=wv;wh=new WeakMap,Ah=new WeakMap,Pa=new WeakMap,ef=new WeakMap,xh=new WeakMap,Eh=new WeakMap,ai=new WeakMap,bs=new WeakMap,tf=new WeakMap,pc=new WeakMap,mc=new WeakMap,gc=new WeakMap,co=new WeakMap,rf=new WeakMap,vc=new WeakSet,F0=async function(e,r,n,s,i){var p,d,v;if(e>=te(this,rf).maxAttempts)return i.makeServerError("exceeded maximum retry limit");nt(pE()<=r,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:s}),n>0&&await vee(n);let o=this.clone();const f=(o.url.split(":")[0]||"").toLowerCase();if(f in vm){const w=await vm[f](o.url,ym(te(s,co)));if(w instanceof Sl){let A=w;if(this.processFunc){ym(te(s,co));try{A=await this.processFunc(o,A)}catch(M){(M.throttle==null||typeof M.stall!="number")&&A.makeServerError("error in post-processing function",M).assertOk()}}return A}o=w}this.preflightFunc&&(o=await this.preflightFunc(o));const u=await dE(o,ym(te(s,co)));let h=new Sl(u.statusCode,u.statusMessage,u.headers,u.body,s);if(h.statusCode===301||h.statusCode===302){try{const w=h.headers.location||"";return ct(p=o.redirect(w),vc,F0).call(p,e+1,r,0,s,h)}catch{}return h}else if(h.statusCode===429&&(this.retryFunc==null||await this.retryFunc(o,h,e))){const w=h.headers["retry-after"];let A=te(this,rf).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return typeof w=="string"&&w.match(/^[1-9][0-9]*$/)&&(A=parseInt(w)),ct(d=o.clone(),vc,F0).call(d,e+1,r,A,s,h)}if(this.processFunc){ym(te(s,co));try{h=await this.processFunc(o,h)}catch(w){(w.throttle==null||typeof w.stall!="number")&&h.makeServerError("error in post-processing function",w).assertOk();let A=te(this,rf).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return w.stall>=0&&(A=w.stall),ct(v=o.clone(),vc,F0).call(v,e+1,r,A,s,h)}}return h};var qp,Gp,Vp,Oa,Mh,yc;const z6=class{constructor(e,r,n,s,i){Fe(this,qp,void 0);Fe(this,Gp,void 0);Fe(this,Vp,void 0);Fe(this,Oa,void 0);Fe(this,Mh,void 0);Fe(this,yc,void 0);le(this,qp,e),le(this,Gp,r),le(this,Vp,Object.keys(n).reduce((o,f)=>(o[f.toLowerCase()]=String(n[f]),o),{})),le(this,Oa,s==null?null:new Uint8Array(s)),le(this,Mh,i||null),le(this,yc,{message:""})}toString(){return``}get statusCode(){return te(this,qp)}get statusMessage(){return te(this,Gp)}get headers(){return Object.assign({},te(this,Vp))}get body(){return te(this,Oa)==null?null:new Uint8Array(te(this,Oa))}get bodyText(){try{return te(this,Oa)==null?"":N6(te(this,Oa))}catch{nt(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch{nt(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,r=Object.keys(e);let n=0;return{next:()=>{if(n=0,"invalid stall timeout","stall",r);const n=new Error(e||"throttling requests");throw Dt(n,{stall:r,throttle:!0}),n}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return te(this,Oa)!=null}get request(){return te(this,Mh)}ok(){return te(this,yc).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:r}=te(this,yc);e===""&&(e=`server response ${this.statusCode} ${this.statusMessage}`),nt(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:r})}};let Sl=z6;qp=new WeakMap,Gp=new WeakMap,Vp=new WeakMap,Oa=new WeakMap,Mh=new WeakMap,yc=new WeakMap;function pE(){return new Date().getTime()}function gee(t){return xf(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,r)=>String.fromCharCode(parseInt(r,16))))}function vee(t){return new Promise(e=>setTimeout(e,t))}function yee(t){let e=t.toString(16);for(;e.length<2;)e="0"+e;return"0x"+e}function mE(t,e,r){let n=0;for(let s=0;s{nt(n<=t.length,"data short segment too short","BUFFER_OVERRUN",{buffer:t,length:t.length,offset:n})};if(t[e]>=248){const n=t[e]-247;r(e+1+n);const s=mE(t,e+1,n);return r(e+1+n+s),gE(t,e,e+1+n,n+s)}else if(t[e]>=192){const n=t[e]-192;return r(e+1+n),gE(t,e,e+1,n)}else if(t[e]>=184){const n=t[e]-183;r(e+1+n);const s=mE(t,e+1,n);r(e+1+n+s);const i=At(t.slice(e+1+n,e+1+n+s));return{consumed:1+n+s,result:i}}else if(t[e]>=128){const n=t[e]-128;r(e+1+n);const s=At(t.slice(e+1,e+1+n));return{consumed:1+n,result:s}}return{consumed:1,result:yee(t[e])}}function C6(t){const e=Br(t,"data"),r=kN(e,0);return ye(r.consumed===e.length,"unexpected junk after rlp payload","data",t),r.result}function vE(t){const e=[];for(;t;)e.unshift(t&255),t>>=8;return e}function BN(t){if(Array.isArray(t)){let n=[];if(t.forEach(function(i){n=n.concat(BN(i))}),n.length<=55)return n.unshift(192+n.length),n;const s=vE(n.length);return s.unshift(247+s.length),s.concat(n)}const e=Array.prototype.slice.call(Br(t,"object"));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const r=vE(e.length);return r.unshift(183+r.length),r.concat(e)}const yE="0123456789abcdef";function Tp(t){let e="0x";for(const r of BN(t))e+=yE[r>>4],e+=yE[r&15];return e}const Wi=32,lA=new Uint8Array(Wi),bee=["then"],bm={};function S0(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);throw r.error=e,r}var al;const $0=class extends Array{constructor(...r){const n=r[0];let s=r[1],i=(r[2]||[]).slice(),o=!0;n!==bm&&(s=r,i=[],o=!1);super(s.length);Fe(this,al,void 0);s.forEach((u,h)=>{this[h]=u});const f=i.reduce((u,h)=>(typeof h=="string"&&u.set(h,(u.get(h)||0)+1),u),new Map);if(le(this,al,Object.freeze(s.map((u,h)=>{const p=i[h];return p!=null&&f.get(p)===1?p:null}))),!!o)return Object.freeze(this),new Proxy(this,{get:(u,h,p)=>{if(typeof h=="string"){if(h.match(/^[0-9]+$/)){const v=br(h,"%index");if(v<0||v>=this.length)throw new RangeError("out of result range");const w=u[v];return w instanceof Error&&S0(`index ${v}`,w),w}if(bee.indexOf(h)>=0)return Reflect.get(u,h,p);const d=u[h];if(d instanceof Function)return function(...v){return d.apply(this===p?u:this,v)};if(!(h in u))return u.getValue.apply(this===p?u:this,[h])}return Reflect.get(u,h,p)}})}toArray(){const r=[];return this.forEach((n,s)=>{n instanceof Error&&S0(`index ${s}`,n),r.push(n)}),r}toObject(){return te(this,al).reduce((r,n,s)=>(nt(n!=null,"value at index ${ index } unnamed","UNSUPPORTED_OPERATION",{operation:"toObject()"}),n in r||(r[n]=this.getValue(n)),r),{})}slice(r,n){r==null&&(r=0),r<0&&(r+=this.length,r<0&&(r=0)),n==null&&(n=this.length),n<0&&(n+=this.length,n<0&&(n=0)),n>this.length&&(n=this.length);const s=[],i=[];for(let o=r;o{te(this,nf)[e]=bE(r)}}}nf=new WeakMap,bc=new WeakMap,Sh=new WeakSet,og=function(e){return te(this,nf).push(e),le(this,bc,te(this,bc)+e.length),e.length};var ws,Ws,Av,IN;const K6=class{constructor(e,r){Fe(this,Av);xe(this,"allowLoose");Fe(this,ws,void 0);Fe(this,Ws,void 0);Dt(this,{allowLoose:!!r}),le(this,ws,hs(e)),le(this,Ws,0)}get data(){return At(te(this,ws))}get dataLength(){return te(this,ws).length}get consumed(){return te(this,Ws)}get bytes(){return new Uint8Array(te(this,ws))}subReader(e){return new K6(te(this,ws).slice(te(this,Ws)+e),this.allowLoose)}readBytes(e,r){let n=ct(this,Av,IN).call(this,0,e,!!r);return le(this,Ws,te(this,Ws)+n.length),n.slice(0,e)}readValue(){return R6(this.readBytes(Wi))}readIndex(){return eee(this.readBytes(Wi))}};let uA=K6;ws=new WeakMap,Ws=new WeakMap,Av=new WeakSet,IN=function(e,r,n){let s=Math.ceil(r/Wi)*Wi;return te(this,Ws)+s>te(this,ws).length&&(this.allowLoose&&n&&te(this,Ws)+r<=te(this,ws).length?s=r:nt(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:hs(te(this,ws)),length:te(this,ws).length,offset:te(this,Ws)+s})),te(this,ws).slice(te(this,Ws),te(this,Ws)+s)};function hA(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function wee(t){if(typeof t!="boolean")throw new Error(`Expected boolean, not ${t}`)}function PN(t,...e){if(!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new TypeError(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function Aee(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");hA(t.outputLen),hA(t.blockLen)}function xee(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function Eee(t,e){PN(t);const r=e.outputLen;if(t.lengthnew Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),z2=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),no=(t,e)=>t<<32-e|t>>>e,See=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!See)throw new Error("Non little-endian hardware is not supported");Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function _ee(t){if(typeof t!="string")throw new TypeError(`utf8ToBytes expected string, got ${typeof t}`);return new TextEncoder().encode(t)}function L1(t){if(typeof t=="string"&&(t=_ee(t)),!(t instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof t})`);return t}class ov{clone(){return this._cloneInto()}}function D1(t){const e=n=>t().update(L1(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function Ree(t){const e=(n,s)=>t(s).update(L1(n)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=n=>t(n),e}class ON extends ov{constructor(e,r){super(),this.finished=!1,this.destroyed=!1,Ss.hash(e);const n=L1(r);if(this.iHash=e.create(),!(this.iHash instanceof ov))throw new TypeError("Expected instance of class which extends utils.Hash");const s=this.blockLen=this.iHash.blockLen;this.outputLen=this.iHash.outputLen;const i=new Uint8Array(s);i.set(n.length>this.iHash.blockLen?e.create().update(n).digest():n);for(let o=0;onew ON(t,e).update(r).digest();LN.create=(t,e)=>new ON(t,e);function Nee(t,e,r,n){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,r,n);const s=BigInt(32),i=BigInt(4294967295),o=Number(r>>s&i),f=Number(r&i),u=n?4:0,h=n?0:4;t.setUint32(e+u,o,n),t.setUint32(e+h,f,n)}class DN extends ov{constructor(e,r,n,s){super(),this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=s,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=z2(this.buffer)}update(e){Ss.exists(this);const{view:r,buffer:n,blockLen:s}=this;e=L1(e);const i=e.length;for(let o=0;os-o&&(this.process(n,0),o=0);for(let u=o;uf.setUint32(4*h,u,i))}digest(){const{buffer:e,outputLen:r}=this;this.digestInto(e);const n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:r,buffer:n,length:s,finished:i,destroyed:o,pos:f}=this;return e.length=s,e.pos=f,e.finished=i,e.destroyed=o,s%r&&e.buffer.set(n),e}}const Cee=(t,e,r)=>t&e^~t&r,Tee=(t,e,r)=>t&e^t&r^e&r,kee=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Zf=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Yf=new Uint32Array(64);class Bee extends DN{constructor(){super(64,32,8,!1),this.A=Zf[0]|0,this.B=Zf[1]|0,this.C=Zf[2]|0,this.D=Zf[3]|0,this.E=Zf[4]|0,this.F=Zf[5]|0,this.G=Zf[6]|0,this.H=Zf[7]|0}get(){const{A:e,B:r,C:n,D:s,E:i,F:o,G:f,H:u}=this;return[e,r,n,s,i,o,f,u]}set(e,r,n,s,i,o,f,u){this.A=e|0,this.B=r|0,this.C=n|0,this.D=s|0,this.E=i|0,this.F=o|0,this.G=f|0,this.H=u|0}process(e,r){for(let d=0;d<16;d++,r+=4)Yf[d]=e.getUint32(r,!1);for(let d=16;d<64;d++){const v=Yf[d-15],w=Yf[d-2],A=no(v,7)^no(v,18)^v>>>3,M=no(w,17)^no(w,19)^w>>>10;Yf[d]=M+Yf[d-7]+A+Yf[d-16]|0}let{A:n,B:s,C:i,D:o,E:f,F:u,G:h,H:p}=this;for(let d=0;d<64;d++){const v=no(f,6)^no(f,11)^no(f,25),w=p+v+Cee(f,u,h)+kee[d]+Yf[d]|0,M=(no(n,2)^no(n,13)^no(n,22))+Tee(n,s,i)|0;p=h,h=u,u=f,f=o+w|0,o=i,i=s,s=n,n=w+M|0}n=n+this.A|0,s=s+this.B|0,i=i+this.C|0,o=o+this.D|0,f=f+this.E|0,u=u+this.F|0,h=h+this.G|0,p=p+this.H|0,this.set(n,s,i,o,f,u,h,p)}roundClean(){Yf.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Iee=D1(()=>new Bee),wm=BigInt(2**32-1),dA=BigInt(32);function FN(t,e=!1){return e?{h:Number(t&wm),l:Number(t>>dA&wm)}:{h:Number(t>>dA&wm)|0,l:Number(t&wm)|0}}function Pee(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let s=0;sBigInt(t>>>0)<>>0),Lee=(t,e,r)=>t>>>r,Dee=(t,e,r)=>t<<32-r|e>>>r,Fee=(t,e,r)=>t>>>r|e<<32-r,Uee=(t,e,r)=>t<<32-r|e>>>r,Hee=(t,e,r)=>t<<64-r|e>>>r-32,jee=(t,e,r)=>t>>>r-32|e<<64-r,zee=(t,e)=>e,Kee=(t,e)=>t,qee=(t,e,r)=>t<>>32-r,Gee=(t,e,r)=>e<>>32-r,Vee=(t,e,r)=>e<>>64-r,Wee=(t,e,r)=>t<>>64-r;function Zee(t,e,r,n){const s=(e>>>0)+(n>>>0);return{h:t+r+(s/2**32|0)|0,l:s|0}}const Yee=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),Qee=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,Xee=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),Jee=(t,e,r,n,s)=>e+r+n+s+(t/2**32|0)|0,$ee=(t,e,r,n,s)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(s>>>0),ete=(t,e,r,n,s,i)=>e+r+n+s+i+(t/2**32|0)|0,jt={fromBig:FN,split:Pee,toBig:Oee,shrSH:Lee,shrSL:Dee,rotrSH:Fee,rotrSL:Uee,rotrBH:Hee,rotrBL:jee,rotr32H:zee,rotr32L:Kee,rotlSH:qee,rotlSL:Gee,rotlBH:Vee,rotlBL:Wee,add:Zee,add3L:Yee,add3H:Qee,add4L:Xee,add4H:Jee,add5H:ete,add5L:$ee},[tte,rte]=jt.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),Qf=new Uint32Array(80),Xf=new Uint32Array(80);class T6 extends DN{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:r,Bh:n,Bl:s,Ch:i,Cl:o,Dh:f,Dl:u,Eh:h,El:p,Fh:d,Fl:v,Gh:w,Gl:A,Hh:M,Hl:R}=this;return[e,r,n,s,i,o,f,u,h,p,d,v,w,A,M,R]}set(e,r,n,s,i,o,f,u,h,p,d,v,w,A,M,R){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=s|0,this.Ch=i|0,this.Cl=o|0,this.Dh=f|0,this.Dl=u|0,this.Eh=h|0,this.El=p|0,this.Fh=d|0,this.Fl=v|0,this.Gh=w|0,this.Gl=A|0,this.Hh=M|0,this.Hl=R|0}process(e,r){for(let B=0;B<16;B++,r+=4)Qf[B]=e.getUint32(r),Xf[B]=e.getUint32(r+=4);for(let B=16;B<80;B++){const O=Qf[B-15]|0,D=Xf[B-15]|0,q=jt.rotrSH(O,D,1)^jt.rotrSH(O,D,8)^jt.shrSH(O,D,7),W=jt.rotrSL(O,D,1)^jt.rotrSL(O,D,8)^jt.shrSL(O,D,7),k=Qf[B-2]|0,I=Xf[B-2]|0,H=jt.rotrSH(k,I,19)^jt.rotrBH(k,I,61)^jt.shrSH(k,I,6),P=jt.rotrSL(k,I,19)^jt.rotrBL(k,I,61)^jt.shrSL(k,I,6),T=jt.add4L(W,P,Xf[B-7],Xf[B-16]),g=jt.add4H(T,q,H,Qf[B-7],Qf[B-16]);Qf[B]=g|0,Xf[B]=T|0}let{Ah:n,Al:s,Bh:i,Bl:o,Ch:f,Cl:u,Dh:h,Dl:p,Eh:d,El:v,Fh:w,Fl:A,Gh:M,Gl:R,Hh:N,Hl:C}=this;for(let B=0;B<80;B++){const O=jt.rotrSH(d,v,14)^jt.rotrSH(d,v,18)^jt.rotrBH(d,v,41),D=jt.rotrSL(d,v,14)^jt.rotrSL(d,v,18)^jt.rotrBL(d,v,41),q=d&w^~d&M,W=v&A^~v&R,k=jt.add5L(C,D,W,rte[B],Xf[B]),I=jt.add5H(k,N,O,q,tte[B],Qf[B]),H=k|0,P=jt.rotrSH(n,s,28)^jt.rotrBH(n,s,34)^jt.rotrBH(n,s,39),T=jt.rotrSL(n,s,28)^jt.rotrBL(n,s,34)^jt.rotrBL(n,s,39),g=n&i^n&f^i&f,a=s&o^s&u^o&u;N=M|0,C=R|0,M=w|0,R=A|0,w=d|0,A=v|0,{h:d,l:v}=jt.add(h|0,p|0,I|0,H|0),h=f|0,p=u|0,f=i|0,u=o|0,i=n|0,o=s|0;const c=jt.add3L(H,T,a);n=jt.add3H(c,I,P,g),s=c|0}({h:n,l:s}=jt.add(this.Ah|0,this.Al|0,n|0,s|0)),{h:i,l:o}=jt.add(this.Bh|0,this.Bl|0,i|0,o|0),{h:f,l:u}=jt.add(this.Ch|0,this.Cl|0,f|0,u|0),{h,l:p}=jt.add(this.Dh|0,this.Dl|0,h|0,p|0),{h:d,l:v}=jt.add(this.Eh|0,this.El|0,d|0,v|0),{h:w,l:A}=jt.add(this.Fh|0,this.Fl|0,w|0,A|0),{h:M,l:R}=jt.add(this.Gh|0,this.Gl|0,M|0,R|0),{h:N,l:C}=jt.add(this.Hh|0,this.Hl|0,N|0,C|0),this.set(n,s,i,o,f,u,h,p,d,v,w,A,M,R,N,C)}roundClean(){Qf.fill(0),Xf.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class nte extends T6{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class ite extends T6{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}const ste=D1(()=>new T6);D1(()=>new nte);D1(()=>new ite);function ate(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof r4<"u")return r4;throw new Error("unable to locate global object")}const wE=ate();wE.crypto||wE.msCrypto;function ote(t,e){const r={sha256:Iee,sha512:ste}[t];return ye(r!=null,"invalid hmac algorithm","algorithm",t),LN.create(r,e)}let UN=!1;const HN=function(t,e,r){return ote(t,e).update(r).digest()};let jN=HN;function F1(t,e,r){const n=Br(e,"key"),s=Br(r,"data");return At(jN(t,n,s))}F1._=HN;F1.lock=function(){UN=!0};F1.register=function(t){if(UN)throw new Error("computeHmac is locked");jN=t};Object.freeze(F1);const[zN,KN,qN]=[[],[],[]],fte=BigInt(0),_0=BigInt(1),lte=BigInt(2),cte=BigInt(7),ute=BigInt(256),hte=BigInt(113);for(let t=0,e=_0,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],zN.push(2*(5*n+r)),KN.push((t+1)*(t+2)/2%64);let s=fte;for(let i=0;i<7;i++)e=(e<<_0^(e>>cte)*hte)%ute,e<e&&(s^=_0<<(_0<r>32?jt.rotlBH(t,e,r):jt.rotlSH(t,e,r),xE=(t,e,r)=>r>32?jt.rotlBL(t,e,r):jt.rotlSL(t,e,r);function mte(t,e=24){const r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let o=0;o<10;o++)r[o]=t[o]^t[o+10]^t[o+20]^t[o+30]^t[o+40];for(let o=0;o<10;o+=2){const f=(o+8)%10,u=(o+2)%10,h=r[u],p=r[u+1],d=AE(h,p,1)^r[f],v=xE(h,p,1)^r[f+1];for(let w=0;w<50;w+=10)t[o+w]^=d,t[o+w+1]^=v}let s=t[2],i=t[3];for(let o=0;o<24;o++){const f=KN[o],u=AE(s,i,f),h=xE(s,i,f),p=zN[o];s=t[p],i=t[p+1],t[p]=u,t[p+1]=h}for(let o=0;o<50;o+=10){for(let f=0;f<10;f++)r[f]=t[o+f];for(let f=0;f<10;f++)t[o+f]^=~r[(f+2)%10]&r[(f+4)%10]}t[0]^=dte[n],t[1]^=pte[n]}r.fill(0)}class Oy extends ov{constructor(e,r,n,s=!1,i=24){if(super(),this.blockLen=e,this.suffix=r,this.outputLen=n,this.enableXOF=s,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,Ss.number(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=Mee(this.state)}keccak(){mte(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){Ss.exists(this);const{blockLen:r,state:n}=this;e=L1(e);const s=e.length;for(let i=0;i=n&&this.keccak();const o=Math.min(n-this.posOut,i-s);e.set(r.subarray(this.posOut,this.posOut+o),s),this.posOut+=o,s+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return Ss.number(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(Ss.output(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:r,suffix:n,outputLen:s,rounds:i,enableXOF:o}=this;return e||(e=new Oy(r,n,s,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=s,e.enableXOF=o,e.destroyed=this.destroyed,e}}const Kl=(t,e,r)=>D1(()=>new Oy(e,t,r));Kl(6,144,224/8);Kl(6,136,256/8);Kl(6,104,384/8);Kl(6,72,512/8);Kl(1,144,224/8);const gte=Kl(1,136,256/8);Kl(1,104,384/8);Kl(1,72,512/8);const GN=(t,e,r)=>Ree((n={})=>new Oy(e,t,n.dkLen===void 0?r:n.dkLen,!0));GN(31,168,128/8);GN(31,136,256/8);let VN=!1;const WN=function(t){return gte(t)};let ZN=WN;function mn(t){const e=Br(t,"data");return At(ZN(e))}mn._=WN;mn.lock=function(){VN=!0};mn.register=function(t){if(VN)throw new TypeError("keccak256 is locked");ZN=t};Object.freeze(mn);var YN=X3();const vte=oT(YN),yte=aT({__proto__:null,default:vte},[YN]);/*! noble-secp256k1 - MIT License (c) 2019 Paul Miller (paulmillr.com) */const Tr=BigInt(0),pn=BigInt(1),wl=BigInt(2),Z0=BigInt(3),EE=BigInt(8),Pn=Object.freeze({a:Tr,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:pn,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")}),ME=(t,e)=>(t+e/wl)/e,Am={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar(t){const{n:e}=Pn,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-pn*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=r,o=BigInt("0x100000000000000000000000000000000"),f=ME(i*t,e),u=ME(-n*t,e);let h=dt(t-f*r-u*s,e),p=dt(-f*n-u*i,e);const d=h>o,v=p>o;if(d&&(h=e-h),v&&(p=e-p),h>o||p>o)throw new Error("splitScalarEndo: Endomorphism failed, k="+t);return{k1neg:d,k1:h,k2neg:v,k2:p}}},ja=32,Sd=32,bte=32,fv=ja+1,lv=2*ja+1;function SE(t){const{a:e,b:r}=Pn,n=dt(t*t),s=dt(n*t);return dt(s+e*t+r)}const xm=Pn.a===Tr;class QN extends Error{constructor(e){super(e)}}function _E(t){if(!(t instanceof Ur))throw new TypeError("JacobianPoint expected")}class Ur{constructor(e,r,n){this.x=e,this.y=r,this.z=n}static fromAffine(e){if(!(e instanceof Wr))throw new TypeError("JacobianPoint#fromAffine: expected Point");return e.equals(Wr.ZERO)?Ur.ZERO:new Ur(e.x,e.y,pn)}static toAffineBatch(e){const r=Mte(e.map(n=>n.z));return e.map((n,s)=>n.toAffine(r[s]))}static normalizeZ(e){return Ur.toAffineBatch(e).map(Ur.fromAffine)}equals(e){_E(e);const{x:r,y:n,z:s}=this,{x:i,y:o,z:f}=e,u=dt(s*s),h=dt(f*f),p=dt(r*h),d=dt(i*u),v=dt(dt(n*f)*h),w=dt(dt(o*s)*u);return p===d&&v===w}negate(){return new Ur(this.x,dt(-this.y),this.z)}double(){const{x:e,y:r,z:n}=this,s=dt(e*e),i=dt(r*r),o=dt(i*i),f=e+i,u=dt(wl*(dt(f*f)-s-o)),h=dt(Z0*s),p=dt(h*h),d=dt(p-wl*u),v=dt(h*(u-d)-EE*o),w=dt(wl*r*n);return new Ur(d,v,w)}add(e){_E(e);const{x:r,y:n,z:s}=this,{x:i,y:o,z:f}=e;if(i===Tr||o===Tr)return this;if(r===Tr||n===Tr)return e;const u=dt(s*s),h=dt(f*f),p=dt(r*h),d=dt(i*u),v=dt(dt(n*f)*h),w=dt(dt(o*s)*u),A=dt(d-p),M=dt(w-v);if(A===Tr)return M===Tr?this.double():Ur.ZERO;const R=dt(A*A),N=dt(A*R),C=dt(p*R),B=dt(M*M-N-wl*C),O=dt(M*(C-B)-v*N),D=dt(s*f*A);return new Ur(B,O,D)}subtract(e){return this.add(e.negate())}multiplyUnsafe(e){const r=Ur.ZERO;if(typeof e=="bigint"&&e===Tr)return r;let n=CE(e);if(n===pn)return this;if(!xm){let d=r,v=this;for(;n>Tr;)n&pn&&(d=d.add(v)),v=v.double(),n>>=pn;return d}let{k1neg:s,k1:i,k2neg:o,k2:f}=Am.splitScalar(n),u=r,h=r,p=this;for(;i>Tr||f>Tr;)i&pn&&(u=u.add(p)),f&pn&&(h=h.add(p)),p=p.double(),i>>=pn,f>>=pn;return s&&(u=u.negate()),o&&(h=h.negate()),h=new Ur(dt(h.x*Am.beta),h.y,h.z),u.add(h)}precomputeWindow(e){const r=xm?128/e+1:256/e+1,n=[];let s=this,i=s;for(let o=0;o>=d,A>u&&(A-=p,e+=pn);const M=w,R=w+Math.abs(A)-1,N=v%2!==0,C=A<0;A===0?o=o.add(Em(N,s[M])):i=i.add(Em(C,s[R]))}return{p:i,f:o}}multiply(e,r){let n=CE(e),s,i;if(xm){const{k1neg:o,k1:f,k2neg:u,k2:h}=Am.splitScalar(n);let{p,f:d}=this.wNAF(f,r),{p:v,f:w}=this.wNAF(h,r);p=Em(o,p),v=Em(u,v),v=new Ur(dt(v.x*Am.beta),v.y,v.z),s=p.add(v),i=d.add(w)}else{const{p:o,f}=this.wNAF(n,r);s=o,i=f}return Ur.normalizeZ([s,i])[0]}toAffine(e){const{x:r,y:n,z:s}=this,i=this.equals(Ur.ZERO);e==null&&(e=i?EE:U1(s));const o=e,f=dt(o*o),u=dt(f*o),h=dt(r*f),p=dt(n*u),d=dt(s*o);if(i)return Wr.ZERO;if(d!==pn)throw new Error("invZ was invalid");return new Wr(h,p)}}Ur.BASE=new Ur(Pn.Gx,Pn.Gy,pn);Ur.ZERO=new Ur(Tr,pn,Tr);function Em(t,e){const r=e.negate();return t?r:e}const pA=new WeakMap;class Wr{constructor(e,r){this.x=e,this.y=r}_setWindowSize(e){this._WINDOW_SIZE=e,pA.delete(this)}hasEvenY(){return this.y%wl===Tr}static fromCompressedHex(e){const r=e.length===32,n=_l(r?e:e.subarray(1));if(!K2(n))throw new Error("Point is not on curve");const s=SE(n);let i=Ete(s);const o=(i&pn)===pn;r?o&&(i=dt(-i)):(e[0]&1)===1!==o&&(i=dt(-i));const f=new Wr(n,i);return f.assertValidity(),f}static fromUncompressedHex(e){const r=_l(e.subarray(1,ja+1)),n=_l(e.subarray(ja+1,ja*2+1)),s=new Wr(r,n);return s.assertValidity(),s}static fromHex(e){const r=kp(e),n=r.length,s=r[0];if(n===ja)return this.fromCompressedHex(r);if(n===fv&&(s===2||s===3))return this.fromCompressedHex(r);if(n===lv&&s===4)return this.fromUncompressedHex(r);throw new Error(`Point.fromHex: received invalid point. Expected 32-${fv} compressed bytes or ${lv} uncompressed bytes, not ${n}`)}static fromPrivateKey(e){return Wr.BASE.multiply(Ip(e))}static fromSignature(e,r,n){const{r:s,s:i}=Cte(r);if(![0,1,2,3].includes(n))throw new Error("Cannot recover: invalid recovery bit");const o=XN(kp(e)),{n:f}=Pn,u=n===2||n===3?s+f:s,h=U1(u,f),p=dt(-o*h,f),d=dt(i*h,f),v=n&1?"03":"02",w=Wr.fromHex(v+vh(u)),A=Wr.BASE.multiplyAndAddUnsafe(w,p,d);if(!A)throw new Error("Cannot recover signature: point at infinify");return A.assertValidity(),A}toRawBytes(e=!1){return Dc(this.toHex(e))}toHex(e=!1){const r=vh(this.x);return e?`${this.hasEvenY()?"02":"03"}${r}`:`04${r}${vh(this.y)}`}toHexX(){return this.toHex(!0).slice(2)}toRawX(){return this.toRawBytes(!0).slice(1)}assertValidity(){const e="Point is not on elliptic curve",{x:r,y:n}=this;if(!K2(r)||!K2(n))throw new Error(e);const s=dt(n*n),i=SE(r);if(dt(s-i)!==Tr)throw new Error(e)}equals(e){return this.x===e.x&&this.y===e.y}negate(){return new Wr(this.x,dt(-this.y))}double(){return Ur.fromAffine(this).double().toAffine()}add(e){return Ur.fromAffine(this).add(Ur.fromAffine(e)).toAffine()}subtract(e){return this.add(e.negate())}multiply(e){return Ur.fromAffine(this).multiply(e,this).toAffine()}multiplyAndAddUnsafe(e,r,n){const s=Ur.fromAffine(this),i=r===Tr||r===pn||this!==Wr.BASE?s.multiplyUnsafe(r):s.multiply(r),o=Ur.fromAffine(e).multiplyUnsafe(n),f=i.add(o);return f.equals(Ur.ZERO)?void 0:f.toAffine()}}Wr.BASE=new Wr(Pn.Gx,Pn.Gy);Wr.ZERO=new Wr(Tr,Tr);function RE(t){return Number.parseInt(t[0],16)>=8?"00"+t:t}function NE(t){if(t.length<2||t[0]!==2)throw new Error(`Invalid signature integer tag: ${_d(t)}`);const e=t[1],r=t.subarray(2,e+2);if(!e||r.length!==e)throw new Error("Invalid signature integer: wrong length");if(r[0]===0&&r[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:_l(r),left:t.subarray(e+2)}}function wte(t){if(t.length<2||t[0]!=48)throw new Error(`Invalid signature tag: ${_d(t)}`);if(t[1]!==t.length-2)throw new Error("Invalid signature: incorrect length");const{data:e,left:r}=NE(t.subarray(2)),{data:n,left:s}=NE(r);if(s.length)throw new Error(`Invalid signature: left bytes after parsing: ${_d(s)}`);return{r:e,s:n}}let gh=class fg{constructor(e,r){this.r=e,this.s=r,this.assertValidity()}static fromCompact(e){const r=e instanceof Uint8Array,n="Signature.fromCompact";if(typeof e!="string"&&!r)throw new TypeError(`${n}: Expected string or Uint8Array`);const s=r?_d(e):e;if(s.length!==128)throw new Error(`${n}: Expected 64-byte hex`);return new fg(cv(s.slice(0,64)),cv(s.slice(64,128)))}static fromDER(e){const r=e instanceof Uint8Array;if(typeof e!="string"&&!r)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");const{r:n,s}=wte(r?e:Dc(e));return new fg(n,s)}static fromHex(e){return this.fromDER(e)}assertValidity(){const{r:e,s:r}=this;if(!Bp(e))throw new Error("Invalid Signature: r must be 0 < r < n");if(!Bp(r))throw new Error("Invalid Signature: s must be 0 < s < n")}hasHighS(){const e=Pn.n>>pn;return this.s>e}normalizeS(){return this.hasHighS()?new fg(this.r,dt(-this.s,Pn.n)):this}toDERRawBytes(){return Dc(this.toDERHex())}toDERHex(){const e=RE(R0(this.s)),r=RE(R0(this.r)),n=e.length/2,s=r.length/2,i=R0(n),o=R0(s);return`30${R0(s+n+4)}02${o}${r}02${i}${e}`}toRawBytes(){return this.toDERRawBytes()}toHex(){return this.toDERHex()}toCompactRawBytes(){return Dc(this.toCompactHex())}toCompactHex(){return vh(this.r)+vh(this.s)}};function il(...t){if(!t.every(n=>n instanceof Uint8Array))throw new Error("Uint8Array list expected");if(t.length===1)return t[0];const e=t.reduce((n,s)=>n+s.length,0),r=new Uint8Array(e);for(let n=0,s=0;ne.toString(16).padStart(2,"0"));function _d(t){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");let e="";for(let r=0;r0)return BigInt(t);if(typeof t=="bigint"&&Bp(t))return t;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function dt(t,e=Pn.P){const r=t%e;return r>=Tr?r:e+r}function Us(t,e){const{P:r}=Pn;let n=t;for(;e-- >Tr;)n*=n,n%=r;return n}function Ete(t){const{P:e}=Pn,r=BigInt(6),n=BigInt(11),s=BigInt(22),i=BigInt(23),o=BigInt(44),f=BigInt(88),u=t*t*t%e,h=u*u*t%e,p=Us(h,Z0)*h%e,d=Us(p,Z0)*h%e,v=Us(d,wl)*u%e,w=Us(v,n)*v%e,A=Us(w,s)*w%e,M=Us(A,o)*A%e,R=Us(M,f)*M%e,N=Us(R,o)*A%e,C=Us(N,Z0)*h%e,B=Us(C,i)*w%e,O=Us(B,r)*u%e,D=Us(O,wl);if(D*D%e!==t)throw new Error("Cannot find square root");return D}function U1(t,e=Pn.P){if(t===Tr||e<=Tr)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let r=dt(t,e),n=e,s=Tr,i=pn;for(;r!==Tr;){const f=n/r,u=n%r,h=s-i*f;n=r,r=u,s=i,i=h}if(n!==pn)throw new Error("invert: does not exist");return dt(s,e)}function Mte(t,e=Pn.P){const r=new Array(t.length),n=t.reduce((i,o,f)=>o===Tr?i:(r[f]=i,dt(i*o,e)),pn),s=U1(n,e);return t.reduceRight((i,o,f)=>o===Tr?i:(r[f]=dt(i*r[f],e),dt(i*o,e)),s),r}function Ste(t){const e=t.length*8-Sd*8,r=_l(t);return e>0?r>>BigInt(e):r}function XN(t,e=!1){const r=Ste(t);if(e)return r;const{n}=Pn;return r>=n?r-n:r}let yh,Y0;class _te{constructor(e,r){if(this.hashLen=e,this.qByteLen=r,typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof r!="number"||r<2)throw new Error("qByteLen must be a number");this.v=new Uint8Array(e).fill(1),this.k=new Uint8Array(e).fill(0),this.counter=0}hmac(...e){return Al.hmacSha256(this.k,...e)}hmacSync(...e){return Y0(this.k,...e)}checkSync(){if(typeof Y0!="function")throw new QN("hmacSha256Sync needs to be set")}incr(){if(this.counter>=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}async reseed(e=new Uint8Array){this.k=await this.hmac(this.v,Uint8Array.from([0]),e),this.v=await this.hmac(this.v),e.length!==0&&(this.k=await this.hmac(this.v,Uint8Array.from([1]),e),this.v=await this.hmac(this.v))}reseedSync(e=new Uint8Array){this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),e),this.v=this.hmacSync(this.v),e.length!==0&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),e),this.v=this.hmacSync(this.v))}async generate(){this.incr();let e=0;const r=[];for(;e0)e=BigInt(t);else if(typeof t=="string"){if(t.length!==2*Sd)throw new Error("Expected 32 bytes of private key");e=cv(t)}else if(t instanceof Uint8Array){if(t.length!==Sd)throw new Error("Expected 32 bytes of private key");e=_l(t)}else throw new TypeError("Expected valid private key");if(!Bp(e))throw new Error("Expected private key: 0 < key < n");return e}function Nte(t){return t instanceof Wr?(t.assertValidity(),t):Wr.fromHex(t)}function Cte(t){if(t instanceof gh)return t.assertValidity(),t;try{return gh.fromDER(t)}catch{return gh.fromCompact(t)}}function Tte(t,e=!1){return Wr.fromPrivateKey(t).toRawBytes(e)}function kte(t,e,r,n=!1){return Wr.fromSignature(t,e,r).toRawBytes(n)}function TE(t){const e=t instanceof Uint8Array,r=typeof t=="string",n=(e||r)&&t.length;return e?n===fv||n===lv:r?n===fv*2||n===lv*2:t instanceof Wr}function Bte(t,e,r=!1){if(TE(t))throw new TypeError("getSharedSecret: first arg must be private key");if(!TE(e))throw new TypeError("getSharedSecret: second arg must be public key");const n=Nte(e);return n.assertValidity(),n.multiply(Ip(t)).toRawBytes(r)}function JN(t){const e=t.length>ja?t.slice(0,ja):t;return _l(e)}function Ite(t){const e=JN(t),r=dt(e,Pn.n);return $N(r{t=kp(t);const e=Sd+8;if(t.length1024)throw new Error("Expected valid bytes of private key as per FIPS 186");const r=dt(_l(t),Pn.n-pn)+pn;return mA(r)},randomBytes:(t=32)=>{if(ys.web)return ys.web.getRandomValues(new Uint8Array(t));if(ys.node){const{randomBytes:e}=ys.node;return Uint8Array.from(e(t))}else throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>Al.hashToPrivateKey(Al.randomBytes(Sd+8)),precompute(t=8,e=Wr.BASE){const r=e===Wr.BASE?e:new Wr(e.x,e.y);return r._setWindowSize(t),r.multiply(Z0),r},sha256:async(...t)=>{if(ys.web){const e=await ys.web.subtle.digest("SHA-256",il(...t));return new Uint8Array(e)}else if(ys.node){const{createHash:e}=ys.node,r=e("sha256");return t.forEach(n=>r.update(n)),Uint8Array.from(r.digest())}else throw new Error("The environment doesn't have sha256 function")},hmacSha256:async(t,...e)=>{if(ys.web){const r=await ys.web.subtle.importKey("raw",t,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),n=il(...e),s=await ys.web.subtle.sign("HMAC",r,n);return new Uint8Array(s)}else if(ys.node){const{createHmac:r}=ys.node,n=r("sha256",t);return e.forEach(s=>n.update(s)),Uint8Array.from(n.digest())}else throw new Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async(t,...e)=>{let r=Mm[t];if(r===void 0){const n=await Al.sha256(Uint8Array.from(t,s=>s.charCodeAt(0)));r=il(n,n),Mm[t]=r}return Al.sha256(r,...e)},taggedHashSync:(t,...e)=>{if(typeof yh!="function")throw new QN("sha256Sync is undefined, you need to set it");let r=Mm[t];if(r===void 0){const n=yh(Uint8Array.from(t,s=>s.charCodeAt(0)));r=il(n,n),Mm[t]=r}return yh(r,...e)},_JacobianPoint:Ur};Object.defineProperties(Al,{sha256Sync:{configurable:!1,get(){return yh},set(t){yh||(yh=t)}},hmacSha256Sync:{configurable:!1,get(){return Y0},set(t){Y0||(Y0=t)}}});const gA="0x0000000000000000000000000000000000000000",kE="0x0000000000000000000000000000000000000000000000000000000000000000",BE=BigInt(0),IE=BigInt(1),PE=BigInt(2),OE=BigInt(27),LE=BigInt(28),Sm=BigInt(35),Cu={};function DE(t){return Wc(_s(t),32)}var _h,Rh,Nh,wc;const Ca=class{constructor(e,r,n,s){Fe(this,_h,void 0);Fe(this,Rh,void 0);Fe(this,Nh,void 0);Fe(this,wc,void 0);By(e,Cu,"Signature"),le(this,_h,r),le(this,Rh,n),le(this,Nh,s),le(this,wc,null)}get r(){return te(this,_h)}set r(e){ye(mh(e)===32,"invalid r","value",e),le(this,_h,At(e))}get s(){return te(this,Rh)}set s(e){ye(mh(e)===32,"invalid s","value",e);const r=At(e);ye(parseInt(r.substring(0,3))<8,"non-canonical s","value",r),le(this,Rh,r)}get v(){return te(this,Nh)}set v(e){const r=br(e,"value");ye(r===27||r===28,"invalid v","v",e),le(this,Nh,r)}get networkV(){return te(this,wc)}get legacyChainId(){const e=this.networkV;return e==null?null:Ca.getChainId(e)}get yParity(){return this.v===27?0:1}get yParityAndS(){const e=Br(this.s);return this.yParity&&(e[0]|=128),At(e)}get compactSerialized(){return jn([this.r,this.yParityAndS])}get serialized(){return jn([this.r,this.s,this.yParity?"0x1c":"0x1b"])}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const e=new Ca(Cu,this.r,this.s,this.v);return this.networkV&&le(e,wc,this.networkV),e}toJSON(){const e=this.networkV;return{_type:"signature",networkV:e!=null?e.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(e){const r=St(e,"v");return r==OE||r==LE?BE:(ye(r>=Sm,"invalid EIP-155 v","v",e),(r-Sm)/PE)}static getChainIdV(e,r){return St(e)*PE+BigInt(35+r-27)}static getNormalizedV(e){const r=St(e);return r===BE||r===OE?27:r===IE||r===LE?28:(ye(r>=Sm,"invalid v","v",e),r&IE?27:28)}static from(e){function r(h,p){ye(h,p,"signature",e)}if(e==null)return new Ca(Cu,kE,kE,27);if(typeof e=="string"){const h=Br(e,"signature");if(h.length===64){const p=At(h.slice(0,32)),d=h.slice(32,64),v=d[0]&128?28:27;return d[0]&=127,new Ca(Cu,p,At(d),v)}if(h.length===65){const p=At(h.slice(0,32)),d=h.slice(32,64);r((d[0]&128)===0,"non-canonical s");const v=Ca.getNormalizedV(h[64]);return new Ca(Cu,p,At(d),v)}r(!1,"invalid raw signature length")}if(e instanceof Ca)return e.clone();const n=e.r;r(n!=null,"missing r");const s=DE(n),i=function(h,p){if(h!=null)return DE(h);if(p!=null){r(Mn(p,32),"invalid yParityAndS");const d=Br(p);return d[0]&=127,At(d)}r(!1,"missing s")}(e.s,e.yParityAndS);r((Br(i)[0]&128)==0,"non-canonical s");const{networkV:o,v:f}=function(h,p,d){if(h!=null){const v=St(h);return{networkV:v>=Sm?v:void 0,v:Ca.getNormalizedV(v)}}if(p!=null)return r(Mn(p,32),"invalid yParityAndS"),{v:Br(p)[0]&128?28:27};if(d!=null){switch(d){case 0:return{v:27};case 1:return{v:28}}r(!1,"invalid yParity")}r(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),u=new Ca(Cu,s,i,f);return o&&le(u,wc,o),r(!("yParity"in e&&e.yParity!==u.yParity),"yParity mismatch"),r(!("yParityAndS"in e&&e.yParityAndS!==u.yParityAndS),"yParityAndS mismatch"),u}};let Va=Ca;_h=new WeakMap,Rh=new WeakMap,Nh=new WeakMap,wc=new WeakMap;Al.hmacSha256Sync=function(t,...e){return Br(F1("sha256",t,jn(e)))};var sf;const oc=class{constructor(e){Fe(this,sf,void 0);ye(mh(e)===32,"invalid private key","privateKey","[REDACTED]"),le(this,sf,At(e))}get privateKey(){return te(this,sf)}get publicKey(){return oc.computePublicKey(te(this,sf))}get compressedPublicKey(){return oc.computePublicKey(te(this,sf),!0)}sign(e){ye(mh(e)===32,"invalid digest length","digest",e);const[r,n]=Lte(hs(e),hs(te(this,sf)),{recovered:!0,canonical:!0}),s=gh.fromHex(r);return Va.from({r:Il("0x"+s.r.toString(16),32),s:Il("0x"+s.s.toString(16),32),v:n?28:27})}computeSharedSecret(e){const r=oc.computePublicKey(e);return At(Bte(hs(te(this,sf)),Br(r)))}static computePublicKey(e,r){let n=Br(e,"key");if(n.length===32){const i=Tte(n,!!r);return At(i)}if(n.length===64){const i=new Uint8Array(65);i[0]=4,i.set(n,1),n=i}const s=Wr.fromHex(n);return At(s.toRawBytes(r))}static recoverPublicKey(e,r){ye(mh(e)===32,"invalid digest length","digest",e);const n=Va.from(r),s=gh.fromCompact(hs(jn([n.r,n.s]))).toDERRawBytes(),i=kte(hs(e),s,n.yParity);return ye(i!=null,"invalid signautre for digest","signature",r),At(i)}static addPoints(e,r,n){const s=Wr.fromHex(oc.computePublicKey(e).substring(2)),i=Wr.fromHex(oc.computePublicKey(r).substring(2));return"0x"+s.add(i).toHex(!!n)}};let Pp=oc;sf=new WeakMap;const Dte=BigInt(0),Fte=BigInt(36);function FE(t){t=t.toLowerCase();const e=t.substring(2).split(""),r=new Uint8Array(40);for(let s=0;s<40;s++)r[s]=e[s].charCodeAt(0);const n=Br(mn(r));for(let s=0;s<40;s+=2)n[s>>1]>>4>=8&&(e[s]=e[s].toUpperCase()),(n[s>>1]&15)>=8&&(e[s+1]=e[s+1].toUpperCase());return"0x"+e.join("")}const k6={};for(let t=0;t<10;t++)k6[String(t)]=String(t);for(let t=0;t<26;t++)k6[String.fromCharCode(65+t)]=String(10+t);const UE=15;function Ute(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>k6[n]).join("");for(;e.length>=UE;){let n=e.substring(0,UE);e=parseInt(n,10)%97+e.substring(n.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}const Hte=function(){const t={};for(let e=0;e<36;e++){const r="0123456789abcdefghijklmnopqrstuvwxyz"[e];t[r]=BigInt(e)}return t}();function jte(t){t=t.toLowerCase();let e=Dte;for(let r=0;re.format()).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return this.type==="string"}get tupleName(){if(this.type!=="tuple")throw TypeError("not a tuple");return te(this,Ac)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return te(this,Ac)===!0?-1:te(this,Ac)===!1?this.value.length:null}static from(e,r){return new Xo(Qo,e,r)}static uint8(e){return ht(e,8)}static uint16(e){return ht(e,16)}static uint24(e){return ht(e,24)}static uint32(e){return ht(e,32)}static uint40(e){return ht(e,40)}static uint48(e){return ht(e,48)}static uint56(e){return ht(e,56)}static uint64(e){return ht(e,64)}static uint72(e){return ht(e,72)}static uint80(e){return ht(e,80)}static uint88(e){return ht(e,88)}static uint96(e){return ht(e,96)}static uint104(e){return ht(e,104)}static uint112(e){return ht(e,112)}static uint120(e){return ht(e,120)}static uint128(e){return ht(e,128)}static uint136(e){return ht(e,136)}static uint144(e){return ht(e,144)}static uint152(e){return ht(e,152)}static uint160(e){return ht(e,160)}static uint168(e){return ht(e,168)}static uint176(e){return ht(e,176)}static uint184(e){return ht(e,184)}static uint192(e){return ht(e,192)}static uint200(e){return ht(e,200)}static uint208(e){return ht(e,208)}static uint216(e){return ht(e,216)}static uint224(e){return ht(e,224)}static uint232(e){return ht(e,232)}static uint240(e){return ht(e,240)}static uint248(e){return ht(e,248)}static uint256(e){return ht(e,256)}static uint(e){return ht(e,256)}static int8(e){return ht(e,-8)}static int16(e){return ht(e,-16)}static int24(e){return ht(e,-24)}static int32(e){return ht(e,-32)}static int40(e){return ht(e,-40)}static int48(e){return ht(e,-48)}static int56(e){return ht(e,-56)}static int64(e){return ht(e,-64)}static int72(e){return ht(e,-72)}static int80(e){return ht(e,-80)}static int88(e){return ht(e,-88)}static int96(e){return ht(e,-96)}static int104(e){return ht(e,-104)}static int112(e){return ht(e,-112)}static int120(e){return ht(e,-120)}static int128(e){return ht(e,-128)}static int136(e){return ht(e,-136)}static int144(e){return ht(e,-144)}static int152(e){return ht(e,-152)}static int160(e){return ht(e,-160)}static int168(e){return ht(e,-168)}static int176(e){return ht(e,-176)}static int184(e){return ht(e,-184)}static int192(e){return ht(e,-192)}static int200(e){return ht(e,-200)}static int208(e){return ht(e,-208)}static int216(e){return ht(e,-216)}static int224(e){return ht(e,-224)}static int232(e){return ht(e,-232)}static int240(e){return ht(e,-240)}static int248(e){return ht(e,-248)}static int256(e){return ht(e,-256)}static int(e){return ht(e,-256)}static bytes1(e){return Pr(e,1)}static bytes2(e){return Pr(e,2)}static bytes3(e){return Pr(e,3)}static bytes4(e){return Pr(e,4)}static bytes5(e){return Pr(e,5)}static bytes6(e){return Pr(e,6)}static bytes7(e){return Pr(e,7)}static bytes8(e){return Pr(e,8)}static bytes9(e){return Pr(e,9)}static bytes10(e){return Pr(e,10)}static bytes11(e){return Pr(e,11)}static bytes12(e){return Pr(e,12)}static bytes13(e){return Pr(e,13)}static bytes14(e){return Pr(e,14)}static bytes15(e){return Pr(e,15)}static bytes16(e){return Pr(e,16)}static bytes17(e){return Pr(e,17)}static bytes18(e){return Pr(e,18)}static bytes19(e){return Pr(e,19)}static bytes20(e){return Pr(e,20)}static bytes21(e){return Pr(e,21)}static bytes22(e){return Pr(e,22)}static bytes23(e){return Pr(e,23)}static bytes24(e){return Pr(e,24)}static bytes25(e){return Pr(e,25)}static bytes26(e){return Pr(e,26)}static bytes27(e){return Pr(e,27)}static bytes28(e){return Pr(e,28)}static bytes29(e){return Pr(e,29)}static bytes30(e){return Pr(e,30)}static bytes31(e){return Pr(e,31)}static bytes32(e){return Pr(e,32)}static address(e){return new Xo(Qo,"address",e)}static bool(e){return new Xo(Qo,"bool",!!e)}static bytes(e){return new Xo(Qo,"bytes",e)}static string(e){return new Xo(Qo,"string",e)}static array(e,r){throw new Error("not implemented yet")}static tuple(e,r){throw new Error("not implemented yet")}static overrides(e){return new Xo(Qo,"overrides",Object.assign({},e))}static isTyped(e){return e&&typeof e=="object"&&"_typedSymbol"in e&&e._typedSymbol===HE}static dereference(e,r){if(Xo.isTyped(e)){if(e.type!==r)throw new Error(`invalid type: expecetd ${r}, got ${e.type}`);return e.value}return e}};let Ui=Xo;Ac=new WeakMap;class Kte extends Ff{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,r){let n=Ui.dereference(r,"string");try{n=Hr(n)}catch(s){return this._throwError(s.message,r)}return e.writeValue(n)}decode(e){return Hr(Il(e.readValue(),20))}}class qte extends Ff{constructor(r){super(r.name,r.type,"_",r.dynamic);xe(this,"coder");this.coder=r}defaultValue(){return this.coder.defaultValue()}encode(r,n){return this.coder.encode(r,n)}decode(r){return this.coder.decode(r)}}function tC(t,e,r){let n=[];if(Array.isArray(r))n=r;else if(r&&typeof r=="object"){let u={};n=e.map(h=>{const p=h.localName;return nt(p,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:h},value:r}),nt(!u[p],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:h},value:r}),u[p]=!0,r[p]})}else ye(!1,"invalid tuple value","tuple",r);ye(e.length===n.length,"types/value length mismatch","tuple",r);let s=new cA,i=new cA,o=[];e.forEach((u,h)=>{let p=n[h];if(u.dynamic){let d=i.length;u.encode(i,p);let v=s.writeUpdatableValue();o.push(w=>{v(w+d)})}else u.encode(s,p)}),o.forEach(u=>{u(s.length)});let f=t.appendWriter(s);return f+=t.appendWriter(i),f}function rC(t,e){let r=[],n=[],s=t.subReader(0);return e.forEach(i=>{let o=null;if(i.dynamic){let f=t.readIndex(),u=s.subReader(f);try{o=i.decode(u)}catch(h){if(ko(h,"BUFFER_OVERRUN"))throw h;o=h,o.baseType=i.name,o.name=i.localName,o.type=i.type}}else try{o=i.decode(t)}catch(f){if(ko(f,"BUFFER_OVERRUN"))throw f;o=f,o.baseType=i.name,o.name=i.localName,o.type=i.type}if(o==null)throw new Error("investigate");r.push(o),n.push(i.localName||null)}),av.fromItems(r,n)}class Gte extends Ff{constructor(r,n,s){const i=r.type+"["+(n>=0?n:"")+"]",o=n===-1||r.dynamic;super("array",i,s,o);xe(this,"coder");xe(this,"length");Dt(this,{coder:r,length:n})}defaultValue(){const r=this.coder.defaultValue(),n=[];for(let s=0;so||s<-(o+Jte))&&this._throwError("value out-of-bounds",n),s=SN(s,8*Wi)}else(sD0(i,this.size*8))&&this._throwError("value out-of-bounds",n);return r.writeValue(s)}decode(r){let n=D0(r.readValue(),this.size*8);return this.signed&&(n=$$(n,this.size*8)),n}}class tre extends nC{constructor(e){super("string",e)}defaultValue(){return""}encode(e,r){return super.encode(e,xf(Ui.dereference(r,"string")))}decode(e){return N6(super.decode(e))}}class _m extends Ff{constructor(r,n){let s=!1;const i=[];r.forEach(f=>{f.dynamic&&(s=!0),i.push(f.type)});const o="tuple("+i.join(",")+")";super("tuple",o,n,s);xe(this,"coders");Dt(this,{coders:Object.freeze(r.slice())})}defaultValue(){const r=[];this.coders.forEach(s=>{r.push(s.defaultValue())});const n=this.coders.reduce((s,i)=>{const o=i.localName;return o&&(s[o]||(s[o]=0),s[o]++),s},{});return this.coders.forEach((s,i)=>{let o=s.localName;!o||n[o]!==1||(o==="length"&&(o="_length"),r[o]==null&&(r[o]=r[i]))}),Object.freeze(r)}encode(r,n){const s=Ui.dereference(n,"tuple");return tC(r,this.coders,s)}decode(r){return rC(r,this.coders)}}function Yc(t){return mn(xf(t))}function rre(t){let e=0;function r(){return t[e++]<<8|t[e++]}let n=r(),s=1,i=[0,1];for(let D=1;D>--u&1}const d=31,v=2**d,w=v>>>1,A=w>>1,M=v-1;let R=0;for(let D=0;D1;){let H=q+W>>>1;D>>1|p(),k=k<<1^w,I=(I^w)<<1|w|1;C=k,B=1+I-k}let O=n-4;return N.map(D=>{switch(D-O){case 3:return O+65792+(t[f++]<<16|t[f++]<<8|t[f++]);case 2:return O+256+(t[f++]<<8|t[f++]);case 1:return O+t[f++];default:return D-1}})}function nre(t){let e=0;return()=>t[e++]}function iC(t){return nre(rre(ire(t)))}function ire(t){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((s,i)=>e[s.charCodeAt(0)]=i);let r=t.length,n=new Uint8Array(6*r>>3);for(let s=0,i=0,o=0,f=0;s=8&&(n[i++]=f>>(o-=8));return n}function sre(t){return t&1?~t>>1:t>>1}function are(t,e){let r=Array(t);for(let n=0,s=0;n{let e=Pl(t);if(e.length)return e})}function aC(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(ore(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(fre(r,t))}return e.flat()}function Op(t){let e=[];for(;;){let r=t(e.length);if(!r)break;e.push(r)}return e}function oC(t,e,r){let n=Array(t).fill().map(()=>[]);for(let s=0;sn[o].push(i));return n}function ore(t,e){let r=1+e(),n=e(),s=Op(e);return oC(s.length,1+t,e).flatMap((o,f)=>{let[u,...h]=o;return Array(s[f]).fill().map((p,d)=>{let v=d*n;return[u+d*r,h.map(w=>w+v)]})})}function fre(t,e){let r=1+e();return oC(r,1+t,e).map(s=>[s[0],s.slice(1)])}var Cs=iC("AEgSbwjEDVYByQKaAQsBOQDpATQAngDUAHsAoABoANQAagCNAEQAhABMAHIAOwA9ACsANgAmAGIAHgAvACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGAAeABMAFwAXAA0ADgAWAA8AFAAVBFsF1QEXE0o3xAXUALIArkABaACmAgPGAK6AMDAwMAE/qAYK7P4HQAblMgVYBVkAPSw5Afa3EgfJwgAPA8meNALGCjACjqIChtk/j2+KAsXMAoPzASDgCgDyrgFCAi6OCkCQAOQA4woWABjVuskNDD6eBBx4AP4COhi+D+wKBirqBgSCaA0cBy4ArABqku+mnIAAXAaUJAbqABwAPAyUFvyp/Mo8INAIvCoDshQ8APcubKQAon4ZABgEJtgXAR4AuhnOBPsKIE04CZgJiR8cVlpM5INDABQADQAWAA9sVQAiAA8ASO8W2T30OVnKluYvChEeX05ZPe0AFAANABYAD2wgXUCYAMPsABwAOgzGFryp/AHauQVcBeMC0KACxLEKTR2kZhR0Gm5M9gC8DmgC4gAMLjSKF8qSAoF8ARMcAL4OaALiAAwuAUlQJpJMCwMt/AUpCthqGK4B2EQAciwSeAIyFiIDKCi6OGwAOuIB9iYAyA7MtgEcZIIAsgYABgCK1EoFHNZsGACoKNIBogAAAAAAKy4DnABoAQoaPu43dQQZGACrAcgCIgD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8IKvE");const jE=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),zE=4;function lre(t){return t.toString(16).toUpperCase().padStart(2,"0")}function fC(t){return`{${lre(t)}}`}function cre(t){let e=[];for(let r=0,n=t.length;r>24&255}function lC(t){return t&16777215}const ure=new Map(sC(B6).flatMap((t,e)=>t.map(r=>[r,e+1<<24]))),hre=new Set(Pl(B6)),cC=new Map,vA=new Map;for(let[t,e]of aC(B6)){if(!hre.has(t)&&e.length==2){let[r,n]=e,s=vA.get(r);s||(s=new Map,vA.set(r,s)),s.set(n,t)}cC.set(t,e.reverse())}const Dp=44032,uv=4352,hv=4449,dv=4519,uC=19,hC=21,Rd=28,pv=hC*Rd,dre=uC*pv,pre=Dp+dre,mre=uv+uC,gre=hv+hC,vre=dv+Rd;function dC(t){return t>=Dp&&t=uv&&t=hv&&edv&&e0&&s(dv+h)}else{let o=cC.get(i);o?r.push(...o):s(i)}if(!r.length)break;i=r.pop()}if(n&&e.length>1){let i=U0(e[0]);for(let o=1;o0&&s>=o)o==0?(e.push(n,...r),r.length=0,n=f):r.push(f),s=o;else{let u=yre(n,f);u>=0?n=u:s==0&&o==0?(e.push(n),n=f):(r.push(f),s=o)}}return n>=0&&e.push(n,...r),e}function mC(t){return pC(t).map(lC)}function wre(t){return bre(pC(t))}const yA=65039,gC=".",vC=1,KE=45;function Vd(){return new Set(Pl(Cs))}const Are=new Map(aC(Cs)),xre=Vd(),mv=Vd(),qE=new Set(Pl(Cs).map(function(t){return this[t]},[...mv])),Ere=Vd();Vd();const Mre=sC(Cs);function GE(){return new Set([Pl(Cs).map(t=>Mre[t]),Pl(Cs)].flat(2))}const Sre=Cs(),Fp=Op(t=>{let e=Op(Cs).map(r=>r+96);if(e.length){let r=t>=Sre;e[0]-=32,e=Lp(e),r&&(e=`Restricted[${e}]`);let n=GE(),s=GE(),i=[...n,...s].sort((f,u)=>f-u),o=!Cs();return{N:e,P:n,M:o,R:r,V:new Set(i)}}}),VE=Vd(),Up=new Map;[...VE,...Vd()].sort((t,e)=>t-e).map((t,e,r)=>{let n=Cs(),s=r[e]=n?r[e-n]:{V:[],M:new Map};s.V.push(t),VE.has(t)||Up.set(t,s)});for(let{V:t,M:e}of new Set(Up.values())){let r=[];for(let s of t){let i=Fp.filter(f=>f.V.has(s)),o=r.find(({G:f})=>i.some(u=>f.has(u)));o||(o={G:new Set,V:[]},r.push(o)),o.V.push(s),i.forEach(f=>o.G.add(f))}let n=r.flatMap(({G:s})=>[...s]);for(let{G:s,V:i}of r){let o=new Set(n.filter(f=>!s.has(f)));for(let f of i)e.set(f,o)}}let Hp=new Set,yC=new Set;for(let t of Fp)for(let e of t.V)(Hp.has(e)?yC:Hp).add(e);for(let t of Hp)!Up.has(t)&&!yC.has(t)&&Up.set(t,vC);const _re=new Set([...Hp,...mC(Hp)]),Rre=Pl(Cs),Nre=bC([]);function bC(t){let e=Op(()=>{let f=Pl(Cs).map(u=>Rre[u]);if(f.length)return bC(f)}).sort((f,u)=>u.Q.size-f.Q.size),r=Cs(),n=r%3;r=r/3|0;let s=r&1;r>>=1;let i=r&1,o=r&2;return{B:e,V:n,F:s,S:i,C:o,Q:new Set(t)}}class Cre extends Array{get is_emoji(){return!0}}function Ly(t,e=fC){let r=[];Bre(t[0])&&r.push("◌");let n=0,s=t.length;for(let i=0;i=4&&t[2]==KE&&t[3]==KE)throw new Error("invalid label extension")}function WE(t){for(let r=t.lastIndexOf(95);r>0;)if(t[--r]!==95)throw new Error("underscore allowed only at start")}function kre(t){let e=t[0],r=jE.get(e);if(r)throw Q0(`leading ${r}`);let n=t.length,s=-1;for(let i=1;i{let s=cre(n),i={input:s,offset:r};r+=s.length+1;let o;try{let f=i.tokens=Ure(s,wre),u=f.length,h;if(u){let p=f[0],d=u>1||p.is_emoji;if(!d&&p.every(v=>v<128))o=p,WE(o),Tre(o),h="ASCII";else if(d&&(i.emoji=!0,p=f.flatMap(v=>v.is_emoji?[]:v)),o=f.flatMap(v=>!e&&v.is_emoji?Hre(v):v),WE(o),!p.length)h="Emoji";else{if(mv.has(o[0]))throw Q0("leading combining mark");for(let A=1;Ao.has(f)):[...o],!r.length)return}else n.push(s)}if(r){for(let s of r)if(n.every(i=>s.V.has(i)))throw new Error(`whole-script confusable: ${t.N}/${s.N}`)}}function Lre(t){let e=Fp;for(let r of t){let n=e.filter(s=>s.V.has(r));if(!n.length)throw e===Fp?AC(r):xC(e[0],r);if(e=n,n.length==1)break}return e}function Dre(t){return t.map(({input:e,error:r,output:n})=>{if(r){let s=r.message;throw new Error(t.length==1?s:`Invalid label ${P6(Ly(e))}: ${s}`)}return Lp(n)}).join(gC)}function AC(t){return new Error(`disallowed character: ${I6(t)}`)}function xC(t,e){let r=I6(e),n=Fp.find(s=>s.P.has(e));return n&&(r=`${n.N} ${r}`),new Error(`illegal mixture: ${t.N} + ${r}`)}function Q0(t){return new Error(`illegal placement: ${t}`)}function Fre(t,e){let{V:r,M:n}=t;for(let s of e)if(!r.has(s))throw xC(t,s);if(n){let s=mC(e);for(let i=1,o=s.length;izE)throw new Error(`non-spacing marks: too many ${P6(Ly(s.slice(i-1,f)))} (${f-i}/${zE})`);i=f}}}function Ure(t,e){let r=[],n=[];for(t=t.slice().reverse();t.length;){let s=jre(t);if(s)n.length&&(r.push(e(n)),n=[]),r.push(s);else{let i=t.pop();if(_re.has(i))n.push(i);else{let o=Are.get(i);if(o)n.push(...o);else if(!xre.has(i))throw AC(i)}}}return n.length&&r.push(e(n)),r}function Hre(t){return t.filter(e=>e!=yA)}function jre(t,e){let r=Nre,n,s,i=[],o=t.length;for(e&&(e.length=0);o;){let f=t[--o];if(r=r.B.find(u=>u.Q.has(f)),!r)break;if(r.S)s=f;else if(r.C&&f===s)break;i.push(f),r.F&&(i.push(yA),o>0&&t[o-1]==yA&&o--),r.V&&(n=zre(i,r),e&&e.push(...t.slice(o).reverse()),t.length=o)}return n}function zre(t,e){let r=Cre.from(t);return e.V==2&&r.splice(1,1),r}const EC=new Uint8Array(32);EC.fill(0);function ZE(t){return ye(t.length!==0,"invalid ENS name; empty component","comp",t),t}function MC(t){const e=xf(Kre(t)),r=[];if(t.length===0)return r;let n=0;for(let s=0;s{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const r=new Uint8Array(e.length+1);return r.set(e,1),r[0]=r.length-1,r})))+"00"}function G2(t,e){return{address:Hr(t),storageKeys:e.map((r,n)=>(ye(Mn(r,32),"invalid slot",`storageKeys[${n}]`,r),r.toLowerCase()))}}function fu(t){if(Array.isArray(t))return t.map((r,n)=>Array.isArray(r)?(ye(r.length===2,"invalid slot set",`value[${n}]`,r),G2(r[0],r[1])):(ye(r!=null&&typeof r=="object","invalid address-slot set","value",t),G2(r.address,r.storageKeys)));ye(t!=null&&typeof t=="object","invalid access list","value",t);const e=Object.keys(t).map(r=>{const n=t[r].reduce((s,i)=>(s[i]=!0,s),{});return G2(r,Object.keys(n).sort())});return e.sort((r,n)=>r.address.localeCompare(n.address)),e}function Gre(t){let e;return typeof t=="string"?e=Pp.computePublicKey(t,!1):e=t.publicKey,Hr(mn("0x"+e.substring(4)).substring(26))}function wA(t,e){return Gre(Pp.recoverPublicKey(t,e))}const cs=BigInt(0),Vre=BigInt(2),Wre=BigInt(27),Zre=BigInt(28),Yre=BigInt(35),Qre=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function O6(t){return t==="0x"?null:Hr(t)}function SC(t,e){try{return fu(t)}catch(r){ye(!1,r.message,e,t)}}function Dy(t,e){return t==="0x"?0:br(t,e)}function Vi(t,e){if(t==="0x")return cs;const r=St(t,e);return ye(r<=Qre,"value exceeds uint size",e,r),r}function wi(t,e){const r=St(t,"value"),n=_s(r);return ye(n.length<=32,"value too large",`tx.${e}`,r),n}function _C(t){return fu(t).map(e=>[e.address,e.storageKeys])}function Xre(t){const e=C6(t);ye(Array.isArray(e)&&(e.length===9||e.length===6),"invalid field count for legacy transaction","data",t);const r={type:0,nonce:Dy(e[0],"nonce"),gasPrice:Vi(e[1],"gasPrice"),gasLimit:Vi(e[2],"gasLimit"),to:O6(e[3]),value:Vi(e[4],"value"),data:At(e[5]),chainId:cs};if(e.length===6)return r;const n=Vi(e[6],"v"),s=Vi(e[7],"r"),i=Vi(e[8],"s");if(s===cs&&i===cs)r.chainId=n;else{let o=(n-Yre)/Vre;o=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),nt(!r||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),nt(this.type!==0||!n,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const s=[];return this.type!=null?s.push(this.type):r?s.push(2):e?(s.push(1),n||s.push(0)):n?(s.push(1),s.push(2)):(s.push(0),s.push(1),s.push(2)),s.sort(),s}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}clone(){return rl.from(this)}toJSON(){const e=r=>r==null?null:r.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(e==null)return new rl;if(typeof e=="string"){const n=Br(e);if(n[0]>=127)return rl.from(Xre(n));switch(n[0]){case 1:return rl.from($re(n));case 2:return rl.from(Jre(n))}nt(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const r=new rl;return e.type!=null&&(r.type=e.type),e.to!=null&&(r.to=e.to),e.nonce!=null&&(r.nonce=e.nonce),e.gasLimit!=null&&(r.gasLimit=e.gasLimit),e.gasPrice!=null&&(r.gasPrice=e.gasPrice),e.maxPriorityFeePerGas!=null&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas),e.maxFeePerGas!=null&&(r.maxFeePerGas=e.maxFeePerGas),e.data!=null&&(r.data=e.data),e.value!=null&&(r.value=e.value),e.chainId!=null&&(r.chainId=e.chainId),e.signature!=null&&(r.signature=Va.from(e.signature)),e.accessList!=null&&(r.accessList=e.accessList),e.hash!=null&&(ye(r.isSigned(),"unsigned transaction cannot define hash","tx",e),ye(r.hash===e.hash,"hash mismatch","tx",e)),e.from!=null&&(ye(r.isSigned(),"unsigned transaction cannot define from","tx",e),ye(r.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),r}};let gv=rl;af=new WeakMap,Ch=new WeakMap,Th=new WeakMap,kh=new WeakMap,Bh=new WeakMap,Ih=new WeakMap,Ph=new WeakMap,Oh=new WeakMap,Lh=new WeakMap,Dh=new WeakMap,Fh=new WeakMap,Uh=new WeakMap;const NC=new Uint8Array(32);NC.fill(0);const ene=BigInt(-1),CC=BigInt(0),TC=BigInt(1),tne=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function rne(t){const e=Br(t),r=e.length%32;return r?jn([e,NC.slice(r)]):At(e)}const nne=Il(TC,32),ine=Il(CC,32),JE={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},V2=["name","version","chainId","verifyingContract","salt"];function $E(t){return function(e){return ye(typeof e=="string",`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const sne={name:$E("name"),version:$E("version"),chainId:function(t){const e=St(t,"domain.chainId");return ye(e>=0,"invalid chain ID","domain.chainId",t),Number.isSafeInteger(e)?Number(e):$u(e)},verifyingContract:function(t){try{return Hr(t).toLowerCase()}catch{}ye(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){const e=Br(t,"domain.salt");return ye(e.length===32,'invalid domain value "salt"',"domain.salt",t),At(e)}};function W2(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const r=e[1]==="",n=parseInt(e[2]||"256");ye(n%8===0&&n!==0&&n<=256&&(e[2]==null||e[2]===String(n)),"invalid numeric width","type",t);const s=D0(tne,r?n-1:n),i=r?(s+TC)*ene:CC;return function(o){const f=St(o,"value");return ye(f>=i&&f<=s,`value out-of-bounds for ${t}`,"value",f),Il(r?SN(f,256):f,32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return ye(r!==0&&r<=32&&e[1]===String(r),"invalid bytes width","type",t),function(n){const s=Br(n);return ye(s.length===r,`invalid length for ${t}`,"value",n),rne(n)}}}switch(t){case"address":return function(e){return Wc(Hr(e),32)};case"bool":return function(e){return e?nne:ine};case"bytes":return function(e){return mn(e)};case"string":return function(e){return Yc(e)}}return null}function e9(t,e){return`${t}(${e.map(({name:r,type:n})=>n+" "+r).join(",")})`}var Wp,of,Hh,xv,kC;const qs=class{constructor(e){Fe(this,xv);xe(this,"primaryType");Fe(this,Wp,void 0);Fe(this,of,void 0);Fe(this,Hh,void 0);le(this,Wp,JSON.stringify(e)),le(this,of,new Map),le(this,Hh,new Map);const r=new Map,n=new Map,s=new Map;Object.keys(e).forEach(f=>{r.set(f,new Set),n.set(f,[]),s.set(f,new Set)});for(const f in e){const u=new Set;for(const h of e[f]){ye(!u.has(h.name),`duplicate variable name ${JSON.stringify(h.name)} in ${JSON.stringify(f)}`,"types",e),u.add(h.name);const p=h.type.match(/^([^\x5b]*)(\x5b|$)/)[1]||null;ye(p!==f,`circular type reference to ${JSON.stringify(p)}`,"types",e),!W2(p)&&(ye(n.has(p),`unknown type ${JSON.stringify(p)}`,"types",e),n.get(p).push(f),r.get(f).add(p))}}const i=Array.from(n.keys()).filter(f=>n.get(f).length===0);ye(i.length!==0,"missing primary type","types",e),ye(i.length===1,`ambiguous primary types or unused types: ${i.map(f=>JSON.stringify(f)).join(", ")}`,"types",e),Dt(this,{primaryType:i[0]});function o(f,u){ye(!u.has(f),`circular type reference to ${JSON.stringify(f)}`,"types",e),u.add(f);for(const h of r.get(f))if(n.has(h)){o(h,u);for(const p of u)s.get(p).add(h)}u.delete(f)}o(this.primaryType,new Set);for(const[f,u]of s){const h=Array.from(u);h.sort(),te(this,of).set(f,e9(f,e[f])+h.map(p=>e9(p,e[p])).join(""))}}get types(){return JSON.parse(te(this,Wp))}getEncoder(e){let r=te(this,Hh).get(e);return r||(r=ct(this,xv,kC).call(this,e),te(this,Hh).set(e,r)),r}encodeType(e){const r=te(this,of).get(e);return ye(r,`unknown type: ${JSON.stringify(e)}`,"name",e),r}encodeData(e,r){return this.getEncoder(e)(r)}hashStruct(e,r){return mn(this.encodeData(e,r))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,r,n){if(W2(e))return n(e,r);const s=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(s)return ye(!s[3]||parseInt(s[3])===r.length,`array length mismatch; expected length ${parseInt(s[3])}`,"value",r),r.map(o=>this._visit(s[1],o,n));const i=this.types[e];if(i)return i.reduce((o,{name:f,type:u})=>(o[f]=this._visit(u,r[f],n),o),{});ye(!1,`unknown type: ${e}`,"type",e)}visit(e,r){return this._visit(this.primaryType,e,r)}static from(e){return new qs(e)}static getPrimaryType(e){return qs.from(e).primaryType}static hashStruct(e,r,n){return qs.from(r).hashStruct(e,n)}static hashDomain(e){const r=[];for(const n in e){if(e[n]==null)continue;const s=JE[n];ye(s,`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),r.push({name:n,type:s})}return r.sort((n,s)=>V2.indexOf(n.name)-V2.indexOf(s.name)),qs.hashStruct("EIP712Domain",{EIP712Domain:r},e)}static encode(e,r,n){return jn(["0x1901",qs.hashDomain(e),qs.from(r).hash(n)])}static hash(e,r,n){return mn(qs.encode(e,r,n))}static async resolveNames(e,r,n,s){e=Object.assign({},e);for(const f in e)e[f]==null&&delete e[f];const i={};e.verifyingContract&&!Mn(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const o=qs.from(r);o.visit(n,(f,u)=>(f==="address"&&!Mn(u,20)&&(i[u]="0x"),u));for(const f in i)i[f]=await s(f);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),n=o.visit(n,(f,u)=>f==="address"&&i[u]?i[u]:u),{domain:e,value:n}}static getPayload(e,r,n){qs.hashDomain(e);const s={},i=[];V2.forEach(u=>{const h=e[u];h!=null&&(s[u]=sne[u](h),i.push({name:u,type:JE[u]}))});const o=qs.from(r),f=Object.assign({},r);return ye(f.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",r),f.EIP712Domain=i,o.encode(n),{types:f,domain:s,primaryType:o.primaryType,message:o.visit(n,(u,h)=>{if(u.match(/^bytes(\d*)/))return At(Br(h));if(u.match(/^u?int/))return St(h).toString();switch(u){case"address":return h.toLowerCase();case"bool":return!!h;case"string":return ye(typeof h=="string","invalid string","value",h),h}ye(!1,"unsupported type","type",u)})}}};let vv=qs;Wp=new WeakMap,of=new WeakMap,Hh=new WeakMap,xv=new WeakSet,kC=function(e){{const s=W2(e);if(s)return s}const r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const s=r[1],i=this.getEncoder(s);return o=>{ye(!r[3]||parseInt(r[3])===o.length,`array length mismatch; expected length ${parseInt(r[3])}`,"value",o);let f=o.map(i);return te(this,of).has(s)&&(f=f.map(mn)),mn(jn(f))}}const n=this.types[e];if(n){const s=Yc(te(this,of).get(e));return i=>{const o=n.map(({name:f,type:u})=>{const h=this.getEncoder(u)(i[f]);return te(this,of).has(u)?mn(h):h});return o.unshift(s),jn(o)}}ye(!1,`unknown type: ${e}`,"type",e)};function Zi(t){const e=new Set;return t.forEach(r=>e.add(r)),Object.freeze(e)}const BC="constant external internal payable private public pure view",ane=Zi(BC.split(" ")),IC="constructor error event fallback function receive struct",PC=Zi(IC.split(" ")),OC="calldata memory storage payable indexed",one=Zi(OC.split(" ")),fne="tuple returns",lne=[IC,OC,fne,BC].join(" "),cne=Zi(lne.split(" ")),une={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},hne=new RegExp("^(\\s*)"),dne=new RegExp("^([0-9]+)"),pne=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),LC=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),DC=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var gi,La,Zp,AA;const Ev=class{constructor(e){Fe(this,Zp);Fe(this,gi,void 0);Fe(this,La,void 0);le(this,gi,0),le(this,La,e.slice())}get offset(){return te(this,gi)}get length(){return te(this,La).length-te(this,gi)}clone(){return new Ev(te(this,La))}reset(){le(this,gi,0)}popKeyword(e){const r=this.peek();if(r.type!=="KEYWORD"||!e.has(r.text))throw new Error(`expected keyword ${r.text}`);return this.pop().text}popType(e){if(this.peek().type!==e)throw new Error(`expected ${e}; got ${JSON.stringify(this.peek())}`);return this.pop().text}popParen(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const r=ct(this,Zp,AA).call(this,te(this,gi)+1,e.match+1);return le(this,gi,e.match+1),r}popParams(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const r=[];for(;te(this,gi)=te(this,La).length)throw new Error("out-of-bounds");return te(this,La)[te(this,gi)]}peekKeyword(e){const r=this.peekType("KEYWORD");return r!=null&&e.has(r)?r:null}peekType(e){if(this.length===0)return null;const r=this.peek();return r.type===e?r.text:null}pop(){const e=this.peek();return a0(this,gi)._++,e}toString(){const e=[];for(let r=te(this,gi);r`}};let Wa=Ev;gi=new WeakMap,La=new WeakMap,Zp=new WeakSet,AA=function(e=0,r=0){return new Ev(te(this,La).slice(e,r).map(n=>Object.freeze(Object.assign({},n,{match:n.match-e,linkBack:n.linkBack-e,linkNext:n.linkNext-e}))))};function ql(t){const e=[],r=o=>{const f=i0&&e[e.length-1].type==="NUMBER"){const d=e.pop().text;p=d+p,e[e.length-1].value=br(d)}if(e.length===0||e[e.length-1].type!=="BRACKET")throw new Error("missing opening bracket");e[e.length-1].text+=p}continue}if(f=o.match(pne),f){if(u.text=f[1],i+=u.text.length,cne.has(u.text)){u.type="KEYWORD";continue}if(u.text.match(DC)){u.type="TYPE";continue}u.type="ID";continue}if(f=o.match(dne),f){u.text=f[1],u.type="NUMBER",i+=u.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(o[0])} at position ${i}`)}return new Wa(e.map(o=>Object.freeze(o)))}function t9(t,e){let r=[];for(const n in e.keys())t.has(n)&&r.push(n);if(r.length>1)throw new Error(`conflicting types: ${r.join(", ")}`)}function Fy(t,e){if(e.peekKeyword(PC)){const r=e.pop().text;if(r!==t)throw new Error(`expected ${t}, got ${r}`)}return e.popType("ID")}function kf(t,e){const r=new Set;for(;;){const n=t.peekType("KEYWORD");if(n==null||e&&!e.has(n))break;if(t.pop(),r.has(n))throw new Error(`duplicate keywords: ${JSON.stringify(n)}`);r.add(n)}return Object.freeze(r)}function FC(t){let e=kf(t,ane);return t9(e,Zi("constant payable nonpayable".split(" "))),t9(e,Zi("pure view payable nonpayable".split(" "))),e.has("view")?"view":e.has("pure")?"pure":e.has("payable")?"payable":e.has("nonpayable")?"nonpayable":e.has("constant")?"view":"nonpayable"}function Ef(t,e){return t.popParams().map(r=>Ei.from(r,e))}function UC(t){if(t.peekType("AT")){if(t.pop(),t.peekType("NUMBER"))return St(t.pop().text);throw new Error("invalid gas")}return null}function Qc(t){if(t.length)throw new Error(`unexpected tokens: ${t.toString()}`)}const mne=new RegExp(/^(.*)\[([0-9]*)\]$/);function r9(t){const e=t.match(DC);if(ye(e,"invalid type","type",t),t==="uint")return"uint256";if(t==="int")return"int256";if(e[2]){const r=parseInt(e[2]);ye(r!==0&&r<=32,"invalid bytes length","type",t)}else if(e[3]){const r=parseInt(e[3]);ye(r!==0&&r<=256&&r%8===0,"invalid numeric width","type",t)}return t}const En={},vs=Symbol.for("_ethers_internal"),n9="_ParamTypeInternal",i9="_ErrorInternal",s9="_EventInternal",a9="_ConstructorInternal",o9="_FallbackInternal",f9="_FunctionInternal",l9="_StructInternal";var jh,lg;const Gs=class{constructor(e,r,n,s,i,o,f,u){Fe(this,jh);xe(this,"name");xe(this,"type");xe(this,"baseType");xe(this,"indexed");xe(this,"components");xe(this,"arrayLength");xe(this,"arrayChildren");if(By(e,En,"ParamType"),Object.defineProperty(this,vs,{value:n9}),o&&(o=Object.freeze(o.slice())),s==="array"){if(f==null||u==null)throw new Error("")}else if(f!=null||u!=null)throw new Error("");if(s==="tuple"){if(o==null)throw new Error("")}else if(o!=null)throw new Error("");Dt(this,{name:r,type:n,baseType:s,indexed:i,components:o,arrayLength:f,arrayChildren:u})}format(e){if(e==null&&(e="sighash"),e==="json"){let n={type:this.baseType==="tuple"?"tuple":this.type,name:this.name||void 0};return typeof this.indexed=="boolean"&&(n.indexed=this.indexed),this.isTuple()&&(n.components=this.components.map(s=>JSON.parse(s.format(e)))),JSON.stringify(n)}let r="";return this.isArray()?(r+=this.arrayChildren.format(e),r+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?(e!=="sighash"&&(r+=this.type),r+="("+this.components.map(n=>n.format(e)).join(e==="full"?", ":",")+")"):r+=this.type,e!=="sighash"&&(this.indexed===!0&&(r+=" indexed"),e==="full"&&this.name&&(r+=" "+this.name)),r}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(e,r){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(this.arrayLength!==-1&&e.length!==this.arrayLength)throw new Error("array is wrong length");const n=this;return e.map(s=>n.arrayChildren.walk(s,r))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const n=this;return e.map((s,i)=>n.components[i].walk(s,r))}return r(this.type,e)}async walkAsync(e,r){const n=[],s=[e];return ct(this,jh,lg).call(this,n,e,r,i=>{s[0]=i}),n.length&&await Promise.all(n),s[0]}static from(e,r){if(Gs.isParamType(e))return e;if(typeof e=="string")return Gs.from(ql(e),r);if(e instanceof Wa){let f="",u="",h=null;kf(e,Zi(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(u="tuple",h=e.popParams().map(M=>Gs.from(M)),f=`tuple(${h.map(M=>M.format()).join(",")})`):(f=r9(e.popType("TYPE")),u=f);let p=null,d=null;for(;e.length&&e.peekType("BRACKET");){const M=e.pop();p=new Gs(En,"",f,u,null,h,d,p),d=M.value,f+=M.text,u="array",h=null}let v=null;if(kf(e,one).has("indexed")){if(!r)throw new Error("");v=!0}const A=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new Gs(En,A,f,u,v,h,d,p)}const n=e.name;ye(!n||typeof n=="string"&&n.match(LC),"invalid name","obj.name",n);let s=e.indexed;s!=null&&(ye(r,"parameter cannot be indexed","obj.indexed",e.indexed),s=!!s);let i=e.type,o=i.match(mne);if(o){const f=parseInt(o[2]||"-1"),u=Gs.from({type:o[1],components:e.components});return new Gs(En,n||"",i,"array",s,null,f,u)}if(i==="tuple"||i.startsWith("tuple(")||i.startsWith("(")){const f=e.components!=null?e.components.map(h=>Gs.from(h)):null;return new Gs(En,n||"",i,"tuple",s,f,null,null)}return i=r9(e.type),new Gs(En,n||"",i,i,s,null,null,null)}static isParamType(e){return e&&e[vs]===n9}};let Ei=Gs;jh=new WeakSet,lg=function(e,r,n,s){if(this.isArray()){if(!Array.isArray(r))throw new Error("invalid array value");if(this.arrayLength!==-1&&r.length!==this.arrayLength)throw new Error("array is wrong length");const o=this.arrayChildren,f=r.slice();f.forEach((u,h)=>{var p;ct(p=o,jh,lg).call(p,e,u,n,d=>{f[h]=d})}),s(f);return}if(this.isTuple()){const o=this.components;let f;if(Array.isArray(r))f=r.slice();else{if(r==null||typeof r!="object")throw new Error("invalid tuple value");f=o.map(u=>{if(!u.name)throw new Error("cannot use object value with unnamed components");if(!(u.name in r))throw new Error(`missing value for component ${u.name}`);return r[u.name]})}if(f.length!==this.components.length)throw new Error("array is wrong length");f.forEach((u,h)=>{var p;ct(p=o[h],jh,lg).call(p,e,u,n,d=>{f[h]=d})}),s(f);return}const i=n(this.type,r);i.then?e.push(async function(){s(await i)}()):s(i)};class Xc{constructor(e,r,n){xe(this,"type");xe(this,"inputs");By(e,En,"Fragment"),n=Object.freeze(n.slice()),Dt(this,{type:r,inputs:n})}static from(e){if(typeof e=="string"){try{Xc.from(JSON.parse(e))}catch{}return Xc.from(ql(e))}if(e instanceof Wa)switch(e.peekKeyword(PC)){case"constructor":return bf.from(e);case"error":return us.from(e);case"event":return xo.from(e);case"fallback":case"receive":return $o.from(e);case"function":return Eo.from(e);case"struct":return Fc.from(e)}else if(typeof e=="object"){switch(e.type){case"constructor":return bf.from(e);case"error":return us.from(e);case"event":return xo.from(e);case"fallback":case"receive":return $o.from(e);case"function":return Eo.from(e);case"struct":return Fc.from(e)}nt(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}ye(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return bf.isFragment(e)}static isError(e){return us.isFragment(e)}static isEvent(e){return xo.isFragment(e)}static isFunction(e){return Eo.isFragment(e)}static isStruct(e){return Fc.isFragment(e)}}class Uy extends Xc{constructor(r,n,s,i){super(r,n,i);xe(this,"name");ye(typeof s=="string"&&s.match(LC),"invalid identifier","name",s),i=Object.freeze(i.slice()),Dt(this,{name:s})}}function jp(t,e){return"("+e.map(r=>r.format(t)).join(t==="full"?", ":",")+")"}class us extends Uy{constructor(e,r,n){super(e,"error",r,n),Object.defineProperty(this,vs,{value:i9})}get selector(){return Yc(this.format("sighash")).substring(0,10)}format(e){if(e==null&&(e="sighash"),e==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});const r=[];return e!=="sighash"&&r.push("error"),r.push(this.name+jp(e,this.inputs)),r.join(" ")}static from(e){if(us.isFragment(e))return e;if(typeof e=="string")return us.from(ql(e));if(e instanceof Wa){const r=Fy("error",e),n=Ef(e);return Qc(e),new us(En,r,n)}return new us(En,e.name,e.inputs?e.inputs.map(Ei.from):[])}static isFragment(e){return e&&e[vs]===i9}}class xo extends Uy{constructor(r,n,s,i){super(r,"event",n,s);xe(this,"anonymous");Object.defineProperty(this,vs,{value:s9}),Dt(this,{anonymous:i})}get topicHash(){return Yc(this.format("sighash"))}format(r){if(r==null&&(r="sighash"),r==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(s=>JSON.parse(s.format(r)))});const n=[];return r!=="sighash"&&n.push("event"),n.push(this.name+jp(r,this.inputs)),r!=="sighash"&&this.anonymous&&n.push("anonymous"),n.join(" ")}static getTopicHash(r,n){return n=(n||[]).map(i=>Ei.from(i)),new xo(En,r,n,!1).topicHash}static from(r){if(xo.isFragment(r))return r;if(typeof r=="string")return xo.from(ql(r));if(r instanceof Wa){const n=Fy("event",r),s=Ef(r,!0),i=!!kf(r,Zi(["anonymous"])).has("anonymous");return Qc(r),new xo(En,n,s,i)}return new xo(En,r.name,r.inputs?r.inputs.map(n=>Ei.from(n,!0)):[],!!r.anonymous)}static isFragment(r){return r&&r[vs]===s9}}class bf extends Xc{constructor(r,n,s,i,o){super(r,n,s);xe(this,"payable");xe(this,"gas");Object.defineProperty(this,vs,{value:a9}),Dt(this,{payable:i,gas:o})}format(r){if(nt(r!=null&&r!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),r==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(s=>JSON.parse(s.format(r)))});const n=[`constructor${jp(r,this.inputs)}`];return n.push(this.payable?"payable":"nonpayable"),this.gas!=null&&n.push(`@${this.gas.toString()}`),n.join(" ")}static from(r){if(bf.isFragment(r))return r;if(typeof r=="string")return bf.from(ql(r));if(r instanceof Wa){kf(r,Zi(["constructor"]));const n=Ef(r),s=!!kf(r,Zi(["payable"])).has("payable"),i=UC(r);return Qc(r),new bf(En,"constructor",n,s,i)}return new bf(En,"constructor",r.inputs?r.inputs.map(Ei.from):[],!!r.payable,r.gas!=null?r.gas:null)}static isFragment(r){return r&&r[vs]===a9}}class $o extends Xc{constructor(r,n,s){super(r,"fallback",n);xe(this,"payable");Object.defineProperty(this,vs,{value:o9}),Dt(this,{payable:s})}format(r){const n=this.inputs.length===0?"receive":"fallback";if(r==="json"){const s=this.payable?"payable":"nonpayable";return JSON.stringify({type:n,stateMutability:s})}return`${n}()${this.payable?" payable":""}`}static from(r){if($o.isFragment(r))return r;if(typeof r=="string")return $o.from(ql(r));if(r instanceof Wa){const n=r.toString(),s=r.peekKeyword(Zi(["fallback","receive"]));if(ye(s,"type must be fallback or receive","obj",n),r.popKeyword(Zi(["fallback","receive"]))==="receive"){const u=Ef(r);return ye(u.length===0,"receive cannot have arguments","obj.inputs",u),kf(r,Zi(["payable"])),Qc(r),new $o(En,[],!0)}let o=Ef(r);o.length?ye(o.length===1&&o[0].type==="bytes","invalid fallback inputs","obj.inputs",o.map(u=>u.format("minimal")).join(", ")):o=[Ei.from("bytes")];const f=FC(r);if(ye(f==="nonpayable"||f==="payable","fallback cannot be constants","obj.stateMutability",f),kf(r,Zi(["returns"])).has("returns")){const u=Ef(r);ye(u.length===1&&u[0].type==="bytes","invalid fallback outputs","obj.outputs",u.map(h=>h.format("minimal")).join(", "))}return Qc(r),new $o(En,o,f==="payable")}if(r.type==="receive")return new $o(En,[],!0);if(r.type==="fallback"){const n=[Ei.from("bytes")],s=r.stateMutability==="payable";return new $o(En,n,s)}ye(!1,"invalid fallback description","obj",r)}static isFragment(r){return r&&r[vs]===o9}}class Eo extends Uy{constructor(r,n,s,i,o,f){super(r,"function",n,i);xe(this,"constant");xe(this,"outputs");xe(this,"stateMutability");xe(this,"payable");xe(this,"gas");Object.defineProperty(this,vs,{value:f9}),o=Object.freeze(o.slice()),Dt(this,{constant:s==="view"||s==="pure",gas:f,outputs:o,payable:s==="payable",stateMutability:s})}get selector(){return Yc(this.format("sighash")).substring(0,10)}format(r){if(r==null&&(r="sighash"),r==="json")return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(s=>JSON.parse(s.format(r))),outputs:this.outputs.map(s=>JSON.parse(s.format(r)))});const n=[];return r!=="sighash"&&n.push("function"),n.push(this.name+jp(r,this.inputs)),r!=="sighash"&&(this.stateMutability!=="nonpayable"&&n.push(this.stateMutability),this.outputs&&this.outputs.length&&(n.push("returns"),n.push(jp(r,this.outputs))),this.gas!=null&&n.push(`@${this.gas.toString()}`)),n.join(" ")}static getSelector(r,n){return n=(n||[]).map(i=>Ei.from(i)),new Eo(En,r,"view",n,[],null).selector}static from(r){if(Eo.isFragment(r))return r;if(typeof r=="string")return Eo.from(ql(r));if(r instanceof Wa){const s=Fy("function",r),i=Ef(r),o=FC(r);let f=[];kf(r,Zi(["returns"])).has("returns")&&(f=Ef(r));const u=UC(r);return Qc(r),new Eo(En,s,o,i,f,u)}let n=r.stateMutability;return n==null&&(n="payable",typeof r.constant=="boolean"?(n="view",r.constant||(n="payable",typeof r.payable=="boolean"&&!r.payable&&(n="nonpayable"))):typeof r.payable=="boolean"&&!r.payable&&(n="nonpayable")),new Eo(En,r.name,n,r.inputs?r.inputs.map(Ei.from):[],r.outputs?r.outputs.map(Ei.from):[],r.gas!=null?r.gas:null)}static isFragment(r){return r&&r[vs]===f9}}class Fc extends Uy{constructor(e,r,n){super(e,"struct",r,n),Object.defineProperty(this,vs,{value:l9})}format(){throw new Error("@TODO")}static from(e){if(typeof e=="string")return Fc.from(ql(e));if(e instanceof Wa){const r=Fy("struct",e),n=Ef(e);return Qc(e),new Fc(En,r,n)}return new Fc(En,e.name,e.inputs?e.inputs.map(Ei.from):[])}static isFragment(e){return e&&e[vs]===l9}}const $a=new Map;$a.set(0,"GENERIC_PANIC");$a.set(1,"ASSERT_FALSE");$a.set(17,"OVERFLOW");$a.set(18,"DIVIDE_BY_ZERO");$a.set(33,"ENUM_RANGE_ERROR");$a.set(34,"BAD_STORAGE_DATA");$a.set(49,"STACK_UNDERFLOW");$a.set(50,"ARRAY_RANGE_ERROR");$a.set(65,"OUT_OF_MEMORY");$a.set(81,"UNINITIALIZED_FUNCTION_CALL");const gne=new RegExp(/^bytes([0-9]*)$/),vne=new RegExp(/^(u?int)([0-9]*)$/);let Z2=null;function yne(t,e,r,n){let s="missing revert data",i=null;const o=null;let f=null;if(r){s="execution reverted";const h=Br(r);if(r=At(r),h.length===0)s+=" (no data present; likely require(false) occurred",i="require(false)";else if(h.length%32!==4)s+=" (could not decode reason; invalid data length)";else if(At(h.slice(0,4))==="0x08c379a0")try{i=n.decode(["string"],h.slice(4))[0],f={signature:"Error(string)",name:"Error",args:[i]},s+=`: ${JSON.stringify(i)}`}catch{s+=" (could not decode reason; invalid string data)"}else if(At(h.slice(0,4))==="0x4e487b71")try{const p=Number(n.decode(["uint256"],h.slice(4))[0]);f={signature:"Panic(uint256)",name:"Panic",args:[p]},i=`Panic due to ${$a.get(p)||"UNKNOWN"}(${p})`,s+=`: ${i}`}catch{s+=" (could not decode panic code)"}else s+=" (unknown custom error)"}const u={to:e.to?Hr(e.to):null,data:e.data||"0x"};return e.from&&(u.from=Hr(e.from)),oi(s,"CALL_EXCEPTION",{action:t,data:r,reason:i,transaction:u,invocation:o,revert:f})}var ol,Hu;const Mv=class{constructor(){Fe(this,ol)}getDefaultValue(e){const r=e.map(s=>ct(this,ol,Hu).call(this,Ei.from(s)));return new _m(r,"_").defaultValue()}encode(e,r){EN(r.length,e.length,"types/values length mismatch");const n=e.map(o=>ct(this,ol,Hu).call(this,Ei.from(o))),s=new _m(n,"_"),i=new cA;return s.encode(i,r),i.data}decode(e,r,n){const s=e.map(o=>ct(this,ol,Hu).call(this,Ei.from(o)));return new _m(s,"_").decode(new uA(r,n))}static defaultAbiCoder(){return Z2==null&&(Z2=new Mv),Z2}static getBuiltinCallException(e,r,n){return yne(e,r,n,Mv.defaultAbiCoder())}};let zp=Mv;ol=new WeakSet,Hu=function(e){if(e.isArray())return new Gte(ct(this,ol,Hu).call(this,e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new _m(e.components.map(n=>ct(this,ol,Hu).call(this,n)),e.name);switch(e.baseType){case"address":return new Kte(e.name);case"bool":return new Vte(e.name);case"string":return new tre(e.name);case"bytes":return new Wte(e.name);case"":return new Qte(e.name)}let r=e.type.match(vne);if(r){let n=parseInt(r[2]||"256");return ye(n!==0&&n<=256&&n%8===0,"invalid "+r[1]+" bit length","param",e),new ere(n/8,r[1]==="int",e.name)}if(r=e.type.match(gne),r){let n=parseInt(r[1]);return ye(n!==0&&n<=32,"invalid bytes length","param",e),new Zte(n,e.name)}ye(!1,"invalid type","type",e.type)};class bne{constructor(e,r,n){xe(this,"fragment");xe(this,"name");xe(this,"signature");xe(this,"topic");xe(this,"args");const s=e.name,i=e.format();Dt(this,{fragment:e,name:s,signature:i,topic:r,args:n})}}class wne{constructor(e,r,n,s){xe(this,"fragment");xe(this,"name");xe(this,"args");xe(this,"signature");xe(this,"selector");xe(this,"value");const i=e.name,o=e.format();Dt(this,{fragment:e,name:i,args:n,signature:o,selector:r,value:s})}}class Ane{constructor(e,r,n){xe(this,"fragment");xe(this,"name");xe(this,"args");xe(this,"signature");xe(this,"selector");const s=e.name,i=e.format();Dt(this,{fragment:e,name:s,args:n,signature:i,selector:r})}}class c9{constructor(e){xe(this,"hash");xe(this,"_isIndexed");Dt(this,{hash:e,_isIndexed:!0})}static isIndexed(e){return!!(e&&e._isIndexed)}}const u9={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},h9={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:t=>`reverted with reason string ${JSON.stringify(t)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:t=>{let e="unknown panic code";return t>=0&&t<=255&&u9[t.toString()]&&(e=u9[t.toString()]),`reverted with panic code 0x${t.toString(16)} (${e})`}}};var uo,ho,po,Ti,zh,cg,Kh,ug;const eh=class{constructor(e){Fe(this,zh);Fe(this,Kh);xe(this,"fragments");xe(this,"deploy");xe(this,"fallback");xe(this,"receive");Fe(this,uo,void 0);Fe(this,ho,void 0);Fe(this,po,void 0);Fe(this,Ti,void 0);let r=[];typeof e=="string"?r=JSON.parse(e):r=e,le(this,po,new Map),le(this,uo,new Map),le(this,ho,new Map);const n=[];for(const o of r)try{n.push(Xc.from(o))}catch(f){console.log("EE",f)}Dt(this,{fragments:Object.freeze(n)});let s=null,i=!1;le(this,Ti,this.getAbiCoder()),this.fragments.forEach((o,f)=>{let u;switch(o.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}Dt(this,{deploy:o});return;case"fallback":o.inputs.length===0?i=!0:(ye(!s||o.payable!==s.payable,"conflicting fallback fragments",`fragments[${f}]`,o),s=o,i=s.payable);return;case"function":u=te(this,po);break;case"event":u=te(this,ho);break;case"error":u=te(this,uo);break;default:return}const h=o.format();u.has(h)||u.set(h,o)}),this.deploy||Dt(this,{deploy:bf.from("constructor()")}),Dt(this,{fallback:s,receive:i})}format(e){const r=e?"minimal":"full";return this.fragments.map(s=>s.format(r))}formatJson(){const e=this.fragments.map(r=>r.format("json"));return JSON.stringify(e.map(r=>JSON.parse(r)))}getAbiCoder(){return zp.defaultAbiCoder()}getFunctionName(e){const r=ct(this,zh,cg).call(this,e,null,!1);return ye(r,"no matching function","key",e),r.name}hasFunction(e){return!!ct(this,zh,cg).call(this,e,null,!1)}getFunction(e,r){return ct(this,zh,cg).call(this,e,r||null,!0)}forEachFunction(e){const r=Array.from(te(this,po).keys());r.sort((n,s)=>n.localeCompare(s));for(let n=0;nn.localeCompare(s));for(let n=0;n1){const i=s.map(o=>JSON.stringify(o.format())).join(", ");ye(!1,`ambiguous error description (i.e. ${i})`,"name",e)}return s[0]}if(e=us.from(e).format(),e==="Error(string)")return us.from("error Error(string)");if(e==="Panic(uint256)")return us.from("error Panic(uint256)");const n=te(this,uo).get(e);return n||null}forEachError(e){const r=Array.from(te(this,uo).keys());r.sort((n,s)=>n.localeCompare(s));for(let n=0;ni.type==="string"?Yc(o):i.type==="bytes"?mn(At(o)):(i.type==="bool"&&typeof o=="boolean"&&(o=o?"0x01":"0x00"),i.type.match(/^u?int/)&&(o=Il(o)),i.type==="address"&&te(this,Ti).encode(["address"],[o]),Wc(At(o),32));for(r.forEach((i,o)=>{const f=e.inputs[o];if(!f.indexed){ye(i==null,"cannot filter non-indexed parameters; must be null","contract."+f.name,i);return}i==null?n.push(null):f.baseType==="array"||f.baseType==="tuple"?ye(!1,"filtering with tuples or arrays not supported","contract."+f.name,i):Array.isArray(i)?n.push(i.map(u=>s(f,u))):n.push(s(f,i))});n.length&&n[n.length-1]===null;)n.pop();return n}encodeEventLog(e,r){if(typeof e=="string"){const o=this.getEvent(e);ye(o,"unknown event","eventFragment",e),e=o}const n=[],s=[],i=[];return e.anonymous||n.push(e.topicHash),ye(r.length===e.inputs.length,"event arguments/values mismatch","values",r),e.inputs.forEach((o,f)=>{const u=r[f];if(o.indexed)if(o.type==="string")n.push(Yc(u));else if(o.type==="bytes")n.push(mn(u));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");n.push(te(this,Ti).encode([o.type],[u]))}else s.push(o),i.push(u)}),{data:te(this,Ti).encode(s,i),topics:n}}decodeEventLog(e,r,n){if(typeof e=="string"){const w=this.getEvent(e);ye(w,"unknown event","eventFragment",e),e=w}if(n!=null&&!e.anonymous){const w=e.topicHash;ye(Mn(n[0],32)&&n[0].toLowerCase()===w,"fragment/topic mismatch","topics[0]",n[0]),n=n.slice(1)}const s=[],i=[],o=[];e.inputs.forEach((w,A)=>{w.indexed?w.type==="string"||w.type==="bytes"||w.baseType==="tuple"||w.baseType==="array"?(s.push(Ei.from({type:"bytes32",name:w.name})),o.push(!0)):(s.push(w),o.push(!1)):(i.push(w),o.push(!1))});const f=n!=null?te(this,Ti).decode(s,jn(n)):null,u=te(this,Ti).decode(i,r,!0),h=[],p=[];let d=0,v=0;return e.inputs.forEach((w,A)=>{let M=null;if(w.indexed)if(f==null)M=new c9(null);else if(o[A])M=new c9(f[v++]);else try{M=f[v++]}catch(R){M=R}else try{M=u[d++]}catch(R){M=R}h.push(M),p.push(w.name||null)}),av.fromItems(h,p)}parseTransaction(e){const r=Br(e.data,"tx.data"),n=St(e.value!=null?e.value:0,"tx.value"),s=this.getFunction(At(r.slice(0,4)));if(!s)return null;const i=te(this,Ti).decode(s.inputs,r.slice(4));return new wne(s,s.selector,i,n)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const r=this.getEvent(e.topics[0]);return!r||r.anonymous?null:new bne(r,r.topicHash,this.decodeEventLog(r,e.data,e.topics))}parseError(e){const r=At(e),n=this.getError(Cn(r,0,4));if(!n)return null;const s=te(this,Ti).decode(n.inputs,Cn(r,4));return new Ane(n,n.selector,s)}static from(e){return e instanceof eh?e:typeof e=="string"?new eh(JSON.parse(e)):typeof e.format=="function"?new eh(e.format("json")):new eh(e)}};let xA=eh;uo=new WeakMap,ho=new WeakMap,po=new WeakMap,Ti=new WeakMap,zh=new WeakSet,cg=function(e,r,n){if(Mn(e)){const i=e.toLowerCase();for(const o of te(this,po).values())if(i===o.selector)return o;return null}if(e.indexOf("(")===-1){const i=[];for(const[o,f]of te(this,po))o.split("(")[0]===e&&i.push(f);if(r){const o=r.length>0?r[r.length-1]:null;let f=r.length,u=!0;Ui.isTyped(o)&&o.type==="overrides"&&(u=!1,f--);for(let h=i.length-1;h>=0;h--){const p=i[h].inputs.length;p!==f&&(!u||p!==f-1)&&i.splice(h,1)}for(let h=i.length-1;h>=0;h--){const p=i[h].inputs;for(let d=0;d=p.length){if(r[d].type==="overrides")continue;i.splice(h,1);break}if(r[d].type!==p[d].baseType){i.splice(h,1);break}}}}if(i.length===1&&r&&r.length!==i[0].inputs.length){const o=r[r.length-1];(o==null||Array.isArray(o)||typeof o!="object")&&i.splice(0,1)}if(i.length===0)return null;if(i.length>1&&n){const o=i.map(f=>JSON.stringify(f.format())).join(", ");ye(!1,`ambiguous function description (i.e. matches ${o})`,"key",e)}return i[0]}const s=te(this,po).get(Eo.from(e).format());return s||null},Kh=new WeakSet,ug=function(e,r,n){if(Mn(e)){const i=e.toLowerCase();for(const o of te(this,ho).values())if(i===o.topicHash)return o;return null}if(e.indexOf("(")===-1){const i=[];for(const[o,f]of te(this,ho))o.split("(")[0]===e&&i.push(f);if(r){for(let o=i.length-1;o>=0;o--)i[o].inputs.length=0;o--){const f=i[o].inputs;for(let u=0;u1&&n){const o=i.map(f=>JSON.stringify(f.format())).join(", ");ye(!1,`ambiguous event description (i.e. matches ${o})`,"key",e)}return i[0]}const s=te(this,ho).get(xo.from(e).format());return s||null};const HC=BigInt(0);function X0(t){return t??null}function Oi(t){return t==null?null:t.toString()}class xne{constructor(e,r,n){xe(this,"gasPrice");xe(this,"maxFeePerGas");xe(this,"maxPriorityFeePerGas");Dt(this,{gasPrice:X0(e),maxFeePerGas:X0(r),maxPriorityFeePerGas:X0(n)})}toJSON(){const{gasPrice:e,maxFeePerGas:r,maxPriorityFeePerGas:n}=this;return{_type:"FeeData",gasPrice:Oi(e),maxFeePerGas:Oi(r),maxPriorityFeePerGas:Oi(n)}}}function yv(t){const e={};t.to&&(e.to=t.to),t.from&&(e.from=t.from),t.data&&(e.data=At(t.data));const r="chainId,gasLimit,gasPrice,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const s of r)!(s in t)||t[s]==null||(e[s]=St(t[s],`request.${s}`));const n="type,nonce".split(/,/);for(const s of n)!(s in t)||t[s]==null||(e[s]=br(t[s],`request.${s}`));return t.accessList&&(e.accessList=fu(t.accessList)),"blockTag"in t&&(e.blockTag=t.blockTag),"enableCcipRead"in t&&(e.enableCcipRead=!!t.enableCcipRead),"customData"in t&&(e.customData=t.customData),e}var ff;class Ene{constructor(e,r){xe(this,"provider");xe(this,"number");xe(this,"hash");xe(this,"timestamp");xe(this,"parentHash");xe(this,"nonce");xe(this,"difficulty");xe(this,"gasLimit");xe(this,"gasUsed");xe(this,"miner");xe(this,"extraData");xe(this,"baseFeePerGas");Fe(this,ff,void 0);le(this,ff,e.transactions.map(n=>typeof n!="string"?new Kp(n,r):n)),Dt(this,{provider:r,hash:X0(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,miner:e.miner,extraData:e.extraData,baseFeePerGas:X0(e.baseFeePerGas)})}get transactions(){return te(this,ff).map(e=>typeof e=="string"?e:e.hash)}get prefetchedTransactions(){const e=te(this,ff).slice();return e.length===0?[]:(nt(typeof e[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){const{baseFeePerGas:e,difficulty:r,extraData:n,gasLimit:s,gasUsed:i,hash:o,miner:f,nonce:u,number:h,parentHash:p,timestamp:d,transactions:v}=this;return{_type:"Block",baseFeePerGas:Oi(e),difficulty:Oi(r),extraData:n,gasLimit:Oi(s),gasUsed:Oi(i),hash:o,miner:f,nonce:u,number:h,parentHash:p,timestamp:d,transactions:v}}[Symbol.iterator](){let e=0;const r=this.transactions;return{next:()=>enew Hy(s,r))));let n=HC;e.effectiveGasPrice!=null?n=e.effectiveGasPrice:e.gasPrice!=null&&(n=e.gasPrice),Dt(this,{provider:r,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,gasPrice:n,type:e.type,status:e.status,root:e.root})}get logs(){return te(this,Yp)}toJSON(){const{to:e,from:r,contractAddress:n,hash:s,index:i,blockHash:o,blockNumber:f,logsBloom:u,logs:h,status:p,root:d}=this;return{_type:"TransactionReceipt",blockHash:o,blockNumber:f,contractAddress:n,cumulativeGasUsed:Oi(this.cumulativeGasUsed),from:r,gasPrice:Oi(this.gasPrice),gasUsed:Oi(this.gasUsed),hash:s,index:i,logs:h,logsBloom:u,root:d,status:p,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e{if(f)return null;const{blockNumber:d,nonce:v}=await Gi({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(v=n)return h}else if(await u(),n===0)return null;return await new Promise((d,v)=>{const w=[],A=()=>{w.forEach(R=>R())};if(w.push(()=>{f=!0}),s>0){const R=setTimeout(()=>{A(),v(oi("wait for transaction timeout","TIMEOUT"))},s);w.push(()=>{clearTimeout(R)})}const M=async R=>{await R.confirmations()>=n&&(A(),d(R))};if(w.push(()=>{this.provider.off(this.hash,M)}),this.provider.on(this.hash,M),i>=0){const R=async()=>{try{await u()}catch(N){if(ko(N,"TRANSACTION_REPLACED")){A(),v(N);return}}f||this.provider.once("block",R)};w.push(()=>{this.provider.off("block",R)}),this.provider.once("block",R)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}removedEvent(){return nt(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),KC(this)}reorderedEvent(e){return nt(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),nt(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),zC(this,e)}replaceableTransaction(e){ye(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const r=new q6(this,this.provider);return le(r,fl,e),r}};let Kp=q6;fl=new WeakMap;function Mne(t){return{orphan:"drop-block",hash:t.hash,number:t.number}}function zC(t,e){return{orphan:"reorder-transaction",tx:t,other:e}}function KC(t){return{orphan:"drop-transaction",tx:t}}function Sne(t){return{orphan:"drop-log",log:{transactionHash:t.transactionHash,blockHash:t.blockHash,blockNumber:t.blockNumber,address:t.address,data:t.data,topics:Object.freeze(t.topics.slice()),index:t.index}}}class L6 extends Hy{constructor(r,n,s){super(r,r.provider);xe(this,"interface");xe(this,"fragment");xe(this,"args");const i=n.decodeEventLog(s,r.data,r.topics);Dt(this,{args:i,fragment:s,interface:n})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}var qh;class _ne extends jC{constructor(r,n,s){super(s,n);Fe(this,qh,void 0);le(this,qh,r)}get logs(){return super.logs.map(r=>{const n=r.topics.length?te(this,qh).getEvent(r.topics[0]):null;return n?new L6(r,te(this,qh),n):r})}}qh=new WeakMap;var Qp;class D6 extends Kp{constructor(r,n,s){super(s,n);Fe(this,Qp,void 0);le(this,Qp,r)}async wait(r){const n=await super.wait();return n==null?null:new _ne(te(this,Qp),this.provider,n)}}Qp=new WeakMap;class qC extends _N{constructor(r,n,s,i){super(r,n,s);xe(this,"log");Dt(this,{log:i})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class Rne extends qC{constructor(e,r,n,s,i){super(e,r,n,new L6(i,e.interface,s));const o=e.interface.decodeEventLog(s,this.log.data,this.log.topics);Dt(this,{args:o,fragment:s})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const d9=BigInt(0);function GC(t){return t&&typeof t.call=="function"}function VC(t){return t&&typeof t.estimateGas=="function"}function F6(t){return t&&typeof t.resolveName=="function"}function WC(t){return t&&typeof t.sendTransaction=="function"}var Xp;class Nne{constructor(e,r,n){Fe(this,Xp,void 0);xe(this,"fragment");if(Dt(this,{fragment:r}),r.inputs.lengthn[u]==null?null:f.walkAsync(n[u],(p,d)=>p==="address"?Rs(d,i):d)));return e.interface.encodeFilterTopics(r,o)}())}getTopicFilter(){return te(this,Xp)}}Xp=new WeakMap;function Jc(t,e){return t==null?null:typeof t[e]=="function"?t:t.provider&&typeof t.provider[e]=="function"?t.provider:null}function hc(t){return t==null?null:t.provider||null}async function ZC(t,e){const r=yv(Ui.dereference(t,"overrides"));return ye(r.to==null||(e||[]).indexOf("to")>=0,"cannot override to","overrides.to",r.to),ye(r.data==null||(e||[]).indexOf("data")>=0,"cannot override data","overrides.data",r.data),r.from&&(r.from=await Rs(r.from)),r}async function Cne(t,e,r){const n=Jc(t,"resolveName"),s=F6(n)?n:null;return await Promise.all(e.map((i,o)=>i.walkAsync(r[o],(f,u)=>(u=Ui.dereference(u,f),f==="address"?Rs(u,s):u))))}function Tne(t){const e=async function(o){const f=await ZC(o,["data"]);f.to=await t.getAddress();const u=t.interface,h=St(f.value||d9,"overrides.value")===d9,p=(f.data||"0x")==="0x";u.fallback&&!u.fallback.payable&&u.receive&&!p&&!h&&ye(!1,"cannot send data to receive or send value to non-payable fallback","overrides",o),ye(u.fallback||p,"cannot send data to receive-only contract","overrides.data",f.data);const d=u.receive||u.fallback&&u.fallback.payable;return ye(d||h,"cannot send value to non-payable fallback","overrides.value",f.value),ye(u.fallback||p,"cannot send data to receive-only contract","overrides.data",f.data),f},r=async function(o){const f=Jc(t.runner,"call");nt(GC(f),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const u=await e(o);try{return await f.call(u)}catch(h){throw _6(h)&&h.data?t.interface.makeError(h.data,u):h}},n=async function(o){const f=t.runner;nt(WC(f),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const u=await f.sendTransaction(await e(o)),h=hc(t.runner);return new D6(t.interface,h,u)},s=async function(o){const f=Jc(t.runner,"estimateGas");return nt(VC(f),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await f.estimateGas(await e(o))},i=async o=>await n(o);return Dt(i,{_contract:t,estimateGas:s,populateTransaction:e,send:n,staticCall:r}),i}function kne(t,e){const r=function(...h){const p=t.interface.getFunction(e,h);return nt(p,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment"}),p},n=async function(...h){const p=r(...h);let d={};if(p.inputs.length+1===h.length&&(d=await ZC(h.pop())),p.inputs.length!==h.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const v=await Cne(t.runner,p.inputs,h);return Object.assign({},d,await Gi({to:t.getAddress(),data:t.interface.encodeFunctionData(p,v)}))},s=async function(...h){const p=await f(...h);return p.length===1?p[0]:p},i=async function(...h){const p=t.runner;nt(WC(p),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const d=await p.sendTransaction(await n(...h)),v=hc(t.runner);return new D6(t.interface,v,d)},o=async function(...h){const p=Jc(t.runner,"estimateGas");return nt(VC(p),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await p.estimateGas(await n(...h))},f=async function(...h){const p=Jc(t.runner,"call");nt(GC(p),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const d=await n(...h);let v="0x";try{v=await p.call(d)}catch(A){throw _6(A)&&A.data?t.interface.makeError(A.data,d):A}const w=r(...h);return t.interface.decodeFunctionResult(w,v)},u=async(...h)=>r(...h).constant?await s(...h):await i(...h);return Dt(u,{name:t.interface.getFunctionName(e),_contract:t,_key:e,getFragment:r,estimateGas:o,populateTransaction:n,send:i,staticCall:s,staticCallResult:f}),Object.defineProperty(u,"fragment",{configurable:!1,enumerable:!0,get:()=>{const h=t.interface.getFunction(e);return nt(h,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment"}),h}}),u}function Bne(t,e){const r=function(...s){const i=t.interface.getEvent(e,s);return nt(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment"}),i},n=function(...s){return new Nne(t,r(...s),s)};return Dt(n,{name:t.interface.getEventName(e),_contract:t,_key:e,getFragment:r}),Object.defineProperty(n,"fragment",{configurable:!1,enumerable:!0,get:()=>{const s=t.interface.getEvent(e);return nt(s,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment"}),s}}),n}const bv=Symbol.for("_ethersInternal_contract"),YC=new WeakMap;function Ine(t,e){YC.set(t[bv],e)}function Ks(t){return YC.get(t[bv])}function Pne(t){return t&&typeof t=="object"&&"getTopicFilter"in t&&typeof t.getTopicFilter=="function"&&t.fragment}async function U6(t,e){let r,n=null;if(Array.isArray(e)){const i=function(o){if(Mn(o,32))return o;const f=t.interface.getEvent(o);return ye(f,"unknown fragment","name",o),f.topicHash};r=e.map(o=>o==null?null:Array.isArray(o)?o.map(i):i(o))}else e==="*"?r=[null]:typeof e=="string"?Mn(e,32)?r=[e]:(n=t.interface.getEvent(e),ye(n,"unknown fragment","event",e),r=[n.topicHash]):Pne(e)?r=await e.getTopicFilter():"fragment"in e?(n=e.fragment,r=[n.topicHash]):ye(!1,"unknown event name","event",e);r=r.map(i=>{if(i==null)return null;if(Array.isArray(i)){const o=Array.from(new Set(i.map(f=>f.toLowerCase())).values());return o.length===1?o[0]:(o.sort(),o)}return i.toLowerCase()});const s=r.map(i=>i==null?"null":Array.isArray(i)?i.join("|"):i).join("&");return{fragment:n,tag:s,topics:r}}async function H0(t,e){const{subs:r}=Ks(t);return r.get((await U6(t,e)).tag)||null}async function p9(t,e,r){const n=hc(t.runner);nt(n,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:e});const{fragment:s,tag:i,topics:o}=await U6(t,r),{addr:f,subs:u}=Ks(t);let h=u.get(i);if(!h){const d={address:f||t,topics:o},v=R=>{let N=s;if(N==null)try{N=t.interface.getEvent(R.topics[0])}catch{}if(N){const C=N,B=s?t.interface.decodeEventLog(s,R.data,R.topics):[];MA(t,r,B,O=>new Rne(t,O,r,C,R))}else MA(t,r,[],C=>new qC(t,C,r,R))};let w=[];h={tag:i,listeners:[],start:()=>{w.length||w.push(n.on(d,v))},stop:async()=>{if(w.length==0)return;let R=w;w=[],await Promise.all(R),n.off(d,v)}},u.set(i,h)}return h}let EA=Promise.resolve();async function One(t,e,r,n){await EA;const s=await H0(t,e);if(!s)return!1;const i=s.listeners.length;return s.listeners=s.listeners.filter(({listener:o,once:f})=>{const u=Array.from(r);n&&u.push(n(f?null:o));try{o.call(t,...u)}catch{}return!f}),i>0}async function MA(t,e,r,n){try{await EA}catch{}const s=One(t,e,r,n);return EA=s,await s}const Rm=["then"];var Nie;const ep=class{constructor(e,r,n,s){xe(this,"target");xe(this,"interface");xe(this,"runner");xe(this,"filters");xe(this,Nie);xe(this,"fallback");ye(typeof e=="string"||eC(e),"invalid value for Contract target","target",e),n==null&&(n=null);const i=xA.from(r);Dt(this,{target:e,runner:n,interface:i}),Object.defineProperty(this,bv,{value:{}});let o,f=null,u=null;if(s){const d=hc(n);u=new D6(this.interface,d,s)}let h=new Map;if(typeof e=="string")if(Mn(e))f=e,o=Promise.resolve(e);else{const d=Jc(n,"resolveName");if(!F6(d))throw oi("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});o=d.resolveName(e).then(v=>{if(v==null)throw new Error("TODO");return Ks(this).addr=v,v})}else o=e.getAddress().then(d=>{if(d==null)throw new Error("TODO");return Ks(this).addr=d,d});Ine(this,{addrPromise:o,addr:f,deployTx:u,subs:h});const p=new Proxy({},{get:(d,v,w)=>{if(Rm.indexOf(v)>=0)return Reflect.get(d,v,w);const A=String(v),M=this.getEvent(A);if(M)return M;throw new Error(`unknown contract event: ${A}`)},has:(d,v)=>Rm.indexOf(v)>=0?Reflect.has(d,v):Reflect.has(d,v)||this.interface.hasEvent(String(v))});return Dt(this,{filters:p}),Dt(this,{fallback:i.receive||i.fallback?Tne(this):null}),new Proxy(this,{get:(d,v,w)=>{if(v in d||Rm.indexOf(v)>=0)return Reflect.get(d,v,w);const A=String(v),M=d.getFunction(A);if(M)return M;throw new Error(`unknown contract method: ${A}`)},has:(d,v)=>v in d||Rm.indexOf(v)>=0?Reflect.has(d,v):d.interface.hasFunction(String(v))})}connect(e){return new ep(this.target,this.interface,e)}attach(e){return new ep(e,this.interface,this.runner)}async getAddress(){return await Ks(this).addrPromise}async getDeployedCode(){const e=hc(this.runner);nt(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const r=await e.getCode(await this.getAddress());return r==="0x"?null:r}async waitForDeployment(){const e=this.deploymentTransaction();if(e)return await e.wait(),this;if(await this.getDeployedCode()!=null)return this;const n=hc(this.runner);return nt(n!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((s,i)=>{const o=async()=>{try{if(await this.getDeployedCode()!=null)return s(this);n.once("block",o)}catch(f){i(f)}};o()})}deploymentTransaction(){return Ks(this).deployTx}getFunction(e){return typeof e!="string"&&(e=e.format()),kne(this,e)}getEvent(e){return typeof e!="string"&&(e=e.format()),Bne(this,e)}async queryTransaction(e){throw new Error("@TODO")}async queryFilter(e,r,n){r==null&&(r=0),n==null&&(n="latest");const{addr:s,addrPromise:i}=Ks(this),o=s||await i,{fragment:f,topics:u}=await U6(this,e),h={address:o,topics:u,fromBlock:r,toBlock:n},p=hc(this.runner);return nt(p,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await p.getLogs(h)).map(d=>{let v=f;if(v==null)try{v=this.interface.getEvent(d.topics[0])}catch{}return v?new L6(d,this.interface,v):new Hy(d,p)})}async on(e,r){const n=await p9(this,"on",e);return n.listeners.push({listener:r,once:!1}),n.start(),this}async once(e,r){const n=await p9(this,"once",e);return n.listeners.push({listener:r,once:!0}),n.start(),this}async emit(e,...r){return await MA(this,e,r,null)}async listenerCount(e){if(e){const s=await H0(this,e);return s?s.listeners.length:0}const{subs:r}=Ks(this);let n=0;for(const{listeners:s}of r.values())n+=s.length;return n}async listeners(e){if(e){const s=await H0(this,e);return s?s.listeners.map(({listener:i})=>i):[]}const{subs:r}=Ks(this);let n=[];for(const{listeners:s}of r.values())n=n.concat(s.map(({listener:i})=>i));return n}async off(e,r){const n=await H0(this,e);if(!n)return this;if(r){const s=n.listeners.map(({listener:i})=>i).indexOf(r);s>=0&&n.listeners.splice(s,1)}return(r==null||n.listeners.length===0)&&(n.stop(),Ks(this).subs.delete(n.tag)),this}async removeAllListeners(e){if(e){const r=await H0(this,e);if(!r)return this;r.stop(),Ks(this).subs.delete(r.tag)}else{const{subs:r}=Ks(this);for(const{tag:n,stop:s}of r.values())s(),r.delete(n)}return this}async addListener(e,r){return await this.on(e,r)}async removeListener(e,r){return await this.off(e,r)}static buildClass(e){class r extends ep{constructor(s,i=null){super(s,e,i)}}return r}static from(e,r,n){return n==null&&(n=null),new this(e,r,n)}};let SA=ep;Nie=bv;function Lne(){return SA}class Uc extends Lne(){}function Y2(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):ye(!1,"unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}class Dne{constructor(e){xe(this,"name");Dt(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,r){throw new Error("unsupported coin")}async decodeAddress(e,r){throw new Error("unsupported coin")}}const QC=new RegExp("^(ipfs)://(.*)$","i"),m9=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),QC,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];var ll,xc,cl,ju,Sv,XC;const tp=class{constructor(e,r,n){Fe(this,cl);xe(this,"provider");xe(this,"address");xe(this,"name");Fe(this,ll,void 0);Fe(this,xc,void 0);Dt(this,{provider:e,address:r,name:n}),le(this,ll,null),le(this,xc,new Uc(r,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],e))}async supportsWildcard(){return te(this,ll)==null&&le(this,ll,(async()=>{try{return await te(this,xc).supportsInterface("0x9061b923")}catch(e){if(ko(e,"CALL_EXCEPTION"))return!1;throw le(this,ll,null),e}})()),await te(this,ll)}async getAddress(e){if(e==null&&(e=60),e===60)try{const i=await ct(this,cl,ju).call(this,"addr(bytes32)");return i==null||i===gA?null:i}catch(i){if(ko(i,"CALL_EXCEPTION"))return null;throw i}if(e>=0&&e<2147483648){let i=e+2147483648;const o=await ct(this,cl,ju).call(this,"addr(bytes32,uint)",[i]);if(Mn(o,20))return Hr(o)}let r=null;for(const i of this.provider.plugins)if(i instanceof Dne&&i.supportsCoinType(e)){r=i;break}if(r==null)return null;const n=await ct(this,cl,ju).call(this,"addr(bytes32,uint)",[e]);if(n==null||n==="0x")return null;const s=await r.decodeAddress(e,n);if(s!=null)return s;nt(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:n}})}async getText(e){const r=await ct(this,cl,ju).call(this,"text(bytes32,string)",[e]);return r==null||r==="0x"?null:r}async getContentHash(){const e=await ct(this,cl,ju).call(this,"contenthash(bytes32)");if(e==null||e==="0x")return null;const r=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(r){const s=r[1]==="e3010170"?"ipfs":"ipns",i=parseInt(r[4],16);if(r[5].length===i*2)return`${s}://${ree("0x"+r[2])}`}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&n[1].length===64)return`bzz://${n[1]}`;nt(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const e=[{type:"name",value:this.name}];try{const r=await this.getText("avatar");if(r==null)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:r});for(let n=0;n{if(!Array.isArray(e))throw new Error("not an array");return e.map(r=>t(r))}}function H1(t,e){return r=>{const n={};for(const s in t){let i=s;if(e&&s in e&&!(i in r)){for(const o of e[s])if(o in r){i=o;break}}try{const o=t[s](r[i]);o!==void 0&&(n[s]=o)}catch(o){const f=o instanceof Error?o.message:"not-an-error";nt(!1,`invalid value for value.${s} (${f})`,"BAD_DATA",{value:r})}}return n}}function Fne(t){switch(t){case!0:case"true":return!0;case!1:case"false":return!1}ye(!1,`invalid boolean; ${JSON.stringify(t)}`,"value",t)}function Nd(t){return ye(Mn(t,!0),"invalid data","value",t),t}function ea(t){return ye(Mn(t,32),"invalid hash","value",t),t}const Une=H1({address:Hr,blockHash:ea,blockNumber:br,data:Nd,index:br,removed:xn(Fne,!1),topics:H6(ea),transactionHash:ea,transactionIndex:br},{index:["logIndex"]});function Hne(t){return Une(t)}const jne=H1({hash:xn(ea),parentHash:ea,number:br,timestamp:br,nonce:xn(Nd),difficulty:St,gasLimit:St,gasUsed:St,miner:xn(Hr),extraData:Nd,baseFeePerGas:xn(St)});function zne(t){const e=jne(t);return e.transactions=t.transactions.map(r=>typeof r=="string"?r:JC(r)),e}const Kne=H1({transactionIndex:br,blockNumber:br,transactionHash:ea,address:Hr,topics:H6(ea),data:Nd,index:br,blockHash:ea},{index:["logIndex"]});function qne(t){return Kne(t)}const Gne=H1({to:xn(Hr,null),from:xn(Hr,null),contractAddress:xn(Hr,null),index:br,root:xn(At),gasUsed:St,logsBloom:xn(Nd),blockHash:ea,hash:ea,logs:H6(qne),blockNumber:br,cumulativeGasUsed:St,effectiveGasPrice:xn(St),status:xn(br),type:xn(br,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function Vne(t){return Gne(t)}function JC(t){t.to&&St(t.to)===g9&&(t.to="0x0000000000000000000000000000000000000000");const e=H1({hash:ea,type:r=>r==="0x"||r==null?0:br(r),accessList:xn(fu,null),blockHash:xn(ea,null),blockNumber:xn(br,null),transactionIndex:xn(br,null),from:Hr,gasPrice:xn(St),maxPriorityFeePerGas:xn(St),maxFeePerGas:xn(St),gasLimit:St,to:xn(Hr,null),value:St,nonce:br,data:Nd,creates:xn(Hr,null),chainId:xn(St,null)},{data:["input"],gasLimit:["gas"]})(t);if(e.to==null&&e.creates==null&&(e.creates=zte(e)),(t.type===1||t.type===2)&&t.accessList==null&&(e.accessList=[]),t.signature?e.signature=Va.from(t.signature):e.signature=Va.from(t),e.chainId==null){const r=e.signature.legacyChainId;r!=null&&(e.chainId=r)}return e.blockHash&&St(e.blockHash)===g9&&(e.blockHash=null),e}const Wne="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class jy{constructor(e){xe(this,"name");Dt(this,{name:e})}clone(){return new jy(this.name)}}class zy extends jy{constructor(r,n){r==null&&(r=0);super(`org.ethers.network.plugins.GasCost#${r||0}`);xe(this,"effectiveBlock");xe(this,"txBase");xe(this,"txCreate");xe(this,"txDataZero");xe(this,"txDataNonzero");xe(this,"txAccessListStorageKey");xe(this,"txAccessListAddress");const s={effectiveBlock:r};function i(o,f){let u=(n||{})[o];u==null&&(u=f),ye(typeof u=="number",`invalud value for ${o}`,"costs",n),s[o]=u}i("txBase",21e3),i("txCreate",32e3),i("txDataZero",4),i("txDataNonzero",16),i("txAccessListStorageKey",1900),i("txAccessListAddress",2400),Dt(this,s)}clone(){return new zy(this.effectiveBlock,this)}}class Ky extends jy{constructor(r,n){super("org.ethers.plugins.network.Ens");xe(this,"address");xe(this,"targetNetwork");Dt(this,{address:r||Wne,targetNetwork:n??1})}clone(){return new Ky(this.address,this.targetNetwork)}}const Q2=new Map;var Gh,Vh,ul;const th=class{constructor(e,r){Fe(this,Gh,void 0);Fe(this,Vh,void 0);Fe(this,ul,void 0);le(this,Gh,e),le(this,Vh,St(r)),le(this,ul,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return te(this,Gh)}set name(e){le(this,Gh,e)}get chainId(){return te(this,Vh)}set chainId(e){le(this,Vh,St(e,"chainId"))}matches(e){if(e==null)return!1;if(typeof e=="string"){try{return this.chainId===St(e)}catch{}return this.name===e}if(typeof e=="number"||typeof e=="bigint"){try{return this.chainId===St(e)}catch{}return!1}if(typeof e=="object"){if(e.chainId!=null){try{return this.chainId===St(e.chainId)}catch{}return!1}return e.name!=null?this.name===e.name:!1}return!1}get plugins(){return Array.from(te(this,ul).values())}attachPlugin(e){if(te(this,ul).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return te(this,ul).set(e.name,e.clone()),this}getPlugin(e){return te(this,ul).get(e)||null}getPlugins(e){return this.plugins.filter(r=>r.name.split("#")[0]===e)}clone(){const e=new th(this.name,this.chainId);return this.plugins.forEach(r=>{e.attachPlugin(r.clone())}),e}computeIntrinsicGas(e){const r=this.getPlugin("org.ethers.plugins.network.GasCost")||new zy;let n=r.txBase;if(e.to==null&&(n+=r.txCreate),e.data)for(let s=2;s{wf.register(i,s)})}t("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),t("ropsten",3,{ensNetwork:3}),t("rinkeby",4,{ensNetwork:4}),t("goerli",5,{ensNetwork:5}),t("kovan",42,{ensNetwork:42}),t("sepolia",11155111,{}),t("classic",61,{}),t("classicKotti",6,{}),t("xdai",100,{ensNetwork:1}),t("optimism",10,{ensNetwork:1,etherscan:{url:"https://api-optimistic.etherscan.io/"}}),t("optimism-goerli",420,{etherscan:{url:"https://api-goerli-optimistic.etherscan.io/"}}),t("arbitrum",42161,{ensNetwork:1,etherscan:{url:"https://api.arbiscan.io/"}}),t("arbitrum-goerli",421613,{etherscan:{url:"https://api-goerli.arbiscan.io/"}}),t("matic",137,{ensNetwork:1,etherscan:{url:"https://api.polygonscan.com/"}}),t("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],etherscan:{url:"https://api-testnet.polygonscan.com/"}}),t("bnb",56,{ensNetwork:1,etherscan:{url:"http://api.bscscan.com"}}),t("bnbt",97,{etherscan:{url:"http://api-testnet.bscscan.com"}})}function _A(t){return JSON.parse(JSON.stringify(t))}var lf,Zs,hl,mo,Wh,hg;class Yne{constructor(e){Fe(this,Wh);Fe(this,lf,void 0);Fe(this,Zs,void 0);Fe(this,hl,void 0);Fe(this,mo,void 0);le(this,lf,e),le(this,Zs,null),le(this,hl,4e3),le(this,mo,-2)}get pollingInterval(){return te(this,hl)}set pollingInterval(e){le(this,hl,e)}start(){te(this,Zs)||(le(this,Zs,te(this,lf)._setTimeout(ct(this,Wh,hg).bind(this),te(this,hl))),ct(this,Wh,hg).call(this))}stop(){te(this,Zs)&&(te(this,lf)._clearTimeout(te(this,Zs)),le(this,Zs,null))}pause(e){this.stop(),e&&le(this,mo,-2)}resume(){this.start()}}lf=new WeakMap,Zs=new WeakMap,hl=new WeakMap,mo=new WeakMap,Wh=new WeakSet,hg=async function(){try{const e=await te(this,lf).getBlockNumber();if(te(this,mo)===-2){le(this,mo,e);return}if(e!==te(this,mo)){for(let r=te(this,mo)+1;r<=e;r++){if(te(this,Zs)==null)return;await te(this,lf).emit("block",r)}le(this,mo,e)}}catch{}te(this,Zs)!=null&&le(this,Zs,te(this,lf)._setTimeout(ct(this,Wh,hg).bind(this),te(this,hl)))};var Ec,Mc,dl;class $C{constructor(e){Fe(this,Ec,void 0);Fe(this,Mc,void 0);Fe(this,dl,void 0);le(this,Ec,e),le(this,dl,!1),le(this,Mc,r=>{this._poll(r,te(this,Ec))})}async _poll(e,r){throw new Error("sub-classes must override this")}start(){te(this,dl)||(le(this,dl,!0),te(this,Mc).call(this,-2),te(this,Ec).on("block",te(this,Mc)))}stop(){te(this,dl)&&(le(this,dl,!1),te(this,Ec).off("block",te(this,Mc)))}pause(e){this.stop()}resume(){this.start()}}Ec=new WeakMap,Mc=new WeakMap,dl=new WeakMap;var _v;class Qne extends $C{constructor(r,n){super(r);Fe(this,_v,void 0);le(this,_v,_A(n))}async _poll(r,n){throw new Error("@TODO")}}_v=new WeakMap;var Zh;class Xne extends $C{constructor(r,n){super(r);Fe(this,Zh,void 0);le(this,Zh,n)}async _poll(r,n){const s=await n.getTransactionReceipt(te(this,Zh));s&&n.emit(te(this,Zh),s)}}Zh=new WeakMap;var cf,Yh,Qh,pl,Ys,Rv,eT;class j6{constructor(e,r){Fe(this,Rv);Fe(this,cf,void 0);Fe(this,Yh,void 0);Fe(this,Qh,void 0);Fe(this,pl,void 0);Fe(this,Ys,void 0);le(this,cf,e),le(this,Yh,_A(r)),le(this,Qh,ct(this,Rv,eT).bind(this)),le(this,pl,!1),le(this,Ys,-2)}start(){te(this,pl)||(le(this,pl,!0),te(this,Ys)===-2&&te(this,cf).getBlockNumber().then(e=>{le(this,Ys,e)}),te(this,cf).on("block",te(this,Qh)))}stop(){te(this,pl)&&(le(this,pl,!1),te(this,cf).off("block",te(this,Qh)))}pause(e){this.stop(),e&&le(this,Ys,-2)}resume(){this.start()}}cf=new WeakMap,Yh=new WeakMap,Qh=new WeakMap,pl=new WeakMap,Ys=new WeakMap,Rv=new WeakSet,eT=async function(e){if(te(this,Ys)===-2)return;const r=_A(te(this,Yh));r.fromBlock=te(this,Ys)+1,r.toBlock=e;const n=await te(this,cf).getLogs(r);if(n.length===0){te(this,Ys){if(n==null)return"null";if(typeof n=="bigint")return`bigint:${n.toString()}`;if(typeof n=="string")return n.toLowerCase();if(typeof n=="object"&&!Array.isArray(n)){const s=Object.keys(n);return s.sort(),s.reduce((i,o)=>(i[o]=n[o],i),{})}return n})}class tT{constructor(e){xe(this,"name");Dt(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function eie(t){return JSON.parse(JSON.stringify(t))}function RA(t){return t=Array.from(new Set(t).values()),t.sort(),t}async function X2(t,e){if(t==null)throw new Error("invalid event");if(Array.isArray(t)&&(t={topics:t}),typeof t=="string")switch(t){case"block":case"pending":case"debug":case"error":case"network":return{type:t,tag:t}}if(Mn(t,32)){const r=t.toLowerCase();return{type:"transaction",tag:dg("tx",{hash:r}),hash:r}}if(t.orphan){const r=t;return{type:"orphan",tag:dg("orphan",r),filter:eie(r)}}if(t.address||t.topics){const r=t,n={topics:(r.topics||[]).map(s=>s==null?null:Array.isArray(s)?RA(s.map(i=>i.toLowerCase())):s.toLowerCase())};if(r.address){const s=[],i=[],o=f=>{Mn(f)?s.push(f):i.push((async()=>{s.push(await Rs(f,e))})())};Array.isArray(r.address)?r.address.forEach(o):o(r.address),i.length&&await Promise.all(i),n.address=RA(s.map(f=>f.toLowerCase()))}return{filter:n,tag:dg("event",n),type:"event"}}ye(!1,"unknown ProviderEvent","event",t)}function J2(){return new Date().getTime()}const tie={cacheTimeout:250};var ki,ml,Bi,Xh,As,Sc,gl,uf,Jp,Qs,Jh,$p,as,zs,e1,NA,t1,CA,_c,j0,Nv,rT,Rc,z0,$h,pg;class rie{constructor(e,r){Fe(this,as);Fe(this,e1);Fe(this,t1);Fe(this,_c);Fe(this,Nv);Fe(this,Rc);Fe(this,$h);Fe(this,ki,void 0);Fe(this,ml,void 0);Fe(this,Bi,void 0);Fe(this,Xh,void 0);Fe(this,As,void 0);Fe(this,Sc,void 0);Fe(this,gl,void 0);Fe(this,uf,void 0);Fe(this,Jp,void 0);Fe(this,Qs,void 0);Fe(this,Jh,void 0);Fe(this,$p,void 0);if(le(this,$p,Object.assign({},tie,r||{})),e==="any")le(this,Sc,!0),le(this,As,null);else if(e){const n=wf.from(e);le(this,Sc,!1),le(this,As,Promise.resolve(n)),setTimeout(()=>{this.emit("network",n,null)},0)}else le(this,Sc,!1),le(this,As,null);le(this,uf,-1),le(this,gl,new Map),le(this,ki,new Map),le(this,ml,new Map),le(this,Bi,null),le(this,Xh,!1),le(this,Jp,1),le(this,Qs,new Map),le(this,Jh,!1)}get provider(){return this}get plugins(){return Array.from(te(this,ml).values())}attachPlugin(e){if(te(this,ml).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return te(this,ml).set(e.name,e.connect(this)),this}getPlugin(e){return te(this,ml).get(e)||null}get disableCcipRead(){return te(this,Jh)}set disableCcipRead(e){le(this,Jh,!!e)}async ccipReadFetch(e,r,n){if(this.disableCcipRead||n.length===0||e.to==null)return null;const s=e.to.toLowerCase(),i=r.toLowerCase(),o=[];for(let f=0;f=500,`response not found during CCIP fetch: ${d}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:u,errorMessage:d}}),o.push(d)}nt(!1,`error encountered during CCIP fetch: ${o.map(f=>JSON.stringify(f)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:n,errorMessages:o}})}_wrapBlock(e,r){return new Ene(zne(e),this)}_wrapLog(e,r){return new Hy(Hne(e),this)}_wrapTransactionReceipt(e,r){return new jC(Vne(e),this)}_wrapTransactionResponse(e,r){return new Kp(JC(e),this)}_detectNetwork(){nt(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){nt(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=br(await ct(this,as,zs).call(this,{method:"getBlockNumber"}),"%response");return te(this,uf)>=0&&le(this,uf,e),e}_getAddress(e){return Rs(e,this)}_getBlockTag(e){if(e==null)return"latest";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if(Mn(e))return Mn(e,32)?e:$u(e);if(typeof e=="bigint"&&(e=br(e,"blockTag")),typeof e=="number")return e>=0?$u(e):te(this,uf)>=0?$u(te(this,uf)+e):this.getBlockNumber().then(r=>$u(r+e));ye(!1,"invalid blockTag","blockTag",e)}_getFilter(e){const r=(e.topics||[]).map(u=>u==null?null:Array.isArray(u)?RA(u.map(h=>h.toLowerCase())):u.toLowerCase()),n="blockHash"in e?e.blockHash:void 0,s=(u,h,p)=>{let d;switch(u.length){case 0:break;case 1:d=u[0];break;default:u.sort(),d=u}if(n&&(h!=null||p!=null))throw new Error("invalid filter");const v={};return d&&(v.address=d),r.length&&(v.topics=r),h&&(v.fromBlock=h),p&&(v.toBlock=p),n&&(v.blockHash=n),v};let i=[];if(e.address)if(Array.isArray(e.address))for(const u of e.address)i.push(this._getAddress(u));else i.push(this._getAddress(e.address));let o;"fromBlock"in e&&(o=this._getBlockTag(e.fromBlock));let f;return"toBlock"in e&&(f=this._getBlockTag(e.toBlock)),i.filter(u=>typeof u!="string").length||o!=null&&typeof o!="string"||f!=null&&typeof f!="string"?Promise.all([Promise.all(i),o,f]).then(u=>s(u[0],u[1],u[2])):s(i,o,f)}_getTransactionRequest(e){const r=yv(e),n=[];if(["to","from"].forEach(s=>{if(r[s]==null)return;const i=Rs(r[s]);Nm(i)?n.push(async function(){r[s]=await i}()):r[s]=i}),r.blockTag!=null){const s=this._getBlockTag(r.blockTag);Nm(s)?n.push(async function(){r.blockTag=await s}()):r.blockTag=s}return n.length?async function(){return await Promise.all(n),r}():r}async getNetwork(){if(te(this,As)==null){const s=this._detectNetwork().then(i=>(this.emit("network",i,null),i),i=>{throw te(this,As)===s&&le(this,As,null),i});return le(this,As,s),(await s).clone()}const e=te(this,As),[r,n]=await Promise.all([e,this._detectNetwork()]);return r.chainId!==n.chainId&&(te(this,Sc)?(this.emit("network",n,r),te(this,As)===e&&le(this,As,Promise.resolve(n))):nt(!1,`network changed: ${r.chainId} => ${n.chainId} `,"NETWORK_ERROR",{event:"changed"})),r.clone()}async getFeeData(){const{block:e,gasPrice:r}=await Gi({block:this.getBlock("latest"),gasPrice:(async()=>{try{const i=await ct(this,as,zs).call(this,{method:"getGasPrice"});return St(i,"%response")}catch{}return null})()});let n=null,s=null;return e&&e.baseFeePerGas&&(s=BigInt("1000000000"),n=e.baseFeePerGas*Jne+s),new xne(r,n,s)}async estimateGas(e){let r=this._getTransactionRequest(e);return Nm(r)&&(r=await r),St(await ct(this,as,zs).call(this,{method:"estimateGas",transaction:r}),"%response")}async call(e){const{tx:r,blockTag:n}=await Gi({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await ct(this,t1,CA).call(this,ct(this,e1,NA).call(this,r,n,e.enableCcipRead?0:-1))}async getBalance(e,r){return St(await ct(this,_c,j0).call(this,{method:"getBalance"},e,r),"%response")}async getTransactionCount(e,r){return br(await ct(this,_c,j0).call(this,{method:"getTransactionCount"},e,r),"%response")}async getCode(e,r){return At(await ct(this,_c,j0).call(this,{method:"getCode"},e,r))}async getStorage(e,r,n){const s=St(r,"position");return At(await ct(this,_c,j0).call(this,{method:"getStorage",position:s},e,n))}async broadcastTransaction(e){const{blockNumber:r,hash:n,network:s}=await Gi({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),i=gv.from(e);if(i.hash!==n)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(i,s).replaceableTransaction(r)}async getBlock(e,r){const{network:n,params:s}=await Gi({network:this.getNetwork(),params:ct(this,Nv,rT).call(this,e,!!r)});return s==null?null:this._wrapBlock(s,n)}async getTransaction(e){const{network:r,params:n}=await Gi({network:this.getNetwork(),params:ct(this,as,zs).call(this,{method:"getTransaction",hash:e})});return n==null?null:this._wrapTransactionResponse(n,r)}async getTransactionReceipt(e){const{network:r,params:n}=await Gi({network:this.getNetwork(),params:ct(this,as,zs).call(this,{method:"getTransactionReceipt",hash:e})});if(n==null)return null;if(n.gasPrice==null&&n.effectiveGasPrice==null){const s=await ct(this,as,zs).call(this,{method:"getTransaction",hash:e});if(s==null)throw new Error("report this; could not find tx or effectiveGasPrice");n.effectiveGasPrice=s.gasPrice}return this._wrapTransactionReceipt(n,r)}async getTransactionResult(e){const{result:r}=await Gi({network:this.getNetwork(),result:ct(this,as,zs).call(this,{method:"getTransactionResult",hash:e})});return r==null?null:At(r)}async getLogs(e){let r=this._getFilter(e);Nm(r)&&(r=await r);const{network:n,params:s}=await Gi({network:this.getNetwork(),params:ct(this,as,zs).call(this,{method:"getLogs",filter:r})});return s.map(i=>this._wrapLog(i,n))}_getProvider(e){nt(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await J0.fromName(this,e)}async getAvatar(e){const r=await this.getResolver(e);return r?await r.getAvatar():null}async resolveName(e){const r=await this.getResolver(e);return r?await r.getAddress():null}async lookupAddress(e){e=Hr(e);const r=bA(e.substring(2).toLowerCase()+".addr.reverse");try{const n=await J0.getEnsAddress(this),i=await new Uc(n,["function resolver(bytes32) view returns (address)"],this).resolver(r);if(i==null||i===gA)return null;const f=await new Uc(i,["function name(bytes32) view returns (string)"],this).name(r);return await this.resolveName(f)!==e?null:f}catch(n){if(ko(n,"BAD_DATA")&&n.value==="0x"||ko(n,"CALL_EXCEPTION"))return null;throw n}return null}async waitForTransaction(e,r,n){const s=r??1;return s===0?this.getTransactionReceipt(e):new Promise(async(i,o)=>{let f=null;const u=async h=>{try{const p=await this.getTransactionReceipt(e);if(p!=null&&h-p.blockNumber+1>=s){i(p),f&&(clearTimeout(f),f=null);return}}catch(p){console.log("EEE",p)}this.once("block",u)};n!=null&&(f=setTimeout(()=>{f!=null&&(f=null,this.off("block",u),o(oi("timeout","TIMEOUT",{reason:"timeout"})))},n)),u(await this.getBlockNumber())})}async waitForBlock(e){nt(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const r=te(this,Qs).get(e);r&&(r.timer&&clearTimeout(r.timer),te(this,Qs).delete(e))}_setTimeout(e,r){r==null&&(r=0);const n=a0(this,Jp)._++,s=()=>{te(this,Qs).delete(n),e()};if(this.paused)te(this,Qs).set(n,{timer:null,func:s,time:r});else{const i=setTimeout(s,r);te(this,Qs).set(n,{timer:i,func:s,time:J2()})}return n}_forEachSubscriber(e){for(const r of te(this,ki).values())e(r.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new tT(e.type);case"block":return new Yne(this);case"event":return new j6(this,e.filter);case"transaction":return new Xne(this,e.hash);case"orphan":return new Qne(this,e.filter)}throw new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,r){for(const n of te(this,ki).values())if(n.subscriber===e){n.started&&n.subscriber.stop(),n.subscriber=r,n.started&&r.start(),te(this,Bi)!=null&&r.pause(te(this,Bi));break}}async on(e,r){const n=await ct(this,$h,pg).call(this,e);return n.listeners.push({listener:r,once:!1}),n.started||(n.subscriber.start(),n.started=!0,te(this,Bi)!=null&&n.subscriber.pause(te(this,Bi))),this}async once(e,r){const n=await ct(this,$h,pg).call(this,e);return n.listeners.push({listener:r,once:!0}),n.started||(n.subscriber.start(),n.started=!0,te(this,Bi)!=null&&n.subscriber.pause(te(this,Bi))),this}async emit(e,...r){const n=await ct(this,Rc,z0).call(this,e,r);if(!n||n.listeners.length===0)return!1;const s=n.listeners.length;return n.listeners=n.listeners.filter(({listener:i,once:o})=>{const f=new _N(this,o?null:i,e);try{i.call(this,...r,f)}catch{}return!o}),n.listeners.length===0&&(n.started&&n.subscriber.stop(),te(this,ki).delete(n.tag)),s>0}async listenerCount(e){if(e){const n=await ct(this,Rc,z0).call(this,e);return n?n.listeners.length:0}let r=0;for(const{listeners:n}of te(this,ki).values())r+=n.length;return r}async listeners(e){if(e){const n=await ct(this,Rc,z0).call(this,e);return n?n.listeners.map(({listener:s})=>s):[]}let r=[];for(const{listeners:n}of te(this,ki).values())r=r.concat(n.map(({listener:s})=>s));return r}async off(e,r){const n=await ct(this,Rc,z0).call(this,e);if(!n)return this;if(r){const s=n.listeners.map(({listener:i})=>i).indexOf(r);s>=0&&n.listeners.splice(s,1)}return(!r||n.listeners.length===0)&&(n.started&&n.subscriber.stop(),te(this,ki).delete(n.tag)),this}async removeAllListeners(e){if(e){const{tag:r,started:n,subscriber:s}=await ct(this,$h,pg).call(this,e);n&&s.stop(),te(this,ki).delete(r)}else for(const[r,{started:n,subscriber:s}]of te(this,ki))n&&s.stop(),te(this,ki).delete(r);return this}async addListener(e,r){return await this.on(e,r)}async removeListener(e,r){return this.off(e,r)}get destroyed(){return te(this,Xh)}destroy(){this.removeAllListeners();for(const e of te(this,Qs).keys())this._clearTimeout(e);le(this,Xh,!0)}get paused(){return te(this,Bi)!=null}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(le(this,uf,-1),te(this,Bi)!=null){if(te(this,Bi)==!!e)return;nt(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(r=>r.pause(e)),le(this,Bi,!!e);for(const r of te(this,Qs).values())r.timer&&clearTimeout(r.timer),r.time=J2()-r.time}resume(){if(te(this,Bi)!=null){this._forEachSubscriber(e=>e.resume()),le(this,Bi,null);for(const e of te(this,Qs).values()){let r=e.time;r<0&&(r=0),e.time=J2(),setTimeout(e.func,r)}}}}ki=new WeakMap,ml=new WeakMap,Bi=new WeakMap,Xh=new WeakMap,As=new WeakMap,Sc=new WeakMap,gl=new WeakMap,uf=new WeakMap,Jp=new WeakMap,Qs=new WeakMap,Jh=new WeakMap,$p=new WeakMap,as=new WeakSet,zs=async function(e){const r=te(this,$p).cacheTimeout;if(r<0)return await this._perform(e);const n=dg(e.method,e);let s=te(this,gl).get(n);return s||(s=this._perform(e),te(this,gl).set(n,s),setTimeout(()=>{te(this,gl).get(n)===s&&te(this,gl).delete(n)},r)),await s},e1=new WeakSet,NA=async function(e,r,n){nt(n<$ne,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},e,{blockTag:r,enableCcipRead:!0})});const s=yv(e);try{return At(await this._perform({method:"call",transaction:s,blockTag:r}))}catch(i){if(!this.disableCcipRead&&_6(i)&&i.data&&n>=0&&r==="latest"&&s.to!=null&&Cn(i.data,0,4)==="0x556f1830"){const o=i.data,f=await Rs(s.to,this);let u;try{u=oie(Cn(i.data,4))}catch(d){nt(!1,d.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:s,info:{data:o}})}nt(u.sender.toLowerCase()===f.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:o,reason:"OffchainLookup",transaction:s,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:u.errorArgs}});const h=await this.ccipReadFetch(s,u.calldata,u.urls);nt(h!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:s,info:{data:i.data,errorArgs:u.errorArgs}});const p={to:f,data:jn([u.selector,aie([h,u.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:p});try{const d=await ct(this,e1,NA).call(this,p,r,n+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},p),result:d}),d}catch(d){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},p),error:d}),d}}throw i}},t1=new WeakSet,CA=async function(e){const{value:r}=await Gi({network:this.getNetwork(),value:e});return r},_c=new WeakSet,j0=async function(e,r,n){let s=this._getAddress(r),i=this._getBlockTag(n);return(typeof s!="string"||typeof i!="string")&&([s,i]=await Promise.all([s,i])),await ct(this,t1,CA).call(this,ct(this,as,zs).call(this,Object.assign(e,{address:s,blockTag:i})))},Nv=new WeakSet,rT=async function(e,r){if(Mn(e,32))return await ct(this,as,zs).call(this,{method:"getBlock",blockHash:e,includeTransactions:r});let n=this._getBlockTag(e);return typeof n!="string"&&(n=await n),await ct(this,as,zs).call(this,{method:"getBlock",blockTag:n,includeTransactions:r})},Rc=new WeakSet,z0=async function(e,r){let n=await X2(e,this);return n.type==="event"&&r&&r.length>0&&r[0].removed===!0&&(n=await X2({orphan:"drop-log",log:r[0]},this)),te(this,ki).get(n.tag)||null},$h=new WeakSet,pg=async function(e){const r=await X2(e,this),n=r.tag;let s=te(this,ki).get(n);return s||(s={subscriber:this._getSubscriber(r),tag:n,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},te(this,ki).set(n,s)),s};function nie(t,e){try{const r=TA(t,e);if(r)return N6(r)}catch{}return null}function TA(t,e){if(t==="0x")return null;try{const r=br(Cn(t,e,e+32)),n=br(Cn(t,r,r+32));return Cn(t,r+32,r+32+n)}catch{}return null}function y9(t){const e=_s(t);if(e.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(e,32-e.length),r}function iie(t){if(t.length%32===0)return t;const e=new Uint8Array(Math.ceil(t.length/32)*32);return e.set(t),e}const sie=new Uint8Array([]);function aie(t){const e=[];let r=0;for(let n=0;n=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const r=Cn(t,0,32);nt(Cn(r,0,12)===Cn(b9,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),e.sender=Cn(r,12);try{const n=[],s=br(Cn(t,32,64)),i=br(Cn(t,s,s+32)),o=Cn(t,s+32);for(let f=0;fe[n]),e}function Tu(t,e){if(t.provider)return t.provider;nt(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:e})}async function w9(t,e){let r=yv(e);if(r.to!=null&&(r.to=Rs(r.to,t)),r.from!=null){const n=r.from;r.from=Promise.all([t.getAddress(),Rs(n,t)]).then(([s,i])=>(ye(s.toLowerCase()===i.toLowerCase(),"transaction from mismatch","tx.from",i),s))}else r.from=t.getAddress();return await Gi(r)}class fie{constructor(e){xe(this,"provider");Dt(this,{provider:e||null})}async getNonce(e){return Tu(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await w9(this,e)}async populateTransaction(e){const r=Tu(this,"populateTransaction"),n=await w9(this,e);n.nonce==null&&(n.nonce=await this.getNonce("pending")),n.gasLimit==null&&(n.gasLimit=await this.estimateGas(n));const s=await this.provider.getNetwork();if(n.chainId!=null){const o=St(n.chainId);ye(o===s.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else n.chainId=s.chainId;const i=n.maxFeePerGas!=null||n.maxPriorityFeePerGas!=null;if(n.gasPrice!=null&&(n.type===2||i)?ye(!1,"eip-1559 transaction do not support gasPrice","tx",e):(n.type===0||n.type===1)&&i&&ye(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e),(n.type===2||n.type==null)&&n.maxFeePerGas!=null&&n.maxPriorityFeePerGas!=null)n.type=2;else if(n.type===0||n.type===1){const o=await r.getFeeData();nt(o.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),n.gasPrice==null&&(n.gasPrice=o.gasPrice)}else{const o=await r.getFeeData();if(n.type==null)if(o.maxFeePerGas!=null&&o.maxPriorityFeePerGas!=null)if(n.type=2,n.gasPrice!=null){const f=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=f,n.maxPriorityFeePerGas=f}else n.maxFeePerGas==null&&(n.maxFeePerGas=o.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=o.maxPriorityFeePerGas);else o.gasPrice!=null?(nt(!i,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),n.gasPrice==null&&(n.gasPrice=o.gasPrice),n.type=0):nt(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else n.type===2&&(n.maxFeePerGas==null&&(n.maxFeePerGas=o.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=o.maxPriorityFeePerGas))}return await Gi(n)}async estimateGas(e){return Tu(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return Tu(this,"call").call(await this.populateCall(e))}async resolveName(e){return await Tu(this,"resolveName").resolveName(e)}async sendTransaction(e){const r=Tu(this,"sendTransaction"),n=await this.populateTransaction(e);delete n.from;const s=gv.from(n);return await r.broadcastTransaction(await this.signTransaction(s))}}function lie(t){return JSON.parse(JSON.stringify(t))}var os,go,Nc,vl,Cc,ed,r1,kA,n1,BA;class nT{constructor(e){Fe(this,r1);Fe(this,n1);Fe(this,os,void 0);Fe(this,go,void 0);Fe(this,Nc,void 0);Fe(this,vl,void 0);Fe(this,Cc,void 0);Fe(this,ed,void 0);le(this,os,e),le(this,go,null),le(this,Nc,ct(this,r1,kA).bind(this)),le(this,vl,!1),le(this,Cc,null),le(this,ed,!1)}_subscribe(e){throw new Error("subclasses must override this")}_emitResults(e,r){throw new Error("subclasses must override this")}_recover(e){throw new Error("subclasses must override this")}start(){te(this,vl)||(le(this,vl,!0),ct(this,r1,kA).call(this,-2))}stop(){te(this,vl)&&(le(this,vl,!1),le(this,ed,!0),ct(this,n1,BA).call(this),te(this,os).off("block",te(this,Nc)))}pause(e){e&&ct(this,n1,BA).call(this),te(this,os).off("block",te(this,Nc))}resume(){this.start()}}os=new WeakMap,go=new WeakMap,Nc=new WeakMap,vl=new WeakMap,Cc=new WeakMap,ed=new WeakMap,r1=new WeakSet,kA=async function(e){try{te(this,go)==null&&le(this,go,this._subscribe(te(this,os)));let r=null;try{r=await te(this,go)}catch(i){if(!ko(i,"UNSUPPORTED_OPERATION")||i.operation!=="eth_newFilter")throw i}if(r==null){le(this,go,null),te(this,os)._recoverSubscriber(this,this._recover(te(this,os)));return}const n=await te(this,os).getNetwork();if(te(this,Cc)||le(this,Cc,n),te(this,Cc).chainId!==n.chainId)throw new Error("chaid changed");if(te(this,ed))return;const s=await te(this,os).send("eth_getFilterChanges",[r]);await this._emitResults(te(this,os),s)}catch(r){console.log("@TODO",r)}te(this,os).once("block",te(this,Nc))},n1=new WeakSet,BA=function(){const e=te(this,go);e&&(le(this,go,null),e.then(r=>{te(this,os).send("eth_uninstallFilter",[r])}))};var Tc;class cie extends nT{constructor(r,n){super(r);Fe(this,Tc,void 0);le(this,Tc,lie(n))}_recover(r){return new j6(r,te(this,Tc))}async _subscribe(r){return await r.send("eth_newFilter",[te(this,Tc)])}async _emitResults(r,n){for(const s of n)r.emit(te(this,Tc),r._wrapLog(s,r._network))}}Tc=new WeakMap;class uie extends nT{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,r){for(const n of r)e.emit("pending",n)}}const hie="bigint,boolean,function,number,string,symbol".split(/,/g);function mg(t){if(t==null||hie.indexOf(typeof t)>=0||typeof t.getAddress=="function")return t;if(Array.isArray(t))return t.map(mg);if(typeof t=="object")return Object.keys(t).reduce((e,r)=>(e[r]=t[r],e),{});throw new Error(`should not happen: ${t} (${typeof t})`)}function die(t){return new Promise(e=>{setTimeout(e,t)})}function ku(t){return t&&t.toLowerCase()}function A9(t){return t&&typeof t.pollingInterval=="number"}const pie={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250};class $2 extends fie{constructor(r,n){super(r);xe(this,"address");n=Hr(n),Dt(this,{address:n})}connect(r){nt(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(r){return await this.populateCall(r)}async sendUncheckedTransaction(r){const n=mg(r),s=[];if(n.from){const o=n.from;s.push((async()=>{const f=await Rs(o,this.provider);ye(f!=null&&f.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",r),n.from=f})())}else n.from=this.address;if(n.gasLimit==null&&s.push((async()=>{n.gasLimit=await this.provider.estimateGas({...n,from:this.address})})()),n.to!=null){const o=n.to;s.push((async()=>{n.to=await Rs(o,this.provider)})())}s.length&&await Promise.all(s);const i=this.provider.getRpcTransaction(n);return this.provider.send("eth_sendTransaction",[i])}async sendTransaction(r){const n=await this.provider.getBlockNumber(),s=await this.sendUncheckedTransaction(r);return await new Promise((i,o)=>{const f=[1e3,100],u=async()=>{const h=await this.provider.getTransaction(s);if(h!=null){i(h.replaceableTransaction(n));return}this.provider._setTimeout(()=>{u()},f.pop()||4e3)};u()})}async signTransaction(r){const n=mg(r);if(n.from){const i=await Rs(n.from,this.provider);ye(i!=null&&i.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",r),n.from=i}else n.from=this.address;const s=this.provider.getRpcTransaction(n);return await this.provider.send("eth_signTransaction",[s])}async signMessage(r){const n=typeof r=="string"?xf(r):r;return await this.provider.send("personal_sign",[At(n),this.address.toLowerCase()])}async signTypedData(r,n,s){const i=mg(s),o=await vv.resolveNames(r,n,i,async f=>{const u=await Rs(f);return ye(u!=null,"TypedData does not support null address","value",f),u});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(vv.getPayload(o.domain,n,o.value))])}async unlock(r){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),r,null])}async _legacySignMessage(r){const n=typeof r=="string"?xf(r):r;return await this.provider.send("eth_sign",[this.address.toLowerCase(),At(n)])}}var kc,td,hf,vo,Da,df,i1,IA;class mie extends rie{constructor(r,n){const s={};n&&n.cacheTimeout!=null&&(s.cacheTimeout=n.cacheTimeout);super(r,s);Fe(this,i1);Fe(this,kc,void 0);Fe(this,td,void 0);Fe(this,hf,void 0);Fe(this,vo,void 0);Fe(this,Da,void 0);Fe(this,df,void 0);le(this,td,1),le(this,kc,Object.assign({},pie,n||{})),le(this,hf,[]),le(this,vo,null),le(this,df,null);{let o=null;const f=new Promise(u=>{o=u});le(this,Da,{promise:f,resolve:o})}const i=this._getOption("staticNetwork");i&&(ye(r==null||i.matches(r),"staticNetwork MUST match network object","options",n),le(this,df,i))}_getOption(r){return te(this,kc)[r]}get _network(){return nt(te(this,df),"network is not available yet","NETWORK_ERROR"),te(this,df)}async _perform(r){if(r.method==="call"||r.method==="estimateGas"){let s=r.transaction;if(s&&s.type!=null&&St(s.type)&&s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null){const i=await this.getFeeData();i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(r=Object.assign({},r,{transaction:Object.assign({},s,{type:void 0})}))}}const n=this.getRpcRequest(r);return n!=null?await this.send(n.method,n.args):super._perform(r)}async _detectNetwork(){const r=this._getOption("staticNetwork");if(r)return r;if(this.ready)return wf.from(St(await this.send("eth_chainId",[])));const n={id:a0(this,td)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:n});let s;try{s=(await this._send(n))[0]}catch(i){throw this.emit("debug",{action:"receiveRpcError",error:i}),i}if(this.emit("debug",{action:"receiveRpcResult",result:s}),"result"in s)return wf.from(St(s.result));throw this.getRpcError(n,s)}_start(){te(this,Da)==null||te(this,Da).resolve==null||(te(this,Da).resolve(),le(this,Da,null),(async()=>{for(;te(this,df)==null&&!this.destroyed;)try{le(this,df,await this._detectNetwork())}catch(r){console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",oi("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:r}})),await die(1e3)}ct(this,i1,IA).call(this)})())}async _waitUntilReady(){if(te(this,Da)!=null)return await te(this,Da).promise}_getSubscriber(r){return r.type==="pending"?new uie(this):r.type==="event"?this._getOption("polling")?new j6(this,r.filter):new cie(this,r.filter):r.type==="orphan"&&r.filter.orphan==="drop-log"?new tT("orphan"):super._getSubscriber(r)}get ready(){return te(this,Da)==null}getRpcTransaction(r){const n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(s=>{if(r[s]==null)return;let i=s;s==="gasLimit"&&(i="gas"),n[i]=$u(St(r[s],`tx.${s}`))}),["from","to","data"].forEach(s=>{r[s]!=null&&(n[s]=At(r[s]))}),r.accessList&&(n.accessList=fu(r.accessList)),n}getRpcRequest(r){switch(r.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getBalance":return{method:"eth_getBalance",args:[ku(r.address),r.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[ku(r.address),r.blockTag]};case"getCode":return{method:"eth_getCode",args:[ku(r.address),r.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[ku(r.address),"0x"+r.position.toString(16),r.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[r.signedTransaction]};case"getBlock":if("blockTag"in r)return{method:"eth_getBlockByNumber",args:[r.blockTag,!!r.includeTransactions]};if("blockHash"in r)return{method:"eth_getBlockByHash",args:[r.blockHash,!!r.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[r.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[r.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(r.transaction),r.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(r.transaction)]};case"getLogs":return r.filter&&r.filter.address!=null&&(Array.isArray(r.filter.address)?r.filter.address=r.filter.address.map(ku):r.filter.address=ku(r.filter.address)),{method:"eth_getLogs",args:[r.filter]}}return null}getRpcError(r,n){const{method:s}=r,{error:i}=n;if(s==="eth_estimateGas"&&i.message){const u=i.message;if(!u.match(/revert/i)&&u.match(/insufficient funds/i))return oi("insufficient funds","INSUFFICIENT_FUNDS",{transaction:r.params[0],info:{payload:r,error:i}})}if(s==="eth_call"||s==="eth_estimateGas"){const u=PA(i),h=zp.getBuiltinCallException(s==="eth_call"?"call":"estimateGas",r.params[0],u?u.data:null);return h.info={error:i,payload:r},h}const o=JSON.stringify(vie(i));if(typeof i.message=="string"&&i.message.match(/user denied|ethers-user-denied/i))return oi("user rejected action","ACTION_REJECTED",{action:{eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"}[s]||"unknown",reason:"rejected",info:{payload:r,error:i}});if(s==="eth_sendRawTransaction"||s==="eth_sendTransaction"){const u=r.params[0];if(o.match(/insufficient funds|base fee exceeds gas limit/i))return oi("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:u,info:{error:i}});if(o.match(/nonce/i)&&o.match(/too low/i))return oi("nonce has already been used","NONCE_EXPIRED",{transaction:u,info:{error:i}});if(o.match(/replacement transaction/i)&&o.match(/underpriced/i))return oi("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:u,info:{error:i}});if(o.match(/only replay-protected/i))return oi("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:s,info:{transaction:u,info:{error:i}}})}let f=!!o.match(/the method .* does not exist/i);return f||i&&i.details&&i.details.startsWith("Unauthorized method:")&&(f=!0),f?oi("unsupported operation","UNSUPPORTED_OPERATION",{operation:r.method,info:{error:i,payload:r}}):oi("could not coalesce error","UNKNOWN_ERROR",{error:i,payload:r})}send(r,n){if(this.destroyed)return Promise.reject(oi("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:r}));const s=a0(this,td)._++,i=new Promise((o,f)=>{te(this,hf).push({resolve:o,reject:f,payload:{method:r,params:n,id:s,jsonrpc:"2.0"}})});return ct(this,i1,IA).call(this),i}async getSigner(r){r==null&&(r=0);const n=this.send("eth_accounts",[]);if(typeof r=="number"){const i=await n;if(r>=i.length)throw new Error("no such account");return new $2(this,i[r])}const{accounts:s}=await Gi({network:this.getNetwork(),accounts:n});r=Hr(r);for(const i of s)if(Hr(i)===r)return new $2(this,r);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(n=>new $2(this,n))}destroy(){te(this,vo)&&(clearTimeout(te(this,vo)),le(this,vo,null));for(const{payload:r,reject:n}of te(this,hf))n(oi("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:r.method}));le(this,hf,[]),super.destroy()}}kc=new WeakMap,td=new WeakMap,hf=new WeakMap,vo=new WeakMap,Da=new WeakMap,df=new WeakMap,i1=new WeakSet,IA=function(){if(te(this,vo))return;const r=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");le(this,vo,setTimeout(()=>{le(this,vo,null);const n=te(this,hf);for(le(this,hf,[]);n.length;){const s=[n.shift()];for(;n.length&&s.length!==te(this,kc).batchMaxCount;)if(s.push(n.shift()),JSON.stringify(s.map(o=>o.payload)).length>te(this,kc).batchMaxSize){n.unshift(s.pop());break}(async()=>{const i=s.length===1?s[0].payload:s.map(o=>o.payload);this.emit("debug",{action:"sendRpcPayload",payload:i});try{const o=await this._send(i);this.emit("debug",{action:"receiveRpcResult",result:o});for(const{resolve:f,reject:u,payload:h}of s){if(this.destroyed){u(oi("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:h.method}));continue}const p=o.filter(d=>d.id===h.id)[0];if(p==null){const d=oi("missing response for request","BAD_DATA",{value:o,info:{payload:h}});this.emit("error",d),u(d);continue}if("error"in p){u(this.getRpcError(h,p));continue}f(p.result)}}catch(o){this.emit("debug",{action:"receiveRpcError",error:o});for(const{reject:f}of s)f(o)}})()}},r))};var yl;class gie extends mie{constructor(r,n){super(r,n);Fe(this,yl,void 0);le(this,yl,4e3)}_getSubscriber(r){const n=super._getSubscriber(r);return A9(n)&&(n.pollingInterval=te(this,yl)),n}get pollingInterval(){return te(this,yl)}set pollingInterval(r){if(!Number.isInteger(r)||r<0)throw new Error("invalid interval");le(this,yl,r),this._forEachSubscriber(n=>{A9(n)&&(n.pollingInterval=te(this,yl))})}}yl=new WeakMap;function PA(t){if(t==null)return null;if(typeof t.message=="string"&&t.message.match(/revert/i)&&Mn(t.data))return{message:t.message,data:t.data};if(typeof t=="object"){for(const e in t){const r=PA(t[e]);if(r)return r}return null}if(typeof t=="string")try{return PA(JSON.parse(t))}catch{}return null}function OA(t,e){if(t!=null){if(typeof t.message=="string"&&e.push(t.message),typeof t=="object")for(const r in t)OA(t[r],e);if(typeof t=="string")try{return OA(JSON.parse(t),e)}catch{}}}function vie(t){const e=[];return OA(t,e),e}var rd;class yie extends gie{constructor(r,n){super(n,{batchMaxCount:1});Fe(this,rd,void 0);le(this,rd,async(s,i)=>{const o={method:s,params:i};this.emit("debug",{action:"sendEip1193Request",payload:o});try{const f=await r.request(o);return this.emit("debug",{action:"receiveEip1193Result",result:f}),f}catch(f){const u=new Error(f.message);throw u.code=f.code,u.data=f.data,u.payload=o,this.emit("debug",{action:"receiveEip1193Error",error:u}),u}})}async send(r,n){return await this._start(),await super.send(r,n)}async _send(r){ye(!Array.isArray(r),"EIP-1193 does not support batch request","payload",r);try{const n=await te(this,rd).call(this,r.method,r.params||[]);return[{id:r.id,result:n}]}catch(n){return[{id:r.id,error:{code:n.code,data:n.data,message:n.message}}]}}getRpcError(r,n){switch(n=JSON.parse(JSON.stringify(n)),n.error.code||-1){case 4001:n.error.message=`ethers-user-denied: ${n.error.message}`;break;case 4200:n.error.message=`ethers-unsupported: ${n.error.message}`;break}return super.getRpcError(r,n)}async hasSigner(r){r==null&&(r=0);const n=await this.send("eth_accounts",[]);return typeof r=="number"?n.length>r:(r=r.toLowerCase(),n.filter(s=>s.toLowerCase()===r).length!==0)}async getSigner(r){if(r==null&&(r=0),!await this.hasSigner(r))try{await te(this,rd).call(this,"eth_requestAccounts",[])}catch(n){const s=n.payload;throw this.getRpcError(s,{id:s.id,error:n})}return await super.getSigner(r)}}rd=new WeakMap;window.web3gl={networkId:0,connect:bie,connectAccount:"",signMessage:xie,signMessageResponse:"",signTypedMessage:Eie,signTypedMessageResponse:"",callContract:_ie,callContractResponse:"",callContractError:"",sendTransaction:Mie,sendTransactionResponse:"",sha3Message:wie,hashMessageResponse:"",ecRecover:Aie,ecRecoverAddressResponse:"",sendTransactionData:Sie,sendTransactionResponseData:"",sendContract:Rie,sendContractResponse:""};let Mf;async function bie(){var e;if(window.web3ChainId&&!await lE.setChain({chainId:window.web3ChainId}))return;const t=await lE.connectWallet();t[0]!==null&&(Mf=new yie(t[0].provider),window.web3gl.networkId=Number((e=await Mf.getNetwork())==null?void 0:e.chainId),window.web3gl.connectAccount=await(await Mf.getSigner()).getAddress(),window.ethereum.on("accountsChanged",()=>{window.location.reload()}),window.ethereum.on("chainChanged",r=>{window.web3gl.networkId=parseInt(r)}))}async function wie(t){try{const e=await mn(t);e&&(window.web3gl.hashMessageResponse=e)}catch(e){window.web3gl.hashMessageResponse=e.message}}async function Aie(t,e){try{const r=await wA(t,e);window.web3gl.ecRecoverAddressResponse=r}catch(r){window.web3gl.ecRecoverAddressResponse=r.message}}async function xie(t){try{const r=await(await Mf.getSigner()).signMessage(t);window.web3gl.signMessageResponse=r}catch(e){window.web3gl.signMessageResponse=e.message}}async function Eie(t,e,r){try{const s=await(await Mf.getSigner()).signTypedData(JSON.parse(t),JSON.parse(e),JSON.parse(r));window.web3gl.signTypedMessageResponse=s}catch(n){window.web3gl.signTypedMessageResponse=n.message}}async function Mie(t,e,r,n){(await(await Mf.getSigner()).sendTransaction({to:t,value:e,gasLimit:r||void 0,gasPrice:n||void 0})).wait().then(o=>{if(!o)throw Error("Receipt not found");window.web3gl.sendTransactionResponse=o.hash}).catch(o=>window.web3gl.sendTransactionResponse=o.message)}async function Sie(t,e,r,n,s){(await(await Mf.getSigner()).sendTransaction({to:t,value:e,gasPrice:r||void 0,gasLimit:n||void 0,data:s||void 0})).wait().then(f=>{if(!f)throw Error("Receipt not found");window.web3gl.sendTransactionResponse=f.hash}).catch(f=>window.web3gl.sendTransactionResponseData=f.message)}async function _ie(t,e,r,n){const i=new Uc(r,JSON.parse(e),Mf)[t];i(...JSON.parse(n)).then(o=>window.web3gl.callContractResponse=o.toString()).catch(o=>window.web3gl.callContractError=o.message)}async function Rie(t,e,r,n,s,i,o){const f=await Mf.getSigner(),h=new Uc(r,JSON.parse(e),f)[t];(await h(...JSON.parse(n),{value:s,gasLimit:i,gasPrice:o})).wait().then(d=>window.web3gl.sendContractResponse=d.hash).catch(d=>window.web3gl.sendContractResponse=d.message)}export{Sf as $,Hie as A,Yi as B,Die as C,Uv as D,h5 as E,Z1 as F,zie as G,Sn as H,pT as I,kie as J,gT as K,$t as L,Mo as M,qn as N,LA as O,V6 as P,DA as Q,yT as R,Tie as S,bT as T,fT as U,ft as V,sp as W,Cv as X,Rl as Y,mL as Z,r4 as _,kn as a,Tl as a$,Hi as a0,$c as a1,Jr as a2,nB as a3,jk as a4,q9 as a5,z9 as a6,j9 as a7,lB as a8,Bf as a9,vB as aA,a1 as aB,$6 as aC,oB as aD,qA as aE,WA as aF,iw as aG,sw as aH,rb as aI,e4 as aJ,VA as aK,rp as aL,V9 as aM,aa as aN,Lk as aO,k9 as aP,FA as aQ,xl as aR,Dk as aS,nd as aT,rw as aU,aB as aV,Pie as aW,C9 as aX,iY as aY,Cl as aZ,pp as a_,zk as aa,oa as ab,ta as ac,$k as ad,M9 as ae,Tv as af,yg as ag,rB as ah,sd as ai,T9 as aj,jA as ak,s1 as al,Uk as am,HA as an,Bie as ao,kv as ap,Fk as aq,Jy as ar,X6 as as,Iie as at,nw as au,GA as av,tB as aw,eu as ax,fB as ay,G9 as az,t3 as b,pX as b$,xz as b0,h1 as b1,Ht as b2,hS as b3,gd as b4,b1 as b5,ri as b6,ti as b7,$n as b8,rn as b9,bt as bA,Ce as bB,oY as bC,OY as bD,zl as bE,Nse as bF,ZY as bG,$r as bH,Xi as bI,w6 as bJ,Tse as bK,kse as bL,Df as bM,Pf as bN,bse as bO,pse as bP,AN as bQ,Np as bR,Sse as bS,dse as bT,tv as bU,YY as bV,VY as bW,bN as bX,Kn as bY,KY as bZ,QQ as b_,it as ba,gs as bb,cn as bc,st as bd,un as be,Je as bf,rt as bg,Pi as bh,rr as bi,rN as bj,ky as bk,uN as bl,lr as bm,ir as bn,et as bo,sr as bp,Xe as bq,ve as br,ei as bs,vr as bt,Cp as bu,yse as bv,a6 as bw,gt as bx,wr as by,Ao as bz,ah as c,tN as c0,S6 as c1,wse as c2,E8 as c3,xse as c4,_se as c5,vse as c6,nX as c7,Xs as c8,zQ as c9,mse as ca,Mse as cb,jY as cc,Ese as cd,Rse as ce,wX as cf,EY as cg,w8 as ch,W0 as ci,hN as cj,Cse as ck,F2 as cl,gse as cm,$A as cn,PR as co,Ase as cp,tu as cq,yi as d,K0 as e,Ew as f,JO as g,Rr as h,Y1 as i,xi as j,fp as k,lp as l,fs as m,mt as n,ue as o,Fie as p,Lie as q,jie as r,Kie as s,Gie as t,Uie as u,sL as v,z7 as w,QO as x,j7 as y,EL as z}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-b28afd98.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-b28afd98.js.meta deleted file mode 100644 index 86ef96dbd..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-b28afd98.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: dee2272f6e5037d45b849f4d00c7ebd2 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-f4328d31.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-f4328d31.js deleted file mode 100644 index 6ea11f43c..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-f4328d31.js +++ /dev/null @@ -1,522 +0,0 @@ -import{U as Lt,n as Wn,V as ke}from"./index-b28afd98.js";import{d as Yn,e as Vn,f as Kn,b as Qn,h as Jn,j as jn,k as Gn,l as Zn,n as Xn,o as er,a as tr,p as nr,q as rr,g as or,t as ar,u as ir,v as lr,w as cr,x as ur,y as sr,i as fr,z as dr,c as _r,A as hr,m as gr,r as pr,B as mr,C as vr,D as wr,s as yr}from"./mobile-122d5339.js";function br(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Mt="https://registry.walletconnect.com";function Cr(){return Mt+"/api/v2/wallets"}function Er(){return Mt+"/api/v2/dapps"}function It(e,t="mobile"){var n;return{name:e.name||"",shortName:e.metadata.shortName||"",color:e.metadata.colors.primary||"",logo:(n=e.image_url.sm)!==null&&n!==void 0?n:"",universalLink:e[t].universal||"",deepLink:e[t].native||""}}function xr(e,t="mobile"){return Object.values(e).filter(n=>!!n[t].universal||!!n[t].native).map(n=>It(n,t))}const kr=Object.freeze(Object.defineProperty({__proto__:null,detectEnv:Yn,detectOS:Vn,formatIOSMobile:Kn,formatMobileRegistry:xr,formatMobileRegistryEntry:It,getClientMeta:Qn,getCrypto:Jn,getCryptoOrThrow:jn,getDappRegistryUrl:Er,getDocument:Gn,getDocumentOrThrow:Zn,getFromWindow:Xn,getFromWindowOrThrow:er,getLocal:tr,getLocalStorage:nr,getLocalStorageOrThrow:rr,getLocation:or,getLocationOrThrow:ar,getMobileLinkRegistry:ir,getMobileRegistryEntry:lr,getNavigator:cr,getNavigatorOrThrow:ur,getWalletRegistryUrl:Cr,isAndroid:sr,isBrowser:fr,isIOS:dr,isMobile:_r,isNode:hr,mobileLinkChoiceKey:gr,removeLocal:pr,safeJsonParse:mr,safeJsonStringify:vr,saveMobileLinkInfo:wr,setLocal:yr},Symbol.toStringTag,{value:"Module"})),Tr=Lt(kr);var le={},Ar=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Dt={},H={},Nr={}.toString,We=Array.isArray||function(e){return Nr.call(e)=="[object Array]"},Sr=We;function Br(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},e.foo()===42}catch{return!1}}E.TYPED_ARRAY_SUPPORT=Br();var lt=E.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function E(e,t,n){return!E.TYPED_ARRAY_SUPPORT&&!(this instanceof E)?new E(e,t,n):typeof e=="number"?Ut(this,e):Ur(this,e,t,n)}E.TYPED_ARRAY_SUPPORT&&(E.prototype.__proto__=Uint8Array.prototype,E.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&E[Symbol.species]===E&&Object.defineProperty(E,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));function Ye(e){if(e>=lt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+lt.toString(16)+" bytes");return e|0}function Rr(e){return e!==e}function K(e,t){var n;return E.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t),n.__proto__=E.prototype):(n=e,n===null&&(n=new E(t)),n.length=t),n}function Ut(e,t){var n=K(e,t<0?0:Ye(t)|0);if(!E.TYPED_ARRAY_SUPPORT)for(var r=0;r55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(i+1===r){(t-=3)>-1&&a.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return a}function Ft(e){if(E.isBuffer(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var t=e.length;return t===0?0:Ot(e).length}function Ir(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Dr(e,t,n,r){return Ir(Ot(t,e.length-n),e,n,r)}function Ur(e,t,n,r){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?Lr(e,t,n,r):typeof t=="string"?Pr(e,t):Mr(e,t)}E.prototype.write=function(t,n,r){n===void 0?(r=this.length,n=0):r===void 0&&typeof n=="string"?(r=this.length,n=0):isFinite(n)&&(n=n|0,isFinite(r)?r=r|0:r=void 0);var o=this.length-n;if((r===void 0||r>o)&&(r=o),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");return Dr(this,t,n,r)};E.prototype.slice=function(t,n){var r=this.length;t=~~t,n=n===void 0?r:~~n,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n=t.length&&(n=t.length),n||(n=0),o>0&&o=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-n=0;--i)t[i+n]=this[i+r];else if(a<1e3||!E.TYPED_ARRAY_SUPPORT)for(i=0;i>>0,r=r===void 0?this.length:r>>>0,t||(t=0);var a;if(typeof t=="number")for(a=n;a40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};L.getSymbolTotalCodewords=function(t){return Or[t]};L.getBCHDigit=function(e){for(var t=0;e!==0;)t++,e>>>=1;return t};L.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Ve=t};L.isKanjiModeEnabled=function(){return typeof Ve<"u"};L.toSJIS=function(t){return Ve(t)};var we={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");var r=n.toLowerCase();switch(r){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,o){if(e.isValid(r))return r;try{return t(r)}catch{return o}}})(we);function $t(){this.buffer=[],this.length=0}$t.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(var n=0;n>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Fr=$t,ct=H;function ce(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=ct.alloc(e*e),this.reservedBit=ct.alloc(e*e)}ce.prototype.set=function(e,t,n,r){var o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)};ce.prototype.get=function(e,t){return this.data[e*this.size+t]};ce.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};ce.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var $r=ce,zt={};(function(e){var t=L.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];for(var o=Math.floor(r/7)+2,a=t(r),i=a===145?26:Math.ceil((a-13)/(2*o-2))*2,l=[a-7],u=1;u=0&&o<=7},e.from=function(o){return e.isValid(o)?parseInt(o,10):void 0},e.getPenaltyN1=function(o){for(var a=o.size,i=0,l=0,u=0,s=null,c=null,f=0;f=5&&(i+=t.N1+(l-5)),s=b,l=1),b=o.get(m,f),b===c?u++:(u>=5&&(i+=t.N1+(u-5)),c=b,u=1)}l>=5&&(i+=t.N1+(l-5)),u>=5&&(i+=t.N1+(u-5))}return i},e.getPenaltyN2=function(o){for(var a=o.size,i=0,l=0;l=10&&(l===1488||l===93)&&i++,u=u<<1&2047|o.get(c,s),c>=10&&(u===1488||u===93)&&i++}return i*t.N3},e.getPenaltyN4=function(o){for(var a=0,i=o.data.length,l=0;l=0;){for(var l=i[0],u=0;u0){var i=st.alloc(this.degree);return o.copy(i,a),i}return o};var qr=Ke,Kt={},q={},Qe={};Qe.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var I={},Qt="[0-9]+",Wr="[A-Z $%*+\\-./:]+",oe="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";oe=oe.replace(/u/g,"\\u");var Yr="(?:(?![A-Z0-9 $%*+\\-./:]|"+oe+`)(?:.|[\r -]))+`;I.KANJI=new RegExp(oe,"g");I.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");I.BYTE=new RegExp(Yr,"g");I.NUMERIC=new RegExp(Qt,"g");I.ALPHANUMERIC=new RegExp(Wr,"g");var Vr=new RegExp("^"+oe+"$"),Kr=new RegExp("^"+Qt+"$"),Qr=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");I.testKanji=function(t){return Vr.test(t)};I.testNumeric=function(t){return Kr.test(t)};I.testAlphanumeric=function(t){return Qr.test(t)};(function(e){var t=Qe,n=I;e.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(a,i){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?a.ccBits[0]:i<27?a.ccBits[1]:a.ccBits[2]},e.getBestModeForData=function(a){return n.testNumeric(a)?e.NUMERIC:n.testAlphanumeric(a)?e.ALPHANUMERIC:n.testKanji(a)?e.KANJI:e.BYTE},e.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},e.isValid=function(a){return a&&a.bit&&a.ccBits};function r(o){if(typeof o!="string")throw new Error("Param is not a string");var a=o.toLowerCase();switch(a){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+o)}}e.from=function(a,i){if(e.isValid(a))return a;try{return r(a)}catch{return i}}})(q);(function(e){var t=L,n=ye,r=we,o=q,a=Qe,i=We,l=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,u=t.getBCHDigit(l);function s(b,h,y){for(var w=1;w<=40;w++)if(h<=e.getCapacity(w,y,b))return w}function c(b,h){return o.getCharCountIndicator(b,h)+4}function f(b,h){var y=0;return b.forEach(function(w){var v=c(w.mode,h);y+=v+w.getBitsLength()}),y}function m(b,h){for(var y=1;y<=40;y++){var w=f(b,y);if(w<=e.getCapacity(y,h,o.MIXED))return y}}e.from=function(h,y){return a.isValid(h)?parseInt(h,10):y},e.getCapacity=function(h,y,w){if(!a.isValid(h))throw new Error("Invalid QR Code version");typeof w>"u"&&(w=o.BYTE);var v=t.getSymbolTotalCodewords(h),g=n.getTotalCodewordsCount(h,y),p=(v-g)*8;if(w===o.MIXED)return p;var _=p-c(w,h);switch(w){case o.NUMERIC:return Math.floor(_/10*3);case o.ALPHANUMERIC:return Math.floor(_/11*2);case o.KANJI:return Math.floor(_/13);case o.BYTE:default:return Math.floor(_/8)}},e.getBestVersionForData=function(h,y){var w,v=r.from(y,r.M);if(i(h)){if(h.length>1)return m(h,v);if(h.length===0)return 1;w=h[0]}else w=h;return s(w.mode,w.getLength(),v)},e.getEncodedBits=function(h){if(!a.isValid(h)||h<7)throw new Error("Invalid QR Code version");for(var y=h<<12;t.getBCHDigit(y)-u>=0;)y^=l<=0;)o^=jt<0&&(r=this.data.substr(n),o=parseInt(r,10),t.put(o,a*3+1))};var Gr=Q,Zr=q,Te=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function J(e){this.mode=Zr.ALPHANUMERIC,this.data=e}J.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};J.prototype.getLength=function(){return this.data.length};J.prototype.getBitsLength=function(){return J.getBitsLength(this.data.length)};J.prototype.write=function(t){var n;for(n=0;n+2<=this.data.length;n+=2){var r=Te.indexOf(this.data[n])*45;r+=Te.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(Te.indexOf(this.data[n]),6)};var Xr=J,eo=H,to=q;function j(e){this.mode=to.BYTE,this.data=eo.from(e)}j.getBitsLength=function(t){return t*8};j.prototype.getLength=function(){return this.data.length};j.prototype.getBitsLength=function(){return j.getBitsLength(this.data.length)};j.prototype.write=function(e){for(var t=0,n=this.data.length;t=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` -Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var ao=G,Ie={},io={get exports(){return Ie},set exports(e){Ie=e}};(function(e){var t={single_source_shortest_paths:function(n,r,o){var a={},i={};i[r]=0;var l=t.PriorityQueue.make();l.push(r,0);for(var u,s,c,f,m,b,h,y,w;!l.empty();){u=l.pop(),s=u.value,f=u.cost,m=n[s]||{};for(c in m)m.hasOwnProperty(c)&&(b=m[c],h=f+b,y=i[c],w=typeof i[c]>"u",(w||y>h)&&(i[c]=h,l.push(c,h),a[c]=s))}if(typeof o<"u"&&typeof i[o]>"u"){var v=["Could not find a path from ",r," to ",o,"."].join("");throw new Error(v)}return a},extract_shortest_path_from_predecessor_list:function(n,r){for(var o=[],a=r;a;)o.push(a),n[a],a=n[a];return o.reverse(),o},find_path:function(n,r,o){var a=t.single_source_shortest_paths(n,r,o);return t.extract_shortest_path_from_predecessor_list(a,o)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,o={},a;n=n||{};for(a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);return o.queue=[],o.sorter=n.sorter||r.default_sorter,o},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var o={value:n,cost:r};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(io);(function(e){var t=q,n=Gr,r=Xr,o=no,a=ao,i=I,l=L,u=Ie;function s(v){return unescape(encodeURIComponent(v)).length}function c(v,g,p){for(var _=[],x;(x=v.exec(p))!==null;)_.push({data:x[0],index:x.index,mode:g,length:x[0].length});return _}function f(v){var g=c(i.NUMERIC,t.NUMERIC,v),p=c(i.ALPHANUMERIC,t.ALPHANUMERIC,v),_,x;l.isKanjiModeEnabled()?(_=c(i.BYTE,t.BYTE,v),x=c(i.KANJI,t.KANJI,v)):(_=c(i.BYTE_KANJI,t.BYTE,v),x=[]);var T=g.concat(p,_,x);return T.sort(function(k,A){return k.index-A.index}).map(function(k){return{data:k.data,mode:k.mode,length:k.length}})}function m(v,g){switch(g){case t.NUMERIC:return n.getBitsLength(v);case t.ALPHANUMERIC:return r.getBitsLength(v);case t.KANJI:return a.getBitsLength(v);case t.BYTE:return o.getBitsLength(v)}}function b(v){return v.reduce(function(g,p){var _=g.length-1>=0?g[g.length-1]:null;return _&&_.mode===p.mode?(g[g.length-1].data+=p.data,g):(g.push(p),g)},[])}function h(v){for(var g=[],p=0;p=0&&l<=6&&(u===0||u===6)||u>=0&&u<=6&&(l===0||l===6)||l>=2&&l<=4&&u>=2&&u<=4?e.set(a+l,i+u,!0,!0):e.set(a+l,i+u,!1,!0))}function mo(e){for(var t=e.size,n=8;n>l&1)===1,e.set(o,a,i,!0),e.set(a,o,i,!0)}function Se(e,t,n){var r=e.size,o=_o.getEncodedBits(t,n),a,i;for(a=0;a<15;a++)i=(o>>a&1)===1,a<6?e.set(a,8,i,!0):a<8?e.set(a+1,8,i,!0):e.set(r-15+a,8,i,!0),a<8?e.set(8,r-a-1,i,!0):a<9?e.set(8,15-a-1+1,i,!0):e.set(8,15-a-1,i,!0);e.set(r-8,8,1,!0)}function yo(e,t){for(var n=e.size,r=-1,o=n-1,a=7,i=0,l=n-1;l>0;l-=2)for(l===6&&l--;;){for(var u=0;u<2;u++)if(!e.isReserved(o,l-u)){var s=!1;i>>a&1)===1),e.set(o,l-u,s),a--,a===-1&&(i++,a=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}function bo(e,t,n){var r=new lo;n.forEach(function(s){r.put(s.mode.bit,4),r.put(s.getLength(),ho.getCharCountIndicator(s.mode,e)),s.write(r)});var o=Ce.getSymbolTotalCodewords(e),a=Ue.getTotalCodewordsCount(e,t),i=(o-a)*8;for(r.getLengthInBits()+4<=i&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);for(var l=(i-r.getLengthInBits())/8,u=0;u=7&&wo(c,t),yo(c,u),isNaN(r)&&(r=De.getBestMask(c,Se.bind(null,c,n))),De.applyMask(r,c),Se(c,n,r),{modules:c,version:t,errorCorrectionLevel:n,maskPattern:r,segments:o}}Dt.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");var r=Ae.M,o,a;return typeof n<"u"&&(r=Ae.from(n.errorCorrectionLevel,Ae.M),o=ge.from(n.version),a=De.from(n.maskPattern),n.toSJISFunc&&Ce.setToSJISFunction(n.toSJISFunc)),Eo(t,o,r,a)};var Zt={},Je={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");var r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(a){return[a,a]}))),r.length===6&&r.push("F","F");var o=parseInt(r.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});var o=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,a=r.width&&r.width>=21?r.width:void 0,i=r.scale||4;return{width:a,scale:a?4:i,margin:o,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,o){return o.width&&o.width>=r+o.margin*2?o.width/(r+o.margin*2):o.scale},e.getImageWidth=function(r,o){var a=e.getScale(r,o);return Math.floor((r+o.margin*2)*a)},e.qrToImageData=function(r,o,a){for(var i=o.modules.size,l=o.modules.data,u=e.getScale(i,a),s=Math.floor((i+a.margin*2)*u),c=a.margin*u,f=[a.color.light,a.color.dark],m=0;m=c&&b>=c&&m"u"&&(!i||!i.getContext)&&(u=i,i=void 0),i||(s=r()),u=t.getOptions(u);var c=t.getImageWidth(a.modules.size,u),f=s.getContext("2d"),m=f.createImageData(c,c);return t.qrToImageData(m.data,a,u),n(f,s,c),f.putImageData(m,0,0),s},e.renderToDataURL=function(a,i,l){var u=l;typeof u>"u"&&(!i||!i.getContext)&&(u=i,i=void 0),u||(u={});var s=e.render(a,i,u),c=u.type||"image/png",f=u.rendererOpts||{};return s.toDataURL(c,f.quality)}})(Zt);var Xt={},xo=Je;function _t(e,t){var n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function Be(e,t,n){var r=e+t;return typeof n<"u"&&(r+=" "+n),r}function ko(e,t,n){for(var r="",o=0,a=!1,i=0,l=0;l0&&u>0&&e[l-1]||(r+=a?Be("M",u+n,.5+s+n):Be("m",o,0),o=0,a=!1),u+1':"",s="',c='viewBox="0 0 '+l+" "+l+'"',f=o.width?'width="'+o.width+'" height="'+o.width+'" ':"",m=''+u+s+` -`;return typeof r=="function"&&r(null,m),m};var To=Ar,Oe=Dt,en=Zt,Ao=Xt;function je(e,t,n,r,o){var a=[].slice.call(arguments,1),i=a.length,l=typeof a[i-1]=="function";if(!l&&!To())throw new Error("Callback required as last argument");if(l){if(i<2)throw new Error("Too few arguments provided");i===2?(o=n,n=t,t=r=void 0):i===3&&(t.getContext&&typeof o>"u"?(o=r,r=void 0):(o=r,r=n,n=t,t=void 0))}else{if(i<1)throw new Error("Too few arguments provided");return i===1?(n=t,t=r=void 0):i===2&&!t.getContext&&(r=n,n=t,t=void 0),new Promise(function(s,c){try{var f=Oe.create(n,r);s(e(f,t,r))}catch(m){c(m)}})}try{var u=Oe.create(n,r);o(null,e(u,t,r))}catch(s){o(s)}}le.create=Oe.create;le.toCanvas=je.bind(null,en.render);le.toDataURL=je.bind(null,en.renderToDataURL);le.toString=je.bind(null,function(e,t,n){return Ao.render(e,n)});var No=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=ht[t.format]||ht.default;window.clipboardData.setData(f,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(l),a.selectNodeContents(l),i.addRange(a);var s=document.execCommand("copy");if(!s)throw new Error("copy command was unsuccessful");u=!0}catch(c){n&&console.error("unable to copy using execCommand: ",c),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=Ro("message"in t?t.message:Bo),window.prompt(r,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(a):i.removeAllRanges()),l&&document.body.removeChild(l),o()}return u}var Lo=Po,C,ne,Ge,tn,gt,Ze,nn,O={},Ee=[],Mo=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;function U(e,t){for(var n in t)e[n]=t[n];return e}function rn(e){var t=e.parentNode;t&&t.removeChild(e)}function F(e,t,n){var r,o=arguments,a={};for(r in t)r!=="key"&&r!=="ref"&&(a[r]=t[r]);if(arguments.length>3)for(n=[n],r=3;r2&&(t.children=Ee.slice.call(arguments,2)),n={},t)r!=="key"&&r!=="ref"&&(n[r]=t[r]);return pe(e.type,n,t.key||e.key,t.ref||e.ref,null)}function fn(e){var t={},n={__c:"__cC"+nn++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,a=this;return this.getChildContext||(o=[],this.getChildContext=function(){return t[n.__c]=a,t},this.shouldComponentUpdate=function(i){a.props.value!==i.value&&o.some(function(l){l.context=i.value,_e(l)})},this.sub=function(i){o.push(i);var l=i.componentWillUnmount;i.componentWillUnmount=function(){o.splice(o.indexOf(i),1),l&&l.call(i)}}),r.children}};return n.Consumer.contextType=n,n.Provider.__=n,n}C={__e:function(e,t){for(var n,r;t=t.__;)if((n=t.__c)&&!n.__)try{if(n.constructor&&n.constructor.getDerivedStateFromError!=null&&(r=!0,n.setState(n.constructor.getDerivedStateFromError(e))),n.componentDidCatch!=null&&(r=!0,n.componentDidCatch(e)),r)return _e(n.__E=n)}catch(o){e=o}throw e}},M.prototype.setState=function(e,t){var n;n=this.__s!==this.state?this.__s:this.__s=U({},this.state),typeof e=="function"&&(e=e(n,this.props)),e&&U(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),_e(this))},M.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_e(this))},M.prototype.render=ue,ne=[],Ge=0,tn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ze=O,nn=0;var Y,R,vt,Z=0,Fe=[],wt=C.__r,yt=C.diffed,bt=C.__c,Ct=C.unmount;function X(e,t){C.__h&&C.__h(R,e,Z||t),Z=0;var n=R.__H||(R.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function et(e){return Z=1,tt(vn,e)}function tt(e,t,n){var r=X(Y++,2);return r.__c||(r.__c=R,r.__=[n?n(t):vn(void 0,t),function(o){var a=e(r.__[0],o);r.__[0]!==a&&(r.__[0]=a,r.__c.setState({}))}]),r.__}function dn(e,t){var n=X(Y++,3);!C.__s&&rt(n.__H,t)&&(n.__=e,n.__H=t,R.__H.__h.push(n))}function nt(e,t){var n=X(Y++,4);!C.__s&&rt(n.__H,t)&&(n.__=e,n.__H=t,R.__h.push(n))}function _n(e){return Z=5,xe(function(){return{current:e}},[])}function hn(e,t,n){Z=6,nt(function(){typeof e=="function"?e(t()):e&&(e.current=t())},n==null?n:n.concat(e))}function xe(e,t){var n=X(Y++,7);return rt(n.__H,t)?(n.__H=t,n.__h=e,n.__=e()):n.__}function gn(e,t){return Z=8,xe(function(){return e},t)}function pn(e){var t=R.context[e.__c],n=X(Y++,9);return n.__c=e,t?(n.__==null&&(n.__=!0,t.sub(R)),t.props.value):e.__}function mn(e,t){C.useDebugValue&&C.useDebugValue(t?t(e):e)}function $o(e){var t=X(Y++,10),n=et();return t.__=e,R.componentDidCatch||(R.componentDidCatch=function(r){t.__&&t.__(r),n[1](r)}),[n[0],function(){n[1](void 0)}]}function zo(){Fe.some(function(e){if(e.__P)try{e.__H.__h.forEach($e),e.__H.__h.forEach(ze),e.__H.__h=[]}catch(t){return e.__H.__h=[],C.__e(t,e.__v),!0}}),Fe=[]}function $e(e){e.t&&e.t()}function ze(e){var t=e.__();typeof t=="function"&&(e.t=t)}function rt(e,t){return!e||t.some(function(n,r){return n!==e[r]})}function vn(e,t){return typeof t=="function"?t(e):t}C.__r=function(e){wt&&wt(e),Y=0,(R=e.__c).__H&&(R.__H.__h.forEach($e),R.__H.__h.forEach(ze),R.__H.__h=[])},C.diffed=function(e){yt&&yt(e);var t=e.__c;if(t){var n=t.__H;n&&n.__h.length&&(Fe.push(t)!==1&&vt===C.requestAnimationFrame||((vt=C.requestAnimationFrame)||function(r){var o,a=function(){clearTimeout(i),cancelAnimationFrame(o),setTimeout(r)},i=setTimeout(a,100);typeof window<"u"&&(o=requestAnimationFrame(a))})(zo))}},C.__c=function(e,t){t.some(function(n){try{n.__h.forEach($e),n.__h=n.__h.filter(function(r){return!r.__||ze(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],C.__e(r,n.__v)}}),bt&&bt(e,t)},C.unmount=function(e){Ct&&Ct(e);var t=e.__c;if(t){var n=t.__H;if(n)try{n.__.forEach(function(r){return r.t&&r.t()})}catch(r){C.__e(r,t.__v)}}};function ot(e,t){for(var n in t)e[n]=t[n];return e}function He(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}var wn=function(e){var t,n;function r(o){var a;return(a=e.call(this,o)||this).isPureReactComponent=!0,a}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.shouldComponentUpdate=function(o,a){return He(this.props,o)||He(this.state,a)},r}(M);function yn(e,t){function n(o){var a=this.props.ref,i=a==o.ref;return!i&&a&&(a.call?a(null):a.current=null),t?!t(this.props,o)||!i:He(this.props,o)}function r(o){return this.shouldComponentUpdate=n,F(e,ot({},o))}return r.prototype.isReactComponent=!0,r.displayName="Memo("+(e.displayName||e.name)+")",r.t=!0,r}var Et=C.__b;function bn(e){function t(n){var r=ot({},n);return delete r.ref,e(r,n.ref)}return t.prototype.isReactComponent=t.t=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}C.__b=function(e){e.type&&e.type.t&&e.ref&&(e.props.ref=e.ref,e.ref=null),Et&&Et(e)};var xt=function(e,t){return e?z(e).reduce(function(n,r,o){return n.concat(t(r,o))},[]):null},Cn={map:xt,forEach:xt,count:function(e){return e?z(e).length:0},only:function(e){if((e=z(e)).length!==1)throw new Error("Children.only() expects only one child.");return e[0]},toArray:z},Ho=C.__e;function En(e){return e&&((e=ot({},e)).__c=null,e.__k=e.__k&&e.__k.map(En)),e}function ve(){this.__u=0,this.o=null,this.__b=null}function xn(e){var t=e.__.__c;return t&&t.u&&t.u(e)}function kn(e){var t,n,r;function o(a){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return F(n,a)}return o.displayName="Lazy",o.t=!0,o}function V(){this.i=null,this.l=null}C.__e=function(e,t,n){if(e.then){for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return r.__c(e,t.__c)}Ho(e,t,n)},(ve.prototype=new M).__c=function(e,t){var n=this;n.o==null&&(n.o=[]),n.o.push(t);var r=xn(n.__v),o=!1,a=function(){o||(o=!0,r?r(i):i())};t.__c=t.componentWillUnmount,t.componentWillUnmount=function(){a(),t.__c&&t.__c()};var i=function(){var l;if(!--n.__u)for(n.__v.__k[0]=n.state.u,n.setState({u:n.__b=null});l=n.o.pop();)l.forceUpdate()};n.__u++||n.setState({u:n.__b=n.__v.__k[0]}),e.then(a,a)},ve.prototype.render=function(e,t){return this.__b&&(this.__v.__k[0]=En(this.__b),this.__b=null),[F(M,null,t.u?null:e.children),t.u&&e.fallback]};var kt=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]8?2.5:2.7)+"vw":"inherit";return d.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:n,onClick:a,rel:"noopener noreferrer",target:"_blank"},d.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+o+"') "+t,backgroundSize:"100%"}}),d.createElement("div",{style:{fontSize:i},className:"walletconnect-connect__button__text"},r))}var fa=5,Pe=12;function da(e){var t=B.isAndroid(),n=d.useState(""),r=n[0],o=n[1],a=d.useState(""),i=a[0],l=a[1],u=d.useState(1),s=u[0],c=u[1],f=i?e.links.filter(function(_){return _.name.toLowerCase().includes(i.toLowerCase())}):e.links,m=e.errorMessage,b=i||f.length>fa,h=Math.ceil(f.length/Pe),y=[(s-1)*Pe+1,s*Pe],w=f.length?f.filter(function(_,x){return x+1>=y[0]&&x+1<=y[1]}):[],v=!t&&h>1,g=void 0;function p(_){o(_.target.value),clearTimeout(g),_.target.value?g=setTimeout(function(){l(_.target.value),c(1)},1e3):(o(""),l(""),c(1))}return d.createElement("div",null,d.createElement("p",{id:Un,className:"walletconnect-qrcode__text"},t?e.text.connect_mobile_wallet:e.text.choose_preferred_wallet),!t&&d.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:r,onChange:p}),d.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(t?"__android":b&&f.length?"__wrap":"")},t?d.createElement(la,{name:e.text.connect,color:ra,href:e.uri,onClick:d.useCallback(function(){B.saveMobileLinkInfo({name:"Unknown",href:e.uri})},[])}):w.length?w.map(function(_){var x=_.color,T=_.name,k=_.shortName,A=_.logo,S=B.formatIOSMobile(e.uri,_),N=d.useCallback(function(){B.saveMobileLinkInfo({name:T,href:S})},[w]);return b?d.createElement(sa,{color:x,href:S,name:k||T,logo:A,onClick:N}):d.createElement(ua,{color:x,href:S,name:T,logo:A,onClick:N})}):d.createElement(d.Fragment,null,d.createElement("p",null,m.length?e.errorMessage:e.links.length&&!f.length?e.text.no_wallets_found:e.text.loading))),v&&d.createElement("div",{className:"walletconnect-modal__footer"},Array(h).fill(0).map(function(_,x){var T=x+1,k=s===T;return d.createElement("a",{style:{margin:"auto 10px",fontWeight:k?"bold":"normal"},onClick:function(){return c(T)}},T)})))}function _a(e){var t=!!e.message.trim();return d.createElement("div",{className:"walletconnect-qrcode__notification"+(t?" notification__show":"")},e.message)}var ha=function(e){try{var t="";return Promise.resolve(Mn.toString(e,{margin:0,type:"svg"})).then(function(n){return typeof n=="string"&&(t=n.replace("0||d.useEffect(function(){var D=function(){try{if(t)return Promise.resolve();i(!0);var P=Xo(function(){var ee=e.qrcodeModalOptions&&e.qrcodeModalOptions.registryUrl?e.qrcodeModalOptions.registryUrl:B.getWalletRegistryUrl();return Promise.resolve(fetch(ee)).then(function($n){return Promise.resolve($n.json()).then(function(zn){var Hn=zn.listings,qn=n?"mobile":"desktop",se=B.getMobileLinkRegistry(B.formatMobileRegistry(Hn,qn),r);i(!1),s(!0),S(se.length?"":e.text.no_supported_wallets),T(se);var it=se.length===1;it&&(w(B.formatIOSMobile(e.uri,se[0])),m(!0)),p(it)})})},function(ee){i(!1),s(!0),S(e.text.something_went_wrong),console.error(ee)});return Promise.resolve(P&&P.then?P.then(function(){}):void 0)}catch(ee){return Promise.reject(ee)}};D()})};N();var W=n?f:!f;return d.createElement("div",{id:Dn,className:"walletconnect-qrcode__base animated fadeIn"},d.createElement("div",{className:"walletconnect-modal__base"},d.createElement(ia,{onClose:e.onClose}),g&&f?d.createElement("div",{className:"walletconnect-modal__single_wallet"},d.createElement("a",{onClick:function(){return B.saveMobileLinkInfo({name:x[0].name,href:y})},href:y,rel:"noopener noreferrer",target:"_blank"},e.text.connect_with+" "+(g?x[0].name:"")+" ›")):t||a||!a&&x.length?d.createElement("div",{className:"walletconnect-modal__mobile__toggle"+(W?" right__selected":"")},d.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),n?d.createElement(d.Fragment,null,d.createElement("a",{onClick:function(){return m(!1),N()}},e.text.mobile),d.createElement("a",{onClick:function(){return m(!0)}},e.text.qrcode)):d.createElement(d.Fragment,null,d.createElement("a",{onClick:function(){return m(!0)}},e.text.qrcode),d.createElement("a",{onClick:function(){return m(!1),N()}},e.text.desktop))):null,d.createElement("div",null,f||!t&&!a&&!x.length?d.createElement(ga,Object.assign({},b)):d.createElement(da,Object.assign({},b,{links:x,errorMessage:A})))))}var ma={choose_preferred_wallet:"Wähle bevorzugte Wallet",connect_mobile_wallet:"Verbinde mit Mobile Wallet",scan_qrcode_with_wallet:"Scanne den QR-code mit einer WalletConnect kompatiblen Wallet",connect:"Verbinden",qrcode:"QR-Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"In die Zwischenablage kopieren",copied_to_clipboard:"In die Zwischenablage kopiert!",connect_with:"Verbinden mit Hilfe von",loading:"Laden...",something_went_wrong:"Etwas ist schief gelaufen",no_supported_wallets:"Es gibt noch keine unterstützten Wallet",no_wallets_found:"keine Wallet gefunden"},va={choose_preferred_wallet:"Choose your preferred wallet",connect_mobile_wallet:"Connect to Mobile Wallet",scan_qrcode_with_wallet:"Scan QR code with a WalletConnect-compatible wallet",connect:"Connect",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copy to clipboard",copied_to_clipboard:"Copied to clipboard!",connect_with:"Connect with",loading:"Loading...",something_went_wrong:"Something went wrong",no_supported_wallets:"There are no supported wallets yet",no_wallets_found:"No wallets found"},wa={choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera móvil",scan_qrcode_with_wallet:"Escanea el código QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"Código QR",mobile:"Móvil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo salió mal",no_supported_wallets:"Todavía no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},ya={choose_preferred_wallet:"Choisissez votre portefeuille préféré",connect_mobile_wallet:"Se connecter au portefeuille mobile",scan_qrcode_with_wallet:"Scannez le QR code avec un portefeuille compatible WalletConnect",connect:"Se connecter",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copier",copied_to_clipboard:"Copié!",connect_with:"Connectez-vous à l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourné",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouvé"},ba={choose_preferred_wallet:"원하는 지갑을 선택하세요",connect_mobile_wallet:"모바일 지갑과 연결",scan_qrcode_with_wallet:"WalletConnect 지원 지갑에서 QR코드를 스캔하세요",connect:"연결",qrcode:"QR 코드",mobile:"모바일",desktop:"데스크탑",copy_to_clipboard:"클립보드에 복사",copied_to_clipboard:"클립보드에 복사되었습니다!",connect_with:"와 연결하다",loading:"로드 중...",something_went_wrong:"문제가 발생했습니다.",no_supported_wallets:"아직 지원되는 지갑이 없습니다",no_wallets_found:"지갑을 찾을 수 없습니다"},Ca={choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se à carteira móvel",scan_qrcode_with_wallet:"Ler o código QR com uma carteira compatível com WalletConnect",connect:"Conectar",qrcode:"Código QR",mobile:"Móvel",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Ligar por meio de",loading:"Carregamento...",something_went_wrong:"Algo correu mal",no_supported_wallets:"Ainda não há carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},Ea={choose_preferred_wallet:"选择你的钱包",connect_mobile_wallet:"连接至移动端钱包",scan_qrcode_with_wallet:"使用兼容 WalletConnect 的钱包扫描二维码",connect:"连接",qrcode:"二维码",mobile:"移动",desktop:"桌面",copy_to_clipboard:"复制到剪贴板",copied_to_clipboard:"复制到剪贴板成功!",connect_with:"通过以下方式连接",loading:"正在加载...",something_went_wrong:"出了问题",no_supported_wallets:"目前还没有支持的钱包",no_wallets_found:"没有找到钱包"},xa={choose_preferred_wallet:"کیف پول مورد نظر خود را انتخاب کنید",connect_mobile_wallet:"به کیف پول موبایل وصل شوید",scan_qrcode_with_wallet:"کد QR را با یک کیف پول سازگار با WalletConnect اسکن کنید",connect:"اتصال",qrcode:"کد QR",mobile:"سیار",desktop:"دسکتاپ",copy_to_clipboard:"کپی به کلیپ بورد",copied_to_clipboard:"در کلیپ بورد کپی شد!",connect_with:"ارتباط با",loading:"...بارگذاری",something_went_wrong:"مشکلی پیش آمد",no_supported_wallets:"هنوز هیچ کیف پول پشتیبانی شده ای وجود ندارد",no_wallets_found:"هیچ کیف پولی پیدا نشد"},Rt={de:ma,en:va,es:wa,fr:ya,ko:ba,pt:Ca,zh:Ea,fa:xa};function ka(){var e=B.getDocumentOrThrow(),t=e.getElementById(Bt);t&&e.head.removeChild(t);var n=e.createElement("style");n.setAttribute("id",Bt),n.innerText=Zo,e.head.appendChild(n)}function Ta(){var e=B.getDocumentOrThrow(),t=e.createElement("div");return t.setAttribute("id",In),e.body.appendChild(t),t}function On(){var e=B.getDocumentOrThrow(),t=e.getElementById(Dn);t&&(t.className=t.className.replace("fadeIn","fadeOut"),setTimeout(function(){var n=e.getElementById(In);n&&e.body.removeChild(n)},na))}function Aa(e){return function(){On(),e&&e()}}function Na(){var e=B.getNavigatorOrThrow().language.split("-")[0]||"en";return Rt[e]||Rt.en}function Sa(e,t,n){ka();var r=Ta();d.render(d.createElement(pa,{text:Na(),uri:e,onClose:Aa(t),qrcodeModalOptions:n}),r)}function Ba(){On()}var Fn=function(){return typeof ke<"u"&&typeof ke.versions<"u"&&typeof ke.versions.node<"u"};function Ra(e,t,n){console.log(e),Fn()?Go(e):Sa(e,t,n)}function Pa(){Fn()||Ba()}var La={open:Ra,close:Pa},Pt=La;const Da=br({__proto__:null,default:Pt},[Pt]);export{Da as i}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-f4328d31.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-f4328d31.js.meta deleted file mode 100644 index 549fef194..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-f4328d31.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 474a54f7bed29a54798a11e44b15d129 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-fff385ce.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-fff385ce.js deleted file mode 100644 index 3e650a4fb..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-fff385ce.js +++ /dev/null @@ -1,42 +0,0 @@ -import{_ as $}from"./tslib.es6-c2094241.js";var ze={},We=9007199254740991,Nn="[object Arguments]",Vn="[object Function]",qn="[object GeneratorFunction]",Yn=/^(?:0|[1-9]\d*)$/;function $e(n,t,e){switch(e.length){case 0:return n.call(t);case 1:return n.call(t,e[0]);case 2:return n.call(t,e[0],e[1]);case 3:return n.call(t,e[0],e[1],e[2])}return n.apply(t,e)}function Gn(n,t){for(var e=-1,r=Array(n);++e1?e[s-1]:void 0,o=s>2?e[2]:void 0;for(i=n.length>3&&typeof i=="function"?(s--,i):void 0,o&&rr(e[0],e[1],o)&&(i=s<3?void 0:i,s=1),t=Object(t);++r-1&&n%1==0&&n-1&&n%1==0&&n<=We}function W0(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}function lr(n){return!!n&&typeof n=="object"}var hr=nr(function(n,t,e,r){er(t,dr(t),n,r)}),xr=Ue(function(n){return n.push(void 0,Jn),$e(hr,void 0,n)});function dr(n){return z0(n)?Qn(n,!0):tr(n)}var pr=xr;Object.defineProperty(ze,"__esModule",{value:!0});var br=pr,yr="Provided shouldReconnect() returned false. Closing permanently.",_r="Provided shouldReconnect() resolved to false. Closing permanently.",wr=function(){function n(t,e,r){if(this.url=t,this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this.ondown=null,this.onreopen=null,this.CONNECTING=n.CONNECTING,this.OPEN=n.OPEN,this.CLOSING=n.CLOSING,this.CLOSED=n.CLOSED,this.hasBeenOpened=!1,this.isClosed=!1,this.messageBuffer=[],this.nextRetryTime=0,this.reconnectCount=0,this.lastKnownExtensions="",this.lastKnownProtocol="",this.listeners={},e==null||typeof e=="string"||Array.isArray(e)?this.protocols=e:r=e,this.options=br({},r,n.DEFAULT_OPTIONS),!this.options.wsConstructor)if(typeof WebSocket<"u")this.options.wsConstructor=WebSocket;else throw new Error("WebSocket not present in global scope and no wsConstructor option was provided.");this.openNewWebSocket()}return Object.defineProperty(n.prototype,"binaryType",{get:function(){return this.binaryTypeInternal||"blob"},set:function(t){this.binaryTypeInternal=t,this.ws&&(this.ws.binaryType=t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bufferedAmount",{get:function(){var t=this.ws?this.ws.bufferedAmount:0,e=!1;return this.messageBuffer.forEach(function(r){var s=mr(r);s!=null?t+=s:e=!0}),e&&this.debugLog("Some buffered data had unknown length. bufferedAmount() return value may be below the correct amount."),t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"extensions",{get:function(){return this.ws?this.ws.extensions:this.lastKnownExtensions},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"protocol",{get:function(){return this.ws?this.ws.protocol:this.lastKnownProtocol},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readyState",{get:function(){return this.isClosed?n.CLOSED:n.OPEN},enumerable:!0,configurable:!0}),n.prototype.close=function(t,e){this.ws&&this.ws.close(t,e),this.shutdown(),this.debugLog("WebSocket permanently closed by client.")},n.prototype.send=function(t){this.ws&&this.ws.readyState===this.OPEN?this.ws.send(t):this.messageBuffer.push(t)},n.prototype.addEventListener=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},n.prototype.dispatchEvent=function(t){return this.dispatchEventOfType(t.type,t)},n.prototype.removeEventListener=function(t,e){this.listeners[t]&&(this.listeners[t]=this.listeners[t].filter(function(r){return r!==e}))},n.prototype.openNewWebSocket=function(){var t=this;if(!this.isClosed){var e=this.options,r=e.connectTimeout,s=e.wsConstructor;this.debugLog("Opening new WebSocket to "+this.url+".");var i=new s(this.url,this.protocols);i.onclose=function(o){return t.handleClose(o)},i.onerror=function(o){return t.handleError(o)},i.onmessage=function(o){return t.handleMessage(o)},i.onopen=function(o){return t.handleOpen(o)},this.connectTimeoutId=setTimeout(function(){t.clearConnectTimeout(),i.close()},r),this.ws=i}},n.prototype.handleOpen=function(t){var e=this;if(!(!this.ws||this.isClosed)){var r=this.options.allClearResetTime;this.debugLog("WebSocket opened."),this.binaryTypeInternal!=null?this.ws.binaryType=this.binaryTypeInternal:this.binaryTypeInternal=this.ws.binaryType,this.clearConnectTimeout(),this.hasBeenOpened?this.dispatchEventOfType("reopen",t):(this.dispatchEventOfType("open",t),this.hasBeenOpened=!0),this.messageBuffer.forEach(function(s){return e.send(s)}),this.messageBuffer=[],this.allClearTimeoutId=setTimeout(function(){e.clearAllClearTimeout(),e.nextRetryTime=0,e.reconnectCount=0;var s=r/1e3|0;e.debugLog("WebSocket remained open for "+s+" seconds. Resetting retry time and count.")},r)}},n.prototype.handleMessage=function(t){this.isClosed||this.dispatchEventOfType("message",t)},n.prototype.handleClose=function(t){var e=this;if(!this.isClosed){var r=this.options,s=r.maxReconnectAttempts,i=r.shouldReconnect;if(this.clearConnectTimeout(),this.clearAllClearTimeout(),this.ws&&(this.lastKnownExtensions=this.ws.extensions,this.lastKnownProtocol=this.ws.protocol,this.ws=void 0),this.dispatchEventOfType("down",t),this.reconnectCount>=s){this.stopReconnecting(t,this.getTooManyFailedReconnectsMessage());return}var o=i(t);typeof o=="boolean"?this.handleWillReconnect(o,t,yr):o.then(function(c){e.isClosed||e.handleWillReconnect(c,t,_r)})}},n.prototype.handleError=function(t){this.dispatchEventOfType("error",t),this.debugLog("WebSocket encountered an error.")},n.prototype.handleWillReconnect=function(t,e,r){t?this.reconnect():this.stopReconnecting(e,r)},n.prototype.reconnect=function(){var t=this,e=this.options,r=e.minReconnectDelay,s=e.maxReconnectDelay,i=e.reconnectBackoffFactor;this.reconnectCount++;var o=this.nextRetryTime;this.nextRetryTime=Math.max(r,Math.min(this.nextRetryTime*i,s)),setTimeout(function(){return t.openNewWebSocket()},o);var c=o/1e3|0;this.debugLog("WebSocket was closed. Re-opening in "+c+" seconds.")},n.prototype.stopReconnecting=function(t,e){this.debugLog(e),this.shutdown(),this.dispatchEventOfType("close",t)},n.prototype.shutdown=function(){this.isClosed=!0,this.clearAllTimeouts(),this.messageBuffer=[]},n.prototype.clearAllTimeouts=function(){this.clearConnectTimeout(),this.clearAllClearTimeout()},n.prototype.clearConnectTimeout=function(){this.connectTimeoutId!=null&&(clearTimeout(this.connectTimeoutId),this.connectTimeoutId=void 0)},n.prototype.clearAllClearTimeout=function(){this.allClearTimeoutId!=null&&(clearTimeout(this.allClearTimeoutId),this.allClearTimeoutId=void 0)},n.prototype.dispatchEventOfType=function(t,e){var r=this;switch(t){case"close":this.onclose&&this.onclose(e);break;case"error":this.onerror&&this.onerror(e);break;case"message":this.onmessage&&this.onmessage(e);break;case"open":this.onopen&&this.onopen(e);break;case"down":this.ondown&&this.ondown(e);break;case"reopen":this.onreopen&&this.onreopen(e);break}return t in this.listeners&&this.listeners[t].slice().forEach(function(s){return r.callListener(s,e)}),!e||!e.defaultPrevented},n.prototype.callListener=function(t,e){typeof t=="function"?t.call(this,e):t.handleEvent.call(this,e)},n.prototype.debugLog=function(t){this.options.debug&&console.log(t)},n.prototype.getTooManyFailedReconnectsMessage=function(){var t=this.options.maxReconnectAttempts;return"Failed to reconnect after "+t+" "+vr("attempt",t)+". Closing permanently."},n.DEFAULT_OPTIONS={allClearResetTime:5e3,connectTimeout:5e3,debug:!1,minReconnectDelay:1e3,maxReconnectDelay:3e4,maxReconnectAttempts:Number.POSITIVE_INFINITY,reconnectBackoffFactor:1.5,shouldReconnect:function(){return!0},wsConstructor:void 0},n.CONNECTING=0,n.OPEN=1,n.CLOSING=2,n.CLOSED=3,n}(),gr=ze.default=wr;function mr(n){return typeof n=="string"?2*n.length:n instanceof ArrayBuffer?n.byteLength:n instanceof Blob?n.size:void 0}function vr(n,t){return t===1?n:n+"s"}class C{static create(...t){return new this(...t)}mixIn(t){return Object.assign(this,t)}clone(){const t=new this.constructor;return Object.assign(t,this),t}}class A extends C{constructor(t=[],e=t.length*4){super();let r=t;if(r instanceof ArrayBuffer&&(r=new Uint8Array(r)),(r instanceof Int8Array||r instanceof Uint8ClampedArray||r instanceof Int16Array||r instanceof Uint16Array||r instanceof Int32Array||r instanceof Uint32Array||r instanceof Float32Array||r instanceof Float64Array)&&(r=new Uint8Array(r.buffer,r.byteOffset,r.byteLength)),r instanceof Uint8Array){const s=r.byteLength,i=[];for(let o=0;o>>2]|=r[o]<<24-o%4*8;this.words=i,this.sigBytes=s}else this.words=t,this.sigBytes=e}static random(t){const e=[],r=s=>{let i=s,o=987654321;const c=4294967295;return()=>{o=36969*(o&65535)+(o>>16)&c,i=18e3*(i&65535)+(i>>16)&c;let a=(o<<16)+i&c;return a/=4294967296,a+=.5,a*(Math.random()>.5?1:-1)}};for(let s=0,i;s>>2]>>>24-o%4*8&255;e[s+o>>>2]|=c<<24-(s+o)%4*8}else for(let o=0;o>>2]=r[o>>>2];return this.sigBytes+=i,this}clamp(){const{words:t,sigBytes:e}=this;t[e>>>2]&=4294967295<<32-e%4*8,t.length=Math.ceil(e/4)}clone(){const t=super.clone.call(this);return t.words=this.words.slice(0),t}}const f0={stringify(n){const{words:t,sigBytes:e}=n,r=[];for(let s=0;s>>2]>>>24-s%4*8&255;r.push((i>>>4).toString(16)),r.push((i&15).toString(16))}return r.join("")},parse(n){const t=n.length,e=[];for(let r=0;r>>3]|=parseInt(n.substr(r,2),16)<<24-r%8*4;return new A(e,t/2)}},T0={stringify(n){const{words:t,sigBytes:e}=n,r=[];for(let s=0;s>>2]>>>24-s%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse(n){const t=n.length,e=[];for(let r=0;r>>2]|=(n.charCodeAt(r)&255)<<24-r%4*8;return new A(e,t)}},$0={stringify(n){try{return decodeURIComponent(escape(T0.stringify(n)))}catch{throw new Error("Malformed UTF-8 data")}},parse(n){return T0.parse(unescape(encodeURIComponent(n)))}};class j0 extends C{constructor(){super(),this._minBufferSize=0}reset(){this._data=new A,this._nDataBytes=0}_append(t){let e=t;typeof e=="string"&&(e=$0.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(t){let e;const{_data:r,blockSize:s}=this,i=r.words,o=r.sigBytes,c=s*4;let a=o/c;t?a=Math.ceil(a):a=Math.max((a|0)-this._minBufferSize,0);const u=a*s,h=Math.min(u*4,o);if(u){for(let l=0;lnew t(r).finalize(e)}static _createHmacHelper(t){return(e,r)=>new U0(t,r).finalize(e)}reset(){super.reset.call(this),this._doReset()}update(t){return this._append(t),this._process(),this}finalize(t){return t&&this._append(t),this._doFinalize()}}class U0 extends C{constructor(t,e){super();const r=new t;this._hasher=r;let s=e;typeof s=="string"&&(s=$0.parse(s));const i=r.blockSize,o=i*4;s.sigBytes>o&&(s=r.finalize(e)),s.clamp();const c=s.clone();this._oKey=c;const a=s.clone();this._iKey=a;const u=c.words,h=a.words;for(let l=0;l{const r=[];let s=0;for(let i=0;i>>6-i%4*2,a=o|c;r[s>>>2]|=a<<24-s%4*8,s+=1}return A.create(r,s)},A0={stringify(n){const{words:t,sigBytes:e}=n,r=this._map;n.clamp();const s=[];for(let o=0;o>>2]>>>24-o%4*8&255,a=t[o+1>>>2]>>>24-(o+1)%4*8&255,u=t[o+2>>>2]>>>24-(o+2)%4*8&255,h=c<<16|a<<8|u;for(let l=0;l<4&&o+l*.75>>6*(3-l)&63))}const i=r.charAt(64);if(i)for(;s.length%4;)s.push(i);return s.join("")},parse(n){let t=n.length;const e=this._map;let r=this._reverseMap;if(!r){this._reverseMap=[],r=this._reverseMap;for(let i=0;i{const c=n+(t&e|~t&r)+s+o;return(c<>>32-i)+t},H=(n,t,e,r,s,i,o)=>{const c=n+(t&r|e&~r)+s+o;return(c<>>32-i)+t},M=(n,t,e,r,s,i,o)=>{const c=n+(t^e^r)+s+o;return(c<>>32-i)+t},D=(n,t,e,r,s,i,o)=>{const c=n+(e^(t|~r))+s+o;return(c<>>32-i)+t};class b0 extends P{_doReset(){this._hash=new A([1732584193,4023233417,2562383102,271733878])}_doProcessBlock(t,e){const r=t;for(let at=0;at<16;at+=1){const Pt=e+at,nt=t[Pt];r[Pt]=(nt<<8|nt>>>24)&16711935|(nt<<24|nt>>>8)&4278255360}const s=this._hash.words,i=r[e+0],o=r[e+1],c=r[e+2],a=r[e+3],u=r[e+4],h=r[e+5],l=r[e+6],y=r[e+7],v=r[e+8],m=r[e+9],g=r[e+10],S=r[e+11],_=r[e+12],B=r[e+13],E=r[e+14],I=r[e+15];let f=s[0],x=s[1],p=s[2],b=s[3];f=R(f,x,p,b,i,7,w[0]),b=R(b,f,x,p,o,12,w[1]),p=R(p,b,f,x,c,17,w[2]),x=R(x,p,b,f,a,22,w[3]),f=R(f,x,p,b,u,7,w[4]),b=R(b,f,x,p,h,12,w[5]),p=R(p,b,f,x,l,17,w[6]),x=R(x,p,b,f,y,22,w[7]),f=R(f,x,p,b,v,7,w[8]),b=R(b,f,x,p,m,12,w[9]),p=R(p,b,f,x,g,17,w[10]),x=R(x,p,b,f,S,22,w[11]),f=R(f,x,p,b,_,7,w[12]),b=R(b,f,x,p,B,12,w[13]),p=R(p,b,f,x,E,17,w[14]),x=R(x,p,b,f,I,22,w[15]),f=H(f,x,p,b,o,5,w[16]),b=H(b,f,x,p,l,9,w[17]),p=H(p,b,f,x,S,14,w[18]),x=H(x,p,b,f,i,20,w[19]),f=H(f,x,p,b,h,5,w[20]),b=H(b,f,x,p,g,9,w[21]),p=H(p,b,f,x,I,14,w[22]),x=H(x,p,b,f,u,20,w[23]),f=H(f,x,p,b,m,5,w[24]),b=H(b,f,x,p,E,9,w[25]),p=H(p,b,f,x,a,14,w[26]),x=H(x,p,b,f,v,20,w[27]),f=H(f,x,p,b,B,5,w[28]),b=H(b,f,x,p,c,9,w[29]),p=H(p,b,f,x,y,14,w[30]),x=H(x,p,b,f,_,20,w[31]),f=M(f,x,p,b,h,4,w[32]),b=M(b,f,x,p,v,11,w[33]),p=M(p,b,f,x,S,16,w[34]),x=M(x,p,b,f,E,23,w[35]),f=M(f,x,p,b,o,4,w[36]),b=M(b,f,x,p,u,11,w[37]),p=M(p,b,f,x,y,16,w[38]),x=M(x,p,b,f,g,23,w[39]),f=M(f,x,p,b,B,4,w[40]),b=M(b,f,x,p,i,11,w[41]),p=M(p,b,f,x,a,16,w[42]),x=M(x,p,b,f,l,23,w[43]),f=M(f,x,p,b,m,4,w[44]),b=M(b,f,x,p,_,11,w[45]),p=M(p,b,f,x,I,16,w[46]),x=M(x,p,b,f,c,23,w[47]),f=D(f,x,p,b,i,6,w[48]),b=D(b,f,x,p,y,10,w[49]),p=D(p,b,f,x,E,15,w[50]),x=D(x,p,b,f,h,21,w[51]),f=D(f,x,p,b,_,6,w[52]),b=D(b,f,x,p,a,10,w[53]),p=D(p,b,f,x,g,15,w[54]),x=D(x,p,b,f,o,21,w[55]),f=D(f,x,p,b,v,6,w[56]),b=D(b,f,x,p,I,10,w[57]),p=D(p,b,f,x,l,15,w[58]),x=D(x,p,b,f,B,21,w[59]),f=D(f,x,p,b,u,6,w[60]),b=D(b,f,x,p,S,10,w[61]),p=D(p,b,f,x,c,15,w[62]),x=D(x,p,b,f,m,21,w[63]),s[0]=s[0]+f|0,s[1]=s[1]+x|0,s[2]=s[2]+p|0,s[3]=s[3]+b|0}_doFinalize(){const t=this._data,e=t.words,r=this._nDataBytes*8,s=t.sigBytes*8;e[s>>>5]|=128<<24-s%32;const i=Math.floor(r/4294967296),o=r;e[(s+64>>>9<<4)+15]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,e[(s+64>>>9<<4)+14]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,t.sigBytes=(e.length+1)*4,this._process();const c=this._hash,a=c.words;for(let u=0;u<4;u+=1){const h=a[u];a[u]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360}return c}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const kr=P._createHelper(b0),Tr=P._createHmacHelper(b0);class N0 extends C{constructor(t){super(),this.cfg=Object.assign(new C,{keySize:128/32,hasher:b0,iterations:1},t)}compute(t,e){let r;const{cfg:s}=this,i=s.hasher.create(),o=A.create(),c=o.words,{keySize:a,iterations:u}=s;for(;c.lengthN0.create(e).compute(n,t);class bt extends j0{constructor(t,e,r){super(),this.cfg=Object.assign(new C,r),this._xformMode=t,this._key=e,this.reset()}static createEncryptor(t,e){return this.create(this._ENC_XFORM_MODE,t,e)}static createDecryptor(t,e){return this.create(this._DEC_XFORM_MODE,t,e)}static _createHelper(t){const e=r=>typeof r=="string"?V0:pt;return{encrypt(r,s,i){return e(s).encrypt(t,r,s,i)},decrypt(r,s,i){return e(s).decrypt(t,r,s,i)}}}reset(){super.reset.call(this),this._doReset()}process(t){return this._append(t),this._process()}finalize(t){return t&&this._append(t),this._doFinalize()}}bt._ENC_XFORM_MODE=1;bt._DEC_XFORM_MODE=2;bt.keySize=128/32;bt.ivSize=128/32;class ht extends bt{constructor(...t){super(...t),this.blockSize=1}_doFinalize(){return this._process(!0)}}class yt extends C{constructor(t,e){super(),this._cipher=t,this._iv=e}static createEncryptor(t,e){return this.Encryptor.create(t,e)}static createDecryptor(t,e){return this.Decryptor.create(t,e)}}function Ne(n,t,e){const r=n;let s;const i=this._iv;i?(s=i,this._iv=void 0):s=this._prevBlock;for(let o=0;o>>2]&255;t.sigBytes-=e}};class _t extends bt{constructor(t,e,r){super(t,e,Object.assign({mode:Bt,padding:Ve},r)),this.blockSize=128/32}reset(){let t;super.reset.call(this);const{cfg:e}=this,{iv:r,mode:s}=e;this._xformMode===this.constructor._ENC_XFORM_MODE?t=s.createEncryptor:(t=s.createDecryptor,this._minBufferSize=1),this._mode=t.call(s,this,r&&r.words),this._mode.__creator=t}_doProcessBlock(t,e){this._mode.processBlock(t,e)}_doFinalize(){let t;const{padding:e}=this.cfg;return this._xformMode===this.constructor._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t}}class Jt extends C{constructor(t){super(),this.mixIn(t)}toString(t){return(t||this.formatter).stringify(this)}}const qe={stringify(n){let t;const{ciphertext:e,salt:r}=n;return r?t=A.create([1398893684,1701076831]).concat(r).concat(e):t=e,t.toString(A0)},parse(n){let t;const e=A0.parse(n),r=e.words;return r[0]===1398893684&&r[1]===1701076831&&(t=A.create(r.slice(2,4)),r.splice(0,4),e.sigBytes-=16),Jt.create({ciphertext:e,salt:t})}};class pt extends C{static encrypt(t,e,r,s){const i=Object.assign(new C,this.cfg,s),o=t.createEncryptor(r,i),c=o.finalize(e),a=o.cfg;return Jt.create({ciphertext:c,key:r,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:o.blockSize,formatter:i.format})}static decrypt(t,e,r,s){let i=e;const o=Object.assign(new C,this.cfg,s);return i=this._parse(i,o.format),t.createDecryptor(r,o).finalize(i.ciphertext)}static _parse(t,e){return typeof t=="string"?e.parse(t,this):t}}pt.cfg=Object.assign(new C,{format:qe});const Ye={execute(n,t,e,r){let s=r;s||(s=A.random(64/8));const i=N0.create({keySize:t+e}).compute(n,s),o=A.create(i.words.slice(t),e*4);return i.sigBytes=t*4,Jt.create({key:i,iv:o,salt:s})}};class V0 extends pt{static encrypt(t,e,r,s){const i=Object.assign(new C,this.cfg,s),o=i.kdf.execute(r,t.keySize,t.ivSize);i.iv=o.iv;const c=pt.encrypt.call(this,t,e,o.key,i);return c.mixIn(o),c}static decrypt(t,e,r,s){let i=e;const o=Object.assign(new C,this.cfg,s);i=this._parse(i,o.format);const c=o.kdf.execute(r,t.keySize,t.ivSize,i.salt);return o.iv=c.iv,pt.decrypt.call(this,t,i,c.key,o)}}V0.cfg=Object.assign(pt.cfg,{kdf:Ye});const be=n=>n<<8&4278255360|n>>>8&16711935,Ge={stringify(n){const{words:t,sigBytes:e}=n,r=[];for(let s=0;s>>2]>>>16-s%4*8&65535;r.push(String.fromCharCode(i))}return r.join("")},parse(n){const t=n.length,e=[];for(let r=0;r>>1]|=n.charCodeAt(r)<<16-r%2*16;return A.create(e,t*2)}},Br=Ge,Ir={stringify(n){const{words:t,sigBytes:e}=n,r=[];for(let s=0;s>>2]>>>16-s%4*8&65535);r.push(String.fromCharCode(i))}return r.join("")},parse(n){const t=n.length,e=[];for(let r=0;r>>1]|=be(n.charCodeAt(r)<<16-r%2*16);return A.create(e,t*2)}},xt=[];class y0 extends P{_doReset(){this._hash=new A([1732584193,4023233417,2562383102,271733878,3285377520])}_doProcessBlock(t,e){const r=this._hash.words;let s=r[0],i=r[1],o=r[2],c=r[3],a=r[4];for(let u=0;u<80;u+=1){if(u<16)xt[u]=t[e+u]|0;else{const l=xt[u-3]^xt[u-8]^xt[u-14]^xt[u-16];xt[u]=l<<1|l>>>31}let h=(s<<5|s>>>27)+a+xt[u];u<20?h+=(i&o|~i&c)+1518500249:u<40?h+=(i^o^c)+1859775393:u<60?h+=(i&o|i&c|o&c)-1894007588:h+=(i^o^c)-899497514,a=c,c=o,o=i<<30|i>>>2,i=s,s=h}r[0]=r[0]+s|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+c|0,r[4]=r[4]+a|0}_doFinalize(){const t=this._data,e=t.words,r=this._nDataBytes*8,s=t.sigBytes*8;return e[s>>>5]|=128<<24-s%32,e[(s+64>>>9<<4)+14]=Math.floor(r/4294967296),e[(s+64>>>9<<4)+15]=r,t.sigBytes=e.length*4,this._process(),this._hash}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const Cr=P._createHelper(y0),Pr=P._createHmacHelper(y0),Xe=[],Qe=[],Rr=n=>{const t=Math.sqrt(n);for(let e=2;e<=t;e+=1)if(!(n%e))return!1;return!0},ye=n=>(n-(n|0))*4294967296|0;let s0=2,Wt=0;for(;Wt<64;)Rr(s0)&&(Wt<8&&(Xe[Wt]=ye(s0**(1/2))),Qe[Wt]=ye(s0**(1/3)),Wt+=1),s0+=1;const dt=[];class It extends P{_doReset(){this._hash=new A(Xe.slice(0))}_doProcessBlock(t,e){const r=this._hash.words;let s=r[0],i=r[1],o=r[2],c=r[3],a=r[4],u=r[5],h=r[6],l=r[7];for(let y=0;y<64;y+=1){if(y<16)dt[y]=t[e+y]|0;else{const E=dt[y-15],I=(E<<25|E>>>7)^(E<<14|E>>>18)^E>>>3,f=dt[y-2],x=(f<<15|f>>>17)^(f<<13|f>>>19)^f>>>10;dt[y]=I+dt[y-7]+x+dt[y-16]}const v=a&u^~a&h,m=s&i^s&o^i&o,g=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),S=(a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25),_=l+S+v+Qe[y]+dt[y],B=g+m;l=h,h=u,u=a,a=c+_|0,c=o,o=i,i=s,s=_+B|0}r[0]=r[0]+s|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+c|0,r[4]=r[4]+a|0,r[5]=r[5]+u|0,r[6]=r[6]+h|0,r[7]=r[7]+l|0}_doFinalize(){const t=this._data,e=t.words,r=this._nDataBytes*8,s=t.sigBytes*8;return e[s>>>5]|=128<<24-s%32,e[(s+64>>>9<<4)+14]=Math.floor(r/4294967296),e[(s+64>>>9<<4)+15]=r,t.sigBytes=e.length*4,this._process(),this._hash}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const Hr=P._createHelper(It),Mr=P._createHmacHelper(It);class q0 extends It{_doReset(){this._hash=new A([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])}_doFinalize(){const t=super._doFinalize.call(this);return t.sigBytes-=4,t}}const Dr=It._createHelper(q0),Or=It._createHmacHelper(q0),Lr=[new d(1116352408,3609767458),new d(1899447441,602891725),new d(3049323471,3964484399),new d(3921009573,2173295548),new d(961987163,4081628472),new d(1508970993,3053834265),new d(2453635748,2937671579),new d(2870763221,3664609560),new d(3624381080,2734883394),new d(310598401,1164996542),new d(607225278,1323610764),new d(1426881987,3590304994),new d(1925078388,4068182383),new d(2162078206,991336113),new d(2614888103,633803317),new d(3248222580,3479774868),new d(3835390401,2666613458),new d(4022224774,944711139),new d(264347078,2341262773),new d(604807628,2007800933),new d(770255983,1495990901),new d(1249150122,1856431235),new d(1555081692,3175218132),new d(1996064986,2198950837),new d(2554220882,3999719339),new d(2821834349,766784016),new d(2952996808,2566594879),new d(3210313671,3203337956),new d(3336571891,1034457026),new d(3584528711,2466948901),new d(113926993,3758326383),new d(338241895,168717936),new d(666307205,1188179964),new d(773529912,1546045734),new d(1294757372,1522805485),new d(1396182291,2643833823),new d(1695183700,2343527390),new d(1986661051,1014477480),new d(2177026350,1206759142),new d(2456956037,344077627),new d(2730485921,1290863460),new d(2820302411,3158454273),new d(3259730800,3505952657),new d(3345764771,106217008),new d(3516065817,3606008344),new d(3600352804,1432725776),new d(4094571909,1467031594),new d(275423344,851169720),new d(430227734,3100823752),new d(506948616,1363258195),new d(659060556,3750685593),new d(883997877,3785050280),new d(958139571,3318307427),new d(1322822218,3812723403),new d(1537002063,2003034995),new d(1747873779,3602036899),new d(1955562222,1575990012),new d(2024104815,1125592928),new d(2227730452,2716904306),new d(2361852424,442776044),new d(2428436474,593698344),new d(2756734187,3733110249),new d(3204031479,2999351573),new d(3329325298,3815920427),new d(3391569614,3928383900),new d(3515267271,566280711),new d(3940187606,3454069534),new d(4118630271,4000239992),new d(116418474,1914138554),new d(174292421,2731055270),new d(289380356,3203993006),new d(460393269,320620315),new d(685471733,587496836),new d(852142971,1086792851),new d(1017036298,365543100),new d(1126000580,2618297676),new d(1288033470,3409855158),new d(1501505948,4234509866),new d(1607167915,987167468),new d(1816402316,1246189591)],kt=[];for(let n=0;n<80;n+=1)kt[n]=new d;class Ct extends P{constructor(){super(),this.blockSize=1024/32}_doReset(){this._hash=new K0([new d(1779033703,4089235720),new d(3144134277,2227873595),new d(1013904242,4271175723),new d(2773480762,1595750129),new d(1359893119,2917565137),new d(2600822924,725511199),new d(528734635,4215389547),new d(1541459225,327033209)])}_doProcessBlock(t,e){const r=this._hash.words,s=r[0],i=r[1],o=r[2],c=r[3],a=r[4],u=r[5],h=r[6],l=r[7],y=s.high;let v=s.low;const m=i.high;let g=i.low;const S=o.high;let _=o.low;const B=c.high;let E=c.low;const I=a.high;let f=a.low;const x=u.high;let p=u.low;const b=h.high;let at=h.low;const Pt=l.high;let nt=l.low,U=y,F=v,Rt=m,wt=g,Ht=S,gt=_,m0=B,Mt=E,K=I,z=f,n0=x,Dt=p,r0=b,Ot=at,v0=Pt,Lt=nt;for(let N=0;N<80;N+=1){let G,ut;const mt=kt[N];if(N<16)mt.high=t[e+N*2]|0,ut=mt.high,mt.low=t[e+N*2+1]|0,G=mt.low;else{const ae=kt[N-15],vt=ae.high,Ft=ae.low,Wn=(vt>>>1|Ft<<31)^(vt>>>8|Ft<<24)^vt>>>7,ue=(Ft>>>1|vt<<31)^(Ft>>>8|vt<<24)^(Ft>>>7|vt<<25),fe=kt[N-2],St=fe.high,zt=fe.low,$n=(St>>>19|zt<<13)^(St<<3|zt>>>29)^St>>>6,le=(zt>>>19|St<<13)^(zt<<3|St>>>29)^(zt>>>6|St<<26),he=kt[N-7],jn=he.high,Un=he.low,xe=kt[N-16],Kn=xe.high,de=xe.low;G=ue+Un,ut=Wn+jn+(G>>>0>>0?1:0),G+=le,ut=ut+$n+(G>>>0>>0?1:0),G+=de,ut=ut+Kn+(G>>>0>>0?1:0),mt.high=ut,mt.low=G}const Rn=K&n0^~K&r0,re=z&Dt^~z&Ot,Hn=U&Rt^U&Ht^Rt&Ht,Mn=F&wt^F>^wt>,Dn=(U>>>28|F<<4)^(U<<30|F>>>2)^(U<<25|F>>>7),se=(F>>>28|U<<4)^(F<<30|U>>>2)^(F<<25|U>>>7),On=(K>>>14|z<<18)^(K>>>18|z<<14)^(K<<23|z>>>9),Ln=(z>>>14|K<<18)^(z>>>18|K<<14)^(z<<23|K>>>9),ie=Lr[N],Fn=ie.high,oe=ie.low;let X=Lt+Ln,ft=v0+On+(X>>>0>>0?1:0);X+=re,ft=ft+Rn+(X>>>0>>0?1:0),X+=oe,ft=ft+Fn+(X>>>0>>0?1:0),X+=G,ft=ft+ut+(X>>>0>>0?1:0);const ce=se+Mn,zn=Dn+Hn+(ce>>>0>>0?1:0);v0=r0,Lt=Ot,r0=n0,Ot=Dt,n0=K,Dt=z,z=Mt+X|0,K=m0+ft+(z>>>0>>0?1:0)|0,m0=Ht,Mt=gt,Ht=Rt,gt=wt,Rt=U,wt=F,F=X+ce|0,U=ft+zn+(F>>>0>>0?1:0)|0}s.low=v+F,v=s.low,s.high=y+U+(v>>>0>>0?1:0),i.low=g+wt,g=i.low,i.high=m+Rt+(g>>>0>>0?1:0),o.low=_+gt,_=o.low,o.high=S+Ht+(_>>>0>>0?1:0),c.low=E+Mt,E=c.low,c.high=B+m0+(E>>>0>>0?1:0),a.low=f+z,f=a.low,a.high=I+K+(f>>>0>>0?1:0),u.low=p+Dt,p=u.low,u.high=x+n0+(p>>>0
>>0?1:0),h.low=at+Ot,at=h.low,h.high=b+r0+(at>>>0>>0?1:0),l.low=nt+Lt,nt=l.low,l.high=Pt+v0+(nt>>>0>>0?1:0)}_doFinalize(){const t=this._data,e=t.words,r=this._nDataBytes*8,s=t.sigBytes*8;return e[s>>>5]|=128<<24-s%32,e[(s+128>>>10<<5)+30]=Math.floor(r/4294967296),e[(s+128>>>10<<5)+31]=r,t.sigBytes=e.length*4,this._process(),this._hash.toX32()}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const Fr=P._createHelper(Ct),zr=P._createHmacHelper(Ct);class Y0 extends Ct{_doReset(){this._hash=new K0([new d(3418070365,3238371032),new d(1654270250,914150663),new d(2438529370,812702999),new d(355462360,4144912697),new d(1731405415,4290775857),new d(2394180231,1750603025),new d(3675008525,1694076839),new d(1203062813,3204075428)])}_doFinalize(){const t=super._doFinalize.call(this);return t.sigBytes-=16,t}}const Wr=Ct._createHelper(Y0),$r=Ct._createHmacHelper(Y0),Je=[],Ze=[],tn=[];let S0=1,i0=0;for(let n=0;n<24;n+=1){Je[S0+5*i0]=(n+1)*(n+2)/2%64;const t=i0%5,e=(2*S0+3*i0)%5;S0=t,i0=e}for(let n=0;n<5;n+=1)for(let t=0;t<5;t+=1)Ze[n+5*t]=t+(2*n+3*t)%5*5;let $t=1;for(let n=0;n<24;n+=1){let t=0,e=0;for(let r=0;r<7;r+=1){if($t&1){const s=(1<>>24)&16711935|(o<<24|o>>>8)&4278255360,c=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360;const a=r[i];a.high^=c,a.low^=o}for(let i=0;i<24;i+=1){for(let h=0;h<5;h+=1){let l=0,y=0;for(let m=0;m<5;m+=1){const g=r[h+5*m];l^=g.high,y^=g.low}const v=ot[h];v.high=l,v.low=y}for(let h=0;h<5;h+=1){const l=ot[(h+4)%5],y=ot[(h+1)%5],v=y.high,m=y.low,g=l.high^(v<<1|m>>>31),S=l.low^(m<<1|v>>>31);for(let _=0;_<5;_+=1){const B=r[h+5*_];B.high^=g,B.low^=S}}for(let h=1;h<25;h+=1){let l,y;const v=r[h],m=v.high,g=v.low,S=Je[h];S<32?(l=m<>>32-S,y=g<>>32-S):(l=g<>>64-S,y=m<>>64-S);const _=ot[Ze[h]];_.high=l,_.low=y}const o=ot[0],c=r[0];o.high=c.high,o.low=c.low;for(let h=0;h<5;h+=1)for(let l=0;l<5;l+=1){const y=h+5*l,v=r[y],m=ot[y],g=ot[(h+1)%5+5*l],S=ot[(h+2)%5+5*l];v.high=m.high^~g.high&S.high,v.low=m.low^~g.low&S.low}const a=r[0],u=tn[i];a.high^=u.high,a.low^=u.low}}_doFinalize(){const t=this._data,e=t.words,r=t.sigBytes*8,s=this.blockSize*32;e[r>>>5]|=1<<24-r%32,e[(Math.ceil((r+1)/s)*s>>>5)-1]|=128,t.sigBytes=e.length*4,this._process();const i=this._state,o=this.cfg.outputLength/8,c=o/8,a=[];for(let u=0;u>>24)&16711935|(l<<24|l>>>8)&4278255360,y=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,a.push(y),a.push(l)}return new A(a,o)}clone(){const t=super.clone.call(this);t._state=this._state.slice(0);const e=t._state;for(let r=0;r<25;r+=1)e[r]=e[r].clone();return t}}const jr=P._createHelper(G0),Ur=P._createHmacHelper(G0);/** @preserve -(c) 2012 by Cédric Mesnil. All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, are permitted -provided that the following conditions are met: - - - Redistributions of source code must retain the above copyright notice, this list of - conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright notice, this list - of conditions and the following disclaimer in the documentation and/or other materials - provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR -CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY -WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/const Kr=A.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),Nr=A.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),Vr=A.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),qr=A.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),Yr=A.create([0,1518500249,1859775393,2400959708,2840853838]),Gr=A.create([1352829926,1548603684,1836072691,2053994217,0]),_e=(n,t,e)=>n^t^e,we=(n,t,e)=>n&t|~n&e,ge=(n,t,e)=>(n|~t)^e,me=(n,t,e)=>n&e|t&~e,ve=(n,t,e)=>n^(t|~e),o0=(n,t)=>n<>>32-t;class X0 extends P{_doReset(){this._hash=A.create([1732584193,4023233417,2562383102,271733878,3285377520])}_doProcessBlock(t,e){const r=t;for(let x=0;x<16;x+=1){const p=e+x,b=r[p];r[p]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}const s=this._hash.words,i=Yr.words,o=Gr.words,c=Kr.words,a=Nr.words,u=Vr.words,h=qr.words;let l=s[0],y=s[1],v=s[2],m=s[3],g=s[4],S=s[0],_=s[1],B=s[2],E=s[3],I=s[4],f;for(let x=0;x<80;x+=1)f=l+r[e+c[x]]|0,x<16?f+=_e(y,v,m)+i[0]:x<32?f+=we(y,v,m)+i[1]:x<48?f+=ge(y,v,m)+i[2]:x<64?f+=me(y,v,m)+i[3]:f+=ve(y,v,m)+i[4],f|=0,f=o0(f,u[x]),f=f+g|0,l=g,g=m,m=o0(v,10),v=y,y=f,f=S+r[e+a[x]]|0,x<16?f+=ve(_,B,E)+o[0]:x<32?f+=me(_,B,E)+o[1]:x<48?f+=ge(_,B,E)+o[2]:x<64?f+=we(_,B,E)+o[3]:f+=_e(_,B,E)+o[4],f|=0,f=o0(f,h[x]),f=f+I|0,S=I,I=E,E=o0(B,10),B=_,_=f;f=s[1]+v+E|0,s[1]=s[2]+m+I|0,s[2]=s[3]+g+S|0,s[3]=s[4]+l+_|0,s[4]=s[0]+y+B|0,s[0]=f}_doFinalize(){const t=this._data,e=t.words,r=this._nDataBytes*8,s=t.sigBytes*8;e[s>>>5]|=128<<24-s%32,e[(s+64>>>9<<4)+14]=(r<<8|r>>>24)&16711935|(r<<24|r>>>8)&4278255360,t.sigBytes=(e.length+1)*4,this._process();const i=this._hash,o=i.words;for(let c=0;c<5;c+=1){const a=o[c];o[c]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360}return i}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const Xr=P._createHelper(X0),Qr=P._createHmacHelper(X0);class en extends C{constructor(t){super(),this.cfg=Object.assign(new C,{keySize:128/32,hasher:y0,iterations:1},t)}compute(t,e){const{cfg:r}=this,s=U0.create(r.hasher,t),i=A.create(),o=A.create([1]),c=i.words,a=o.words,{keySize:u,iterations:h}=r;for(;c.lengthen.create(e).compute(n,t),L=[],nn=[],rn=[],sn=[],on=[],cn=[],B0=[],I0=[],C0=[],P0=[],q=[];for(let n=0;n<256;n+=1)n<128?q[n]=n<<1:q[n]=n<<1^283;let V=0,rt=0;for(let n=0;n<256;n+=1){let t=rt^rt<<1^rt<<2^rt<<3^rt<<4;t=t>>>8^t&255^99,L[V]=t,nn[t]=V;const e=q[V],r=q[e],s=q[r];let i=q[t]*257^t*16843008;rn[V]=i<<24|i>>>8,sn[V]=i<<16|i>>>16,on[V]=i<<8|i>>>24,cn[V]=i,i=s*16843009^r*65537^e*257^V*16843008,B0[t]=i<<24|i>>>8,I0[t]=i<<16|i>>>16,C0[t]=i<<8|i>>>24,P0[t]=i,V?(V=e^q[q[q[s^e]]],rt^=q[q[rt]]):(rt=1,V=rt)}const Zr=[0,1,2,4,8,16,32,64,128,27,54];class Q0 extends _t{_doReset(){let t;if(this._nRounds&&this._keyPriorReset===this._key)return;this._keyPriorReset=this._key;const e=this._keyPriorReset,r=e.words,s=e.sigBytes/4;this._nRounds=s+6;const o=(this._nRounds+1)*4;this._keySchedule=[];const c=this._keySchedule;for(let u=0;u6&&u%s===4&&(t=L[t>>>24]<<24|L[t>>>16&255]<<16|L[t>>>8&255]<<8|L[t&255]):(t=t<<8|t>>>24,t=L[t>>>24]<<24|L[t>>>16&255]<<16|L[t>>>8&255]<<8|L[t&255],t^=Zr[u/s|0]<<24),c[u]=c[u-s]^t);this._invKeySchedule=[];const a=this._invKeySchedule;for(let u=0;u>>24]]^I0[L[t>>>16&255]]^C0[L[t>>>8&255]]^P0[L[t&255]]}}encryptBlock(t,e){this._doCryptBlock(t,e,this._keySchedule,rn,sn,on,cn,L)}decryptBlock(t,e){const r=t;let s=r[e+1];r[e+1]=r[e+3],r[e+3]=s,this._doCryptBlock(r,e,this._invKeySchedule,B0,I0,C0,P0,nn),s=r[e+1],r[e+1]=r[e+3],r[e+3]=s}_doCryptBlock(t,e,r,s,i,o,c,a){const u=t,h=this._nRounds;let l=u[e]^r[0],y=u[e+1]^r[1],v=u[e+2]^r[2],m=u[e+3]^r[3],g=4;for(let I=1;I>>24]^i[y>>>16&255]^o[v>>>8&255]^c[m&255]^r[g];g+=1;const x=s[y>>>24]^i[v>>>16&255]^o[m>>>8&255]^c[l&255]^r[g];g+=1;const p=s[v>>>24]^i[m>>>16&255]^o[l>>>8&255]^c[y&255]^r[g];g+=1;const b=s[m>>>24]^i[l>>>16&255]^o[y>>>8&255]^c[v&255]^r[g];g+=1,l=f,y=x,v=p,m=b}const S=(a[l>>>24]<<24|a[y>>>16&255]<<16|a[v>>>8&255]<<8|a[m&255])^r[g];g+=1;const _=(a[y>>>24]<<24|a[v>>>16&255]<<16|a[m>>>8&255]<<8|a[l&255])^r[g];g+=1;const B=(a[v>>>24]<<24|a[m>>>16&255]<<16|a[l>>>8&255]<<8|a[y&255])^r[g];g+=1;const E=(a[m>>>24]<<24|a[l>>>16&255]<<16|a[y>>>8&255]<<8|a[v&255])^r[g];g+=1,u[e]=S,u[e+1]=_,u[e+2]=B,u[e+3]=E}}Q0.keySize=256/32;const ts=_t._createHelper(Q0),es=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],Se=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],ns=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],rs=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],ss=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679];function Et(n,t){const e=(this._lBlock>>>n^this._rBlock)&t;this._rBlock^=e,this._lBlock^=e<>>n^this._lBlock)&t;this._lBlock^=e,this._rBlock^=e<>>5]>>>31-c%32&1}this._subKeys=[];const s=this._subKeys;for(let o=0;o<16;o+=1){s[o]=[];const c=s[o],a=ns[o];for(let u=0;u<24;u+=1)c[u/6|0]|=r[(Se[u]-1+a)%28]<<31-u%6,c[4+(u/6|0)]|=r[28+(Se[u+24]-1+a)%28]<<31-u%6;c[0]=c[0]<<1|c[0]>>>31;for(let u=1;u<7;u+=1)c[u]>>>=(u-1)*4+3;c[7]=c[7]<<5|c[7]>>>27}this._invSubKeys=[];const i=this._invSubKeys;for(let o=0;o<16;o+=1)i[o]=s[15-o]}encryptBlock(t,e){this._doCryptBlock(t,e,this._subKeys)}decryptBlock(t,e){this._doCryptBlock(t,e,this._invSubKeys)}_doCryptBlock(t,e,r){const s=t;this._lBlock=t[e],this._rBlock=t[e+1],Et.call(this,4,252645135),Et.call(this,16,65535),c0.call(this,2,858993459),c0.call(this,8,16711935),Et.call(this,1,1431655765);for(let o=0;o<16;o+=1){const c=r[o],a=this._lBlock,u=this._rBlock;let h=0;for(let l=0;l<8;l+=1)h|=rs[l][((u^c[l])&ss[l])>>>0];this._lBlock=u,this._rBlock=a^h}const i=this._lBlock;this._lBlock=this._rBlock,this._rBlock=i,Et.call(this,1,1431655765),c0.call(this,8,16711935),c0.call(this,2,858993459),Et.call(this,16,65535),Et.call(this,4,252645135),s[e]=this._lBlock,s[e+1]=this._rBlock}}lt.keySize=64/32;lt.ivSize=64/32;lt.blockSize=64/32;const is=_t._createHelper(lt);class Zt extends _t{_doReset(){const e=this._key.words;if(e.length!==2&&e.length!==4&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");const r=e.slice(0,2),s=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=lt.createEncryptor(A.create(r)),this._des2=lt.createEncryptor(A.create(s)),this._des3=lt.createEncryptor(A.create(i))}encryptBlock(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)}decryptBlock(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)}}Zt.keySize=192/32;Zt.ivSize=64/32;Zt.blockSize=64/32;const os=_t._createHelper(Zt),Q=[],st=[],k=[];function E0(){const n=this._X,t=this._C;for(let e=0;e<8;e+=1)st[e]=t[e];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(let e=0;e<8;e+=1){const r=n[e]+t[e],s=r&65535,i=r>>>16,o=((s*s>>>17)+s*i>>>15)+i*i,c=((r&4294901760)*r|0)+((r&65535)*r|0);k[e]=o^c}n[0]=k[0]+(k[7]<<16|k[7]>>>16)+(k[6]<<16|k[6]>>>16)|0,n[1]=k[1]+(k[0]<<8|k[0]>>>24)+k[7]|0,n[2]=k[2]+(k[1]<<16|k[1]>>>16)+(k[0]<<16|k[0]>>>16)|0,n[3]=k[3]+(k[2]<<8|k[2]>>>24)+k[1]|0,n[4]=k[4]+(k[3]<<16|k[3]>>>16)+(k[2]<<16|k[2]>>>16)|0,n[5]=k[5]+(k[4]<<8|k[4]>>>24)+k[3]|0,n[6]=k[6]+(k[5]<<16|k[5]>>>16)+(k[4]<<16|k[4]>>>16)|0,n[7]=k[7]+(k[6]<<8|k[6]>>>24)+k[5]|0}class an extends ht{constructor(...t){super(...t),this.blockSize=128/32,this.ivSize=64/32}_doReset(){const t=this._key.words,{iv:e}=this.cfg;for(let i=0;i<4;i+=1)t[i]=(t[i]<<8|t[i]>>>24)&16711935|(t[i]<<24|t[i]>>>8)&4278255360;this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];const r=this._X;this._C=[t[2]<<16|t[2]>>>16,t[0]&4294901760|t[1]&65535,t[3]<<16|t[3]>>>16,t[1]&4294901760|t[2]&65535,t[0]<<16|t[0]>>>16,t[2]&4294901760|t[3]&65535,t[1]<<16|t[1]>>>16,t[3]&4294901760|t[0]&65535];const s=this._C;this._b=0;for(let i=0;i<4;i+=1)E0.call(this);for(let i=0;i<8;i+=1)s[i]^=r[i+4&7];if(e){const i=e.words,o=i[0],c=i[1],a=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,u=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360,h=a>>>16|u&4294901760,l=u<<16|a&65535;s[0]^=a,s[1]^=h,s[2]^=u,s[3]^=l,s[4]^=a,s[5]^=h,s[6]^=u,s[7]^=l;for(let y=0;y<4;y+=1)E0.call(this)}}_doProcessBlock(t,e){const r=t,s=this._X;E0.call(this),Q[0]=s[0]^s[5]>>>16^s[3]<<16,Q[1]=s[2]^s[7]>>>16^s[5]<<16,Q[2]=s[4]^s[1]>>>16^s[7]<<16,Q[3]=s[6]^s[3]>>>16^s[1]<<16;for(let i=0;i<4;i+=1)Q[i]=(Q[i]<<8|Q[i]>>>24)&16711935|(Q[i]<<24|Q[i]>>>8)&4278255360,r[e+i]^=Q[i]}}const cs=ht._createHelper(an),J=[],it=[],T=[];function k0(){const n=this._X,t=this._C;for(let e=0;e<8;e+=1)it[e]=t[e];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(let e=0;e<8;e+=1){const r=n[e]+t[e],s=r&65535,i=r>>>16,o=((s*s>>>17)+s*i>>>15)+i*i,c=((r&4294901760)*r|0)+((r&65535)*r|0);T[e]=o^c}n[0]=T[0]+(T[7]<<16|T[7]>>>16)+(T[6]<<16|T[6]>>>16)|0,n[1]=T[1]+(T[0]<<8|T[0]>>>24)+T[7]|0,n[2]=T[2]+(T[1]<<16|T[1]>>>16)+(T[0]<<16|T[0]>>>16)|0,n[3]=T[3]+(T[2]<<8|T[2]>>>24)+T[1]|0,n[4]=T[4]+(T[3]<<16|T[3]>>>16)+(T[2]<<16|T[2]>>>16)|0,n[5]=T[5]+(T[4]<<8|T[4]>>>24)+T[3]|0,n[6]=T[6]+(T[5]<<16|T[5]>>>16)+(T[4]<<16|T[4]>>>16)|0,n[7]=T[7]+(T[6]<<8|T[6]>>>24)+T[5]|0}class un extends ht{constructor(...t){super(...t),this.blockSize=128/32,this.ivSize=64/32}_doReset(){const t=this._key.words,{iv:e}=this.cfg;this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];const r=this._X;this._C=[t[2]<<16|t[2]>>>16,t[0]&4294901760|t[1]&65535,t[3]<<16|t[3]>>>16,t[1]&4294901760|t[2]&65535,t[0]<<16|t[0]>>>16,t[2]&4294901760|t[3]&65535,t[1]<<16|t[1]>>>16,t[3]&4294901760|t[0]&65535];const s=this._C;this._b=0;for(let i=0;i<4;i+=1)k0.call(this);for(let i=0;i<8;i+=1)s[i]^=r[i+4&7];if(e){const i=e.words,o=i[0],c=i[1],a=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,u=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360,h=a>>>16|u&4294901760,l=u<<16|a&65535;s[0]^=a,s[1]^=h,s[2]^=u,s[3]^=l,s[4]^=a,s[5]^=h,s[6]^=u,s[7]^=l;for(let y=0;y<4;y+=1)k0.call(this)}}_doProcessBlock(t,e){const r=t,s=this._X;k0.call(this),J[0]=s[0]^s[5]>>>16^s[3]<<16,J[1]=s[2]^s[7]>>>16^s[5]<<16,J[2]=s[4]^s[1]>>>16^s[7]<<16,J[3]=s[6]^s[3]>>>16^s[1]<<16;for(let i=0;i<4;i+=1)J[i]=(J[i]<<8|J[i]>>>24)&16711935|(J[i]<<24|J[i]>>>8)&4278255360,r[e+i]^=J[i]}}const as=ht._createHelper(un);function fn(){const n=this._S;let t=this._i,e=this._j,r=0;for(let s=0;s<4;s+=1){t=(t+1)%256,e=(e+n[t])%256;const i=n[t];n[t]=n[e],n[e]=i,r|=n[(n[t]+n[e])%256]<<24-s*8}return this._i=t,this._j=e,r}class t0 extends ht{_doReset(){const t=this._key,e=t.words,r=t.sigBytes;this._S=[];const s=this._S;for(let i=0;i<256;i+=1)s[i]=i;for(let i=0,o=0;i<256;i+=1){const c=i%r,a=e[c>>>2]>>>24-c%4*8&255;o=(o+s[i]+a)%256;const u=s[i];s[i]=s[o],s[o]=u}this._j=0,this._i=this._j}_doProcessBlock(t,e){const r=t;r[e]^=fn.call(this)}}t0.keySize=256/32;t0.ivSize=0;const us=ht._createHelper(t0);class ln extends t0{constructor(...t){super(...t),Object.assign(this.cfg,{drop:192})}_doReset(){super._doReset.call(this);for(let t=this.cfg.drop;t>0;t-=1)fn.call(this)}}const fs=ht._createHelper(ln);function hn(n,t,e,r){const s=n;let i;const o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(let c=0;c{let t=n;if((n>>24&255)===255){let e=n>>16&255,r=n>>8&255,s=n&255;e===255?(e=0,r===255?(r=0,s===255?s=0:s+=1):r+=1):e+=1,t=0,t+=e<<16,t+=r<<8,t+=s}else t+=1<<24;return t},ls=n=>{const t=n;return t[0]=Ee(t[0]),t[0]===0&&(t[1]=Ee(t[1])),t};/** @preserve - * Counter block mode compatible with Dr Brian Gladman fileenc.c - * derived from CryptoJS.mode.CTR - * Jan Hruby jhruby.web@gmail.com - */class Nt extends yt{}Nt.Encryptor=class extends Nt{processBlock(n,t){const e=n,r=this._cipher,{blockSize:s}=r,i=this._iv;let o=this._counter;i&&(this._counter=i.slice(0),o=this._counter,this._iv=void 0),ls(o);const c=o.slice(0);r.encryptBlock(c,0);for(let a=0;a>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad(n){const t=n,e=t.words[t.sigBytes-1>>>2]&255;t.sigBytes-=e}},xs={pad(n,t){const e=t*4,r=e-n.sigBytes%e;n.concat(A.random(r-1)).concat(A.create([r<<24],1))},unpad(n){const t=n,e=t.words[t.sigBytes-1>>>2]&255;t.sigBytes-=e}},R0={pad(n,t){const e=n,r=t*4;e.clamp(),e.sigBytes+=r-(n.sigBytes%r||r)},unpad(n){const t=n,e=t.words;for(let r=t.sigBytes-1;r>=0;r-=1)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},ds={pad(n,t){n.concat(A.create([2147483648],1)),R0.pad(n,t)},unpad(n){const t=n;R0.unpad(t),t.sigBytes-=1}},ps={pad(){},unpad(){}},bs={stringify(n){return n.ciphertext.toString(f0)},parse(n){const t=f0.parse(n);return Jt.create({ciphertext:t})}},ys={lib:{Base:C,WordArray:A,BufferedBlockAlgorithm:j0,Hasher:P,Cipher:bt,StreamCipher:ht,BlockCipherMode:yt,BlockCipher:_t,CipherParams:Jt,SerializableCipher:pt,PasswordBasedCipher:V0},x64:{Word:d,WordArray:K0},enc:{Hex:f0,Latin1:T0,Utf8:$0,Utf16:Br,Utf16BE:Ge,Utf16LE:Ir,Base64:A0},algo:{HMAC:U0,MD5:b0,SHA1:y0,SHA224:q0,SHA256:It,SHA384:Y0,SHA512:Ct,SHA3:G0,RIPEMD160:X0,PBKDF2:en,EvpKDF:N0,AES:Q0,DES:lt,TripleDES:Zt,Rabbit:an,RabbitLegacy:un,RC4:t0,RC4Drop:ln},mode:{CBC:Bt,CFB:Ut,CTR:Kt,CTRGladman:Nt,ECB:Vt,OFB:qt},pad:{Pkcs7:Ve,AnsiX923:hs,Iso10126:xs,Iso97971:ds,NoPadding:ps,ZeroPadding:R0},format:{OpenSSL:qe,Hex:bs},kdf:{OpenSSL:Ye},MD5:kr,HmacMD5:Tr,SHA1:Cr,HmacSHA1:Pr,SHA224:Dr,HmacSHA224:Or,SHA256:Hr,HmacSHA256:Mr,SHA384:Wr,HmacSHA384:$r,SHA512:Fr,HmacSHA512:zr,SHA3:jr,HmacSHA3:Ur,RIPEMD160:Xr,HmacRIPEMD160:Qr,PBKDF2:Jr,EvpKDF:Ar,AES:ts,DES:is,TripleDES:os,Rabbit:cs,RabbitLegacy:as,RC4:us,RC4Drop:fs};let xn=(n=21)=>crypto.getRandomValues(new Uint8Array(n)).reduce((t,e)=>(e&=63,e<36?t+=e.toString(36):e<62?t+=(e-26).toString(36).toUpperCase():e>62?t+="-":t+="_",t),"");function l0(n){return typeof n=="function"}var ke=!1,Z={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){var t=new Error;""+t.stack}ke=n},get useDeprecatedSynchronousErrorHandling(){return ke}};function Tt(n){setTimeout(function(){throw n},0)}var h0={closed:!0,next:function(n){},error:function(n){if(Z.useDeprecatedSynchronousErrorHandling)throw n;Tt(n)},complete:function(){}},J0=function(){return Array.isArray||function(n){return n&&typeof n.length=="number"}}();function dn(n){return n!==null&&typeof n=="object"}var _s=function(){function n(t){return Error.call(this),this.message=t?t.length+` errors occurred during unsubscription: -`+t.map(function(e,r){return r+1+") "+e.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n}(),a0=_s,et=function(){function n(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return n.prototype.unsubscribe=function(){var t;if(!this.closed){var e=this,r=e._parentOrParents,s=e._ctorUnsubscribe,i=e._unsubscribe,o=e._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof n)r.remove(this);else if(r!==null)for(var c=0;c0?this._next(e.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},t}(Ns);function Gs(n){return n===void 0&&(n=Number.POSITIVE_INFINITY),vn(pn,n)}function Sn(n,t,e,r){return l0(e)&&(r=e,e=void 0),r?Sn(n,t,e).pipe(_n(function(s){return J0(s)?r.apply(void 0,s):r(s)})):new W(function(s){function i(o){arguments.length>1?s.next(Array.prototype.slice.call(arguments)):s.next(o)}En(n,t,i,s,e)})}function En(n,t,e,r,s){var i;if(Js(n)){var o=n;n.addEventListener(t,e,s),i=function(){return o.removeEventListener(t,e,s)}}else if(Qs(n)){var c=n;n.on(t,e),i=function(){return c.off(t,e)}}else if(Xs(n)){var a=n;n.addListener(t,e),i=function(){return a.removeListener(t,e)}}else if(n&&n.length)for(var u=0,h=n.length;u=0}function Zs(){for(var n=[],t=0;t1&&typeof n[n.length-1]=="number"&&(e=n.pop())):typeof s=="number"&&(e=n.pop()),r===null&&n.length===1&&n[0]instanceof W?n[0]:Gs(e)(Bs(n,r))}function ti(n,t,e){n===void 0&&(n=0);var r=-1;return Pe(t)?r=Number(t)<1&&1||Number(t):H0(t)&&(e=t),H0(e)||(e=Cs),new W(function(s){var i=Pe(n)?n:+n-e.now();return e.schedule(ei,i,{index:0,period:r,subscriber:s})})}function ei(n){var t=n.index,e=n.period,r=n.subscriber;if(r.next(t),!r.closed){if(e===-1)return r.complete();n.index=t+1,this.schedule(n,e)}}const kn={ethereum:{1:"main",5:"goerli",100:"xdai",137:"matic-main",80001:"matic-mumbai"}},ni=[2,3,4,42,56,250],Tn={points:150,duration:1},Re=1e4;function O(n){const{name:t,value:e,type:r,optional:s,customValidation:i}=n;if(!s&&typeof e>"u")throw new Error(`"${t}" is required`);if(typeof e<"u"&&(r==="array"?Array.isArray(r):typeof e!==r))throw new Error(`"${t}" must be of type: ${r}, received type: ${typeof e} from value: ${e}`);if(typeof e<"u"&&i&&!i(e))throw new Error(`"${e}" is not a valid "${t}"`)}function ri(n){O({name:"sdk options",value:n,type:"object"});const{dappId:t,system:e,name:r,appVersion:s,networkId:i,transactionHandlers:o,apiUrl:c,ws:a,onopen:u,ondown:h,onreopen:l,onerror:y,onclose:v,...m}=n;ii(m,["dappId","system","name","appVersion","networkId","transactionHandlers","apiUrl","ws","onopen","ondown","onreopen","onerror","onclose"],"Initialization Options"),O({name:"dappId",value:t,type:"string",optional:!0}),O({name:"system",value:e,type:"string",optional:!0,customValidation:si}),O({name:"name",value:r,type:"string",optional:!0}),O({name:"appVersion",value:s,type:"string",optional:!0}),O({name:"networkId",value:i,type:"number"}),ni.includes(i)&&console.error(`Blocknative SDK: Network with ID: ${i} has been deprecated and you will no longer receive transaction events on this network.`),O({name:"transactionHandler",value:o,type:"array",optional:!0}),o&&o.forEach(g=>O({name:"transactionHandler",value:g,type:"function"})),O({name:"apiUrl",value:c,type:"string",optional:!0}),O({name:"ws",value:a,type:"function",optional:!0}),O({name:"onopen",value:u,type:"function",optional:!0}),O({name:"ondown",value:h,type:"function",optional:!0}),O({name:"onreopen",value:l,type:"function",optional:!0}),O({name:"onerror",value:y,type:"function",optional:!0}),O({name:"onclose",value:v,type:"function",optional:!0})}function si(n){return!!kn[n]}function ii(n,t,e){const r=Object.keys(n);if(r.length>0)throw new Error(`${r[0]} is not a valid parameter for ${e}, must be one of the following valid parameters: ${t.join(", ")}`)}function Z0(){return{listeners:{},on:function(n,t){switch(n){case"txSent":case"txPool":case"txConfirmed":case"txSpeedUp":case"txCancel":case"txFailed":case"txDropped":case"txRequest":case"nsfFail":case"txRepeat":case"txAwaitingApproval":case"txConfirmReminder":case"txSendFail":case"txError":case"txUnderPriced":case"txPoolSimulation":case"all":break;default:throw new Error(`${n} is not a valid event code, for a list of valid event codes see: https://docs.blocknative.com/notify-sdk#event-codes`)}if(typeof t!="function")throw new Error("Listener must be a function");this.listeners[n]=t},off:function(n){delete this.listeners[n]},emit:function(n){if(this.listeners[n.eventCode])return this.listeners[n.eventCode](n);if(this.listeners.all)return this.listeners.all(n)}}}function An(n,t){return kn[n][t]}function oi(n){switch(n){case"txRequest":case"nsfFail":case"txRepeat":case"txAwaitingApproval":case"txConfirmReminder":case"txSendFail":case"txError":case"txUnderPriced":case"txSent":return!0;default:return!1}}function ci(n){return n.reverse()[0]}function ai(n,t){switch(n){case"ethereum":return t.length===42;case"bitcoin":return t.length!==64;default:return!1}}function ui(n,t){switch(n){case"ethereum":return t.length===66;case"bitcoin":return t.length===64;default:return!1}}function M0(n){return new Promise(t=>{setTimeout(t,n)})}const fi=(n,t)=>t===void 0?"undefined":t;function Bn(){if(typeof window<"u"&&"localStorage"in window){const t="__testLocalStorage";try{return window.localStorage.setItem(t,"1"),window.localStorage.removeItem(t),!0}catch{return!1}}return!1}function li(n,t){if(this._destroyed)throw new Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");const e=Date.now(),r=Z0(),s="txSent";this.watchedTransactions.push({hash:n,emitter:r});const o={...this._system==="ethereum"?{hash:n}:{txid:n},id:t||n,startTime:e,status:"sent"},c={...o,eventCode:s};this._sendMessage({eventCode:s,categoryCode:"activeTransaction",transaction:o});const a={details:c,emitter:r};function u(){const h=r.emit(c);this._transactionHandlers.forEach(l=>l({transaction:c,emitterResult:h}))}return setTimeout(u.bind(this),5),a}function hi(n){if(this._destroyed)throw new Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");n=this._system==="ethereum"?n.toLowerCase():n;const t=Z0(),e="watch",r=this.watchedAccounts.find(s=>s.address===n);return r?r.emitters.push(t):this.watchedAccounts.push({address:n,emitters:[t]}),this._sendMessage({eventCode:e,categoryCode:"accountAddress",account:{address:n}}),{emitter:t,details:{address:n}}}function xi(n){if(this._destroyed)throw new Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");this._sendMessage(n)}/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */var D0=function(n,t){return D0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var s in r)r.hasOwnProperty(s)&&(e[s]=r[s])},D0(n,t)};function j(n,t){D0(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function O0(n){return typeof n=="function"}var He=!1,tt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){var t=new Error;""+t.stack}He=n},get useDeprecatedSynchronousErrorHandling(){return He}};function At(n){setTimeout(function(){throw n},0)}var d0={closed:!0,next:function(n){},error:function(n){if(tt.useDeprecatedSynchronousErrorHandling)throw n;At(n)},complete:function(){}},di=function(){return Array.isArray||function(n){return n&&typeof n.length=="number"}}();function In(n){return n!==null&&typeof n=="object"}var pi=function(){function n(t){return Error.call(this),this.message=t?t.length+` errors occurred during unsubscription: -`+t.map(function(e,r){return r+1+") "+e.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n}(),u0=pi,te=function(){function n(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return n.prototype.unsubscribe=function(){var t;if(!this.closed){var e=this,r=e._parentOrParents,s=e._ctorUnsubscribe,i=e._unsubscribe,o=e._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof n)r.remove(this);else if(r!==null)for(var c=0;c{p0.pipe(w0(({eventId:o})=>o===r),g0(1)).subscribe({next:({transaction:o})=>s(o),error:({error:o})=>i(o.message)})})}function io(n){if(this._destroyed)throw new Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");const t=xn();return this._sendMessage({categoryCode:"simulate",eventCode:"txSimulation",eventId:t,transaction:n}),new Promise((e,r)=>{p0.pipe(w0(({eventId:s})=>s===t),g0(1)).subscribe({next:({transaction:s})=>e(s),error:({error:s})=>r(s.message)})})}function oo(n){if(this._destroyed)throw new Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");const t=ai(this._system,n),e=ui(this._system,n);if(t){const r=this._system==="ethereum"?n.toLowerCase():n;this.watchedAccounts=this.watchedAccounts.filter(s=>s.address!==r),this.configurations.delete(r),this._sendMessage({categoryCode:"accountAddress",eventCode:"unwatch",account:{address:r}})}else if(e){this.watchedTransactions=this.watchedTransactions.filter(i=>i.hash!==n);const s={...this._system==="ethereum"?{hash:n}:{txid:n},id:n,status:"unsubscribed"};this._sendMessage({categoryCode:"activeTransaction",eventCode:"unwatch",transaction:s})}else throw new Error(`Error trying to unsubscribe ${n}: not a valid address or transaction id/hash`)}function co(n){if(this._destroyed)throw new Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");const t=this._system==="ethereum"?n.scope.toLowerCase():n.scope,e=this.configurations.get(t);e&&e.subscription&&e.subscription.next();const r=new Yt,s=n.watchAddress?{emitter:Z0()}:{};return this.configurations.set(t,{...n,...s,subscription:r}),this._sendMessage({categoryCode:"configs",eventCode:"put",config:n}),new Promise((i,o)=>{r.pipe(g0(1),ro(5e3)).subscribe({next:()=>i({...s,details:{config:n}}),error:c=>{const a=c.message==="Timeout has occurred"?`Configuration with scope: ${n.scope} has been sent to the Blocknative server, but has not received a reply within 5 seconds.`:c.message;this._onerror?(this._onerror({message:a}),i(`Error: ${a}`)):o(a)}})})}function ao(n){const{id:t,chainId:e,type:r}=n;if(!An("ethereum",parseInt(e,16)))throw new Error(`chainId: ${e} is an unsupported network`);this.connections[e]||(this.connections[e]=new this.Blocknative({system:"ethereum",networkId:parseInt(e,16),dappId:this.apiKey,ws:this.ws,apiUrl:this.apiUrl,transactionHandlers:[({transaction:i})=>{this.onTransaction$.next(i)}],onerror:i=>this.errors$.next(i)}));const s=this.connections[e];if(r==="account"){const{filters:i=[],abi:o}=n;return s.configuration({scope:t,filters:i,...o?{abi:o}:{},watchAddress:!0}),this.transactions$.pipe(w0(({watchedAddress:c})=>c===t),Fe(()=>{this.unsubscribe({id:t,chainId:e})}))}else{const{emitter:i}=s.transaction(t);return Sn(i,"all").pipe(Gi(({status:o})=>o!=="confirmed"&&o!=="failed"&&o!=="dropped",!0),Fe(()=>{this.unsubscribe({id:t,chainId:e})}))}}function uo(n){const{id:t,chainId:e,timeout:r=0}=n,s=ti(r),i=this.transactions$.pipe(w0(({hash:o,watchedAddress:c})=>o===t||c===t));Zs(i,s).pipe(g0(1)).subscribe(o=>{typeof o=="number"?Object.entries(this.connections).filter(([a,u])=>u!==null).forEach(([a,u])=>{e&&a!==e||(u.unsubscribe(t),!u.watchedAccounts.length&&!u.watchedTransactions.length&&!u.configurations.size&&(u.destroy(),this.connections[a]=null))}):this.unsubscribe(n)})}class fo{constructor(t,e){const{ws:r}=t,{apiKey:s}=t,{apiUrl:i}=t;this.apiKey=s,this.apiUrl=i,this.ws=r,this.connections={},this.onTransaction$=new Yt,this.transactions$=this.onTransaction$.asObservable(),this.errors$=new Yt,this.Blocknative=e,this.subscribe=ao.bind(this),this.unsubscribe=uo.bind(this)}}var lo="4.6.7";function ho(n){if(this._queuedMessages.length>Re)throw new Error(`Queue limit of ${Re} messages has been reached.`);this._queuedMessages.push(ne.bind(this)(n)),this._processingQueue||this._processQueue()}async function xo(){for(this._processingQueue=!0,this._connected||await bo.bind(this)();this._queuedMessages.length>0;){await M0(1),this._waitToRetry!==null&&(await this._waitToRetry,this._waitToRetry=null);const n=this._queuedMessages.shift(),t=this._limitRules.duration/this._limitRules.points*1e3;await M0(t),this._socket.send(n)}this._processingQueue=!1,this._limitRules=Tn}function po(n){const{status:t,reason:e,event:r,connectionId:s,serverVersion:i,retryMs:o,limitRules:c,blockedMsg:a,dispatchTimestamp:u}=JSON.parse(n.data);if(s&&(Bn()&&window.localStorage.setItem(this._storageKey,s),this._connectionId=s),t==="error"){if(e.includes("ratelimit")&&!e.match(/IP (PendingSimulation|Notification) ratelimit reached/)){this._waitToRetry=M0(o),this._limitRules=c,a&&this._queuedMessages.unshift(a);return}if(e.includes("upgrade your plan"))if(this._onerror){this._onerror({message:e});return}else throw new Error(e);if(e.includes("not a valid API key"))if(this._onerror){this._onerror({message:e});return}else throw new Error(e);if(e.includes("network not supported"))if(this._onerror){this._onerror({message:e});return}else throw new Error(e);if(e.includes("maximum allowed amount"))if(this._onerror){this._onerror({message:e});return}else throw new Error(e);if(e.includes("invalid txid")){const h=`${r.transaction.txid} is an invalid txid`;if(this._onerror){this._onerror({message:h,transaction:r.transaction.txid});return}else throw new Error(h)}if(e.includes("invalid hash")){const h=`${r.transaction.hash} is an invalid transaction hash`;if(this._onerror){this._onerror({message:h,transaction:r.transaction.hash});return}else throw new Error(h)}if(e.includes("invalid address")){const h=`${r.account.address} is an invalid address`;if(this._onerror){this._onerror({message:h,account:r.account.address});return}else throw new Error(h)}if(e.includes("not a valid Bitcoin"))if(this._onerror){this._onerror({message:e,account:r.account.address});return}else throw new Error(e);if(e.includes("not a valid Ethereum"))if(this._onerror){this._onerror({message:e,account:r.account.address});return}else throw new Error(e);if(r&&r.categoryCode==="simulate"){p0.error({eventId:r.eventId,error:{message:e}});return}if(r&&r.config){const h=this.configurations.get(r.config.scope);h&&h.subscription&&h.subscription.error({message:e});return}if(this._onerror){this._onerror({message:e});return}else throw new Error(e)}if(r&&r.config){const h=this._system==="ethereum"?r.config.scope.toLowerCase():r.config.scope,l=this.configurations.get(h);l&&l.subscription&&l.subscription.next()}if(r&&r.transaction){const{eventId:h,transaction:l,eventCode:y,contractCall:v,timeStamp:m,blockchain:{system:g,network:S}}=r,_=this._system==="ethereum"?{...l,serverVersion:i,eventCode:y,timeStamp:m,dispatchTimestamp:u,system:g,network:S,contractCall:v}:{...l,serverVersion:i,eventCode:y,timeStamp:m,dispatchTimestamp:u,system:g,network:S};if(oi(y)||l.status==="unsubscribed")return;if(_.originalHash&&(_.replaceHash=_.hash,_.hash=_.originalHash,delete _.originalHash),y==="txSpeedUp"&&_.status!=="speedup"&&(_.status="speedup"),y==="txCancel"&&_.status!=="cancel"&&(_.status="cancel"),(y==="txSpeedUp"||y==="txCancel")&&(this.watchedTransactions=this.watchedTransactions.map(E=>(E.hash===_.replaceHash&&(E.hash=l.hash||l.txid),E))),r&&r.categoryCode==="simulate"){_.contractCall=r.transaction.contractCall,delete _.dispatchTimestamp,p0.next({eventId:h,transaction:_});return}const B=l.watchedAddress&&this._system==="ethereum"?l.watchedAddress.toLowerCase():l.watchedAddress;if(B){const E=this.watchedAccounts.find(p=>p.address===B),I=E?ci(E.emitters.map(p=>p.emit(_))):!1,f=this.configurations.get(B),x=f&&f.emitter&&f.emitter.emit(_)||I;this._transactionHandlers.forEach(p=>p({transaction:_,emitterResult:x}))}else{const E=this.watchedTransactions.find(f=>f.hash===_.hash||_.txid),I=E&&E.emitter.emit(_);this._transactionHandlers.forEach(f=>f({transaction:_,emitterResult:I})),(_.status==="speedup"||_.status==="cancel")&&(this.watchedTransactions=this.watchedTransactions.map(f=>f.hash===_.hash||_.txid?{...f,hash:_.replaceHash}:f))}}}function ne(n){return JSON.stringify({timeStamp:new Date().toISOString(),dappId:this._dappId,version:lo,appName:this._appName,appVersion:this._appVersion,blockchain:{system:this._system,network:An(this._system,this._networkId)||"local"},...n},n.categoryCode==="configs"?fi:void 0)}function bo(){return new Promise(n=>{const t=setInterval(()=>{this._connected&&(setTimeout(n,100),clearInterval(t))})})}const yo="unknown",_o="unknown",wo="ethereum";class Eo{constructor(t){ri(t);const{system:e=wo,name:r=yo,appVersion:s=_o,networkId:i,transactionHandlers:o=[],ws:c,onopen:a,ondown:u,onreopen:h,onerror:l,onclose:y}=t,{apiUrl:v}=t,{dappId:m}=t,g={connectTimeout:1e4},S=new gr(v||"wss://api.blocknative.com/v0",c?{wsConstructor:c,...g}:{...g});S.onopen=go.bind(this,a),S.ondown=mo.bind(this,u),S.onreopen=vo.bind(this,h),S.onmessage=po.bind(this),S.onerror=E=>l&&l({message:"There was a WebSocket error",error:E}),S.onclose=()=>{this._pingTimeout&&clearInterval(this._pingTimeout),y&&y()};const _=ys.SHA1(`${m} - ${r}`).toString(),B=Bn()&&window.localStorage.getItem(_);this._storageKey=_,this._connectionId=B||void 0,this._dappId=m,this._system=e,this._networkId=i,this._appName=r,this._appVersion=s,this._transactionHandlers=o,this._socket=S,this._connected=!1,this._sendMessage=ho.bind(this),this._pingTimeout=void 0,this._destroyed=!1,this._onerror=l,this._queuedMessages=[],this._limitRules=Tn,this._waitToRetry=null,this._processingQueue=!1,this._processQueue=xo.bind(this),this._socket.ws.on&&(this._heartbeat=()=>{this._pingTimeout&&clearTimeout(this._pingTimeout),this._pingTimeout=setTimeout(()=>{this._socket.ws.terminate()},3e4+1e3)},this._socket.ws.on("ping",()=>{this._heartbeat&&this._heartbeat()})),this.watchedTransactions=[],this.watchedAccounts=[],this.configurations=new Map,this.transaction=li.bind(this),this.account=hi.bind(this),this.event=xi.bind(this),this.simulate=so.bind(this),this.multiSim=io.bind(this),this.unsubscribe=oo.bind(this),this.configuration=co.bind(this),this.destroy=()=>{this._socket.close(),this._destroyed=!0,this._socket.onclose()}}static multichain(t){return new fo(t,this)}}function go(n){this._connected=!0;const t={categoryCode:"initialize",eventCode:"checkDappId",connectionId:this._connectionId};this._socket.send(ne.bind(this)(t)),this._heartbeat&&this._heartbeat(),n&&n()}function mo(n,t){this._connected=!1,n&&n(t),this._pingTimeout&&clearTimeout(this._pingTimeout)}async function vo(n){this._connected=!0;const t={categoryCode:"initialize",eventCode:"checkDappId",connectionId:this._connectionId};this._socket.send(ne.bind(this)(t));const e=Array.from(this.configurations.values()),r=this.configurations.get("global");if(r)try{const{emitter:i,subscription:o,...c}=r;await this.configuration(c)}catch(i){console.warn("Error re-sending global configuration upon reconnection:",i)}e.filter(({scope:i})=>i!=="global").forEach(i=>{const{emitter:o,subscription:c,...a}=i;this._sendMessage({categoryCode:"configs",eventCode:"put",config:a})}),this.watchedAccounts.forEach(i=>{this._sendMessage({eventCode:"accountAddress",categoryCode:"watch",account:{address:i.address}})}),n&&n(),this._socket.ws&&this._socket.ws.on&&(this._socket.ws.on("ping",()=>{this._heartbeat&&this._heartbeat()}),this._heartbeat())}export{Eo as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-fff385ce.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-fff385ce.js.meta deleted file mode 100644 index c79dcacef..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/index-fff385ce.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 646f320eb21e01246ae9946faf6ebe8c -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/liquality-0e245cbb.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/liquality-0e245cbb.js deleted file mode 100644 index cf0de02d9..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/liquality-0e245cbb.js +++ /dev/null @@ -1,13 +0,0 @@ -const o=` - - - - - - - - - - - -`;export{o as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/liquality-0e245cbb.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/liquality-0e245cbb.js.meta deleted file mode 100644 index 0b270a923..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/liquality-0e245cbb.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: ad389691bb575ff4c921b718cf461bcb -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/mathwallet-ff05f48e.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/mathwallet-ff05f48e.js deleted file mode 100644 index 7ab78a91e..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/mathwallet-ff05f48e.js +++ /dev/null @@ -1,47 +0,0 @@ -const e=` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -`;export{e as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/mathwallet-ff05f48e.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/mathwallet-ff05f48e.js.meta deleted file mode 100644 index e00e8ae7c..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/mathwallet-ff05f48e.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 33ae36e6a3825b747bed75f86c4d6670 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/meetone-d2b0ac23.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/meetone-d2b0ac23.js deleted file mode 100644 index 44e881fb2..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/meetone-d2b0ac23.js +++ /dev/null @@ -1,10 +0,0 @@ -const A=` - - - - - - - - -`;export{A as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/meetone-d2b0ac23.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/meetone-d2b0ac23.js.meta deleted file mode 100644 index ab60a0c2b..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/meetone-d2b0ac23.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: c95b15eb4d552554abdda9027de8c4d7 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/merge-7af99d5f.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/merge-7af99d5f.js deleted file mode 100644 index b8464ed81..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/merge-7af99d5f.js +++ /dev/null @@ -1 +0,0 @@ -import{aP as o,aW as t,aj as m,ab as u,aD as g,ah as l}from"./index-b28afd98.js";function h(){for(var r=[],a=0;a - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -`;export{s as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/metamask-1c685b94.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/metamask-1c685b94.js.meta deleted file mode 100644 index f6936ff15..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/metamask-1c685b94.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 6358fb1328ca4a8438f3753b5631b94b -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/mobile-122d5339.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/mobile-122d5339.js deleted file mode 100644 index 9af1a8442..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/mobile-122d5339.js +++ /dev/null @@ -1 +0,0 @@ -import{V as S}from"./index-b28afd98.js";var y={},r={};Object.defineProperty(r,"__esModule",{value:!0});r.getLocalStorage=r.getLocalStorageOrThrow=r.getCrypto=r.getCryptoOrThrow=r.getLocation=r.getLocationOrThrow=r.getNavigator=r.getNavigatorOrThrow=r.getDocument=r.getDocumentOrThrow=r.getFromWindowOrThrow=r.getFromWindow=void 0;function w(t){let e;return typeof window<"u"&&typeof window[t]<"u"&&(e=window[t]),e}r.getFromWindow=w;function m(t){const e=w(t);if(!e)throw new Error(`${t} is not defined in Window`);return e}r.getFromWindowOrThrow=m;function G(){return m("document")}r.getDocumentOrThrow=G;function H(){return w("document")}r.getDocument=H;function Q(){return m("navigator")}r.getNavigatorOrThrow=Q;function z(){return w("navigator")}r.getNavigator=z;function Y(){return m("location")}r.getLocationOrThrow=Y;function q(){return w("location")}r.getLocation=q;function Z(){return m("crypto")}r.getCryptoOrThrow=Z;function tt(){return w("crypto")}r.getCrypto=tt;function et(){return m("localStorage")}r.getLocalStorageOrThrow=et;function ot(){return w("localStorage")}r.getLocalStorage=ot;Object.defineProperty(y,"__esModule",{value:!0});var B=y.getWindowMetadata=void 0;const $=r;function rt(){let t,e;try{t=$.getDocumentOrThrow(),e=$.getLocationOrThrow()}catch{return null}function o(){const g=t.getElementsByTagName("link"),d=[];for(let l=0;l-1){const s=p.getAttribute("href");if(s)if(s.toLowerCase().indexOf("https:")===-1&&s.toLowerCase().indexOf("http:")===-1&&s.indexOf("//")!==0){let T=e.protocol+"//"+e.host;if(s.indexOf("/")===0)T+=s;else{const b=e.pathname.split("/");b.pop();const X=b.join("/");T+=X+"/"+s}d.push(T)}else if(s.indexOf("//")===0){const T=e.protocol+s;d.push(T)}else d.push(s)}}return d}function n(...g){const d=t.getElementsByTagName("meta");for(let l=0;lp.getAttribute(s)).filter(s=>s?g.includes(s):!1);if(O.length&&O){const s=p.getAttribute("content");if(s)return s}}return""}function a(){let g=n("name","og:site_name","og:title","twitter:title");return g||(g=t.title),g}function c(){return n("description","og:description","twitter:description","keywords")}const u=a(),f=c(),K=e.origin,U=o();return{description:f,url:K,icons:U,name:u}}B=y.getWindowMetadata=rt;var i={};Object.defineProperty(i,"__esModule",{value:!0});var A=i.getLocalStorage=V=i.getLocalStorageOrThrow=j=i.getCrypto=F=i.getCryptoOrThrow=R=i.getLocation=P=i.getLocationOrThrow=x=i.getNavigator=D=i.getNavigatorOrThrow=I=i.getDocument=k=i.getDocumentOrThrow=M=i.getFromWindowOrThrow=E=i.getFromWindow=void 0;function h(t){let e;return typeof window<"u"&&typeof window[t]<"u"&&(e=window[t]),e}var E=i.getFromWindow=h;function v(t){const e=h(t);if(!e)throw new Error(`${t} is not defined in Window`);return e}var M=i.getFromWindowOrThrow=v;function nt(){return v("document")}var k=i.getDocumentOrThrow=nt;function it(){return h("document")}var I=i.getDocument=it;function at(){return v("navigator")}var D=i.getNavigatorOrThrow=at;function st(){return h("navigator")}var x=i.getNavigator=st;function ct(){return v("location")}var P=i.getLocationOrThrow=ct;function ut(){return h("location")}var R=i.getLocation=ut;function gt(){return v("crypto")}var F=i.getCryptoOrThrow=gt;function ft(){return h("crypto")}var j=i.getCrypto=ft;function dt(){return v("localStorage")}var V=i.getLocalStorageOrThrow=dt;function lt(){return h("localStorage")}A=i.getLocalStorage=lt;var wt=globalThis&&globalThis.__spreadArrays||function(){for(var t=0,e=0,o=arguments.length;e"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Ot:typeof navigator<"u"?_(navigator.userAgent):$t()}function Wt(t){return t!==""&&yt.reduce(function(e,o){var n=o[0],a=o[1];if(e)return e;var c=a.exec(t);return!!c&&[n,c]},!1)}function _(t){var e=Wt(t);if(!e)return null;var o=e[0],n=e[1];if(o==="searchbot")return new pt;var a=n[1]&&n[1].split(/[._]/).slice(0,3);a?a.length1:!1}function jt(){return L()?Nt()||_t():!1}function Bt(){const t=J();return t&&t.name?t.name.toLowerCase()==="node":!1}function Vt(){return!Bt()&&!!At()}const Jt=E,Kt=M,Ut=k,Xt=I,Gt=D,At=x,Ht=P,Qt=R,zt=F,Yt=j,qt=V,W=A;function Zt(){return B()}function Et(t){if(typeof t!="string")throw new Error(`Cannot safe json parse value of type ${typeof t}`);try{return JSON.parse(t)}catch{return t}}function Mt(t){return typeof t=="string"?t:JSON.stringify(t)}const kt=Et,It=Mt;function Dt(t,e){const o=It(e),n=W();n&&n.setItem(t,o)}function te(t){let e=null,o=null;const n=W();return n&&(o=n.getItem(t)),e=o&&kt(o),e}function ee(t){const e=W();e&&e.removeItem(t)}const xt="WALLETCONNECT_DEEPLINK_CHOICE";function oe(t,e){const o=encodeURIComponent(t);return e.universalLink?`${e.universalLink}/wc?uri=${o}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${o}`:""}function re(t){const e=t.href.split("?")[0];Dt(xt,Object.assign(Object.assign({},t),{href:e}))}function Pt(t,e){return t.filter(o=>o.name.toLowerCase().includes(e.toLowerCase()))[0]}function ne(t,e){let o=t;return e&&(o=e.map(n=>Pt(t,n)).filter(Boolean)),o}export{Bt as A,kt as B,It as C,re as D,te as a,Zt as b,jt as c,J as d,L as e,oe as f,Qt as g,Yt as h,Vt as i,zt as j,Xt as k,Ut as l,xt as m,Jt as n,Kt as o,W as p,qt as q,ee as r,Dt as s,Ht as t,ne as u,Pt as v,At as w,Gt as x,Nt as y,_t as z}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/mobile-122d5339.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/mobile-122d5339.js.meta deleted file mode 100644 index 985aa4b08..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/mobile-122d5339.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 8b127fcd28a5e254fbb3f8d7994e216a -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/mykey-4e0c6565.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/mykey-4e0c6565.js deleted file mode 100644 index da6979fde..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/mykey-4e0c6565.js +++ /dev/null @@ -1,10 +0,0 @@ -const A=` - - - - - - - - -`;export{A as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/mykey-4e0c6565.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/mykey-4e0c6565.js.meta deleted file mode 100644 index 8d414404f..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/mykey-4e0c6565.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 2f0229121ed94a348a502cb230a8b058 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/okxwallet-1c6a2600.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/okxwallet-1c6a2600.js deleted file mode 100644 index 4a8d47fa4..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/okxwallet-1c6a2600.js +++ /dev/null @@ -1,5 +0,0 @@ -const C=` - - - -`;export{C as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/okxwallet-1c6a2600.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/okxwallet-1c6a2600.js.meta deleted file mode 100644 index 410cc23a1..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/okxwallet-1c6a2600.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 46b82c1e98ac8aa4a96da6087ff59268 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/oneInch-104b3cc4.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/oneInch-104b3cc4.js deleted file mode 100644 index b651d0670..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/oneInch-104b3cc4.js +++ /dev/null @@ -1,69 +0,0 @@ -const c=` - - - -`;export{c as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/oneInch-104b3cc4.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/oneInch-104b3cc4.js.meta deleted file mode 100644 index 92ee9197a..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/oneInch-104b3cc4.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: d7ab0eaa9b2cdeb4d8bf091afc9446ff -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/opera-02e3a0e8.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/opera-02e3a0e8.js deleted file mode 100644 index 5121b722e..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/opera-02e3a0e8.js +++ /dev/null @@ -1,21 +0,0 @@ -const o=` - - - - - - - - - - - - - - - - - - - -`;export{o as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/opera-02e3a0e8.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/opera-02e3a0e8.js.meta deleted file mode 100644 index 9a554eb5b..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/opera-02e3a0e8.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 8b366cf0f0369894692a66372299ec25 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/ownbit-fa6734bd.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/ownbit-fa6734bd.js deleted file mode 100644 index b307bfa1a..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/ownbit-fa6734bd.js +++ /dev/null @@ -1,15 +0,0 @@ -const e=` - -Shape Copy -Created with Sketch. - - - - - - - - - - -`;export{e as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/ownbit-fa6734bd.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/ownbit-fa6734bd.js.meta deleted file mode 100644 index e4b9b8c17..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/ownbit-fa6734bd.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 34c3f36a24d1b674b84087eebb0f7731 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/phantom-9b3bd709.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/phantom-9b3bd709.js deleted file mode 100644 index 606c3eac6..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/phantom-9b3bd709.js +++ /dev/null @@ -1,32 +0,0 @@ -const e=` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -`;export{e as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/phantom-9b3bd709.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/phantom-9b3bd709.js.meta deleted file mode 100644 index 8bdeaba54..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/phantom-9b3bd709.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 184b6394238d74b498819aea5c0a4ca6 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/rabby-fc161279.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/rabby-fc161279.js deleted file mode 100644 index 7cc044408..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/rabby-fc161279.js +++ /dev/null @@ -1,24 +0,0 @@ -const e=` - - - - - - - - - - - - - - - - - - - - - - -`;export{e as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/rabby-fc161279.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/rabby-fc161279.js.meta deleted file mode 100644 index c10f7f01d..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/rabby-fc161279.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: a652ddea2fbd23741bb55ec9823116df -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/rainbow-1fe0d81a.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/rainbow-1fe0d81a.js deleted file mode 100644 index e733cd032..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/rainbow-1fe0d81a.js +++ /dev/null @@ -1,66 +0,0 @@ -const a=` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -`;export{a as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/rainbow-1fe0d81a.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/rainbow-1fe0d81a.js.meta deleted file mode 100644 index f79cb4ca8..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/rainbow-1fe0d81a.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 9d18c52c3c03a944a92497331dd86d90 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/safepal-7fa6b910.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/safepal-7fa6b910.js deleted file mode 100644 index 7bb6bfce8..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/safepal-7fa6b910.js +++ /dev/null @@ -1,102 +0,0 @@ -const A=` -`;export{A as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/safepal-7fa6b910.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/safepal-7fa6b910.js.meta deleted file mode 100644 index 958b5f91b..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/safepal-7fa6b910.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: d025996c0abd83a49992a22624b04e25 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/sequence-c07eb3ae.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/sequence-c07eb3ae.js deleted file mode 100644 index e447d396e..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/sequence-c07eb3ae.js +++ /dev/null @@ -1,67 +0,0 @@ -const i=` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -`;export{i as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/sequence-c07eb3ae.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/sequence-c07eb3ae.js.meta deleted file mode 100644 index 9f8292360..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/sequence-c07eb3ae.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: b5763bcffab231a4c9d9a3f6afd52dfd -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/skip-2d52d7ac.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/skip-2d52d7ac.js deleted file mode 100644 index 7b41f88b7..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/skip-2d52d7ac.js +++ /dev/null @@ -1 +0,0 @@ -import{a1 as c,X as A,Y as d,$ as f,aU as g,aX as I,aN as w,ac as b,ai as m}from"./index-b28afd98.js";var _=function(r){c(n,r);function n(t,i){return r.call(this)||this}return n.prototype.schedule=function(t,i){return this},n}(A),l={setInterval:function(r,n){for(var t=[],i=2;i - - - - -`;export{C as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tallywallet-a671320d.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tallywallet-a671320d.js.meta deleted file mode 100644 index 7192e358b..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tallywallet-a671320d.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 330b86d424aa30441b0ebb93049a48ba -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tokenary-f771c254.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tokenary-f771c254.js deleted file mode 100644 index 3d980d04b..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tokenary-f771c254.js +++ /dev/null @@ -1,15 +0,0 @@ -const t=` - - - - - - - - `;export{t as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tokenary-f771c254.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tokenary-f771c254.js.meta deleted file mode 100644 index bb6a80f16..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tokenary-f771c254.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: df7544c4deb0e5a48a268f83175f7ae0 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tokenpocket-a7e81129.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tokenpocket-a7e81129.js deleted file mode 100644 index 82dec9506..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tokenpocket-a7e81129.js +++ /dev/null @@ -1,25 +0,0 @@ -const t=` - - - - - - - - - - - - - - - - - - - - - - - -`;export{t as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tokenpocket-a7e81129.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tokenpocket-a7e81129.js.meta deleted file mode 100644 index af601266b..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tokenpocket-a7e81129.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: f9f2166f86591d645bbab29e7e4059a3 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/torus.esm-d09ce5f9.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/torus.esm-d09ce5f9.js deleted file mode 100644 index 381b513c9..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/torus.esm-d09ce5f9.js +++ /dev/null @@ -1,16 +0,0 @@ -import{o as he,aY as jn,n as pe,aZ as yi,V as Z,U as mi,a_ as mt,a$ as nt,b0 as vi,b1 as Wr,b2 as it,b3 as bi,b4 as Xr,b5 as wi}from"./index-b28afd98.js";function _i(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function Si(e,t){if(e==null)return{};var r=_i(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ve(e){return ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ve(e)}function Ei(e,t){if(ve(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ve(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Un(e){var t=Ei(e,"string");return ve(t)==="symbol"?t:String(t)}function P(e,t,r){return t=Un(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var dt={},Oi={get exports(){return dt},set exports(e){dt=e}};(function(e){(function(t,r){e.exports?e.exports=r():t.log=r()})(he,function(){var t=function(){},r="undefined",n=typeof window!==r&&typeof window.navigator!==r&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"];function o(_,T){var A=_[T];if(typeof A.bind=="function")return A.bind(_);try{return Function.prototype.bind.call(A,_)}catch{return function(){return Function.prototype.apply.apply(A,[_,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function c(_){return _==="debug"&&(_="log"),typeof console===r?!1:_==="trace"&&n?a:console[_]!==void 0?o(console,_):console.log!==void 0?o(console,"log"):t}function d(_,T){for(var A=0;A=0&&L<=E.levels.SILENT){if(U=L,G!==!1&&q(L),d.call(E,L,_),typeof console===r&&L1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n={mode:"cors",headers:{}};r.useAPIKey&&(n.headers=Zr(Zr({},n.headers),Pi()));const i=jn(n,t,{method:"GET"}),o=await Ai(e,i);if(o.ok)return o.json();throw Ti(o),o};function We(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qr(e,t){for(var r=0;r=0;--g){var w=this.tryEntries[g],M=w.completion;if(w.tryLoc==="root")return f("end");if(w.tryLoc<=this.prev){var I=o.call(w,"catchLoc"),x=o.call(w,"finallyLoc");if(I&&x){if(this.prev=0;--f){var g=this.tryEntries[f];if(g.tryLoc<=this.prev&&o.call(g,"finallyLoc")&&this.prev=0;--l){var f=this.tryEntries[l];if(f.finallyLoc===v)return this.complete(f.completion,f.afterLoc),H(f),O}},catch:function(v){for(var l=this.tryEntries.length-1;l>=0;--l){var f=this.tryEntries[l];if(f.tryLoc===v){var g=f.completion;if(g.type==="throw"){var w=g.arg;H(f)}return w}}throw new Error("illegal catch attempt")},delegateYield:function(v,l,f){return this.delegate={iterator:se(v),resultName:l,nextLoc:f},this.method==="next"&&(this.arg=void 0),O}},n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Mi);var ut=Dr(),ee=ut;try{regeneratorRuntime=ut}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=ut:Function("r","regeneratorRuntime = r")(ut)}function Di(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Li(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function lt(e,t,r){return Li()?lt=Reflect.construct.bind():lt=function(i,o,a){var c=[null];c.push.apply(c,o);var d=Function.bind.apply(i,c),m=new d;return a&&Ze(m,a.prototype),m},lt.apply(null,arguments)}function Nr(e){var t=typeof Map=="function"?new Map:void 0;return Nr=function(n){if(n===null||!Di(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return lt(n,arguments,re(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ze(i,n)},Nr(e)}var tn={},Ni={get exports(){return tn},set exports(e){tn=e}},Hr={},$r={};Object.defineProperty($r,"__esModule",{value:!0});function ki(e){var t=4,r=e.length,n=r%t;if(!n)return e;var i=r,o=t-n,a=r+o,c=pe.Buffer.alloc(a);for(c.write(e);o--;)c.write("=",i++);return c.toString()}$r.default=ki;Object.defineProperty(Hr,"__esModule",{value:!0});var Bi=$r;function Hn(e,t){return t===void 0&&(t="utf8"),pe.Buffer.isBuffer(e)?kr(e.toString("base64")):kr(pe.Buffer.from(e,t).toString("base64"))}function ji(e,t){return t===void 0&&(t="utf8"),pe.Buffer.from(Fr(e),"base64").toString(t)}function Fr(e){return e=e.toString(),Bi.default(e).replace(/\-/g,"+").replace(/_/g,"/")}function kr(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Ui(e){return pe.Buffer.from(Fr(e),"base64")}var qe=Hn;qe.encode=Hn;qe.decode=ji;qe.toBase64=Fr;qe.fromBase64=kr;qe.toBuffer=Ui;Hr.default=qe;(function(e){e.exports=Hr.default,e.exports.default=e.exports})(Ni);var $n={};const rn=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];$n.p1600=function(e){for(let t=0;t<24;++t){const r=e[0]^e[10]^e[20]^e[30]^e[40],n=e[1]^e[11]^e[21]^e[31]^e[41],i=e[2]^e[12]^e[22]^e[32]^e[42],o=e[3]^e[13]^e[23]^e[33]^e[43],a=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],m=e[7]^e[17]^e[27]^e[37]^e[47],y=e[8]^e[18]^e[28]^e[38]^e[48],p=e[9]^e[19]^e[29]^e[39]^e[49];let h=y^(i<<1|o>>>31),b=p^(o<<1|i>>>31);const O=e[0]^h,_=e[1]^b,T=e[10]^h,A=e[11]^b,E=e[20]^h,U=e[21]^b,k=e[30]^h,q=e[31]^b,j=e[40]^h,V=e[41]^b;h=r^(a<<1|c>>>31),b=n^(c<<1|a>>>31);const X=e[2]^h,L=e[3]^b,G=e[12]^h,H=e[13]^b,ne=e[22]^h,se=e[23]^b,ie=e[32]^h,C=e[33]^b,v=e[42]^h,l=e[43]^b;h=i^(d<<1|m>>>31),b=o^(m<<1|d>>>31);const f=e[4]^h,g=e[5]^b,w=e[14]^h,M=e[15]^b,I=e[24]^h,x=e[25]^b,$=e[34]^h,z=e[35]^b,J=e[44]^h,s=e[45]^b;h=a^(y<<1|p>>>31),b=c^(p<<1|y>>>31);const u=e[6]^h,S=e[7]^b,R=e[16]^h,B=e[17]^b,D=e[26]^h,N=e[27]^b,_e=e[36]^h,Pe=e[37]^b,Ve=e[46]^h,at=e[47]^b;h=d^(r<<1|n>>>31),b=m^(n<<1|r>>>31);const Te=e[8]^h,Ge=e[9]^b,Me=e[18]^h,Ie=e[19]^b,De=e[28]^h,ye=e[29]^b,fe=e[38]^h,me=e[39]^b,zr=e[48]^h,Yr=e[49]^b,Pt=O,Tt=_,M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t,e[43]=sr^~br&kt,e[4]=Zt^~cr&Sr,e[5]=Qt^~fr&Er,e[14]=Dt^~qt&rr,e[15]=Lt^~Kt&nr,e[24]=ur^~wr&Bt,e[25]=lr^~_r&jt,e[34]=$t^~er&dr,e[35]=Ft^~tr&hr,e[44]=vr^~Nt&Vt,e[45]=br^~kt&Gt,e[6]=cr^~Sr&Pt,e[7]=fr^~Er&Tt,e[16]=qt^~rr&ir,e[17]=Kt^~nr&or,e[26]=wr^~Bt&Ut,e[27]=_r^~jt&xt,e[36]=er^~dr&pr,e[37]=tr^~hr&gr,e[46]=Nt^~Vt&zt,e[47]=kt^~Gt&Yt,e[8]=Sr^~Pt&Wt,e[9]=Er^~Tt&Ht,e[18]=rr^~ir&yr,e[19]=nr^~or&mr,e[28]=Bt^~Ut&Xt,e[29]=jt^~xt&Jt,e[38]=dr^~pr&Mt,e[39]=hr^~gr&It,e[48]=Vt^~zt&ar,e[49]=Gt^~Yt&sr,e[0]^=rn[t*2],e[1]^=rn[t*2+1]}};const ht=$n;function ot(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}ot.prototype.initialize=function(e,t){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1};ot.prototype.absorb=function(e){for(let t=0;t>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(ht.p1600(this.state),this.count=0);return t};ot.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing};var xi=function(){return yi(32).toString("hex")},Fn=Qe;Qe.default=Qe;Qe.stable=Vn;Qe.stableStringify=Vn;var pt="[...]",qn="[Circular]",Ae=[],Re=[];function Kn(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Qe(e,t,r,n){typeof n>"u"&&(n=Kn()),Br(e,"",0,[],void 0,0,n);var i;try{Re.length===0?i=JSON.stringify(e,t,r):i=JSON.stringify(e,Gn(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Ae.length!==0;){var o=Ae.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return i}function Ne(e,t,r,n){var i=Object.getOwnPropertyDescriptor(n,r);i.get!==void 0?i.configurable?(Object.defineProperty(n,r,{value:e}),Ae.push([n,r,t,i])):Re.push([t,r,e]):(n[r]=e,Ae.push([n,r,t]))}function Br(e,t,r,n,i,o,a){o+=1;var c;if(typeof e=="object"&&e!==null){for(c=0;ca.depthLimit){Ne(pt,e,t,i);return}if(typeof a.edgesLimit<"u"&&r+1>a.edgesLimit){Ne(pt,e,t,i);return}if(n.push(e),Array.isArray(e))for(c=0;ct?1:0}function Vn(e,t,r,n){typeof n>"u"&&(n=Kn());var i=jr(e,"",0,[],void 0,0,n)||e,o;try{Re.length===0?o=JSON.stringify(i,t,r):o=JSON.stringify(i,Gn(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Ae.length!==0;){var a=Ae.pop();a.length===4?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return o}function jr(e,t,r,n,i,o,a){o+=1;var c;if(typeof e=="object"&&e!==null){for(c=0;ca.depthLimit){Ne(pt,e,t,i);return}if(typeof a.edgesLimit<"u"&&r+1>a.edgesLimit){Ne(pt,e,t,i);return}if(n.push(e),Array.isArray(e))for(c=0;c0)for(var n=0;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r=1e3&&e<=4999}function zi(e,t){if(t!=="[Circular]")return t}var qr={},we={};Object.defineProperty(we,"__esModule",{value:!0});we.errorValues=we.errorCodes=void 0;we.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};we.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=we,r=be,n=t.errorCodes.rpc.internal,i="Unspecified error message. This is a bug, please report it.",o={code:n,message:a(n)};e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function a(h,b=i){if(Number.isInteger(h)){const O=h.toString();if(p(t.errorValues,O))return t.errorValues[O].message;if(m(h))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return b}e.getMessageFromCode=a;function c(h){if(!Number.isInteger(h))return!1;const b=h.toString();return!!(t.errorValues[b]||m(h))}e.isValidCode=c;function d(h,{fallbackError:b=o,shouldIncludeStack:O=!1}={}){var _,T;if(!b||!Number.isInteger(b.code)||typeof b.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(h instanceof r.EthereumRpcError)return h.serialize();const A={};if(h&&typeof h=="object"&&!Array.isArray(h)&&p(h,"code")&&c(h.code)){const U=h;A.code=U.code,U.message&&typeof U.message=="string"?(A.message=U.message,p(U,"data")&&(A.data=U.data)):(A.message=a(A.code),A.data={originalError:y(h)})}else{A.code=b.code;const U=(_=h)===null||_===void 0?void 0:_.message;A.message=U&&typeof U=="string"?U:b.message,A.data={originalError:y(h)}}const E=(T=h)===null||T===void 0?void 0:T.stack;return O&&h&&E&&typeof E=="string"&&(A.stack=E),A}e.serializeError=d;function m(h){return h>=-32099&&h<=-32e3}function y(h){return h&&typeof h=="object"&&!Array.isArray(h)?Object.assign({},h):h}function p(h,b){return Object.prototype.hasOwnProperty.call(h,b)}})(qr);var vt={};Object.defineProperty(vt,"__esModule",{value:!0});vt.ethErrors=void 0;const Kr=be,Yn=qr,te=we;vt.ethErrors={rpc:{parse:e=>oe(te.errorCodes.rpc.parse,e),invalidRequest:e=>oe(te.errorCodes.rpc.invalidRequest,e),invalidParams:e=>oe(te.errorCodes.rpc.invalidParams,e),methodNotFound:e=>oe(te.errorCodes.rpc.methodNotFound,e),internal:e=>oe(te.errorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return oe(t,e)},invalidInput:e=>oe(te.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>oe(te.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>oe(te.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>oe(te.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>oe(te.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>oe(te.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>ze(te.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>ze(te.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>ze(te.errorCodes.provider.unsupportedMethod,e),disconnected:e=>ze(te.errorCodes.provider.disconnected,e),chainDisconnected:e=>ze(te.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:n}=e;if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string');return new Kr.EthereumProviderError(t,r,n)}}};function oe(e,t){const[r,n]=Xn(t);return new Kr.EthereumRpcError(e,r||Yn.getMessageFromCode(e),n)}function ze(e,t){const[r,n]=Xn(t);return new Kr.EthereumProviderError(e,r||Yn.getMessageFromCode(e),n)}function Xn(e){if(e){if(typeof e=="string")return[e];if(typeof e=="object"&&!Array.isArray(e)){const{message:t,data:r}=e;if(t&&typeof t!="string")throw new Error("Must specify string message.");return[t||void 0,r]}}return[]}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const t=be;Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return t.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return t.EthereumProviderError}});const r=qr;Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return r.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return r.getMessageFromCode}});const n=vt;Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return n.ethErrors}});const i=we;Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return i.errorCodes}})})(de);var ke={},Yi={get exports(){return ke},set exports(e){ke=e}},Xi=Jn;function Jn(e,t){if(e&&t)return Jn(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(n){r[n]=e[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i0;return lo(i,a,c,function(d){r||(r=d),d&&n.forEach(on),!a&&(n.forEach(on),t(r))})});return e.reduce(co)},ft=fo;function ho(e){var t=po();return function(){var n=re(e),i;if(t){var o=re(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Fe(this,i)}}function po(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function st(){}var an="SYN",Rr="ACK",sn="BRK",un=function(e){$e(r,e);var t=ho(r);function r(n){var i,o=n.name,a=n.target,c=n.targetWindow,d=c===void 0?window:c,m=n.targetOrigin,y=m===void 0?"*":m;if(We(this,r),i=t.call(this,{objectMode:!0}),P(Q(i),"_init",void 0),P(Q(i),"_haveSyn",void 0),P(Q(i),"_name",void 0),P(Q(i),"_target",void 0),P(Q(i),"_targetWindow",void 0),P(Q(i),"_targetOrigin",void 0),P(Q(i),"_onMessage",void 0),P(Q(i),"_synIntervalId",void 0),!o||!a)throw new Error("Invalid input.");return i._init=!1,i._haveSyn=!1,i._name=o,i._target=a,i._targetWindow=d,i._targetOrigin=y,i._onMessage=i.onMessage.bind(Q(i)),i._synIntervalId=null,window.addEventListener("message",i._onMessage,!1),i._handShake(),i}return He(r,[{key:"_break",value:function(){this.cork(),this._write(sn,null,st),this._haveSyn=!1,this._init=!1}},{key:"_handShake",value:function(){this._write(an,null,st),this.cork()}},{key:"_onData",value:function(i){if(!this._init)i===an?(this._haveSyn=!0,this._write(Rr,null,st)):i===Rr&&(this._init=!0,this._haveSyn||this._write(Rr,null,st),this.uncork());else if(i===sn)this._break();else try{this.push(i)}catch(o){this.emit("error",o)}}},{key:"_postMessage",value:function(i){var o=this._targetOrigin;this._targetWindow.postMessage({target:this._target,data:i},o)}},{key:"onMessage",value:function(i){var o=i.data;this._targetOrigin!=="*"&&i.origin!==this._targetOrigin||i.source!==this._targetWindow||ve(o)!=="object"||o.target!==this._name||!o.data||this._onData(o.data)}},{key:"_read",value:function(){}},{key:"_write",value:function(i,o,a){this._postMessage(i),a()}},{key:"_destroy",value:function(){window.removeEventListener("message",this._onMessage,!1)}}]),r}(mt.Duplex);function go(e){var t=yo();return function(){var n=re(e),i;if(t){var o=re(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Fe(this,i)}}function yo(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ln(e,t,r){try{Reflect.apply(e,t,r)}catch(n){setTimeout(function(){throw n})}}function mo(e){for(var t=e.length,r=new Array(t),n=0;n1?c-1:0),m=1;m0&&(y=d[0]),y instanceof Error)throw y;var p=new Error("Unhandled error.".concat(y?" (".concat(y.message,")"):""));throw p.context=y,p}var h=a[i];if(h===void 0)return!1;if(typeof h=="function")ln(h,this,d);else for(var b=h.length,O=mo(h),_=0;_"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Ye=function(e){$e(r,e);var t=vo(r);function r(n){var i,o=n.code,a=n.message,c=n.data;if(We(this,r),!Number.isInteger(o))throw new Error("code must be an integer");if(!a||typeof a!="string")throw new Error("message must be string");return i=t.call(this,a),P(Q(i),"code",void 0),P(Q(i),"data",void 0),i.code=o,c!==void 0&&(i.data=c),i}return He(r,[{key:"toString",value:function(){return Fn({code:this.code,message:this.message,data:this.data,stack:this.stack})}}]),r}(Nr(Error));function wo(){var e={};function t(){return!1}var r=new wt;function n(d){var m=e[d.id];if(!m)throw new Error('StreamMiddleware - Unknown response id "'.concat(d.id,'"'));delete e[d.id],Object.assign(m.res,d),setTimeout(m.end)}function i(d){r.emit("notification",d)}function o(d,m,y){var p;try{var h=!d.id;h?i(d):n(d)}catch(b){p=b}y(p)}var a=new mt.Duplex({objectMode:!0,read:t,write:o}),c=function(m,y,p,h){a.push(m),e[m.id]={req:m,res:y,next:p,end:h}};return{events:r,middleware:c,stream:a}}function _o(){return function(e,t,r,n){var i=e.id,o=xi();e.id=o,t.id=o,r(function(a){e.id=i,t.id=i,a()})}}function cn(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=So(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(m){throw m},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,c;return{s:function(){r=r.call(e)},n:function(){var m=r.next();return o=m.done,m},e:function(m){a=!0,c=m},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw c}}}}function So(e,t){if(e){if(typeof e=="string")return fn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fn(e,t)}}function fn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Ro=function(e){$e(r,e);var t=Oo(r);function r(){var n;return We(this,r),n=t.call(this),P(Q(n),"_middleware",void 0),n._middleware=[],n}return He(r,[{key:"push",value:function(i){this._middleware.push(i)}},{key:"handle",value:function(i,o){if(o&&typeof o!="function")throw new Error('"callback" must be a function if provided.');return Array.isArray(i)?o?this._handleBatch(i,o):this._handleBatch(i):o?this._handle(i,o):this._promiseHandle(i)}},{key:"asMiddleware",value:function(){var i=this;return function(){var o=Se(ee.mark(function a(c,d,m,y){var p,h,b,O,_;return ee.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.prev=0,A.next=3,r._runAllMiddleware(c,d,i._middleware);case 3:if(p=A.sent,h=Or(p,3),b=h[0],O=h[1],_=h[2],!O){A.next=12;break}return A.next=11,r._runReturnHandlers(_);case 11:return A.abrupt("return",y(b));case 12:return A.abrupt("return",m(function(){var E=Se(ee.mark(function U(k){return ee.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.prev=0,j.next=3,r._runReturnHandlers(_);case 3:j.next=8;break;case 5:return j.prev=5,j.t0=j.catch(0),j.abrupt("return",k(j.t0));case 8:return j.abrupt("return",k());case 9:case"end":return j.stop()}},U,null,[[0,5]])}));return function(U){return E.apply(this,arguments)}}()));case 15:return A.prev=15,A.t0=A.catch(0),A.abrupt("return",y(A.t0));case 18:case"end":return A.stop()}},a,null,[[0,15]])}));return function(a,c,d,m){return o.apply(this,arguments)}}()}},{key:"_handleBatch",value:function(){var n=Se(ee.mark(function o(a,c){var d;return ee.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.prev=0,y.next=3,Promise.all(a.map(this._promiseHandle.bind(this)));case 3:if(d=y.sent,!c){y.next=6;break}return y.abrupt("return",c(null,d));case 6:return y.abrupt("return",d);case 9:if(y.prev=9,y.t0=y.catch(0),!c){y.next=13;break}return y.abrupt("return",c(y.t0));case 13:throw y.t0;case 14:case"end":return y.stop()}},o,this,[[0,9]])}));function i(o,a){return n.apply(this,arguments)}return i}()},{key:"_promiseHandle",value:function(i){var o=this;return new Promise(function(a){o._handle(i,function(c,d){a(d)})})}},{key:"_handle",value:function(){var n=Se(ee.mark(function o(a,c){var d,m,y,p,h;return ee.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(!(!a||Array.isArray(a)||ve(a)!=="object")){O.next=3;break}return d=new Ye({code:-32603,message:"request must be plain object"}),O.abrupt("return",c(d,{id:void 0,jsonrpc:"2.0",error:d}));case 3:if(typeof a.method=="string"){O.next=6;break}return m=new Ye({code:-32603,message:"method must be string"}),O.abrupt("return",c(m,{id:a.id,jsonrpc:"2.0",error:m}));case 6:return y=Eo({},a),p={id:y.id,jsonrpc:y.jsonrpc},h=null,O.prev=9,O.next=12,this._processRequest(y,p);case 12:O.next=17;break;case 14:O.prev=14,O.t0=O.catch(9),h=O.t0;case 17:return h&&(delete p.result,p.error||(p.error=de.serializeError(h))),O.abrupt("return",c(h,p));case 19:case"end":return O.stop()}},o,this,[[9,14]])}));function i(o,a){return n.apply(this,arguments)}return i}()},{key:"_processRequest",value:function(){var n=Se(ee.mark(function o(a,c){var d,m,y,p,h;return ee.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.next=2,r._runAllMiddleware(a,c,this._middleware);case 2:return d=O.sent,m=Or(d,3),y=m[0],p=m[1],h=m[2],r._checkForCompletion(a,c,p),O.next=10,r._runReturnHandlers(h);case 10:if(!y){O.next=12;break}throw y;case 12:case"end":return O.stop()}},o,this)}));function i(o,a){return n.apply(this,arguments)}return i}()}],[{key:"_runAllMiddleware",value:function(){var n=Se(ee.mark(function o(a,c,d){var m,y,p,h,b,O,_,T;return ee.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:m=[],y=null,p=!1,h=cn(d),E.prev=4,h.s();case 6:if((b=h.n()).done){E.next=18;break}return O=b.value,E.next=10,r._runMiddleware(a,c,O,m);case 10:if(_=E.sent,T=Or(_,2),y=T[0],p=T[1],!p){E.next=16;break}return E.abrupt("break",18);case 16:E.next=6;break;case 18:E.next=23;break;case 20:E.prev=20,E.t0=E.catch(4),h.e(E.t0);case 23:return E.prev=23,h.f(),E.finish(23);case 26:return E.abrupt("return",[y,p,m.reverse()]);case 27:case"end":return E.stop()}},o,null,[[4,20,23,26]])}));function i(o,a,c){return n.apply(this,arguments)}return i}()},{key:"_runMiddleware",value:function(i,o,a,c){return new Promise(function(d){var m=function(h){var b=h||o.error;b&&(o.error=de.serializeError(b)),d([b,!0])},y=function(h){o.error?m(o.error):(h&&(typeof h!="function"&&m(new Ye({code:-32603,message:"JRPCEngine: 'next' return handlers must be functions"})),c.push(h)),d([null,!1]))};try{a(i,o,y,m)}catch(p){m(p)}})}},{key:"_runReturnHandlers",value:function(){var n=Se(ee.mark(function o(a){var c,d,m;return ee.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:c=cn(a),p.prev=1,m=ee.mark(function h(){var b;return ee.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return b=d.value,_.next=3,new Promise(function(T,A){b(function(E){return E?A(E):T()})});case 3:case"end":return _.stop()}},h)}),c.s();case 4:if((d=c.n()).done){p.next=8;break}return p.delegateYield(m(),"t0",6);case 6:p.next=4;break;case 8:p.next=13;break;case 10:p.prev=10,p.t1=p.catch(1),c.e(p.t1);case 13:return p.prev=13,c.f(),p.finish(13);case 16:case"end":return p.stop()}},o,null,[[1,10,13,16]])}));function i(o){return n.apply(this,arguments)}return i}()},{key:"_checkForCompletion",value:function(i,o,a){if(!("result"in o)&&!("error"in o))throw new Ye({code:-32603,message:"Response has no error or result for request"});if(!a)throw new Ye({code:-32603,message:"Nothing ended request"})}}]),r}(wt);function Ao(e){var t=Po();return function(){var n=re(e),i;if(t){var o=re(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Fe(this,i)}}function Po(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var To=function(e){$e(r,e);var t=Ao(r);function r(n){var i,o=n.parent,a=n.name;return We(this,r),i=t.call(this,{objectMode:!0}),P(Q(i),"_parent",void 0),P(Q(i),"_name",void 0),i._parent=o,i._name=a,i}return He(r,[{key:"_read",value:function(){}},{key:"_write",value:function(i,o,a){this._parent.push({name:this._name,data:i}),a()}}]),r}(mt.Duplex);function hn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pn(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var gn=Symbol("IGNORE_SUBSTREAM"),ti=function(e){$e(r,e);var t=Mo(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return We(this,r),n=t.call(this,pn(pn({},i),{},{objectMode:!0})),P(Q(n),"_substreams",void 0),P(Q(n),"getStream",void 0),n._substreams={},n}return He(r,[{key:"createStream",value:function(i){if(!i)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[i])throw new Error('ObjectMultiplex - Substream for name "'.concat(i,'" already exists'));var o=new To({parent:this,name:i});return this._substreams[i]=o,Do(this,function(a){return o.destroy(a||void 0)}),o}},{key:"ignoreStream",value:function(i){if(!i)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[i])throw new Error('ObjectMultiplex - Substream for name "'.concat(i,'" already exists'));this._substreams[i]=gn}},{key:"_read",value:function(){}},{key:"_write",value:function(i,o,a){var c=i.name,d=i.data;if(!c)return window.console.warn('ObjectMultiplex - malformed chunk without name "'.concat(i,'"')),a();var m=this._substreams[c];return m?(m!==gn&&m.push(d),a()):(window.console.warn('ObjectMultiplex - orphaned data for stream "'.concat(c,'"')),a())}}]),r}(mt.Duplex);function Do(e,t){var r=ke(t);Ur(e,{readable:!1},r),Ur(e,{writable:!1},r)}function Lo(e){var t=new ti;return t.getStream=function(n){return this._substreams[n]?this._substreams[n]:this.createStream(n)},ft(e,t,e,function(r){r&&window.console.error(r)}),t}var xr={},_t={};Object.defineProperty(_t,"__esModule",{value:!0});_t.storeAsStream=void 0;const No=vi;class ko extends No.Duplex{constructor(t){super({objectMode:!0}),this.resume(),this.handler=r=>this.push(r),this.obsStore=t,this.obsStore.subscribe(this.handler)}pipe(t,r){const n=super.pipe(t,r);return t.write(this.obsStore.getState()),n}_write(t,r,n){this.obsStore.putState(t),n()}_read(t){}_destroy(t,r){this.obsStore.unsubscribe(this.handler),super._destroy(t,r)}}function Bo(e){return new ko(e)}_t.storeAsStream=Bo;var St={},Ke={},Vr={};Object.defineProperty(Vr,"__esModule",{value:!0});const jo=nt;function yn(e,t,r){try{Reflect.apply(e,t,r)}catch(n){setTimeout(()=>{throw n})}}function Uo(e){const t=e.length,r=new Array(t);for(let n=0;n0&&([a]=r),a instanceof Error)throw a;const c=new Error(`Unhandled error.${a?` (${a.message})`:""}`);throw c.context=a,c}const o=i[t];if(o===void 0)return!1;if(typeof o=="function")yn(o,this,r);else{const a=o.length,c=Uo(o);for(let d=0;d{const n=this._children[r];this._addChild(r,n)})}_addChild(t,r){const n=i=>{const o=this.getState();o[t]=i,this.putState(o)};r.subscribe(n),n(r.getState())}}St.ComposedStore=qo;var Et={};Object.defineProperty(Et,"__esModule",{value:!0});Et.MergedStore=void 0;const Ko=Ke;class Vo extends Ko.ObservableStore{constructor(t=[]){super({}),this._children=t,t.forEach(r=>this._addChild(r)),this._updateWholeState()}_addChild(t){t.subscribe(()=>this._updateWholeState())}_updateWholeState(){const t=this._children.map(n=>n.getState()),r=Object.assign({},...t);this.putState(r)}}Et.MergedStore=Vo;var Ot={},tt={},Go={get exports(){return tt},set exports(e){tt=e}},gt={},zo={get exports(){return gt},set exports(e){gt=e}},Be={},mn={get exports(){return Be},set exports(e){Be=e}};typeof Z>"u"||!Z.version||Z.version.indexOf("v0.")===0||Z.version.indexOf("v1.")===0&&Z.version.indexOf("v1.8.")!==0?mn.exports={nextTick:Yo}:mn.exports=Z;function Yo(e,t,r,n){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,o,a;switch(i){case 0:case 1:return Z.nextTick(e);case 2:return Z.nextTick(function(){e.call(null,t)});case 3:return Z.nextTick(function(){e.call(null,t,r)});case 4:return Z.nextTick(function(){e.call(null,t,r,n)});default:for(o=new Array(i-1),a=0;a"u"}K.isPrimitive=da;K.isBuffer=pe.Buffer.isBuffer;function Ct(e){return Object.prototype.toString.call(e)}var yt={},ha={get exports(){return yt},set exports(e){yt=e}},vn;function pa(){return vn||(vn=1,function(e){function t(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}var r=je.Buffer,n=Wr;function i(o,a,c){o.copy(a,c)}e.exports=function(){function o(){t(this,o),this.head=null,this.tail=null,this.length=0}return o.prototype.push=function(c){var d={data:c,next:null};this.length>0?this.tail.next=d:this.head=d,this.tail=d,++this.length},o.prototype.unshift=function(c){var d={data:c,next:this.head};this.length===0&&(this.tail=d),this.head=d,++this.length},o.prototype.shift=function(){if(this.length!==0){var c=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,c}},o.prototype.clear=function(){this.head=this.tail=null,this.length=0},o.prototype.join=function(c){if(this.length===0)return"";for(var d=this.head,m=""+d.data;d=d.next;)m+=c+d.data;return m},o.prototype.concat=function(c){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var d=r.allocUnsafe(c>>>0),m=this.head,y=0;m;)i(m.data,d,y),y+=m.data.length,m=m.next;return d},o}(),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var o=n.inspect({length:this.length});return this.constructor.name+" "+o})}(ha)),yt}var bn=Be;function ga(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(!this._writableState||!this._writableState.errorEmitted)&&bn.nextTick(wn,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!t&&o?(bn.nextTick(wn,r,o),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(o)}),this)}function ya(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function wn(e,t){e.emit("error",t)}var ni={destroy:ga,undestroy:ya},Ar,_n;function ii(){if(_n)return Ar;_n=1;var e=Be;Ar=_;function t(l){var f=this;this.next=null,this.entry=null,this.finish=function(){v(f,l)}}var r=!Z.browser&&["v0.10","v0.9."].indexOf(Z.version.slice(0,5))>-1?setImmediate:e.nextTick,n;_.WritableState=b;var i=Object.create(K);i.inherits=it;var o={deprecate:bi},a=ri,c=je.Buffer,d=he.Uint8Array||function(){};function m(l){return c.from(l)}function y(l){return c.isBuffer(l)||l instanceof d}var p=ni;i.inherits(_,a);function h(){}function b(l,f){n=n||Ue(),l=l||{};var g=f instanceof n;this.objectMode=!!l.objectMode,g&&(this.objectMode=this.objectMode||!!l.writableObjectMode);var w=l.highWaterMark,M=l.writableHighWaterMark,I=this.objectMode?16:16*1024;w||w===0?this.highWaterMark=w:g&&(M||M===0)?this.highWaterMark=M:this.highWaterMark=I,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var x=l.decodeStrings===!1;this.decodeStrings=!x,this.defaultEncoding=l.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function($){V(f,$)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}b.prototype.getBuffer=function(){for(var f=this.bufferedRequest,g=[];f;)g.push(f),f=f.next;return g},function(){try{Object.defineProperty(b.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var O;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(O=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(l){return O.call(this,l)?!0:this!==_?!1:l&&l._writableState instanceof b}})):O=function(l){return l instanceof this};function _(l){if(n=n||Ue(),!O.call(_,this)&&!(this instanceof n))return new _(l);this._writableState=new b(l,this),this.writable=!0,l&&(typeof l.write=="function"&&(this._write=l.write),typeof l.writev=="function"&&(this._writev=l.writev),typeof l.destroy=="function"&&(this._destroy=l.destroy),typeof l.final=="function"&&(this._final=l.final)),a.call(this)}_.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function T(l,f){var g=new Error("write after end");l.emit("error",g),e.nextTick(f,g)}function A(l,f,g,w){var M=!0,I=!1;return g===null?I=new TypeError("May not write null values to stream"):typeof g!="string"&&g!==void 0&&!f.objectMode&&(I=new TypeError("Invalid non-string/buffer chunk")),I&&(l.emit("error",I),e.nextTick(w,I),M=!1),M}_.prototype.write=function(l,f,g){var w=this._writableState,M=!1,I=!w.objectMode&&y(l);return I&&!c.isBuffer(l)&&(l=m(l)),typeof f=="function"&&(g=f,f=null),I?f="buffer":f||(f=w.defaultEncoding),typeof g!="function"&&(g=h),w.ended?T(this,g):(I||A(this,w,l,g))&&(w.pendingcb++,M=U(this,w,I,l,f,g)),M},_.prototype.cork=function(){var l=this._writableState;l.corked++},_.prototype.uncork=function(){var l=this._writableState;l.corked&&(l.corked--,!l.writing&&!l.corked&&!l.finished&&!l.bufferProcessing&&l.bufferedRequest&&G(this,l))},_.prototype.setDefaultEncoding=function(f){if(typeof f=="string"&&(f=f.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((f+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+f);return this._writableState.defaultEncoding=f,this};function E(l,f,g){return!l.objectMode&&l.decodeStrings!==!1&&typeof f=="string"&&(f=c.from(f,g)),f}Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function U(l,f,g,w,M,I){if(!g){var x=E(f,w,M);w!==x&&(g=!0,M="buffer",w=x)}var $=f.objectMode?1:w.length;f.length+=$;var z=f.length0?(typeof u!="string"&&!D.objectMode&&Object.getPrototypeOf(u)!==o.prototype&&(u=c(u)),R?D.endEmitted?s.emit("error",new Error("stream.unshift() after end event")):k(s,D,u,!0):D.ended?s.emit("error",new Error("stream.push() after EOF")):(D.reading=!1,D.decoder&&!S?(u=D.decoder.write(u),D.objectMode||u.length!==0?k(s,D,u,!1):se(s,D)):k(s,D,u,!1))):R||(D.reading=!1)}return j(D)}function k(s,u,S,R){u.flowing&&u.length===0&&!u.sync?(s.emit("data",S),s.read(0)):(u.length+=u.objectMode?1:S.length,R?u.buffer.unshift(S):u.buffer.push(S),u.needReadable&&H(s)),se(s,u)}function q(s,u){var S;return!d(u)&&typeof u!="string"&&u!==void 0&&!s.objectMode&&(S=new TypeError("Invalid non-string/buffer chunk")),S}function j(s){return!s.ended&&(s.needReadable||s.length=V?s=V:(s--,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s++),s}function L(s,u){return s<=0||u.length===0&&u.ended?0:u.objectMode?1:s!==s?u.flowing&&u.length?u.buffer.head.data.length:u.length:(s>u.highWaterMark&&(u.highWaterMark=X(s)),s<=u.length?s:u.ended?u.length:(u.needReadable=!0,0))}E.prototype.read=function(s){p("read",s),s=parseInt(s,10);var u=this._readableState,S=s;if(s!==0&&(u.emittedReadable=!1),s===0&&u.needReadable&&(u.length>=u.highWaterMark||u.ended))return p("read: emitReadable",u.length,u.ended),u.length===0&&u.ended?$(this):H(this),null;if(s=L(s,u),s===0&&u.ended)return u.length===0&&$(this),null;var R=u.needReadable;p("need readable",R),(u.length===0||u.length-s0?B=w(s,u):B=null,B===null?(u.needReadable=!0,s=0):u.length-=s,u.length===0&&(u.ended||(u.needReadable=!0),S!==s&&u.ended&&$(this)),B!==null&&this.emit("data",B),B};function G(s,u){if(!u.ended){if(u.decoder){var S=u.decoder.end();S&&S.length&&(u.buffer.push(S),u.length+=u.objectMode?1:S.length)}u.ended=!0,H(s)}}function H(s){var u=s._readableState;u.needReadable=!1,u.emittedReadable||(p("emitReadable",u.flowing),u.emittedReadable=!0,u.sync?e.nextTick(ne,s):ne(s))}function ne(s){p("emit readable"),s.emit("readable"),g(s)}function se(s,u){u.readingMore||(u.readingMore=!0,e.nextTick(ie,s,u))}function ie(s,u){for(var S=u.length;!u.reading&&!u.flowing&&!u.ended&&u.length1&&J(R.pipes,s)!==-1)&&!Ve&&(p("false write response, pause",S._readableState.awaitDrain),S._readableState.awaitDrain++,Te=!0),S.pause())}function Me(fe){p("onerror",fe),ye(),s.removeListener("error",Me),n(s,"error")===0&&s.emit("error",fe)}T(s,"error",Me);function Ie(){s.removeListener("finish",De),ye()}s.once("close",Ie);function De(){p("onfinish"),s.removeListener("close",Ie),ye()}s.once("finish",De);function ye(){p("unpipe"),S.unpipe(s)}return s.emit("pipe",S),R.flowing||(p("pipe resume"),S.resume()),s};function C(s){return function(){var u=s._readableState;p("pipeOnDrain",u.awaitDrain),u.awaitDrain&&u.awaitDrain--,u.awaitDrain===0&&n(s,"data")&&(u.flowing=!0,g(s))}}E.prototype.unpipe=function(s){var u=this._readableState,S={hasUnpiped:!1};if(u.pipesCount===0)return this;if(u.pipesCount===1)return s&&s!==u.pipes?this:(s||(s=u.pipes),u.pipes=null,u.pipesCount=0,u.flowing=!1,s&&s.emit("unpipe",this,S),this);if(!s){var R=u.pipes,B=u.pipesCount;u.pipes=null,u.pipesCount=0,u.flowing=!1;for(var D=0;D=u.length?(u.decoder?S=u.buffer.join(""):u.buffer.length===1?S=u.buffer.head.data:S=u.buffer.concat(u.length),u.buffer.clear()):S=M(s,u.buffer,u.decoder),S}function M(s,u,S){var R;return sD.length?D.length:s;if(N===D.length?B+=D:B+=D.slice(0,s),s-=N,s===0){N===D.length?(++R,S.next?u.head=S.next:u.head=u.tail=null):(u.head=S,S.data=D.slice(N));break}++R}return u.length-=R,B}function x(s,u){var S=o.allocUnsafe(s),R=u.head,B=1;for(R.data.copy(S),s-=R.data.length;R=R.next;){var D=R.data,N=s>D.length?D.length:s;if(D.copy(S,S.length-s,0,N),s-=N,s===0){N===D.length?(++B,R.next?u.head=R.next:u.head=u.tail=null):(u.head=R,R.data=D.slice(N));break}++B}return u.length-=B,S}function $(s){var u=s._readableState;if(u.length>0)throw new Error('"endReadable()" called on non-empty stream');u.endEmitted||(u.ended=!0,e.nextTick(z,u,s))}function z(s,u){!s.endEmitted&&s.length===0&&(s.endEmitted=!0,u.readable=!1,u.emit("end"))}function J(s,u){for(var S=0,R=s.length;S{try{const i=e(t);n(null,i);return}catch(i){n(i);return}})}Ot.storeTransformStream=Ca;(function(e){var t=he&&he.__createBinding||(Object.create?function(n,i,o,a){a===void 0&&(a=o),Object.defineProperty(n,a,{enumerable:!0,get:function(){return i[o]}})}:function(n,i,o,a){a===void 0&&(a=o),n[a]=i[o]}),r=he&&he.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&t(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),r(_t,e),r(St,e),r(Et,e),r(Ke,e),r(Ot,e)})(xr);var Ra=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r};const ce=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";ce.writable=e=>ce(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";ce.readable=e=>ce(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";ce.duplex=e=>ce.writable(e)&&ce.readable(e);ce.transform=e=>ce.duplex(e)&&typeof e._transform=="function";var Aa=ce;const Xe={GOOGLE:"google",FACEBOOK:"facebook",TWITCH:"twitch",REDDIT:"reddit",DISCORD:"discord"},Oe={GOOGLE:"google",FACEBOOK:"facebook",TWITCH:"twitch",REDDIT:"reddit",DISCORD:"discord",EMAIL_PASSWORDLESS:"torus-auth0-email-passwordless"},Cn={[Oe.GOOGLE]:"tkey-google",[Oe.FACEBOOK]:"tkey-facebook",[Oe.TWITCH]:"tkey-twitch",[Oe.REDDIT]:"tkey-reddit",[Oe.DISCORD]:"tkey-discord",[Oe.EMAIL_PASSWORDLESS]:"tkey-auth0-email-passwordless"},F={MOONPAY:"moonpay",WYRE:"wyre",RAMPNETWORK:"rampnetwork",XANPOOL:"xanpool",MERCURYO:"mercuryo",TRANSAK:"transak",BANXA:"banxa"},Y={MAINNET:"mainnet",MATIC:"matic",BSC_MAINNET:"bsc_mainnet",AVALANCHE_MAINNET:"avalanche_mainnet",XDAI:"xdai"},Pa={PRODUCTION:"production",DEVELOPMENT:"development",BINANCE:"binance",TESTING:"testing",LRC:"lrc",BETA:"beta",BNB:"bnb",POLYGON:"polygon"},Le={BOTTOM_LEFT:"bottom-left",TOP_LEFT:"top-left",BOTTOM_RIGHT:"bottom-right",TOP_RIGHT:"top-right"},Ta=["ETH","USDT","USDC","TUSD","EOSDT","USD","DAI","GUSD","DKKT","PAX","ILS","RUB","BYN","EUR","GBP","JPY","KRW","PLN","MXN","AUD","BRL","CAD","CHF","KPW","LAK","LBP","LKR","XOF","CNHT","DOGE","UAH","TRY","HKD","XJP","SGD","USC","NZD","NGN","RUR","COP","GHS","EGP","IDR","BHD","CRC","PEN","AED","DOP","PKR","HUF","VND","XAR","LTC","RON","OMR","MYR","DKK","UGX","ZMW","SAR","SEK","GEL","RWF","IRR","TZS","CNY","VEF","BDT","HRK","CLP","THB","XAF","ARS","UYU","SZL","KZT","NOK","KES","PAB","INR","CZK","MAD","TWD","PHP","ZAR","BOB","CDF","DASH","VES","ISK","MWK","BAM","TTD","XRP","JOD","RSD","HNL","BGN","GTQ","BWP","XMR","MMK","QAR","AOA","KWD","MUR","WUSD","WEUR","WAVES","WTRY","LRD","LSL","LYD","AWG","MDL","BTO","EURS","CHFT","MKD","MNT","MOP","MRO","MVR","VOLLAR","CKUSD","KHR","VUV","BITCNY","QC","BBD","NAD","NPR","PGK","PYG","BIF","BMD","BND","XLM","BNB","SCR","BAT","CRO","HT","KCS","LEO","LINK","MKR","NPXS","OMG","REP","ZB","ZIL","ZRX","BCH","BZD","CUP","CVE","DJF","DZD","ERN","ETB","FJD","FKP","BUSD","ANCT","ALL","AMD","ANG","CNYX","IQD","UZS","TND","GGP","XAU","KGS","GIP","JMD","ZEC","USDP","BSV","EMC2","SNT","GTO","POWR","EUSD","EURT","BCY","BTS","ATM","BLOCKPAY","ARDR","AMP","B2X","BITGOLD","BITEUR","ATB","BITUSD","AGRS","DFXT","HIKEN","BIX","KNC","EOS","COB","COSS","BMH","NANO","BDG","BNT","XVG","LKK1Y","LKK","USDK","EURN","NZDT","JSE","GMD","GNF","GYD","YER","XPF","HTG","SLL","SOS","WST","SVC","SYP","NEO","KMF","JUMP","AYA","BLAST","WGR","BCN","BTG","URALS","INN","USDQ","CNH","HUSD","BKRW","NZDX","EURX","CADX","USDEX","JPYX","AUDX","VNDC","EON","GBPX","CHFX","USDJ","IDRT","USDS","USDN","BIDR","IDK","BSD","BTN","KYD","NIO","SBD","SDG","SHP","TOP","XCD","XCHF","CNYT","GYEN","ZUSD","GOLD","TRX","TRYB","PLATC","STRAX","UST","GLM","VAI","BRZ","DDRST","XAUT","MIM"],Ma={[F.MOONPAY]:["AUD","BGN","BRL","CAD","CHF","CNY","COP","CZK","DKK","DOP","EGP","EUR","GBP","HKD","HRK","IDR","ILS","JPY","JOD","KES","KRW","KWD","LKR","MAD","MXN","MYR","NGN","NOK","NZD","OMR","PEN","PKR","PLN","RON","RUB","SEK","SGD","THB","TRY","TWD","USD","VND","ZAR"],[F.WYRE]:["USD","EUR","GBP","AUD","CAD","NZD","ARS","BRL","CHF","CLP","COP","CZK","DKK","HKD","ILS","INR","ISK","JPY","KRW","MXN","MYR","NOK","PHP","PLN","SEK","THB","VND","ZAR"],[F.RAMPNETWORK]:["USD","EUR","GBP"],[F.XANPOOL]:["SGD","HKD","THB","PHP","INR","IDR","MYR","AUD","NZD","KRW"],[F.MERCURYO]:["EUR","USD","GBP","TRY","JPY","BRL","NGN","VND","MXN","KRW"],[F.TRANSAK]:["ARS","AUD","BBD","BGN","BMD","BRL","CAD","CHF","CLP","CRC","CZK","DKK","DOP","EUR","FJD","FKP","GBP","GIP","HRK","HUF","IDR","ILS","ISK","JMD","JPY","KES","KRW","MDL","MXN","MYR","NOK","NZD","PEN","PHP","PLN","PYG","RON","SEK","SGD","THB","TRY","TZS","USD","ZAR"],[F.BANXA]:["EUR","GBP","USD"]},Ia=new Set(Ta);function Ee(e){return Ma[e].filter(r=>Ia.has(r))}const Da={[F.MOONPAY]:{line1:"Credit/ Debit Card/ Apple Pay",line2:"4.5% or 5 USD",line3:"2,000€/day, 10,000€/mo",supportPage:"https://help.moonpay.io/en/",minOrderValue:24.99,maxOrderValue:5e4,validCurrencies:Ee(F.MOONPAY),validCryptoCurrenciesByChain:{[Y.MAINNET]:[{value:"aave",display:"AAVE"},{value:"bat",display:"BAT"},{value:"dai",display:"DAI"},{value:"eth",display:"ETH"},{value:"mkr",display:"MKR"},{value:"matic",display:"MATIC"},{value:"usdt",display:"USDT"},{value:"usdc",display:"USDC"}],[Y.MATIC]:[{value:"eth_polygon",display:"ETH"},{value:"matic_polygon",display:"MATIC"},{value:"usdc_polygon",display:"USDC"}],[Y.BSC_MAINNET]:[{value:"bnb_bsc",display:"BNB"},{value:"busd_bsc",display:"BUSD"}],[Y.AVALANCHE_MAINNET]:[{value:"avax_cchain",display:"AVAX"}]},includeFees:!0,api:!0,enforceMax:!1},[F.WYRE]:{line1:"Apple Pay/ Debit/ Credit Card",line2:"4.9% + 30¢ or 5 USD",line3:"$250/day",supportPage:"https://support.sendwyre.com/en/",minOrderValue:5,maxOrderValue:500,validCurrencies:Ee(F.WYRE),validCryptoCurrenciesByChain:{[Y.MAINNET]:[{value:"AAVE",display:"AAVE"},{value:"BAT",display:"BAT"},{value:"BUSD",display:"BUSD"},{value:"DAI",display:"DAI"},{value:"ETH",display:"ETH"},{value:"MKR",display:"MKR"},{value:"UNI",display:"UNI"},{value:"USDC",display:"USDC"},{value:"USDT",display:"USDT"}],[Y.MATIC]:[{value:"MUSDC",display:"USDC"}],[Y.AVALANCHE_MAINNET]:[{value:"AVAXC",display:"AVAXC"}]},includeFees:!1,api:!0,enforceMax:!1},[F.RAMPNETWORK]:{line1:"Debit Card/
Apple Pay/ Bank transfer",line2:"0.49% - 2.9%",line3:"5,000€/purchase, 20,000€/mo",supportPage:"https://instant.ramp.network/",minOrderValue:50,maxOrderValue:2e4,validCurrencies:Ee(F.RAMPNETWORK),validCryptoCurrenciesByChain:{[Y.MAINNET]:[{value:"ETH",display:"ETH"},{value:"DAI",display:"DAI"},{value:"USDC",display:"USDC"},{value:"USDT",display:"USDT"}],[Y.MATIC]:[{value:"MATIC_DAI",display:"DAI"},{value:"MATIC_MATIC",display:"MATIC"},{value:"MATIC_USDC",display:"USDC"}],[Y.AVALANCHE_MAINNET]:[{value:"AVAX",display:"AVAX"}]},includeFees:!0,api:!0,receiveHint:"walletTopUp.receiveHintRamp",enforceMax:!1},[F.XANPOOL]:{line1:"PayNow/ InstaPay/ FPS/ GoJekPay/ UPI/ PromptPay/
ViettelPay/ DuitNow",line2:"2.5% buying, 3% selling",line3:"$2,500 / day",supportPage:"mailto:support@xanpool.com",minOrderValue:100,maxOrderValue:2500,validCurrencies:Ee(F.XANPOOL),validCryptoCurrenciesByChain:{[Y.MAINNET]:[{value:"ETH",display:"ETH"},{value:"USDT",display:"USDT"}]},includeFees:!0,api:!0,sell:!0,enforceMax:!1},[F.MERCURYO]:{line1:"Credit/ Debit Card/ Apple Pay",line2:"3.95% or 4 USD",line3:"10,000€/day, 25,000€/mo",supportPage:"mailto:support@mercuryo.io",minOrderValue:30,maxOrderValue:5e3,validCurrencies:Ee(F.MERCURYO),validCryptoCurrenciesByChain:{[Y.MAINNET]:[{value:"ETH",display:"ETH"},{value:"BAT",display:"BAT"},{value:"USDT",display:"USDT"},{value:"DAI",display:"DAI"}],[Y.BSC_MAINNET]:[{value:"BNB",display:"BNB"},{value:"BUSD",display:"BUSD"},{value:"1INCH",display:"1INCH"}]},includeFees:!0,api:!0,enforceMax:!1},[F.TRANSAK]:{line1:"Apple & Google Pay / Credit/Debit Card
Bangkok Bank Mobile & iPay
Bank Transfer (sepa/gbp) / SCB Mobile & Easy",line2:"0.99% - 5.5% or 5 USD",line3:"$5,000/day, $28,000/mo",supportPage:"https://support.transak.com/hc/en-US",minOrderValue:30,maxOrderValue:500,validCurrencies:Ee(F.TRANSAK),validCryptoCurrenciesByChain:{[Y.MAINNET]:[{value:"AAVE",display:"AAVE"},{value:"DAI",display:"DAI"},{value:"ETH",display:"ETH"},{value:"USDC",display:"USDC"},{value:"USDT",display:"USDT"}],[Y.MATIC]:[{value:"AAVE",display:"AAVE"},{value:"DAI",display:"DAI"},{value:"MATIC",display:"MATIC"},{value:"USDC",display:"USDC"},{value:"USDT",display:"USDT"},{value:"WETH",display:"WETH"}],[Y.BSC_MAINNET]:[{value:"BNB",display:"BNB"},{value:"BUSD",display:"BUSD"}],[Y.AVALANCHE_MAINNET]:[{value:"AVAX",display:"AVAX"}]},includeFees:!0,enforceMax:!0},[F.BANXA]:{line1:"Debit Card/
Apple Pay/ Bank transfer",line2:"0.49% - 2.9%",line3:"5,000€/purchase, 20,000€/mo",supportPage:"https://support.banxa.com",minOrderValue:20,maxOrderValue:15e3,validCurrencies:Ee(F.BANXA),validCryptoCurrenciesByChain:{[Y.MAINNET]:[{value:"ETH",display:"ETH"},{value:"USDT",display:"USDT"},{value:"BUSD",display:"BUSD"},{value:"LINK",display:"LINK"},{value:"USDC",display:"USDC"},{value:"CHZ",display:"CHZ"},{value:"BAT",display:"BAT"},{value:"MANA",display:"MANA"},{value:"AAVE",display:"AAVE"},{value:"COMP",display:"COMP"},{value:"ENJ",display:"ENJ"}],[Y.MATIC]:[{value:"MATIC",display:"MATIC"}]},includeFees:!0,enforceMax:!0}},La={en:{embed:{continue:"Continue",actionRequired:"Authorization required",pendingAction:"Click continue to proceed with your request in a popup",cookiesRequired:"Cookies Required",enableCookies:"Please enable cookies in your browser preferences to access Torus",clickHere:"More Info"}},de:{embed:{continue:"Fortsetzen",actionRequired:"Autorisierung erforderlich",pendingAction:"Klicken Sie in einem Popup auf Weiter, um mit Ihrer Anfrage fortzufahren",cookiesRequired:"Cookies benötigt",enableCookies:"Bitte aktivieren Sie Cookies in Ihren Browsereinstellungen, um auf Torus zuzugreifen",clickHere:"Mehr Info"}},ja:{embed:{continue:"継続する",actionRequired:"認証が必要です",pendingAction:"続行をクリックして、ポップアップでリクエストを続行します",cookiesRequired:"必要なクッキー",enableCookies:"Torusにアクセスするには、ブラウザの設定でCookieを有効にしてください。",clickHere:"詳しくは"}},ko:{embed:{continue:"계속하다",actionRequired:"승인 필요",pendingAction:"팝업에서 요청을 진행하려면 계속을 클릭하십시오.",cookiesRequired:"쿠키 필요",enableCookies:"브라우저 환경 설정에서 쿠키를 활성화하여 Torus에 액세스하십시오.",clickHere:"더 많은 정보"}},zh:{embed:{continue:"继续",actionRequired:"需要授权",pendingAction:"单击继续以在弹出窗口中继续您的请求",cookiesRequired:"必填Cookie",enableCookies:"请在您的浏览器首选项中启用cookie以访问Torus。",clickHere:"更多信息"}}};var le={supportedVerifierList:Object.values(Oe),paymentProviders:Da,api:"https://api.tor.us",translations:La,prodTorusUrl:"",localStorageKeyPrefix:"torus-"};const Rn=e=>new Promise((t,r)=>{window.document.body!=null?Promise.resolve(e()).then(t).catch(r):window.document.addEventListener("DOMContentLoaded",()=>{Promise.resolve(e()).then(t).catch(r)})}),Je=e=>{const t=window.document.createElement("template"),r=e.trim();return t.innerHTML=r,t.content.firstChild},Na=function(e,t,r){for(var n=arguments.length,i=new Array(n>3?n-3:0),o=3;o{r(...i),e.removeEventListener(t,a)};e.addEventListener(t,a)},ue=(e,t,r)=>{const n=i=>{r(i),e.removeListener(t,n)};e.on(t,n)};async function ka(){return new Promise(e=>{document.readyState!=="loading"?e():Na(document,"DOMContentLoaded",e)})}var W=xn.getLogger("torus-embed"),ae={errors:{disconnected:()=>"Torus: Lost connection to Torus.",permanentlyDisconnected:()=>"Torus: Disconnected from iframe. Page reload required.",sendSiteMetadata:()=>"Torus: Failed to send site metadata. This is an internal error, please report this bug.",unsupportedSync:e=>`Torus: The Torus Ethereum provider does not support synchronous methods like ${e} without a callback parameter.`,invalidDuplexStream:()=>"Must provide a Node.js-style duplex stream.",invalidOptions:(e,t)=>`Invalid options. Received: { maxEventListeners: ${e}, shouldSendMetadata: ${t} }`,invalidRequestArgs:()=>"Expected a single, non-array, object argument.",invalidRequestMethod:()=>"'args.method' must be a non-empty string.",invalidRequestParams:()=>"'args.params' must be an object or array if provided.",invalidLoggerObject:()=>"'args.logger' must be an object if provided.",invalidLoggerMethod:e=>`'args.logger' must include required method '${e}'.`},info:{connected:e=>`Torus: Connected to chain with ID "${e}".`},warnings:{enableDeprecation:'Torus: ""ethereum.enable()" is deprecated and may be removed in the future. Please use "ethereum.send("eth_requestAccounts")" instead. For more information, see: https://eips.ethereum.org/EIPS/eip-1102',sendDeprecation:`Torus: "ethereum.send(...)" is deprecated and may be removed in the future. Please use "ethereum.sendAsync(...)" or "ethereum.request(...)" instead. -For more information, see: https://eips.ethereum.org/EIPS/eip-1193`,events:{close:`Torus: The event "close" is deprecated and may be removed in the future. Please use "disconnect" instead. -For more information, see: https://eips.ethereum.org/EIPS/eip-1193`,data:`Torus: The event "data" is deprecated and will be removed in the future.Use "message" instead. -For more information, see: https://eips.ethereum.org/EIPS/eip-1193#message`,networkChanged:`Torus: The event "networkChanged" is deprecated and may be removed in the future. Please use "chainChanged" instead. -For more information, see: https://eips.ethereum.org/EIPS/eip-1193`,notification:`Torus: The event "notification" is deprecated and may be removed in the future. Please use "message" instead. -For more information, see: https://eips.ethereum.org/EIPS/eip-1193`},publicConfigStore:'Torus: The property "publicConfigStore" is deprecated and WILL be removed in the future.'}};const{paymentProviders:An}=le,Ba=(e,t)=>{const r={};if(!e)return{errors:r,isValid:!0};if(e&&!An[e])return r.provider="Invalid Provider",{errors:r,isValid:Object.keys(r).length===0};const n=An[e],i=t||{};if(i.fiatValue){const o=+parseFloat(i.fiatValue.toString())||0;on.maxOrderValue&&n.enforceMax&&(r.fiatValue="Requested amount is higher than supported")}if(i.selectedCurrency&&!n.validCurrencies.includes(i.selectedCurrency)&&(r.selectedCurrency="Unsupported currency"),i.selectedCryptoCurrency){const o=Object.values(n.validCryptoCurrenciesByChain).flat().map(c=>c.value),a=e===F.MOONPAY?i.selectedCryptoCurrency.toLowerCase():i.selectedCryptoCurrency;o&&!o.includes(a)&&(r.selectedCryptoCurrency="Unsupported cryptoCurrency")}return{errors:r,isValid:Object.keys(r).length===0}};function ja(){return(e,t,r)=>{(typeof e.method!="string"||!e.method)&&(t.error=de.ethErrors.rpc.invalidRequest({message:"The request 'method' must be a non-empty string.",data:e})),r(n=>{const{error:i}=t;return i&&W.error(`MetaMask - RPC Error: ${i.message}`,i),n()})}}function Pn(e,t,r){let n=`MetaMask: Lost connection to "${e}".`;t!=null&&t.stack&&(n+=` -${t.stack}`),W.warn(n),r&&r.listenerCount("error")>0&&r.emit("error",n)}const Ce=()=>Math.random().toString(36).slice(2),hi=async(e,t)=>{let r,n;const i="1.38.2";let o=t.version||i;try{if((e==="binance"||e==="production")&&!t.version){let a;le.prodTorusUrl?a={data:le.prodTorusUrl}:a=await Wn(`${le.api}/latestversion?name=@toruslabs/torus-embed&version=${i}`,{},{useAPIKey:!0}),o=a.data,le.prodTorusUrl=a.data}}catch(a){W.error(a,"unable to fetch latest version")}switch(W.info("version used: ",o),e){case"binance":r=`https://binance.tor.us/v${o}`,n="info";break;case"testing":r="https://testing.tor.us",n="debug";break;case"bnb":r="https://bnb.tor.us",n="error";break;case"polygon":r="https://polygon.tor.us",n="error";break;case"lrc":r="https://lrc.tor.us",n="debug";break;case"beta":r="https://beta.tor.us",n="debug";break;case"development":r="http://localhost:4050",n="debug";break;default:r=`https://app.tor.us/v${o}`,n="error";break}return{torusUrl:r,logLevel:n}},Tn=()=>{let e=window.navigator.language||"en-US";const t=e.split("-");return e=Object.prototype.hasOwnProperty.call(le.translations,t[0])?t[0]:"en",e},Ua=["eth_subscription"],pi=()=>{},Mn="directories=0,titlebar=0,toolbar=0,status=0,location=0,menubar=0,height=660,width=375",xa="directories=0,titlebar=0,toolbar=0,status=0,location=0,menubar=0,height=740,width=1315",In="directories=0,titlebar=0,toolbar=0,status=0,location=0,menubar=0,height=700,width=450";function Wa(){const e=window.screenLeft!==void 0?window.screenLeft:window.screenX,t=window.screenTop!==void 0?window.screenTop:window.screenY,r=1200,n=700,i=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:window.screen.width,o=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height,a=1,c=Math.abs((i-r)/2/a+e),d=Math.abs((o-n)/2/a+t);return`titlebar=0,toolbar=0,status=0,location=0,menubar=0,height=${n/a},width=${r/a},top=${d},left=${c}`}function Dn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ha(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:!0;return(n,i)=>n||i.error?t(n||i.error):!r||Array.isArray(i)?e(i):e(i.result)};class At extends wt{constructor(t){let{maxEventListeners:r=100,shouldSendMetadata:n=!0,jsonRpcStreamName:i="provider"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(super(),P(this,"chainId",void 0),P(this,"selectedAddress",void 0),P(this,"_rpcEngine",void 0),P(this,"networkVersion",void 0),P(this,"shouldSendMetadata",void 0),P(this,"isTorus",void 0),P(this,"_publicConfigStore",void 0),P(this,"tryPreopenHandle",void 0),P(this,"enable",void 0),P(this,"_state",void 0),P(this,"_jsonRpcConnection",void 0),P(this,"_sentWarnings",{enable:!1,experimentalMethods:!1,send:!1,publicConfigStore:!1,events:{close:!1,data:!1,networkChanged:!1,notification:!1}}),!Aa.duplex(t))throw new Error(ae.errors.invalidDuplexStream());this.isTorus=!0,this.setMaxListeners(r),this._state=Ha({},At._defaultState),this.selectedAddress=null,this.networkVersion=null,this.chainId=null,this.shouldSendMetadata=n,this._handleAccountsChanged=this._handleAccountsChanged.bind(this),this._handleChainChanged=this._handleChainChanged.bind(this),this._handleUnlockStateChanged=this._handleUnlockStateChanged.bind(this),this._handleConnect=this._handleConnect.bind(this),this._handleDisconnect=this._handleDisconnect.bind(this),this._handleStreamDisconnect=this._handleStreamDisconnect.bind(this),this._sendSync=this._sendSync.bind(this),this._rpcRequest=this._rpcRequest.bind(this),this._warnOfDeprecation=this._warnOfDeprecation.bind(this),this._initializeState=this._initializeState.bind(this),this.request=this.request.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this);const o=new ti;ft(t,o,t,this._handleStreamDisconnect.bind(this,"MetaMask")),this._publicConfigStore=new xr.ObservableStore({storageKey:"Metamask-Config"}),ft(o.createStream("publicConfig"),xr.storeAsStream(this._publicConfigStore),Pn.bind(this,"MetaMask PublicConfigStore")),o.ignoreStream("phishing"),this.on("connect",()=>{this._state.isConnected=!0});const a=wo();ft(a.stream,o.createStream(i),a.stream,this._handleStreamDisconnect.bind(this,"MetaMask RpcProvider"));const c=new Ro;c.push(_o()),c.push(ja()),c.push(a.middleware),this._rpcEngine=c,a.events.on("notification",d=>{const{method:m,params:y}=d;m==="wallet_accountsChanged"?this._handleAccountsChanged(y):m==="wallet_unlockStateChanged"?this._handleUnlockStateChanged(y):m==="wallet_chainChanged"?this._handleChainChanged(y):Ua.includes(d.method)&&(this.emit("data",d),this.emit("notification",y.result),this.emit("message",{type:m,data:y}))})}get publicConfigStore(){return this._sentWarnings.publicConfigStore||(W.warn(ae.warnings.publicConfigStore),this._sentWarnings.publicConfigStore=!0),this._publicConfigStore}isConnected(){return this._state.isConnected}async request(t){if(!t||typeof t!="object"||Array.isArray(t))throw de.ethErrors.rpc.invalidRequest({message:ae.errors.invalidRequestArgs(),data:t});const{method:r,params:n}=t;if(typeof r!="string"||r.length===0)throw de.ethErrors.rpc.invalidRequest({message:ae.errors.invalidRequestMethod(),data:t});if(n!==void 0&&!Array.isArray(n)&&(typeof n!="object"||n===null))throw de.ethErrors.rpc.invalidRequest({message:ae.errors.invalidRequestParams(),data:t});return new Promise((i,o)=>{this._rpcRequest({method:r,params:n},Ln(i,o))})}sendAsync(t,r){this._rpcRequest(t,r)}addListener(t,r){return this._warnOfDeprecation(t),super.addListener(t,r)}on(t,r){return this._warnOfDeprecation(t),super.on(t,r)}once(t,r){return this._warnOfDeprecation(t),super.once(t,r)}prependListener(t,r){return this._warnOfDeprecation(t),super.prependListener(t,r)}prependOnceListener(t,r){return this._warnOfDeprecation(t),super.prependOnceListener(t,r)}async _initializeState(){try{const{accounts:t,chainId:r,isUnlocked:n,networkVersion:i}=await this.request({method:"wallet_getProviderState"});this.emit("connect",{chainId:r}),this._handleChainChanged({chainId:r,networkVersion:i}),this._handleUnlockStateChanged({accounts:t,isUnlocked:n}),this._handleAccountsChanged(t)}catch(t){W.error("MetaMask: Failed to get initial state. Please report this bug.",t)}finally{W.info("initialized state"),this._state.initialized=!0,this.emit("_initialized")}}_rpcRequest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=r;const o=t;if(!Array.isArray(o)){if(o.jsonrpc||(o.jsonrpc="2.0"),o.method==="eth_accounts"||o.method==="eth_requestAccounts")i=(a,c)=>{this._handleAccountsChanged(c.result||[],o.method==="eth_accounts",n),r(a,c)};else if(o.method==="wallet_getProviderState"){this._rpcEngine.handle(t,i);return}}this.tryPreopenHandle(o,i)}send(t,r){return this._sentWarnings.send||(W.warn(ae.warnings.sendDeprecation),this._sentWarnings.send=!0),typeof t=="string"&&(!r||Array.isArray(r))?new Promise((n,i)=>{try{this._rpcRequest({method:t,params:r},Ln(n,i,!1))}catch(o){i(o)}}):t&&typeof t=="object"&&typeof r=="function"?this._rpcRequest(t,r):this._sendSync(t)}_sendSync(t){let r;switch(t.method){case"eth_accounts":r=this.selectedAddress?[this.selectedAddress]:[];break;case"eth_coinbase":r=this.selectedAddress||null;break;case"eth_uninstallFilter":this._rpcRequest(t,pi),r=!0;break;case"net_version":r=this.networkVersion||null;break;default:throw new Error(ae.errors.unsupportedSync(t.method))}return{id:t.id,jsonrpc:t.jsonrpc,result:r}}_handleConnect(t){this._state.isConnected||(this._state.isConnected=!0,this.emit("connect",{chainId:t}),W.debug(ae.info.connected(t)))}_handleDisconnect(t,r){if(this._state.isConnected||!this._state.isPermanentlyDisconnected&&!t){this._state.isConnected=!1;let n;t?(n=new de.EthereumRpcError(1013,r||ae.errors.disconnected()),W.debug(n)):(n=new de.EthereumRpcError(1011,r||ae.errors.permanentlyDisconnected()),W.error(n),this.chainId=null,this._state.accounts=null,this.selectedAddress=null,this._state.isUnlocked=!1,this._state.isPermanentlyDisconnected=!0),this.emit("disconnect",n)}}_handleStreamDisconnect(t,r){Pn(t,r,this),this._handleDisconnect(!1,r?r.message:void 0)}_handleAccountsChanged(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=t;Array.isArray(i)||(W.error("MetaMask: Received non-array accounts parameter. Please report this bug.",i),i=[]);for(const o of t)if(typeof o!="string"){W.error("MetaMask: Received non-string account. Please report this bug.",t),i=[];break}Ra(this._state.accounts,i)||(r&&Array.isArray(this._state.accounts)&&this._state.accounts.length>0&&!n&&W.error('MetaMask: "eth_accounts" unexpectedly updated accounts. Please report this bug.',i),this._state.accounts=i,this.emit("accountsChanged",i)),this.selectedAddress!==i[0]&&(this.selectedAddress=i[0]||null)}_handleChainChanged(){let{chainId:t,networkVersion:r}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!t||!r){W.error("MetaMask: Received invalid network parameters. Please report this bug.",{chainId:t,networkVersion:r});return}r==="loading"?this._handleDisconnect(!0):(this._handleConnect(t),t!==this.chainId&&(this.chainId=t,this._state.initialized&&this.emit("chainChanged",this.chainId)))}_handleUnlockStateChanged(){let{accounts:t,isUnlocked:r}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(typeof r!="boolean"){W.error("MetaMask: Received invalid isUnlocked parameter. Please report this bug.",{isUnlocked:r});return}r!==this._state.isUnlocked&&(this._state.isUnlocked=r,this._handleAccountsChanged(t||[]))}_warnOfDeprecation(t){this._sentWarnings.events[t]===!1&&(W.warn(ae.warnings.events[t]),this._sentWarnings.events[t]=!0)}}P(At,"_defaultState",{accounts:null,isConnected:!1,isUnlocked:!1,initialized:!1,isPermanentlyDisconnected:!1,hasEmittedConnection:!1});const $a=e=>({algorithms:e.algorithms||["sha256"],delimiter:e.delimiter||" ",full:e.full||!1}),Fa=(e,t)=>{const r={};return e.algorithms.forEach(n=>{r[n]=wi(n).update(t,"utf8").digest("base64")}),r},qa=(e,t)=>{let r="";return r+=Object.keys(t.hashes).map(n=>`${n}-${t.hashes[n]}`).join(e.delimiter),r},Ka=(e,t)=>{const r=$a(e),n={hashes:Fa(r,t),integrity:void 0};return n.integrity=qa(r,n),r.full?n:n.integrity};class Nn extends nt.EventEmitter{constructor(t){let{url:r,target:n,features:i}=t;super(),P(this,"url",void 0),P(this,"target",void 0),P(this,"features",void 0),P(this,"window",void 0),P(this,"windowTimer",void 0),P(this,"iClosedWindow",void 0),this.url=r,this.target=n||"_blank",this.features=i||Wa(),this.window=void 0,this.windowTimer=void 0,this.iClosedWindow=!1,this._setupTimer()}_setupTimer(){this.windowTimer=Number(setInterval(()=>{this.window&&this.window.closed&&(clearInterval(this.windowTimer),this.iClosedWindow||this.emit("close"),this.iClosedWindow=!1,this.window=void 0),this.window===void 0&&clearInterval(this.windowTimer)},500))}open(){var t;return this.window=window.open(this.url.href,this.target,this.features),(t=this.window)!==null&&t!==void 0&&t.focus&&this.window.focus(),Promise.resolve()}close(){this.iClosedWindow=!0,this.window&&this.window.close()}redirect(t){t?window.location.replace(this.url.href):window.location.href=this.url.href}}function kn(e){return new Promise((t,r)=>{try{const n=document.createElement("img");n.onload=()=>t(!0),n.onerror=()=>t(!1),n.src=e}catch(n){r(n)}})}const Va=e=>{const{document:t}=e,r=t.querySelector('head > meta[property="og:site_name"]');if(r)return r.content;const n=t.querySelector('head > meta[name="title"]');return n?n.content:t.title&&t.title.length>0?t.title:e.location.hostname};async function Ga(e){const{document:t}=e;let r=t.querySelector('head > link[rel="shortcut icon"]');return r&&await kn(r.href)||(r=Array.from(t.querySelectorAll('head > link[rel="icon"]')).find(n=>Boolean(n.href)),r&&await kn(r.href))?r.href:null}const za=async()=>({name:Va(window),icon:await Ga(window)});async function Ya(e){try{const t=await za();e.handle({jsonrpc:"2.0",id:Ce(),method:"wallet_sendDomainMetadata",params:t},pi)}catch(t){W.error({message:ae.errors.sendSiteMetadata(),originalError:t})}}const Xa=["host","chainId","networkName"];function Bn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ja(e){for(var t=1;t"u")return;const t=document.createElement("link"),{torusUrl:r}=await hi("production",{check:!1,hash:gi,version:""});t.href=`${r}/popup`,t.crossOrigin="anonymous",t.type="text/html",t.rel="prefetch",t.relList&&t.relList.supports&&t.relList.supports("prefetch")&&document.head.appendChild(t)}catch(t){W.warn(t)}})();class rs{constructor(){let{buttonPosition:t=Le.BOTTOM_LEFT,buttonSize:r=56,modalZIndex:n=99999,apiKey:i="torus-default"}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};P(this,"buttonPosition",Le.BOTTOM_LEFT),P(this,"buttonSize",void 0),P(this,"torusUrl",void 0),P(this,"torusIframe",void 0),P(this,"styleLink",void 0),P(this,"isLoggedIn",void 0),P(this,"isInitialized",void 0),P(this,"torusWidgetVisibility",void 0),P(this,"torusAlert",void 0),P(this,"apiKey",void 0),P(this,"modalZIndex",void 0),P(this,"alertZIndex",void 0),P(this,"torusAlertContainer",void 0),P(this,"isIframeFullScreen",void 0),P(this,"whiteLabel",void 0),P(this,"requestedVerifier",void 0),P(this,"currentVerifier",void 0),P(this,"embedTranslations",void 0),P(this,"ethereum",void 0),P(this,"provider",void 0),P(this,"communicationMux",void 0),P(this,"isLoginCallback",void 0),P(this,"paymentProviders",le.paymentProviders),P(this,"loginHint",""),P(this,"useWalletConnect",void 0),P(this,"isCustomLogin",!1),this.buttonPosition=t,this.buttonSize=r,this.torusUrl="",this.isLoggedIn=!1,this.isInitialized=!1,this.torusWidgetVisibility=!0,this.requestedVerifier="",this.currentVerifier="",this.apiKey=i,Ri(i),this.modalZIndex=n,this.alertZIndex=n+1e3,this.isIframeFullScreen=!1}async init(){let{buildEnv:t=Pa.PRODUCTION,enableLogging:r=!1,enabledVerifiers:n=Za,network:i={host:"mainnet",chainId:null,networkName:"",blockExplorer:"",ticker:"",tickerName:""},loginConfig:o={},showTorusButton:a=!0,integrity:c={check:!1,hash:gi,version:""},whiteLabel:d,skipTKey:m=!1,useWalletConnect:y=!1,mfaLevel:p="default"}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(this.isInitialized)throw new Error("Already initialized");const{torusUrl:h,logLevel:b}=await hi(t,c);W.info(h,"url loaded"),this.torusUrl=h,this.whiteLabel=d,this.useWalletConnect=y,this.isCustomLogin=!!(o&&Object.keys(o).length>0)||!!(d&&Object.keys(d).length>0),W.setDefaultLevel(b),r?W.enableAll():W.disableAll(),this.torusWidgetVisibility=a;const O=new URL(h);O.pathname.endsWith("/")?O.pathname+="popup":O.pathname+="/popup",O.hash=`#isCustomLogin=${this.isCustomLogin}`,this.torusIframe=Je(``),this.torusAlertContainer=Je('
'),this.torusAlertContainer.style.display="none",this.torusAlertContainer.style.setProperty("z-index",this.alertZIndex.toString());const _=window.document.createElement("link");_.setAttribute("rel","stylesheet"),_.setAttribute("type","text/css"),_.setAttribute("href",`${h}/css/widget.css`),this.styleLink=_;const{defaultLanguage:T=Tn(),customTranslations:A={}}=this.whiteLabel||{},U=jn(le.translations,A)[T]||le.translations[Tn()];this.embedTranslations=U.embed;const k=async()=>(await ka(),new Promise((q,j)=>{this.torusIframe.onload=async()=>{this._setupWeb3();const V=this.communicationMux.getStream("init_stream");V.on("data",X=>{const{name:L,data:G,error:H}=X;L==="init_complete"&&G.success?(this.isInitialized=!0,this._displayIframe(this.isIframeFullScreen),q(void 0)):H&&j(new Error(H))}),V.write({name:"init_stream",data:{enabledVerifiers:n,loginConfig:o,whiteLabel:this.whiteLabel,buttonPosition:this.buttonPosition,buttonSize:this.buttonSize,torusWidgetVisibility:this.torusWidgetVisibility,apiKey:this.apiKey,skipTKey:m,network:i,mfaLevel:p}})},window.document.head.appendChild(this.styleLink),window.document.body.appendChild(this.torusIframe),window.document.body.appendChild(this.torusAlertContainer)}));if(t==="production"&&c.check){const q=`${h}/popup`,j=await fetch(q,{cache:"reload"});if(j.headers.get("Cache-Control")!==Qa)throw new Error(`Unexpected Cache-Control headers, got ${j.headers.get("Cache-Control")}`);const V=await j.text(),X=Ka({algorithms:["sha384"]},V);if(W.info(X,"integrity"),X===c.hash)await k();else throw this.clearInit(),new Error("Integrity check failed")}else await k()}login(){let{verifier:t="",login_hint:r=""}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.isInitialized)throw new Error("Call init() first");return this.requestedVerifier=t,this.loginHint=r,this.ethereum.enable()}logout(){return new Promise((t,r)=>{if(!this.isLoggedIn){r(new Error("User has not logged in yet"));return}this.communicationMux.getStream("logout").write({name:"logOut"});const i=this.communicationMux.getStream("status");ue(i,"data",a=>{a.loggedIn?r(new Error("Some Error Occured")):(this.isLoggedIn=!1,this.currentVerifier="",this.requestedVerifier="",t())})})}async cleanUp(){this.isLoggedIn&&await this.logout(),this.clearInit()}clearInit(){function t(r){return r instanceof Element||r instanceof HTMLDocument}t(this.styleLink)&&window.document.body.contains(this.styleLink)&&(this.styleLink.remove(),this.styleLink=void 0),t(this.torusIframe)&&window.document.body.contains(this.torusIframe)&&(this.torusIframe.remove(),this.torusIframe=void 0),t(this.torusAlertContainer)&&window.document.body.contains(this.torusAlertContainer)&&(this.torusAlert=void 0,this.torusAlertContainer.remove(),this.torusAlertContainer=void 0),this.isInitialized=!1}hideTorusButton(){this.torusWidgetVisibility=!1,this._sendWidgetVisibilityStatus(!1),this._displayIframe()}showTorusButton(){this.torusWidgetVisibility=!0,this._sendWidgetVisibilityStatus(!0),this._displayIframe()}setProvider(t){let{host:r="mainnet",chainId:n=null,networkName:i=""}=t,o=Si(t,Xa);return new Promise((a,c)=>{const d=this.communicationMux.getStream("provider_change");ue(d,"data",p=>{const{err:h,success:b}=p.data;W.info(p),h?c(h):b?a():c(new Error("some error occured"))});const y=Ce();this._handleWindow(y,{target:"_blank",features:Mn}),d.write({name:"show_provider_change",data:{network:Ja({host:r,chainId:n,networkName:i},o),preopenInstanceId:y,override:!1}})})}showWallet(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.communicationMux.getStream("show_wallet"),i=t?`/${t}`:"";n.write({name:"show_wallet",data:{path:i}}),ue(n,"data",a=>{if(a.name==="show_wallet_instance"){const{instanceId:c}=a.data,d=new URL(`${this.torusUrl}/wallet${i}`);d.searchParams.append("integrity","true"),d.searchParams.append("instanceId",c),Object.keys(r).forEach(y=>{d.searchParams.append(y,r[y])}),d.hash=`#isCustomLogin=${this.isCustomLogin}`,new Nn({url:d,features:xa}).open()}})}async getPublicAddress(t){let{verifier:r,verifierId:n,isExtended:i=!1}=t;if(!le.supportedVerifierList.includes(r)||!Cn[r])throw new Error("Unsupported verifier");const o=r,a=Cn[r],c=new URL("https://api.tor.us/lookup/torus");return c.searchParams.append("verifier",a),c.searchParams.append("verifierId",n),c.searchParams.append("walletVerifier",o),c.searchParams.append("network","mainnet"),c.searchParams.append("isExtended",i.toString()),Wn(c.href,{headers:{"Content-Type":"application/json; charset=utf-8"}},{useAPIKey:!0})}getUserInfo(t){return new Promise((r,n)=>{if(this.isLoggedIn){const i=this.communicationMux.getStream("user_info_access");i.write({name:"user_info_access_request"}),ue(i,"data",a=>{const{name:c,data:{approved:d,payload:m,rejected:y,newRequest:p}}=a;if(c==="user_info_access_response"){if(d)r(m);else if(y)n(new Error("User rejected the request"));else if(p){const h=this.communicationMux.getStream("user_info");ue(h,"data",_=>{_.name==="user_info_response"&&(_.data.approved?r(_.data.payload):n(new Error("User rejected the request")))});const O=Ce();this._handleWindow(O,{target:"_blank",features:Mn}),h.write({name:"user_info_request",data:{message:t,preopenInstanceId:O}})}}})}else n(new Error("User has not logged in yet"))})}initiateTopup(t,r){return new Promise((n,i)=>{if(this.isInitialized){const{errors:o,isValid:a}=Ba(t,r);if(!a){i(new Error(JSON.stringify(o)));return}const c=this.communicationMux.getStream("topup");ue(c,"data",y=>{y.name==="topup_response"&&(y.data.success?n(y.data.success):i(new Error(y.data.error)))});const m=Ce();this._handleWindow(m),c.write({name:"topup_request",data:{provider:t,params:r,preopenInstanceId:m}})}else i(new Error("Torus is not initialized yet"))})}async loginWithPrivateKey(t){const{privateKey:r,userInfo:n}=t;return new Promise((i,o)=>{if(this.isInitialized){if(pe.Buffer.from(r,"hex").length!==32){o(new Error("Invalid private key, Please provide a 32 byte valid secp25k1 private key"));return}const a=this.communicationMux.getStream("login_with_private_key");ue(a,"data",d=>{d.name==="login_with_private_key_response"&&(d.data.success?i(d.data.success):o(new Error(d.data.error)))}),a.write({name:"login_with_private_key_request",data:{privateKey:r,userInfo:n}})}else o(new Error("Torus is not initialized yet"))})}async showWalletConnectScanner(){if(!this.useWalletConnect)throw new Error("Set `useWalletConnect` as true in init function options to use wallet connect scanner");return new Promise((t,r)=>{if(this.isLoggedIn){const n=this.communicationMux.getStream("wallet_connect_stream");ue(n,"data",o=>{o.name==="wallet_connect_stream_res"&&(o.data.success?t(o.data.success):r(new Error(o.data.error)),this._displayIframe())}),n.write({name:"wallet_connect_stream_req"}),this._displayIframe(!0)}else r(new Error("User has not logged in yet"))})}_handleWindow(t){let{url:r,target:n,features:i}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t){const o=this.communicationMux.getStream("window"),a=new URL(r||`${this.torusUrl}/redirect?preopenInstanceId=${t}`);a.hash?a.hash+=`&isCustomLogin=${this.isCustomLogin}`:a.hash=`#isCustomLogin=${this.isCustomLogin}`;const c=new Nn({url:a,target:n,features:i});if(c.open(),!c.window){this._createPopupBlockAlert(t,a.href);return}o.write({name:"opened_window",data:{preopenInstanceId:t}});const d=m=>{let{preopenInstanceId:y,close:p}=m;y===t&&p&&(c.close(),o.removeListener("data",d))};o.on("data",d),c.once("close",()=>{o.write({data:{preopenInstanceId:t,closed:!0}}),o.removeListener("data",d)})}}_setEmbedWhiteLabel(t){const{theme:r}=this.whiteLabel||{};if(r){const{isDark:n=!1,colors:i={}}=r;n&&t.classList.add("torus-dark"),i.torusBrand1&&t.style.setProperty("--torus-brand-1",i.torusBrand1),i.torusGray2&&t.style.setProperty("--torus-gray-2",i.torusGray2)}}_getLogoUrl(){var t,r;let n=`${this.torusUrl}/images/torus_icon-blue.svg`;if((t=this.whiteLabel)!==null&&t!==void 0&&(r=t.theme)!==null&&r!==void 0&&r.isDark){var i;n=((i=this.whiteLabel)===null||i===void 0?void 0:i.logoLight)||n}else{var o;n=((o=this.whiteLabel)===null||o===void 0?void 0:o.logoDark)||n}return n}_sendWidgetVisibilityStatus(t){this.communicationMux.getStream("torus-widget-visibility").write({data:t})}_displayIframe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const r={},n=this.buttonSize+14;if(t)r.display="block",r.width="100%",r.height="100%",r.top="0px",r.right="0px",r.left="0px",r.bottom="0px";else switch(r.display=this.torusWidgetVisibility?"block":"none",r.height=`${n}px`,r.width=`${n}px`,this.buttonPosition){case Le.TOP_LEFT:r.top="0px",r.left="0px",r.right="auto",r.bottom="auto";break;case Le.TOP_RIGHT:r.top="0px",r.right="0px",r.left="auto",r.bottom="auto";break;case Le.BOTTOM_RIGHT:r.bottom="0px",r.right="0px",r.top="auto",r.left="auto";break;case Le.BOTTOM_LEFT:default:r.bottom="0px",r.left="0px",r.top="auto",r.right="auto";break}Object.assign(this.torusIframe.style,r),this.isIframeFullScreen=t}_setupWeb3(){W.info("setupWeb3 running");const t=new un({name:"embed_metamask",target:"iframe_metamask",targetWindow:this.torusIframe.contentWindow,targetOrigin:new URL(this.torusUrl).origin}),r=new un({name:"embed_comm",target:"iframe_comm",targetWindow:this.torusIframe.contentWindow,targetOrigin:new URL(this.torusUrl).origin}),n=new At(t),i=y=>{const p=n[y];n[y]=function(b){if(b&&b==="eth_requestAccounts")return n.enable();for(var O=arguments.length,_=new Array(O>1?O-1:0),T=1;Tnew Promise((y,p)=>{n.sendAsync({jsonrpc:"2.0",id:Ce(),method:"eth_requestAccounts",params:[]},(h,b)=>{const{result:O}=b||{};if(h)setTimeout(()=>{p(h)},50);else if(Array.isArray(O)&&O.length>0){const _=()=>{if(this.requestedVerifier!==""&&this.currentVerifier!==this.requestedVerifier){const{requestedVerifier:T}=this;this.logout().then(A=>{this.requestedVerifier=T,this._showLoginPopup(!0,y,p)}).catch(A=>p(A))}else y(O)};this.isLoggedIn?_():this.isLoginCallback=_}else this._showLoginPopup(!0,y,p)})}),n.tryPreopenHandle=(y,p)=>{const h=y;if(!Array.isArray(h)&&es.includes(h.method)){const b=Ce();this._handleWindow(b,{target:"_blank",features:In}),h.preopenInstanceId=b}n._rpcEngine.handle(h,p)};const o=new Proxy(n,{deleteProperty:()=>!0});this.ethereum=o;const a=Lo(r);this.communicationMux=a,a.getStream("window").on("data",y=>{y.name==="create_window"&&this._createPopupBlockAlert(y.data.preopenInstanceId,y.data.url)}),a.getStream("widget").on("data",y=>{const{data:p}=y;this._displayIframe(p)}),a.getStream("status").on("data",y=>{y.loggedIn?(this.isLoggedIn=y.loggedIn,this.currentVerifier=y.verifier):this._displayIframe(),this.isLoginCallback&&(this.isLoginCallback(),delete this.isLoginCallback)}),this.provider=o,this.provider.shouldSendMetadata&&Ya(this.provider._rpcEngine),n._initializeState(),W.debug("Torus - injected provider")}_showLoginPopup(t,r,n){const i=a=>{const{err:c,selectedAddress:d}=a;c?(W.error(c),n&&n(c)):r&&r([d]),this.isIframeFullScreen&&this._displayIframe()},o=this.communicationMux.getStream("oauth");if(!this.requestedVerifier)this._displayIframe(!0),ue(o,"data",i),o.write({name:"oauth_modal",data:{calledFromEmbed:t}});else{ue(o,"data",i);const a=Ce();this._handleWindow(a),o.write({name:"oauth",data:{calledFromEmbed:t,verifier:this.requestedVerifier,preopenInstanceId:a,login_hint:this.loginHint}})}}_createPopupBlockAlert(t,r){const n=this._getLogoUrl(),i=Je(`

${this.embedTranslations.actionRequired}

${this.embedTranslations.pendingAction}

`),o=Je(``),a=Je('
');a.appendChild(o),i.appendChild(a);const c=()=>{o.addEventListener("click",()=>{this._handleWindow(t,{url:r,target:"_blank",features:In}),i.remove(),this.torusAlertContainer.children.length===0&&(this.torusAlertContainer.style.display="none")})};this._setEmbedWhiteLabel(i),Rn(()=>{this.torusAlertContainer.style.display="block",this.torusAlertContainer.appendChild(i)}),Rn(c)}}export{Le as BUTTON_POSITION,Xe as LOGIN_PROVIDER,F as PAYMENT_PROVIDER,Y as SUPPORTED_PAYMENT_NETWORK,Pa as TORUS_BUILD_ENV,At as TorusInpageProvider,Cn as WALLET_OPENLOGIN_VERIFIER_MAP,Oe as WALLET_VERIFIERS,rs as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/torus.esm-d09ce5f9.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/torus.esm-d09ce5f9.js.meta deleted file mode 100644 index 6cbb5b5a6..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/torus.esm-d09ce5f9.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: ab53e097527ed8141be14a7b5afb8799 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tp-4b793710.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tp-4b793710.js deleted file mode 100644 index e6065ee69..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tp-4b793710.js +++ /dev/null @@ -1,10 +0,0 @@ -const A=` - - - - - - - - -`;export{A as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tp-4b793710.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tp-4b793710.js.meta deleted file mode 100644 index acc84409a..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tp-4b793710.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 1f09ffcf0e9bd424196375e005ed9304 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/trust-59d19f99.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/trust-59d19f99.js deleted file mode 100644 index 6d00e2813..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/trust-59d19f99.js +++ /dev/null @@ -1,8 +0,0 @@ -const s=` - - - -`;export{s as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/trust-59d19f99.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/trust-59d19f99.js.meta deleted file mode 100644 index 8f969959f..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/trust-59d19f99.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: e8f116c6227b4cb4e8ddcabd993a6707 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tslib.es6-c2094241.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tslib.es6-c2094241.js deleted file mode 100644 index 836131f06..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tslib.es6-c2094241.js +++ /dev/null @@ -1,14 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var p=function(t,n){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var i in o)o.hasOwnProperty(i)&&(e[i]=o[i])},p(t,n)};function g(t,n){p(t,n);function e(){this.constructor=t}t.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)}var w=function(){return w=Object.assign||function(n){for(var e,o=1,i=arguments.length;o=0;f--)(a=t[f])&&(r=(i<3?a(r):i>3?a(n,e,r):a(n,e))||r);return i>3&&r&&Object.defineProperty(n,e,r),r}function j(t,n){return function(e,o){n(e,o,t)}}function P(t,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,n)}function x(t,n,e,o){function i(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function f(l){try{u(o.next(l))}catch(y){a(y)}}function s(l){try{u(o.throw(l))}catch(y){a(y)}}function u(l){l.done?r(l.value):i(l.value).then(f,s)}u((o=o.apply(t,n||[])).next())})}function I(t,n){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,i,r,a;return a={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function f(u){return function(l){return s([u,l])}}function s(u){if(o)throw new TypeError("Generator is already executing.");for(;e;)try{if(o=1,i&&(r=u[0]&2?i.return:u[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,u[1])).done)return r;switch(i=0,r&&(u=[u[0]&2,r.value]),u[0]){case 0:case 1:r=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,i=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!r||u[1]>r[0]&&u[1]=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(t,n){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var o=e.call(t),i,r=[],a;try{for(;(n===void 0||n-- >0)&&!(i=o.next()).done;)r.push(i.value)}catch(f){a={error:f}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(a)throw a.error}}return r}function R(){for(var t=[],n=0;n1||f(c,_)})})}function f(c,_){try{s(o[c](_))}catch(b){y(r[0][3],b)}}function s(c){c.value instanceof h?Promise.resolve(c.value.v).then(u,l):y(r[0][2],c)}function u(c){f("next",c)}function l(c){f("throw",c)}function y(c,_){c(_),r.shift(),r.length&&f(r[0][0],r[0][1])}}function G(t){var n,e;return n={},o("next"),o("throw",function(i){throw i}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(i,r){n[i]=t[i]?function(a){return(e=!e)?{value:h(t[i](a)),done:i==="return"}:r?r(a):a}:r}}function F(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],e;return n?n.call(t):(t=typeof v=="function"?v(t):t[Symbol.iterator](),e={},o("next"),o("throw"),o("return"),e[Symbol.asyncIterator]=function(){return this},e);function o(r){e[r]=t[r]&&function(a){return new Promise(function(f,s){a=t[r](a),i(f,s,a.done,a.value)})}}function i(r,a,f,s){Promise.resolve(s).then(function(u){r({value:u,done:f})},a)}}function q(t,n){return Object.defineProperty?Object.defineProperty(t,"raw",{value:n}):t.raw=n,t}function z(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var e in t)Object.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}function B(t){return t&&t.__esModule?t:{default:t}}function M(t,n){if(!n.has(t))throw new TypeError("attempted to get private field on non-instance");return n.get(t)}function V(t,n,e){if(!n.has(t))throw new TypeError("attempted to set private field on non-instance");return n.set(t,e),e}const C=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return w},__asyncDelegator:G,__asyncGenerator:D,__asyncValues:F,__await:h,__awaiter:x,__classPrivateFieldGet:M,__classPrivateFieldSet:V,__createBinding:T,__decorate:S,__exportStar:E,__extends:g,__generator:I,__importDefault:B,__importStar:z,__makeTemplateObject:q,__metadata:P,__param:j,__read:d,__rest:O,__spread:R,__spreadArrays:A,__values:v},Symbol.toStringTag,{value:"Module"}));export{g as _,C as t}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tslib.es6-c2094241.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tslib.es6-c2094241.js.meta deleted file mode 100644 index 3ca82eb99..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/tslib.es6-c2094241.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 33149aeab91e12c4099dcef2d5b0ca53 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/xdefi-07e71929.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/xdefi-07e71929.js deleted file mode 100644 index f3ff2c91e..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/xdefi-07e71929.js +++ /dev/null @@ -1,8 +0,0 @@ -const h=``;export{h as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/xdefi-07e71929.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/xdefi-07e71929.js.meta deleted file mode 100644 index 9f9c5be06..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/xdefi-07e71929.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: e906f3b08dd05c04d9c6307e9c6c956f -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/zeal-8b158173.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/zeal-8b158173.js deleted file mode 100644 index 960407bcc..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/zeal-8b158173.js +++ /dev/null @@ -1,6 +0,0 @@ -const t=` - - - - -`;export{t as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/zeal-8b158173.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/zeal-8b158173.js.meta deleted file mode 100644 index 92c99b321..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/zeal-8b158173.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 12365d53e749c0642b0f2a555c0974d9 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/zerion-d2dfe88d.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/zerion-d2dfe88d.js deleted file mode 100644 index 423db498a..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/zerion-d2dfe88d.js +++ /dev/null @@ -1,5 +0,0 @@ -const C=` - - - -`;export{C as default}; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/zerion-d2dfe88d.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/zerion-d2dfe88d.js.meta deleted file mode 100644 index 24b07511b..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/zerion-d2dfe88d.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 961b09cec0d78514d8dbe849156f83eb -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/zipWith-29b37a07.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/zipWith-29b37a07.js deleted file mode 100644 index 27d95121b..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-2020x/assets/zipWith-29b37a07.js +++ /dev/null @@ -1 +0,0 @@ -import{c as V,b as ln}from"./skip-2d52d7ac.js";import{aN as d,ac as v,a1 as cn,aO as kn,X as F,a0 as R,a9 as S,aP as M,ah as U,a2 as A,aj as B,aQ as G,aR as C,ab as x,aa as Y,a5 as O,af as I,a4 as Wn,aS as vn,ag as E,Y as T,$ as N,aT as k,aU as $,ao as sn,aE as W,ay as Fn,as as dn,aK as q,aC as Cn,a3 as J,ai as Q,aB as hn,aV as pn,aW as Mn,aD as Ln,al as zn,am as Dn,aJ as P,aX as Un}from"./index-b28afd98.js";function $n(){return d(function(t,n){var e=null;t._refCount++;var r=v(n,void 0,void 0,void 0,function(){if(!t||t._refCount<=0||0<--t._refCount){e=null;return}var a=t._connection,u=e;e=null,a&&(!u||a===u)&&a.unsubscribe(),n.unsubscribe()});t.subscribe(r),r.closed||(e=t.connect())})}var Z=function(t){cn(n,t);function n(e,r){var a=t.call(this)||this;return a.source=e,a.subjectFactory=r,a._subject=null,a._refCount=0,a._connection=null,kn(e)&&(a.lift=e.lift),a}return n.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},n.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},n.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,e==null||e.unsubscribe()},n.prototype.connect=function(){var e=this,r=this._connection;if(!r){r=this._connection=new F;var a=this.getSubject();r.add(this.source.subscribe(v(a,void 0,function(){e._teardown(),a.complete()},function(u){e._teardown(),a.error(u)},function(){return e._teardown()}))),r.closed&&(this._connection=null,r=F.EMPTY)}return r},n.prototype.refCount=function(){return $n()(this)},n}(R),qn=function(t){cn(n,t);function n(){var e=t!==null&&t.apply(this,arguments)||this;return e._value=null,e._hasValue=!1,e._isComplete=!1,e}return n.prototype._checkFinalizedStatuses=function(e){var r=this,a=r.hasError,u=r._hasValue,i=r._value,o=r.thrownError,f=r.isStopped,l=r._isComplete;a?e.error(o):(f||l)&&(u&&e.next(i),e.complete())},n.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},n.prototype.complete=function(){var e=this,r=e._hasValue,a=e._value,u=e._isComplete;u||(this._isComplete=!0,r&&t.prototype.next.call(this,a),t.prototype.complete.call(this))},n}(S);function mn(){for(var t=[],n=0;n0&&w(a)},void 0,void 0,function(){h!=null&&h.closed||h==null||h.unsubscribe(),y=null})),!p&&w(r!=null?typeof r=="number"?r:+r-f.now():a)})}function Xn(t){throw new Jn(t)}var Yn=Array.isArray,On=Object.getPrototypeOf,Qn=Object.prototype,Zn=Object.keys;function Hn(t){if(t.length===1){var n=t[0];if(Yn(n))return{args:n,keys:null};if(_n(n)){var e=Zn(n);return{args:e.map(function(r){return n[r]}),keys:e}}}return{args:t,keys:null}}function _n(t){return t&&typeof t=="object"&&On(t)===Qn}function nt(t,n){return t.reduce(function(e,r,a){return e[r]=n[a],e},{})}function tt(){for(var t=[],n=0;n=0?C(l,u,g,i,!0):s=!0,g();var h=v(l,function(y){var p,w,b=c.slice();try{for(var j=k(b),D=j.next();!D.done;D=j.next()){var tn=D.value,en=tn.buffer;en.push(y),o<=en.length&&m(tn)}}catch(jn){p={error:jn}}finally{try{D&&!D.done&&(w=j.return)&&w.call(j)}finally{if(p)throw p.error}}},function(){for(;c!=null&&c.length;)l.next(c.shift().buffer);h==null||h.unsubscribe(),l.complete(),l.unsubscribe()},void 0,function(){return c=null});f.subscribe(h)})}function kt(t,n){return d(function(e,r){var a=[];x(t).subscribe(v(r,function(u){var i=[];a.push(i);var o=new F,f=function(){$(a,i),r.next(i),o.unsubscribe()};o.add(x(n(u)).subscribe(v(r,f,E)))},E)),e.subscribe(v(r,function(u){var i,o;try{for(var f=k(a),l=f.next();!l.done;l=f.next()){var c=l.value;c.push(u)}}catch(s){i={error:s}}finally{try{l&&!l.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}},function(){for(;a.length>0;)r.next(a.shift());r.complete()}))})}function Wt(t){return d(function(n,e){var r=null,a=null,u=function(){a==null||a.unsubscribe();var i=r;r=[],i&&e.next(i),x(t()).subscribe(a=v(e,u,E))};u(),n.subscribe(v(e,function(i){return r==null?void 0:r.push(i)},function(){r&&e.next(r),e.complete()},void 0,function(){return r=a=null}))})}function it(t){return d(function(n,e){var r=null,a=!1,u;r=n.subscribe(v(e,void 0,void 0,function(i){u=x(t(i,it(t)(n))),r?(r.unsubscribe(),r=null,u.subscribe(e)):a=!0})),a&&(r.unsubscribe(),r=null,u.subscribe(e))})}function bn(t,n,e,r,a){return function(u,i){var o=e,f=n,l=0;u.subscribe(v(i,function(c){var s=l++;f=o?t(f,c,s):(o=!0,c),r&&i.next(f)},a&&function(){o&&i.next(f),i.complete()}))}}function K(t,n){return d(bn(t,n,arguments.length>=2,!1,!0))}var ot=function(t,n){return t.push(n),t};function ft(){return d(function(t,n){K(ot,[])(t).subscribe(n)})}function En(t,n){return sn(ft(),W(function(e){return t(e)}),n?O(n):I)}function lt(t){return En(tt,t)}var Ft=lt;function Sn(){for(var t=[],n=0;n=2;return function(r){return r.pipe(Q(function(a,u){return u===t}),q(1),e?_(n):nn(function(){return new an}))}}function Bt(){for(var t=[],n=0;n=2;return function(r){return r.pipe(t?Q(function(a,u){return t(a,u,r)}):I,q(1),e?_(n):nn(function(){return new J}))}}function Zt(t,n,e,r){return d(function(a,u){var i;!n||typeof n=="function"?i=n:(e=n.duration,i=n.element,r=n.connector);var o=new Map,f=function(h){o.forEach(h),h(u)},l=function(h){return f(function(y){return y.error(h)})},c=0,s=!1,m=new vn(u,function(h){try{var y=t(h),p=o.get(y);if(!p){o.set(y,p=r?r():new S);var w=g(y,p);if(u.next(w),e){var b=v(p,function(){p.complete(),b==null||b.unsubscribe()},void 0,void 0,function(){return o.delete(y)});m.add(x(e(w)).subscribe(b))}}p.next(i?i(h):h)}catch(j){l(j)}},function(){return f(function(h){return h.complete()})},l,function(){return o.clear()},function(){return s=!0,c===0});a.subscribe(m);function g(h,y){var p=new R(function(w){c++;var b=y.subscribe(w);return function(){b.unsubscribe(),--c===0&&s&&m.unsubscribe()}});return p.key=h,p}})}function Ht(){return d(function(t,n){t.subscribe(v(n,function(){n.next(!1),n.complete()},function(){n.next(!0),n.complete()}))})}function mt(t){return t<=0?function(){return B}:d(function(n,e){var r=[];n.subscribe(v(e,function(a){r.push(a),t=2;return function(r){return r.pipe(t?Q(function(a,u){return t(a,u,r)}):I,mt(1),e?_(n):nn(function(){return new J}))}}function ne(){return d(function(t,n){t.subscribe(v(n,function(e){n.next(X.createNext(e))},function(){n.next(X.createComplete()),n.complete()},function(e){n.next(X.createError(e)),n.complete()}))})}function te(t){return K(A(t)?function(n,e){return t(n,e)>0?n:e}:function(n,e){return n>e?n:e})}var ee=W;function re(t,n,e){return e===void 0&&(e=1/0),A(n)?W(function(){return t},n,e):(typeof n=="number"&&(e=n),W(function(){return t},e))}function ae(t,n,e){return e===void 0&&(e=1/0),d(function(r,a){var u=n;return pn(r,a,function(i,o){return t(u,i,o)},e,function(i){u=i},!1,void 0,function(){return u=null})})}function gt(){for(var t=[],n=0;n=2,!0))}function xe(t,n){return n===void 0&&(n=function(e,r){return e===r}),d(function(e,r){var a=fn(),u=fn(),i=function(f){r.next(f),r.complete()},o=function(f,l){var c=v(r,function(s){var m=l.buffer,g=l.complete;m.length===0?g?i(!1):f.buffer.push(s):!n(s,m.shift())&&i(!1)},function(){f.complete=!0;var s=l.complete,m=l.buffer;s&&i(m.length===0),c==null||c.unsubscribe()});return c};e.subscribe(o(a,u)),x(t).subscribe(o(u,a))})}function fn(){return{buffer:[],complete:!1}}function be(t){return d(function(n,e){var r=!1,a,u=!1,i=0;n.subscribe(v(e,function(o){u=!0,(!t||t(o,i++,n))&&(r&&e.error(new Gn("Too many matching values")),r=!0,a=o)},function(){r?(e.next(a),e.complete()):e.error(u?new Bn("No matching values"):new J)}))})}function Ee(t){return t<=0?I:d(function(n,e){var r=new Array(t),a=0;return n.subscribe(v(e,function(u){var i=a++;if(i0?n:t;return d(function(r,a){var u=[new S],i=[],o=0;a.next(u[0].asObservable()),r.subscribe(v(a,function(f){var l,c;try{for(var s=k(u),m=s.next();!m.done;m=s.next()){var g=m.value;g.next(f)}}catch(p){l={error:p}}finally{try{m&&!m.done&&(c=s.return)&&c.call(s)}finally{if(l)throw l.error}}var h=o-t+1;if(h>=0&&h%e===0&&u.shift().complete(),++o%e===0){var y=new S;u.push(y),a.next(y.asObservable())}},function(){for(;u.length>0;)u.shift().complete();a.complete()},function(f){for(;u.length>0;)u.shift().error(f);a.error(f)},function(){i=null,u=null}))})}function Le(t){for(var n,e,r=[],a=1;a=0?C(l,u,g,i,!0):s=!0,g();var h=function(p){return c.slice().forEach(p)},y=function(p){h(function(w){var b=w.window;return p(b)}),p(l),l.unsubscribe()};return f.subscribe(v(l,function(p){h(function(w){w.window.next(p),o<=++w.seen&&m(w)})},function(){return y(function(p){return p.complete()})},function(p){return y(function(w){return w.error(p)})})),function(){c=null}})}function ze(t,n){return d(function(e,r){var a=[],u=function(i){for(;0 - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - - This version of the GNU Lesser General Public License incorporates -the terms and conditions of version 3 of the GNU General Public -License, supplemented by the additional permissions listed below. - - 0. Additional Definitions. - - As used herein, "this License" refers to version 3 of the GNU Lesser -General Public License, and the "GNU GPL" refers to version 3 of the GNU -General Public License. - - "The Library" refers to a covered work governed by this License, -other than an Application or a Combined Work as defined below. - - An "Application" is any work that makes use of an interface provided -by the Library, but which is not otherwise based on the Library. -Defining a subclass of a class defined by the Library is deemed a mode -of using an interface provided by the Library. - - A "Combined Work" is a work produced by combining or linking an -Application with the Library. The particular version of the Library -with which the Combined Work was made is also called the "Linked -Version". - - The "Minimal Corresponding Source" for a Combined Work means the -Corresponding Source for the Combined Work, excluding any source code -for portions of the Combined Work that, considered in isolation, are -based on the Application, and not on the Linked Version. - - The "Corresponding Application Code" for a Combined Work means the -object code and/or source code for the Application, including any data -and utility programs needed for reproducing the Combined Work from the -Application, but excluding the System Libraries of the Combined Work. - - 1. Exception to Section 3 of the GNU GPL. - - You may convey a covered work under sections 3 and 4 of this License -without being bound by section 3 of the GNU GPL. - - 2. Conveying Modified Versions. - - If you modify a copy of the Library, and, in your modifications, a -facility refers to a function or data to be supplied by an Application -that uses the facility (other than as an argument passed when the -facility is invoked), then you may convey a copy of the modified -version: - - a) under this License, provided that you make a good faith effort to - ensure that, in the event an Application does not supply the - function or data, the facility still operates, and performs - whatever part of its purpose remains meaningful, or - - b) under the GNU GPL, with none of the additional permissions of - this License applicable to that copy. - - 3. Object Code Incorporating Material from Library Header Files. - - The object code form of an Application may incorporate material from -a header file that is part of the Library. You may convey such object -code under terms of your choice, provided that, if the incorporated -material is not limited to numerical parameters, data structure -layouts and accessors, or small macros, inline functions and templates -(ten or fewer lines in length), you do both of the following: - - a) Give prominent notice with each copy of the object code that the - Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the object code with a copy of the GNU GPL and this license - document. - - 4. Combined Works. - - You may convey a Combined Work under terms of your choice that, -taken together, effectively do not restrict modification of the -portions of the Library contained in the Combined Work and reverse -engineering for debugging such modifications, if you also do each of -the following: - - a) Give prominent notice with each copy of the Combined Work that - the Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the Combined Work with a copy of the GNU GPL and this license - document. - - c) For a Combined Work that displays copyright notices during - execution, include the copyright notice for the Library among - these notices, as well as a reference directing the user to the - copies of the GNU GPL and this license document. - - d) Do one of the following: - - 0) Convey the Minimal Corresponding Source under the terms of this - License, and the Corresponding Application Code in a form - suitable for, and under terms that permit, the user to - recombine or relink the Application with a modified version of - the Linked Version to produce a modified Combined Work, in the - manner specified by section 6 of the GNU GPL for conveying - Corresponding Source. - - 1) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (a) uses at run time - a copy of the Library already present on the user's computer - system, and (b) will operate properly with a modified version - of the Library that is interface-compatible with the Linked - Version. - - e) Provide Installation Information, but only if you would otherwise - be required to provide such information under section 6 of the - GNU GPL, and only to the extent that such information is - necessary to install and execute a modified version of the - Combined Work produced by recombining or relinking the - Application with a modified version of the Linked Version. (If - you use option 4d0, the Installation Information must accompany - the Minimal Corresponding Source and Corresponding Application - Code. If you use option 4d1, you must provide the Installation - Information in the manner specified by section 6 of the GNU GPL - for conveying Corresponding Source.) - - 5. Combined Libraries. - - You may place library facilities that are a work based on the -Library side by side in a single library together with other library -facilities that are not Applications and are not covered by this -License, and convey such a combined library under terms of your -choice, if you do both of the following: - - a) Accompany the combined library with a copy of the same work based - on the Library, uncombined with any other library facilities, - conveyed under the terms of this License. - - b) Give prominent notice with the combined library that part of it - is a work based on the Library, and explaining where to find the - accompanying uncombined form of the same work. - - 6. Revised Versions of the GNU Lesser General Public License. - - The Free Software Foundation may publish revised and/or new versions -of the GNU Lesser General Public License from time to time. Such new -versions will be similar in spirit to the present version, but may -differ in detail to address new problems or concerns. - - Each version is given a distinguishing version number. If the -Library as you received it specifies that a certain numbered version -of the GNU Lesser General Public License "or any later version" -applies to it, you have the option of following the terms and -conditions either of that published version or of any later version -published by the Free Software Foundation. If the Library as you -received it does not specify a version number of the GNU Lesser -General Public License, you may choose any version of the GNU Lesser -General Public License ever published by the Free Software Foundation. - - If the Library as you received it specifies that a proxy can decide -whether future versions of the GNU Lesser General Public License shall -apply, that proxy's public statement of acceptance of any version is -permanent authorization for you to choose that version for the -Library. diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/LICENSE.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/LICENSE.meta deleted file mode 100644 index 4f58b5ab1..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/LICENSE.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: a82fcdba87d6a974c868b5df8fc7cb32 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/README.md b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/README.md deleted file mode 100644 index 8d1e264ad..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/README.md +++ /dev/null @@ -1,64 +0,0 @@ -# Unity ^2020.1.0 Web3GL Template - -## Methods in Browser - -![](https://user-images.githubusercontent.com/19412160/149653806-b2c4ca54-1986-4481-bd61-721dbd8a7967.png) - -Dispay login modal: - -```javascript -window.web3gl.connect(); -``` - -Get Network: - -```javascript -window.web3gl.networkId; -``` - -Get Connected Address: - -```javascript -window.web3gl.connectAccount; -``` - -To Send Transaction: - -```javascript -const to = "0xdD4c825203f97984e7867F11eeCc813A036089D1"; -const value = "12300000000000000"; -const gasLimit = "21000"; // gas limit -const gasPrice = "33333333333"; -window.web3gl.sendTransaction(to, value, gasLimit, gasPrice); -``` - -To Interact with Contract: - -```javascript -const method = "increment"; -const abi = `[ { "inputs": [], "name": "increment", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "x", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ]`; -const contract = "0xB6B8bB1e16A6F73f7078108538979336B9B7341C"; -const args = "[]"; -const value = "0"; -const gasLimit = "222222"; // gas limit -const gasPrice = "333333333333"; -window.web3gl.sendContract(method, abi, contract, args, value, gasLimit, gasPrice); -``` - -## Enable Torus - -In `web3/index.js` - -Uncomment - -```javascript -document.body.appendChild(Object.assign(document.createElement("script"), { type: "text/javascript", src: "https://unpkg.com/@toruslabs/torus-embed" })); -``` - -```javascript - const providerOptions = { - torus: { - package: Torus, - } - }; -``` diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/README.md.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/README.md.meta deleted file mode 100644 index f90edde8e..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/README.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 1a20cb29590b664428adcde8ae86d92c -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/favicon.ico b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/favicon.ico deleted file mode 100644 index dd6bf7e9c..000000000 Binary files a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/favicon.ico and /dev/null differ diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/favicon.ico.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/favicon.ico.meta deleted file mode 100644 index eb53a9eca..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/favicon.ico.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 7697539e350e36d4dbe95c5d28b36b8a -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/fullscreen-button.png b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/fullscreen-button.png deleted file mode 100644 index e7b6496fc..000000000 Binary files a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/fullscreen-button.png and /dev/null differ diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/fullscreen-button.png.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/fullscreen-button.png.meta deleted file mode 100644 index c2cf38ff7..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/fullscreen-button.png.meta +++ /dev/null @@ -1,135 +0,0 @@ -fileFormatVersion: 2 -guid: 1cb8f52c28fbe85438b2529bd71f0a42 -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 12 - mipmaps: - mipMapMode: 0 - enableMipMap: 0 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - ignoreMasterTextureLimit: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: 1 - aniso: 1 - mipBias: 0 - wrapU: 1 - wrapV: 1 - wrapW: 1 - nPOTScale: 0 - lightmap: 0 - compressionQuality: 50 - spriteMode: 1 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 1 - spriteTessellationDetail: -1 - textureType: 8 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - cookieLightType: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: Standalone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: Server - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: WebGL - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: 5e97eb03825dee720800000000000000 - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - nameFileIdTable: {} - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-empty-dark.png b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-empty-dark.png deleted file mode 100644 index d01612f72..000000000 Binary files a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-empty-dark.png and /dev/null differ diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-empty-dark.png.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-empty-dark.png.meta deleted file mode 100644 index 1eaf8f75f..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-empty-dark.png.meta +++ /dev/null @@ -1,135 +0,0 @@ -fileFormatVersion: 2 -guid: 9cfb98aeab11dad4d9c418f142d17ad0 -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 12 - mipmaps: - mipMapMode: 0 - enableMipMap: 0 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - ignoreMasterTextureLimit: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: 1 - aniso: 1 - mipBias: 0 - wrapU: 1 - wrapV: 1 - wrapW: 1 - nPOTScale: 0 - lightmap: 0 - compressionQuality: 50 - spriteMode: 1 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 1 - spriteTessellationDetail: -1 - textureType: 8 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - cookieLightType: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: Standalone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: Server - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: WebGL - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: 5e97eb03825dee720800000000000000 - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - nameFileIdTable: {} - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-empty-light.png b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-empty-light.png deleted file mode 100644 index 593a32907..000000000 Binary files a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-empty-light.png and /dev/null differ diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-empty-light.png.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-empty-light.png.meta deleted file mode 100644 index bb13afb59..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-empty-light.png.meta +++ /dev/null @@ -1,135 +0,0 @@ -fileFormatVersion: 2 -guid: 39f029297d41c9548b0e4a900a5a3e96 -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 12 - mipmaps: - mipMapMode: 0 - enableMipMap: 0 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - ignoreMasterTextureLimit: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: 1 - aniso: 1 - mipBias: 0 - wrapU: 1 - wrapV: 1 - wrapW: 1 - nPOTScale: 0 - lightmap: 0 - compressionQuality: 50 - spriteMode: 1 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 1 - spriteTessellationDetail: -1 - textureType: 8 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - cookieLightType: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: Standalone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: Server - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: WebGL - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: 5e97eb03825dee720800000000000000 - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - nameFileIdTable: {} - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-full-dark.png b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-full-dark.png deleted file mode 100644 index c432c8666..000000000 Binary files a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-full-dark.png and /dev/null differ diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-full-dark.png.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-full-dark.png.meta deleted file mode 100644 index e6be89a96..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-full-dark.png.meta +++ /dev/null @@ -1,135 +0,0 @@ -fileFormatVersion: 2 -guid: afefecc0cb078104da7bb5bb61c0343c -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 12 - mipmaps: - mipMapMode: 0 - enableMipMap: 0 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - ignoreMasterTextureLimit: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: 1 - aniso: 1 - mipBias: 0 - wrapU: 1 - wrapV: 1 - wrapW: 1 - nPOTScale: 0 - lightmap: 0 - compressionQuality: 50 - spriteMode: 1 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 1 - spriteTessellationDetail: -1 - textureType: 8 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - cookieLightType: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: Standalone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: Server - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: WebGL - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: 5e97eb03825dee720800000000000000 - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - nameFileIdTable: {} - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-full-light.png b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-full-light.png deleted file mode 100644 index e683131ab..000000000 Binary files a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-full-light.png and /dev/null differ diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-full-light.png.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-full-light.png.meta deleted file mode 100644 index bd87ca65a..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/progress-bar-full-light.png.meta +++ /dev/null @@ -1,135 +0,0 @@ -fileFormatVersion: 2 -guid: 57472266d49be4347803205da2263d81 -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 12 - mipmaps: - mipMapMode: 0 - enableMipMap: 0 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - ignoreMasterTextureLimit: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: 1 - aniso: 1 - mipBias: 0 - wrapU: 1 - wrapV: 1 - wrapW: 1 - nPOTScale: 0 - lightmap: 0 - compressionQuality: 50 - spriteMode: 1 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 1 - spriteTessellationDetail: -1 - textureType: 8 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - cookieLightType: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: Standalone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: Server - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: WebGL - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: 5e97eb03825dee720800000000000000 - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - nameFileIdTable: {} - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/style.css b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/style.css deleted file mode 100644 index 1d2a3da24..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/style.css +++ /dev/null @@ -1,17 +0,0 @@ -body { padding: 0; margin: 0 } -#unity-container { position: absolute } -#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) } -#unity-container.unity-mobile { width: 100%; height: 100% } -#unity-canvas { background: {{{ BACKGROUND_COLOR }}} } -.unity-mobile #unity-canvas { width: 100%; height: 100% } -#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none } -#unity-logo { width: 154px; height: 130px; background: url('unity-logo-{{{ SPLASH_SCREEN_STYLE.toLowerCase() }}}.png') no-repeat center } -#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; background: url('progress-bar-empty-{{{ SPLASH_SCREEN_STYLE.toLowerCase() }}}.png') no-repeat center } -#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-{{{ SPLASH_SCREEN_STYLE.toLowerCase() }}}.png') no-repeat center } -#unity-footer { position: relative } -.unity-mobile #unity-footer { display: none } -#unity-webgl-logo { float:left; width: 204px; height: 38px; background: url('webgl-logo.png') no-repeat center } -#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px } -#unity-fullscreen-button { float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center } -#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none } -.web3modal-modal-card { font-family: sans-serif} \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/style.css.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/style.css.meta deleted file mode 100644 index 40b797c9f..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/style.css.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 899441dc6abd4414690f648d4f47a3ac -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/unity-logo-dark.png b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/unity-logo-dark.png deleted file mode 100644 index 597665d0c..000000000 Binary files a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/unity-logo-dark.png and /dev/null differ diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/unity-logo-dark.png.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/unity-logo-dark.png.meta deleted file mode 100644 index 0755eadc5..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/unity-logo-dark.png.meta +++ /dev/null @@ -1,135 +0,0 @@ -fileFormatVersion: 2 -guid: a95798d865fe8334e8eccdf20ba920a4 -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 12 - mipmaps: - mipMapMode: 0 - enableMipMap: 0 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - ignoreMasterTextureLimit: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: 1 - aniso: 1 - mipBias: 0 - wrapU: 1 - wrapV: 1 - wrapW: 1 - nPOTScale: 0 - lightmap: 0 - compressionQuality: 50 - spriteMode: 1 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 1 - spriteTessellationDetail: -1 - textureType: 8 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - cookieLightType: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: Standalone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: Server - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: WebGL - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: 5e97eb03825dee720800000000000000 - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - nameFileIdTable: {} - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/unity-logo-light.png b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/unity-logo-light.png deleted file mode 100644 index ad281ab10..000000000 Binary files a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/unity-logo-light.png and /dev/null differ diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/unity-logo-light.png.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/unity-logo-light.png.meta deleted file mode 100644 index 8936f4bf8..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/unity-logo-light.png.meta +++ /dev/null @@ -1,135 +0,0 @@ -fileFormatVersion: 2 -guid: e8dd3b5f55a878a4e86b032005b5e14c -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 12 - mipmaps: - mipMapMode: 0 - enableMipMap: 0 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - ignoreMasterTextureLimit: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: 1 - aniso: 1 - mipBias: 0 - wrapU: 1 - wrapV: 1 - wrapW: 1 - nPOTScale: 0 - lightmap: 0 - compressionQuality: 50 - spriteMode: 1 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 1 - spriteTessellationDetail: -1 - textureType: 8 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - cookieLightType: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: Standalone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: Server - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: WebGL - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: 5e97eb03825dee720800000000000000 - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - nameFileIdTable: {} - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/webgl-logo.png b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/webgl-logo.png deleted file mode 100644 index ed9efa2b6..000000000 Binary files a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/webgl-logo.png and /dev/null differ diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/webgl-logo.png.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/webgl-logo.png.meta deleted file mode 100644 index 6015d69f0..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/TemplateData/webgl-logo.png.meta +++ /dev/null @@ -1,135 +0,0 @@ -fileFormatVersion: 2 -guid: 927b8576ecc943b4fb39e072c86bab6b -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 12 - mipmaps: - mipMapMode: 0 - enableMipMap: 0 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - ignoreMasterTextureLimit: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: 1 - aniso: 1 - mipBias: 0 - wrapU: 1 - wrapV: 1 - wrapW: 1 - nPOTScale: 0 - lightmap: 0 - compressionQuality: 50 - spriteMode: 1 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 1 - spriteTessellationDetail: -1 - textureType: 8 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - cookieLightType: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: Standalone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: Server - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: WebGL - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: 5e97eb03825dee720800000000000000 - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - nameFileIdTable: {} - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/index.html b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/index.html deleted file mode 100644 index 14bbc74aa..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/index.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - - Unity WebGL Player | {{{ PRODUCT_NAME }}} - - - - -
- -
- -
-
-
-
-
- -
- - - - diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/index.html.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/index.html.meta deleted file mode 100644 index b244f957d..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/index.html.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 2678f2c3a41d01b4d964eb938532662b -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/network.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/network.js deleted file mode 100644 index 0681866ba..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/network.js +++ /dev/null @@ -1,25 +0,0 @@ -/* -Used to set the network: https://chainlist.org/ -1 Mainnet -3 Ropsten -4 Rinkeby -5 Goerli -42 Kovan -56 Binance Smart Chain Mainnet -97 Binance Smart Chain Testnet -100 xDai -137 Matic -1287 Moonbase Testnet -80001 Matic Testnet -43113 Avalanche Testnet -43114 Avalanche Mainnet -42220 Celo Mainnet -44787 Celo Alfajores Testnet -62320 Celo Baklava Testnet -1666700000 Harmony Testnet Shard0 -1666600000 Harmony Mainnet Shard0 -25 Cronos Mainnet Beta -338 Cronos Testnet -*/ - -window.web3ChainId = 11155111; diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/network.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/network.js.meta deleted file mode 100644 index d717459ce..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/network.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 45d30abb05a9e7c42862497e13f434a2 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/thumbnail.png.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/thumbnail.png.meta deleted file mode 100644 index 57e0e9363..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/thumbnail.png.meta +++ /dev/null @@ -1,135 +0,0 @@ -fileFormatVersion: 2 -guid: 9d0e75e3d70f22a45876ee2e259cb5e0 -TextureImporter: - internalIDToNameTable: [] - externalObjects: {} - serializedVersion: 12 - mipmaps: - mipMapMode: 0 - enableMipMap: 0 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - vTOnly: 0 - ignoreMasterTextureLimit: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: 1 - aniso: 1 - mipBias: 0 - wrapU: 1 - wrapV: 1 - wrapW: 1 - nPOTScale: 0 - lightmap: 0 - compressionQuality: 50 - spriteMode: 1 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 1 - spriteTessellationDetail: -1 - textureType: 8 - textureShape: 1 - singleChannelComponent: 0 - flipbookRows: 1 - flipbookColumns: 1 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - ignorePngGamma: 0 - applyGammaDecoding: 0 - cookieLightType: 0 - platformSettings: - - serializedVersion: 3 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: Standalone - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: Server - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - - serializedVersion: 3 - buildTarget: WebGL - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - forceMaximumCompressionQuality_BC6H_BC7: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: 5e97eb03825dee720800000000000000 - internalID: 0 - vertices: [] - indices: - edges: [] - weights: [] - secondaryTextures: [] - nameFileIdTable: {} - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/web3.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/web3.meta deleted file mode 100644 index faaf6c9a6..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/web3.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1cd2a379af6624f428081c113ec1896f -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/web3/index.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/web3/index.js deleted file mode 100644 index e63f95b30..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/web3/index.js +++ /dev/null @@ -1,396 +0,0 @@ -// load network.js to get network/chain id -document.body.appendChild(Object.assign(document.createElement("script"), { type: "text/javascript", src: "./network.js" })); -// load web3modal to connect to wallet -document.body.appendChild(Object.assign(document.createElement("script"), { type: "text/javascript", src: "./web3/lib/web3modal.js" })); -// load web3js to create transactions -document.body.appendChild(Object.assign(document.createElement("script"), { type: "text/javascript", src: "./web3/lib/web3.min.js" })); -// uncomment to enable walletconnect -// document.body.appendChild(Object.assign(document.createElement("script"), { type: "text/javascript", src: "https://unpkg.com/@walletconnect/web3-provider@1.2.1/dist/umd/index.min.js" })); - -// load web3gl to connect to unity -window.web3gl = { - networkId: 0, - connect, - connectAccount: "", - signMessage, - signMessageResponse: "", - signTypedMessage, - signTypedMessageResponse: "", - callContract, - callContractResponse:"", - callContractError:"", - sendTransaction, - sendTransactionResponse: "", - sha3Message, - hashMessageResponse: "", - ecRecover, - addTokenFunction, - ecRecoverAddressResponse:"", - sendTransactionResponse: "", - sendTransactionData, - sendTransactionResponseData:"", - sendContract, - sendContractResponse: "", -}; - -// will be defined after connect() -let provider; -let web3; - -/* -paste this in inspector to connect to wallet: -window.web3gl.connect() -*/ -async function connect() { - if (window.ethereum?.request === undefined) { - alert("No browser wallet extension detected. Please install one & retry"); - return; - }; - // uncomment to enable walletconnect - const providerOptions = { - // walletconnect: { - // package: window.WalletConnectProvider.default, - // options: { - // infuraId: "00000000000000000000000000000000", - // }, - // }, - }; - - const web3Modal = new window.Web3Modal.default({ - providerOptions, - }); - - web3Modal.clearCachedProvider(); - - // set provider - provider = await web3Modal.connect(); - web3 = new Web3(provider); - - // set current network id - web3gl.networkId = parseInt(provider.chainId); - - // if current network id is not equal to network id, then switch - if (web3gl.networkId != window.web3ChainId) { - try { - await window.ethereum.request({ - method: "wallet_switchEthereumChain", - params: [{ chainId: `0x${window.web3ChainId.toString(16)}` }], // chainId must be in hexadecimal numbers - }); - } catch { - // if network isn't added, pop-up metamask to add - await addEthereumChain(); - } - } - - // set current account - // provider.selectedAddress works for metamask - // provider.accounts[0] works for walletconnect - - web3gl.connectAccount = web3.utils.toChecksumAddress(provider.selectedAddress) || web3.utils.toChecksumAddress(provider.accounts[0]); - - // refresh page if player changes account - provider.on("accountsChanged", (accounts) => { - window.location.reload(); - }); - - // update if player changes network - provider.on("chainChanged", (chainId) => { - web3gl.networkId = parseInt(chainId); - }); -} - -window.onload = (event) => { - isConnected(); -}; - -async function isConnected() { - const accounts = await ethereum.request({method: 'eth_accounts'}); - if (accounts.length) { - console.log(`You're connected to: ${accounts[0]}`); - } else { - console.log("Metamask is not connected"); - } -} - -/* - Add custom token to EOA - Address = 0xd8Aa1F592B6f0670176958d93cD0c6D3E2627597 - Symbol = PROS - Decimals = 18 - TokenImage = https://www.my_web_site.com/logo.png - */ - -async function addTokenFunction(_tokenAddress, _tokenSymbol, _tokenDecimals, _tokenImage) { - - var tokenAddress = _tokenAddress; - var tokenSymbol = _tokenSymbol; - var tokenDecimals = _tokenDecimals; - var tokenImage = _tokenImage; - - try { - const tokenExist = await ethereum.request({ - method: 'wallet_watchAsset', - params: { - type: 'ERC20', - options: { - address: _tokenAddress, - symbol: _tokenSymbol, - decimals: _tokenDecimals, - image: _tokenImage, - }, - }, - }); - - if (tokenExist) { - console.log(`${tokenSymbol} token already exists in your wallet`); - } - } catch (error) { - console.log(error); - } -} - -/* - Will calculate the sha3 of the input. -*/ -async function sha3Message(message) { - try { - const hashedMessage = await web3.utils.sha3(message); - window.web3gl.hashMessageResponse = hashedMessage; - } catch (error) { - window.web3gl.hashMessageResponse = error.message; - } -} - -/* - Will recover the address of signer -*/ -async function ecRecover(message,signature) { - try { - const recoverAddress = await web3.eth.accounts.recover(message, signature); - window.web3gl.ecRecoverAddressResponse = recoverAddress; - } catch (error) { - window.web3gl.ecRecoverAddressResponse = error.message; - } -} - - -/* -paste this in inspector to connect to sign message: -window.web3gl.signMessage("hello") -*/ -async function signMessage(message) { - try { - const from = (await web3.eth.getAccounts())[0]; - const signature = await web3.eth.personal.sign(message, from, ""); - window.web3gl.signMessageResponse = signature; - } catch (error) { - window.web3gl.signMessageResponse = error.message; - } -} - -/* -paste this in inspector to connect to sign typed message: -An example: -domain = {"name":"","version":"1","chainId":"","verifyingContract":""} -types = {"PrimaryType":[{"name":"chainId","type":"uint256"},{"name":"target","type":"address"},{"name":"data","type":"bytes"},{"name":"user","type":"address"},{"name":"userNonce","type":"uint256"},{"name":"userDeadline","type":"uint256"}]} -value = {"chainId":"","target":"","data":"","user":"","userNonce":"","userDeadline":""} -window.web3gl.signTypedMessage(domain, types, value) -*/ -async function signTypedMessage(domain, types, value) { - const deducePrimaryType = (types) => { - const typeNames = Object.keys(types); - if (typeNames.includes("EIP712Domain")) throw Error("EIP712Domain declaration managed by SDK") - - let primaryType = [...typeNames]; - typeNames.map(typeName => { - types[typeName].map(propertyItem => { - if (typeNames.includes(propertyItem.type)) { - primaryType = primaryType.filter(tn => tn != propertyItem.type) - } - }) - }); - if (primaryType.length != 1) throw Error("Primary type could not be determined") - - return primaryType[0]; - } - - try { - - var from = web3.utils.toChecksumAddress((await web3.eth.getAccounts())[0]); - - const parsedTypes = JSON.parse(types); - - const compiledTogether = { - types: { - EIP712Domain: [ - { name: "name", type: "string" }, - { name: "version", type: "string" }, - { name: "chainId", type: "uint256" }, - { name: "verifyingContract", type: "address" } - ], - ...parsedTypes, - }, - primaryType: deducePrimaryType(parsedTypes), - domain: JSON.parse(domain), - message: JSON.parse(value), - } - var params = [from, JSON.stringify(compiledTogether)]; - var method = 'eth_signTypedData_v4'; - - web3.currentProvider.sendAsync( - { - method, - params, - from: from, - }, - function (err, result) { - if (err) { - console.dir(err) - throw err - }; - if (result.error) { - throw result.error - } - if (result.error) { - throw result - }; - window.web3gl.signTypedMessageResponse = result.result; - } - ); - } catch (error) { - window.web3gl.signTypedMessageResponse = error.message; - } -} - -/* -paste this in inspector to send eth: -const to = "0xdD4c825203f97984e7867F11eeCc813A036089D1" -const value = "12300000000000000" -const gasLimit = "21000" // gas limit -const gasPrice = "33333333333" -window.web3gl.sendTransaction(to, value, gasLimit, gasPrice); -*/ -async function sendTransaction(to, value, gasLimit, gasPrice) { - const from = (await web3.eth.getAccounts())[0]; - web3.eth - .sendTransaction({ - from, - to, - value, - gas: gasLimit ? gasLimit : undefined, - gasPrice: gasPrice ? gasPrice : undefined, - }) - .on("transactionHash", (transactionHash) => { - window.web3gl.sendTransactionResponse = transactionHash; - }) - .on("error", (error) => { - window.web3gl.sendTransactionResponse = error.message; - }); -} - -/* -paste this in inspector to send eth: -const to = "0x20E7D0C4182149ADBeFE446E82358A2b2D5244e9" -const value = "0" -const gasPrice = "1100000010" -const gasLimit = "228620" // gas limit -const data = "0xd0def521000000000000000000000000d25b827d92b0fd656a1c829933e9b0b836d5c3e20000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002e516d586a576a6a4d55387233395543455a38343833614e6564774e5246524c767656396b7771314770436774686a000000000000000000000000000000000000" -window.web3gl.sendTransactionData(to, value, gasPrice, gasLimit, data); -*/ -async function sendTransactionData(to, value, gasPrice, gasLimit, data) { - const from = (await web3.eth.getAccounts())[0]; - web3.eth - .sendTransaction({ - from, - to, - value, - gasPrice: gasPrice ? gasPrice : undefined, - gas: gasLimit ? gasLimit : undefined, - data: data ? data : undefined, - }) - .on("transactionHash", (transactionHash) => { - window.web3gl.sendTransactionResponseData = transactionHash; - }) - .on("error", (error) => { - window.web3gl.sendTransactionResponseData = error.message; - }); -} - -/* -calls a non-mutable contract method. -const method = "x" -const abi = `[ { "inputs": [], "name": "increment", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "x", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ]`; -const contract = "0xB6B8bB1e16A6F73f7078108538979336B9B7341C" -const args = "[]" -window.web3gl.callContract(method, abi, contract, args) -*/ -async function callContract(method, abi, contract, args) { - const from = (await web3.eth.getAccounts())[0]; - new web3.eth.Contract(JSON.parse(abi), contract).methods[method]( - ...JSON.parse(args) - ).call() - .then((result) => window.web3gl.callContractResponse = result) - .catch((error) => window.web3gl.callContractError = error.message); -} - -/* -paste this in inspector to connect to interact with contract: -const method = "increment" -const abi = `[ { "inputs": [], "name": "increment", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "x", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ]`; -const contract = "0xB6B8bB1e16A6F73f7078108538979336B9B7341C" -const args = "[]" -const value = "0" -const gasLimit = "222222" // gas limit -const gasPrice = "333333333333" -window.web3gl.sendContract(method, abi, contract, args, value, gasLimit, gasPrice) -*/ -async function sendContract(method, abi, contract, args, value, gasLimit, gasPrice) { - const from = (await web3.eth.getAccounts())[0]; - new web3.eth.Contract(JSON.parse(abi), contract).methods[method](...JSON.parse(args)) - .send({ - from, - value, - gas: gasLimit ? gasLimit : undefined, - gasPrice: gasPrice ? gasPrice : undefined, - }) - .on("transactionHash", (transactionHash) => { - window.web3gl.sendContractResponse = transactionHash; - }) - .on("error", (error) => { - window.web3gl.sendContractResponse = error.message; - }); -} - -// add new wallet to in metamask -async function addEthereumChain() { - const account = (await web3.eth.getAccounts())[0]; - - // fetch https://chainid.network/chains.json - const response = await fetch("https://chainid.network/chains.json"); - const chains = await response.json(); - - // find chain with network id - const chain = chains.find((chain) => chain.chainId == window.web3ChainId); - - const params = { - chainId: "0x" + chain.chainId.toString(16), // A 0x-prefixed hexadecimal string - chainName: chain.name, - nativeCurrency: { - name: chain.nativeCurrency.name, - symbol: chain.nativeCurrency.symbol, // 2-6 characters long - decimals: chain.nativeCurrency.decimals, - }, - rpcUrls: chain.rpc, - blockExplorerUrls: [chain.explorers && chain.explorers.length > 0 && chain.explorers[0].url ? chain.explorers[0].url : chain.infoURL], - }; - - await window.ethereum - .request({ - method: "wallet_addEthereumChain", - params: [params, account], - }) - .catch(() => { - // I give up - window.location.reload(); - }); -} diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/web3/index.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/web3/index.js.meta deleted file mode 100644 index a59af58f6..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/web3/index.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 6ad393ff4a0596b4cb6849733e9e01a1 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/web3/lib.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/web3/lib.meta deleted file mode 100644 index 612a9eb64..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/web3/lib.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 4ee15f48512556a46b8f95482d86403a -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/web3/lib/web3.min.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/web3/lib/web3.min.js deleted file mode 100644 index 32e9412bf..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/web3/lib/web3.min.js +++ /dev/null @@ -1,57 +0,0 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Web3=e():t.Web3=e()}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=204)}([function(t,e,r){"use strict";t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";(function(t){ - /*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ - var n=r(213),i=r(214),o=r(107);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return D(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q(t).length;default:if(n)return D(t).length;e=(""+e).toLowerCase(),n=!0}}function m(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return P(this,e,r);case"utf8":case"utf-8":return x(this,e,r);case"ascii":return E(this,e,r);case"latin1":case"binary":return O(this,e,r);case"base64":return A(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:y(t,e,r,n,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):y(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,r,n,i){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function f(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=r;os&&(r=s-u),o=r;o>=0;o--){for(var h=!0,l=0;li&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function A(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function x(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i239?4:f>223?3:f>191?2:1;if(i+h<=r)switch(h){case 1:f<128&&(c=f);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&f)<<6|63&o)>127&&(c=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&f)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&f)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},u.prototype.compare=function(t,e,r,n,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),f=this.slice(n,i),c=t.slice(e,r),h=0;hi)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return g(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return k(this,t,e,r);case"base64":return M(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function E(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;in)&&(r=n);for(var i="",o=e;or)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function I(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i>>8*(n?i:1-i)}function C(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i>>8*(n?i:3-i)&255}function U(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(t,e,r,n,o){return o||U(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function N(t,e,r,n,o){return o||U(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return e||T(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||T(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||T(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||T(t,e,this.length);for(var n=this[t],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||T(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||T(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||T(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||T(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||T(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||T(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||T(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||R(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):C(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):C(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);R(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);R(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):C(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):C(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return j(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return j(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return N(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return N(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--i)t[i+e]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function q(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(L,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function H(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(7))},function(t,e,r){"use strict";function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=n=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},function(t,e,r){"use strict";var n=r(1),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e,r){"use strict";t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";var n,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var f,c=[],h=!1,l=-1;function d(){h&&f&&(h=!1,f.length?c=f.concat(c):l=-1,c.length&&p())}function p(){if(!h){var t=u(d);h=!0;for(var e=c.length;e;){for(f=c,c=[];++l1)for(var r=1;r=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function f(t,e,r){var n=u(t,r);return r-1>=e&&(n|=u(t,r-1)<<4),n}function c(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(t){return t instanceof a||null!==t&&"object"===(0,e.default)(t)&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)>0?t:e},a.min=function(t,e){return t.cmp(e)<0?t:e},a.prototype._init=function(t,r,n){if("number"==typeof t)return this._initNumber(t,r,n);if("object"===(0,e.default)(t))return this._initArray(t,r,n);"hex"===r&&(r=16),i(r===(0|r)&&r>=2&&r<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o=0;n-=3)a=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},a.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=f(t,e,n)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,f=r;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var f=1;f>>26,h=67108863&u,l=Math.min(f,e.length-1),d=Math.max(0,f-t.length+1);d<=l;d++){var p=f-d|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r.strip()}a.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?h[6-u.length]+u+r:u+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var f=l[t],c=d[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(c).toString(t);r=(p=p.idivn(c)).isZero()?m+r:h[f-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,e){return i(void 0!==s),this.toArrayLike(s,t,e)},a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},a.prototype.toArrayLike=function(t,e,r){var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,f=new t(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),f[s]=a;for(;s=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var r=t/26|0,n=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,b=0|a[2],v=8191&b,y=b>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],M=8191&k,S=k>>>13,A=0|a[5],x=8191&A,E=A>>>13,O=0|a[6],P=8191&O,B=O>>>13,T=0|a[7],R=8191&T,I=T>>>13,C=0|a[8],U=8191&C,j=C>>>13,N=0|a[9],L=8191&N,F=N>>>13,D=0|s[0],q=8191&D,H=D>>>13,z=0|s[1],K=8191&z,G=z>>>13,V=0|s[2],W=8191&V,Z=V>>>13,J=0|s[3],X=8191&J,Y=J>>>13,$=0|s[4],Q=8191&$,tt=$>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ft=st>>>13,ct=0|s[8],ht=8191&ct,lt=ct>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var bt=(f+(n=Math.imul(h,q))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(l,q)|0))<<13)|0;f=((o=Math.imul(l,H))+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,H))+Math.imul(m,q)|0,o=Math.imul(m,H);var vt=(f+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,G)|0)+Math.imul(l,K)|0))<<13)|0;f=((o=o+Math.imul(l,G)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),i=(i=Math.imul(v,H))+Math.imul(y,q)|0,o=Math.imul(y,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0;var yt=(f+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(l,W)|0))<<13)|0;f=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,H))+Math.imul(_,q)|0,o=Math.imul(_,H),n=n+Math.imul(v,K)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,Z)|0;var gt=(f+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(l,X)|0))<<13)|0;f=((o=o+Math.imul(l,Y)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(M,q),i=(i=Math.imul(M,H))+Math.imul(S,q)|0,o=Math.imul(S,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,Y)|0;var wt=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,Q)|0))<<13)|0;f=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,H))+Math.imul(E,q)|0,o=Math.imul(E,H),n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,Y)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var _t=(f+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(l,rt)|0))<<13)|0;f=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,H))+Math.imul(B,q)|0,o=Math.imul(B,H),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,G)|0,n=n+Math.imul(M,W)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0;var kt=(f+(n=n+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;f=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,H))+Math.imul(I,q)|0,o=Math.imul(I,H),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,G)|0,n=n+Math.imul(x,W)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,Z)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(f+(n=n+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ft)|0)+Math.imul(l,ut)|0))<<13)|0;f=((o=o+Math.imul(l,ft)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(U,q),i=(i=Math.imul(U,H))+Math.imul(j,q)|0,o=Math.imul(j,H),n=n+Math.imul(R,K)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(B,W)|0,o=o+Math.imul(B,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(E,X)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(v,ot)|0,i=(i=i+Math.imul(v,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,ft)|0;var St=(f+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;f=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(L,q),i=(i=Math.imul(L,H))+Math.imul(F,q)|0,o=Math.imul(F,H),n=n+Math.imul(U,K)|0,i=(i=i+Math.imul(U,G)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,Z)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(v,ut)|0,i=(i=i+Math.imul(v,ft)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0;var At=(f+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(l,pt)|0))<<13)|0;f=((o=o+Math.imul(l,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,G))+Math.imul(F,K)|0,o=Math.imul(F,G),n=n+Math.imul(U,W)|0,i=(i=i+Math.imul(U,Z)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,Z)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(E,rt)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ft)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ft)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0;var xt=(f+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;f=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(L,W),i=(i=Math.imul(L,Z))+Math.imul(F,W)|0,o=Math.imul(F,Z),n=n+Math.imul(U,X)|0,i=(i=i+Math.imul(U,Y)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(B,rt)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,n=n+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,ft)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ht)|0,o=o+Math.imul(_,lt)|0;var Et=(f+(n=n+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(y,pt)|0))<<13)|0;f=((o=o+Math.imul(y,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,Y))+Math.imul(F,X)|0,o=Math.imul(F,Y),n=n+Math.imul(U,Q)|0,i=(i=i+Math.imul(U,tt)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ft)|0)+Math.imul(E,ut)|0,o=o+Math.imul(E,ft)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,lt)|0;var Ot=(f+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;f=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,tt))+Math.imul(F,Q)|0,o=Math.imul(F,tt),n=n+Math.imul(U,rt)|0,i=(i=i+Math.imul(U,nt)|0)+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ft)|0)+Math.imul(B,ut)|0,o=o+Math.imul(B,ft)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(E,ht)|0,o=o+Math.imul(E,lt)|0;var Pt=(f+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(S,pt)|0))<<13)|0;f=((o=o+Math.imul(S,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(L,rt),i=(i=Math.imul(L,nt))+Math.imul(F,rt)|0,o=Math.imul(F,nt),n=n+Math.imul(U,ot)|0,i=(i=i+Math.imul(U,at)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ft)|0)+Math.imul(I,ut)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(B,ht)|0,o=o+Math.imul(B,lt)|0;var Bt=(f+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(E,pt)|0))<<13)|0;f=((o=o+Math.imul(E,mt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(L,ot),i=(i=Math.imul(L,at))+Math.imul(F,ot)|0,o=Math.imul(F,at),n=n+Math.imul(U,ut)|0,i=(i=i+Math.imul(U,ft)|0)+Math.imul(j,ut)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(R,ht)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(I,ht)|0,o=o+Math.imul(I,lt)|0;var Tt=(f+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(B,pt)|0))<<13)|0;f=((o=o+Math.imul(B,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(L,ut),i=(i=Math.imul(L,ft))+Math.imul(F,ut)|0,o=Math.imul(F,ft),n=n+Math.imul(U,ht)|0,i=(i=i+Math.imul(U,lt)|0)+Math.imul(j,ht)|0,o=o+Math.imul(j,lt)|0;var Rt=(f+(n=n+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(I,pt)|0))<<13)|0;f=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(L,ht),i=(i=Math.imul(L,lt))+Math.imul(F,ht)|0,o=Math.imul(F,lt);var It=(f+(n=n+Math.imul(U,pt)|0)|0)+((8191&(i=(i=i+Math.imul(U,mt)|0)+Math.imul(j,pt)|0))<<13)|0;f=((o=o+Math.imul(j,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var Ct=(f+(n=Math.imul(L,pt))|0)+((8191&(i=(i=Math.imul(L,mt))+Math.imul(F,pt)|0))<<13)|0;return f=((o=Math.imul(F,mt))+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,u[0]=bt,u[1]=vt,u[2]=yt,u[3]=gt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=St,u[9]=At,u[10]=xt,u[11]=Et,u[12]=Ot,u[13]=Pt,u[14]=Bt,u[15]=Tt,u[16]=Rt,u[17]=It,u[18]=Ct,0!==f&&(u[19]=f,r.length++),r};function b(t,e,r){return(new v).mulp(t,e,r)}function v(t,e){this.x=t,this.y=e}Math.imul||(m=p),a.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):r<63?p(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):b(this,t,e)},v.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n>=1;return n},v.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,e+=n/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}(t);if(0===e.length)return new a(1);for(var r=this,n=0;n=0);var e,r=t%26,n=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e=0),n=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,f=0;f=0&&(0!==c||f>=n);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,r){return i(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){i("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,n=1<=0);var e=t%26,r=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var n=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(i("number"==typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o;if(0===s)return this.strip();for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new a(null)).length=u+1,s.words=new Array(s.length);for(var f=0;f=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){return i(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(n=s.div.neg()),"div"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:n,mod:o}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:s.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e);var n,o,s},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,r=0,n=this.length-1;n>=0;n--)r=(e*r+(0|this.words[n]))%t;return r},a.prototype.idivn=function(t){i(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*e;this.words[r]=n/t|0,e=n%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new a(1),o=new a(0),s=new a(0),u=new a(1),f=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(c),o.isub(h)),n.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),n.isub(s),o.isub(u)):(r.isub(e),s.isub(n),u.isub(o))}return{a:s,b:u,gcd:r.iushln(f)}},a.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n,o=new a(1),s=new a(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(e.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(e.iushrn(f);f-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var h=0,l=1;0==(r.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s)):(r.isub(e),s.isub(o))}return(n=0===e.cmpn(1)?o:s).cmpn(0)<0&&n.iadd(t),n},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){i("number"==typeof t);var e=t%26,r=(t-e)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),i(t<=67108863,"Number is too big");var n=0|this.words[0];e=n===t?0:nt.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new S(t)},a.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},o(w,g),w.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n>>22,i=o}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},a._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new _;else if("p192"===t)e=new k;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return y[t]=e,e},S.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){i(0==(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);i(!n.isZero());var s=new a(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,n),l=this.pow(t,n.addn(1).iushrn(1)),d=this.pow(t,n),p=o;0!==d.cmp(s);){for(var m=d,b=0;0!==m.cmp(s);b++)m=m.redSqr();i(b=0;n--){for(var f=e.words[n],c=u-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}u=26}return i},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new A(t)},o(A,S),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t)}).call(this,r(17)(t))},function(t,e,r){"use strict";function n(t,e){for(var r=0;r=256||r%1)return!1}return!0}function c(t,e){if(e||(e={}),"number"==typeof t){o.checkSafeUint53(t,"invalid arrayify value");for(var r=[];t;)r.unshift(255&t),t=parseInt(String(t/256));return 0===r.length&&r.push(0),s(new Uint8Array(r))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),a(t)&&(t=t.toHexString()),d(t)){var n=t.substring(2);n.length%2&&("left"===e.hexPad?n="0x0"+n.substring(2):"right"===e.hexPad?n+="0":o.throwArgumentError("hex data is odd-length","value",t));for(var i=[],u=0;ue&&o.throwArgumentError("value out of range","value",arguments[0]);var r=new Uint8Array(e);return r.set(t,e-t.length),s(r)}function d(t,e){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}function p(t,e){if(e||(e={}),"number"==typeof t){o.checkSafeUint53(t,"invalid hexlify value");for(var r="";t;)r="0123456789abcdef"[15&t]+r,t=Math.floor(t/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),a(t))return t.toHexString();if(d(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":o.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(f(t)){for(var n="0x",i=0;i>4]+"0123456789abcdef"[15&s]}return n}return o.throwArgumentError("invalid hexlify value","value",t)}function m(t){"string"!=typeof t&&(t=p(t)),d(t)||o.throwArgumentError("invalid hex string","value",t),t=t.substring(2);for(var e=0;e2*e+2&&o.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function v(t){var e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0};if(u(t)){var r=c(t);65!==r.length&&o.throwArgumentError("invalid signature string; must be 65 bytes","signature",t),e.r=p(r.slice(0,32)),e.s=p(r.slice(32,64)),e.v=r[64],e.v<27&&(0===e.v||1===e.v?e.v+=27:o.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=p(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){var n=l(c(e._vs),32);e._vs=p(n);var i=n[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=i:e.recoveryParam!==i&&o.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),n[0]&=127;var a=p(n);null==e.s?e.s=a:e.s!==a&&o.throwArgumentError("signature v mismatch _vs","signature",t)}null==e.recoveryParam?null==e.v?o.throwArgumentError("signature missing v and recoveryParam","signature",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2:null==e.v?e.v=27+e.recoveryParam:e.recoveryParam!==1-e.v%2&&o.throwArgumentError("signature recoveryParam mismatch v","signature",t),null!=e.r&&d(e.r)?e.r=b(e.r,32):o.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&d(e.s)?e.s=b(e.s,32):o.throwArgumentError("signature missing or invalid s","signature",t);var s=c(e.s);s[0]>=128&&o.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(s[0]|=128);var f=p(s);e._vs&&(d(e._vs)||o.throwArgumentError("signature invalid _vs","signature",t),e._vs=b(e._vs,32)),null==e._vs?e._vs=f:e._vs!==f&&o.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e}},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.Logger=e.ErrorCode=e.LogLevel=void 0;var i=n(r(5)),o=n(r(9)),a=r(259),s=!1,u=!1,f={debug:1,default:2,info:2,warning:3,error:4,off:5},c=f.default,h=null;var l,d,p=function(){try{var t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((function(e){try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(r){t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();e.LogLevel=l,function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(l||(e.LogLevel=l={})),e.ErrorCode=d,function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT"}(d||(e.ErrorCode=d={}));var m=function(){function t(e){(0,i.default)(this,t),Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}return(0,o.default)(t,[{key:"_log",value:function(t,e){var r=t.toLowerCase();null==f[r]&&this.throwArgumentError("invalid log level name","logLevel",t),c>f[r]||console.log.apply(console,e)}},{key:"debug",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n=9007199254740991)&&this.throwError(r,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}},{key:"checkArgumentCount",value:function(e,r,n){n=n?": "+n:"",er&&this.throwError("too many arguments"+n,t.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})}},{key:"checkNew",value:function(e,r){e!==Object&&null!=e||this.throwError("missing new",t.errors.MISSING_NEW,{name:r.name})}},{key:"checkAbstract",value:function(e,r){e===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",t.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",t.errors.MISSING_NEW,{name:r.name})}}],[{key:"globalLogger",value:function(){return h||(h=new t(a.version)),h}},{key:"setCensorship",value:function(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),s){if(!e)return;this.globalLogger().throwError("error censorship permanent",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}u=!!e,s=!!r}},{key:"setLogLevel",value:function(e){var r=f[e.toLowerCase()];null!=r?c=r:t.globalLogger().warn("invalid log level - "+e)}},{key:"from",value:function(e){return new t(e)}}]),t}();e.Logger=m,m.errors=d,m.levels=l},function(t,e,r){"use strict";function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.default=t.exports,t.exports.__esModule=!0,n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";var n=r(136);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";var n=r(2).default,i=r(137);t.exports=function(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?i(t):e},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";var n=r(0)(r(2)),i=r(211),o=r(111),a=r(221),s=r(22),u=r(8),f=function t(e,r){var i=[];return r.forEach((function(r){if("object"===(0,n.default)(r.components)){if("tuple"!==r.type.substring(0,5))throw new Error("components found but type is not tuple; report on GitHub");var o="",a=r.type.indexOf("[");a>=0&&(o=r.type.substring(a));var s=t(e,r.components);Array.isArray(s)&&e?i.push("tuple("+s.join(",")+")"+o):e?i.push("("+s+")"):i.push("("+s.join(",")+")"+o)}else i.push(r.type)})),i},c=function(t){if(!o.isHexStrict(t))throw new Error("The parameter must be a valid HEX string.");var e="",r=0,n=t.length;for("0x"===t.substring(0,2)&&(r=2);r7?r+=t[n].toUpperCase():r+=t[n];return r},toHex:o.toHex,toBN:o.toBN,bytesToHex:o.bytesToHex,hexToBytes:o.hexToBytes,hexToNumberString:o.hexToNumberString,hexToNumber:o.hexToNumber,toDecimal:o.hexToNumber,numberToHex:o.numberToHex,fromDecimal:o.numberToHex,hexToUtf8:o.hexToUtf8,hexToString:o.hexToUtf8,toUtf8:o.hexToUtf8,stripHexPrefix:o.stripHexPrefix,utf8ToHex:o.utf8ToHex,stringToHex:o.utf8ToHex,fromUtf8:o.utf8ToHex,hexToAscii:c,toAscii:c,asciiToHex:h,fromAscii:h,unitMap:i.unitMap,toWei:function(t,e){if(e=l(e),!o.isBN(t)&&"string"!=typeof t)throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return o.isBN(t)?i.toWei(t,e):i.toWei(t,e).toString(10)},fromWei:function(t,e){if(e=l(e),!o.isBN(t)&&"string"!=typeof t)throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return o.isBN(t)?i.fromWei(t,e):i.fromWei(t,e).toString(10)},padLeft:o.leftPad,leftPad:o.leftPad,padRight:o.rightPad,rightPad:o.rightPad,toTwosComplement:o.toTwosComplement,isBloom:o.isBloom,isUserEthereumAddressInBloom:o.isUserEthereumAddressInBloom,isContractAddressInBloom:o.isContractAddressInBloom,isTopic:o.isTopic,isTopicInBloom:o.isTopicInBloom,isInBloom:o.isInBloom,compareBlockNumbers:function(t,e){if(t==e)return 0;if("genesis"!=t&&"earliest"!=t&&0!=t||"genesis"!=e&&"earliest"!=e&&0!=e){if("genesis"==t||"earliest"==t)return-1;if("genesis"==e||"earliest"==e)return 1;if("latest"==t)return"pending"==e?-1:1;if("latest"===e)return"pending"==t?1:-1;if("pending"==t)return 1;if("pending"==e)return-1;var r=new u(t),n=new u(e);return r.lt(n)?-1:r.eq(n)?0:1}return 0},toNumber:o.toNumber}},function(t,e,r){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=n,n.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)}},function(t,e,r){"use strict";var n=e,i=r(8),o=r(18),a=r(183);n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n,i=0,o=0;t.cmpn(-i)>0||e.cmpn(-o)>0;){var a,s,u=t.andln(3)+i&3,f=e.andln(3)+o&3;3===u&&(u=-1),3===f&&(f=-1),a=0==(1&u)?0:3!==(n=t.andln(7)+i&7)&&5!==n||2!==f?u:-u,r[0].push(a),s=0==(1&f)?0:3!==(n=e.andln(7)+o&7)&&5!==n||2!==u?f:-f,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return r},n.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(t){return"string"==typeof t?n.toArray(t,"hex"):t},n.intFromLE=function(t){return new i(t,"hex","le")}},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.checkResultErrors=function(t){var e=[];return function t(r,n){if(!Array.isArray(n))return;for(var i in n){var o=r.slice();o.push(i);try{t(o,n[i])}catch(t){e.push({path:o,error:t})}}}([],t),e},e.Reader=e.Writer=e.Coder=void 0;var i=n(r(5)),o=n(r(9)),a=r(11),s=r(24),u=r(33),f=r(12),c=r(50),h=new f.Logger(c.version);var l=function(){function t(e,r,n,o){(0,i.default)(this,t),this.name=e,this.type=r,this.localName=n,this.dynamic=o}return(0,o.default)(t,[{key:"_throwError",value:function(t,e){h.throwArgumentError(t,this.localName,e)}}]),t}();e.Coder=l;var d=function(){function t(e){(0,i.default)(this,t),(0,u.defineReadOnly)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}return(0,o.default)(t,[{key:"data",get:function(){return(0,a.hexConcat)(this._data)}},{key:"length",get:function(){return this._dataLength}},{key:"_writeData",value:function(t){return this._data.push(t),this._dataLength+=t.length,t.length}},{key:"appendWriter",value:function(t){return this._writeData((0,a.concat)(t._data))}},{key:"writeBytes",value:function(t){var e=(0,a.arrayify)(t),r=e.length%this.wordSize;return r&&(e=(0,a.concat)([e,this._padding.slice(r)])),this._writeData(e)}},{key:"_getValue",value:function(t){var e=(0,a.arrayify)(s.BigNumber.from(t));return e.length>this.wordSize&&h.throwError("value out-of-bounds",f.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:e.length}),e.length%this.wordSize&&(e=(0,a.concat)([this._padding.slice(e.length%this.wordSize),e])),e}},{key:"writeValue",value:function(t){return this._writeData(this._getValue(t))}},{key:"writeUpdatableValue",value:function(){var t=this,e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(r){t._data[e]=t._getValue(r)}}}]),t}();e.Writer=d;var p=function(){function t(e,r,n,o){(0,i.default)(this,t),(0,u.defineReadOnly)(this,"_data",(0,a.arrayify)(e)),(0,u.defineReadOnly)(this,"wordSize",r||32),(0,u.defineReadOnly)(this,"_coerceFunc",n),(0,u.defineReadOnly)(this,"allowLoose",o),this._offset=0}return(0,o.default)(t,[{key:"data",get:function(){return(0,a.hexlify)(this._data)}},{key:"consumed",get:function(){return this._offset}},{key:"coerce",value:function(e,r){return this._coerceFunc?this._coerceFunc(e,r):t.coerce(e,r)}},{key:"_peekBytes",value:function(t,e,r){var n=Math.ceil(e/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+e<=this._data.length?n=e:h.throwError("data out-of-bounds",f.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}},{key:"subReader",value:function(e){return new t(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}},{key:"readBytes",value:function(t,e){var r=this._peekBytes(0,t,!!e);return this._offset+=r.length,r.slice(0,t)}},{key:"readValue",value:function(){return s.BigNumber.from(this.readBytes(this.wordSize))}}],[{key:"coerce",value:function(t,e){var r=t.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(e=e.toNumber()),e}}]),t}();e.Reader=p},function(t,e,r){"use strict";var n=r(18),i=r(3);function o(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function a(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function s(t){return 1===t.length?"0"+t:t}function u(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i>6|192,r[n++]=63&a|128):o(t,i)?(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},e.split32=function(t,e){for(var r=new Array(4*t.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,r){return t+e+r>>>0},e.sum32_4=function(t,e,r,n){return t+e+r+n>>>0},e.sum32_5=function(t,e,r,n,i){return t+e+r+n+i>>>0},e.sum64=function(t,e,r,n){var i=t[e],o=n+t[e+1]>>>0,a=(o>>0,t[e+1]=o},e.sum64_hi=function(t,e,r,n){return(e+n>>>0>>0},e.sum64_lo=function(t,e,r,n){return e+n>>>0},e.sum64_4_hi=function(t,e,r,n,i,o,a,s){var u=0,f=e;return u+=(f=f+n>>>0)>>0)>>0)>>0},e.sum64_4_lo=function(t,e,r,n,i,o,a,s){return e+n+o+s>>>0},e.sum64_5_hi=function(t,e,r,n,i,o,a,s,u,f){var c=0,h=e;return c+=(h=h+n>>>0)>>0)>>0)>>0)>>0},e.sum64_5_lo=function(t,e,r,n,i,o,a,s,u,f){return e+n+o+s+f>>>0},e.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},e.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},e.shr64_hi=function(t,e,r){return t>>>r},e.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0}},function(t,e,r){"use strict";(function(e,n){var i=r(4).Buffer,o=e.crypto||e.msCrypto;o&&o.getRandomValues?t.exports=function(t,e){if(t>4294967295)throw new RangeError("requested too many random bytes");var r=i.allocUnsafe(t);if(t>0)if(t>65536)for(var a=0;a0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return t}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=d.bind(n);return i.listener=r,n.wrapFn=i,i}function m(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r0&&(o=e[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=i[t];if(void 0===u)return!1;if("function"==typeof u)a(u,this,e);else{var f=u.length,c=v(u,f);for(r=0;r=0;o--)if(r[o]===e||r[o].listener===e){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1=0;n--)this.removeListener(t,e[n]);return this},u.prototype.listeners=function(t){return m(this,t,!0)},u.prototype.rawListeners=function(t){return m(this,t,!1)},u.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):b.call(t,e)},u.prototype.listenerCount=b,u.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BigNumber",{enumerable:!0,get:function(){return n.BigNumber}}),Object.defineProperty(e,"_base16To36",{enumerable:!0,get:function(){return n._base16To36}}),Object.defineProperty(e,"_base36To16",{enumerable:!0,get:function(){return n._base36To16}}),Object.defineProperty(e,"formatFixed",{enumerable:!0,get:function(){return i.formatFixed}}),Object.defineProperty(e,"FixedFormat",{enumerable:!0,get:function(){return i.FixedFormat}}),Object.defineProperty(e,"FixedNumber",{enumerable:!0,get:function(){return i.FixedNumber}}),Object.defineProperty(e,"parseFixed",{enumerable:!0,get:function(){return i.parseFixed}});var n=r(126),i=r(261)},function(t,e,r){"use strict";var n=r(4).Buffer,i=r(87).Transform,o=r(29).StringDecoder;function a(t){i.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(3)(a,i),a.prototype.update=function(t,e,r){"string"==typeof t&&(t=n.from(t,e));var i=this._update(t);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(t,e,r){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){n=t}finally{r(n)}},a.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},a.prototype._finalOrDigest=function(t){var e=this.__final()||n.alloc(0);return t&&(e=this._toString(e,t,!0)),e},a.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(t);return r&&(n+=this._decoder.end()),n},t.exports=a},function(t,e,r){"use strict";var n=Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]},i=function(t,e){for(var r in t)"default"===r||e.hasOwnProperty(r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(198),e),i(r(199),e),i(r(446),e),i(r(102),e),i(r(447),e),i(r(35),e),i(r(448),e),i(r(449),e),i(r(103),e),i(r(42),e)},function(t,e,r){"use strict";var n=r(206),i=r(252);t.exports={packageInit:function(t,e){if(e=Array.prototype.slice.call(e),!t)throw new Error('You need to instantiate using the "new" keyword.');Object.defineProperty(t,"currentProvider",{get:function(){return t._provider},set:function(e){return t.setProvider(e)},enumerable:!0,configurable:!0}),e[0]&&e[0]._requestManager?t._requestManager=e[0]._requestManager:t._requestManager=new n.Manager(e[0],e[1]),t.givenProvider=n.Manager.givenProvider,t.providers=n.Manager.providers,t._provider=t._requestManager.provider,t.setProvider||(t.setProvider=function(e,r){return t._requestManager.setProvider(e,r),t._provider=t._requestManager.provider,!0}),t.setRequestManager=function(e){t._requestManager=e,t._provider=e.provider},t.BatchRequest=n.BatchManager.bind(null,t._requestManager),t.extend=i(t)},addProviders:function(t){t.givenProvider=n.Manager.givenProvider,t.providers=n.Manager.providers}}},function(t,e,r){"use strict";var n=r(56),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=h;var o=Object.create(r(47));o.inherits=r(3);var a=r(117),s=r(75);o.inherits(h,a);for(var u=i(s.prototype),f=0;f>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function f(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function c(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function l(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(t.lastNeed=i-1),i;if(--n=0)return i>0&&(t.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,r){"use strict";var n=r(0),i=n(r(48)),o=n(r(31)),a=n(r(44)),s=n(r(78)),u=n(r(2));function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e1?(t[r[0]]=t[r[0]]||{},t[r[0]][r[1]]=e):t[r[0]]=e},v.prototype.getCall=function(t){return"function"==typeof this.call?this.call(t):this.call},v.prototype.extractCallback=function(t){if("function"==typeof t[t.length-1])return t.pop()},v.prototype.validateArgs=function(t){if(t.length!==this.params)throw h.InvalidNumberOfParams(t.length,this.params,this.name)},v.prototype.formatInput=function(t){var e=this;return this.inputFormatter?this.inputFormatter.map((function(r,n){return r?r.call(e,t[n]):t[n]})):t},v.prototype.formatOutput=function(t){var e=this;return Array.isArray(t)?t.map((function(t){return e.outputFormatter&&t?e.outputFormatter(t):t})):this.outputFormatter&&t?this.outputFormatter(t):t},v.prototype.toPayload=function(t){var e=this.getCall(t),r=this.extractCallback(t),n=this.formatInput(t);this.validateArgs(n);var i={method:e,params:n,callback:r};return this.transformPayload&&(i=this.transformPayload(i)),i},v.prototype._confirmTransaction=function(t,e,r){var n=this,o=!1,a=!0,f=0,c=0,y=null,g=null,w=r.params[0]&&"object"===(0,u.default)(r.params[0])&&r.params[0].gas?r.params[0].gas:null,_=!!r.params[0]&&"object"===(0,u.default)(r.params[0])&&r.params[0].data&&r.params[0].from&&!r.params[0].to,k=_&&r.params[0].data.length>2,M=[new v({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[l.inputBlockNumberFormatter,function(t){return!!t}],outputFormatter:l.outputBlockFormatter}),new v({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:l.outputTransactionReceiptFormatter}),new v({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[l.inputAddressFormatter,l.inputDefaultBlockNumberFormatter]}),new v({name:"getTransactionByHash",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:l.outputTransactionFormatter}),new m({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:l.outputBlockFormatter}}})],S={};M.forEach((function(t){t.attachToObject(S),t.requestManager=n.requestManager}));var A=function(u,m,v,M,A){if(!v)return A||(A={unsubscribe:function(){clearInterval(y)}}),(u?p.resolve(u):S.getTransactionReceipt(e)).catch((function(e){A.unsubscribe(),o=!0,d._fireError({message:"Failed to check for transaction receipt:",data:e},t.eventEmitter,t.reject)})).then(function(){var e=(0,s.default)(i.default.mark((function e(r){var o,s,f;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r&&r.blockHash){e.next=2;break}throw new Error("Receipt missing or blockHash null");case 2:if(n.extraFormatters&&n.extraFormatters.receiptFormatter&&(r=n.extraFormatters.receiptFormatter(r)),!(t.eventEmitter.listeners("confirmation").length>0)){e.next=28;break}if(void 0!==u&&0===c){e.next=25;break}return e.next=7,S.getBlockByNumber("latest");case 7:if(s=e.sent,f=s?s.hash:null,!m){e.next=24;break}if(!g){e.next=17;break}return e.next=13,S.getBlockByNumber(g.number+1);case 13:(o=e.sent)&&(g=o,t.eventEmitter.emit("confirmation",c,r,f)),e.next=22;break;case 17:return e.next=19,S.getBlockByNumber(r.blockNumber);case 19:o=e.sent,g=o,t.eventEmitter.emit("confirmation",c,r,f);case 22:e.next=25;break;case 24:t.eventEmitter.emit("confirmation",c,r,f);case 25:(m&&o||!m)&&c++,a=!1,c===n.transactionConfirmationBlocks+1&&(A.unsubscribe(),t.eventEmitter.removeAllListeners());case 28:return e.abrupt("return",r);case 29:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(function(){var e=(0,s.default)(i.default.mark((function e(r){var s;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_||o){e.next=19;break}if(r.contractAddress){e.next=5;break}return a&&(A.unsubscribe(),o=!0),d._fireError(h.NoContractAddressFoundError(r),t.eventEmitter,t.reject,null,r),e.abrupt("return");case 5:return e.prev=5,e.next=8,S.getCode(r.contractAddress);case 8:s=e.sent,e.next=13;break;case 11:e.prev=11,e.t0=e.catch(5);case 13:if(s){e.next=15;break}return e.abrupt("return");case 15:!0===r.status&&k||s.length>2?(t.eventEmitter.emit("receipt",r),n.extraFormatters&&n.extraFormatters.contractDeployFormatter?t.resolve(n.extraFormatters.contractDeployFormatter(r)):t.resolve(r),a&&t.eventEmitter.removeAllListeners()):d._fireError(h.ContractCodeNotStoredError(r),t.eventEmitter,t.reject,null,r),a&&A.unsubscribe(),o=!0;case 19:return e.abrupt("return",r);case 20:case"end":return e.stop()}}),e,null,[[5,11]])})));return function(t){return e.apply(this,arguments)}}()).then(function(){var e=(0,s.default)(i.default.mark((function e(s){var u,f,c,p;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(_||o){e.next=35;break}if(s.outOfGas||w&&w===s.gasUsed||!0!==s.status&&"0x1"!==s.status&&void 0!==s.status){e.next=7;break}t.eventEmitter.emit("receipt",s),t.resolve(s),a&&t.eventEmitter.removeAllListeners(),e.next=33;break;case 7:if(JSON.stringify(s,null,2),!1!==s.status&&"0x0"!==s.status){e.next=32;break}if(e.prev=9,u=null,!n.handleRevert||"eth_sendTransaction"!==n.call&&"eth_sendRawTransaction"!==n.call){e.next=24;break}return f=r.params[0],"eth_sendRawTransaction"===n.call&&(c=r.params[0],p=b.parse(c),f=l.inputTransactionFormatter({data:p.data,to:p.to,from:p.from,gas:p.gasLimit.toHexString(),gasPrice:p.gasPrice.toHexString(),value:p.value.toHexString()})),e.next=16,n.getRevertReason(f,s.blockNumber);case 16:if(!(u=e.sent)){e.next=21;break}d._fireError(h.TransactionRevertInstructionError(u.reason,u.signature,s),t.eventEmitter,t.reject,null,s),e.next=22;break;case 21:throw!1;case 22:e.next=25;break;case 24:throw!1;case 25:e.next=30;break;case 27:e.prev=27,e.t0=e.catch(9),d._fireError(h.TransactionRevertedWithoutReasonError(s),t.eventEmitter,t.reject,null,s);case 30:e.next=33;break;case 32:d._fireError(h.TransactionOutOfGasError(s),t.eventEmitter,t.reject,null,s);case 33:a&&A.unsubscribe(),o=!0;case 35:case"end":return e.stop()}}),e,null,[[9,27]])})));return function(t){return e.apply(this,arguments)}}()).catch((function(){f++,m?f-1>=n.transactionPollingTimeout&&(A.unsubscribe(),o=!0,d._fireError(h.TransactionError("Transaction was not mined within "+n.transactionPollingTimeout+" seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!"),t.eventEmitter,t.reject)):f-1>=n.transactionBlockTimeout&&(A.unsubscribe(),o=!0,d._fireError(h.TransactionError("Transaction was not mined within "+n.transactionBlockTimeout+" blocks, please make sure your transaction was properly sent. Be aware that it might still be mined!"),t.eventEmitter,t.reject))}));A.unsubscribe(),o=!0,d._fireError({message:"Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.",data:v},t.eventEmitter,t.reject)},x=function(t){var e=function(){y=setInterval(A.bind(null,t,!0),1e3)};this.requestManager.provider.on?S.subscribe("newBlockHeaders",(function(r,n,i){r||!n?e():A(t,!1,r,0,i)})):e()}.bind(this);S.getTransactionReceipt(e).then((function(e){e&&e.blockHash?(t.eventEmitter.listeners("confirmation").length>0&&x(e),A(e,!1)):o||x()})).catch((function(){o||x()}))};var y=function(t,e){return"number"==typeof t?e.wallet[t]:t&&"object"===(0,u.default)(t)&&t.address&&t.privateKey?t:e.wallet[t.toLowerCase()]};function g(t,e){return new Promise((function(r,n){try{var i=new v({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[function(t){return t?d.toHex(t):"latest"},function(){return!1}]}).createFunction(t.requestManager),a=new v({name:"getGasPrice",call:"eth_gasPrice",params:0}).createFunction(t.requestManager);Promise.all([i(),a()]).then((function(t){var n=(0,o.default)(t,2),i=n[0],a=n[1];if(i&&i.baseFeePerGas){var s,u;e.gasPrice?(s=e.gasPrice,u=e.gasPrice,delete e.gasPrice):(s=e.maxPriorityFeePerGas||"0x3B9ACA00",u=e.maxFeePerGas||d.toHex(d.toBN(i.baseFeePerGas).mul(d.toBN(2)).add(d.toBN(s)))),r({maxFeePerGas:u,maxPriorityFeePerGas:s})}else{if(e.maxPriorityFeePerGas||e.maxFeePerGas)throw Error("Network doesn't support eip-1559");r({gasPrice:a})}}))}catch(t){n(t)}}))}v.prototype.buildCall=function(){var t=this,e="eth_sendTransaction"===t.call||"eth_sendRawTransaction"===t.call,r="eth_call"===t.call,n=function(){var n=p(!e),i=t.toPayload(Array.prototype.slice.call(arguments)),o=function(o,a){var s;if(t.handleRevert&&r&&t.abiCoder&&(!o&&t.isRevertReasonString(a)?s=a.substring(10):o&&o.data&&(s=o.data.substring(10)),s)){var u=t.abiCoder.decodeParameter("string","0x"+s);return void d._fireError(h.RevertInstructionError(u,"Error(String)"),n.eventEmitter,n.reject,i.callback,{reason:u,signature:"Error(String)"})}try{a=t.formatOutput(a)}catch(t){o=t}if(a instanceof Error&&(o=a),o)return o.error&&(o=o.error),d._fireError(o,n.eventEmitter,n.reject,i.callback);i.callback&&i.callback(null,a),e?(n.eventEmitter.emit("transactionHash",a),t._confirmTransaction(n,a,i)):o||n.resolve(a)},a=function(e){var r=c(c({},i),{},{method:"eth_sendRawTransaction",params:[e.rawTransaction]});t.requestManager.send(r,o)},s=function(t,e){var r;if(e&&e.accounts&&e.accounts.wallet&&e.accounts.wallet.length)if("eth_sendTransaction"===t.method){var i=t.params[0];if((r=y(i&&"object"===(0,u.default)(i)?i.from:null,e.accounts))&&r.privateKey)return delete(i=JSON.parse(JSON.stringify(i))).from,e.defaultChain&&!i.chain&&(i.chain=e.defaultChain),e.defaultHardfork&&!i.hardfork&&(i.hardfork=e.defaultHardfork),e.defaultCommon&&!i.common&&(i.common=e.defaultCommon),void e.accounts.signTransaction(i,r.privateKey).then(a).catch((function(t){if("function"==typeof n.eventEmitter.listeners&&n.eventEmitter.listeners("error").length){try{n.eventEmitter.emit("error",t)}catch(t){}n.eventEmitter.removeAllListeners(),n.eventEmitter.catch((function(){}))}n.reject(t)}))}else if("eth_sign"===t.method){var s=t.params[1];if((r=y(t.params[0],e.accounts))&&r.privateKey){var f=e.accounts.sign(s,r.privateKey);return t.callback&&t.callback(null,f.signature),void n.resolve(f.signature)}}return e.requestManager.send(t,o)};return e&&i.params[0]&&"object"===(0,u.default)(i.params[0])&&void 0===i.params[0].gasPrice&&(void 0===i.params[0].maxPriorityFeePerGas||void 0===i.params[0].maxFeePerGas)?g(t,i.params[0]).then((function(r){void 0!==r.gasPrice?i.params[0].gasPrice=r.gasPrice:void 0!==r.maxPriorityFeePerGas&&void 0!==r.maxFeePerGas&&(i.params[0].maxPriorityFeePerGas=r.maxPriorityFeePerGas,i.params[0].maxFeePerGas=r.maxFeePerGas),e&&setTimeout((function(){n.eventEmitter.emit("sending",i)}),0),s(i,t)})):(e&&setTimeout((function(){n.eventEmitter.emit("sending",i)}),0),s(i,t)),e&&setTimeout((function(){n.eventEmitter.emit("sent",i)}),0),n.eventEmitter};return n.method=t,n.request=this.request.bind(this),n},v.prototype.getRevertReason=function(t,e){var r=this;return new Promise((function(n,i){new v({name:"call",call:"eth_call",params:2,abiCoder:r.abiCoder,handleRevert:!0}).createFunction(r.requestManager)(t,d.numberToHex(e)).then((function(){n(!1)})).catch((function(t){t.reason?n({reason:t.reason,signature:t.signature}):i(t)}))}))},v.prototype.isRevertReasonString=function(t){return"string"==typeof t&&(t.length-2)/2%32==4&&"0x08c379a0"===t.substring(0,10)},v.prototype.request=function(){var t=this.toPayload(Array.prototype.slice.call(arguments));return t.format=this.formatOutput.bind(this),t},t.exports=v},function(t,e,r){"use strict";var n=r(254),i=r(255),o=r(124),a=r(256);t.exports=function(t,e){return n(t)||i(t,e)||o(t,e)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.keccak256=function(t){return"0x"+i.default.keccak_256((0,o.arrayify)(t))};var i=n(r(262)),o=r(11)},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.defineReadOnly=h,e.getStatic=function(t,e){for(var r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||"object"!==(0,a.default)(t.prototype))break;t=Object.getPrototypeOf(t.prototype).constructor}return null},e.resolveProperties=function(t){return f(this,void 0,void 0,i.default.mark((function e(){var r,n;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object.keys(t).map((function(e){var r=t[e];return Promise.resolve(r).then((function(t){return{key:e,value:t}}))})),e.next=3,Promise.all(r);case 3:return n=e.sent,e.abrupt("return",n.reduce((function(t,e){return t[e.key]=e.value,t}),{}));case 5:case"end":return e.stop()}}),e)})))},e.checkProperties=function(t,e){t&&"object"===(0,a.default)(t)||c.throwArgumentError("invalid object","object",t);Object.keys(t).forEach((function(r){e[r]||c.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)}))},e.shallowCopy=function(t){var e={};for(var r in t)e[r]=t[r];return e},e.deepCopy=p,e.Description=void 0;var i=n(r(48)),o=n(r(5)),a=n(r(2)),s=r(12),u=r(269),f=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(t){o(t)}}function s(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},c=new s.Logger(u.version);function h(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}var l={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function d(t){if(function t(e){if(null==e||l[(0,a.default)(e)])return!0;if(Array.isArray(e)||"object"===(0,a.default)(e)){if(!Object.isFrozen(e))return!1;for(var r=Object.keys(e),n=0;n=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void i(!1,"Invalid character in "+t)}function f(t,e,r){var n=u(t,r);return r-1>=e&&(n|=u(t,r-1)<<4),n}function c(t,e,r,n){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u=49?f-49+10:f>=17?f-17+10:f,i(f>=0&&a0?t:e},a.min=function(t,e){return t.cmp(e)<0?t:e},a.prototype._init=function(t,r,n){if("number"==typeof t)return this._initNumber(t,r,n);if("object"===(0,e.default)(t))return this._initArray(t,r,n);"hex"===r&&(r=16),i(r===(0|r)&&r>=2&&r<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o=0;n-=3)a=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},a.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=f(t,e,n)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,f=r;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){a.prototype.inspect=l}else a.prototype.inspect=l;function l(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?d[6-u.length]+u+r:u+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var f=p[t],c=m[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var l=h.modrn(c).toString(t);r=(h=h.idivn(c)).isZero()?l+r:d[f-l.length]+l+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16,2)},s&&(a.prototype.toBuffer=function(t,e){return this.toArrayLike(s,t,e)}),a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function b(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var f=1;f>>26,h=67108863&u,l=Math.min(f,e.length-1),d=Math.max(0,f-t.length+1);d<=l;d++){var p=f-d|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r._strip()}a.prototype.toArrayLike=function(t,e,r){this._strip();var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,n),a},a.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r=0&&(t[r--]=a>>8&255),r>=0&&(t[r--]=a>>16&255),6===o?(r>=0&&(t[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this._strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var r=t/26|0,n=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,b=0|a[2],v=8191&b,y=b>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],M=8191&k,S=k>>>13,A=0|a[5],x=8191&A,E=A>>>13,O=0|a[6],P=8191&O,B=O>>>13,T=0|a[7],R=8191&T,I=T>>>13,C=0|a[8],U=8191&C,j=C>>>13,N=0|a[9],L=8191&N,F=N>>>13,D=0|s[0],q=8191&D,H=D>>>13,z=0|s[1],K=8191&z,G=z>>>13,V=0|s[2],W=8191&V,Z=V>>>13,J=0|s[3],X=8191&J,Y=J>>>13,$=0|s[4],Q=8191&$,tt=$>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ft=st>>>13,ct=0|s[8],ht=8191&ct,lt=ct>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var bt=(f+(n=Math.imul(h,q))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(l,q)|0))<<13)|0;f=((o=Math.imul(l,H))+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,H))+Math.imul(m,q)|0,o=Math.imul(m,H);var vt=(f+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,G)|0)+Math.imul(l,K)|0))<<13)|0;f=((o=o+Math.imul(l,G)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),i=(i=Math.imul(v,H))+Math.imul(y,q)|0,o=Math.imul(y,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0;var yt=(f+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(l,W)|0))<<13)|0;f=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,H))+Math.imul(_,q)|0,o=Math.imul(_,H),n=n+Math.imul(v,K)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,Z)|0;var gt=(f+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(l,X)|0))<<13)|0;f=((o=o+Math.imul(l,Y)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(M,q),i=(i=Math.imul(M,H))+Math.imul(S,q)|0,o=Math.imul(S,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,Y)|0;var wt=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,Q)|0))<<13)|0;f=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,H))+Math.imul(E,q)|0,o=Math.imul(E,H),n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,Y)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var _t=(f+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(l,rt)|0))<<13)|0;f=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,H))+Math.imul(B,q)|0,o=Math.imul(B,H),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,G)|0,n=n+Math.imul(M,W)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0;var kt=(f+(n=n+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;f=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,H))+Math.imul(I,q)|0,o=Math.imul(I,H),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,G)|0,n=n+Math.imul(x,W)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,Z)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(f+(n=n+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ft)|0)+Math.imul(l,ut)|0))<<13)|0;f=((o=o+Math.imul(l,ft)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(U,q),i=(i=Math.imul(U,H))+Math.imul(j,q)|0,o=Math.imul(j,H),n=n+Math.imul(R,K)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(B,W)|0,o=o+Math.imul(B,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(E,X)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(v,ot)|0,i=(i=i+Math.imul(v,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,ft)|0;var St=(f+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;f=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(L,q),i=(i=Math.imul(L,H))+Math.imul(F,q)|0,o=Math.imul(F,H),n=n+Math.imul(U,K)|0,i=(i=i+Math.imul(U,G)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,Z)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(v,ut)|0,i=(i=i+Math.imul(v,ft)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0;var At=(f+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(l,pt)|0))<<13)|0;f=((o=o+Math.imul(l,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,G))+Math.imul(F,K)|0,o=Math.imul(F,G),n=n+Math.imul(U,W)|0,i=(i=i+Math.imul(U,Z)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,Z)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(E,rt)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ft)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ft)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0;var xt=(f+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;f=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(L,W),i=(i=Math.imul(L,Z))+Math.imul(F,W)|0,o=Math.imul(F,Z),n=n+Math.imul(U,X)|0,i=(i=i+Math.imul(U,Y)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(B,rt)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,n=n+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,ft)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ht)|0,o=o+Math.imul(_,lt)|0;var Et=(f+(n=n+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(y,pt)|0))<<13)|0;f=((o=o+Math.imul(y,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,Y))+Math.imul(F,X)|0,o=Math.imul(F,Y),n=n+Math.imul(U,Q)|0,i=(i=i+Math.imul(U,tt)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ft)|0)+Math.imul(E,ut)|0,o=o+Math.imul(E,ft)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,lt)|0;var Ot=(f+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;f=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,tt))+Math.imul(F,Q)|0,o=Math.imul(F,tt),n=n+Math.imul(U,rt)|0,i=(i=i+Math.imul(U,nt)|0)+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ft)|0)+Math.imul(B,ut)|0,o=o+Math.imul(B,ft)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(E,ht)|0,o=o+Math.imul(E,lt)|0;var Pt=(f+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(S,pt)|0))<<13)|0;f=((o=o+Math.imul(S,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(L,rt),i=(i=Math.imul(L,nt))+Math.imul(F,rt)|0,o=Math.imul(F,nt),n=n+Math.imul(U,ot)|0,i=(i=i+Math.imul(U,at)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ft)|0)+Math.imul(I,ut)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(B,ht)|0,o=o+Math.imul(B,lt)|0;var Bt=(f+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(E,pt)|0))<<13)|0;f=((o=o+Math.imul(E,mt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(L,ot),i=(i=Math.imul(L,at))+Math.imul(F,ot)|0,o=Math.imul(F,at),n=n+Math.imul(U,ut)|0,i=(i=i+Math.imul(U,ft)|0)+Math.imul(j,ut)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(R,ht)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(I,ht)|0,o=o+Math.imul(I,lt)|0;var Tt=(f+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(B,pt)|0))<<13)|0;f=((o=o+Math.imul(B,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(L,ut),i=(i=Math.imul(L,ft))+Math.imul(F,ut)|0,o=Math.imul(F,ft),n=n+Math.imul(U,ht)|0,i=(i=i+Math.imul(U,lt)|0)+Math.imul(j,ht)|0,o=o+Math.imul(j,lt)|0;var Rt=(f+(n=n+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(I,pt)|0))<<13)|0;f=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(L,ht),i=(i=Math.imul(L,lt))+Math.imul(F,ht)|0,o=Math.imul(F,lt);var It=(f+(n=n+Math.imul(U,pt)|0)|0)+((8191&(i=(i=i+Math.imul(U,mt)|0)+Math.imul(j,pt)|0))<<13)|0;f=((o=o+Math.imul(j,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var Ct=(f+(n=Math.imul(L,pt))|0)+((8191&(i=(i=Math.imul(L,mt))+Math.imul(F,pt)|0))<<13)|0;return f=((o=Math.imul(F,mt))+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,u[0]=bt,u[1]=vt,u[2]=yt,u[3]=gt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=St,u[9]=At,u[10]=xt,u[11]=Et,u[12]=Ot,u[13]=Pt,u[14]=Bt,u[15]=Tt,u[16]=Rt,u[17]=It,u[18]=Ct,0!==f&&(u[19]=f,r.length++),r};function y(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function g(t,e,r){return y(t,e,r)}function w(t,e){this.x=t,this.y=e}Math.imul||(v=b),a.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?v(this,t,e):r<63?b(this,t,e):r<1024?y(this,t,e):g(this,t,e)},w.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n>=1;return n},w.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,r+=o/67108864|0,r+=a>>>26,this.words[n]=67108863&a}return 0!==r&&(this.words[n]=r,this.length++),e?this.ineg():this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i&1}return e}(t);if(0===e.length)return new a(1);for(var r=this,n=0;n=0);var e,r=t%26,n=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e=0),n=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,f=0;f=0&&(0!==c||f>=n);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(t,e,r){return i(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){i("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,n=1<=0);var e=t%26,r=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var n=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(i("number"==typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o;if(0===s)return this._strip();for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o;return this.negative=1,this._strip()},a.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new a(null)).length=u+1,s.words=new Array(s.length);for(var f=0;f=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){return i(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(n=s.div.neg()),"div"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:n,mod:o}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:s.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new a(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modrn(t.words[0]))}:this._wordDiv(t,e);var n,o,s},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modrn=function(t){var e=t<0;e&&(t=-t),i(t<=67108863);for(var r=(1<<26)%t,n=0,o=this.length-1;o>=0;o--)n=(r*n+(0|this.words[o]))%t;return e?-n:n},a.prototype.modn=function(t){return this.modrn(t)},a.prototype.idivn=function(t){var e=t<0;e&&(t=-t),i(t<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*r;this.words[n]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new a(1),o=new a(0),s=new a(0),u=new a(1),f=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(c),o.isub(h)),n.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),n.isub(s),o.isub(u)):(r.isub(e),s.isub(n),u.isub(o))}return{a:s,b:u,gcd:r.iushln(f)}},a.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n,o=new a(1),s=new a(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(e.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(e.iushrn(f);f-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var h=0,l=1;0==(r.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s)):(r.isub(e),s.isub(o))}return(n=0===e.cmpn(1)?o:s).cmpn(0)<0&&n.iadd(t),n},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){i("number"==typeof t);var e=t%26,r=(t-e)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),i(t<=67108863,"Number is too big");var n=0|this.words[0];e=n===t?0:nt.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new E(t)},a.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};function k(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){k.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){k.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){k.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function O(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}k.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},k.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},k.prototype.split=function(t,e){t.iushrn(this.n,0,e)},k.prototype.imulK=function(t){return t.imul(this.k)},o(M,k),M.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n>>22,i=o}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},a._prime=function(t){if(_[t])return _[t];var e;if("k256"===t)e=new M;else if("p224"===t)e=new S;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return _[t]=e,e},E.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){i(0==(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(h(t,t.umod(this.m)._forceRed(this)),t)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);i(!n.isZero());var s=new a(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,n),l=this.pow(t,n.addn(1).iushrn(1)),d=this.pow(t,n),p=o;0!==d.cmp(s);){for(var m=d,b=0;0!==m.cmp(s);b++)m=m.redSqr();i(b=0;n--){for(var f=e.words[n],c=u-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}u=26}return i},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new O(t)},o(O,E),O.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},O.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},O.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t)}).call(this,r(17)(t))},function(t,e,r){"use strict";(function(t){var n=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.baToJSON=e.addHexPrefix=e.toUnsigned=e.fromSigned=e.bufferToHex=e.bufferToInt=e.toBuffer=e.unpadHexString=e.unpadArray=e.unpadBuffer=e.setLengthRight=e.setLengthLeft=e.zeros=void 0;var i=n(r(34)),o=r(42),a=r(70);e.zeros=function(e){return t.allocUnsafe(e).fill(0)};var s=function(t,r,n){var i=e.zeros(r);return n?t.length0&&"0"===e.toString();)e=(t=t.slice(1))[0];return t};e.unpadBuffer=function(t){return a.assertIsBuffer(t),u(t)},e.unpadArray=function(t){return a.assertIsArray(t),u(t)},e.unpadHexString=function(t){return a.assertIsHexString(t),t=o.stripHexPrefix(t),u(t)},e.toBuffer=function(e){if(null==e)return t.allocUnsafe(0);if(t.isBuffer(e))return t.from(e);if(Array.isArray(e)||e instanceof Uint8Array)return t.from(e);if("string"==typeof e){if(!o.isHexString(e))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+e);return t.from(o.padToEven(o.stripHexPrefix(e)),"hex")}if("number"==typeof e)return o.intToBuffer(e);if(i.default.isBN(e))return e.toArrayLike(t);if(e.toArray)return t.from(e.toArray());if(e.toBuffer)return t.from(e.toBuffer());throw new Error("invalid type")},e.bufferToInt=function(t){return new i.default(e.toBuffer(t)).toNumber()},e.bufferToHex=function(t){return"0x"+(t=e.toBuffer(t)).toString("hex")},e.fromSigned=function(t){return new i.default(t).fromTwos(256)},e.toUnsigned=function(e){return t.from(e.toTwos(256).toArray())},e.addHexPrefix=function(t){return"string"!=typeof t||o.isHexPrefixed(t)?t:"0x"+t},e.baToJSON=function(r){if(t.isBuffer(r))return"0x"+r.toString("hex");if(r instanceof Array){for(var n=[],i=0;i2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,r){var i,o,s,u;if("string"==typeof e&&(o="not ",e.substr(!s||s<0?0:+s,o.length)===o)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))u="The ".concat(t," ").concat(i," ").concat(a(e,"type"));else{var f=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";u='The "'.concat(t,'" ').concat(f," ").concat(i," ").concat(a(e,"type"))}return u+=". Received type ".concat((0,n.default)(r))}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},function(t,e,r){"use strict";(function(e){var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=f;var i=r(152),o=r(156);r(3)(f,i);for(var a=n(o.prototype),s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},function(t,e,r){"use strict";var n=r(0)(r(2));var i={};function o(t,e,r){r||(r=Error);var n=function(t){var r,n;function i(r,n,i){return t.call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,n,i))||this}return n=t,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);n.prototype.name=r.name,n.prototype.code=t,i[t]=n}function a(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,r){var i,o,s,u;if("string"==typeof e&&(o="not ",e.substr(!s||s<0?0:+s,o.length)===o)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))u="The ".concat(t," ").concat(i," ").concat(a(e,"type"));else{var f=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";u='The "'.concat(t,'" ').concat(f," ").concat(i," ").concat(a(e,"type"))}return u+=". Received type ".concat((0,n.default)(r))}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},function(t,e,r){"use strict";(function(e){var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=f;var i=r(177),o=r(181);r(3)(f,i);for(var a=n(o.prototype),s=0;s=0}))},intToBuffer:function(t){var r=s(t);return new e(a(r.slice(2)),"hex")},getBinarySize:function(t){if("string"!=typeof t)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+(0,n.default)(t)+"'.");return e.byteLength(t,"utf8")},isHexPrefixed:i,stripHexPrefix:o,padToEven:a,intToHex:s,fromAscii:function(t){for(var e="",r=0;r",'"',"`"," ","\r","\n","\t"]),h=["'"].concat(c),l=["%","/","?",";","#"].concat(h),d=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=r(227);function w(t,e,r){if(t&&o.isObject(t)&&t instanceof a)return t;var n=new a;return n.parse(t,e,r),n}a.prototype.parse=function(t,e,r){if(!o.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+(0,n.default)(t));var a=t.indexOf("?"),u=-1!==a&&a127?C+="x":C+=I[U];if(!C.match(p)){var N=T.slice(0,O),L=T.slice(O+1),F=I.match(m);F&&(N.push(F[1]),L.unshift(F[2])),L.length&&(w="/"+L.join(".")+w),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),B||(this.hostname=i.toASCII(this.hostname));var D=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+D,this.href+=this.host,B&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==w[0]&&(w="/"+w))}if(!b[M])for(O=0,R=h.length;O0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift());return r.search=t.search,r.query=t.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!M.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var A=M.slice(-1)[0],x=(r.host||t.host||M.length>1)&&("."===A||".."===A)||""===A,E=0,O=M.length;O>=0;O--)"."===(A=M[O])?M.splice(O,1):".."===A?(M.splice(O,1),E++):E&&(M.splice(O,1),E--);if(!_&&!k)for(;E--;E)M.unshift("..");!_||""===M[0]||M[0]&&"/"===M[0].charAt(0)||M.unshift(""),x&&"/"!==M.join("/").substr(-1)&&M.push("");var P,B=""===M[0]||M[0]&&"/"===M[0].charAt(0);S&&(r.hostname=r.host=B?"":M.length?M.shift():"",(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift()));return(_=_||r.host&&M.length)&&!B&&M.unshift(""),M.length?r.pathname=M.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},a.prototype.parseHost=function(){var t=this.host,e=u.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e,r){"use strict";(e=t.exports=r(117)).Stream=e,e.Readable=e,e.Writable=r(75),e.Duplex=r(28),e.Transform=r(121),e.PassThrough=r(242)},function(t,e,r){"use strict";(function(t){var n=r(0)(r(2));function i(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===i(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"===(0,n.default)(t)},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===i(t)},e.isObject=function(t){return"object"===(0,n.default)(t)&&null!==t},e.isDate=function(t){return"[object Date]"===i(t)},e.isError=function(t){return"[object Error]"===i(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"===(0,n.default)(t)||void 0===t},e.isBuffer=t.isBuffer}).call(this,r(1).Buffer)},function(t,e,r){"use strict";t.exports=r(253)},function(t,e,r){"use strict";var n=r(21),i=r(18);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=o,o.prototype.update=function(t,e){if(t=n.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=n.join32(t,0,t.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o1?(t[r[0]]=t[r[0]]||{},t[r[0]][r[1]]=e):t[r[0]]=e},i.prototype.buildCall=function(){var t=this;return function(){t.subscriptions[arguments[0]]||console.warn("Subscription "+JSON.stringify(arguments[0])+" doesn't exist. Subscribing anyway.");var e=new n({subscription:t.subscriptions[arguments[0]]||{},requestManager:t.requestManager,type:t.type});return e.subscribe.apply(e,arguments)}},t.exports={subscriptions:i,subscription:n}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAddress=v,e.isAddress=function(t){try{return v(t),!0}catch(t){}return!1},e.getIcapAddress=function(t){var e=(0,i._base16To36)(v(t).substring(2)).toUpperCase();for(;e.length<30;)e="0"+e;return"XE"+b("XE00"+e)+e},e.getContractAddress=function(t){var e=null;try{e=v(t.from)}catch(e){f.throwArgumentError("missing from address","transaction",t)}var r=(0,n.stripZeros)((0,n.arrayify)(i.BigNumber.from(t.nonce).toHexString()));return v((0,n.hexDataSlice)((0,o.keccak256)((0,a.encode)([e,r])),12))},e.getCreate2Address=function(t,e,r){32!==(0,n.hexDataLength)(e)&&f.throwArgumentError("salt must be 32 bytes","salt",e);32!==(0,n.hexDataLength)(r)&&f.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r);return v((0,n.hexDataSlice)((0,o.keccak256)((0,n.concat)(["0xff",v(t),e,r])),12))};var n=r(11),i=r(24),o=r(32),a=r(128),s=r(12),u=r(264),f=new s.Logger(u.version);function c(t){(0,n.isHexString)(t,20)||f.throwArgumentError("invalid address","address",t);for(var e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40),i=0;i<40;i++)r[i]=e[i].charCodeAt(0);for(var a=(0,n.arrayify)((0,o.keccak256)(r)),s=0;s<40;s+=2)a[s>>1]>>4>=8&&(e[s]=e[s].toUpperCase()),(15&a[s>>1])>=8&&(e[s+1]=e[s+1].toUpperCase());return"0x"+e.join("")}for(var h={},l=0;l<10;l++)h[String(l)]=String(l);for(var d=0;d<26;d++)h[String.fromCharCode(65+d)]=String(10+d);var p,m=Math.floor((p=9007199254740991,Math.log10?Math.log10(p):Math.log(p)/Math.LN10));function b(t){for(var e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map((function(t){return h[t]})).join("");e.length>=m;){var r=e.substring(0,m);e=parseInt(r,10)%97+e.substring(r.length)}for(var n=String(98-parseInt(e,10)%97);n.length<2;)n="0"+n;return n}function v(t){var e=null;if("string"!=typeof t&&f.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=c(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&f.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==b(t)&&f.throwArgumentError("bad icap checksum","address",t),e=(0,i._base36To16)(t.substring(4));e.length<40;)e="0"+e;e=c("0x"+e)}else f.throwArgumentError("invalid address","address",t);return e}},function(t,e,r){"use strict";var n=e;n.utils=r(21),n.common=r(49),n.sha=r(272),n.ripemd=r(276),n.hmac=r(277),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(t,e,r){"use strict";var n=r(27),i=r(30),o=r(16),a=function(){var t=this;n.packageInit(this,arguments),[new i({name:"getId",call:"net_version",params:0,outputFormatter:parseInt}),new i({name:"isListening",call:"net_listening",params:0}),new i({name:"getPeerCount",call:"net_peerCount",params:0,outputFormatter:o.hexToNumber})].forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}))};n.addProviders(a),t.exports=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"formatBytes32String",{enumerable:!0,get:function(){return n.formatBytes32String}}),Object.defineProperty(e,"parseBytes32String",{enumerable:!0,get:function(){return n.parseBytes32String}}),Object.defineProperty(e,"nameprep",{enumerable:!0,get:function(){return i.nameprep}}),Object.defineProperty(e,"_toEscapedUtf8String",{enumerable:!0,get:function(){return o._toEscapedUtf8String}}),Object.defineProperty(e,"toUtf8Bytes",{enumerable:!0,get:function(){return o.toUtf8Bytes}}),Object.defineProperty(e,"toUtf8CodePoints",{enumerable:!0,get:function(){return o.toUtf8CodePoints}}),Object.defineProperty(e,"toUtf8String",{enumerable:!0,get:function(){return o.toUtf8String}}),Object.defineProperty(e,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return o.UnicodeNormalizationForm}}),Object.defineProperty(e,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return o.Utf8ErrorFuncs}}),Object.defineProperty(e,"Utf8ErrorReason",{enumerable:!0,get:function(){return o.Utf8ErrorReason}});var n=r(292),i=r(294),o=r(81)},function(t){t.exports=JSON.parse('{"identity":0,"ip4":4,"tcp":6,"sha1":17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"dccp":33,"murmur3-128":34,"murmur3-32":35,"ip6":41,"ip6zone":42,"path":47,"multicodec":48,"multihash":49,"multiaddr":50,"multibase":51,"dns":53,"dns4":54,"dns6":55,"dnsaddr":56,"protobuf":80,"cbor":81,"raw":85,"dbl-sha2-256":86,"rlp":96,"bencode":99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,"sctp":132,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"zcash-block":192,"zcash-tx":193,"stellar-block":208,"stellar-tx":209,"md4":212,"md5":213,"bmt":214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,"zeronet":230,"ed25519-pub":237,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,"udp":273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,"udt":301,"utp":302,"unix":400,"p2p":421,"ipfs":421,"https":443,"onion":444,"onion3":445,"garlic64":446,"garlic32":447,"tls":448,"quic":460,"ws":477,"wss":478,"p2p-websocket-star":479,"http":480,"json":512,"messagepack":513,"x11":4352,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46000,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332}')},function(t,e,r){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=r(22),e.createHash=e.Hash=r(36),e.createHmac=e.Hmac=r(160);var n=r(366),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);e.getHashes=function(){return o};var a=r(163);e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync;var s=r(368);e.Cipher=s.Cipher,e.createCipher=s.createCipher,e.Cipheriv=s.Cipheriv,e.createCipheriv=s.createCipheriv,e.Decipher=s.Decipher,e.createDecipher=s.createDecipher,e.Decipheriv=s.Decipheriv,e.createDecipheriv=s.createDecipheriv,e.getCiphers=s.getCiphers,e.listCiphers=s.listCiphers;var u=r(383);e.DiffieHellmanGroup=u.DiffieHellmanGroup,e.createDiffieHellmanGroup=u.createDiffieHellmanGroup,e.getDiffieHellman=u.getDiffieHellman,e.createDiffieHellman=u.createDiffieHellman,e.DiffieHellman=u.DiffieHellman;var f=r(387);e.createSign=f.createSign,e.Sign=f.Sign,e.createVerify=f.createVerify,e.Verify=f.Verify,e.createECDH=r(422);var c=r(423);e.publicEncrypt=c.publicEncrypt,e.privateEncrypt=c.privateEncrypt,e.publicDecrypt=c.publicDecrypt,e.privateDecrypt=c.privateDecrypt;var h=r(426);e.randomFill=h.randomFill,e.randomFillSync=h.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(t,e,r){"use strict";var n=r(4).Buffer;function i(t){n.isBuffer(t)||(t=n.from(t));for(var e=t.length/4|0,r=new Array(e),i=0;i>>24]^c[p>>>16&255]^h[m>>>8&255]^l[255&b]^e[v++],a=f[p>>>24]^c[m>>>16&255]^h[b>>>8&255]^l[255&d]^e[v++],s=f[m>>>24]^c[b>>>16&255]^h[d>>>8&255]^l[255&p]^e[v++],u=f[b>>>24]^c[d>>>16&255]^h[p>>>8&255]^l[255&m]^e[v++],d=o,p=a,m=s,b=u;return o=(n[d>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&b])^e[v++],a=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[b>>>8&255]<<8|n[255&d])^e[v++],s=(n[m>>>24]<<24|n[b>>>16&255]<<16|n[d>>>8&255]<<8|n[255&p])^e[v++],u=(n[b>>>24]<<24|n[d>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^e[v++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var f=s^s<<1^s<<2^s<<3^s<<4;f=f>>>8^255&f^99,r[a]=f,n[f]=a;var c=t[a],h=t[c],l=t[h],d=257*t[f]^16843008*f;i[0][a]=d<<24|d>>>8,i[1][a]=d<<16|d>>>16,i[2][a]=d<<8|d>>>24,i[3][a]=d,d=16843009*l^65537*h^257*c^16843008*a,o[0][f]=d<<24|d>>>8,o[1][f]=d<<16|d>>>16,o[2][f]=d<<8|d>>>24,o[3][f]=d,0===a?a=s=1:(a=c^t[t[t[l^c]]],s^=t[t[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function f(t){this._key=i(t),this._reset()}f.blockSize=16,f.keySize=32,f.prototype.blockSize=f.blockSize,f.prototype.keySize=f.keySize,f.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,n=4*(r+1),i=[],o=0;o>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/e|0]<<24):e>6&&o%e==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-e]^a}for(var f=[],c=0;c>>24]]^u.INV_SUB_MIX[1][u.SBOX[l>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[l>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&l]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=f},f.prototype.encryptBlockRaw=function(t){return a(t=i(t),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},f.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=n.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r},f.prototype.decryptBlock=function(t){var e=(t=i(t))[1];t[1]=t[3],t[3]=e;var r=a(t,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},f.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=f},function(t,e,r){"use strict";var n=r(4).Buffer,i=r(83);t.exports=function(t,e,r,o){if(n.isBuffer(t)||(t=n.from(t,"binary")),e&&(n.isBuffer(e)||(e=n.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),u=n.alloc(o||0),f=n.alloc(0);a>0||o>0;){var c=new i;c.update(f),c.update(t),e&&c.update(e),f=c.digest();var h=0;if(a>0){var l=s.length-a;h=Math.min(a,f.length),f.copy(s,l,0,h),a-=h}if(h0){var d=u.length-o,p=Math.min(o,f.length-h);f.copy(u,d,h,h+p),o-=p}}return f.fill(0),{key:s,iv:u}}},function(t,e,r){"use strict";var n=r(8),i=r(19),o=i.getNAF,a=i.getJSF,s=i.assert;function u(t,e){this.type=t,this.p=new n(e.p,16),this.red=e.prime?n.red(e.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=e.n&&new n(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(t,e){s(t.precomputed);var r=t._getDoubles(),n=o(e,1,this._bitLength),i=(1<=a;c--)u=(u<<1)+n[c];f.push(u)}for(var h=this.jpoint(null,null,null),l=this.jpoint(null,null,null),d=i;d>0;d--){for(a=0;a=0;f--){for(var c=0;f>=0&&0===a[f];f--)c++;if(f>=0&&c++,u=u.dblp(c),f<0)break;var h=a[f];s(0!==h),u="affine"===t.type?h>0?u.mixedAdd(i[h-1>>1]):u.mixedAdd(i[-h-1>>1].neg()):h>0?u.add(i[h-1>>1]):u.add(i[-h-1>>1].neg())}return"affine"===t.type?u.toP():u},u.prototype._wnafMulAdd=function(t,e,r,n,i){var s,u,f,c=this._wnafT1,h=this._wnafT2,l=this._wnafT3,d=0;for(s=0;s=1;s-=2){var m=s-1,b=s;if(1===c[m]&&1===c[b]){var v=[e[m],null,null,e[b]];0===e[m].y.cmp(e[b].y)?(v[1]=e[m].add(e[b]),v[2]=e[m].toJ().mixedAdd(e[b].neg())):0===e[m].y.cmp(e[b].y.redNeg())?(v[1]=e[m].toJ().mixedAdd(e[b]),v[2]=e[m].add(e[b].neg())):(v[1]=e[m].toJ().mixedAdd(e[b]),v[2]=e[m].toJ().mixedAdd(e[b].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],g=a(r[m],r[b]);for(d=Math.max(g[0].length,d),l[m]=new Array(d),l[b]=new Array(d),u=0;u=0;s--){for(var S=0;s>=0;){var A=!0;for(u=0;u=0&&S++,k=k.dblp(S),s<0)break;for(u=0;u0?f=h[u][x-1>>1]:x<0&&(f=h[u][-x-1>>1].neg()),k="affine"===f.type?k.mixedAdd(f):k.add(f))}}for(s=0;s=Math.ceil((t.bitLength()+1)/e.step)},f.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;ir.length)throw new Error("invalid rlp: total length is larger than the data");if(0===(s=r.slice(o,h)).length)throw new Error("invalid rlp, List has a invalid length");for(;s.length;)u=e(s),f.push(u.data),s=u.remainder;return{data:f,remainder:r.slice(h)}}(u(e));if(r)return n;if(0!==n.remainder.length)throw new Error("invalid remainder");return n.data},e.getLength=function(e){if(!e||0===e.length)return t.from([]);var r=u(e),n=r[0];if(n<=127)return r.length;if(n<=183)return n-127;if(n<=191)return n-182;if(n<=247)return n-191;var o=n-246;return o+i(r.slice(1,o).toString("hex"),16)}}).call(this,r(1).Buffer)},function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.assertIsString=e.assertIsArray=e.assertIsBuffer=e.assertIsHexString=void 0;var n=r(42);e.assertIsHexString=function(t){if(!n.isHexString(t))throw new Error("This method only supports 0x-prefixed hex strings but input was: "+t)},e.assertIsBuffer=function(e){if(!t.isBuffer(e))throw new Error("This method only supports Buffer but input was: "+e)},e.assertIsArray=function(t){if(!Array.isArray(t))throw new Error("This method only supports number arrays but input was: "+t)},e.assertIsString=function(t){if("string"!=typeof t)throw new Error("This method only supports strings but input was: "+t)}}).call(this,r(1).Buffer)},function(t,e,r){"use strict";var n="0123456789abcdef".split(""),i=[1,256,65536,16777216],o=[0,8,16,24],a=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],s=function(t){var e,r,n,i,o,s,u,f,c,h,l,d,p,m,b,v,y,g,w,_,k,M,S,A,x,E,O,P,B,T,R,I,C,U,j,N,L,F,D,q,H,z,K,G,V,W,Z,J,X,Y,$,Q,tt,et,rt,nt,it,ot,at,st,ut,ft,ct;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],u=t[3]^t[13]^t[23]^t[33]^t[43],f=t[4]^t[14]^t[24]^t[34]^t[44],c=t[5]^t[15]^t[25]^t[35]^t[45],h=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],e=(d=t[8]^t[18]^t[28]^t[38]^t[48])^(s<<1|u>>>31),r=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(u<<1|s>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(f<<1|c>>>31),r=o^(c<<1|f>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=s^(h<<1|l>>>31),r=u^(l<<1|h>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=f^(d<<1|p>>>31),r=c^(p<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=h^(i<<1|o>>>31),r=l^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],b=t[1],W=t[11]<<4|t[10]>>>28,Z=t[10]<<4|t[11]>>>28,P=t[20]<<3|t[21]>>>29,B=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,z=t[40]<<18|t[41]>>>14,K=t[41]<<18|t[40]>>>14,U=t[2]<<1|t[3]>>>31,j=t[3]<<1|t[2]>>>31,v=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,J=t[22]<<10|t[23]>>>22,X=t[23]<<10|t[22]>>>22,T=t[33]<<13|t[32]>>>19,R=t[32]<<13|t[33]>>>19,ft=t[42]<<2|t[43]>>>30,ct=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,N=t[14]<<6|t[15]>>>26,L=t[15]<<6|t[14]>>>26,g=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,Y=t[34]<<15|t[35]>>>17,$=t[35]<<15|t[34]>>>17,I=t[45]<<29|t[44]>>>3,C=t[44]<<29|t[45]>>>3,A=t[6]<<28|t[7]>>>4,x=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,F=t[26]<<25|t[27]>>>7,D=t[27]<<25|t[26]>>>7,_=t[36]<<21|t[37]>>>11,k=t[37]<<21|t[36]>>>11,Q=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,G=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,E=t[18]<<20|t[19]>>>12,O=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,at=t[28]<<7|t[29]>>>25,q=t[38]<<8|t[39]>>>24,H=t[39]<<8|t[38]>>>24,M=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=m^~v&g,t[1]=b^~y&w,t[10]=A^~E&P,t[11]=x^~O&B,t[20]=U^~N&F,t[21]=j^~L&D,t[30]=G^~W&J,t[31]=V^~Z&X,t[40]=et^~nt&ot,t[41]=rt^~it&at,t[2]=v^~g&_,t[3]=y^~w&k,t[12]=E^~P&T,t[13]=O^~B&R,t[22]=N^~F&q,t[23]=L^~D&H,t[32]=W^~J&Y,t[33]=Z^~X&$,t[42]=nt^~ot&st,t[43]=it^~at&ut,t[4]=g^~_&M,t[5]=w^~k&S,t[14]=P^~T&I,t[15]=B^~R&C,t[24]=F^~q&z,t[25]=D^~H&K,t[34]=J^~Y&Q,t[35]=X^~$&tt,t[44]=ot^~st&ft,t[45]=at^~ut&ct,t[6]=_^~M&m,t[7]=k^~S&b,t[16]=T^~I&A,t[17]=R^~C&x,t[26]=q^~z&U,t[27]=H^~K&j,t[36]=Y^~Q&G,t[37]=$^~tt&V,t[46]=st^~ft&et,t[47]=ut^~ct&rt,t[8]=M^~m&v,t[9]=S^~b&y,t[18]=I^~A&E,t[19]=C^~x&O,t[28]=z^~U&N,t[29]=K^~j&L,t[38]=Q^~G&W,t[39]=tt^~V&Z,t[48]=ft^~et&nt,t[49]=ct^~rt&it,t[0]^=a[n],t[1]^=a[n+1]},u=function(t){return function(e){var r;if("0x"===e.slice(0,2)){r=[];for(var a=2,u=e.length;a>2]|=e[d]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|63&r)<=57344?(u[b>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<=f){for(t.start=b-f,t.block=u[c],b=0;b>2]|=i[3&b],t.lastByteIndex===f)for(u[0]=u[c],b=1;b>4&15]+n[15&p]+n[p>>12&15]+n[p>>8&15]+n[p>>20&15]+n[p>>16&15]+n[p>>28&15]+n[p>>24&15];v%c==0&&(s(l),b=0)}return"0x"+m}(function(t){return{blocks:[],reset:!0,block:0,start:0,blockCount:1600-(t<<1)>>5,outputBlocks:t>>5,s:(e=[0,0,0,0,0,0,0,0,0,0],[].concat(e,e,e,e,e))};var e}(t),r)}};t.exports={keccak256:u(256),keccak512:u(512),keccak256s:u(256),keccak512s:u(512)}},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function o(){}function a(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function s(t,e,r,n,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new a(r,n||t,o),u=i?i+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function u(t,e){0==--t._eventsCount?t._events=new o:delete t._events[e]}function f(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),f.prototype.eventNames=function(){var t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)n.call(t,e)&&r.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},f.prototype.listeners=function(t){var e=i?i+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,o=r.length,a=new Array(o);n-1?n:o.nextTick;y.WritableState=v;var f=Object.create(r(47));f.inherits=r(3);var c={deprecate:r(76)},h=r(118),l=r(4).Buffer,d=i.Uint8Array||function(){};var p,m=r(119);function b(){}function v(t,e){s=s||r(28),t=t||{};var n=e instanceof s;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,f=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(f||0===f)?f:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===t.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?(o.nextTick(i,n),o.nextTick(S,t,e),t._writableState.errorEmitted=!0,t.emit("error",n)):(i(n),t._writableState.errorEmitted=!0,t.emit("error",n),S(t,e))}(t,r,n,e,i);else{var a=k(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(t,r),n?u(w,t,r,a,i):w(t,r,a,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function y(t){if(s=s||r(28),!(p.call(y,this)||this instanceof s))return new y(t);this._writableState=new v(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),h.call(this)}function g(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function w(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),S(t,e)}function _(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,g(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,c=r.encoding,h=r.callback;if(g(t,e,!1,e.objectMode?1:f.length,f,c,h),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function k(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function M(t,e){t._final((function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),S(t,e)}))}function S(t,e){var r=k(e);return r&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,o.nextTick(M,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}f.inherits(y,h),v.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(v.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(t){return!!p.call(this,t)||this===y&&(t&&t._writableState instanceof v)}})):p=function(t){return t instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(t,e,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=t,l.isBuffer(n)||n instanceof d);return s&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),"function"==typeof e&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof r&&(r=b),i.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),o.nextTick(e,r)}(this,r):(s||function(t,e,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,t,r))&&(i.pendingcb++,a=function(t,e,r,n,i,o){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=l.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(t,e,r){e.ending=!0,S(t,e),r&&(e.finished?o.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,r(6),r(120).setImmediate,r(7))},function(t,e,r){"use strict";(function(e){function r(t){try{if(!e.localStorage)return!1}catch(t){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(t,e){if(r("noDeprecation"))return t;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}}}).call(this,r(7))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.listeners={}}return t.prototype.addEventListener=function(t,e){t=t.toLowerCase(),this.listeners[t]=this.listeners[t]||[],this.listeners[t].push(e.handleEvent||e)},t.prototype.removeEventListener=function(t,e){if(t=t.toLowerCase(),this.listeners[t]){var r=this.listeners[t].indexOf(e.handleEvent||e);r<0||this.listeners[t].splice(r,1)}},t.prototype.dispatchEvent=function(t){var e=t.type.toLowerCase();if(t.target=this,this.listeners[e])for(var r=0,n=this.listeners[e];r=0||"tuple"===t)&&v[e])return!0;return(b[e]||"payable"===e)&&p.throwArgumentError("invalid modifier","name",e),!1}function g(t,e){for(var r in e)(0,c.defineReadOnly)(t,r,e[r])}var w=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"});e.FormatTypes=w;var _=new RegExp(/^(.*)\[([0-9]*)\]$/),k=function(){function t(e,r){(0,s.default)(this,t),e!==m&&p.throwError("use fromString",h.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),g(this,r);var n=this.type.match(_);g(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:t.fromObject({type:n[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}return(0,u.default)(t,[{key:"format",value:function(t){if(t||(t=w.sighash),w[t]||p.throwArgumentError("invalid format type","format",t),t===w.json){var e={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(e.indexed=this.indexed),this.components&&(e.components=this.components.map((function(e){return JSON.parse(e.format(t))}))),JSON.stringify(e)}var r="";return"array"===this.baseType?(r+=this.arrayChildren.format(t),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(t!==w.sighash&&(r+=this.type),r+="("+this.components.map((function(e){return e.format(t)})).join(t===w.full?", ":",")+")"):r+=this.type,t!==w.sighash&&(!0===this.indexed&&(r+=" indexed"),t===w.full&&this.name&&(r+=" "+this.name)),r}}],[{key:"from",value:function(e,r){return"string"==typeof e?t.fromString(e,r):t.fromObject(e)}},{key:"fromObject",value:function(e){return t.isParamType(e)?e:new t(m,{name:e.name||null,type:T(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(t.fromObject):null})}},{key:"fromString",value:function(e,r){return function(e){return t.fromObject({name:e.name,type:e.type,indexed:e.indexed,components:e.components})}(function(t,e){var r=t;function n(e){p.throwArgumentError("unexpected character at position ".concat(e),"param",t)}function i(t){var r={type:"",name:"",parent:t,state:{allowType:!0}};return e&&(r.indexed=!1),r}t=t.replace(/\s/g," ");for(var o={type:"",name:"",state:{allowType:!0}},a=o,s=0;s2&&p.throwArgumentError("invalid human-readable ABI signature","value",t),r[1].match(/^[0-9]+$/)||p.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=f.BigNumber.from(r[1]),r[0]):t}function E(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach((function(t){switch(t.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+t)}}))}function O(t){var e={constant:!1,payable:!0,stateMutability:"payable"};return null!=t.stateMutability?(e.stateMutability=t.stateMutability,e.constant="view"===e.stateMutability||"pure"===e.stateMutability,null!=t.constant&&!!t.constant!==e.constant&&p.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable="payable"===e.stateMutability,null!=t.payable&&!!t.payable!==e.payable&&p.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):null!=t.payable?(e.payable=!!t.payable,null!=t.constant||e.payable||"constructor"===t.type||p.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&p.throwArgumentError("cannot have constant payable function","value",t)):null!=t.constant?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):"constructor"!==t.type&&p.throwArgumentError("unable to determine stateMutability","value",t),e}e.EventFragment=A;var P=function(t){(0,i.default)(r,t);var e=d(r);function r(){return(0,s.default)(this,r),e.apply(this,arguments)}return(0,u.default)(r,[{key:"format",value:function(t){if(t||(t=w.sighash),w[t]||p.throwArgumentError("invalid format type","format",t),t===w.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payble:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(e){return JSON.parse(e.format(t))}))});t===w.sighash&&p.throwError("cannot format a constructor for sighash",h.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var e="constructor("+this.inputs.map((function(e){return e.format(t)})).join(t===w.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "),e.trim()}}],[{key:"from",value:function(t){return"string"==typeof t?r.fromString(t):r.fromObject(t)}},{key:"fromObject",value:function(t){if(r.isConstructorFragment(t))return t;"constructor"!==t.type&&p.throwArgumentError("invalid constructor object","value",t);var e=O(t);e.constant&&p.throwArgumentError("constructor cannot be constant","value",t);var n={name:null,type:t.type,inputs:t.inputs?t.inputs.map(k.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?f.BigNumber.from(t.gas):null};return new r(m,n)}},{key:"fromString",value:function(t){var e={type:"constructor"},n=(t=x(t,e)).match(C);return n&&"constructor"===n[1].trim()||p.throwArgumentError("invalid constructor string","value",t),e.inputs=M(n[2].trim(),!1),E(n[3].trim(),e),r.fromObject(e)}},{key:"isConstructorFragment",value:function(t){return t&&t._isFragment&&"constructor"===t.type}}]),r}(S);e.ConstructorFragment=P;var B=function(t){(0,i.default)(r,t);var e=d(r);function r(){return(0,s.default)(this,r),e.apply(this,arguments)}return(0,u.default)(r,[{key:"format",value:function(t){if(t||(t=w.sighash),w[t]||p.throwArgumentError("invalid format type","format",t),t===w.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payble:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(e){return JSON.parse(e.format(t))})),ouputs:this.outputs.map((function(e){return JSON.parse(e.format(t))}))});var e="";return t!==w.sighash&&(e+="function "),e+=this.name+"("+this.inputs.map((function(e){return e.format(t)})).join(t===w.full?", ":",")+") ",t!==w.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "):this.constant&&(e+="view "),this.outputs&&this.outputs.length&&(e+="returns ("+this.outputs.map((function(e){return e.format(t)})).join(", ")+") "),null!=this.gas&&(e+="@"+this.gas.toString()+" ")),e.trim()}}],[{key:"from",value:function(t){return"string"==typeof t?r.fromString(t):r.fromObject(t)}},{key:"fromObject",value:function(t){if(r.isFunctionFragment(t))return t;"function"!==t.type&&p.throwArgumentError("invalid function object","value",t);var e=O(t),n={type:t.type,name:I(t.name),constant:e.constant,inputs:t.inputs?t.inputs.map(k.fromObject):[],outputs:t.outputs?t.outputs.map(k.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?f.BigNumber.from(t.gas):null};return new r(m,n)}},{key:"fromString",value:function(t){var e={type:"function"},n=(t=x(t,e)).split(" returns ");n.length>2&&p.throwArgumentError("invalid function string","value",t);var i=n[0].match(C);if(i||p.throwArgumentError("invalid function signature","value",t),e.name=i[1].trim(),e.name&&I(e.name),e.inputs=M(i[2],!1),E(i[3].trim(),e),n.length>1){var o=n[1].match(C);""==o[1].trim()&&""==o[3].trim()||p.throwArgumentError("unexpected tokens","value",t),e.outputs=M(o[2],!1)}else e.outputs=[];return r.fromObject(e)}},{key:"isFunctionFragment",value:function(t){return t&&t._isFragment&&"function"===t.type}}]),r}(P);function T(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}e.FunctionFragment=B;var R=new RegExp("^[A-Za-z_][A-Za-z0-9_]*$");function I(t){return t&&t.match(R)||p.throwArgumentError('invalid identifier "'.concat(t,'"'),"value",t),t}var C=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toUtf8Bytes=l,e._toEscapedUtf8String=function(t,e){return'"'+h(t,e).map((function(t){if(t<256){switch(t){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(t>=32&&t<127)return String.fromCharCode(t)}return t<=65535?d(t):d(55296+((t-=65536)>>10&1023))+d(56320+(1023&t))})).join("")+'"'},e._toUtf8String=p,e.toUtf8String=function(t,e){return p(h(t,e))},e.toUtf8CodePoints=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.current;return h(l(t,e))},e.Utf8ErrorFuncs=e.Utf8ErrorReason=e.UnicodeNormalizationForm=void 0;var n,i,o=r(11),a=r(12),s=r(293),u=new a.Logger(s.version);function f(t,e,r,n,o){if(t===i.BAD_PREFIX||t===i.UNEXPECTED_CONTINUE){for(var a=0,s=e+1;s>6==2;s++)a++;return a}return t===i.OVERRUN?r.length-e-1:0}e.UnicodeNormalizationForm=n,function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"}(n||(e.UnicodeNormalizationForm=n={})),e.Utf8ErrorReason=i,function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"}(i||(e.Utf8ErrorReason=i={}));var c=Object.freeze({error:function(t,e,r,n,i){return u.throwArgumentError("invalid codepoint at offset ".concat(e,"; ").concat(t),"bytes",r)},ignore:f,replace:function(t,e,r,n,o){return t===i.OVERLONG?(n.push(o),0):(n.push(65533),f(t,e,r))}});function h(t,e){null==e&&(e=c.error),t=(0,o.arrayify)(t);for(var r=[],n=0;n>7!=0){var s=null,u=null;if(192==(224&a))s=1,u=127;else if(224==(240&a))s=2,u=2047;else{if(240!=(248&a)){n+=e(128==(192&a)?i.UNEXPECTED_CONTINUE:i.BAD_PREFIX,n-1,t,r);continue}s=3,u=65535}if(n-1+s>=t.length)n+=e(i.OVERRUN,n-1,t,r);else{for(var f=a&(1<<8-s-1)-1,h=0;h1114111?n+=e(i.OUT_OF_RANGE,n-1-s,t,r,f):f>=55296&&f<=57343?n+=e(i.UTF16_SURROGATE,n-1-s,t,r,f):f<=u?n+=e(i.OVERLONG,n-1-s,t,r,f):r.push(f))}}else r.push(a)}return r}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.current;e!=n.current&&(u.checkNormalize(),t=t.normalize(e));for(var r=[],i=0;i>6|192),r.push(63&a|128);else if(55296==(64512&a)){i++;var s=t.charCodeAt(i);if(i>=t.length||56320!=(64512&s))throw new Error("invalid utf-8 string");var f=65536+((1023&a)<<10)+(1023&s);r.push(f>>18|240),r.push(f>>12&63|128),r.push(f>>6&63|128),r.push(63&f|128)}else r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)}return(0,o.arrayify)(r)}function d(t){var e="0000"+t.toString(16);return"\\u"+e.substring(e.length-4)}function p(t){return t.map((function(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t)))})).join("")}e.Utf8ErrorFuncs=c},function(t,e,r){"use strict";var n=r(1).Buffer,i=r(318),o=r(51),a=r(324);function s(t){e.decode(t)}e.names=a.names,e.codes=a.codes,e.defaultLengths=a.defaultLengths,e.toHexString=function(t){if(!n.isBuffer(t))throw new Error("must be passed a buffer");return t.toString("hex")},e.fromHexString=function(t){return n.from(t,"hex")},e.toB58String=function(t){if(!n.isBuffer(t))throw new Error("must be passed a buffer");return i.encode("base58btc",t).toString().slice(1)},e.fromB58String=function(t){var e=t;return n.isBuffer(t)&&(e=t.toString()),i.decode("z"+e)},e.decode=function(t){if(!n.isBuffer(t))throw new Error("multihash must be a Buffer");if(t.length<2)throw new Error("multihash too short. must be > 2 bytes.");var r=o.decode(t);if(!e.isValidCode(r))throw new Error("multihash unknown function code: 0x".concat(r.toString(16)));t=t.slice(o.decode.bytes);var i=o.decode(t);if(i<0)throw new Error("multihash invalid length: ".concat(i));if((t=t.slice(o.decode.bytes)).length!==i)throw new Error("multihash length inconsistent: 0x".concat(t.toString("hex")));return{code:r,name:a.codes[r],length:i,digest:t}},e.encode=function(t,r,i){if(!t||void 0===r)throw new Error("multihash encode requires at least two args: digest, code");var a=e.coerceCode(r);if(!n.isBuffer(t))throw new Error("digest should be a Buffer");if(null==i&&(i=t.length),i&&t.length!==i)throw new Error("digest length should be equal to specified length.");return n.concat([n.from(o.encode(a)),n.from(o.encode(i)),t])},e.coerceCode=function(t){var r=t;if("string"==typeof t){if(void 0===a.names[t])throw new Error("Unrecognized hash function named: ".concat(t));r=a.names[t]}if("number"!=typeof r)throw new Error("Hash function code should be a number. Got: ".concat(r));if(void 0===a.codes[r]&&!e.isAppCode(r))throw new Error("Unrecognized function code: ".concat(r));return r},e.isAppCode=function(t){return t>0&&t<16},e.isValidCode=function(t){return!!e.isAppCode(t)||!!a.codes[t]},e.validate=s,e.prefix=function(t){return s(t),t.slice(0,2)}},function(t,e,r){"use strict";var n=r(3),i=r(151),o=r(4).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(t,e){return t<>>32-e}function f(t,e,r,n,i,o,a){return u(t+(e&r|~e&n)+i+o|0,a)+e|0}function c(t,e,r,n,i,o,a){return u(t+(e&n|r&~n)+i+o|0,a)+e|0}function h(t,e,r,n,i,o,a){return u(t+(e^r^n)+i+o|0,a)+e|0}function l(t,e,r,n,i,o,a){return u(t+(r^(e|~n))+i+o|0,a)+e|0}n(s,i),s.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var r=this._a,n=this._b,i=this._c,o=this._d;r=f(r,n,i,o,t[0],3614090360,7),o=f(o,r,n,i,t[1],3905402710,12),i=f(i,o,r,n,t[2],606105819,17),n=f(n,i,o,r,t[3],3250441966,22),r=f(r,n,i,o,t[4],4118548399,7),o=f(o,r,n,i,t[5],1200080426,12),i=f(i,o,r,n,t[6],2821735955,17),n=f(n,i,o,r,t[7],4249261313,22),r=f(r,n,i,o,t[8],1770035416,7),o=f(o,r,n,i,t[9],2336552879,12),i=f(i,o,r,n,t[10],4294925233,17),n=f(n,i,o,r,t[11],2304563134,22),r=f(r,n,i,o,t[12],1804603682,7),o=f(o,r,n,i,t[13],4254626195,12),i=f(i,o,r,n,t[14],2792965006,17),r=c(r,n=f(n,i,o,r,t[15],1236535329,22),i,o,t[1],4129170786,5),o=c(o,r,n,i,t[6],3225465664,9),i=c(i,o,r,n,t[11],643717713,14),n=c(n,i,o,r,t[0],3921069994,20),r=c(r,n,i,o,t[5],3593408605,5),o=c(o,r,n,i,t[10],38016083,9),i=c(i,o,r,n,t[15],3634488961,14),n=c(n,i,o,r,t[4],3889429448,20),r=c(r,n,i,o,t[9],568446438,5),o=c(o,r,n,i,t[14],3275163606,9),i=c(i,o,r,n,t[3],4107603335,14),n=c(n,i,o,r,t[8],1163531501,20),r=c(r,n,i,o,t[13],2850285829,5),o=c(o,r,n,i,t[2],4243563512,9),i=c(i,o,r,n,t[7],1735328473,14),r=h(r,n=c(n,i,o,r,t[12],2368359562,20),i,o,t[5],4294588738,4),o=h(o,r,n,i,t[8],2272392833,11),i=h(i,o,r,n,t[11],1839030562,16),n=h(n,i,o,r,t[14],4259657740,23),r=h(r,n,i,o,t[1],2763975236,4),o=h(o,r,n,i,t[4],1272893353,11),i=h(i,o,r,n,t[7],4139469664,16),n=h(n,i,o,r,t[10],3200236656,23),r=h(r,n,i,o,t[13],681279174,4),o=h(o,r,n,i,t[0],3936430074,11),i=h(i,o,r,n,t[3],3572445317,16),n=h(n,i,o,r,t[6],76029189,23),r=h(r,n,i,o,t[9],3654602809,4),o=h(o,r,n,i,t[12],3873151461,11),i=h(i,o,r,n,t[15],530742520,16),r=l(r,n=h(n,i,o,r,t[2],3299628645,23),i,o,t[0],4096336452,6),o=l(o,r,n,i,t[7],1126891415,10),i=l(i,o,r,n,t[14],2878612391,15),n=l(n,i,o,r,t[5],4237533241,21),r=l(r,n,i,o,t[12],1700485571,6),o=l(o,r,n,i,t[3],2399980690,10),i=l(i,o,r,n,t[10],4293915773,15),n=l(n,i,o,r,t[1],2240044497,21),r=l(r,n,i,o,t[8],1873313359,6),o=l(o,r,n,i,t[15],4264355552,10),i=l(i,o,r,n,t[6],2734768916,15),n=l(n,i,o,r,t[13],1309151649,21),r=l(r,n,i,o,t[4],4149444226,6),o=l(o,r,n,i,t[11],3174756917,10),i=l(i,o,r,n,t[2],718787259,15),n=l(n,i,o,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=o.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=s},function(t,e,r){"use strict";var n=r(37).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,r,o){if("function"==typeof r)return t(e,null,r);r||(r={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i>>32-e}function m(t,e,r,n,i,o,a,s){return p(t+(e^r^n)+o+a|0,s)+i|0}function b(t,e,r,n,i,o,a,s){return p(t+(e&r|~e&n)+o+a|0,s)+i|0}function v(t,e,r,n,i,o,a,s){return p(t+((e|~r)^n)+o+a|0,s)+i|0}function y(t,e,r,n,i,o,a,s){return p(t+(e&n|r&~n)+o+a|0,s)+i|0}function g(t,e,r,n,i,o,a,s){return p(t+(e^(r|~n))+o+a|0,s)+i|0}i(d,o),d.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,d=0|this._e,w=0|this._a,_=0|this._b,k=0|this._c,M=0|this._d,S=0|this._e,A=0;A<80;A+=1){var x,E;A<16?(x=m(r,n,i,o,d,t[s[A]],h[0],f[A]),E=g(w,_,k,M,S,t[u[A]],l[0],c[A])):A<32?(x=b(r,n,i,o,d,t[s[A]],h[1],f[A]),E=y(w,_,k,M,S,t[u[A]],l[1],c[A])):A<48?(x=v(r,n,i,o,d,t[s[A]],h[2],f[A]),E=v(w,_,k,M,S,t[u[A]],l[2],c[A])):A<64?(x=y(r,n,i,o,d,t[s[A]],h[3],f[A]),E=b(w,_,k,M,S,t[u[A]],l[3],c[A])):(x=g(r,n,i,o,d,t[s[A]],h[4],f[A]),E=m(w,_,k,M,S,t[u[A]],l[4],c[A])),r=d,d=o,o=p(i,10),i=n,n=x,w=S,S=M,M=p(k,10),k=_,_=E}var O=this._b+i+M|0;this._b=this._c+o+S|0,this._c=this._d+d+w|0,this._d=this._e+r+_|0,this._e=this._a+n+k|0,this._a=O},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=n.alloc?n.alloc(20):new n(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=d},function(t,e,r){"use strict";var n=t.exports=function(t){t=t.toLowerCase();var e=n[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e};n.sha=r(357),n.sha1=r(358),n.sha224=r(359),n.sha256=r(158),n.sha384=r(360),n.sha512=r(159)},function(t,e,r){"use strict";t.exports=i;var n=r(23).EventEmitter;function i(){n.call(this)}r(3)(i,n),i.Readable=r(46),i.Writable=r(361),i.Duplex=r(362),i.Transform=r(363),i.PassThrough=r(364),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,t.end())}function u(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function f(t){if(c(),0===n.listenerCount(this,"error"))throw t}function c(){r.removeListener("data",i),t.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",f),t.removeListener("error",f),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return r.on("error",f),t.on("error",f),r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t}},function(t,e,r){"use strict";var n=r(18);function i(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=i,i.prototype._init=function(){},i.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},i.prototype._buffer=function(t,e){for(var r=Math.min(this.buffer.length-this.bufferOff,t.length-e),n=0;n0;n--)e+=this._buffer(t,e),r+=this._flushBuffer(i,r);return e+=this._buffer(t,e),i},i.prototype.final=function(t){var e,r;return t&&(e=this.update(t)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(r):r},i.prototype._pad=function(t,e){if(0===e)return!1;for(;e */var n=r(1),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e,r){"use strict";var n=r(40).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,r,o){if("function"==typeof r)return t(e,null,r);r||(r={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function a(t,r){var i=function(t){var e=o(t);return{blinder:e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(r),a=r.modulus.byteLength(),s=new n(t).mul(i.blinder).umod(r.modulus),u=s.toRed(n.mont(r.prime1)),f=s.toRed(n.mont(r.prime2)),c=r.coefficient,h=r.prime1,l=r.prime2,d=u.redPow(r.exponent1).fromRed(),p=f.redPow(r.exponent2).fromRed(),m=d.isub(p).imul(c).umod(h).imul(l);return p.iadd(m).imul(i.unblinder).umod(r.modulus).toArrayLike(e,"be",a)}a.getr=o,t.exports=a}).call(this,r(1).Buffer)},function(t,e,r){"use strict";var n,i=e,o=r(60),a=r(184),s=r(19).assert;function u(t){"short"===t.type?this.curve=new a.short(t):"edwards"===t.type?this.curve=new a.edwards(t):this.curve=new a.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function f(t,e){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var r=new u(e);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,f("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),f("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),f("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(403)}catch(t){n=void 0}f("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(t,e,r){"use strict";(function(e){var n,i=r(0)(r(2)),o=r(1),a=o.Buffer,s={};for(n in o)o.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(s[n]=o[n]);var u=s.Buffer={};for(n in a)a.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(u[n]=a[n]);if(s.Buffer.prototype=a.prototype,u.from&&u.from!==Uint8Array.from||(u.from=function(t,e,r){if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+(0,i.default)(t));if(t&&void 0===t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+(0,i.default)(t));return a(t,e,r)}),u.alloc||(u.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+(0,i.default)(t));if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var n=a(t);return e&&0!==e.length?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n}),!s.kStringMaxLength)try{s.kStringMaxLength=e.binding("buffer").kStringMaxLength}catch(t){}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),t.exports=s}).call(this,r(6))},function(t,e,r){"use strict";var n=r(0)(r(2)),i=r(98).Reporter,o=r(55).EncoderBuffer,a=r(55).DecoderBuffer,s=r(18),u=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],f=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(u);function c(t,e,r){var n={};this._baseState=n,n.name=r,n.enc=t,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t.exports=c;var h=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){var t=this._baseState,e={};h.forEach((function(r){e[r]=t[r]}));var r=new this.constructor(e.parent);return r._baseState=e,r},c.prototype._wrap=function(){var t=this._baseState;f.forEach((function(e){this[e]=function(){var r=new this.constructor(this);return t.children.push(r),r[e].apply(r,arguments)}}),this)},c.prototype._init=function(t){var e=this._baseState;s(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),s.equal(e.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(t){var e=this._baseState,r=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==r.length&&(s(null===e.children),e.children=r,r.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(s(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!==(0,n.default)(t)||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach((function(r){r==(0|r)&&(r|=0);var n=t[r];e[n]=r})),e})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(t){c.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),u.forEach((function(t){c.prototype[t]=function(){var e=this._baseState,r=Array.prototype.slice.call(arguments);return s(null===e.tag),e.tag=t,this._useArgs(r),this}})),c.prototype.use=function(t){s(t);var e=this._baseState;return s(null===e.use),e.use=t,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(t){var e=this._baseState;return s(null===e.default),e.default=t,e.optional=!0,this},c.prototype.explicit=function(t){var e=this._baseState;return s(null===e.explicit&&null===e.implicit),e.explicit=t,this},c.prototype.implicit=function(t){var e=this._baseState;return s(null===e.explicit&&null===e.implicit),e.implicit=t,this},c.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},c.prototype.key=function(t){var e=this._baseState;return s(null===e.key),e.key=t,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(t){var e=this._baseState;return s(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},c.prototype.contains=function(t){var e=this._baseState;return s(null===e.use),e.contains=t,this},c.prototype._decode=function(t,e){var r=this._baseState;if(null===r.parent)return t.wrapResult(r.children[0]._decode(t,e));var n,i=r.default,o=!0,s=null;if(null!==r.key&&(s=t.enterKey(r.key)),r.optional){var u=null;if(null!==r.explicit?u=r.explicit:null!==r.implicit?u=r.implicit:null!==r.tag&&(u=r.tag),null!==u||r.any){if(o=this._peekTag(t,u,r.any),t.isError(o))return o}else{var f=t.save();try{null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e),o=!0}catch(t){o=!1}t.restore(f)}}if(r.obj&&o&&(n=t.enterObject()),o){if(null!==r.explicit){var c=this._decodeTag(t,r.explicit);if(t.isError(c))return c;t=c}var h=t.offset;if(null===r.use&&null===r.choice){var l;r.any&&(l=t.save());var d=this._decodeTag(t,null!==r.implicit?r.implicit:r.tag,r.any);if(t.isError(d))return d;r.any?i=t.raw(l):t=d}if(e&&e.track&&null!==r.tag&&e.track(t.path(),h,t.length,"tagged"),e&&e.track&&null!==r.tag&&e.track(t.path(),t.offset,t.length,"content"),r.any||(i=null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e)),t.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(t,e)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var p=new a(i);i=this._getUse(r.contains,t._reporterState.obj)._decode(p,e)}}return r.obj&&o&&(i=t.leaveObject(n)),null===r.key||null===i&&!0!==o?null!==s&&t.exitKey(s):t.leaveKey(s,r.key,i),i},c.prototype._decodeGeneric=function(t,e,r){var n=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,n.args[0],r):/str$/.test(t)?this._decodeStr(e,t,r):"objid"===t&&n.args?this._decodeObjid(e,n.args[0],n.args[1],r):"objid"===t?this._decodeObjid(e,null,null,r):"gentime"===t||"utctime"===t?this._decodeTime(e,t,r):"null_"===t?this._decodeNull(e,r):"bool"===t?this._decodeBool(e,r):"objDesc"===t?this._decodeStr(e,t,r):"int"===t||"enum"===t?this._decodeInt(e,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,e._reporterState.obj)._decode(e,r):e.error("unknown tag: "+t)},c.prototype._getUse=function(t,e){var r=this._baseState;return r.useDecoder=this._use(t,e),s(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(t,e){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some((function(o){var a=t.save(),s=r.choice[o];try{var u=s._decode(t,e);if(t.isError(u))return!1;n={type:o,value:u},i=!0}catch(e){return t.restore(a),!1}return!0}),this),i?n:t.error("Choice not matched")},c.prototype._createEncoderBuffer=function(t){return new o(t,this.reporter)},c.prototype._encode=function(t,e,r){var n=this._baseState;if(null===n.default||n.default!==t){var i=this._encodeValue(t,e,r);if(void 0!==i&&!this._skipDefault(i,e,r))return i}},c.prototype._encodeValue=function(t,e,r){var o=this._baseState;if(null===o.parent)return o.children[0]._encode(t,e||new i);var a=null;if(this.reporter=e,o.optional&&void 0===t){if(null===o.default)return;t=o.default}var s=null,u=!1;if(o.any)a=this._createEncoderBuffer(t);else if(o.choice)a=this._encodeChoice(t,e);else if(o.contains)s=this._getUse(o.contains,r)._encode(t,e),u=!0;else if(o.children)s=o.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,e,t);if(null===r._baseState.key)return e.error("Child should have a key");var i=e.enterKey(r._baseState.key);if("object"!==(0,n.default)(t))return e.error("Child expected, but input is not object");var o=r._encode(t[r._baseState.key],e,t);return e.leaveKey(i),o}),this).filter((function(t){return t})),s=this._createEncoderBuffer(s);else if("seqof"===o.tag||"setof"===o.tag){if(!o.args||1!==o.args.length)return e.error("Too many args for : "+o.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var f=this.clone();f._baseState.implicit=null,s=this._createEncoderBuffer(t.map((function(r){var n=this._baseState;return this._getUse(n.args[0],t)._encode(r,e)}),f))}else null!==o.use?a=this._getUse(o.use,r)._encode(t,e):(s=this._encodePrimitive(o.tag,t),u=!0);if(!o.any&&null===o.choice){var c=null!==o.implicit?o.implicit:o.tag,h=null===o.implicit?"universal":"context";null===c?null===o.use&&e.error("Tag could be omitted only for .use()"):null===o.use&&(a=this._encodeComposite(c,u,h,s))}return null!==o.explicit&&(a=this._encodeComposite(o.explicit,!1,"context",a)),a},c.prototype._encodeChoice=function(t,e){var r=this._baseState,n=r.choice[t.type];return n||s(!1,t.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(t.value,e)},c.prototype._encodePrimitive=function(t,e){var r=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&r.args)return this._encodeObjid(e,r.reverseArgs[0],r.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,r.args&&r.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},c.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},c.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},function(t,e,r){"use strict";var n=r(3);function i(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}e.Reporter=i,i.prototype.isError=function(t){return t instanceof o},i.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},i.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},i.prototype.enterKey=function(t){return this._reporterState.path.push(t)},i.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},i.prototype.leaveKey=function(t,e,r){var n=this._reporterState;this.exitKey(t),null!==n.obj&&(n.obj[e]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},i.prototype.leaveObject=function(t){var e=this._reporterState,r=e.obj;return e.obj=t,r},i.prototype.error=function(t){var e,r=this._reporterState,n=t instanceof o;if(e=n?t:new o(r.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!r.options.partial)throw e;return n||r.errors.push(e),e},i.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},n(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,r){"use strict";function n(t){var e={};return Object.keys(t).forEach((function(r){(0|r)==r&&(r|=0);var n=t[r];e[n]=r})),e}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=n(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=n(e.tag)},function(t,e,r){"use strict";(function(e){var n=r(0)(r(2)),i=r(101); - /*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ - function o(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i=0;u--)if(c[u]!==h[u])return!1;for(u=c.length-1;u>=0;u--)if(a=c[u],!w(t[a],e[a],r,n))return!1;return!0}(t,e,r,i))}return r?t===e:t==e}function _(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function k(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function M(t,e,r,n){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&y(i,r,"Missing expected exception"+n);var o="string"==typeof n,a=!t&&i&&!r;if((!t&&s.isError(i)&&o&&k(i,r)||a)&&y(i,r,"Got unwanted exception"+n),t&&i&&r&&!k(i,r)||!t&&i)throw i}d.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return b(v(t.actual),128)+" "+t.operator+" "+b(v(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=m(e),o=n.indexOf("\n"+i);if(o>=0){var a=n.indexOf("\n",o+1);n=n.substring(a+1)}this.stack=n}}},s.inherits(d.AssertionError,Error),d.fail=y,d.ok=g,d.equal=function(t,e,r){t!=e&&y(t,e,r,"==",d.equal)},d.notEqual=function(t,e,r){t==e&&y(t,e,r,"!=",d.notEqual)},d.deepEqual=function(t,e,r){w(t,e,!1)||y(t,e,r,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(t,e,r){w(t,e,!0)||y(t,e,r,"deepStrictEqual",d.deepStrictEqual)},d.notDeepEqual=function(t,e,r){w(t,e,!1)&&y(t,e,r,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=function t(e,r,n){w(e,r,!0)&&y(e,r,n,"notDeepStrictEqual",t)},d.strictEqual=function(t,e,r){t!==e&&y(t,e,r,"===",d.strictEqual)},d.notStrictEqual=function(t,e,r){t===e&&y(t,e,r,"!==",d.notStrictEqual)},d.throws=function(t,e,r){M(!0,t,e,r)},d.doesNotThrow=function(t,e,r){M(!1,t,e,r)},d.ifError=function(t){if(t)throw t},d.strict=i((function t(e,r){e||y(e,!0,r,"==",t)}),d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict;var S=Object.keys||function(t){var e=[];for(var r in t)u.call(t,r)&&e.push(r);return e}}).call(this,r(7))},function(t,e,r){"use strict"; - /* - object-assign - (c) Sindre Sorhus - @license MIT - */var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,s,u=a(t),f=1;f=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},o=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseTransaction=void 0;var a=o(r(105)),s=r(26),u=r(43),f=function(){function t(t){this.activeCapabilities=[],this.DEFAULT_CHAIN="mainnet",this.DEFAULT_HARDFORK="istanbul";var e=t.nonce,r=t.gasLimit,n=t.to,i=t.value,o=t.data,a=t.v,u=t.r,f=t.s,c=t.type;this._type=new s.BN(s.toBuffer(c)).toNumber();var h=s.toBuffer(""===n?"0x":n),l=s.toBuffer(""===a?"0x":a),d=s.toBuffer(""===u?"0x":u),p=s.toBuffer(""===f?"0x":f);this.nonce=new s.BN(s.toBuffer(""===e?"0x":e)),this.gasLimit=new s.BN(s.toBuffer(""===r?"0x":r)),this.to=h.length>0?new s.Address(h):void 0,this.value=new s.BN(s.toBuffer(""===i?"0x":i)),this.data=s.toBuffer(""===o?"0x":o),this.v=l.length>0?new s.BN(l):void 0,this.r=d.length>0?new s.BN(d):void 0,this.s=p.length>0?new s.BN(p):void 0,this._validateCannotExceedMaxInteger({nonce:this.nonce,gasLimit:this.gasLimit,value:this.value,r:this.r,s:this.s})}return Object.defineProperty(t.prototype,"transactionType",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),t.prototype.supports=function(t){return this.activeCapabilities.includes(t)},t.prototype.validate=function(t){void 0===t&&(t=!1);var e=[];return this.getBaseFee().gt(this.gasLimit)&&e.push("gasLimit is too low. given "+this.gasLimit+", need at least "+this.getBaseFee()),this.isSigned()&&!this.verifySignature()&&e.push("Invalid Signature"),t?e:0===e.length},t.prototype.getBaseFee=function(){var t=this.getDataFee().addn(this.common.param("gasPrices","tx"));return this.common.gteHardfork("homestead")&&this.toCreationAddress()&&t.iaddn(this.common.param("gasPrices","txCreation")),t},t.prototype.getDataFee=function(){for(var t=this.common.param("gasPrices","txDataZero"),e=this.common.param("gasPrices","txDataNonZero"),r=0,n=0;n-1&&this.activeCapabilities.splice(c,1)}return f},t.prototype._getCommon=function(t,e){var r;if(e){var n=new s.BN(s.toBuffer(e));if(t){if(!t.chainIdBN().eq(n))throw new Error("The chain ID does not match the chain ID of Common");return t.copy()}return a.default.isSupportedChainId(n)?new a.default({chain:n,hardfork:this.DEFAULT_HARDFORK}):a.default.forCustomChain(this.DEFAULT_CHAIN,{name:"custom-chain",networkId:n,chainId:n},this.DEFAULT_HARDFORK)}return null!==(r=null==t?void 0:t.copy())&&void 0!==r?r:new a.default({chain:this.DEFAULT_CHAIN,hardfork:this.DEFAULT_HARDFORK})},t.prototype._validateCannotExceedMaxInteger=function(t,e){var r,o;void 0===e&&(e=53);try{for(var a=n(Object.entries(t)),u=a.next();!u.done;u=a.next()){var f=i(u.value,2),c=f[0],h=f[1];if(53===e){if(null==h?void 0:h.gt(s.MAX_INTEGER))throw new Error(c+" cannot exceed MAX_INTEGER, given "+h)}else{if(256!==e)throw new Error("unimplemented bits value");if(null==h?void 0:h.gte(s.TWO_POW256))throw new Error(c+" must be less than 2^256, given "+h)}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}},t}();e.BaseTransaction=f},function(t,e,r){"use strict";(function(t){var n,i=r(0)(r(2)),o=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Hardfork=e.Chain=e.CustomChain=void 0;var u,f,c=r(23),h=r(450),l=r(26),d=r(451),p=r(458),m=r(471);!function(t){t.PolygonMainnet="polygon-mainnet",t.PolygonMumbai="polygon-mumbai",t.ArbitrumRinkebyTestnet="arbitrum-rinkeby-testnet",t.xDaiChain="x-dai-chain"}(u=e.CustomChain||(e.CustomChain={})),function(t){t[t.Mainnet=1]="Mainnet",t[t.Ropsten=3]="Ropsten",t[t.Rinkeby=4]="Rinkeby",t[t.Kovan=42]="Kovan",t[t.Goerli=5]="Goerli",t[t.Calaveras=123]="Calaveras"}(e.Chain||(e.Chain={})),function(t){t.Chainstart="chainstart",t.Homestead="homestead",t.Dao="dao",t.TangerineWhistle="tangerineWhistle",t.SpuriousDragon="spuriousDragon",t.Byzantium="byzantium",t.Constantinople="constantinople",t.Petersburg="petersburg",t.Istanbul="istanbul",t.MuirGlacier="muirGlacier",t.Berlin="berlin",t.London="london"}(f=e.Hardfork||(e.Hardfork={}));var b=function(e){function r(t){var r,n,i=e.call(this)||this;return i._supportedHardforks=[],i._eips=[],i._customChains=null!==(r=t.customChains)&&void 0!==r?r:[],i._chainParams=i.setChain(t.chain),i.DEFAULT_HARDFORK=null!==(n=i._chainParams.defaultHardfork)&&void 0!==n?n:f.Istanbul,i._hardfork=i.DEFAULT_HARDFORK,t.supportedHardforks&&(i._supportedHardforks=t.supportedHardforks),t.hardfork&&i.setHardfork(t.hardfork),t.eips&&i.setEIPs(t.eips),i}return o(r,e),r.custom=function(t,e){var n;void 0===e&&(e={});var i=null!==(n=e.baseChain)&&void 0!==n?n:"mainnet",o=a({},r._getChainParams(i));if(o.name="custom-chain","string"!=typeof t)return new r(a({chain:a(a({},o),t)},e));if(t===u.PolygonMainnet)return r.custom({name:u.PolygonMainnet,chainId:137,networkId:137});if(t===u.PolygonMumbai)return r.custom({name:u.PolygonMumbai,chainId:80001,networkId:80001});if(t===u.ArbitrumRinkebyTestnet)return r.custom({name:u.ArbitrumRinkebyTestnet,chainId:421611,networkId:421611});if(t===u.xDaiChain)return r.custom({name:u.xDaiChain,chainId:100,networkId:100});throw new Error("Custom chain "+t+" not supported")},r.forCustomChain=function(t,e,n,i){var o=r._getChainParams(t);return new r({chain:a(a({},o),e),hardfork:n,supportedHardforks:i})},r.isSupportedChainId=function(t){var e=d._getInitializedChains();return Boolean(e.names[t.toString()])},r._getChainParams=function(t,e){var r=d._getInitializedChains(e);if("number"==typeof t||l.BN.isBN(t)){if(t=t.toString(),r.names[t])return r[r.names[t]];throw new Error("Chain with ID "+t+" not supported")}if(r[t])return r[t];throw new Error("Chain with name "+t+" not supported")},r.prototype.setChain=function(t){var e,n;if("number"==typeof t||"string"==typeof t||l.BN.isBN(t))this._chainParams=r._getChainParams(t,this._customChains);else{if("object"!==(0,i.default)(t))throw new Error("Wrong input format");if(this._customChains.length>0)throw new Error("Chain must be a string, number, or BN when initialized with customChains passed in");try{for(var o=s(["networkId","genesis","hardforks","bootstrapNodes"]),a=o.next();!a.done;a=o.next()){var u=a.value;if(void 0===t[u])throw new Error("Missing required chain parameter: "+u)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}this._chainParams=t}return this._chainParams},r.prototype.setHardfork=function(t){var e,r;if(!this._isSupportedHardfork(t))throw new Error("Hardfork "+t+" not set as supported in supportedHardforks");var n=!1;try{for(var i=s(p.hardforks),o=i.next();!o.done;o=i.next()){o.value[0]===t&&(this._hardfork!==t&&(this._hardfork=t,this.emit("hardforkChanged",t)),n=!0)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}if(!n)throw new Error("Hardfork with name "+t+" not supported")},r.prototype.getHardforkByBlockNumber=function(t){var e,r;t=l.toType(t,l.TypeOutput.BN);var n=f.Chainstart;try{for(var i=s(this.hardforks()),o=i.next();!o.done;o=i.next()){var a=o.value;null!==a.block&&(t.gte(new l.BN(a.block))&&(n=a.name))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n},r.prototype.setHardforkByBlockNumber=function(t){t=l.toType(t,l.TypeOutput.BN);var e=this.getHardforkByBlockNumber(t);return this.setHardfork(e),e},r.prototype._chooseHardfork=function(t,e){if(void 0===e&&(e=!0),t){if(e&&!this._isSupportedHardfork(t))throw new Error("Hardfork "+t+" not set as supported in supportedHardforks")}else t=this._hardfork;return t},r.prototype._getHardfork=function(t){var e,r,n=this.hardforks();try{for(var i=s(n),o=i.next();!o.done;o=i.next()){var a=o.value;if(a.name===t)return a}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}throw new Error("Hardfork "+t+" not defined for chain "+this.chainName())},r.prototype._isSupportedHardfork=function(t){var e,r;if(!(this._supportedHardforks.length>0))return!0;try{for(var n=s(this._supportedHardforks),i=n.next();!i.done;i=n.next()){if(t===i.value)return!0}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return!1},r.prototype.setEIPs=function(t){var e,r,n=this;void 0===t&&(t=[]);var i=function(e){if(!(e in m.EIPs))throw new Error(e+" not supported");var r=o.gteHardfork(m.EIPs[e].minimumHardfork);if(!r)throw new Error(e+" cannot be activated on hardfork "+o.hardfork()+", minimumHardfork: "+r);m.EIPs[e].requiredEIPs&&m.EIPs[e].requiredEIPs.forEach((function(r){if(!t.includes(r)&&!n.isActivatedEIP(r))throw new Error(e+" requires EIP "+r+", but is not included in the EIP list")}))},o=this;try{for(var a=s(t),u=a.next();!u.done;u=a.next()){i(u.value)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}this._eips=t},r.prototype.param=function(t,e){var r,n,i=null;try{for(var o=s(this._eips),a=o.next();!a.done;a=o.next()){var u=a.value;if(null!==(i=this.paramByEIP(t,e,u)))return i}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return this.paramByHardfork(t,e,this._hardfork)},r.prototype.paramByHardfork=function(t,e,r){var n,i,o,a;r=this._chooseHardfork(r);var u=null;try{for(var f=s(p.hardforks),c=f.next();!c.done;c=f.next()){var h=c.value;if(h[1].hasOwnProperty("eips")){var l=h[1].eips;try{for(var d=(o=void 0,s(l)),m=d.next();!m.done;m=d.next()){var b=m.value,v=this.paramByEIP(t,e,b);u=null!==v?v:u}}catch(t){o={error:t}}finally{try{m&&!m.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}}else{if(!h[1][t])throw new Error("Topic "+t+" not defined");void 0!==h[1][t][e]&&(u=h[1][t][e].v)}if(h[0]===r)break}}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}return u},r.prototype.paramByEIP=function(t,e,r){if(!(r in m.EIPs))throw new Error(r+" not supported");var n=m.EIPs[r];if(!(t in n))throw new Error("Topic "+t+" not defined");return void 0===n[t][e]?null:n[t][e].v},r.prototype.paramByBlock=function(t,e,r){var n=this.activeHardforks(r),i=n[n.length-1].name;return this.paramByHardfork(t,e,i)},r.prototype.isActivatedEIP=function(t){var e,r;if(this.eips().includes(t))return!0;try{for(var n=s(p.hardforks),i=n.next();!i.done;i=n.next()){var o=i.value[1];if(this.gteHardfork(o.name)&&"eips"in o&&o.eips.includes(t))return!0}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return!1},r.prototype.hardforkIsActiveOnBlock=function(t,e,r){var n;void 0===r&&(r={}),e=l.toType(e,l.TypeOutput.BN);var i=null!==(n=r.onlySupported)&&void 0!==n&&n;t=this._chooseHardfork(t,i);var o=this.hardforkBlockBN(t);return!(!o||!e.gte(o))},r.prototype.activeOnBlock=function(t,e){return this.hardforkIsActiveOnBlock(null,t,e)},r.prototype.hardforkGteHardfork=function(t,e,r){var n,i;void 0===r&&(r={});var o,a=void 0!==r.onlyActive&&r.onlyActive;t=this._chooseHardfork(t,r.onlySupported),o=a?this.activeHardforks(null,r):this.hardforks();var u=-1,f=-1,c=0;try{for(var h=s(o),l=h.next();!l.done;l=h.next()){var d=l.value;d.name===t&&(u=c),d.name===e&&(f=c),c+=1}}catch(t){n={error:t}}finally{try{l&&!l.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}return u>=f&&-1!==f},r.prototype.gteHardfork=function(t,e){return this.hardforkGteHardfork(null,t,e)},r.prototype.hardforkIsActiveOnChain=function(t,e){var r,n,i;void 0===e&&(e={});var o=null!==(i=e.onlySupported)&&void 0!==i&&i;t=this._chooseHardfork(t,o);try{for(var a=s(this.hardforks()),u=a.next();!u.done;u=a.next()){var f=u.value;if(f.name===t&&null!==f.block)return!0}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return!1},r.prototype.activeHardforks=function(t,e){var r,n;void 0===e&&(e={});var i=[],o=this.hardforks();try{for(var a=s(o),u=a.next();!u.done;u=a.next()){var f=u.value;if(null!==f.block){if(null!=t&&t0)return r[r.length-1].name;throw new Error("No (supported) active hardfork found")},r.prototype.hardforkBlock=function(t){return l.toType(this.hardforkBlockBN(t),l.TypeOutput.Number)},r.prototype.hardforkBlockBN=function(t){return t=this._chooseHardfork(t,!1),new l.BN(this._getHardfork(t).block)},r.prototype.isHardforkBlock=function(t,e){return t=l.toType(t,l.TypeOutput.BN),e=this._chooseHardfork(e,!1),this.hardforkBlockBN(e).eq(t)},r.prototype.nextHardforkBlock=function(t){var e=this.nextHardforkBlockBN(t);return null===e?null:l.toType(e,l.TypeOutput.Number)},r.prototype.nextHardforkBlockBN=function(t){t=this._chooseHardfork(t,!1);var e=this.hardforkBlockBN(t);return this.hardforks().reduce((function(t,r){var n=new l.BN(r.block);return n.gt(e)&&null===t?n:t}),null)},r.prototype.isNextHardforkBlock=function(t,e){t=l.toType(t,l.TypeOutput.BN),e=this._chooseHardfork(e,!1);var r=this.nextHardforkBlockBN(e);return null!==r&&r.eq(t)},r.prototype._calcForkHash=function(e){var r,n,i=t.from(this.genesis().hash.substr(2),"hex"),o=t.alloc(0),a=0;try{for(var u=s(this.hardforks()),f=u.next();!f.done;f=u.next()){var c=f.value,d=c.block;if(0!==d&&null!==d&&d!==a){var p=t.from(d.toString(16).padStart(16,"0"),"hex");o=t.concat([o,p])}if(c.name===e)break;a=d}}catch(t){r={error:t}}finally{try{f&&!f.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}var m=t.concat([i,o]);return"0x"+l.intToBuffer(h.buf(m)>>>0).toString("hex")},r.prototype.forkHash=function(t){t=this._chooseHardfork(t,!1);var e=this._getHardfork(t);if(null===e.block){throw new Error("No fork hash calculation possible for non-applied or future hardfork")}return void 0!==e.forkHash?e.forkHash:this._calcForkHash(t)},r.prototype.hardforkForForkHash=function(t){var e=this.hardforks().filter((function(e){return e.forkHash===t}));return e.length>=1?e[e.length-1]:null},r.prototype.genesis=function(){return this._chainParams.genesis},r.prototype.hardforks=function(){return this._chainParams.hardforks},r.prototype.bootstrapNodes=function(){return this._chainParams.bootstrapNodes},r.prototype.dnsNetworks=function(){return this._chainParams.dnsNetworks},r.prototype.hardfork=function(){return this._hardfork},r.prototype.chainId=function(){return l.toType(this.chainIdBN(),l.TypeOutput.Number)},r.prototype.chainIdBN=function(){return new l.BN(this._chainParams.chainId)},r.prototype.chainName=function(){return this._chainParams.name},r.prototype.networkId=function(){return l.toType(this.networkIdBN(),l.TypeOutput.Number)},r.prototype.networkIdBN=function(){return new l.BN(this._chainParams.networkId)},r.prototype.eips=function(){return this._eips},r.prototype.consensusType=function(){return this._chainParams.consensus.type},r.prototype.consensusAlgorithm=function(){return this._chainParams.consensus.algorithm},r.prototype.consensusConfig=function(){return this._chainParams.consensus[this.consensusAlgorithm()]},r.prototype.copy=function(){return Object.assign(Object.create(Object.getPrototypeOf(this)),this)},r}(c.EventEmitter);e.default=b}).call(this,r(1).Buffer)},function(t,e,r){"use strict";(function(t){var n=r(0)(r(2)),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),s=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&e._extend(n,r),g(n.showHidden)&&(n.showHidden=!1),g(n.depth)&&(n.depth=2),g(n.colors)&&(n.colors=!1),g(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=f),h(n,t,n.depth)}function f(t,e){var r=u.styles[e];return r?"["+u.colors[r][0]+"m"+t+"["+u.colors[r][1]+"m":t}function c(t,e){return t}function h(t,r,n){if(t.customInspect&&r&&S(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return y(i)||(i=h(t,i,n)),i}var o=function(t,e){if(g(e))return t.stylize("undefined","undefined");if(y(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(v(e))return t.stylize(""+e,"number");if(m(e))return t.stylize(""+e,"boolean");if(b(e))return t.stylize("null","null")}(t,r);if(o)return o;var a=Object.keys(r),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),M(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return l(r);if(0===a.length){if(S(r)){var u=r.name?": "+r.name:"";return t.stylize("[Function"+u+"]","special")}if(w(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(k(r))return t.stylize(Date.prototype.toString.call(r),"date");if(M(r))return l(r)}var f,c="",_=!1,A=["{","}"];(p(r)&&(_=!0,A=["[","]"]),S(r))&&(c=" [Function"+(r.name?": "+r.name:"")+"]");return w(r)&&(c=" "+RegExp.prototype.toString.call(r)),k(r)&&(c=" "+Date.prototype.toUTCString.call(r)),M(r)&&(c=" "+l(r)),0!==a.length||_&&0!=r.length?n<0?w(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),f=_?function(t,e,r,n,i){for(var o=[],a=0,s=e.length;a=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(f,c,A)):A[0]+c+A[1]}function l(t){return"["+Error.prototype.toString.call(t)+"]"}function d(t,e,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),P(n,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=b(r)?h(t,u.value,null):h(t,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),g(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function p(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function b(t){return null===t}function v(t){return"number"==typeof t}function y(t){return"string"==typeof t}function g(t){return void 0===t}function w(t){return _(t)&&"[object RegExp]"===A(t)}function _(t){return"object"===(0,n.default)(t)&&null!==t}function k(t){return _(t)&&"[object Date]"===A(t)}function M(t){return _(t)&&("[object Error]"===A(t)||t instanceof Error)}function S(t){return"function"==typeof t}function A(t){return Object.prototype.toString.call(t)}function x(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(r){if(g(a)&&(a=t.env.NODE_DEBUG||""),r=r.toUpperCase(),!s[r])if(new RegExp("\\b"+r+"\\b","i").test(a)){var n=t.pid;s[r]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",r,n,t)}}else s[r]=function(){};return s[r]},e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=p,e.isBoolean=m,e.isNull=b,e.isNullOrUndefined=function(t){return null==t},e.isNumber=v,e.isString=y,e.isSymbol=function(t){return"symbol"===(0,n.default)(t)},e.isUndefined=g,e.isRegExp=w,e.isObject=_,e.isDate=k,e.isError=M,e.isFunction=S,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"===(0,n.default)(t)||void 0===t},e.isBuffer=r(207);var E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(){var t=new Date,e=[x(t.getHours()),x(t.getMinutes()),x(t.getSeconds())].join(":");return[t.getDate(),E[t.getMonth()],e].join(" ")}function P(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",O(),e.format.apply(e,arguments))},e.inherits=r(208),e._extend=function(t,e){if(!e||!_(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var B="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(B&&t[B]){var e;if("function"!=typeof(e=t[B]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,B,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],o=0;o7&&t[r].toUpperCase()!==t[r]||parseInt(e[r],16)<=7&&t[r].toLowerCase()!==t[r])return!1;return!0},p=function(t){var e="";t=(t=(t=(t=(t=a.encode(t)).replace(/^(?:\u0000)*/,"")).split("").reverse().join("")).replace(/^(?:\u0000)*/,"")).split("").reverse().join("");for(var r=0;r>>4).toString(16)),e.push((15&t[r]).toString(16));return"0x"+e.join("")},isHex:w,isHexStrict:g,stripHexPrefix:function(t){return 0!==t&&w(t)?t.replace(/^(-)?0x/i,"$1"):t},leftPad:function(t,e,r){var n=/^0x/i.test(t)||"number"==typeof t,i=e-(t=t.toString(16).replace(/^0x/i,"")).length+1>=0?e-t.length+1:0;return(n?"0x":"")+new Array(i).join(r||"0")+t},rightPad:function(t,e,r){var n=/^0x/i.test(t)||"number"==typeof t,i=e-(t=t.toString(16).replace(/^0x/i,"")).length+1>=0?e-t.length+1:0;return(n?"0x":"")+t+new Array(i).join(r||"0")},toTwosComplement:function(t){return"0x"+h(t).toTwos(256).toString(16,64)},sha3:k,sha3Raw:function(t){return null===(t=k(t))?_:t},toNumber:function(t){return"number"==typeof t?t:m(y(t))}}}).call(this,r(1).Buffer)},function(t,e,r){"use strict";var n=r(0),i=n(r(5)),o=n(r(9)),a=r(16),s=r(8),u=function(t){var e="A".charCodeAt(0),r="Z".charCodeAt(0);return(t=(t=t.toUpperCase()).substr(4)+t.substr(0,4)).split("").map((function(t){var n=t.charCodeAt(0);return n>=e&&n<=r?n-e+10:t})).join("")},f=function(t){for(var e,r=t;r.length>2;)e=r.slice(0,9),r=parseInt(e,10)%97+r.slice(e.length);return parseInt(r,10)%97},c=function(){function t(e){(0,i.default)(this,t),this._iban=e}return(0,o.default)(t,[{key:"isValid",value:function(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&1===f(u(this._iban))}},{key:"isDirect",value:function(){return 34===this._iban.length||35===this._iban.length}},{key:"isIndirect",value:function(){return 20===this._iban.length}},{key:"checksum",value:function(){return this._iban.substr(2,2)}},{key:"institution",value:function(){return this.isIndirect()?this._iban.substr(7,4):""}},{key:"client",value:function(){return this.isIndirect()?this._iban.substr(11):""}},{key:"toAddress",value:function(){if(this.isDirect()){var t=this._iban.substr(4),e=new s(t,36);return a.toChecksumAddress(e.toString(16,20))}return""}},{key:"toString",value:function(){return this._iban}}],[{key:"toAddress",value:function(e){if(!(e=new t(e)).isDirect())throw new Error("IBAN is indirect and can't be converted");return e.toAddress()}},{key:"toIban",value:function(e){return t.fromAddress(e).toString()}},{key:"fromAddress",value:function(e){if(!a.isAddress(e))throw new Error("Provided address is not a valid address: "+e);e=e.replace("0x","").replace("0X","");var r=function(t,e){for(var r=t;r.length<2*e;)r="0"+r;return r}(new s(e,16).toString(36),15);return t.fromBban(r.toUpperCase())}},{key:"fromBban",value:function(e){return new t("XE"+("0"+(98-f(u("XE00"+e)))).slice(-2)+e)}},{key:"createIndirect",value:function(e){return t.fromBban("ETH"+e.institution+e.identifier)}},{key:"isValid",value:function(e){return new t(e).isValid()}}]),t}();t.exports=c},function(t,e,r){"use strict";var n={messageId:0,toPayload:function(t,e){if(!t)throw new Error('JSONRPC method should be specified for params: "'+JSON.stringify(e)+'"!');return n.messageId++,{jsonrpc:"2.0",id:n.messageId,method:t,params:e||[]}},isValidResponse:function(t){return Array.isArray(t)?t.every(e):e(t);function e(t){return!(!t||t.error||"2.0"!==t.jsonrpc||"number"!=typeof t.id&&"string"!=typeof t.id||void 0===t.result)}},toBatchPayload:function(t){return t.map((function(t){return n.toPayload(t.method,t.params)}))}};t.exports=n},function(t,e,r){"use strict";(function(t,n){var i,o=r(0)(r(2));!function(a){var s="object"==(0,o.default)(e)&&e&&!e.nodeType&&e,u="object"==(0,o.default)(t)&&t&&!t.nodeType&&t,f="object"==(void 0===n?"undefined":(0,o.default)(n))&&n;f.global!==f&&f.window!==f&&f.self!==f||(a=f);var c,h,l=2147483647,d=/^xn--/,p=/[^\x20-\x7E]/,m=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},v=Math.floor,y=String.fromCharCode;function g(t){throw new RangeError(b[t])}function w(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function _(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+w((t=t.replace(m,".")).split("."),e).join(".")}function k(t){for(var e,r,n=[],i=0,o=t.length;i=55296&&e<=56319&&i65535&&(e+=y((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=y(t)})).join("")}function S(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function A(t,e,r){var n=0;for(t=r?v(t/700):t>>1,t+=v(t/e);t>455;n+=36)t=v(t/35);return v(n+36*t/(t+38))}function x(t){var e,r,n,i,o,a,s,u,f,c,h,d=[],p=t.length,m=0,b=128,y=72;for((r=t.lastIndexOf("-"))<0&&(r=0),n=0;n=128&&g("not-basic"),d.push(t.charCodeAt(n));for(i=r>0?r+1:0;i=p&&g("invalid-input"),((u=(h=t.charCodeAt(i++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:36)>=36||u>v((l-m)/a))&&g("overflow"),m+=u*a,!(u<(f=s<=y?1:s>=y+26?26:s-y));s+=36)a>v(l/(c=36-f))&&g("overflow"),a*=c;y=A(m-o,e=d.length+1,0==o),v(m/e)>l-b&&g("overflow"),b+=v(m/e),m%=e,d.splice(m++,0,b)}return M(d)}function E(t){var e,r,n,i,o,a,s,u,f,c,h,d,p,m,b,w=[];for(d=(t=k(t)).length,e=128,r=0,o=72,a=0;a=e&&hv((l-r)/(p=n+1))&&g("overflow"),r+=(s-e)*p,e=s,a=0;al&&g("overflow"),h==e){for(u=r,f=36;!(u<(c=f<=o?1:f>=o+26?26:f-o));f+=36)b=u-c,m=36-c,w.push(y(S(c+b%m,0))),u=v(b/m);w.push(y(S(u,0))),o=A(r,p,n==i),r=0,++n}++r,++e}return w.join("")}if(c={version:"1.4.1",ucs2:{decode:k,encode:M},decode:x,encode:E,toASCII:function(t){return _(t,(function(t){return p.test(t)?"xn--"+E(t):t}))},toUnicode:function(t){return _(t,(function(t){return d.test(t)?x(t.slice(4).toLowerCase()):t}))}},"object"==(0,o.default)(r(72))&&r(72))void 0===(i=function(){return c}.call(e,r,e,t))||(t.exports=i);else if(s&&u)if(t.exports==s)u.exports=c;else for(h in c)c.hasOwnProperty(h)&&(s[h]=c[h]);else a.punycode=c}(void 0)}).call(this,r(17)(t),r(7))},function(t,e,r){"use strict";(function(t){e.fetch=s(t.fetch)&&s(t.ReadableStream),e.writableStream=s(t.WritableStream),e.abortController=s(t.AbortController),e.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),e.blobConstructor=!0}catch(t){}var r;function n(){if(void 0!==r)return r;if(t.XMLHttpRequest){r=new t.XMLHttpRequest;try{r.open("GET",t.XDomainRequest?"/":"https://example.com")}catch(t){r=null}}else r=null;return r}function i(t){var e=n();if(!e)return!1;try{return e.responseType=t,e.responseType===t}catch(t){}return!1}var o=void 0!==t.ArrayBuffer,a=o&&s(t.ArrayBuffer.prototype.slice);function s(t){return"function"==typeof t}e.arraybuffer=e.fetch||o&&i("arraybuffer"),e.msstream=!e.fetch&&a&&i("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&o&&i("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||!!n()&&s(n().overrideMimeType),e.vbArray=s(t.VBArray),r=null}).call(this,r(7))},function(t,e,r){"use strict";(function(t,n,i){var o=r(115),a=r(3),s=r(46),u=e.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},f=e.IncomingMessage=function(e,r,a,u){var f=this;if(s.Readable.call(f),f._mode=a,f.headers={},f.rawHeaders=[],f.trailers={},f.rawTrailers=[],f.on("end",(function(){t.nextTick((function(){f.emit("close")}))})),"fetch"===a){if(f._fetchResponse=r,f.url=r.url,f.statusCode=r.status,f.statusMessage=r.statusText,r.headers.forEach((function(t,e){f.headers[e.toLowerCase()]=t,f.rawHeaders.push(e,t)})),o.writableStream){var c=new WritableStream({write:function(t){return new Promise((function(e,r){f._destroyed?r():f.push(new i(t))?e():f._resumeFetch=e}))},close:function(){n.clearTimeout(u),f._destroyed||f.push(null)},abort:function(t){f._destroyed||f.emit("error",t)}});try{return void r.body.pipeTo(c).catch((function(t){n.clearTimeout(u),f._destroyed||f.emit("error",t)}))}catch(t){}}var h=r.body.getReader();!function t(){h.read().then((function(e){if(!f._destroyed){if(e.done)return n.clearTimeout(u),void f.push(null);f.push(new i(e.value)),t()}})).catch((function(t){n.clearTimeout(u),f._destroyed||f.emit("error",t)}))}()}else{if(f._xhr=e,f._pos=0,f.url=e.responseURL,f.statusCode=e.status,f.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(t){var e=t.match(/^([^:]+):\s*(.*)/);if(e){var r=e[1].toLowerCase();"set-cookie"===r?(void 0===f.headers[r]&&(f.headers[r]=[]),f.headers[r].push(e[2])):void 0!==f.headers[r]?f.headers[r]+=", "+e[2]:f.headers[r]=e[2],f.rawHeaders.push(e[1],e[2])}})),f._charset="x-user-defined",!o.overrideMimeType){var l=f.rawHeaders["mime-type"];if(l){var d=l.match(/;\s*charset=([^;])(;|$)/);d&&(f._charset=d[1].toLowerCase())}f._charset||(f._charset="utf-8")}}};a(f,s.Readable),f.prototype._read=function(){var t=this._resumeFetch;t&&(this._resumeFetch=null,t())},f.prototype._onXHRProgress=function(){var t=this,e=t._xhr,r=null;switch(t._mode){case"text:vbarray":if(e.readyState!==u.DONE)break;try{r=new n.VBArray(e.responseBody).toArray()}catch(t){}if(null!==r){t.push(new i(r));break}case"text":try{r=e.responseText}catch(e){t._mode="text:vbarray";break}if(r.length>t._pos){var o=r.substr(t._pos);if("x-user-defined"===t._charset){for(var a=new i(o.length),s=0;st._pos&&(t.push(new i(new Uint8Array(f.result.slice(t._pos)))),t._pos=f.result.byteLength)},f.onload=function(){t.push(null)},f.readAsArrayBuffer(r)}t._xhr.readyState===u.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(this,r(6),r(7),r(1).Buffer)},function(t,e,r){"use strict";(function(e,n){var i=r(56);t.exports=g;var o,a=r(107);g.ReadableState=y;r(23).EventEmitter;var s=function(t,e){return t.listeners(e).length},u=r(118),f=r(4).Buffer,c=e.Uint8Array||function(){};var h=Object.create(r(47));h.inherits=r(3);var l=r(238),d=void 0;d=l&&l.debuglog?l.debuglog("stream"):function(){};var p,m=r(239),b=r(119);h.inherits(g,u);var v=["error","close","destroy","pause","resume"];function y(t,e){t=t||{};var n=e instanceof(o=o||r(28));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=r(29).StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function g(t){if(o=o||r(28),!(this instanceof g))return new g(t);this._readableState=new y(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function w(t,e,r,n,i){var o,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,M(t)}(t,a)):(i||(o=function(t,e){var r;n=e,f.isBuffer(n)||n instanceof c||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,e)),o?t.emit("error",o):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===f.prototype||(e=function(t){return f.from(t)}(e)),n?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):_(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?_(t,a,e,!1):A(t,a)):_(t,a,e,!1))):n||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=8388608?t=8388608:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function M(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(S,t):S(t))}function S(t){d("emit readable"),t.emit("readable"),P(t)}function A(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(x,t,e))}function x(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;to.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=f.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,a),0===(t-=a)){a===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function T(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(R,e,t))}function R(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function I(t,e){for(var r=0,n=t.length;r=e.highWaterMark||e.ended))return d("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?T(this):M(this),null;if(0===(t=k(t,e))&&e.ended)return 0===e.length&&T(this),null;var n,i=e.needReadable;return d("need readable",i),(0===e.length||e.length-t0?B(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&T(this)),null!==n&&this.emit("data",n),n},g.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(t,e){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,d("pipe count=%d opts=%j",o.pipesCount,e);var u=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?c:g;function f(e,n){d("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),t.removeListener("close",v),t.removeListener("finish",y),t.removeListener("drain",h),t.removeListener("error",b),t.removeListener("unpipe",f),r.removeListener("end",c),r.removeListener("end",g),r.removeListener("data",m),l=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||h())}function c(){d("onend"),t.end()}o.endEmitted?i.nextTick(u):r.once("end",u),t.on("unpipe",f);var h=function(t){return function(){var e=t._readableState;d("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,P(t))}}(r);t.on("drain",h);var l=!1;var p=!1;function m(e){d("ondata"),p=!1,!1!==t.write(e)||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==I(o.pipes,t))&&!l&&(d("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function b(e){d("onerror",e),g(),t.removeListener("error",b),0===s(t,"error")&&t.emit("error",e)}function v(){t.removeListener("finish",y),g()}function y(){d("onfinish"),t.removeListener("close",v),g()}function g(){d("unpipe"),r.unpipe(t)}return r.on("data",m),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",b),t.once("close",v),t.once("finish",y),t.emit("pipe",r),o.flowing||(d("pipe resume"),r.resume()),t},g.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},r(241),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||void 0,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||void 0}).call(this,r(7))},function(t,e,r){"use strict";t.exports=a;var n=r(28),i=Object.create(r(47));function o(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.lengtht.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&(10===arguments[0]?d||(d=!0,h.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?h.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",u.Logger.errors.UNEXPECTED_ARGUMENT,{}):h.throwError("BigNumber.toString does not accept parameters",u.Logger.errors.UNEXPECTED_ARGUMENT,{})),v(this).toString(10)}},{key:"toHexString",value:function(){return this._hex}},{key:"toJSON",value:function(t){return{type:"BigNumber",hex:this.toHexString()}}}],[{key:"from",value:function(e){if(e instanceof t)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new t(l,m(e)):e.match(/^-?[0-9]+$/)?new t(l,m(new c(e))):h.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&y("underflow","BigNumber.from",e),(e>=9007199254740991||e<=-9007199254740991)&&y("overflow","BigNumber.from",e),t.from(String(e));var r=e;if("bigint"==typeof r)return t.from(r.toString());if((0,s.isBytes)(r))return t.from((0,s.hexlify)(r));if(r)if(r.toHexString){var n=r.toHexString();if("string"==typeof n)return t.from(n)}else{var i=r._hex;if(null==i&&"BigNumber"===r.type&&(i=r.hex),"string"==typeof i&&((0,s.isHexString)(i)||"-"===i[0]&&(0,s.isHexString)(i.substring(1))))return t.from(i)}return h.throwArgumentError("invalid BigNumber value","value",e)}},{key:"isBigNumber",value:function(t){return!(!t||!t._isBigNumber)}}]),t}();function m(t){if("string"!=typeof t)return m(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&h.throwArgumentError("invalid hex","value",t),"0x00"===(t=m(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function b(t){return p.from(m(t))}function v(t){var e=p.from(t).toHexString();return"-"===e[0]?new c("-"+e.substring(3),16):new c(e.substring(2),16)}function y(t,e,r){var n={fault:t,operation:e};return null!=r&&(n.value=r),h.throwError(t,u.Logger.errors.NUMERIC_FAULT,n)}e.BigNumber=p},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0;e.version="bignumber/5.1.1"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encode=function(t){return(0,n.hexlify)(function t(e){if(Array.isArray(e)){var r=[];if(e.forEach((function(e){r=r.concat(t(e))})),r.length<=55)return r.unshift(192+r.length),r;var i=s(r.length);return i.unshift(247+i.length),i.concat(r)}(0,n.isBytesLike)(e)||a.throwArgumentError("RLP object must be BytesLike","object",e);var o=Array.prototype.slice.call((0,n.arrayify)(e));if(1===o.length&&o[0]<=127)return o;if(o.length<=55)return o.unshift(128+o.length),o;var u=s(o.length);return u.unshift(183+u.length),u.concat(o)}(t))},e.decode=function(t){var e=(0,n.arrayify)(t),r=c(e,0);r.consumed!==e.length&&a.throwArgumentError("invalid rlp data","data",t);return r.result};var n=r(11),i=r(12),o=r(263),a=new i.Logger(o.version);function s(t){for(var e=[];t;)e.unshift(255&t),t>>=8;return e}function u(t,e,r){for(var n=0,i=0;ie+1+n&&a.throwError("child data too short",i.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:o}}function c(t,e){if(0===t.length&&a.throwError("data too short",i.Logger.errors.BUFFER_OVERRUN,{}),t[e]>=248){var r=t[e]-247;e+1+r>t.length&&a.throwError("data short segment too short",i.Logger.errors.BUFFER_OVERRUN,{});var o=u(t,e+1,r);return e+1+r+o>t.length&&a.throwError("data long segment too short",i.Logger.errors.BUFFER_OVERRUN,{}),f(t,e,e+1+r,r+o)}if(t[e]>=192){var s=t[e]-192;return e+1+s>t.length&&a.throwError("data array too short",i.Logger.errors.BUFFER_OVERRUN,{}),f(t,e,e+1,s)}if(t[e]>=184){var c=t[e]-183;e+1+c>t.length&&a.throwError("data array too short",i.Logger.errors.BUFFER_OVERRUN,{});var h=u(t,e+1,c);return e+1+c+h>t.length&&a.throwError("data array too short",i.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+c+h,result:(0,n.hexlify)(t.slice(e+1+c,e+1+c+h))}}if(t[e]>=128){var l=t[e]-128;return e+1+l>t.length&&a.throwError("data too short",i.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+l,result:(0,n.hexlify)(t.slice(e+1,e+1+l))}}return{consumed:1,result:(0,n.hexlify)(t[e])}}},function(t,e,r){"use strict";var n=r(21).rotr32;function i(t,e,r){return t&e^~t&r}function o(t,e,r){return t&e^t&r^e&r}function a(t,e,r){return t^e^r}e.ft_1=function(t,e,r,n){return 0===t?i(e,r,n):1===t||3===t?a(e,r,n):2===t?o(e,r,n):void 0},e.ch32=i,e.maj32=o,e.p32=a,e.s0_256=function(t){return n(t,2)^n(t,13)^n(t,22)},e.s1_256=function(t){return n(t,6)^n(t,11)^n(t,25)},e.g0_256=function(t){return n(t,7)^n(t,18)^t>>>3},e.g1_256=function(t){return n(t,17)^n(t,19)^t>>>10}},function(t,e,r){"use strict";var n=r(21),i=r(49),o=r(129),a=r(18),s=n.sum32,u=n.sum32_4,f=n.sum32_5,c=o.ch32,h=o.maj32,l=o.s0_256,d=o.s1_256,p=o.g0_256,m=o.g1_256,b=i.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}n.inherits(y,b),t.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n0&&t.topics.length!==n+1&&(e={anonymous:!0,inputs:[]})}var i=e.anonymous?t.topics:t.topics.slice(1);return r.returnValues=m.decodeLog(e.inputs,t.data,i),delete r.returnValues.__length__,r.event=e.name,r.signature=e.anonymous||!t.topics[0]?null:t.topics[0],r.raw={data:r.data,topics:r.topics},delete r.data,delete r.topics,r},b.prototype._encodeMethodABI=function(){var t=this._method.signature,e=this.arguments||[],r=!1,n=this._parent.options.jsonInterface.filter((function(e){return"constructor"===t&&e.type===t||(e.signature===t||e.signature===t.replace("0x","")||e.name===t)&&"function"===e.type})).map((function(t){var n=Array.isArray(t.inputs)?t.inputs.length:0;if(n!==e.length)throw new Error("The number of arguments is not matching the methods required number. You need to pass "+n+" arguments.");return"function"===t.type&&(r=t.signature),Array.isArray(t.inputs)?t.inputs:[]})).map((function(t){return m.encodeParameters(t,e).replace("0x","")}))[0]||"";if("constructor"===t){if(!this._deployData)throw new Error("The contract has no contract data option set. This is necessary to append the constructor parameters.");return this._deployData.startsWith("0x")||(this._deployData="0x"+this._deployData),this._deployData+n}var i=r?r+n:n;if(!i)throw new Error("Couldn't find a matching contract method named \""+this._method.name+'".');return i},b.prototype._decodeMethodReturn=function(t,e){if(!e)return null;e=e.length>=2?e.slice(2):e;var r=m.decodeParameters(t,e);return 1===r.__length__?r[0]:(delete r.__length__,r)},b.prototype.deploy=function(t,e){if((t=t||{}).arguments=t.arguments||[],!(t=this._getOrSetDefaultOptions(t)).data){if("function"==typeof e)return e(d.ContractMissingDeployDataError());throw d.ContractMissingDeployDataError()}var r=this.options.jsonInterface.find((function(t){return"constructor"===t.type}))||{};return r.signature="constructor",this._createTxObject.apply({method:r,parent:this,deployData:t.data,_ethAccounts:this.constructor._ethAccounts},t.arguments)},b.prototype._generateEventOptions=function(){var t=Array.prototype.slice.call(arguments),e=this._getCallback(t),r="object"===(!!t[t.length-1]&&(0,o.default)(t[t.length-1]))?t.pop():{},n="string"==typeof t[0]?t[0]:"allevents",i="allevents"===n.toLowerCase()?{name:"ALLEVENTS",jsonInterface:this.options.jsonInterface}:this.options.jsonInterface.find((function(t){return"event"===t.type&&(t.name===n||t.signature==="0x"+n.replace("0x",""))}));if(!i)throw d.ContractEventDoesNotExistError(n);if(!c.isAddress(this.options.address))throw d.ContractNoAddressDefinedError();return{params:this._encodeEventABI(i,r),event:i,callback:e}},b.prototype.clone=function(){return new this.constructor(this.options.jsonInterface,this.options.address,this.options)},b.prototype.once=function(t,e,r){var n=Array.prototype.slice.call(arguments);if(!(r=this._getCallback(n)))throw d.ContractOnceRequiresCallbackError();e&&delete e.fromBlock,this._on(t,e,(function(t,e,n){n.unsubscribe(),"function"==typeof r&&r(t,e,n)}))},b.prototype._on=function(){var t=this._generateEventOptions.apply(this,arguments);t.params&&t.params.toBlock&&(delete t.params.toBlock,console.warn("Invalid option: toBlock. Use getPastEvents for specific range.")),this._checkListener("newListener",t.event.name),this._checkListener("removeListener",t.event.name);var e=new h({subscription:{params:1,inputFormatter:[l.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(t.event),subscriptionHandler:function(t){t.removed?this.emit("changed",t):this.emit("data",t),"function"==typeof this.callback&&this.callback(null,t,this)}},type:"eth",requestManager:this._requestManager});return e.subscribe("logs",t.params,t.callback||function(){}),e},b.prototype.getPastEvents=function(){var t=this._generateEventOptions.apply(this,arguments),e=new f({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[l.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(t.event)});e.setRequestManager(this._requestManager);var r=e.buildCall();return e=null,r(t.params,t.callback)},b.prototype._createTxObject=function(){var t=Array.prototype.slice.call(arguments),e={};if("function"===this.method.type&&(e.call=this.parent._executeMethod.bind(e,"call"),e.call.request=this.parent._executeMethod.bind(e,"call",!0)),e.send=this.parent._executeMethod.bind(e,"send"),e.send.request=this.parent._executeMethod.bind(e,"send",!0),e.encodeABI=this.parent._encodeMethodABI.bind(e),e.estimateGas=this.parent._executeMethod.bind(e,"estimate"),t&&this.method.inputs&&t.length!==this.method.inputs.length){if(this.nextMethod)return this.nextMethod.apply(null,t);throw d.InvalidNumberOfParams(t.length,this.method.inputs.length,this.method.name)}return e.arguments=t||[],e._method=this.method,e._parent=this.parent,e._ethAccounts=this.parent.constructor._ethAccounts||this._ethAccounts,this.deployData&&(e._deployData=this.deployData),e},b.prototype._processExecuteArguments=function(t,e){var r={};if(r.type=t.shift(),r.callback=this._parent._getCallback(t),"call"!==r.type||!0===t[t.length-1]||"string"!=typeof t[t.length-1]&&!isFinite(t[t.length-1])||(r.defaultBlock=t.pop()),r.options="object"===(!!t[t.length-1]&&(0,o.default)(t[t.length-1]))?t.pop():{},r.generateRequest=!0===t[t.length-1]&&t.pop(),r.options=this._parent._getOrSetDefaultOptions(r.options),r.options.data=this.encodeABI(),!this._deployData&&!c.isAddress(this._parent.options.address))throw d.ContractNoAddressDefinedError();return this._deployData||(r.options.to=this._parent.options.address),r.options.data?r:c._fireError(new Error("Couldn't find a matching contract method, or the number of parameters is wrong."),e.eventEmitter,e.reject,r.callback)},b.prototype._executeMethod=function(){var t=this,e=this._parent._processExecuteArguments.call(this,Array.prototype.slice.call(arguments),r),r=p("send"!==e.type),n=t.constructor._ethAccounts||t._ethAccounts;if(e.generateRequest){var i={params:[l.inputCallFormatter.call(this._parent,e.options)],callback:e.callback};return"call"===e.type?(i.params.push(l.inputDefaultBlockNumberFormatter.call(this._parent,e.defaultBlock)),i.method="eth_call",i.format=this._parent._decodeMethodReturn.bind(null,this._method.outputs)):i.method="eth_sendTransaction",i}switch(e.type){case"estimate":var o=new f({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[l.inputCallFormatter],outputFormatter:c.hexToNumber,requestManager:t._parent._requestManager,accounts:n,defaultAccount:t._parent.defaultAccount,defaultBlock:t._parent.defaultBlock}).createFunction();return o(e.options,e.callback);case"call":var a=new f({name:"call",call:"eth_call",params:2,inputFormatter:[l.inputCallFormatter,l.inputDefaultBlockNumberFormatter],outputFormatter:function(e){return t._parent._decodeMethodReturn(t._method.outputs,e)},requestManager:t._parent._requestManager,accounts:n,defaultAccount:t._parent.defaultAccount,defaultBlock:t._parent.defaultBlock,handleRevert:t._parent.handleRevert,abiCoder:m}).createFunction();return a(e.options,e.defaultBlock,e.callback);case"send":if(!c.isAddress(e.options.from))return c._fireError(d.ContractNoFromAddressDefinedError(),r.eventEmitter,r.reject,e.callback);if("boolean"==typeof this._method.payable&&!this._method.payable&&e.options.value&&e.options.value>0)return c._fireError(new Error("Can not send value to non-payable contract method or constructor"),r.eventEmitter,r.reject,e.callback);var s={receiptFormatter:function(e){if(Array.isArray(e.logs)){var r=e.logs.map((function(e){return t._parent._decodeEventABI.call({name:"ALLEVENTS",jsonInterface:t._parent.options.jsonInterface},e)}));e.events={};var n=0;r.forEach((function(t){t.event?e.events[t.event]?Array.isArray(e.events[t.event])?e.events[t.event].push(t):e.events[t.event]=[e.events[t.event],t]:e.events[t.event]=t:(e.events[n]=t,n++)})),delete e.logs}return e},contractDeployFormatter:function(e){var r=t._parent.clone();return r.options.address=e.contractAddress,r}},u=new f({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[l.inputTransactionFormatter],requestManager:t._parent._requestManager,accounts:t.constructor._ethAccounts||t._ethAccounts,defaultAccount:t._parent.defaultAccount,defaultBlock:t._parent.defaultBlock,transactionBlockTimeout:t._parent.transactionBlockTimeout,transactionConfirmationBlocks:t._parent.transactionConfirmationBlocks,transactionPollingTimeout:t._parent.transactionPollingTimeout,defaultCommon:t._parent.defaultCommon,defaultChain:t._parent.defaultChain,defaultHardfork:t._parent.defaultHardfork,handleRevert:t._parent.handleRevert,extraFormatters:s,abiCoder:m}).createFunction();return u(e.options,e.callback);default:throw new Error('Method "'+e.type+'" not implemented.')}},t.exports=b},function(t,e,r){"use strict";var n=r(0)(r(2)),i=r(1).Buffer,o=r(16),a=r(135).AbiCoder,s=r(135).ParamType,u=new a((function(t,e){return!t.match(/^u?int/)||Array.isArray(e)||e&&"object"===(0,n.default)(e)&&"BN"===e.constructor.name?e:e.toString()}));function f(){}var c=function(){};c.prototype.encodeFunctionSignature=function(t){return("function"==typeof t||"object"===(0,n.default)(t)&&t)&&(t=o._jsonInterfaceMethodToString(t)),o.sha3(t).slice(0,10)},c.prototype.encodeEventSignature=function(t){return("function"==typeof t||"object"===(0,n.default)(t)&&t)&&(t=o._jsonInterfaceMethodToString(t)),o.sha3(t)},c.prototype.encodeParameter=function(t,e){return this.encodeParameters([t],[e])},c.prototype.encodeParameters=function(t,e){var r=this;return t=r.mapTypes(t),e=e.map((function(e,i){var o=t[i];if("object"===(0,n.default)(o)&&o.type&&(o=o.type),e=r.formatParam(o,e),"string"==typeof o&&o.includes("tuple")){!function t(e,n){if("array"===e.name)return n.map((function(r){return t(u._getCoder(s.from(e.type.replace("[]",""))),r)}));e.coders.forEach((function(e,i){"tuple"===e.name?t(e,n[i]):n[i]=r.formatParam(e.name,n[i])}))}(u._getCoder(s.from(o)),e)}return e})),u.encode(t,e)},c.prototype.mapTypes=function(t){var e=this,r=[];return t.forEach((function(t){if("object"===(0,n.default)(t)&&"function"===t.type&&(t=Object.assign({},t,{type:"bytes24"})),e.isSimplifiedStructFormat(t)){var i=Object.keys(t)[0];r.push(Object.assign(e.mapStructNameAndType(i),{components:e.mapStructToCoderFormat(t[i])}))}else r.push(t)})),r},c.prototype.isSimplifiedStructFormat=function(t){return"object"===(0,n.default)(t)&&void 0===t.components&&void 0===t.name},c.prototype.mapStructNameAndType=function(t){var e="tuple";return t.indexOf("[]")>-1&&(e="tuple[]",t=t.slice(0,-2)),{type:e,name:t}},c.prototype.mapStructToCoderFormat=function(t){var e=this,r=[];return Object.keys(t).forEach((function(i){"object"!==(0,n.default)(t[i])?r.push({name:i,type:t[i]}):r.push(Object.assign(e.mapStructNameAndType(i),{components:e.mapStructToCoderFormat(t[i])}))})),r},c.prototype.formatParam=function(t,e){var r=this,n=new RegExp(/^bytes([0-9]*)$/),a=new RegExp(/^bytes([0-9]*)\[\]$/),s=new RegExp(/^(u?int)([0-9]*)$/),u=new RegExp(/^(u?int)([0-9]*)\[\]$/);if(o.isBN(e)||o.isBigNumber(e))return e.toString(10);if(t.match(a)||t.match(u))return e.map((function(e){return r.formatParam(t.replace("[]",""),e)}));var f=t.match(s);if(f){var c=parseInt(f[2]||"256");c/80&&(!e||"0x"===e||"0X"===e))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");var i=u.decode(this.mapTypes(t),"0x"+e.replace(/0x/i,""),r),o=new f;return o.__length__=0,t.forEach((function(t,e){var r=i[o.__length__];r="0x"===r?null:r,o[e]=r,("function"==typeof t||t&&"object"===(0,n.default)(t))&&t.name&&(o[t.name]=r),o.__length__++})),o},c.prototype.decodeLog=function(t,e,r){var n=this;r=Array.isArray(r)?r:[r],e=e||"";var i=[],o=[],a=0;t.forEach((function(t,e){t.indexed?(o[e]=["bool","int","uint","address","fixed","ufixed"].find((function(e){return-1!==t.type.indexOf(e)}))?n.decodeParameter(t.type,r[a]):r[a],a++):i[e]=t}));var s=e,u=s?this.decodeParametersWith(i,s,!0):[],c=new f;return c.__length__=0,t.forEach((function(t,e){c[e]="string"===t.type?"":null,void 0!==u[e]&&(c[e]=u[e]),void 0!==o[e]&&(c[e]=o[e]),t.name&&(c[t.name]=c[e]),c.__length__++})),c};var h=new c;t.exports=h},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConstructorFragment",{enumerable:!0,get:function(){return n.ConstructorFragment}}),Object.defineProperty(e,"EventFragment",{enumerable:!0,get:function(){return n.EventFragment}}),Object.defineProperty(e,"FormatTypes",{enumerable:!0,get:function(){return n.FormatTypes}}),Object.defineProperty(e,"Fragment",{enumerable:!0,get:function(){return n.Fragment}}),Object.defineProperty(e,"FunctionFragment",{enumerable:!0,get:function(){return n.FunctionFragment}}),Object.defineProperty(e,"ParamType",{enumerable:!0,get:function(){return n.ParamType}}),Object.defineProperty(e,"AbiCoder",{enumerable:!0,get:function(){return i.AbiCoder}}),Object.defineProperty(e,"defaultAbiCoder",{enumerable:!0,get:function(){return i.defaultAbiCoder}}),Object.defineProperty(e,"checkResultErrors",{enumerable:!0,get:function(){return o.checkResultErrors}}),Object.defineProperty(e,"Indexed",{enumerable:!0,get:function(){return o.Indexed}}),Object.defineProperty(e,"Interface",{enumerable:!0,get:function(){return o.Interface}}),Object.defineProperty(e,"LogDescription",{enumerable:!0,get:function(){return o.LogDescription}}),Object.defineProperty(e,"TransactionDescription",{enumerable:!0,get:function(){return o.TransactionDescription}});var n=r(80),i=r(138),o=r(296)},function(t,e,r){"use strict";function n(e,r){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.default=t.exports,t.exports.__esModule=!0,n(e,r)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.defaultAbiCoder=e.AbiCoder=void 0;var i=n(r(5)),o=n(r(9)),a=r(11),s=r(33),u=r(12),f=r(50),c=r(20),h=r(284),l=r(139),d=r(286),p=r(140),m=r(288),b=r(289),v=r(290),y=r(291),g=r(295),w=r(80),_=new u.Logger(f.version),k=new RegExp(/^bytes([0-9]*)$/),M=new RegExp(/^(u?int)([0-9]*)$/),S=function(){function t(e){(0,i.default)(this,t),_.checkNew(this instanceof t?this.constructor:void 0,t),(0,s.defineReadOnly)(this,"coerceFunc",e||null)}return(0,o.default)(t,[{key:"_getCoder",value:function(t){var e=this;switch(t.baseType){case"address":return new h.AddressCoder(t.name);case"bool":return new d.BooleanCoder(t.name);case"string":return new y.StringCoder(t.name);case"bytes":return new p.BytesCoder(t.name);case"array":return new l.ArrayCoder(this._getCoder(t.arrayChildren),t.arrayLength,t.name);case"tuple":return new g.TupleCoder((t.components||[]).map((function(t){return e._getCoder(t)})),t.name);case"":return new b.NullCoder(t.name)}var r=t.type.match(M);if(r){var n=parseInt(r[2]||"256");return(0===n||n>256||n%8!=0)&&_.throwArgumentError("invalid "+r[1]+" bit length","param",t),new v.NumberCoder(n/8,"int"===r[1],t.name)}if(r=t.type.match(k)){var i=parseInt(r[1]);return(0===i||i>32)&&_.throwArgumentError("invalid bytes length","param",t),new m.FixedBytesCoder(i,t.name)}return _.throwArgumentError("invalid type","type",t.type)}},{key:"_getWordSize",value:function(){return 32}},{key:"_getReader",value:function(t,e){return new c.Reader(t,this._getWordSize(),this.coerceFunc,e)}},{key:"_getWriter",value:function(){return new c.Writer(this._getWordSize())}},{key:"encode",value:function(t,e){var r=this;t.length!==e.length&&_.throwError("types/values length mismatch",u.Logger.errors.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});var n=t.map((function(t){return r._getCoder(w.ParamType.from(t))})),i=new g.TupleCoder(n,"_"),o=this._getWriter();return i.encode(o,e),o.data}},{key:"decode",value:function(t,e,r){var n=this,i=t.map((function(t){return n._getCoder(w.ParamType.from(t))}));return new g.TupleCoder(i,"_").decode(this._getReader((0,a.arrayify)(e),r))}}]),t}();e.AbiCoder=S;var A=new S;e.defaultAbiCoder=A},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.pack=b,e.unpack=v,e.ArrayCoder=void 0;var i=n(r(5)),o=n(r(9)),a=n(r(14)),s=n(r(15)),u=n(r(13)),f=n(r(2)),c=r(12),h=r(50),l=r(20),d=r(285);function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,u.default)(t);if(e){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var m=new c.Logger(h.version);function b(t,e,r){var n=null;if(Array.isArray(r))n=r;else if(r&&"object"===(0,f.default)(r)){var i={};n=e.map((function(t){var e=t.localName;return e||m.throwError("cannot encode object for signature with missing names",c.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),i[e]&&m.throwError("cannot encode object for signature with duplicate names",c.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),i[e]=!0,r[e]}))}else m.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&m.throwArgumentError("types/value length mismatch","tuple",r);var o=new l.Writer(t.wordSize),a=new l.Writer(t.wordSize),s=[];e.forEach((function(t,e){var r=n[e];if(t.dynamic){var i=a.length;t.encode(a,r);var u=o.writeUpdatableValue();s.push((function(t){u(t+i)}))}else t.encode(o,r)})),s.forEach((function(t){t(o.length)}));var u=t.appendWriter(o);return u+=t.appendWriter(a)}function v(t,e){var r=[],n=t.subReader(0);e.forEach((function(e){var i=null;if(e.dynamic){var o=t.readValue(),a=n.subReader(o.toNumber());try{i=e.decode(a)}catch(t){if(t.code===c.Logger.errors.BUFFER_OVERRUN)throw t;(i=t).baseType=e.name,i.name=e.localName,i.type=e.type}}else try{i=e.decode(t)}catch(t){if(t.code===c.Logger.errors.BUFFER_OVERRUN)throw t;(i=t).baseType=e.name,i.name=e.localName,i.type=e.type}null!=i&&r.push(i)}));var i=e.reduce((function(t,e){var r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t}),{});e.forEach((function(t,e){var n=t.localName;if(n&&1===i[n]&&("length"===n&&(n="_length"),null==r[n])){var o=r[e];o instanceof Error?Object.defineProperty(r,n,{get:function(){throw o}}):r[n]=o}}));for(var o=function(t){var e=r[t];e instanceof Error&&Object.defineProperty(r,t,{get:function(){throw e}})},a=0;a=0?n:"")+"]",u=-1===n||t.dynamic;return(a=e.call(this,"array",s,o,u)).coder=t,a.length=n,a}return(0,o.default)(r,[{key:"encode",value:function(t,e){Array.isArray(e)||this._throwError("expected array value",e);var r=this.length;-1===r&&(r=e.length,t.writeValue(e.length)),m.checkArgumentCount(e.length,r,"coder array"+(this.localName?" "+this.localName:""));for(var n=[],i=0;i=0;i--){var s=n(a[i]);r=n(new t(r+s,"hex"))}}return"0x"+r},e.normalize=o}).call(this,r(1).Buffer)},function(t,e,r){"use strict";(function(e){var n=r(51);function i(t){return parseInt(t.toString("hex"),16)}function o(t){var r=t.toString(16);return r.length%2==1&&(r="0"+r),e.from(r,"hex")}t.exports={numberToBuffer:o,bufferToNumber:i,varintBufferEncode:function(t){return e.from(n.encode(i(t)))},varintBufferDecode:function(t){return o(n.decode(t))},varintEncode:function(t){return e.from(n.encode(t))}}}).call(this,r(1).Buffer)},function(t,e,r){"use strict";var n=r(0),i=n(r(5)),o=n(r(9)),a=r(1).Buffer,s=r(82),u=r(325),f=r(331),c=r(52),h=r(336),l=r(337)(function(){function t(e,r,n,o){if((0,i.default)(this,t),l.isCID(e)){var c=e;return this.version=c.version,this.codec=c.codec,this.multihash=a.from(c.multihash),void(this.multibaseName=c.multibaseName||(0===c.version?"base58btc":"base32"))}if("string"==typeof e){var h=u.isEncoded(e);if(h){var d=u.decode(e);this.version=parseInt(d.slice(0,1).toString("hex"),16),this.codec=f.getCodec(d.slice(1)),this.multihash=f.rmPrefix(d.slice(1)),this.multibaseName=h}else this.version=0,this.codec="dag-pb",this.multihash=s.fromB58String(e),this.multibaseName="base58btc";return t.validateCID(this),void Object.defineProperty(this,"string",{value:e})}if(a.isBuffer(e)){var p=e.slice(0,1),m=parseInt(p.toString("hex"),16);if(1===m){var b=e;this.version=m,this.codec=f.getCodec(b.slice(1)),this.multihash=f.rmPrefix(b.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";t.validateCID(this)}else this.version=e,this.codec=r,this.multihash=n,this.multibaseName=o||(0===e?"base58btc":"base32"),t.validateCID(this)}return(0,o.default)(t,[{key:"buffer",get:function(){var t=this._buffer;if(!t){if(0===this.version)t=this.multihash;else{if(1!==this.version)throw new Error("unsupported version");t=a.concat([a.from("01","hex"),f.getCodeVarint(this.codec),this.multihash])}Object.defineProperty(this,"_buffer",{value:t})}return t}},{key:"prefix",get:function(){return a.concat([a.from("0".concat(this.version),"hex"),f.getCodeVarint(this.codec),s.prefix(this.multihash)])}},{key:"toV0",value:function(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");var t=s.decode(this.multihash),e=t.name,r=t.length;if("sha2-256"!==e)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==r)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new l(0,this.codec,this.multihash)}},{key:"toV1",value:function(){return new l(1,this.codec,this.multihash)}},{key:"toBaseEncodedString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.multibaseName;if(this.string&&t===this.multibaseName)return this.string;var e=null;if(0===this.version){if("base58btc"!==t)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");e=s.toB58String(this.multihash)}else{if(1!==this.version)throw new Error("unsupported version");e=u.encode(t,this.buffer).toString()}return t===this.multibaseName&&Object.defineProperty(this,"string",{value:e}),e}},{key:Symbol.for("nodejs.util.inspect.custom"),value:function(){return"CID("+this.toString()+")"}},{key:"toString",value:function(t){return this.toBaseEncodedString(t)}},{key:"toJSON",value:function(){return{codec:this.codec,version:this.version,hash:this.multihash}}},{key:"equals",value:function(t){return this.codec===t.codec&&this.version===t.version&&this.multihash.equals(t.multihash)}}],[{key:"validateCID",value:function(t){var e=h.checkCIDComponents(t);if(e)throw new Error(e)}}]),t}(),{className:"CID",symbolName:"@ipld/js-cid/CID"});l.codecs=c,t.exports=l},function(t,e,r){"use strict";var n=r(4).Buffer;t.exports=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),r=0;r>>0,c=new Uint8Array(a);t[r];){var h=e[t.charCodeAt(r)];if(255===h)return;for(var l=0,d=a-1;(0!==h||l>>0,c[d]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=l,r++}if(" "!==t[r]){for(var p=a-o;p!==a&&0===c[p];)p++;var m=n.allocUnsafe(i+(a-p));m.fill(0,0,i);for(var b=i;p!==a;)m[b++]=c[p++];return m}}}return{encode:function(e){if((Array.isArray(e)||e instanceof Uint8Array)&&(e=n.from(e)),!n.isBuffer(e))throw new TypeError("Expected Buffer");if(0===e.length)return"";for(var r=0,i=0,o=0,a=e.length;o!==a&&0===e[o];)o++,r++;for(var f=(a-o)*c+1>>>0,h=new Uint8Array(f);o!==a;){for(var l=e[o],d=0,p=f-1;(0!==l||d>>0,h[p]=l%s>>>0,l=l/s>>>0;if(0!==l)throw new Error("Non-zero carry");i=d,o++}for(var m=f-i;m!==f&&0===h[m];)m++;for(var b=u.repeat(r);m>6|192);else{if(i>55295&&i<56320){if(++n==t.length)return null;var o=t.charCodeAt(n);if(o<56320||o>57343)return null;r+=e((i=65536+((1023&i)<<10)+(1023&o))>>18|240),r+=e(i>>12&63|128)}else r+=e(i>>12|224);r+=e(i>>6&63|128)}r+=e(63&i|128)}}return r},toString:function(t){for(var e="",r=0,o=i(t);r127){if(a>191&&a<224){if(r>=o)return null;a=(31&a)<<6|63&n(t,r)}else if(a>223&&a<240){if(r+1>=o)return null;a=(15&a)<<12|(63&n(t,r))<<6|63&n(t,++r)}else{if(!(a>239&&a<248))return null;if(r+2>=o)return null;a=(7&a)<<18|(63&n(t,r))<<12|(63&n(t,++r))<<6|63&n(t,++r)}++r}if(a<=65535)e+=String.fromCharCode(a);else{if(!(a<=1114111))return null;a-=65536,e+=String.fromCharCode(a>>10|55296),e+=String.fromCharCode(1023&a|56320)}}return e},fromNumber:function(t){var e=t.toString(16);return e.length%2==0?"0x"+e:"0x0"+e},toNumber:function(t){return parseInt(t.slice(2),16)},fromNat:function(t){return"0x0"===t?"0x":t.length%2==0?t:"0x0"+t.slice(2)},toNat:function(t){return"0"===t[2]?"0x"+t.slice(3):t},fromArray:a,toArray:o,fromUint8Array:function(t){return a([].slice.call(t,0))},toUint8Array:function(t){return new Uint8Array(o(t))}}},function(t,e,r){"use strict";var n=r(348).Buffer,i=r(349).Transform;function o(t){i.call(this),this._block=n.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(3)(o,i),o.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(t){n=t}r(n)},o.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},o.prototype.update=function(t,e){if(function(t,e){if(!n.isBuffer(t)&&"string"!=typeof t)throw new TypeError(e+" must be a string or a buffer")}(t,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(t)||(t=n.from(t,e));for(var r=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},function(t,e,r){"use strict";(function(e,n){var i;t.exports=A,A.ReadableState=S;r(23).EventEmitter;var o=function(t,e){return t.listeners(e).length},a=r(153),s=r(1).Buffer,u=e.Uint8Array||function(){};var f,c=r(350);f=c&&c.debuglog?c.debuglog("stream"):function(){};var h,l,d,p=r(351),m=r(154),b=r(155).getHighWaterMark,v=r(37).codes,y=v.ERR_INVALID_ARG_TYPE,g=v.ERR_STREAM_PUSH_AFTER_EOF,w=v.ERR_METHOD_NOT_IMPLEMENTED,_=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(3)(A,a);var k=m.errorOrDestroy,M=["error","close","destroy","pause","resume"];function S(t,e,n){i=i||r(38),t=t||{},"boolean"!=typeof n&&(n=e instanceof i),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=b(this,t,"readableHighWaterMark",n),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=r(29).StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function A(t){if(i=i||r(38),!(this instanceof A))return new A(t);var e=this instanceof i;this._readableState=new S(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function x(t,e,r,n,i){f("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(f("onEofChunk"),e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?P(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,B(t)))}(t,a);else if(i||(o=function(t,e){var r;n=e,s.isBuffer(n)||n instanceof u||"string"==typeof e||void 0===e||t.objectMode||(r=new y("chunk",["string","Buffer","Uint8Array"],e));var n;return r}(a,e)),o)k(t,o);else if(a.objectMode||e&&e.length>0)if("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),n)a.endEmitted?k(t,new _):E(t,a,e,!0);else if(a.ended)k(t,new g);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?E(t,a,e,!1):T(t,a)):E(t,a,e,!1)}else n||(a.reading=!1,T(t,a));return!a.ended&&(a.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=1073741824?t=1073741824:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function P(t){var e=t._readableState;f("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(B,t))}function B(t){var e=t._readableState;f("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,j(t)}function T(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(R,t,e))}function R(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function C(t){f("readable nexttick read 0"),t.read(0)}function U(t,e){f("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),j(t),e.flowing&&!e.reading&&t.read(0)}function j(t){var e=t._readableState;for(f("flow",e.flowing);e.flowing&&null!==t.read(););}function N(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function L(t){var e=t._readableState;f("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(F,e,t))}function F(t,e){if(f("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function D(t,e){for(var r=0,n=t.length;r=e.highWaterMark:e.length>0)||e.ended))return f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?L(this):P(this),null;if(0===(t=O(t,e))&&e.ended)return 0===e.length&&L(this),null;var n,i=e.needReadable;return f("need readable",i),(0===e.length||e.length-t0?N(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&L(this)),null!==n&&this.emit("data",n),n},A.prototype._read=function(t){k(this,new w("_read()"))},A.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,f("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?u:b;function s(e,n){f("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,f("cleanup"),t.removeListener("close",p),t.removeListener("finish",m),t.removeListener("drain",c),t.removeListener("error",d),t.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",b),r.removeListener("data",l),h=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||c())}function u(){f("onend"),t.end()}i.endEmitted?n.nextTick(a):r.once("end",a),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,j(t))}}(r);t.on("drain",c);var h=!1;function l(e){f("ondata");var n=t.write(e);f("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==D(i.pipes,t))&&!h&&(f("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function d(e){f("onerror",e),b(),t.removeListener("error",d),0===o(t,"error")&&k(t,e)}function p(){t.removeListener("finish",m),b()}function m(){f("onfinish"),t.removeListener("close",p),b()}function b(){f("unpipe"),r.unpipe(t)}return r.on("data",l),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",d),t.once("close",p),t.once("finish",m),t.emit("pipe",r),i.flowing||(f("pipe resume"),r.resume()),t},A.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,f("on readable",i.length,i.reading),i.length?P(this):i.reading||n.nextTick(C,this))),r},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(t,e){var r=a.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(I,this),r},A.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(I,this),e},A.prototype.resume=function(){var t=this._readableState;return t.flowing||(f("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(U,t,e))}(this,t)),t.paused=!1,this},A.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(f("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(f("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(t,e,r){r(new m("_write()"))},A.prototype._writev=null,A.prototype.end=function(t,e,r){var i=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,e,r){e.ending=!0,T(t,e),r&&(e.finished?n.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,i,r),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),A.prototype.destroy=h.destroy,A.prototype._undestroy=h.undestroy,A.prototype._destroy=function(t,e){e(t)}}).call(this,r(7),r(6))},function(t,e,r){"use strict";t.exports=c;var n=r(37).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(38);function f(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function l(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function d(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,m=0|this._g,b=0|this._h,v=0;v<16;++v)r[v]=t.readInt32BE(4*v);for(;v<64;++v)r[v]=0|(((e=r[v-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+r[v-7]+d(r[v-15])+r[v-16];for(var y=0;y<64;++y){var g=b+l(u)+f(u,p,m)+a[y]+r[y]|0,w=h(n)+c(n,i,o)|0;b=m,m=p,p=u,u=s+g|0,s=o,o=i,i=n,n=g+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=b+this._h|0},u.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=u},function(t,e,r){"use strict";var n=r(3),i=r(39),o=r(4).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function f(t,e,r){return r^t&(e^r)}function c(t,e,r){return t&e|r&(t|e)}function h(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function l(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function d(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function b(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function v(t,e){return t>>>0>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(t){for(var e=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,y=0|this._gh,g=0|this._hh,w=0|this._al,_=0|this._bl,k=0|this._cl,M=0|this._dl,S=0|this._el,A=0|this._fl,x=0|this._gl,E=0|this._hl,O=0;O<32;O+=2)e[O]=t.readInt32BE(4*O),e[O+1]=t.readInt32BE(4*O+4);for(;O<160;O+=2){var P=e[O-30],B=e[O-30+1],T=d(P,B),R=p(B,P),I=m(P=e[O-4],B=e[O-4+1]),C=b(B,P),U=e[O-14],j=e[O-14+1],N=e[O-32],L=e[O-32+1],F=R+j|0,D=T+U+v(F,R)|0;D=(D=D+I+v(F=F+C|0,C)|0)+N+v(F=F+L|0,L)|0,e[O]=D,e[O+1]=F}for(var q=0;q<160;q+=2){D=e[q],F=e[q+1];var H=c(r,n,i),z=c(w,_,k),K=h(r,w),G=h(w,r),V=l(s,S),W=l(S,s),Z=a[q],J=a[q+1],X=f(s,u,y),Y=f(S,A,x),$=E+W|0,Q=g+V+v($,E)|0;Q=(Q=(Q=Q+X+v($=$+Y|0,Y)|0)+Z+v($=$+J|0,J)|0)+D+v($=$+F|0,F)|0;var tt=G+z|0,et=K+H+v(tt,G)|0;g=y,E=x,y=u,x=A,u=s,A=S,s=o+Q+v(S=M+$|0,M)|0,o=i,M=k,i=n,k=_,n=r,_=w,r=Q+et+v(w=$+tt|0,$)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+k|0,this._dl=this._dl+M|0,this._el=this._el+S|0,this._fl=this._fl+A|0,this._gl=this._gl+x|0,this._hl=this._hl+E|0,this._ah=this._ah+r+v(this._al,w)|0,this._bh=this._bh+n+v(this._bl,_)|0,this._ch=this._ch+i+v(this._cl,k)|0,this._dh=this._dh+o+v(this._dl,M)|0,this._eh=this._eh+s+v(this._el,S)|0,this._fh=this._fh+u+v(this._fl,A)|0,this._gh=this._gh+y+v(this._gl,x)|0,this._hh=this._hh+g+v(this._hl,E)|0},u.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=u},function(t,e,r){"use strict";var n=r(3),i=r(365),o=r(25),a=r(4).Buffer,s=r(161),u=r(85),f=r(86),c=a.alloc(128);function h(t,e){o.call(this,"digest"),"string"==typeof e&&(e=a.from(e));var r="sha512"===t||"sha384"===t?128:64;(this._alg=t,this._key=e,e.length>r)?e=("rmd160"===t?new u:f(t)).update(e).digest():e.lengthn||e!=e)throw new TypeError("Bad key length")}},function(t,e,r){"use strict";(function(e,r){var n;if(e.process&&e.process.browser)n="utf-8";else if(e.process&&e.process.version){n=parseInt(r.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else n="utf-8";t.exports=n}).call(this,r(7),r(6))},function(t,e,r){"use strict";var n=r(161),i=r(85),o=r(86),a=r(4).Buffer,s=r(164),u=r(165),f=r(167),c=a.alloc(128),h={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function l(t,e,r){var s=function(t){function e(e){return o(t).update(e).digest()}return"rmd160"===t||"ripemd160"===t?function(t){return(new i).update(t).digest()}:"md5"===t?n:e}(t),u="sha512"===t||"sha384"===t?128:64;e.length>u?e=s(e):e.length>>0},e.writeUInt32BE=function(t,e,r){t[0+r]=e>>>24,t[1+r]=e>>>16&255,t[2+r]=e>>>8&255,t[3+r]=255&e},e.ip=function(t,e,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},e.rip=function(t,e,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=e>>>s+a&1,i<<=1,i|=t>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=e>>>s+a&1,o<<=1,o|=t>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},e.pc1=function(t,e,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},e.r28shl=function(t,e){return t<>>28-e};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,r,i){for(var o=0,a=0,s=n.length>>>1,u=0;u>>n[u]&1;for(u=s;u>>n[u]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},e.expand=function(t,e,r){var n=0,i=0;n=(1&t)<<5|t>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=t>>>o&63;for(o=11;o>=3;o-=4)i|=t>>>o&63,i<<=6;i|=(31&t)<<1|t>>>31,e[r+0]=n>>>0,e[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(t>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(e>>>18-6*n&63)]}return r>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,r=0;r>>o[r]&1;return e>>>0},e.padSplit=function(t,e,r){for(var n=t.toString(2);n.length>>1];r=o.r28shl(r,s),i=o.r28shl(i,s),o.pc2(r,i,t.keys,a)}},u.prototype._update=function(t,e,r,n){var i=this._desState,a=o.readUInt32BE(t,e),s=o.readUInt32BE(t,e+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(r,a,n),o.writeUInt32BE(r,s,n+4)},u.prototype._pad=function(t,e){for(var r=t.length-e,n=e;n>>0,a=l}o.rip(s,a,n,i)},u.prototype._decrypt=function(t,e,r,n,i){for(var a=r,s=e,u=t.keys.length-2;u>=0;u-=2){var f=t.keys[u],c=t.keys[u+1];o.expand(a,t.tmp,0),f^=t.tmp[0],c^=t.tmp[1];var h=o.substitute(f,c),l=a;a=(s^o.permute(h))>>>0,s=l}o.rip(a,s,n,i)}},function(t,e,r){"use strict";var n=r(53),i=r(4).Buffer,o=r(171);function a(t){var e=t._cipher.encryptBlockRaw(t._prev);return o(t._prev),e}e.encrypt=function(t,e){var r=Math.ceil(e.length/16),o=t._cache.length;t._cache=i.concat([t._cache,i.allocUnsafe(16*r)]);for(var s=0;st;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(u),e.cmp(u)){if(!e.cmp(f))for(;r.mod(c).cmp(h);)r.iadd(d)}else for(;r.mod(o).cmp(l);)r.iadd(d);if(b(p=r.shrn(1))&&b(r)&&v(p)&&v(r)&&a.test(p)&&a.test(r))return r}}},function(t,e,r){"use strict";var n=r(8),i=r(91);function o(t){this.rand=t||new i.Rand}t.exports=o,o.create=function(t){return new o(t)},o.prototype._randbelow=function(t){var e=t.bitLength(),r=Math.ceil(e/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(t)>=0);return i},o.prototype._randrange=function(t,e){var r=e.sub(t);return t.add(this._randbelow(r))},o.prototype.test=function(t,e,r){var i=t.bitLength(),o=n.mont(t),a=new n(1).toRed(o);e||(e=Math.max(1,i/48|0));for(var s=t.subn(1),u=0;!s.testn(u);u++);for(var f=t.shrn(u),c=s.toRed(o);e>0;e--){var h=this._randrange(new n(2),s);r&&r(h);var l=h.toRed(o).redPow(f);if(0!==l.cmp(a)&&0!==l.cmp(c)){for(var d=1;d0;e--){var c=this._randrange(new n(2),a),h=t.gcd(c);if(0!==h.cmpn(1))return h;var l=c.toRed(i).redPow(u);if(0!==l.cmp(o)&&0!==l.cmp(f)){for(var d=1;d0)if("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),n)a.endEmitted?k(t,new _):E(t,a,e,!0);else if(a.ended)k(t,new g);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?E(t,a,e,!1):T(t,a)):E(t,a,e,!1)}else n||(a.reading=!1,T(t,a));return!a.ended&&(a.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=1073741824?t=1073741824:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function P(t){var e=t._readableState;f("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(B,t))}function B(t){var e=t._readableState;f("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,j(t)}function T(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(R,t,e))}function R(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function C(t){f("readable nexttick read 0"),t.read(0)}function U(t,e){f("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),j(t),e.flowing&&!e.reading&&t.read(0)}function j(t){var e=t._readableState;for(f("flow",e.flowing);e.flowing&&null!==t.read(););}function N(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function L(t){var e=t._readableState;f("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(F,e,t))}function F(t,e){if(f("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function D(t,e){for(var r=0,n=t.length;r=e.highWaterMark:e.length>0)||e.ended))return f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?L(this):P(this),null;if(0===(t=O(t,e))&&e.ended)return 0===e.length&&L(this),null;var n,i=e.needReadable;return f("need readable",i),(0===e.length||e.length-t0?N(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&L(this)),null!==n&&this.emit("data",n),n},A.prototype._read=function(t){k(this,new w("_read()"))},A.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,f("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?u:b;function s(e,n){f("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,f("cleanup"),t.removeListener("close",p),t.removeListener("finish",m),t.removeListener("drain",c),t.removeListener("error",d),t.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",b),r.removeListener("data",l),h=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||c())}function u(){f("onend"),t.end()}i.endEmitted?n.nextTick(a):r.once("end",a),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,j(t))}}(r);t.on("drain",c);var h=!1;function l(e){f("ondata");var n=t.write(e);f("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==D(i.pipes,t))&&!h&&(f("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function d(e){f("onerror",e),b(),t.removeListener("error",d),0===o(t,"error")&&k(t,e)}function p(){t.removeListener("finish",m),b()}function m(){f("onfinish"),t.removeListener("close",p),b()}function b(){f("unpipe"),r.unpipe(t)}return r.on("data",l),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",d),t.once("close",p),t.once("finish",m),t.emit("pipe",r),i.flowing||(f("pipe resume"),r.resume()),t},A.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,f("on readable",i.length,i.reading),i.length?P(this):i.reading||n.nextTick(C,this))),r},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(t,e){var r=a.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(I,this),r},A.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||n.nextTick(I,this),e},A.prototype.resume=function(){var t=this._readableState;return t.flowing||(f("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,n.nextTick(U,t,e))}(this,t)),t.paused=!1,this},A.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(f("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(f("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(t,e,r){r(new m("_write()"))},A.prototype._writev=null,A.prototype.end=function(t,e,r){var i=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,e,r){e.ending=!0,T(t,e),r&&(e.finished?n.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,i,r),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),A.prototype.destroy=h.destroy,A.prototype._undestroy=h.undestroy,A.prototype._destroy=function(t,e){e(t)}}).call(this,r(7),r(6))},function(t,e,r){"use strict";t.exports=c;var n=r(40).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(41);function f(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(t,e){return"hex"===e?o(t):t}},function(t,e,r){"use strict";var n=e;n.base=r(67),n.short=r(400),n.mont=r(401),n.edwards=r(402)},function(t,e,r){"use strict";(function(t){var e=r(0)(r(2));!function(t,n){function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,e,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===(0,e.default)(t)?t.exports=a:(void 0).BN=a,a.BN=a,a.wordSize=26;try{s="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(411).Buffer}catch(t){}function u(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void i(!1,"Invalid character in "+t)}function f(t,e,r){var n=u(t,r);return r-1>=e&&(n|=u(t,r-1)<<4),n}function c(t,e,r,n){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u=49?f-49+10:f>=17?f-17+10:f,i(f>=0&&a0?t:e},a.min=function(t,e){return t.cmp(e)<0?t:e},a.prototype._init=function(t,r,n){if("number"==typeof t)return this._initNumber(t,r,n);if("object"===(0,e.default)(t))return this._initArray(t,r,n);"hex"===r&&(r=16),i(r===(0|r)&&r>=2&&r<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o=0;n-=3)a=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},a.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=f(t,e,n)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,f=r;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){a.prototype.inspect=l}else a.prototype.inspect=l;function l(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?d[6-u.length]+u+r:u+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var f=p[t],c=m[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var l=h.modrn(c).toString(t);r=(h=h.idivn(c)).isZero()?l+r:d[f-l.length]+l+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16,2)},s&&(a.prototype.toBuffer=function(t,e){return this.toArrayLike(s,t,e)}),a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function b(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var f=1;f>>26,h=67108863&u,l=Math.min(f,e.length-1),d=Math.max(0,f-t.length+1);d<=l;d++){var p=f-d|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r._strip()}a.prototype.toArrayLike=function(t,e,r){this._strip();var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,n),a},a.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r=0&&(t[r--]=a>>8&255),r>=0&&(t[r--]=a>>16&255),6===o?(r>=0&&(t[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this._strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var r=t/26|0,n=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,b=0|a[2],v=8191&b,y=b>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],M=8191&k,S=k>>>13,A=0|a[5],x=8191&A,E=A>>>13,O=0|a[6],P=8191&O,B=O>>>13,T=0|a[7],R=8191&T,I=T>>>13,C=0|a[8],U=8191&C,j=C>>>13,N=0|a[9],L=8191&N,F=N>>>13,D=0|s[0],q=8191&D,H=D>>>13,z=0|s[1],K=8191&z,G=z>>>13,V=0|s[2],W=8191&V,Z=V>>>13,J=0|s[3],X=8191&J,Y=J>>>13,$=0|s[4],Q=8191&$,tt=$>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ft=st>>>13,ct=0|s[8],ht=8191&ct,lt=ct>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var bt=(f+(n=Math.imul(h,q))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(l,q)|0))<<13)|0;f=((o=Math.imul(l,H))+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,H))+Math.imul(m,q)|0,o=Math.imul(m,H);var vt=(f+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,G)|0)+Math.imul(l,K)|0))<<13)|0;f=((o=o+Math.imul(l,G)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),i=(i=Math.imul(v,H))+Math.imul(y,q)|0,o=Math.imul(y,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0;var yt=(f+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(l,W)|0))<<13)|0;f=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,H))+Math.imul(_,q)|0,o=Math.imul(_,H),n=n+Math.imul(v,K)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,Z)|0;var gt=(f+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(l,X)|0))<<13)|0;f=((o=o+Math.imul(l,Y)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(M,q),i=(i=Math.imul(M,H))+Math.imul(S,q)|0,o=Math.imul(S,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,Y)|0;var wt=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,Q)|0))<<13)|0;f=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,H))+Math.imul(E,q)|0,o=Math.imul(E,H),n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,Y)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var _t=(f+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(l,rt)|0))<<13)|0;f=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,H))+Math.imul(B,q)|0,o=Math.imul(B,H),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,G)|0,n=n+Math.imul(M,W)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0;var kt=(f+(n=n+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;f=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,H))+Math.imul(I,q)|0,o=Math.imul(I,H),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,G)|0,n=n+Math.imul(x,W)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,Z)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(f+(n=n+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ft)|0)+Math.imul(l,ut)|0))<<13)|0;f=((o=o+Math.imul(l,ft)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(U,q),i=(i=Math.imul(U,H))+Math.imul(j,q)|0,o=Math.imul(j,H),n=n+Math.imul(R,K)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(B,W)|0,o=o+Math.imul(B,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(E,X)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(v,ot)|0,i=(i=i+Math.imul(v,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,ft)|0;var St=(f+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;f=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(L,q),i=(i=Math.imul(L,H))+Math.imul(F,q)|0,o=Math.imul(F,H),n=n+Math.imul(U,K)|0,i=(i=i+Math.imul(U,G)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,Z)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(v,ut)|0,i=(i=i+Math.imul(v,ft)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0;var At=(f+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(l,pt)|0))<<13)|0;f=((o=o+Math.imul(l,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,G))+Math.imul(F,K)|0,o=Math.imul(F,G),n=n+Math.imul(U,W)|0,i=(i=i+Math.imul(U,Z)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,Z)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(E,rt)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ft)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ft)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0;var xt=(f+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;f=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(L,W),i=(i=Math.imul(L,Z))+Math.imul(F,W)|0,o=Math.imul(F,Z),n=n+Math.imul(U,X)|0,i=(i=i+Math.imul(U,Y)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(B,rt)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,n=n+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,ft)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ht)|0,o=o+Math.imul(_,lt)|0;var Et=(f+(n=n+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(y,pt)|0))<<13)|0;f=((o=o+Math.imul(y,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,Y))+Math.imul(F,X)|0,o=Math.imul(F,Y),n=n+Math.imul(U,Q)|0,i=(i=i+Math.imul(U,tt)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ft)|0)+Math.imul(E,ut)|0,o=o+Math.imul(E,ft)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,lt)|0;var Ot=(f+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;f=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,tt))+Math.imul(F,Q)|0,o=Math.imul(F,tt),n=n+Math.imul(U,rt)|0,i=(i=i+Math.imul(U,nt)|0)+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ft)|0)+Math.imul(B,ut)|0,o=o+Math.imul(B,ft)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(E,ht)|0,o=o+Math.imul(E,lt)|0;var Pt=(f+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(S,pt)|0))<<13)|0;f=((o=o+Math.imul(S,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(L,rt),i=(i=Math.imul(L,nt))+Math.imul(F,rt)|0,o=Math.imul(F,nt),n=n+Math.imul(U,ot)|0,i=(i=i+Math.imul(U,at)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ft)|0)+Math.imul(I,ut)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(B,ht)|0,o=o+Math.imul(B,lt)|0;var Bt=(f+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(E,pt)|0))<<13)|0;f=((o=o+Math.imul(E,mt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(L,ot),i=(i=Math.imul(L,at))+Math.imul(F,ot)|0,o=Math.imul(F,at),n=n+Math.imul(U,ut)|0,i=(i=i+Math.imul(U,ft)|0)+Math.imul(j,ut)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(R,ht)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(I,ht)|0,o=o+Math.imul(I,lt)|0;var Tt=(f+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(B,pt)|0))<<13)|0;f=((o=o+Math.imul(B,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(L,ut),i=(i=Math.imul(L,ft))+Math.imul(F,ut)|0,o=Math.imul(F,ft),n=n+Math.imul(U,ht)|0,i=(i=i+Math.imul(U,lt)|0)+Math.imul(j,ht)|0,o=o+Math.imul(j,lt)|0;var Rt=(f+(n=n+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(I,pt)|0))<<13)|0;f=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(L,ht),i=(i=Math.imul(L,lt))+Math.imul(F,ht)|0,o=Math.imul(F,lt);var It=(f+(n=n+Math.imul(U,pt)|0)|0)+((8191&(i=(i=i+Math.imul(U,mt)|0)+Math.imul(j,pt)|0))<<13)|0;f=((o=o+Math.imul(j,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var Ct=(f+(n=Math.imul(L,pt))|0)+((8191&(i=(i=Math.imul(L,mt))+Math.imul(F,pt)|0))<<13)|0;return f=((o=Math.imul(F,mt))+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,u[0]=bt,u[1]=vt,u[2]=yt,u[3]=gt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=St,u[9]=At,u[10]=xt,u[11]=Et,u[12]=Ot,u[13]=Pt,u[14]=Bt,u[15]=Tt,u[16]=Rt,u[17]=It,u[18]=Ct,0!==f&&(u[19]=f,r.length++),r};function y(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function g(t,e,r){return y(t,e,r)}function w(t,e){this.x=t,this.y=e}Math.imul||(v=b),a.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?v(this,t,e):r<63?b(this,t,e):r<1024?y(this,t,e):g(this,t,e)},w.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n>=1;return n},w.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,r+=o/67108864|0,r+=a>>>26,this.words[n]=67108863&a}return 0!==r&&(this.words[n]=r,this.length++),e?this.ineg():this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i&1}return e}(t);if(0===e.length)return new a(1);for(var r=this,n=0;n=0);var e,r=t%26,n=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e=0),n=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,f=0;f=0&&(0!==c||f>=n);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(t,e,r){return i(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){i("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,n=1<=0);var e=t%26,r=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var n=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(i("number"==typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o;if(0===s)return this._strip();for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o;return this.negative=1,this._strip()},a.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new a(null)).length=u+1,s.words=new Array(s.length);for(var f=0;f=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){return i(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(n=s.div.neg()),"div"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:n,mod:o}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:s.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new a(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modrn(t.words[0]))}:this._wordDiv(t,e);var n,o,s},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modrn=function(t){var e=t<0;e&&(t=-t),i(t<=67108863);for(var r=(1<<26)%t,n=0,o=this.length-1;o>=0;o--)n=(r*n+(0|this.words[o]))%t;return e?-n:n},a.prototype.modn=function(t){return this.modrn(t)},a.prototype.idivn=function(t){var e=t<0;e&&(t=-t),i(t<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*r;this.words[n]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new a(1),o=new a(0),s=new a(0),u=new a(1),f=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(c),o.isub(h)),n.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),n.isub(s),o.isub(u)):(r.isub(e),s.isub(n),u.isub(o))}return{a:s,b:u,gcd:r.iushln(f)}},a.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n,o=new a(1),s=new a(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(e.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(e.iushrn(f);f-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var h=0,l=1;0==(r.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s)):(r.isub(e),s.isub(o))}return(n=0===e.cmpn(1)?o:s).cmpn(0)<0&&n.iadd(t),n},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){i("number"==typeof t);var e=t%26,r=(t-e)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),i(t<=67108863,"Number is too big");var n=0|this.words[0];e=n===t?0:nt.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new E(t)},a.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};function k(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){k.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){k.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){k.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function O(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}k.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},k.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},k.prototype.split=function(t,e){t.iushrn(this.n,0,e)},k.prototype.imulK=function(t){return t.imul(this.k)},o(M,k),M.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n>>22,i=o}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},a._prime=function(t){if(_[t])return _[t];var e;if("k256"===t)e=new M;else if("p224"===t)e=new S;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return _[t]=e,e},E.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){i(0==(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(h(t,t.umod(this.m)._forceRed(this)),t)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);i(!n.isZero());var s=new a(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,n),l=this.pow(t,n.addn(1).iushrn(1)),d=this.pow(t,n),p=o;0!==d.cmp(s);){for(var m=d,b=0;0!==m.cmp(s);b++)m=m.redSqr();i(b=0;n--){for(var f=e.words[n],c=u-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}u=26}return i},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new O(t)},o(O,E),O.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},O.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},O.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t)}).call(this,r(17)(t))},function(t,e,r){"use strict";var n=e;n.bignum=r(8),n.define=r(413).define,n.base=r(416),n.constants=r(417),n.decoders=r(189),n.encoders=r(187)},function(t,e,r){"use strict";var n=e;n.der=r(188),n.pem=r(414)},function(t,e,r){"use strict";var n=r(3),i=r(96).Buffer,o=r(97),a=r(99);function s(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new u,this.tree._init(t.body)}function u(t){o.call(this,"der",t)}function f(t){return t<10?"0"+t:t}t.exports=s,s.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},n(u,o),u.prototype._encodeComposite=function(t,e,r,n){var o=function(t,e,r,n){var i;"seqof"===t?t="seq":"setof"===t&&(t="set");if(a.tagByName.hasOwnProperty(t))i=a.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return n.error("Unknown tag: "+t);i=t}if(i>=31)return n.error("Multi-octet tag encoding unsupported");e||(i|=32);return i|=a.tagClassByName[r||"universal"]<<6}(t,e,r,this.reporter);if(n.length<128){var s=i.alloc(2);return s[0]=o,s[1]=n.length,this._createEncoderBuffer([s,n])}for(var u=1,f=n.length;f>=256;f>>=8)u++;var c=i.alloc(2+u);c[0]=o,c[1]=128|u;for(var h=1+u,l=n.length;l>0;h--,l>>=8)c[h]=255&l;return this._createEncoderBuffer([c,n])},u.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var r=i.alloc(2*t.length),n=0;n=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}for(var a=0,s=0;s=128;u>>=7)a++}for(var f=i.alloc(a),c=f.length-1,h=t.length-1;h>=0;h--){var l=t[h];for(f[c--]=127&l;(l>>=7)>0;)f[c--]=128|127&l}return this._createEncoderBuffer(f)},u.prototype._encodeTime=function(t,e){var r,n=new Date(t);return"gentime"===e?r=[f(n.getUTCFullYear()),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),"Z"].join(""):"utctime"===e?r=[f(n.getUTCFullYear()%100),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!i.isBuffer(t)){var r=t.toArray();!t.sign&&128&r[0]&&r.unshift(0),t=i.from(r)}if(i.isBuffer(t)){var n=t.length;0===t.length&&n++;var o=i.alloc(n);return t.copy(o),0===t.length&&(o[0]=0),this._createEncoderBuffer(o)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);for(var a=1,s=t;s>=256;s>>=8)a++;for(var u=new Array(a),f=u.length-1;f>=0;f--)u[f]=255&t,t>>=8;return 128&u[0]&&u.unshift(0),this._createEncoderBuffer(i.from(u))},u.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},u.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},u.prototype._skipDefault=function(t,e,r){var n,i=this._baseState;if(null===i.default)return!1;var o=t.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,e,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n>6],i=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=t.readUInt8(e),t.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function h(t,e,r){var n=t.readUInt8(r);if(t.isError(n))return n;if(!e&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(i>4)return t.error("length octect is too long");n=0;for(var o=0;o>>((3&e)<<3)&255;return o}}},function(t,e,r){"use strict";for(var n=[],i=0;i<256;++i)n[i]=(i+256).toString(16).substr(1);t.exports=function(t,e){var r=e||0,i=n;return[i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]]].join("")}},function(t,e,r){"use strict";var n=Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]},i=function(t,e){for(var r in t)"default"===r||e.hasOwnProperty(r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(433);Object.defineProperty(e,"Transaction",{enumerable:!0,get:function(){return o.default}});var a=r(483);Object.defineProperty(e,"AccessListEIP2930Transaction",{enumerable:!0,get:function(){return a.default}});var s=r(484);Object.defineProperty(e,"TransactionFactory",{enumerable:!0,get:function(){return s.default}});var u=r(485);Object.defineProperty(e,"FeeMarketEIP1559Transaction",{enumerable:!0,get:function(){return u.default}}),i(r(43),e)},function(t,e,r){"use strict";var n=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.KECCAK256_RLP=e.KECCAK256_RLP_S=e.KECCAK256_RLP_ARRAY=e.KECCAK256_RLP_ARRAY_S=e.KECCAK256_NULL=e.KECCAK256_NULL_S=e.TWO_POW256=e.MAX_INTEGER=void 0;var i=r(1).Buffer,o=n(r(34));e.MAX_INTEGER=new o.default("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),e.TWO_POW256=new o.default("10000000000000000000000000000000000000000000000000000000000000000",16),e.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",e.KECCAK256_NULL=i.from(e.KECCAK256_NULL_S,"hex"),e.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",e.KECCAK256_RLP_ARRAY=i.from(e.KECCAK256_RLP_ARRAY_S,"hex"),e.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",e.KECCAK256_RLP=i.from(e.KECCAK256_RLP_S,"hex")},function(t,e,r){"use strict";(function(t){var n=Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]},i=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e},o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},a=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.isZeroAddress=e.zeroAddress=e.importPublic=e.privateToAddress=e.privateToPublic=e.publicToAddress=e.pubToAddress=e.isValidPublic=e.isValidPrivate=e.generateAddress2=e.generateAddress=e.isValidChecksumAddress=e.toChecksumAddress=e.isValidAddress=e.Account=void 0;var u=s(r(100)),f=s(r(34)),c=o(r(69)),h=r(200),l=r(42),d=r(198),p=r(35),m=r(102),b=r(70),v=r(103),y=function(){function t(t,e,r,n){void 0===t&&(t=new f.default(0)),void 0===e&&(e=new f.default(0)),void 0===r&&(r=d.KECCAK256_RLP),void 0===n&&(n=d.KECCAK256_NULL),this.nonce=t,this.balance=e,this.stateRoot=r,this.codeHash=n,this._validate()}return t.fromAccountData=function(e){var r=e.nonce,n=e.balance,i=e.stateRoot,o=e.codeHash;return new t(r?new f.default(p.toBuffer(r)):void 0,n?new f.default(p.toBuffer(n)):void 0,i?p.toBuffer(i):void 0,o?p.toBuffer(o):void 0)},t.fromRlpSerializedAccount=function(t){var e=c.decode(t);if(!Array.isArray(e))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(e)},t.fromValuesArray=function(e){var r=a(e,4),n=r[0],i=r[1],o=r[2],s=r[3];return new t(new f.default(n),new f.default(i),o,s)},t.prototype._validate=function(){if(this.nonce.lt(new f.default(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new f.default(0)))throw new Error("balance must be greater than zero");if(32!==this.stateRoot.length)throw new Error("stateRoot must have a length of 32");if(32!==this.codeHash.length)throw new Error("codeHash must have a length of 32")},t.prototype.raw=function(){return[v.bnToUnpaddedBuffer(this.nonce),v.bnToUnpaddedBuffer(this.balance),this.stateRoot,this.codeHash]},t.prototype.serialize=function(){return c.encode(this.raw())},t.prototype.isContract=function(){return!this.codeHash.equals(d.KECCAK256_NULL)},t.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(d.KECCAK256_NULL)},t}();e.Account=y,e.isValidAddress=function(t){try{b.assertIsString(t)}catch(t){return!1}return/^0x[0-9a-fA-F]{40}$/.test(t)},e.toChecksumAddress=function(t,e){b.assertIsHexString(t);var r=l.stripHexPrefix(t).toLowerCase(),n="";e&&(n=v.toType(e,v.TypeOutput.BN).toString()+"0x");for(var i=m.keccakFromString(n+r).toString("hex"),o="0x",a=0;a=8?o+=r[a].toUpperCase():o+=r[a];return o},e.isValidChecksumAddress=function(t,r){return e.isValidAddress(t)&&e.toChecksumAddress(t,r)===t},e.generateAddress=function(e,r){b.assertIsBuffer(e),b.assertIsBuffer(r);var n=new f.default(r);return n.isZero()?m.rlphash([e,null]).slice(-20):m.rlphash([e,t.from(n.toArray())]).slice(-20)},e.generateAddress2=function(e,r,n){return b.assertIsBuffer(e),b.assertIsBuffer(r),b.assertIsBuffer(n),u.default(20===e.length),u.default(32===r.length),m.keccak256(t.concat([t.from("ff","hex"),e,r,m.keccak256(n)])).slice(-20)},e.isValidPrivate=function(t){return h.privateKeyVerify(t)},e.isValidPublic=function(e,r){return void 0===r&&(r=!1),b.assertIsBuffer(e),64===e.length?h.publicKeyVerify(t.concat([t.from([4]),e])):!!r&&h.publicKeyVerify(e)},e.pubToAddress=function(e,r){return void 0===r&&(r=!1),b.assertIsBuffer(e),r&&64!==e.length&&(e=t.from(h.publicKeyConvert(e,!1).slice(1))),u.default(64===e.length),m.keccak(e).slice(-20)},e.publicToAddress=e.pubToAddress,e.privateToPublic=function(e){return b.assertIsBuffer(e),t.from(h.publicKeyCreate(e,!1)).slice(1)},e.privateToAddress=function(t){return e.publicToAddress(e.privateToPublic(t))},e.importPublic=function(e){return b.assertIsBuffer(e),64!==e.length&&(e=t.from(h.publicKeyConvert(e,!1).slice(1))),e},e.zeroAddress=function(){var t=p.zeros(20);return p.bufferToHex(t)},e.isZeroAddress=function(t){try{b.assertIsString(t)}catch(t){return!1}return e.zeroAddress()===t}}).call(this,r(1).Buffer)},function(t,e,r){"use strict";var n=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(t){o(t)}}function s(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((n=n.apply(t,e||[])).next())}))},i=function(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]>6|192);else{if(i>55295&&i<56320){if(++n==t.length)return null;var o=t.charCodeAt(n);if(o<56320||o>57343)return null;r+=e((i=65536+((1023&i)<<10)+(1023&o))>>18|240),r+=e(i>>12&63|128)}else r+=e(i>>12|224);r+=e(i>>6&63|128)}r+=e(63&i|128)}}return r},toString:function(t){for(var e="",r=0,o=i(t);r127){if(a>191&&a<224){if(r>=o)return null;a=(31&a)<<6|63&n(t,r)}else if(a>223&&a<240){if(r+1>=o)return null;a=(15&a)<<12|(63&n(t,r))<<6|63&n(t,++r)}else{if(!(a>239&&a<248))return null;if(r+2>=o)return null;a=(7&a)<<18|(63&n(t,r))<<12|(63&n(t,++r))<<6|63&n(t,++r)}++r}if(a<=65535)e+=String.fromCharCode(a);else{if(!(a<=1114111))return null;a-=65536,e+=String.fromCharCode(a>>10|55296),e+=String.fromCharCode(1023&a|56320)}}return e},fromNumber:function(t){var e=t.toString(16);return e.length%2==0?"0x"+e:"0x0"+e},toNumber:function(t){return parseInt(t.slice(2),16)},fromNat:function(t){return"0x0"===t?"0x":t.length%2==0?t:"0x0"+t.slice(2)},toNat:function(t){return"0"===t[2]?"0x"+t.slice(3):t},fromArray:a,toArray:o,fromUint8Array:function(t){return a([].slice.call(t,0))},toUint8Array:function(t){return new Uint8Array(o(t))}}},function(t,e,r){"use strict";var n=r(205).version,i=r(27),o=r(280),a=r(61),s=r(149),u=r(487),f=r(488),c=r(16),h=function(){var t=this;i.packageInit(this,arguments),this.version=n,this.utils=c,this.eth=new o(this),this.shh=new u(this),this.bzz=new f(this);var e=this.setProvider;this.setProvider=function(r,n){return e.apply(t,arguments),t.eth.setRequestManager(t._requestManager),t.shh.setRequestManager(t._requestManager),t.bzz.setProvider(r),!0}};h.version=n,h.utils=c,h.modules={Eth:o,Net:a,Personal:s,Shh:u,Bzz:f},i.addProviders(h),t.exports=h},function(t){t.exports=JSON.parse('{"name":"web3","version":"1.5.2","description":"Ethereum JavaScript API","repository":"https://github.com/ethereum/web3.js","license":"LGPL-3.0","engines":{"node":">=8.0.0"},"main":"lib/index.js","bugs":{"url":"https://github.com/ethereum/web3.js/issues"},"keywords":["Ethereum","JavaScript","API"],"author":"ethereum.org","types":"types/index.d.ts","scripts":{"compile":"tsc -b tsconfig.json","dtslint":"dtslint --localTs ../../node_modules/typescript/lib types","postinstall":"echo \\"WARNING: the web3-shh and web3-bzz api will be deprecated in the next version\\""},"authors":[{"name":"Fabian Vogelsteller","email":"fabian@ethereum.org","homepage":"http://frozeman.de"},{"name":"Marek Kotewicz","email":"marek@parity.io","url":"https://github.com/debris"},{"name":"Marian Oancea","url":"https://github.com/cubedro"},{"name":"Gav Wood","email":"g@parity.io","homepage":"http://gavwood.com"},{"name":"Jeffery Wilcke","email":"jeffrey.wilcke@ethereum.org","url":"https://github.com/obscuren"}],"dependencies":{"web3-bzz":"1.5.2","web3-core":"1.5.2","web3-eth":"1.5.2","web3-eth-personal":"1.5.2","web3-net":"1.5.2","web3-shh":"1.5.2","web3-utils":"1.5.2"},"devDependencies":{"@types/node":"^12.12.6","dtslint":"^3.4.1","typescript":"^3.9.5","web3-core-helpers":"1.5.2"}}')},function(t,e,r){"use strict";var n=r(0)(r(2)),i=r(106).callbackify,o=r(10).errors,a=r(113),s=r(222),u=r(223),f=function t(e,r){this.provider=null,this.providers=t.providers,this.setProvider(e,r),this.subscriptions=new Map};f.givenProvider=u,f.providers={WebsocketProvider:r(224),HttpProvider:r(234),IpcProvider:r(250)},f.prototype.setProvider=function(t,e){var r=this;if(t&&"string"==typeof t&&this.providers)if(/^http(s)?:\/\//i.test(t))t=new this.providers.HttpProvider(t);else if(/^ws(s)?:\/\//i.test(t))t=new this.providers.WebsocketProvider(t);else if(t&&"object"===(0,n.default)(e)&&"function"==typeof e.connect)t=new this.providers.IpcProvider(t,e);else if(t)throw new Error("Can't autodetect provider for \""+t+'"');if(this.provider&&this.provider.connected&&this.clearSubscriptions(),this.provider=t||null,this.provider&&this.provider.on){"function"==typeof t.request?this.provider.on("message",(function(t){if(t&&"eth_subscription"===t.type&&t.data){var e=t.data;e.subscription&&r.subscriptions.has(e.subscription)&&r.subscriptions.get(e.subscription).callback(null,e.result)}})):this.provider.on("data",(function(t,e){(t=t||e).method&&t.params&&t.params.subscription&&r.subscriptions.has(t.params.subscription)&&r.subscriptions.get(t.params.subscription).callback(null,t.params.result)})),this.provider.on("connect",(function(){r.subscriptions.forEach((function(t){t.subscription.resubscribe()}))})),this.provider.on("error",(function(t){r.subscriptions.forEach((function(e){e.callback(t)}))}));var i=function(t){r._isCleanCloseEvent(t)&&!r._isIpcCloseError(t)||(r.subscriptions.forEach((function(e){e.callback(o.ConnectionCloseError(t)),r.subscriptions.delete(e.subscription.id)})),r.provider&&r.provider.emit&&r.provider.emit("error",o.ConnectionCloseError(t))),r.provider&&r.provider.emit&&r.provider.emit("end",t)};this.provider.on("close",i),this.provider.on("disconnect",i)}},f.prototype.send=function(t,e){if(e=e||function(){},!this.provider)return e(o.InvalidProvider());var r=t.method,n=t.params,s=a.toPayload(r,n),u=this._jsonrpcResultCallback(e,s);if(this.provider.request)i(this.provider.request.bind(this.provider))({method:r,params:n},e);else if(this.provider.sendAsync)this.provider.sendAsync(s,u);else{if(!this.provider.send)throw new Error("Provider does not have a request or send method to use.");this.provider.send(s,u)}},f.prototype.sendBatch=function(t,e){if(!this.provider)return e(o.InvalidProvider());var r=a.toBatchPayload(t);this.provider[this.provider.sendAsync?"sendAsync":"send"](r,(function(t,r){return t?e(t):Array.isArray(r)?void e(null,r):e(o.InvalidResponse(r))}))},f.prototype.addSubscription=function(t,e){if(!this.provider.on)throw new Error("The provider doesn't support subscriptions: "+this.provider.constructor.name);this.subscriptions.set(t.id,{callback:e,subscription:t})},f.prototype.removeSubscription=function(t,e){if(this.subscriptions.has(t)){var r=this.subscriptions.get(t).subscription.options.type;return this.subscriptions.delete(t),void this.send({method:r+"_unsubscribe",params:[t]},e)}"function"==typeof e&&e(null)},f.prototype.clearSubscriptions=function(t){try{var e=this;return this.subscriptions.size>0&&this.subscriptions.forEach((function(r,n){t&&"syncing"===r.name||e.removeSubscription(n)})),this.provider.reset&&this.provider.reset(),!0}catch(t){throw new Error("Error while clearing subscriptions: ".concat(t))}},f.prototype._isCleanCloseEvent=function(t){return"object"===(0,n.default)(t)&&([1e3].includes(t.code)||!0===t.wasClean)},f.prototype._isIpcCloseError=function(t){return"boolean"==typeof t&&t},f.prototype._jsonrpcResultCallback=function(t,e){return function(r,n){return n&&n.id&&e.id!==n.id?t(new Error("Wrong response id ".concat(n.id," (expected: ").concat(e.id,") in ").concat(JSON.stringify(e)))):r?t(r):n&&n.error?t(o.ErrorResponse(n)):a.isValidResponse(n)?void t(null,n.result):t(o.InvalidResponse(n))}},t.exports={Manager:f,BatchManager:s}},function(t,e,r){"use strict";var n=r(0)(r(2));t.exports=function(t){return t&&"object"===(0,n.default)(t)&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e,r){"use strict";"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,e,r){"use strict";var n=r(0)(r(2));t.exports={ErrorResponse:function(t){var e=t&&t.error&&t.error.message?t.error.message:JSON.stringify(t),r=t.error&&t.error.data?t.error.data:null,n=new Error("Returned error: "+e);return n.data=r,n},InvalidNumberOfParams:function(t,e,r){return new Error('Invalid number of parameters for "'+r+'". Got '+t+" expected "+e+"!")},InvalidConnection:function(t,e){return this.ConnectionError("CONNECTION ERROR: Couldn't connect to node "+t+".",e)},InvalidProvider:function(){return new Error("Provider not set or invalid")},InvalidResponse:function(t){var e=t&&t.error&&t.error.message?t.error.message:"Invalid JSON RPC response: "+JSON.stringify(t);return new Error(e)},ConnectionTimeout:function(t){return new Error("CONNECTION TIMEOUT: timeout of "+t+" ms achived")},ConnectionNotOpenError:function(t){return this.ConnectionError("connection not open on send()",t)},ConnectionCloseError:function(t){return"object"===(0,n.default)(t)&&t.code&&t.reason?this.ConnectionError("CONNECTION ERROR: The connection got closed with the close code `"+t.code+"` and the following reason string `"+t.reason+"`",t):new Error("CONNECTION ERROR: The connection closed unexpectedly")},MaxAttemptsReachedOnReconnectingError:function(){return new Error("Maximum number of reconnect attempts reached!")},PendingRequestsOnReconnectingError:function(){return new Error("CONNECTION ERROR: Provider started to reconnect before the response got received!")},ConnectionError:function(t,e){var r=new Error(t);return e&&(r.code=e.code,r.reason=e.reason),r},RevertInstructionError:function(t,e){var r=new Error("Your request got reverted with the following reason string: "+t);return r.reason=t,r.signature=e,r},TransactionRevertInstructionError:function(t,e,r){var n=new Error("Transaction has been reverted by the EVM:\n"+JSON.stringify(r,null,2));return n.reason=t,n.signature=e,n.receipt=r,n},TransactionError:function(t,e){var r=new Error(t);return r.receipt=e,r},NoContractAddressFoundError:function(t){return this.TransactionError("The transaction receipt didn't contain a contract address.",t)},ContractCodeNotStoredError:function(t){return this.TransactionError("The contract code couldn't be stored, please check your gas limit.",t)},TransactionRevertedWithoutReasonError:function(t){return this.TransactionError("Transaction has been reverted by the EVM:\n"+JSON.stringify(t,null,2),t)},TransactionOutOfGasError:function(t){return this.TransactionError("Transaction ran out of gas. Please provide more gas:\n"+JSON.stringify(t,null,2),t)},ResolverMethodMissingError:function(t,e){return new Error("The resolver at "+t+'does not implement requested method: "'+e+'".')},ContractMissingABIError:function(){return new Error("You must provide the json interface of the contract when instantiating a contract object.")},ContractOnceRequiresCallbackError:function(){return new Error("Once requires a callback as the second parameter.")},ContractEventDoesNotExistError:function(t){return new Error('Event "'+t+"\" doesn't exist in this contract.")},ContractReservedEventError:function(t){return new Error('The event "'+t+"\" is a reserved event name, you can't use it.")},ContractMissingDeployDataError:function(){return new Error('No "data" specified in neither the given options, nor the default options.')},ContractNoAddressDefinedError:function(){return new Error("This contract object doesn't have address set yet, please set an address first.")},ContractNoFromAddressDefinedError:function(){return new Error('No "from" address specified in neither the given options, nor the default options.')}}},function(t,e,r){"use strict";var n=r(0),i=n(r(44)),o=n(r(2));function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e2)throw new Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal points");var l=h[0],d=h[1];if(l||(l="0"),d||(d="0"),d.length>o)throw new Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal places");for(;d.length=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function f(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(t){return t instanceof a||null!==t&&"object"===(0,e.default)(t)&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)>0?t:e},a.min=function(t,e){return t.cmp(e)<0?t:e},a.prototype._init=function(t,r,n){if("number"==typeof t)return this._initNumber(t,r,n);if("object"===(0,e.default)(t))return this._initArray(t,r,n);"hex"===r&&(r=16),i(r===(0|r)&&r>=2&&r<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&o++,16===r?this._parseHex(t,o):this._parseBase(t,r,o),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),r,n)},a.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(i(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},a.prototype._initArray=function(t,e,r){if(i("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)a=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},a.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=6)i=u(t,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==e&&(i=u(t,e,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var f=1;f>>26,h=67108863&u,l=Math.min(f,e.length-1),d=Math.max(0,f-t.length+1);d<=l;d++){var p=f-d|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r.strip()}a.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var f=h[t],d=l[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(t);r=(p=p.idivn(d)).isZero()?m+r:c[f-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,e){return i(void 0!==s),this.toArrayLike(s,t,e)},a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},a.prototype.toArrayLike=function(t,e,r){var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,f=new t(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),f[s]=a;for(;s=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var r=t/26|0,n=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,b=0|a[2],v=8191&b,y=b>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],M=8191&k,S=k>>>13,A=0|a[5],x=8191&A,E=A>>>13,O=0|a[6],P=8191&O,B=O>>>13,T=0|a[7],R=8191&T,I=T>>>13,C=0|a[8],U=8191&C,j=C>>>13,N=0|a[9],L=8191&N,F=N>>>13,D=0|s[0],q=8191&D,H=D>>>13,z=0|s[1],K=8191&z,G=z>>>13,V=0|s[2],W=8191&V,Z=V>>>13,J=0|s[3],X=8191&J,Y=J>>>13,$=0|s[4],Q=8191&$,tt=$>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ft=st>>>13,ct=0|s[8],ht=8191&ct,lt=ct>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var bt=(f+(n=Math.imul(h,q))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(l,q)|0))<<13)|0;f=((o=Math.imul(l,H))+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,H))+Math.imul(m,q)|0,o=Math.imul(m,H);var vt=(f+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,G)|0)+Math.imul(l,K)|0))<<13)|0;f=((o=o+Math.imul(l,G)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),i=(i=Math.imul(v,H))+Math.imul(y,q)|0,o=Math.imul(y,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0;var yt=(f+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(l,W)|0))<<13)|0;f=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,H))+Math.imul(_,q)|0,o=Math.imul(_,H),n=n+Math.imul(v,K)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,Z)|0;var gt=(f+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(l,X)|0))<<13)|0;f=((o=o+Math.imul(l,Y)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(M,q),i=(i=Math.imul(M,H))+Math.imul(S,q)|0,o=Math.imul(S,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,Y)|0;var wt=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,Q)|0))<<13)|0;f=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,H))+Math.imul(E,q)|0,o=Math.imul(E,H),n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,Y)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var _t=(f+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(l,rt)|0))<<13)|0;f=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,H))+Math.imul(B,q)|0,o=Math.imul(B,H),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,G)|0,n=n+Math.imul(M,W)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0;var kt=(f+(n=n+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;f=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,H))+Math.imul(I,q)|0,o=Math.imul(I,H),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,G)|0,n=n+Math.imul(x,W)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,Z)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(f+(n=n+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ft)|0)+Math.imul(l,ut)|0))<<13)|0;f=((o=o+Math.imul(l,ft)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(U,q),i=(i=Math.imul(U,H))+Math.imul(j,q)|0,o=Math.imul(j,H),n=n+Math.imul(R,K)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(B,W)|0,o=o+Math.imul(B,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(E,X)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(v,ot)|0,i=(i=i+Math.imul(v,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,ft)|0;var St=(f+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;f=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(L,q),i=(i=Math.imul(L,H))+Math.imul(F,q)|0,o=Math.imul(F,H),n=n+Math.imul(U,K)|0,i=(i=i+Math.imul(U,G)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,Z)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(v,ut)|0,i=(i=i+Math.imul(v,ft)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0;var At=(f+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(l,pt)|0))<<13)|0;f=((o=o+Math.imul(l,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,G))+Math.imul(F,K)|0,o=Math.imul(F,G),n=n+Math.imul(U,W)|0,i=(i=i+Math.imul(U,Z)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,Z)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(E,rt)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ft)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ft)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0;var xt=(f+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;f=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(L,W),i=(i=Math.imul(L,Z))+Math.imul(F,W)|0,o=Math.imul(F,Z),n=n+Math.imul(U,X)|0,i=(i=i+Math.imul(U,Y)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(B,rt)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,n=n+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,ft)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ht)|0,o=o+Math.imul(_,lt)|0;var Et=(f+(n=n+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(y,pt)|0))<<13)|0;f=((o=o+Math.imul(y,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,Y))+Math.imul(F,X)|0,o=Math.imul(F,Y),n=n+Math.imul(U,Q)|0,i=(i=i+Math.imul(U,tt)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ft)|0)+Math.imul(E,ut)|0,o=o+Math.imul(E,ft)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,lt)|0;var Ot=(f+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;f=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,tt))+Math.imul(F,Q)|0,o=Math.imul(F,tt),n=n+Math.imul(U,rt)|0,i=(i=i+Math.imul(U,nt)|0)+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ft)|0)+Math.imul(B,ut)|0,o=o+Math.imul(B,ft)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(E,ht)|0,o=o+Math.imul(E,lt)|0;var Pt=(f+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(S,pt)|0))<<13)|0;f=((o=o+Math.imul(S,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(L,rt),i=(i=Math.imul(L,nt))+Math.imul(F,rt)|0,o=Math.imul(F,nt),n=n+Math.imul(U,ot)|0,i=(i=i+Math.imul(U,at)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ft)|0)+Math.imul(I,ut)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(B,ht)|0,o=o+Math.imul(B,lt)|0;var Bt=(f+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(E,pt)|0))<<13)|0;f=((o=o+Math.imul(E,mt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(L,ot),i=(i=Math.imul(L,at))+Math.imul(F,ot)|0,o=Math.imul(F,at),n=n+Math.imul(U,ut)|0,i=(i=i+Math.imul(U,ft)|0)+Math.imul(j,ut)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(R,ht)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(I,ht)|0,o=o+Math.imul(I,lt)|0;var Tt=(f+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(B,pt)|0))<<13)|0;f=((o=o+Math.imul(B,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(L,ut),i=(i=Math.imul(L,ft))+Math.imul(F,ut)|0,o=Math.imul(F,ft),n=n+Math.imul(U,ht)|0,i=(i=i+Math.imul(U,lt)|0)+Math.imul(j,ht)|0,o=o+Math.imul(j,lt)|0;var Rt=(f+(n=n+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(I,pt)|0))<<13)|0;f=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(L,ht),i=(i=Math.imul(L,lt))+Math.imul(F,ht)|0,o=Math.imul(F,lt);var It=(f+(n=n+Math.imul(U,pt)|0)|0)+((8191&(i=(i=i+Math.imul(U,mt)|0)+Math.imul(j,pt)|0))<<13)|0;f=((o=o+Math.imul(j,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var Ct=(f+(n=Math.imul(L,pt))|0)+((8191&(i=(i=Math.imul(L,mt))+Math.imul(F,pt)|0))<<13)|0;return f=((o=Math.imul(F,mt))+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,u[0]=bt,u[1]=vt,u[2]=yt,u[3]=gt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=St,u[9]=At,u[10]=xt,u[11]=Et,u[12]=Ot,u[13]=Pt,u[14]=Bt,u[15]=Tt,u[16]=Rt,u[17]=It,u[18]=Ct,0!==f&&(u[19]=f,r.length++),r};function m(t,e,r){return(new b).mulp(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(p=d),a.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):r<63?d(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):m(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n>=1;return n},b.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,e+=n/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}(t);if(0===e.length)return new a(1);for(var r=this,n=0;n=0);var e,r=t%26,n=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e=0),n=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,f=0;f=0&&(0!==c||f>=n);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,r){return i(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){i("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,n=1<=0);var e=t%26,r=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var n=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(i("number"==typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o;if(0===s)return this.strip();for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new a(null)).length=u+1,s.words=new Array(s.length);for(var f=0;f=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){return i(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(n=s.div.neg()),"div"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:n,mod:o}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:s.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e);var n,o,s},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,r=0,n=this.length-1;n>=0;n--)r=(e*r+(0|this.words[n]))%t;return r},a.prototype.idivn=function(t){i(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*e;this.words[r]=n/t|0,e=n%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new a(1),o=new a(0),s=new a(0),u=new a(1),f=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(c),o.isub(h)),n.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),n.isub(s),o.isub(u)):(r.isub(e),s.isub(n),u.isub(o))}return{a:s,b:u,gcd:r.iushln(f)}},a.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n,o=new a(1),s=new a(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(e.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(e.iushrn(f);f-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var h=0,l=1;0==(r.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s)):(r.isub(e),s.isub(o))}return(n=0===e.cmpn(1)?o:s).cmpn(0)<0&&n.iadd(t),n},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){i("number"==typeof t);var e=t%26,r=(t-e)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),i(t<=67108863,"Number is too big");var n=0|this.words[0];e=n===t?0:nt.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new M(t)},a.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):r.strip(),r},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},o(g,y),g.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n>>22,i=o}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},g.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},a._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new g;else if("p224"===t)e=new w;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new k}return v[t]=e,e},M.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){i(0==(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);i(!n.isZero());var s=new a(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,n),l=this.pow(t,n.addn(1).iushrn(1)),d=this.pow(t,n),p=o;0!==d.cmp(s);){for(var m=d,b=0;0!==m.cmp(s);b++)m=m.redSqr();i(b=0;n--){for(var f=e.words[n],c=u-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}u=26}return i},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new S(t)},o(S,M),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t)}).call(this,r(17)(t))},function(t,e,r){"use strict";e.byteLength=function(t){var e=f(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=f(t),a=n[0],s=n[1],u=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,s)),c=0,h=s>0?a-4:a;for(r=0;r>16&255,u[c++]=e>>8&255,u[c++]=255&e;2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,u[c++]=255&e);1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e);return u},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=0,s=r-i;as?s:a+16383));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,r){for(var i,o,a=[],s=e;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e,r){"use strict"; - /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,c=-7,h=r?i-1:0,l=r?-1:1,d=t[e+h];for(h+=l,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=l,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+t[e+h],h+=l,c-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=f}return(d?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,u,f=8*o-i-1,c=(1<>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?l/u:l*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;t[r+d]=255&a,d+=p,a/=256,f-=8);t[r+d-p]|=128*m}},function(t,e,r){"use strict";(function(t){var e=r(0)(r(2));!function(t,n){function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,e,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"===(0,e.default)(t)?t.exports=a:(void 0).BN=a,a.BN=a,a.wordSize=26;try{s=r(1).Buffer}catch(t){}function u(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function f(t,e,r,n){for(var i=0,o=Math.min(t.length,r),a=e;a=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(t){return t instanceof a||null!==t&&"object"===(0,e.default)(t)&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)>0?t:e},a.min=function(t,e){return t.cmp(e)<0?t:e},a.prototype._init=function(t,r,n){if("number"==typeof t)return this._initNumber(t,r,n);if("object"===(0,e.default)(t))return this._initArray(t,r,n);"hex"===r&&(r=16),i(r===(0|r)&&r>=2&&r<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&o++,16===r?this._parseHex(t,o):this._parseBase(t,r,o),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),r,n)},a.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(i(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},a.prototype._initArray=function(t,e,r){if(i("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)a=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},a.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=6)i=u(t,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==e&&(i=u(t,e,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var f=1;f>>26,h=67108863&u,l=Math.min(f,e.length-1),d=Math.max(0,f-t.length+1);d<=l;d++){var p=f-d|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r.strip()}a.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?c[6-u.length]+u+r:u+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var f=h[t],d=l[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(t);r=(p=p.idivn(d)).isZero()?m+r:c[f-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,e){return i(void 0!==s),this.toArrayLike(s,t,e)},a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},a.prototype.toArrayLike=function(t,e,r){var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,f=new t(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),f[s]=a;for(;s=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var r=t/26|0,n=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,b=0|a[2],v=8191&b,y=b>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],M=8191&k,S=k>>>13,A=0|a[5],x=8191&A,E=A>>>13,O=0|a[6],P=8191&O,B=O>>>13,T=0|a[7],R=8191&T,I=T>>>13,C=0|a[8],U=8191&C,j=C>>>13,N=0|a[9],L=8191&N,F=N>>>13,D=0|s[0],q=8191&D,H=D>>>13,z=0|s[1],K=8191&z,G=z>>>13,V=0|s[2],W=8191&V,Z=V>>>13,J=0|s[3],X=8191&J,Y=J>>>13,$=0|s[4],Q=8191&$,tt=$>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ft=st>>>13,ct=0|s[8],ht=8191&ct,lt=ct>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var bt=(f+(n=Math.imul(h,q))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(l,q)|0))<<13)|0;f=((o=Math.imul(l,H))+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,H))+Math.imul(m,q)|0,o=Math.imul(m,H);var vt=(f+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,G)|0)+Math.imul(l,K)|0))<<13)|0;f=((o=o+Math.imul(l,G)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),i=(i=Math.imul(v,H))+Math.imul(y,q)|0,o=Math.imul(y,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0;var yt=(f+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(l,W)|0))<<13)|0;f=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,H))+Math.imul(_,q)|0,o=Math.imul(_,H),n=n+Math.imul(v,K)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,Z)|0;var gt=(f+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(l,X)|0))<<13)|0;f=((o=o+Math.imul(l,Y)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(M,q),i=(i=Math.imul(M,H))+Math.imul(S,q)|0,o=Math.imul(S,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,Y)|0;var wt=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,Q)|0))<<13)|0;f=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,H))+Math.imul(E,q)|0,o=Math.imul(E,H),n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,Y)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var _t=(f+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(l,rt)|0))<<13)|0;f=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,H))+Math.imul(B,q)|0,o=Math.imul(B,H),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,G)|0,n=n+Math.imul(M,W)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0;var kt=(f+(n=n+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;f=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,H))+Math.imul(I,q)|0,o=Math.imul(I,H),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,G)|0,n=n+Math.imul(x,W)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,Z)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(f+(n=n+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ft)|0)+Math.imul(l,ut)|0))<<13)|0;f=((o=o+Math.imul(l,ft)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(U,q),i=(i=Math.imul(U,H))+Math.imul(j,q)|0,o=Math.imul(j,H),n=n+Math.imul(R,K)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(B,W)|0,o=o+Math.imul(B,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(E,X)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(v,ot)|0,i=(i=i+Math.imul(v,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,ft)|0;var St=(f+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;f=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(L,q),i=(i=Math.imul(L,H))+Math.imul(F,q)|0,o=Math.imul(F,H),n=n+Math.imul(U,K)|0,i=(i=i+Math.imul(U,G)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,Z)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(v,ut)|0,i=(i=i+Math.imul(v,ft)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0;var At=(f+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(l,pt)|0))<<13)|0;f=((o=o+Math.imul(l,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,G))+Math.imul(F,K)|0,o=Math.imul(F,G),n=n+Math.imul(U,W)|0,i=(i=i+Math.imul(U,Z)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,Z)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(E,rt)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ft)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ft)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0;var xt=(f+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;f=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(L,W),i=(i=Math.imul(L,Z))+Math.imul(F,W)|0,o=Math.imul(F,Z),n=n+Math.imul(U,X)|0,i=(i=i+Math.imul(U,Y)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(B,rt)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,n=n+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,ft)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ht)|0,o=o+Math.imul(_,lt)|0;var Et=(f+(n=n+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(y,pt)|0))<<13)|0;f=((o=o+Math.imul(y,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,Y))+Math.imul(F,X)|0,o=Math.imul(F,Y),n=n+Math.imul(U,Q)|0,i=(i=i+Math.imul(U,tt)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ft)|0)+Math.imul(E,ut)|0,o=o+Math.imul(E,ft)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,lt)|0;var Ot=(f+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;f=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,tt))+Math.imul(F,Q)|0,o=Math.imul(F,tt),n=n+Math.imul(U,rt)|0,i=(i=i+Math.imul(U,nt)|0)+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ft)|0)+Math.imul(B,ut)|0,o=o+Math.imul(B,ft)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(E,ht)|0,o=o+Math.imul(E,lt)|0;var Pt=(f+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(S,pt)|0))<<13)|0;f=((o=o+Math.imul(S,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(L,rt),i=(i=Math.imul(L,nt))+Math.imul(F,rt)|0,o=Math.imul(F,nt),n=n+Math.imul(U,ot)|0,i=(i=i+Math.imul(U,at)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ft)|0)+Math.imul(I,ut)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(B,ht)|0,o=o+Math.imul(B,lt)|0;var Bt=(f+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(E,pt)|0))<<13)|0;f=((o=o+Math.imul(E,mt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(L,ot),i=(i=Math.imul(L,at))+Math.imul(F,ot)|0,o=Math.imul(F,at),n=n+Math.imul(U,ut)|0,i=(i=i+Math.imul(U,ft)|0)+Math.imul(j,ut)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(R,ht)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(I,ht)|0,o=o+Math.imul(I,lt)|0;var Tt=(f+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(B,pt)|0))<<13)|0;f=((o=o+Math.imul(B,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(L,ut),i=(i=Math.imul(L,ft))+Math.imul(F,ut)|0,o=Math.imul(F,ft),n=n+Math.imul(U,ht)|0,i=(i=i+Math.imul(U,lt)|0)+Math.imul(j,ht)|0,o=o+Math.imul(j,lt)|0;var Rt=(f+(n=n+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(I,pt)|0))<<13)|0;f=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(L,ht),i=(i=Math.imul(L,lt))+Math.imul(F,ht)|0,o=Math.imul(F,lt);var It=(f+(n=n+Math.imul(U,pt)|0)|0)+((8191&(i=(i=i+Math.imul(U,mt)|0)+Math.imul(j,pt)|0))<<13)|0;f=((o=o+Math.imul(j,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var Ct=(f+(n=Math.imul(L,pt))|0)+((8191&(i=(i=Math.imul(L,mt))+Math.imul(F,pt)|0))<<13)|0;return f=((o=Math.imul(F,mt))+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,u[0]=bt,u[1]=vt,u[2]=yt,u[3]=gt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=St,u[9]=At,u[10]=xt,u[11]=Et,u[12]=Ot,u[13]=Pt,u[14]=Bt,u[15]=Tt,u[16]=Rt,u[17]=It,u[18]=Ct,0!==f&&(u[19]=f,r.length++),r};function m(t,e,r){return(new b).mulp(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(p=d),a.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):r<63?d(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):m(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n>=1;return n},b.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,e+=n/67108864|0,e+=o>>>26,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}(t);if(0===e.length)return new a(1);for(var r=this,n=0;n=0);var e,r=t%26,n=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e=0),n=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,f=0;f=0&&(0!==c||f>=n);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,r){return i(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){i("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,n=1<=0);var e=t%26,r=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var n=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(i("number"==typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o;if(0===s)return this.strip();for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new a(null)).length=u+1,s.words=new Array(s.length);for(var f=0;f=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){return i(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(n=s.div.neg()),"div"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:n,mod:o}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:s.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e);var n,o,s},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,r=0,n=this.length-1;n>=0;n--)r=(e*r+(0|this.words[n]))%t;return r},a.prototype.idivn=function(t){i(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*e;this.words[r]=n/t|0,e=n%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new a(1),o=new a(0),s=new a(0),u=new a(1),f=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(c),o.isub(h)),n.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),n.isub(s),o.isub(u)):(r.isub(e),s.isub(n),u.isub(o))}return{a:s,b:u,gcd:r.iushln(f)}},a.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n,o=new a(1),s=new a(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(e.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(e.iushrn(f);f-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var h=0,l=1;0==(r.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s)):(r.isub(e),s.isub(o))}return(n=0===e.cmpn(1)?o:s).cmpn(0)<0&&n.iadd(t),n},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){i("number"==typeof t);var e=t%26,r=(t-e)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),i(t<=67108863,"Number is too big");var n=0|this.words[0];e=n===t?0:nt.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new M(t)},a.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):r.strip(),r},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},o(g,y),g.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n>>22,i=o}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},g.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},a._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new g;else if("p224"===t)e=new w;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new k}return v[t]=e,e},M.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){i(0==(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);i(!n.isZero());var s=new a(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,n),l=this.pow(t,n.addn(1).iushrn(1)),d=this.pow(t,n),p=o;0!==d.cmp(s);){for(var m=d,b=0;0!==m.cmp(s);b++)m=m.redSqr();i(b=0;n--){for(var f=e.words[n],c=u-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}u=26}return i},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new S(t)},o(S,M),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t)}).call(this,r(17)(t))},function(t,e){},function(t,e,r){"use strict"; - /*! https://mths.be/utf8js v3.0.0 by @mathias */!function(t){var e,r,n,i=String.fromCharCode;function o(t){for(var e,r,n=[],i=0,o=t.length;i=55296&&e<=56319&&i=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function s(t,e){return i(t>>e&63|128)}function u(t){if(0==(4294967168&t))return i(t);var e="";return 0==(4294965248&t)?e=i(t>>6&31|192):0==(4294901760&t)?(a(t),e=i(t>>12&15|224),e+=s(t,6)):0==(4292870144&t)&&(e=i(t>>18&7|240),e+=s(t,12),e+=s(t,6)),e+=i(63&t|128)}function f(){if(n>=r)throw Error("Invalid byte index");var t=255&e[n];if(n++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function c(){var t,i;if(n>r)throw Error("Invalid byte index");if(n==r)return!1;if(t=255&e[n],n++,0==(128&t))return t;if(192==(224&t)){if((i=(31&t)<<6|f())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if((i=(15&t)<<12|f()<<6|f())>=2048)return a(i),i;throw Error("Invalid continuation byte")}if(240==(248&t)&&(i=(7&t)<<18|f()<<12|f()<<6|f())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}t.version="3.0.0",t.encode=function(t){for(var e=o(t),r=e.length,n=-1,i="";++n65535&&(o+=i((e-=65536)>>>10&1023|55296),e=56320|1023&e),o+=i(e);return o}(s)}}(e)},function(t,e,r){"use strict";var n=r(0)(r(2));Object.defineProperty(e,"__esModule",{value:!0});var i=r(219);function o(t){return"string"==typeof t&&(!!/^(0x)?[0-9a-f]{512}$/i.test(t)&&!(!/^(0x)?[0-9a-f]{512}$/.test(t)&&!/^(0x)?[0-9A-F]{512}$/.test(t)))}function a(t,e){"object"===(0,n.default)(e)&&e.constructor===Uint8Array&&(e=i.bytesToHex(e));for(var r=i.keccak256(e).replace("0x",""),o=0;o<12;o+=4){var a=(parseInt(r.substr(o,2),16)<<8)+parseInt(r.substr(o+2,2),16)&2047,u=1<=48&&t<=57)return t-48;if(t>=65&&t<=70)return t-55;if(t>=97&&t<=102)return t-87;throw new Error("invalid bloom")}function u(t){return"string"==typeof t&&(!!/^(0x)?[0-9a-f]{64}$/i.test(t)&&!(!/^(0x)?[0-9a-f]{64}$/.test(t)&&!/^(0x)?[0-9A-F]{64}$/.test(t)))}function f(t){return"string"==typeof t&&(!!t.match(/^(0x)?[0-9a-fA-F]{40}$/)||!!t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/))}e.isBloom=o,e.isInBloom=a,e.isUserEthereumAddressInBloom=function(t,e){if(!o(t))throw new Error("Invalid bloom given");if(!f(e))throw new Error('Invalid ethereum address given: "'.concat(e,'"'));return a(t,i.padLeft(e,64))},e.isContractAddressInBloom=function(t,e){if(!o(t))throw new Error("Invalid bloom given");if(!f(e))throw new Error('Invalid contract address given: "'.concat(e,'"'));return a(t,e)},e.isTopicInBloom=function(t,e){if(!o(t))throw new Error("Invalid bloom given");if(!u(e))throw new Error("Invalid topic");return a(t,e)},e.isTopic=u,e.isAddress=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(220);function i(t){if(null==t)throw new Error("cannot convert null value to array");if("string"==typeof t){var e=t.match(/^(0x)?[0-9a-fA-F]*$/);if(!e)throw new Error("invalid hexidecimal string");if("0x"!==e[1])throw new Error("hex string must have 0x prefix");(t=t.substring(2)).length%2&&(t="0"+t);for(var r=[],n=0;n=256||parseInt(String(r))!=r)return!1}return!0}(t))return o(new Uint8Array(t));throw new Error("invalid arrayify value")}function o(t){var e=arguments;return void 0!==t.slice||(t.slice=function(){var r=Array.prototype.slice.call(e);return o(new Uint8Array(Array.prototype.slice.apply(t,r)))}),t}e.keccak256=function(t){return"0x"+n.keccak_256(i(t))},e.padLeft=function(t,e){var r=/^0x/i.test(t)||"number"==typeof t,n=e-(t=t.toString().replace(/^0x/i,"")).length+1>=0?e-t.length+1:0;return(r?"0x":"")+new Array(n).join("0")+t},e.bytesToHex=function(t){for(var e=[],r=0;r>>4).toString(16)),e.push((15&t[r]).toString(16));return"0x".concat(e.join("").replace(/^0+/,""))},e.toByteArray=i},function(t,e,r){"use strict";(function(t,n,i){var o,a=r(0)(r(2)); - /** - * [js-sha3]{@link https://github.com/emn178/js-sha3} - * - * @version 0.8.0 - * @author Chen, Yi-Cyuan [emn178@gmail.com] - * @copyright Chen, Yi-Cyuan 2015-2018 - * @license MIT - */ - !function(){var s="input is invalid type",u="object"===("undefined"==typeof window?"undefined":(0,a.default)(window)),f=u?window:{};f.JS_SHA3_NO_WINDOW&&(u=!1);var c=!u&&"object"===("undefined"==typeof self?"undefined":(0,a.default)(self));!f.JS_SHA3_NO_NODE_JS&&"object"===(void 0===t?"undefined":(0,a.default)(t))&&t.versions&&t.versions.node?f=n:c&&(f=self);var h=!f.JS_SHA3_NO_COMMON_JS&&"object"===(0,a.default)(i)&&i.exports,l=r(72),d=!f.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,p="0123456789abcdef".split(""),m=[4,1024,262144,67108864],b=[0,8,16,24],v=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],y=[224,256,384,512],g=[128,256],w=["hex","buffer","arrayBuffer","array","digest"],_={128:168,256:136};!f.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!d||!f.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"===(0,a.default)(t)&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var k=function(t,e,r){return function(n){return new N(t,e,t).update(n)[r]()}},M=function(t,e,r){return function(n,i){return new N(t,e,i).update(n)[r]()}},S=function(t,e,r){return function(e,n,i,o){return P["cshake"+t].update(e,n,i,o)[r]()}},A=function(t,e,r){return function(e,n,i,o){return P["kmac"+t].update(e,n,i,o)[r]()}},x=function(t,e,r,n){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function L(t,e,r){N.call(this,t,e,r)}N.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e,r=(0,a.default)(t);if("string"!==r){if("object"!==r)throw new Error(s);if(null===t)throw new Error(s);if(d&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||d&&ArrayBuffer.isView(t)))throw new Error(s);e=!0}for(var n,i,o=this.blocks,u=this.byteCount,f=t.length,c=this.blockCount,h=0,l=this.s;h>2]|=t[h]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[n>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=u){for(this.start=n-u,this.block=o[c],n=0;n>=8);r>0;)i.unshift(r),r=255&(t>>=8),++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},N.prototype.encodeString=function(t){var e,r=(0,a.default)(t);if("string"!==r){if("object"!==r)throw new Error(s);if(null===t)throw new Error(s);if(d&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||d&&ArrayBuffer.isView(t)))throw new Error(s);e=!0}var n=0,i=t.length;if(e)n=i;else for(var o=0;o=57344?n+=3:(u=65536+((1023&u)<<10|1023&t.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(t),n},N.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e>4&15]+p[15&t]+p[t>>12&15]+p[t>>8&15]+p[t>>20&15]+p[t>>16&15]+p[t>>28&15]+p[t>>24&15];a%e==0&&(F(r),o=0)}return i&&(t=r[o],s+=p[t>>4&15]+p[15&t],i>1&&(s+=p[t>>12&15]+p[t>>8&15]),i>2&&(s+=p[t>>20&15]+p[t>>16&15])),s},N.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(t);a>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;s%r==0&&F(n)}return o&&(t=s<<2,e=n[a],u[t]=255&e,o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u},L.prototype=new N,L.prototype.finalize=function(){return this.encode(this.outputBits,!0),N.prototype.finalize.call(this)};var F=function(t){var e,r,n,i,o,a,s,u,f,c,h,l,d,p,m,b,y,g,w,_,k,M,S,A,x,E,O,P,B,T,R,I,C,U,j,N,L,F,D,q,H,z,K,G,V,W,Z,J,X,Y,$,Q,tt,et,rt,nt,it,ot,at,st,ut,ft,ct;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],f=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],e=(l=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|s>>>31),r=(d=t[9]^t[19]^t[29]^t[39]^t[49])^(s<<1|a>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(u<<1|f>>>31),r=o^(f<<1|u>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=a^(c<<1|h>>>31),r=s^(h<<1|c>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=u^(l<<1|d>>>31),r=f^(d<<1|l>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=c^(i<<1|o>>>31),r=h^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,p=t[0],m=t[1],W=t[11]<<4|t[10]>>>28,Z=t[10]<<4|t[11]>>>28,P=t[20]<<3|t[21]>>>29,B=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,z=t[40]<<18|t[41]>>>14,K=t[41]<<18|t[40]>>>14,U=t[2]<<1|t[3]>>>31,j=t[3]<<1|t[2]>>>31,b=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,J=t[22]<<10|t[23]>>>22,X=t[23]<<10|t[22]>>>22,T=t[33]<<13|t[32]>>>19,R=t[32]<<13|t[33]>>>19,ft=t[42]<<2|t[43]>>>30,ct=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,N=t[14]<<6|t[15]>>>26,L=t[15]<<6|t[14]>>>26,g=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,Y=t[34]<<15|t[35]>>>17,$=t[35]<<15|t[34]>>>17,I=t[45]<<29|t[44]>>>3,C=t[44]<<29|t[45]>>>3,A=t[6]<<28|t[7]>>>4,x=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,F=t[26]<<25|t[27]>>>7,D=t[27]<<25|t[26]>>>7,_=t[36]<<21|t[37]>>>11,k=t[37]<<21|t[36]>>>11,Q=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,G=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,E=t[18]<<20|t[19]>>>12,O=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,at=t[28]<<7|t[29]>>>25,q=t[38]<<8|t[39]>>>24,H=t[39]<<8|t[38]>>>24,M=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=p^~b&g,t[1]=m^~y&w,t[10]=A^~E&P,t[11]=x^~O&B,t[20]=U^~N&F,t[21]=j^~L&D,t[30]=G^~W&J,t[31]=V^~Z&X,t[40]=et^~nt&ot,t[41]=rt^~it&at,t[2]=b^~g&_,t[3]=y^~w&k,t[12]=E^~P&T,t[13]=O^~B&R,t[22]=N^~F&q,t[23]=L^~D&H,t[32]=W^~J&Y,t[33]=Z^~X&$,t[42]=nt^~ot&st,t[43]=it^~at&ut,t[4]=g^~_&M,t[5]=w^~k&S,t[14]=P^~T&I,t[15]=B^~R&C,t[24]=F^~q&z,t[25]=D^~H&K,t[34]=J^~Y&Q,t[35]=X^~$&tt,t[44]=ot^~st&ft,t[45]=at^~ut&ct,t[6]=_^~M&p,t[7]=k^~S&m,t[16]=T^~I&A,t[17]=R^~C&x,t[26]=q^~z&U,t[27]=H^~K&j,t[36]=Y^~Q&G,t[37]=$^~tt&V,t[46]=st^~ft&et,t[47]=ut^~ct&rt,t[8]=M^~p&b,t[9]=S^~m&y,t[18]=I^~A&E,t[19]=C^~x&O,t[28]=z^~U&N,t[29]=K^~j&L,t[38]=Q^~G&W,t[39]=tt^~V&Z,t[48]=ft^~et&nt,t[49]=ct^~rt&it,t[0]^=v[n],t[1]^=v[n+1]};if(h)i.exports=P;else{for(T=0;T32||n256)throw new Error("Invalid uint"+n+" size");if((s=a(e)).bitLength()>n)throw new Error("Supplied uint exceeds width: "+n+" vs "+s.bitLength());if(s.lt(new i(0)))throw new Error("Supplied uint "+s.toString()+" is negative");return n?o.leftPad(s.toString("hex"),n/8*2):s}if(t.startsWith("int")){if(n%8||n<8||n>256)throw new Error("Invalid int"+n+" size");if((s=a(e)).bitLength()>n)throw new Error("Supplied int exceeds width: "+n+" vs "+s.bitLength());return s.lt(new i(0))?s.toTwos(n).toString("hex"):n?o.leftPad(s.toString("hex"),n/8*2):s}throw new Error("Unsupported or invalid type: "+t)},u=function(t){if(Array.isArray(t))throw new Error("Autodetection of array types is not supported.");var e,r,a="";if(t&&"object"===(0,n.default)(t)&&(t.hasOwnProperty("v")||t.hasOwnProperty("t")||t.hasOwnProperty("value")||t.hasOwnProperty("type"))?(e=t.hasOwnProperty("t")?t.t:t.type,a=t.hasOwnProperty("v")?t.v:t.value):(e=o.toHex(t,!0),a=o.toHex(t),e.startsWith("int")||e.startsWith("uint")||(e="bytes")),!e.startsWith("int")&&!e.startsWith("uint")||"string"!=typeof a||/^(-)?0x/i.test(a)||(a=new i(a)),Array.isArray(a)){if((r=function(t){var e=/^\D+\d*\[(\d+)\]$/.exec(t);return e?parseInt(e[1],10):null}(e))&&a.length!==r)throw new Error(e+" is not matching the given array "+JSON.stringify(a));r=a.length}return Array.isArray(a)?a.map((function(t){return s(e,t,r).toString("hex").replace("0x","")})).join(""):s(e,a,r).toString("hex").replace("0x","")};t.exports={soliditySha3:function(){var t=Array.prototype.slice.call(arguments),e=t.map(u);return o.sha3("0x"+e.join(""))},soliditySha3Raw:function(){return o.sha3Raw("0x"+Array.prototype.slice.call(arguments).map(u).join(""))},encodePacked:function(){var t=Array.prototype.slice.call(arguments),e=t.map(u);return"0x"+e.join("").toLowerCase()}}},function(t,e,r){"use strict";var n=r(113),i=r(10).errors,o=function(t){this.requestManager=t,this.requests=[]};o.prototype.add=function(t){this.requests.push(t)},o.prototype.execute=function(){var t=this.requests;this.requestManager.sendBatch(t,(function(e,r){r=r||[],t.map((function(t,e){return r[e]||{}})).forEach((function(e,r){if(t[r].callback){if(e&&e.error)return t[r].callback(i.ErrorResponse(e));if(!n.isValidResponse(e))return t[r].callback(i.InvalidResponse(e));try{t[r].callback(null,t[r].format?t[r].format(e.result):e.result)}catch(e){t[r].callback(e)}}}))}))},t.exports=o},function(t,e,r){"use strict";var n,i=null;try{n=Function("return this")()}catch(t){n=window}void 0!==n.ethereum?i=n.ethereum:void 0!==n.web3&&n.web3.currentProvider&&(n.web3.currentProvider.sendAsync&&(n.web3.currentProvider.send=n.web3.currentProvider.sendAsync,delete n.web3.currentProvider.sendAsync),!n.web3.currentProvider.on&&n.web3.currentProvider.connection&&"ipcProviderWrapper"===n.web3.currentProvider.connection.constructor.name&&(n.web3.currentProvider.on=function(t,e){if("function"!=typeof e)throw new Error("The second parameter callback must be a function.");switch(t){case"data":this.connection.on("data",(function(t){var r="";t=t.toString();try{r=JSON.parse(t)}catch(r){return e(new Error("Couldn't parse response data"+t))}r.id||-1===r.method.indexOf("_subscription")||e(null,r)}));break;default:this.connection.on(t,e)}}),i=n.web3.currentProvider),t.exports=i},function(t,e,r){"use strict";var n=r(73),i=r(225),o=r(10).errors,a=r(230).w3cwebsocket,s=function(t,e){n.call(this),e=e||{},this.url=t,this._customTimeout=e.timeout||15e3,this.headers=e.headers||{},this.protocol=e.protocol||void 0,this.reconnectOptions=Object.assign({auto:!1,delay:5e3,maxAttempts:!1,onTimeout:!1},e.reconnect),this.clientConfig=e.clientConfig||void 0,this.requestOptions=e.requestOptions||void 0,this.DATA="data",this.CLOSE="close",this.ERROR="error",this.CONNECT="connect",this.RECONNECT="reconnect",this.connection=null,this.requestQueue=new Map,this.responseQueue=new Map,this.reconnectAttempts=0,this.reconnecting=!1;var r=i.parseURL(t);r.username&&r.password&&(this.headers.authorization="Basic "+i.btoa(r.username+":"+r.password)),r.auth&&(this.headers.authorization="Basic "+i.btoa(r.auth)),Object.defineProperty(this,"connected",{get:function(){return this.connection&&this.connection.readyState===this.connection.OPEN},enumerable:!0}),this.connect()};(s.prototype=Object.create(n.prototype)).constructor=s,s.prototype.connect=function(){this.connection=new a(this.url,this.protocol,void 0,this.headers,this.requestOptions,this.clientConfig),this._addSocketListeners()},s.prototype._onMessage=function(t){var e=this;this._parseResponse("string"==typeof t.data?t.data:"").forEach((function(t){if(t.method&&-1!==t.method.indexOf("_subscription"))e.emit(e.DATA,t);else{var r=t.id;Array.isArray(t)&&(r=t[0].id),e.responseQueue.has(r)&&(void 0!==e.responseQueue.get(r).callback&&e.responseQueue.get(r).callback(!1,t),e.responseQueue.delete(r))}}))},s.prototype._onConnect=function(){if(this.emit(this.CONNECT),this.reconnectAttempts=0,this.reconnecting=!1,this.requestQueue.size>0){var t=this;this.requestQueue.forEach((function(e,r){t.send(e.payload,e.callback),t.requestQueue.delete(r)}))}},s.prototype._onClose=function(t){var e=this;!this.reconnectOptions.auto||[1e3,1001].includes(t.code)&&!1!==t.wasClean?(this.emit(this.CLOSE,t),this.requestQueue.size>0&&this.requestQueue.forEach((function(r,n){r.callback(o.ConnectionNotOpenError(t)),e.requestQueue.delete(n)})),this.responseQueue.size>0&&this.responseQueue.forEach((function(r,n){r.callback(o.InvalidConnection("on WS",t)),e.responseQueue.delete(n)})),this._removeSocketListeners(),this.removeAllListeners()):this.reconnect()},s.prototype._addSocketListeners=function(){this.connection.addEventListener("message",this._onMessage.bind(this)),this.connection.addEventListener("open",this._onConnect.bind(this)),this.connection.addEventListener("close",this._onClose.bind(this))},s.prototype._removeSocketListeners=function(){this.connection.removeEventListener("message",this._onMessage),this.connection.removeEventListener("open",this._onConnect),this.connection.removeEventListener("close",this._onClose)},s.prototype._parseResponse=function(t){var e=this,r=[];return t.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach((function(t){e.lastChunk&&(t=e.lastChunk+t);var n=null;try{n=JSON.parse(t)}catch(r){return e.lastChunk=t,clearTimeout(e.lastChunkTimeout),void(e.lastChunkTimeout=setTimeout((function(){e.reconnectOptions.auto&&e.reconnectOptions.onTimeout?e.reconnect():(e.emit(e.ERROR,o.ConnectionTimeout(e._customTimeout)),e.requestQueue.size>0&&e.requestQueue.forEach((function(t,r){t.callback(o.ConnectionTimeout(e._customTimeout)),e.requestQueue.delete(r)})))}),e._customTimeout))}clearTimeout(e.lastChunkTimeout),e.lastChunk=null,n&&r.push(n)})),r},s.prototype.send=function(t,e){var r=t.id,n={payload:t,callback:e};if(Array.isArray(t)&&(r=t[0].id),this.connection.readyState===this.connection.CONNECTING||this.reconnecting)this.requestQueue.set(r,n);else{if(this.connection.readyState!==this.connection.OPEN)return this.requestQueue.delete(r),this.emit(this.ERROR,o.ConnectionNotOpenError()),void n.callback(o.ConnectionNotOpenError());this.responseQueue.set(r,n),this.requestQueue.delete(r);try{this.connection.send(JSON.stringify(n.payload))}catch(t){n.callback(t),this.responseQueue.delete(r)}}},s.prototype.reset=function(){this.responseQueue.clear(),this.requestQueue.clear(),this.removeAllListeners(),this._removeSocketListeners(),this._addSocketListeners()},s.prototype.disconnect=function(t,e){this._removeSocketListeners(),this.connection.close(t||1e3,e)},s.prototype.supportsSubscriptions=function(){return!0},s.prototype.reconnect=function(){var t=this;this.reconnecting=!0,this.responseQueue.size>0&&this.responseQueue.forEach((function(e,r){e.callback(o.PendingRequestsOnReconnectingError()),t.responseQueue.delete(r)})),!this.reconnectOptions.maxAttempts||this.reconnectAttempts0&&this.requestQueue.forEach((function(e,r){e.callback(o.MaxAttemptsReachedOnReconnectingError()),t.requestQueue.delete(r)})))},t.exports=s},function(t,e,r){"use strict";(function(e,n){var i="[object process]"===Object.prototype.toString.call(void 0!==e?e:0),o="undefined"!=typeof navigator&&"ReactNative"===navigator.product,a=null,s=null;if(i||o){a=function(t){return n.from(t).toString("base64")};var u=r(45);if(u.URL){var f=u.URL;s=function(t){return new f(t)}}else s=r(45).parse}else a=btoa.bind(window),s=function(t){return new URL(t)};t.exports={parseURL:s,btoa:a}}).call(this,r(6),r(1).Buffer)},function(t,e,r){"use strict";var n=r(0)(r(2));t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"===(0,n.default)(t)&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e,r){"use strict";e.decode=e.parse=r(228),e.encode=e.stringify=r(229)},function(t,e,r){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,r,o){e=e||"&",r=r||"=";var a={};if("string"!=typeof t||0===t.length)return a;var s=/\+/g;t=t.split(e);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var f=t.length;u>0&&f>u&&(f=u);for(var c=0;c=0?(h=m.substr(0,b),l=m.substr(b+1)):(h=m,l=""),d=decodeURIComponent(h),p=decodeURIComponent(l),n(a,d)?i(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,r){"use strict";var n=r(0)(r(2)),i=function(t){switch((0,n.default)(t)){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,r,u){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"===(0,n.default)(t)?a(s(t),(function(n){var s=encodeURIComponent(i(n))+r;return o(t[n])?a(t[n],(function(t){return s+encodeURIComponent(i(t))})).join(e):s+encodeURIComponent(i(t[n]))})).join(e):u?encodeURIComponent(i(u))+r+encodeURIComponent(i(t)):""};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function a(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n (https://github.com/theturtle32)","contributors":["Iñaki Baz Castillo (http://dev.sipdoc.net)"],"version":"1.0.34","repository":{"type":"git","url":"https://github.com/theturtle32/WebSocket-Node.git"},"homepage":"https://github.com/theturtle32/WebSocket-Node","engines":{"node":">=4.0.0"},"dependencies":{"bufferutil":"^4.0.1","debug":"^2.2.0","es5-ext":"^0.10.50","typedarray-to-buffer":"^3.1.5","utf-8-validate":"^5.0.2","yaeti":"^0.0.6"},"devDependencies":{"buffer-equal":"^1.0.0","gulp":"^4.0.2","gulp-jshint":"^2.0.4","jshint-stylish":"^2.2.1","jshint":"^2.0.0","tape":"^4.9.1"},"config":{"verbose":false},"scripts":{"test":"tape test/unit/*.js","gulp":"gulp"},"main":"index","directories":{"lib":"./lib"},"browser":"lib/browser.js","license":"Apache-2.0"}')},function(t,e,r){"use strict";var n=r(10).errors,i=r(235).XMLHttpRequest,o=r(74),a=r(123),s=function(t,e){e=e||{},this.withCredentials=e.withCredentials||!1,this.timeout=e.timeout||0,this.headers=e.headers,this.agent=e.agent,this.connected=!1;var r=!1!==e.keepAlive;this.host=t||"http://localhost:8545",this.agent||("https"===this.host.substring(0,5)?this.httpsAgent=new a.Agent({keepAlive:r}):this.httpAgent=new o.Agent({keepAlive:r}))};s.prototype._prepareRequest=function(){var t;if("undefined"!=typeof XMLHttpRequest)t=new XMLHttpRequest;else{t=new i;var e={httpsAgent:this.httpsAgent,httpAgent:this.httpAgent,baseUrl:this.baseUrl};this.agent&&(e.httpsAgent=this.agent.https,e.httpAgent=this.agent.http,e.baseUrl=this.agent.baseUrl),t.nodejsSet(e)}return t.open("POST",this.host,!0),t.setRequestHeader("Content-Type","application/json"),t.timeout=this.timeout,t.withCredentials=this.withCredentials,this.headers&&this.headers.forEach((function(e){t.setRequestHeader(e.name,e.value)})),t},s.prototype.send=function(t,e){var r=this,i=this._prepareRequest();i.onreadystatechange=function(){if(4===i.readyState&&1!==i.timeout){var t=i.responseText,o=null;try{t=JSON.parse(t)}catch(t){o=n.InvalidResponse(i.responseText)}r.connected=!0,e(o,t)}},i.ontimeout=function(){r.connected=!1,e(n.ConnectionTimeout(this.timeout))};try{i.send(JSON.stringify(t))}catch(t){this.connected=!1,e(n.InvalidConnection(this.host))}},s.prototype.disconnect=function(){},s.prototype.supportsSubscriptions=function(){return!1},t.exports=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}(r(236));var n=r(77);e.XMLHttpRequestEventTarget=n.XMLHttpRequestEventTarget},function(t,e,r){"use strict";(function(t,n){var i,o=(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=0)return this._url=this._parseUrl(e.headers.location),this._method="GET",this._loweredHeaders["content-type"]&&(delete this._headers[this._loweredHeaders["content-type"]],delete this._loweredHeaders["content-type"]),null!=this._headers["Content-Type"]&&delete this._headers["Content-Type"],delete this._headers["Content-Length"],this.upload._reset(),this._finalizeHeaders(),void this._sendHxxpRequest();this._response=e,this._response.on("data",(function(t){return n._onHttpResponseData(e,t)})),this._response.on("end",(function(){return n._onHttpResponseEnd(e)})),this._response.on("close",(function(){return n._onHttpResponseClose(e)})),this.responseUrl=this._url.href.split("#")[0],this.status=e.statusCode,this.statusText=s.STATUS_CODES[this.status],this._parseResponseHeaders(e);var i=this._responseHeaders["content-length"]||"";this._totalBytes=+i,this._lengthComputable=!!i,this._setReadyState(r.HEADERS_RECEIVED)}},r.prototype._onHttpResponseData=function(t,e){this._response===t&&(this._responseParts.push(new n(e)),this._loadedBytes+=e.length,this.readyState!==r.LOADING&&this._setReadyState(r.LOADING),this._dispatchProgress("progress"))},r.prototype._onHttpResponseEnd=function(t){this._response===t&&(this._parseResponse(),this._request=null,this._response=null,this._setReadyState(r.DONE),this._dispatchProgress("load"),this._dispatchProgress("loadend"))},r.prototype._onHttpResponseClose=function(t){if(this._response===t){var e=this._request;this._setError(),e.abort(),this._setReadyState(r.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend")}},r.prototype._onHttpTimeout=function(t){this._request===t&&(this._setError(),t.abort(),this._setReadyState(r.DONE),this._dispatchProgress("timeout"),this._dispatchProgress("loadend"))},r.prototype._onHttpRequestError=function(t,e){this._request===t&&(this._setError(),t.abort(),this._setReadyState(r.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend"))},r.prototype._dispatchProgress=function(t){var e=new r.ProgressEvent(t);e.lengthComputable=this._lengthComputable,e.loaded=this._loadedBytes,e.total=this._totalBytes,this.dispatchEvent(e)},r.prototype._setError=function(){this._request=null,this._response=null,this._responseHeaders=null,this._responseParts=null},r.prototype._parseUrl=function(t,e,r){var n=null==this.nodejsBaseUrl?t:c.resolve(this.nodejsBaseUrl,t),i=c.parse(n,!1,!0);i.hash=null;var o=(i.auth||"").split(":"),a=o[0],s=o[1];return(a||s||e||r)&&(i.auth=(e||a||"")+":"+(r||s||"")),i},r.prototype._parseResponseHeaders=function(t){for(var e in this._responseHeaders={},t.headers){var r=e.toLowerCase();this._privateHeaders[r]||(this._responseHeaders[r]=t.headers[e])}null!=this._mimeOverride&&(this._responseHeaders["content-type"]=this._mimeOverride)},r.prototype._parseResponse=function(){var t=n.concat(this._responseParts);switch(this._responseParts=null,this.responseType){case"json":this.responseText=null;try{this.response=JSON.parse(t.toString("utf-8"))}catch(t){this.response=null}return;case"buffer":return this.responseText=null,void(this.response=t);case"arraybuffer":this.responseText=null;for(var e=new ArrayBuffer(t.length),r=new Uint8Array(e),i=0;i0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var e,r,i,o=n.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,r=o,i=s,e.copy(r,i),s+=a.data.length,a=a.next;return o},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,e,r){"use strict";(function(t,e){!function(t,r){if(!t.setImmediate){var n,i,o,a,s,u=1,f={},c=!1,h=t.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(t);l=l&&l.setTimeout?l:t,"[object process]"==={}.toString.call(t.process)?n=function(t){e.nextTick((function(){p(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},n=function(t){o.port2.postMessage(t)}):h&&"onreadystatechange"in h.createElement("script")?(i=h.documentElement,n=function(t){var e=h.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):n=function(t){setTimeout(p,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&p(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),n=function(e){t.postMessage(a+e,"*")}),l.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r0&&(i=r),r=t[f++]);)switch(q++,"\n"===r?(z++,H=0):H++,j){case l:if("{"===r)j=p;else if("["===r)j=b;else if(!G(r))return K("Non-whitespace before {[.");continue;case g:case p:if(G(r))continue;if(j===g)N.push(w);else{if("}"===r){s({}),u(),j=N.pop()||d;continue}N.push(m)}if('"'!==r)return K('Malformed object key should start with " ');j=y;continue;case w:case m:if(G(r))continue;if(":"===r)j===m?(N.push(m),void 0!==o&&(s({}),a(o),o=void 0),D++):void 0!==o&&(a(o),o=void 0),j=d;else if("}"===r)void 0!==o&&(s(o),u(),o=void 0),u(),D--,j=N.pop()||d;else{if(","!==r)return K("Bad object");j===m&&N.push(m),void 0!==o&&(s(o),u(),o=void 0),j=g}continue;case b:case d:if(G(r))continue;if(j===b){if(s([]),D++,j=d,"]"===r){u(),D--,j=N.pop()||d;continue}N.push(v)}if('"'===r)j=y;else if("{"===r)j=p;else if("["===r)j=b;else if("t"===r)j=_;else if("f"===r)j=S;else if("n"===r)j=O;else if("-"===r)I+=r;else if("0"===r)I+=r,j=20;else{if(-1==="123456789".indexOf(r))return K("Bad value");I+=r,j=20}continue;case v:if(","===r)N.push(v),void 0!==o&&(s(o),u(),o=void 0),j=d;else{if("]"!==r){if(G(r))continue;return K("Bad array")}void 0!==o&&(s(o),u(),o=void 0),u(),D--,j=N.pop()||d}continue;case y:void 0===o&&(o="");var h=f-1;t:for(;;){for(;F>0;)if(L+=r,r=t.charAt(f++),4===F?(o+=String.fromCharCode(parseInt(L,16)),F=0,h=f-1):F++,!r)break t;if('"'===r&&!C){j=N.pop()||d,o+=t.substring(h,f-1);break}if(!("\\"!==r||C||(C=!0,o+=t.substring(h,f-1),r=t.charAt(f++))))break;if(C){if(C=!1,"n"===r?o+="\n":"r"===r?o+="\r":"t"===r?o+="\t":"f"===r?o+="\f":"b"===r?o+="\b":"u"===r?(F=1,L=""):o+=r,r=t.charAt(f++),h=f-1,r)continue;break}c.lastIndex=f;var V=c.exec(t);if(!V){f=t.length+1,o+=t.substring(h,f-1);break}if(f=V.index+1,!(r=t.charAt(V.index))){o+=t.substring(h,f-1);break}}continue;case _:if(!r)continue;if("r"!==r)return K("Invalid true started with t"+r);j=k;continue;case k:if(!r)continue;if("u"!==r)return K("Invalid true started with tr"+r);j=M;continue;case M:if(!r)continue;if("e"!==r)return K("Invalid true started with tru"+r);s(!0),u(),j=N.pop()||d;continue;case S:if(!r)continue;if("a"!==r)return K("Invalid false started with f"+r);j=A;continue;case A:if(!r)continue;if("l"!==r)return K("Invalid false started with fa"+r);j=x;continue;case x:if(!r)continue;if("s"!==r)return K("Invalid false started with fal"+r);j=E;continue;case E:if(!r)continue;if("e"!==r)return K("Invalid false started with fals"+r);s(!1),u(),j=N.pop()||d;continue;case O:if(!r)continue;if("u"!==r)return K("Invalid null started with n"+r);j=P;continue;case P:if(!r)continue;if("l"!==r)return K("Invalid null started with nu"+r);j=B;continue;case B:if(!r)continue;if("l"!==r)return K("Invalid null started with nul"+r);s(null),u(),j=N.pop()||d;continue;case T:if("."!==r)return K("Leading zero not followed by .");I+=r,j=20;continue;case 20:if(-1!=="0123456789".indexOf(r))I+=r;else if("."===r){if(-1!==I.indexOf("."))return K("Invalid number has two dots");I+=r}else if("e"===r||"E"===r){if(-1!==I.indexOf("e")||-1!==I.indexOf("E"))return K("Invalid number has two exponential");I+=r}else if("+"===r||"-"===r){if("e"!==i&&"E"!==i)return K("Invalid symbol in number");I+=r}else I&&(s(parseFloat(I)),u(),I=""),f--,j=N.pop()||d;continue;default:return K("Unknown state: "+j)}q>=R&&(n=0,void 0!==o&&o.length>65536&&(K("Max buffer length exceeded: textNode"),n=Math.max(n,o.length)),I.length>65536&&(K("Max buffer length exceeded: numberNode"),n=Math.max(n,I.length)),R=65536-n+q)}})),t(n.n).on((function(){if(j===l)return s({}),u(),void(U=!0);j===d&&0===D||K("Unexpected end"),void 0!==o&&(s(o),u(),o=void 0),U=!0}))}},function(t,e,r){r.d(e,"a",(function(){return u})),r.d(e,"b",(function(){return f}));var n=r(19),i=r(3),o=r(2),a=r(20),s=r(0);function u(){return new XMLHttpRequest}function f(t,e,r,u,f,c,h){var l=t(i.m).emit,d=t(i.b).emit,p=0,m=!0;function b(){if("2"===String(e.status)[0]){var t=e.responseText,r=(" "+t.substr(p)).substr(1);r&&l(r),p=Object(o.e)(t)}}function v(e){try{m&&t(i.c).emit(e.status,Object(a.a)(e.getAllResponseHeaders())),m=!1}catch(t){}}t(i.a).on((function(){e.onreadystatechange=null,e.abort()})),"onprogress"in e&&(e.onprogress=b),e.onreadystatechange=function(){switch(e.readyState){case 2:case 3:return v(e);case 4:v(e),"2"===String(e.status)[0]?(b(),t(i.n).emit()):d(Object(i.o)(e.status,e.responseText))}};try{for(var y in e.open(r,u,!0),c)e.setRequestHeader(y,c[y]);Object(n.a)(window.location,Object(n.b)(u))||e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.withCredentials=h,e.send(f)}catch(t){window.setTimeout(Object(s.j)(d,Object(i.o)(void 0,void 0,t)),0)}}},function(t,e,r){function n(t,e){function r(e){return String(e.port||{"http:":80,"https:":443}[e.protocol||t.protocol])}return!!(e.protocol&&e.protocol!==t.protocol||e.host&&e.host!==t.host||e.host&&r(e)!==r(t))}function i(t){var e=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(t)||[];return{protocol:e[1]||"",host:e[2]||"",port:e[3]||""}}r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i}))},function(t,e,r){function n(t){var e={};return t&&t.split("\r\n").forEach((function(t){var r=t.indexOf(": ");e[t.substring(0,r)]=t.substring(r+2)})),e}r.d(e,"a",(function(){return n}))}]).default},"object"===(0,s.default)(e)&&"object"===(0,s.default)(t)?t.exports=a():(i=[],void 0===(o="function"==typeof(n=a)?n.apply(e,i):n)||(t.exports=o))}).call(this,r(17)(t))},function(t,e,r){"use strict";var n=r(10).formatters,i=r(30),o=r(16);t.exports=function(t){var e=function(e){var r;return e.property?(t[e.property]||(t[e.property]={}),r=t[e.property]):r=t,e.methods&&e.methods.forEach((function(e){e instanceof i||(e=new i(e)),e.attachToObject(r),e.setRequestManager(t._requestManager)})),t};return e.formatters=n,e.utils=o,e.Method=i,e}},function(t,e,r){"use strict";(function(t){var e=r(0)(r(2)),n=function(t){var r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof l?e:l,o=Object.create(i.prototype),a=new S(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return x()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=c(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),o}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var h={};function l(){}function d(){}function p(){}var m={};m[o]=function(){return this};var b=Object.getPrototypeOf,v=b&&b(b(A([])));v&&v!==r&&n.call(v,o)&&(m=v);var y=p.prototype=l.prototype=Object.create(m);function g(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,r){var i;this._invoke=function(o,a){function s(){return new r((function(i,s){!function i(o,a,s,u){var f=c(t[o],t,a);if("throw"!==f.type){var h=f.arg,l=h.value;return l&&"object"===(0,e.default)(l)&&n.call(l,"__await")?r.resolve(l.__await).then((function(t){i("next",t,s,u)}),(function(t){i("throw",t,s,u)})):r.resolve(l).then((function(t){h.value=t,s(h)}),(function(t){return i("throw",t,s,u)}))}u(f.arg)}(o,a,i,s)}))}return i=i?i.then(s,s):s()}}function _(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=c(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),M(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;M(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}("object"===(0,e.default)(t)?t.exports:{});try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}}).call(this,r(17)(t))},function(t,e,r){"use strict";t.exports=function(t){if(Array.isArray(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";t.exports=function(t,e){var r=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";var n=r(0)(r(2)),i=r(10).errors,o=r(73),a=r(10).formatters;function s(t){return t}function u(t){o.call(this),this.id=null,this.callback=s,this.arguments=null,this.lastBlock=null,this.options={subscription:t.subscription,type:t.type,requestManager:t.requestManager}}u.prototype=Object.create(o.prototype),u.prototype.constructor=u,u.prototype._extractCallback=function(t){if("function"==typeof t[t.length-1])return t.pop()},u.prototype._validateArgs=function(t){var e=this.options.subscription;if(e||(e={}),e.params||(e.params=0),t.length!==e.params)throw i.InvalidNumberOfParams(t.length,e.params,e.subscriptionName)},u.prototype._formatInput=function(t){var e=this.options.subscription;return e&&e.inputFormatter?e.inputFormatter.map((function(e,r){return e?e(t[r]):t[r]})):t},u.prototype._formatOutput=function(t){var e=this.options.subscription;return e&&e.outputFormatter&&t?e.outputFormatter(t):t},u.prototype._toPayload=function(t){var e=[];if(this.callback=this._extractCallback(t)||s,this.subscriptionMethod||(this.subscriptionMethod=t.shift(),this.options.subscription.subscriptionName&&(this.subscriptionMethod=this.options.subscription.subscriptionName)),this.arguments||(this.arguments=this._formatInput(t),this._validateArgs(this.arguments),t=[]),e.push(this.subscriptionMethod),e=e.concat(this.arguments),t.length)throw new Error("Only a callback is allowed as parameter on an already instantiated subscription.");return{method:this.options.type+"_subscribe",params:e}},u.prototype.unsubscribe=function(t){this.options.requestManager.removeSubscription(this.id,t),this.id=null,this.lastBlock=null,this.removeAllListeners()},u.prototype.subscribe=function(){var t=this,e=Array.prototype.slice.call(arguments),r=this._toPayload(e);if(!r)return this;if(!this.options.requestManager.provider)return setTimeout((function(){var e=new Error("No provider set.");t.callback(e,null,t),t.emit("error",e)}),0),this;if(!this.options.requestManager.provider.on)return setTimeout((function(){var e=new Error("The current provider doesn't support subscriptions: "+t.options.requestManager.provider.constructor.name);t.callback(e,null,t),t.emit("error",e)}),0),this;if(this.lastBlock&&this.options.params&&"object"===(0,n.default)(this.options.params)&&(r.params[1]=this.options.params,r.params[1].fromBlock=a.inputBlockNumberFormatter(this.lastBlock+1)),this.id&&this.unsubscribe(),this.options.params=r.params[1],"logs"===r.params[0]&&r.params[1]&&"object"===(0,n.default)(r.params[1])&&r.params[1].hasOwnProperty("fromBlock")&&isFinite(r.params[1].fromBlock)){var i=Object.assign({},r.params[1]);this.options.requestManager.send({method:"eth_getLogs",params:[i]},(function(e,r){e?setTimeout((function(){t.callback(e,null,t),t.emit("error",e)}),0):r.forEach((function(e){var r=t._formatOutput(e);t.callback(null,r,t),t.emit("data",r)}))}))}return"object"===(0,n.default)(r.params[1])&&delete r.params[1].fromBlock,this.options.requestManager.send(r,(function(e,i){!e&&i?(t.id=i,t.method=r.params[0],t.emit("connected",i),t.options.requestManager.addSubscription(t,(function(e,r){e?(t.callback(e,!1,t),t.emit("error",e)):(Array.isArray(r)||(r=[r]),r.forEach((function(e){var r=t._formatOutput(e);if(t.lastBlock=r&&"object"===(0,n.default)(r)?r.blockNumber:null,"function"==typeof t.options.subscription.subscriptionHandler)return t.options.subscription.subscriptionHandler.call(t,r);t.emit("data",r),t.callback(null,r,t)})))}))):setTimeout((function(){t.callback(e,!1,t),t.emit("error",e)}),0)})),this},u.prototype.resubscribe=function(){this.options.requestManager.removeSubscription(this.id),this.id=null,this.subscribe(this.callback)},t.exports=u},function(t,e,r){"use strict";var n=r(2);Object.defineProperty(e,"__esModule",{value:!0}),e.computeAddress=w,e.recoverAddress=_,e.accessListify=S,e.serialize=function(t,e){if(null==t.type)return null!=t.accessList&&m.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",t),function(t,e){(0,f.checkProperties)(t,g);var r=[];y.forEach((function(e){var n=t[e.name]||[],i={};e.numeric&&(i.hexPad="left"),n=(0,a.arrayify)((0,a.hexlify)(n,i)),e.length&&n.length!==e.length&&n.length>0&&m.throwArgumentError("invalid length for "+e.name,"transaction:"+e.name,n),e.maxLength&&(n=(0,a.stripZeros)(n)).length>e.maxLength&&m.throwArgumentError("invalid length for "+e.name,"transaction:"+e.name,n),r.push((0,a.hexlify)(n))}));var n=0;null!=t.chainId?"number"!=typeof(n=t.chainId)&&m.throwArgumentError("invalid transaction.chainId","transaction",t):e&&!(0,a.isBytesLike)(e)&&e.v>28&&(n=Math.floor((e.v-35)/2));0!==n&&(r.push((0,a.hexlify)(n)),r.push("0x"),r.push("0x"));if(!e)return c.encode(r);var i=(0,a.splitSignature)(e),o=27+i.recoveryParam;0!==n?(r.pop(),r.pop(),r.pop(),o+=2*n+8,i.v>28&&i.v!==o&&m.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):i.v!==o&&m.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e);return r.push((0,a.hexlify)(o)),r.push((0,a.stripZeros)((0,a.arrayify)(i.r))),r.push((0,a.stripZeros)((0,a.arrayify)(i.s))),c.encode(r)}(t,e);switch(t.type){case 1:return A(t,e)}return m.throwError("unsupported transaction type: ".concat(t.type),l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:t.type})},e.parse=function(t){var e=(0,a.arrayify)(t);if(e[0]>127)return function(t){var e=c.decode(t);9!==e.length&&6!==e.length&&m.throwArgumentError("invalid raw transaction","rawTransaction",t);var r={nonce:v(e[0]).toNumber(),gasPrice:v(e[1]),gasLimit:v(e[2]),to:b(e[3]),value:v(e[4]),data:e[5],chainId:0};if(6===e.length)return r;try{r.v=o.BigNumber.from(e[6]).toNumber()}catch(t){return console.log(t),r}if(r.r=(0,a.hexZeroPad)(e[7],32),r.s=(0,a.hexZeroPad)(e[8],32),o.BigNumber.from(r.r).isZero()&&o.BigNumber.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);var n=r.v-27,i=e.slice(0,6);0!==r.chainId&&(i.push((0,a.hexlify)(r.chainId)),i.push("0x"),i.push("0x"),n-=2*r.chainId+8);var s=(0,u.keccak256)(c.encode(i));try{r.from=_(s,{r:(0,a.hexlify)(r.r),s:(0,a.hexlify)(r.s),recoveryParam:n})}catch(t){console.log(t)}r.hash=(0,u.keccak256)(t)}return r.type=null,r}(e);switch(e[0]){case 1:return function(t){var e=c.decode(t.slice(1));8!==e.length&&11!==e.length&&m.throwArgumentError("invalid component count for transaction type: 1","payload",(0,a.hexlify)(t));var r={type:1,chainId:v(e[0]).toNumber(),nonce:v(e[1]).toNumber(),gasPrice:v(e[2]),gasLimit:v(e[3]),to:b(e[4]),value:v(e[5]),data:e[6],accessList:S(e[7])};if(8===e.length)return r;try{var n=v(e[8]).toNumber();if(0!==n&&1!==n)throw new Error("bad recid");r.v=n}catch(t){m.throwArgumentError("invalid v for transaction type: 1","v",e[8])}r.r=(0,a.hexZeroPad)(e[9],32),r.s=(0,a.hexZeroPad)(e[10],32);try{var i=(0,u.keccak256)(A(r));r.from=_(i,{r:r.r,s:r.s,recoveryParam:r.v})}catch(t){console.log(t)}return r.hash=(0,u.keccak256)(t),r}(e)}return m.throwError("unsupported transaction type: ".concat(e[0]),l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})};var i=r(59),o=r(24),a=r(11),s=r(79),u=r(32),f=r(33),c=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!=typeof t)return{default:t};var r=p(e);if(r&&r.has(t))return r.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=t[a]}i.default=t,r&&r.set(t,i);return i}(r(128)),h=r(270),l=r(12),d=r(279);function p(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(p=function(t){return t?r:e})(t)}var m=new l.Logger(d.version);function b(t){return"0x"===t?null:(0,i.getAddress)(t)}function v(t){return"0x"===t?s.Zero:o.BigNumber.from(t)}var y=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],g={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0};function w(t){var e=(0,h.computePublicKey)(t);return(0,i.getAddress)((0,a.hexDataSlice)((0,u.keccak256)((0,a.hexDataSlice)(e,1)),12))}function _(t,e){return w((0,h.recoverPublicKey)((0,a.arrayify)(t),e))}function k(t,e){var r=(0,a.stripZeros)(o.BigNumber.from(t).toHexString());return r.length>32&&m.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function M(t,e){return{address:(0,i.getAddress)(t),storageKeys:(e||[]).map((function(e,r){return 32!==(0,a.hexDataLength)(e)&&m.throwArgumentError("invalid access list storageKey","accessList[".concat(t,":").concat(r,"]"),e),e.toLowerCase()}))}}function S(t){if(Array.isArray(t))return t.map((function(t,e){return Array.isArray(t)?(t.length>2&&m.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value[".concat(e,"]"),t),M(t[0],t[1])):M(t.address,t.storageKeys)}));var e=Object.keys(t).map((function(e){var r=t[e].reduce((function(t,e){return t[e]=!0,t}),{});return M(e,Object.keys(r).sort())}));return e.sort((function(t,e){return t.address.localeCompare(e.address)})),e}function A(t,e){var r,n=[k(t.chainId||0,"chainId"),k(t.nonce||0,"nonce"),k(t.gasPrice||0,"gasPrice"),k(t.gasLimit||0,"gasLimit"),null!=t.to?(0,i.getAddress)(t.to):"0x",k(t.value||0,"value"),t.data||"0x",(r=t.accessList||[],S(r).map((function(t){return[t.address,t.storageKeys]})))];if(e){var o=(0,a.splitSignature)(e);n.push(k(o.recoveryParam,"recoveryParam")),n.push((0,a.stripZeros)(o.r)),n.push((0,a.stripZeros)(o.s))}return(0,a.hexConcat)(["0x01",c.encode(n)])}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0;e.version="logger/5.1.0"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0;e.version="bytes/5.1.0"},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.formatFixed=y,e.parseFixed=g,e.FixedNumber=e.FixedFormat=void 0;var i=n(r(2)),o=n(r(5)),a=n(r(9)),s=r(11),u=r(12),f=r(127),c=r(126),h=new u.Logger(f.version),l={},d=c.BigNumber.from(0),p=c.BigNumber.from(-1);function m(t,e,r,n){var i={fault:e,operation:r};return void 0!==n&&(i.value=n),h.throwError(t,u.Logger.errors.NUMERIC_FAULT,i)}for(var b="0";b.length<256;)b+=b;function v(t){if("number"!=typeof t)try{t=c.BigNumber.from(t).toNumber()}catch(t){}return"number"==typeof t&&t>=0&&t<=256&&!(t%1)?"1"+b.substring(0,t):h.throwArgumentError("invalid decimal size","decimals",t)}function y(t,e){null==e&&(e=0);var r=v(e),n=(t=c.BigNumber.from(t)).lt(d);n&&(t=t.mul(p));for(var i=t.mod(r).toString();i.length2&&h.throwArgumentError("too many decimal points","value",t);var o=i[0],a=i[1];for(o||(o="0"),a||(a="0"),a.length>r.length-1&&m("fractional component exceeds decimals","underflow","parseFixed");a.length80&&h.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",o),new t(l,r,n,o)}}]),t}();e.FixedFormat=w;var _=function(){function t(e,r,n,i){(0,o.default)(this,t),h.checkNew(this instanceof t?this.constructor:void 0,t),e!==l&&h.throwError("cannot use FixedNumber constructor; use FixedNumber.from",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}return(0,a.default)(t,[{key:"_checkFormat",value:function(t){this.format.name!==t.format.name&&h.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}},{key:"addUnsafe",value:function(e){this._checkFormat(e);var r=g(this._value,this.format.decimals),n=g(e._value,e.format.decimals);return t.fromValue(r.add(n),this.format.decimals,this.format)}},{key:"subUnsafe",value:function(e){this._checkFormat(e);var r=g(this._value,this.format.decimals),n=g(e._value,e.format.decimals);return t.fromValue(r.sub(n),this.format.decimals,this.format)}},{key:"mulUnsafe",value:function(e){this._checkFormat(e);var r=g(this._value,this.format.decimals),n=g(e._value,e.format.decimals);return t.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}},{key:"divUnsafe",value:function(e){this._checkFormat(e);var r=g(this._value,this.format.decimals),n=g(e._value,e.format.decimals);return t.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}},{key:"floor",value:function(){var e=this.toString().split("."),r=t.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(k)),r}},{key:"ceiling",value:function(){var e=this.toString().split("."),r=t.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(k)),r}},{key:"round",value:function(e){null==e&&(e=0);var r=this.toString().split(".");if((e<0||e>80||e%1)&&h.throwArgumentError("invalid decimal count","decimals",e),r[1].length<=e)return this;var n=t.from("1"+b.substring(0,e));return this.mulUnsafe(n).addUnsafe(M).floor().divUnsafe(n)}},{key:"isZero",value:function(){return"0.0"===this._value}},{key:"isNegative",value:function(){return"-"===this._value[0]}},{key:"toString",value:function(){return this._value}},{key:"toHexString",value:function(t){if(null==t)return this._hex;t%8&&h.throwArgumentError("invalid byte width","width",t);var e=c.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString();return(0,s.hexZeroPad)(e,t/8)}},{key:"toUnsafeFloat",value:function(){return parseFloat(this.toString())}},{key:"toFormat",value:function(e){return t.fromString(this._value,e)}}],[{key:"fromValue",value:function(e,r,n){return null!=n||null==r||(0,c.isBigNumberish)(r)||(n=r,r=null),null==r&&(r=0),null==n&&(n="fixed"),t.fromString(y(e,r),w.from(n))}},{key:"fromString",value:function(e,r){null==r&&(r="fixed");var n=w.from(r),i=g(e,n.decimals);!n.signed&&i.lt(d)&&m("unsigned value cannot be negative","overflow","value",e);var o=null;n.signed?o=i.toTwos(n.width).toHexString():(o=i.toHexString(),o=(0,s.hexZeroPad)(o,n.width/8));var a=y(i,n.decimals);return new t(l,o,a,n)}},{key:"fromBytes",value:function(e,r){null==r&&(r="fixed");var n=w.from(r);if((0,s.arrayify)(e).length>n.width/8)throw new Error("overflow");var i=c.BigNumber.from(e);n.signed&&(i=i.fromTwos(n.width));var o=i.toTwos((n.signed?0:1)+n.width).toHexString(),a=y(i,n.decimals);return new t(l,o,a,n)}},{key:"from",value:function(e,r){if("string"==typeof e)return t.fromString(e,r);if((0,s.isBytes)(e))return t.fromBytes(e,r);try{return t.fromValue(e,0,r)}catch(t){if(t.code!==u.Logger.errors.INVALID_ARGUMENT)throw t}return h.throwArgumentError("invalid FixedNumber value","value",e)}},{key:"isFixedNumber",value:function(t){return!(!t||!t._isFixedNumber)}}]),t}();e.FixedNumber=_;var k=_.from(1),M=_.from("0.5")},function(t,e,r){"use strict";(function(t,e,n){var i=r(0)(r(2)); - /** - * [js-sha3]{@link https://github.com/emn178/js-sha3} - * - * @version 0.5.7 - * @author Chen, Yi-Cyuan [emn178@gmail.com] - * @copyright Chen, Yi-Cyuan 2015-2016 - * @license MIT - */ - !function(){var r="object"===("undefined"==typeof window?"undefined":(0,i.default)(window))?window:{};!r.JS_SHA3_NO_NODE_JS&&"object"===(void 0===t?"undefined":(0,i.default)(t))&&t.versions&&t.versions.node&&(r=e);for(var o=!r.JS_SHA3_NO_COMMON_JS&&"object"===(0,i.default)(n)&&n.exports,a="0123456789abcdef".split(""),s=[0,8,16,24],u=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],f=[224,256,384,512],c=["hex","buffer","arrayBuffer","array"],h=function(t,e,r){return function(n){return new k(t,e,t).update(n)[r]()}},l=function(t,e,r){return function(n,i){return new k(t,e,i).update(n)[r]()}},d=function(t,e){var r=h(t,e,"hex");r.create=function(){return new k(t,e,t)},r.update=function(t){return r.create().update(t)};for(var n=0;n>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}k.prototype.update=function(t){var e="string"!=typeof t;e&&t.constructor===ArrayBuffer&&(t=new Uint8Array(t));for(var r,n,i=t.length,o=this.blocks,a=this.byteCount,u=this.blockCount,f=0,c=this.s;f>2]|=t[f]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(o[r>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=a){for(this.start=r-a,this.block=o[u],r=0;r>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e>4&15]+a[15&t]+a[t>>12&15]+a[t>>8&15]+a[t>>20&15]+a[t>>16&15]+a[t>>28&15]+a[t>>24&15];s%e==0&&(M(r),o=0)}return i&&(t=r[o],i>0&&(u+=a[t>>4&15]+a[15&t]),i>1&&(u+=a[t>>12&15]+a[t>>8&15]),i>2&&(u+=a[t>>20&15]+a[t>>16&15])),u},k.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(t);a>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;s%r==0&&M(n)}return o&&(t=s<<2,e=n[a],o>0&&(u[t]=255&e),o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u};var M=function(t){var e,r,n,i,o,a,s,f,c,h,l,d,p,m,b,v,y,g,w,_,k,M,S,A,x,E,O,P,B,T,R,I,C,U,j,N,L,F,D,q,H,z,K,G,V,W,Z,J,X,Y,$,Q,tt,et,rt,nt,it,ot,at,st,ut,ft,ct;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],f=t[4]^t[14]^t[24]^t[34]^t[44],c=t[5]^t[15]^t[25]^t[35]^t[45],h=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],e=(d=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|s>>>31),r=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(s<<1|a>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(f<<1|c>>>31),r=o^(c<<1|f>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=a^(h<<1|l>>>31),r=s^(l<<1|h>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=f^(d<<1|p>>>31),r=c^(p<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=h^(i<<1|o>>>31),r=l^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],b=t[1],W=t[11]<<4|t[10]>>>28,Z=t[10]<<4|t[11]>>>28,P=t[20]<<3|t[21]>>>29,B=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,z=t[40]<<18|t[41]>>>14,K=t[41]<<18|t[40]>>>14,U=t[2]<<1|t[3]>>>31,j=t[3]<<1|t[2]>>>31,v=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,J=t[22]<<10|t[23]>>>22,X=t[23]<<10|t[22]>>>22,T=t[33]<<13|t[32]>>>19,R=t[32]<<13|t[33]>>>19,ft=t[42]<<2|t[43]>>>30,ct=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,N=t[14]<<6|t[15]>>>26,L=t[15]<<6|t[14]>>>26,g=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,Y=t[34]<<15|t[35]>>>17,$=t[35]<<15|t[34]>>>17,I=t[45]<<29|t[44]>>>3,C=t[44]<<29|t[45]>>>3,A=t[6]<<28|t[7]>>>4,x=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,F=t[26]<<25|t[27]>>>7,D=t[27]<<25|t[26]>>>7,_=t[36]<<21|t[37]>>>11,k=t[37]<<21|t[36]>>>11,Q=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,G=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,E=t[18]<<20|t[19]>>>12,O=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,at=t[28]<<7|t[29]>>>25,q=t[38]<<8|t[39]>>>24,H=t[39]<<8|t[38]>>>24,M=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=m^~v&g,t[1]=b^~y&w,t[10]=A^~E&P,t[11]=x^~O&B,t[20]=U^~N&F,t[21]=j^~L&D,t[30]=G^~W&J,t[31]=V^~Z&X,t[40]=et^~nt&ot,t[41]=rt^~it&at,t[2]=v^~g&_,t[3]=y^~w&k,t[12]=E^~P&T,t[13]=O^~B&R,t[22]=N^~F&q,t[23]=L^~D&H,t[32]=W^~J&Y,t[33]=Z^~X&$,t[42]=nt^~ot&st,t[43]=it^~at&ut,t[4]=g^~_&M,t[5]=w^~k&S,t[14]=P^~T&I,t[15]=B^~R&C,t[24]=F^~q&z,t[25]=D^~H&K,t[34]=J^~Y&Q,t[35]=X^~$&tt,t[44]=ot^~st&ft,t[45]=at^~ut&ct,t[6]=_^~M&m,t[7]=k^~S&b,t[16]=T^~I&A,t[17]=R^~C&x,t[26]=q^~z&U,t[27]=H^~K&j,t[36]=Y^~Q&G,t[37]=$^~tt&V,t[46]=st^~ft&et,t[47]=ut^~ct&rt,t[8]=M^~m&v,t[9]=S^~b&y,t[18]=I^~A&E,t[19]=C^~x&O,t[28]=z^~U&N,t[29]=K^~j&L,t[38]=Q^~G&W,t[39]=tt^~V&Z,t[48]=ft^~et&nt,t[49]=ct^~rt&it,t[0]^=u[n],t[1]^=u[n+1]};if(o)n.exports=m;else for(v=0;v>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(t,e){return"hex"===e?i(t):t}})),h=s((function(t,e){var r=e;r.assert=u,r.toArray=c.toArray,r.zero2=c.zero2,r.toHex=c.toHex,r.encode=c.encode,r.getNAF=function(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},r.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n,i=0,o=0;t.cmpn(-i)>0||e.cmpn(-o)>0;){var a,s,u=t.andln(3)+i&3,f=e.andln(3)+o&3;3===u&&(u=-1),3===f&&(f=-1),a=0==(1&u)?0:3!==(n=t.andln(7)+i&7)&&5!==n||2!==f?u:-u,r[0].push(a),s=0==(1&f)?0:3!==(n=e.andln(7)+o&7)&&5!==n||2!==u?f:-f,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return r},r.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(t){return"string"==typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new o.default(t,"hex","le")}})),l=h.getNAF,d=h.getJSF,p=h.assert;function m(t,e){this.type=t,this.p=new o.default(e.p,16),this.red=e.prime?o.default.red(e.prime):o.default.mont(this.p),this.zero=new o.default(0).toRed(this.red),this.one=new o.default(1).toRed(this.red),this.two=new o.default(2).toRed(this.red),this.n=e.n&&new o.default(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var b=m;function v(t,e){this.curve=t,this.type=e,this.precomputed=null}m.prototype.point=function(){throw new Error("Not implemented")},m.prototype.validate=function(){throw new Error("Not implemented")},m.prototype._fixedNafMul=function(t,e){p(t.precomputed);var r=t._getDoubles(),n=l(e,1,this._bitLength),i=(1<=o;u--)a=(a<<1)+n[u];s.push(a)}for(var f=this.jpoint(null,null,null),c=this.jpoint(null,null,null),h=i;h>0;h--){for(o=0;o=0;s--){for(var u=0;s>=0&&0===o[s];s--)u++;if(s>=0&&u++,a=a.dblp(u),s<0)break;var f=o[s];p(0!==f),a="affine"===t.type?f>0?a.mixedAdd(i[f-1>>1]):a.mixedAdd(i[-f-1>>1].neg()):f>0?a.add(i[f-1>>1]):a.add(i[-f-1>>1].neg())}return"affine"===t.type?a.toP():a},m.prototype._wnafMulAdd=function(t,e,r,n,i){var o,a,s,u=this._wnafT1,f=this._wnafT2,c=this._wnafT3,h=0;for(o=0;o=1;o-=2){var m=o-1,b=o;if(1===u[m]&&1===u[b]){var v=[e[m],null,null,e[b]];0===e[m].y.cmp(e[b].y)?(v[1]=e[m].add(e[b]),v[2]=e[m].toJ().mixedAdd(e[b].neg())):0===e[m].y.cmp(e[b].y.redNeg())?(v[1]=e[m].toJ().mixedAdd(e[b]),v[2]=e[m].add(e[b].neg())):(v[1]=e[m].toJ().mixedAdd(e[b]),v[2]=e[m].toJ().mixedAdd(e[b].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],g=d(r[m],r[b]);for(h=Math.max(g[0].length,h),c[m]=new Array(h),c[b]=new Array(h),a=0;a=0;o--){for(var S=0;o>=0;){var A=!0;for(a=0;a=0&&S++,k=k.dblp(S),o<0)break;for(a=0;a0?s=f[a][x-1>>1]:x<0&&(s=f[a][-x-1>>1].neg()),k="affine"===s.type?k.mixedAdd(s):k.add(s))}}for(o=0;o=Math.ceil((t.bitLength()+1)/e.step)},v.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(a=e,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a:a,b:s}]},w.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),f=o.mul(n.b);return{k1:t.sub(a).sub(s),k2:u.add(f).neg()}},w.prototype.pointFromX=function(t,e){(t=new o.default(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},w.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},w.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},k.prototype.isInfinity=function(){return this.inf},k.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},k.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},k.prototype.getX=function(){return this.x.fromRed()},k.prototype.getY=function(){return this.y.fromRed()},k.prototype.mul=function(t){return t=new o.default(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},k.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},k.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},k.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},k.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},k.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},y(M,b.BasePoint),w.prototype.jpoint=function(t,e,r){return new M(this,t,e,r)},M.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},M.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},M.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),c=f.redMul(s),h=n.redMul(f),l=u.redSqr().redIAdd(c).redISub(h).redISub(h),d=u.redMul(h.redISub(l)).redISub(o.redMul(c)),p=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(l,d,p)},M.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),f=u.redMul(a),c=r.redMul(u),h=s.redSqr().redIAdd(f).redISub(c).redISub(c),l=s.redMul(c.redISub(h)).redISub(i.redMul(f)),d=this.z.redMul(a);return this.curve.jpoint(h,l,d)},M.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},M.prototype.inspect=function(){return this.isInfinity()?"":""},M.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var S=s((function(t,e){var r=e;r.base=b,r.short=_,r.mont=null,r.edwards=null})),A=s((function(t,e){var r,n=e,i=h.assert;function o(t){"short"===t.type?this.curve=new S.short(t):"edwards"===t.type?this.curve=new S.edwards(t):this.curve=new S.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(t,e){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var r=new o(e);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=o,s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.default.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.default.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.default.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.default.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.default.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.default.sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.default.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(t){r=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.default.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function x(t){if(!(this instanceof x))return new x(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=c.toArray(t.entropy,t.entropyEnc||"hex"),r=c.toArray(t.nonce,t.nonceEnc||"hex"),n=c.toArray(t.pers,t.persEnc||"hex");u(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var E=x;x.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},x.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=c.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length"};var T=h.assert;function R(t,e){if(t instanceof R)return t;this._importDER(t,e)||(T(t.r&&t.s,"Signature without r or s"),this.r=new o.default(t.r,16),this.s=new o.default(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var I=R;function C(){this.place=0}function U(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=e.place;o>>=0;return!(i<=127)&&(e.place=a,i)}function j(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}R.prototype._importDER=function(t,e){t=h.toArray(t,e);var r=new C;if(48!==t[r.place++])return!1;var n=U(t,r);if(!1===n)return!1;if(n+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var i=U(t,r);if(!1===i)return!1;var a=t.slice(r.place,i+r.place);if(r.place+=i,2!==t[r.place++])return!1;var s=U(t,r);if(!1===s)return!1;if(t.length!==s+r.place)return!1;var u=t.slice(r.place,s+r.place);if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new o.default(a),this.s=new o.default(u),this.recoveryParam=null,!0},R.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=j(e),r=j(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];N(n,e.length),(n=n.concat(e)).push(2),N(n,r.length);var i=n.concat(r),o=[48];return N(o,i.length),o=o.concat(i),h.encode(o,t)};var L=function(){throw new Error("unsupported")},F=h.assert;function D(t){if(!(this instanceof D))return new D(t);"string"==typeof t&&(F(Object.prototype.hasOwnProperty.call(A,t),"Unknown curve "+t),t=A[t]),t instanceof A.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var q=D;D.prototype.keyPair=function(t){return new B(this,t)},D.prototype.keyFromPrivate=function(t,e){return B.fromPrivate(this,t,e)},D.prototype.keyFromPublic=function(t,e){return B.fromPublic(this,t,e)},D.prototype.genKeyPair=function(t){t||(t={});for(var e=new E({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||L(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new o.default(2));;){var i=new o.default(e.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},D.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},D.prototype.sign=function(t,e,r,n){"object"===(0,i.default)(r)&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new o.default(t,16));for(var a=this.n.byteLength(),s=e.getPrivate().toArray("be",a),u=t.toArray("be",a),f=new E({hash:this.hash,entropy:s,nonce:u,pers:n.pers,persEnc:n.persEnc||"utf8"}),c=this.n.sub(new o.default(1)),h=0;;h++){var l=n.k?n.k(h):new o.default(f.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(c)>=0)){var d=this.g.mul(l);if(!d.isInfinity()){var p=d.getX(),m=p.umod(this.n);if(0!==m.cmpn(0)){var b=l.invm(this.n).mul(m.mul(e.getPrivate()).iadd(t));if(0!==(b=b.umod(this.n)).cmpn(0)){var v=(d.getY().isOdd()?1:0)|(0!==p.cmp(m)?2:0);return n.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),v^=1),new I({r:m,s:b,recoveryParam:v})}}}}}},D.prototype.verify=function(t,e,r,n){t=this._truncateToN(new o.default(t,16)),r=this.keyFromPublic(r,n);var i=(e=new I(e,"hex")).r,a=e.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),f=u.mul(t).umod(this.n),c=u.mul(i).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(f,r.getPublic(),c)).isInfinity()&&s.eqXToP(i):!(s=this.g.mulAdd(f,r.getPublic(),c)).isInfinity()&&0===s.getX().umod(this.n).cmp(i)},D.prototype.recoverPubKey=function(t,e,r,n){F((3&r)===r,"The recovery param is more than two bits"),e=new I(e,n);var i=this.n,a=new o.default(t),s=e.r,u=e.s,f=1&r,c=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");s=c?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var h=e.r.invm(i),l=i.sub(a).mul(h).umod(i),d=u.mul(h).umod(i);return this.g.mulAdd(l,s,d)},D.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new I(e,n)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var H=s((function(t,e){var r=e;r.version="6.5.4",r.utils=h,r.rand=function(){throw new Error("unsupported")},r.curve=S,r.curves=A,r.ec=q,r.eddsa=null})).ec;e.EC=H}).call(this,r(7))},function(t,e,r){"use strict";e.sha1=r(273),e.sha224=r(274),e.sha256=r(130),e.sha384=r(275),e.sha512=r(131)},function(t,e,r){"use strict";var n=r(21),i=r(49),o=r(129),a=n.rotl32,s=n.sum32,u=n.sum32_5,f=o.ft_1,c=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function l(){if(!(this instanceof l))return new l;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(l,c),t.exports=l,l.blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;nthis.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;et.highestBlock-200&&(e._isSyncing=!1,e.emit("changed",e._isSyncing),"function"==typeof e.callback&&e.callback(null,e._isSyncing,e))}),500))}}}})];I.forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager,t.accounts),e.defaultBlock=t.defaultBlock,e.defaultAccount=t.defaultAccount,e.transactionBlockTimeout=t.transactionBlockTimeout,e.transactionConfirmationBlocks=t.transactionConfirmationBlocks,e.transactionPollingTimeout=t.transactionPollingTimeout,e.handleRevert=t.handleRevert}))};n.addProviders(k),t.exports=k},function(t,e,r){"use strict";var n=r(282);t.exports=n},function(t,e,r){"use strict";var n=r(0),i=n(r(48)),o=n(r(78)),a=r(132),s=r(10).formatters,u=r(16),f=r(283),c=r(306),h=r(307);function l(t){this.eth=t;var e=null;this._detectedAddress=null,this._lastSyncCheck=null,Object.defineProperty(this,"registry",{get:function(){return new f(this)},enumerable:!0}),Object.defineProperty(this,"resolverMethodHandler",{get:function(){return new c(this.registry)},enumerable:!0}),Object.defineProperty(this,"registryAddress",{get:function(){return e},set:function(t){e=null!==t?s.inputAddressFormatter(t):t},enumerable:!0})}l.prototype.supportsInterface=function(t,e,r){return this.getResolver(t).then((function(t){return u.isHexStrict(e)||(e=u.sha3(e).slice(0,10)),t.methods.supportsInterface(e).call(r)})).catch((function(t){if("function"!=typeof r)throw t;r(t,null)}))},l.prototype.resolver=function(t,e){return this.registry.resolver(t,e)},l.prototype.getResolver=function(t,e){return this.registry.getResolver(t,e)},l.prototype.setResolver=function(t,e,r,n){return this.registry.setResolver(t,e,r,n)},l.prototype.setRecord=function(t,e,r,n,i,o){return this.registry.setRecord(t,e,r,n,i,o)},l.prototype.setSubnodeRecord=function(t,e,r,n,i,o,a){return this.registry.setSubnodeRecord(t,e,r,n,i,o,a)},l.prototype.setApprovalForAll=function(t,e,r,n){return this.registry.setApprovalForAll(t,e,r,n)},l.prototype.isApprovedForAll=function(t,e,r){return this.registry.isApprovedForAll(t,e,r)},l.prototype.recordExists=function(t,e){return this.registry.recordExists(t,e)},l.prototype.setSubnodeOwner=function(t,e,r,n,i){return this.registry.setSubnodeOwner(t,e,r,n,i)},l.prototype.getTTL=function(t,e){return this.registry.getTTL(t,e)},l.prototype.setTTL=function(t,e,r,n){return this.registry.setTTL(t,e,r,n)},l.prototype.getOwner=function(t,e){return this.registry.getOwner(t,e)},l.prototype.setOwner=function(t,e,r,n){return this.registry.setOwner(t,e,r,n)},l.prototype.getAddress=function(t,e){return this.resolverMethodHandler.method(t,"addr",[]).call(e)},l.prototype.setAddress=function(t,e,r,n){return this.resolverMethodHandler.method(t,"setAddr",[e]).send(r,n)},l.prototype.getPubkey=function(t,e){return this.resolverMethodHandler.method(t,"pubkey",[],null,e).call(e)},l.prototype.setPubkey=function(t,e,r,n,i){return this.resolverMethodHandler.method(t,"setPubkey",[e,r]).send(n,i)},l.prototype.getContent=function(t,e){return this.resolverMethodHandler.method(t,"content",[]).call(e)},l.prototype.setContent=function(t,e,r,n){return this.resolverMethodHandler.method(t,"setContent",[e]).send(r,n)},l.prototype.getContenthash=function(t,e){return this.resolverMethodHandler.method(t,"contenthash",[],h.decode).call(e)},l.prototype.setContenthash=function(t,e,r,n){var i;try{i=h.encode(e)}catch(t){var o=new Error("Could not encode "+e+". See docs for supported hash protocols.");if("function"==typeof n)return void n(o,null);throw o}return this.resolverMethodHandler.method(t,"setContenthash",[i]).send(r,n)},l.prototype.getMultihash=function(t,e){return this.resolverMethodHandler.method(t,"multihash",[]).call(e)},l.prototype.setMultihash=function(t,e,r,n){return this.resolverMethodHandler.method(t,"multihash",[e]).send(r,n)},l.prototype.checkNetwork=(0,o.default)(i.default.mark((function t(){var e,r,n,o,s;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=new Date/1e3,this._lastSyncCheck&&!(e-this._lastSyncCheck>3600)){t.next=9;break}return t.next=4,this.eth.getBlock("latest");case 4:if(r=t.sent,!((n=e-r.timestamp)>3600)){t.next=8;break}throw new Error("Network not synced; last block was "+n+" seconds ago");case 8:this._lastSyncCheck=e;case 9:if(!this.registryAddress){t.next=11;break}return t.abrupt("return",this.registryAddress);case 11:if(this._detectedAddress){t.next=20;break}return t.next=14,this.eth.net.getNetworkType();case 14:if(o=t.sent,void 0!==(s=a.addresses[o])){t.next=18;break}throw new Error("ENS is not supported on network "+o);case 18:return this._detectedAddress=s,t.abrupt("return",this._detectedAddress);case 20:return t.abrupt("return",this._detectedAddress);case 21:case"end":return t.stop()}}),t,this)}))),t.exports=l},function(t,e,r){"use strict";var n=r(133),i=r(144),o=r(57),a=r(10).formatters,s=r(16),u=r(304),f=r(305);function c(t){var e=this;this.ens=t,this.contract=t.checkNetwork().then((function(t){var r=new n(u,t);return r.setProvider(e.ens.eth.currentProvider),r}))}c.prototype.owner=function(t,e){return console.warn('Deprecated: Please use the "getOwner" method instead of "owner".'),this.getOwner(t,e)},c.prototype.getOwner=function(t,e){var r=new o(!0);return this.contract.then((function(e){return e.methods.owner(i.hash(t)).call()})).then((function(t){"function"!=typeof e?r.resolve(t):e(t,t)})).catch((function(t){"function"!=typeof e?r.reject(t):e(t,null)})),r.eventEmitter},c.prototype.setOwner=function(t,e,r,n){var s=new o(!0);return this.contract.then((function(n){return n.methods.setOwner(i.hash(t),a.inputAddressFormatter(e)).send(r)})).then((function(t){"function"!=typeof n?s.resolve(t):n(t,t)})).catch((function(t){"function"!=typeof n?s.reject(t):n(t,null)})),s.eventEmitter},c.prototype.getTTL=function(t,e){var r=new o(!0);return this.contract.then((function(e){return e.methods.ttl(i.hash(t)).call()})).then((function(t){"function"!=typeof e?r.resolve(t):e(t,t)})).catch((function(t){"function"!=typeof e?r.reject(t):e(t,null)})),r.eventEmitter},c.prototype.setTTL=function(t,e,r,n){var a=new o(!0);return this.contract.then((function(n){return n.methods.setTTL(i.hash(t),e).send(r)})).then((function(t){"function"!=typeof n?a.resolve(t):n(t,t)})).catch((function(t){"function"!=typeof n?a.reject(t):n(t,null)})),a.eventEmitter},c.prototype.setSubnodeOwner=function(t,e,r,n,u){var f=new o(!0);return s.isHexStrict(e)||(e=s.sha3(e)),this.contract.then((function(o){return o.methods.setSubnodeOwner(i.hash(t),e,a.inputAddressFormatter(r)).send(n)})).then((function(t){"function"!=typeof u?f.resolve(t):u(t,t)})).catch((function(t){"function"!=typeof u?f.reject(t):u(t,null)})),f.eventEmitter},c.prototype.setRecord=function(t,e,r,n,s,u){var f=new o(!0);return this.contract.then((function(o){return o.methods.setRecord(i.hash(t),a.inputAddressFormatter(e),a.inputAddressFormatter(r),n).send(s)})).then((function(t){"function"!=typeof u?f.resolve(t):u(t,t)})).catch((function(t){"function"!=typeof u?f.reject(t):u(t,null)})),f.eventEmitter},c.prototype.setSubnodeRecord=function(t,e,r,n,u,f,c){var h=new o(!0);return s.isHexStrict(e)||(e=s.sha3(e)),this.contract.then((function(o){return o.methods.setSubnodeRecord(i.hash(t),e,a.inputAddressFormatter(r),a.inputAddressFormatter(n),u).send(f)})).then((function(t){"function"!=typeof c?h.resolve(t):c(t,t)})).catch((function(t){"function"!=typeof c?h.reject(t):c(t,null)})),h.eventEmitter},c.prototype.setApprovalForAll=function(t,e,r,n){var i=new o(!0);return this.contract.then((function(n){return n.methods.setApprovalForAll(a.inputAddressFormatter(t),e).send(r)})).then((function(t){"function"!=typeof n?i.resolve(t):n(t,t)})).catch((function(t){"function"!=typeof n?i.reject(t):n(t,null)})),i.eventEmitter},c.prototype.isApprovedForAll=function(t,e,r){var n=new o(!0);return this.contract.then((function(r){return r.methods.isApprovedForAll(a.inputAddressFormatter(t),a.inputAddressFormatter(e)).call()})).then((function(t){"function"!=typeof r?n.resolve(t):r(t,t)})).catch((function(t){"function"!=typeof r?n.reject(t):r(t,null)})),n.eventEmitter},c.prototype.recordExists=function(t,e){var r=new o(!0);return this.contract.then((function(e){return e.methods.recordExists(i.hash(t)).call()})).then((function(t){"function"!=typeof e?r.resolve(t):e(t,t)})).catch((function(t){"function"!=typeof e?r.reject(t):e(t,null)})),r.eventEmitter},c.prototype.resolver=function(t,e){return console.warn('Deprecated: Please use the "getResolver" method instead of "resolver".'),this.getResolver(t,e)},c.prototype.getResolver=function(t,e){var r=this;return this.contract.then((function(e){return e.methods.resolver(i.hash(t)).call()})).then((function(t){var i=new n(f,t);if(i.setProvider(r.ens.eth.currentProvider),"function"!=typeof e)return i;e(i,i)})).catch((function(t){if("function"!=typeof e)throw t;e(t,null)}))},c.prototype.setResolver=function(t,e,r,n){var s=new o(!0);return this.contract.then((function(n){return n.methods.setResolver(i.hash(t),a.inputAddressFormatter(e)).send(r)})).then((function(t){"function"!=typeof n?s.resolve(t):n(t,t)})).catch((function(t){"function"!=typeof n?s.reject(t):n(t,null)})),s.eventEmitter},t.exports=c},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.AddressCoder=void 0;var i=n(r(5)),o=n(r(9)),a=n(r(14)),s=n(r(15)),u=n(r(13)),f=r(59),c=r(11);function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,u.default)(t);if(e){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var l=function(t){(0,a.default)(r,t);var e=h(r);function r(t){return(0,i.default)(this,r),e.call(this,"address","address",t,!1)}return(0,o.default)(r,[{key:"encode",value:function(t,e){try{(0,f.getAddress)(e)}catch(t){this._throwError(t.message,e)}return t.writeValue(e)}},{key:"decode",value:function(t){return(0,f.getAddress)((0,c.hexZeroPad)(t.readValue().toHexString(),20))}}]),r}(r(20).Coder);e.AddressCoder=l},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.AnonymousCoder=void 0;var i=n(r(5)),o=n(r(9)),a=n(r(14)),s=n(r(15)),u=n(r(13));function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,u.default)(t);if(e){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var c=function(t){(0,a.default)(r,t);var e=f(r);function r(t){var n;return(0,i.default)(this,r),(n=e.call(this,t.name,t.type,void 0,t.dynamic)).coder=t,n}return(0,o.default)(r,[{key:"encode",value:function(t,e){return this.coder.encode(t,e)}},{key:"decode",value:function(t){return this.coder.decode(t)}}]),r}(r(20).Coder);e.AnonymousCoder=c},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.BooleanCoder=void 0;var i=n(r(5)),o=n(r(9)),a=n(r(14)),s=n(r(15)),u=n(r(13));function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,u.default)(t);if(e){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var c=function(t){(0,a.default)(r,t);var e=f(r);function r(t){return(0,i.default)(this,r),e.call(this,"bool","bool",t,!1)}return(0,o.default)(r,[{key:"encode",value:function(t,e){return t.writeValue(e?1:0)}},{key:"decode",value:function(t){return t.coerce(this.type,!t.readValue().isZero())}}]),r}(r(20).Coder);e.BooleanCoder=c},function(t,e,r){"use strict";var n=r(13);t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=n(t)););return t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.FixedBytesCoder=void 0;var i=n(r(5)),o=n(r(9)),a=n(r(14)),s=n(r(15)),u=n(r(13)),f=r(11);function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,u.default)(t);if(e){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var h=function(t){(0,a.default)(r,t);var e=c(r);function r(t,n){var o;(0,i.default)(this,r);var a="bytes"+String(t);return(o=e.call(this,a,a,n,!1)).size=t,o}return(0,o.default)(r,[{key:"encode",value:function(t,e){var r=(0,f.arrayify)(e);return r.length!==this.size&&this._throwError("incorrect data length",e),t.writeBytes(r)}},{key:"decode",value:function(t){return t.coerce(this.name,(0,f.hexlify)(t.readBytes(this.size)))}}]),r}(r(20).Coder);e.FixedBytesCoder=h},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.NullCoder=void 0;var i=n(r(5)),o=n(r(9)),a=n(r(14)),s=n(r(15)),u=n(r(13));function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,u.default)(t);if(e){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var c=function(t){(0,a.default)(r,t);var e=f(r);function r(t){return(0,i.default)(this,r),e.call(this,"null","",t,!1)}return(0,o.default)(r,[{key:"encode",value:function(t,e){return null!=e&&this._throwError("not null",e),t.writeBytes([])}},{key:"decode",value:function(t){return t.readBytes(0),t.coerce(this.name,null)}}]),r}(r(20).Coder);e.NullCoder=c},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.NumberCoder=void 0;var i=n(r(5)),o=n(r(9)),a=n(r(14)),s=n(r(15)),u=n(r(13)),f=r(24),c=r(79);function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,u.default)(t);if(e){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var l=function(t){(0,a.default)(r,t);var e=h(r);function r(t,n,o){var a;(0,i.default)(this,r);var s=(n?"int":"uint")+8*t;return(a=e.call(this,s,s,o,!1)).size=t,a.signed=n,a}return(0,o.default)(r,[{key:"encode",value:function(t,e){var r=f.BigNumber.from(e),n=c.MaxUint256.mask(8*t.wordSize);if(this.signed){var i=n.mask(8*this.size-1);(r.gt(i)||r.lt(i.add(c.One).mul(c.NegativeOne)))&&this._throwError("value out-of-bounds",e)}else(r.lt(c.Zero)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",e);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*t.wordSize)),t.writeValue(r)}},{key:"decode",value:function(t){var e=t.readValue().mask(8*this.size);return this.signed&&(e=e.fromTwos(8*this.size)),t.coerce(this.name,e)}}]),r}(r(20).Coder);e.NumberCoder=l},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.StringCoder=void 0;var i=n(r(5)),o=n(r(9)),a=n(r(141)),s=n(r(14)),u=n(r(15)),f=n(r(13)),c=r(62);function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,f.default)(t);if(e){var i=(0,f.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}var l=function(t){(0,s.default)(r,t);var e=h(r);function r(t){return(0,i.default)(this,r),e.call(this,"string",t)}return(0,o.default)(r,[{key:"encode",value:function(t,e){return(0,a.default)((0,f.default)(r.prototype),"encode",this).call(this,t,(0,c.toUtf8Bytes)(e))}},{key:"decode",value:function(t){return(0,c.toUtf8String)((0,a.default)((0,f.default)(r.prototype),"decode",this).call(this,t))}}]),r}(r(140).DynamicBytesCoder);e.StringCoder=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.formatBytes32String=function(t){var e=(0,o.toUtf8Bytes)(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,i.hexlify)((0,i.concat)([e,n.HashZero]).slice(0,32))},e.parseBytes32String=function(t){var e=(0,i.arrayify)(t);if(32!==e.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==e[31])throw new Error("invalid bytes32 string - no null terminator");var r=31;for(;0===e[r-1];)r--;return(0,o.toUtf8String)(e.slice(0,r))};var n=r(79),i=r(11),o=r(81)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0;e.version="strings/5.1.0"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._nameprepTableA1=p,e._nameprepTableB2=m,e._nameprepTableC=b,e.nameprep=function(t){if(t.match(/^[a-z0-9-]*$/i)&&t.length<=59)return t.toLowerCase();var e=(0,n.toUtf8CodePoints)(t);r=e.map((function(t){if(u.indexOf(t)>=0)return[];if(t>=65024&&t<=65039)return[];var e=m(t);return e||[t]})),e=r.reduce((function(t,e){return e.forEach((function(e){t.push(e)})),t}),[]),(e=(0,n.toUtf8CodePoints)((0,n._toUtf8String)(e),n.UnicodeNormalizationForm.NFKC)).forEach((function(t){if(b(t))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),e.forEach((function(t){if(p(t))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));var r;var i=(0,n._toUtf8String)(e);if("-"===i.substring(0,1)||"--"===i.substring(2,4)||"-"===i.substring(i.length-1))throw new Error("invalid hyphen");if(i.length>63)throw new Error("too long");return i};var n=r(81);function i(t,e){e||(e=function(t){return[parseInt(t,16)]});var r=0,n={};return t.split(",").forEach((function(t){var i=t.split(":");r+=parseInt(i[0],16),n[r]=e(i[1])})),n}function o(t){var e=0;return t.split(",").map((function(t){var r=t.split("-");return 1===r.length?r[1]="0":""===r[1]&&(r[1]="1"),{l:e+parseInt(r[0],16),h:e=parseInt(r[1],16)}}))}function a(t,e){for(var r=0,n=0;n=(r+=i.l)&&t<=r+i.h&&(t-r)%(i.d||1)==0){if(i.e&&-1!==i.e.indexOf(t-r))continue;return i}}return null}var s=o("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),u="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((function(t){return parseInt(t,16)})),f=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],c=i("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),h=i("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),l=i("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(t){if(t.length%4!=0)throw new Error("bad data");for(var e=[],r=0;r1&&_.throwArgumentError("multiple matching functions","name",r),this.functions[n[0]]}var i=this.functions[v.FunctionFragment.fromString(t).format()];return i||_.throwArgumentError("no matching function","signature",t),i}},{key:"getEvent",value:function(t){if((0,h.isHexString)(t)){var e=t.toLowerCase();for(var r in this.events)if(e===this.getEventTopic(r))return this.events[r];_.throwArgumentError("no matching event","topichash",e)}if(-1===t.indexOf("(")){var n=t.trim(),i=Object.keys(this.events).filter((function(t){return t.split("(")[0]===n}));return 0===i.length?_.throwArgumentError("no matching event","name",n):i.length>1&&_.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}var o=this.events[v.EventFragment.fromString(t).format()];return o||_.throwArgumentError("no matching event","signature",t),o}},{key:"getSighash",value:function(t){return"string"==typeof t&&(t=this.getFunction(t)),(0,p.getStatic)(this.constructor,"getSighash")(t)}},{key:"getEventTopic",value:function(t){return"string"==typeof t&&(t=this.getEvent(t)),(0,p.getStatic)(this.constructor,"getEventTopic")(t)}},{key:"_decodeParams",value:function(t,e){return this._abiCoder.decode(t,e)}},{key:"_encodeParams",value:function(t,e){return this._abiCoder.encode(t,e)}},{key:"encodeDeploy",value:function(t){return this._encodeParams(this.deploy.inputs,t||[])}},{key:"decodeFunctionData",value:function(t,e){"string"==typeof t&&(t=this.getFunction(t));var r=(0,h.arrayify)(e);return(0,h.hexlify)(r.slice(0,4))!==this.getSighash(t)&&_.throwArgumentError("data signature does not match function ".concat(t.name,"."),"data",(0,h.hexlify)(r)),this._decodeParams(t.inputs,r.slice(4))}},{key:"encodeFunctionData",value:function(t,e){return"string"==typeof t&&(t=this.getFunction(t)),(0,h.hexlify)((0,h.concat)([this.getSighash(t),this._encodeParams(t.inputs,e||[])]))}},{key:"decodeFunctionResult",value:function(t,e){"string"==typeof t&&(t=this.getFunction(t));var r=(0,h.arrayify)(e),n=null,i=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(t.outputs,r)}catch(t){}break;case 4:"0x08c379a0"===(0,h.hexlify)(r.slice(0,4))&&(i="Error(string)",n=this._abiCoder.decode(["string"],r.slice(4))[0])}return _.throwError("call revert exception",y.Logger.errors.CALL_EXCEPTION,{method:t.format(),errorSignature:i,errorArgs:[n],reason:n})}},{key:"encodeFunctionResult",value:function(t,e){return"string"==typeof t&&(t=this.getFunction(t)),(0,h.hexlify)(this._abiCoder.encode(t.outputs,e||[]))}},{key:"encodeFilterTopics",value:function(t,e){var r=this;"string"==typeof t&&(t=this.getEvent(t)),e.length>t.inputs.length&&_.throwError("too many arguments for "+t.format(),y.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:e});var n=[];t.anonymous||n.push(this.getEventTopic(t));var i=function(t,e){return"string"===t.type?(0,l.id)(e):"bytes"===t.type?(0,d.keccak256)((0,h.hexlify)(e)):("address"===t.type&&r._abiCoder.encode(["address"],[e]),(0,h.hexZeroPad)((0,h.hexlify)(e),32))};for(e.forEach((function(e,r){var o=t.inputs[r];o.indexed?null==e?n.push(null):"array"===o.baseType||"tuple"===o.baseType?_.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,e):Array.isArray(e)?n.push(e.map((function(t){return i(o,t)}))):n.push(i(o,e)):null!=e&&_.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,e)}));n.length&&null===n[n.length-1];)n.pop();return n}},{key:"encodeEventLog",value:function(t,e){var r=this;"string"==typeof t&&(t=this.getEvent(t));var n=[],i=[],o=[];return t.anonymous||n.push(this.getEventTopic(t)),e.length!==t.inputs.length&&_.throwArgumentError("event arguments/values mismatch","values",e),t.inputs.forEach((function(t,a){var s=e[a];if(t.indexed)if("string"===t.type)n.push((0,l.id)(s));else if("bytes"===t.type)n.push((0,d.keccak256)(s));else{if("tuple"===t.baseType||"array"===t.baseType)throw new Error("not implemented");n.push(r._abiCoder.encode([t.type],[s]))}else i.push(t),o.push(s)})),{data:this._abiCoder.encode(i,o),topics:n}}},{key:"decodeEventLog",value:function(t,e,r){if("string"==typeof t&&(t=this.getEvent(t)),null!=r&&!t.anonymous){var n=this.getEventTopic(t);(0,h.isHexString)(r[0],32)&&r[0].toLowerCase()===n||_.throwError("fragment/topic mismatch",y.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:n,value:r[0]}),r=r.slice(1)}var i=[],o=[],a=[];t.inputs.forEach((function(t,e){t.indexed?"string"===t.type||"bytes"===t.type||"tuple"===t.baseType||"array"===t.baseType?(i.push(v.ParamType.fromObject({type:"bytes32",name:t.name})),a.push(!0)):(i.push(t),a.push(!1)):(o.push(t),a.push(!1))}));var s=null!=r?this._abiCoder.decode(i,(0,h.concat)(r)):null,u=this._abiCoder.decode(o,e,!0),f=[],c=0,l=0;t.inputs.forEach((function(t,e){if(t.indexed)if(null==s)f[e]=new S({_isIndexed:!0,hash:null});else if(a[e])f[e]=new S({_isIndexed:!0,hash:s[l++]});else try{f[e]=s[l++]}catch(t){f[e]=t}else try{f[e]=u[c++]}catch(t){f[e]=t}if(t.name&&null==f[t.name]){var r=f[e];r instanceof Error?Object.defineProperty(f,t.name,{get:function(){throw A("property ".concat(JSON.stringify(t.name)),r)}}):f[t.name]=r}}));for(var d=function(t){var e=f[t];e instanceof Error&&Object.defineProperty(f,t,{get:function(){throw A("index ".concat(t),e)}})},p=0;p256||e[2]&&e[2]!==String(n))&&b.throwArgumentError("invalid numeric width","type",t);var i=_.mask(r?n-1:n),o=r?i.add(w).mul(y):g;return function(e){var r=u.BigNumber.from(e);return(r.lt(o)||r.gt(i))&&b.throwArgumentError("value out-of-bounds for ".concat(t),"value",e),(0,f.hexZeroPad)(r.toTwos(256).toHexString(),32)}}var a=t.match(/^bytes(\d+)$/);if(a){var h=parseInt(a[1]);return(0===h||h>32||a[1]!==String(h))&&b.throwArgumentError("invalid bytes width","type",t),function(e){return(0,f.arrayify)(e).length!==h&&b.throwArgumentError("invalid length for ".concat(t),"value",e),function(t){var e=(0,f.arrayify)(t),r=e.length%32;return r?(0,f.hexConcat)([e,v.slice(r)]):(0,f.hexlify)(e)}(e)}}switch(t){case"address":return function(t){return(0,f.hexZeroPad)((0,s.getAddress)(t),32)};case"bool":return function(t){return t?k:M};case"bytes":return function(t){return(0,c.keccak256)(t)};case"string":return function(t){return(0,p.id)(t)}}return null}function P(t,e){return"".concat(t,"(").concat(e.map((function(t){var e=t.name;return t.type+" "+e})).join(","),")")}var B=function(){function t(e){(0,o.default)(this,t),(0,h.defineReadOnly)(this,"types",Object.freeze((0,h.deepCopy)(e))),(0,h.defineReadOnly)(this,"_encoderCache",{}),(0,h.defineReadOnly)(this,"_types",{});var r={},n={},i={};Object.keys(e).forEach((function(t){r[t]={},n[t]=[],i[t]={}}));var a=function(t){var i={};e[t].forEach((function(o){i[o.name]&&b.throwArgumentError("duplicate variable name ".concat(JSON.stringify(o.name)," in ").concat(JSON.stringify(t)),"types",e),i[o.name]=!0;var a=o.type.match(/^([^\x5b]*)(\x5b|$)/)[1];a===t&&b.throwArgumentError("circular type reference to ".concat(JSON.stringify(a)),"types",e),O(a)||(n[a]||b.throwArgumentError("unknown type ".concat(JSON.stringify(a)),"types",e),n[a].push(t),r[t][a]=!0)}))};for(var s in e)a(s);var u=Object.keys(n).filter((function(t){return 0===n[t].length}));for(var f in 0===u.length?b.throwArgumentError("missing primary type","types",e):u.length>1&&b.throwArgumentError("ambiguous primary types or unused types: ".concat(u.map((function(t){return JSON.stringify(t)})).join(", ")),"types",e),(0,h.defineReadOnly)(this,"primaryType",u[0]),function t(o,a){a[o]&&b.throwArgumentError("circular type reference to ".concat(JSON.stringify(o)),"types",e),a[o]=!0,Object.keys(r[o]).forEach((function(e){n[e]&&(t(e,a),Object.keys(a).forEach((function(t){i[t][e]=!0})))})),delete a[o]}(this.primaryType,{}),i){var c=Object.keys(i[f]);c.sort(),this._types[f]=P(f,e[f])+c.map((function(t){return P(t,e[t])})).join("")}}return(0,a.default)(t,[{key:"getEncoder",value:function(t){var e=this._encoderCache[t];return e||(e=this._encoderCache[t]=this._getEncoder(t)),e}},{key:"_getEncoder",value:function(t){var e=this,r=O(t);if(r)return r;var n=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){var i=n[1],o=this.getEncoder(i),a=parseInt(n[3]);return function(t){a>=0&&t.length!==a&&b.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);var r=t.map(o);return e._types[i]&&(r=r.map(c.keccak256)),(0,c.keccak256)((0,f.hexConcat)(r))}}var s=this.types[t];if(s){var u=(0,p.id)(this._types[t]);return function(t){var r=s.map((function(r){var n=r.name,i=r.type,o=e.getEncoder(i)(t[n]);return e._types[i]?(0,c.keccak256)(o):o}));return r.unshift(u),(0,f.hexConcat)(r)}}return b.throwArgumentError("unknown type: ".concat(t),"type",t)}},{key:"encodeType",value:function(t){var e=this._types[t];return e||b.throwArgumentError("unknown type: ".concat(JSON.stringify(t)),"name",t),e}},{key:"encodeData",value:function(t,e){return this.getEncoder(t)(e)}},{key:"hashStruct",value:function(t,e){return(0,c.keccak256)(this.encodeData(t,e))}},{key:"encode",value:function(t){return this.encodeData(this.primaryType,t)}},{key:"hash",value:function(t){return this.hashStruct(this.primaryType,t)}},{key:"_visit",value:function(t,e,r){var n=this;if(O(t))return r(t,e);var i=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){var o=i[1],a=parseInt(i[3]);return a>=0&&e.length!==a&&b.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e),e.map((function(t){return n._visit(o,t,r)}))}var s=this.types[t];return s?s.reduce((function(t,i){var o=i.name,a=i.type;return t[o]=n._visit(a,e[o],r),t}),{}):b.throwArgumentError("unknown type: ".concat(t),"type",t)}},{key:"visit",value:function(t,e){return this._visit(this.primaryType,t,e)}}],[{key:"from",value:function(e){return new t(e)}},{key:"getPrimaryType",value:function(e){return t.from(e).primaryType}},{key:"hashStruct",value:function(e,r,n){return t.from(r).hashStruct(e,n)}},{key:"hashDomain",value:function(e){var r=[];for(var n in e){var i=S[n];i||b.throwArgumentError("invalid typed-data domain key: ".concat(JSON.stringify(n)),"domain",e),r.push({name:n,type:i})}return r.sort((function(t,e){return A.indexOf(t.name)-A.indexOf(e.name)})),t.hashStruct("EIP712Domain",{EIP712Domain:r},e)}},{key:"encode",value:function(e,r,n){return(0,f.hexConcat)(["0x1901",t.hashDomain(e),t.from(r).hash(n)])}},{key:"hash",value:function(e,r,n){return(0,c.keccak256)(t.encode(e,r,n))}},{key:"resolveNames",value:function(e,r,n,o){return m(this,void 0,void 0,i.default.mark((function a(){var s,u,c;return i.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:e=(0,h.shallowCopy)(e),s={},e.verifyingContract&&!(0,f.isHexString)(e.verifyingContract,20)&&(s[e.verifyingContract]="0x"),(u=t.from(r)).visit(n,(function(t,e){return"address"!==t||(0,f.isHexString)(e,20)||(s[e]="0x"),e})),a.t0=i.default.keys(s);case 6:if((a.t1=a.t0()).done){a.next=13;break}return c=a.t1.value,a.next=10,o(c);case 10:s[c]=a.sent,a.next=6;break;case 13:return e.verifyingContract&&s[e.verifyingContract]&&(e.verifyingContract=s[e.verifyingContract]),n=u.visit(n,(function(t,e){return"address"===t&&s[e]?s[e]:e})),a.abrupt("return",{domain:e,value:n});case 16:case"end":return a.stop()}}),a)})))}},{key:"getPayload",value:function(e,r,n){t.hashDomain(e);var i={},o=[];A.forEach((function(t){var r=e[t];null!=r&&(i[t]=E[t](r),o.push({name:t,type:S[t]}))}));var a=t.from(r),s=(0,h.shallowCopy)(r);return s.EIP712Domain?b.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):s.EIP712Domain=o,a.encode(n),{types:s,domain:i,primaryType:a.primaryType,message:a.visit(n,(function(t,e){if(t.match(/^bytes(\d*)/))return(0,f.hexlify)((0,f.arrayify)(e));if(t.match(/^u?int/))return u.BigNumber.from(e).toString();switch(t){case"address":return e.toLowerCase();case"bool":return!!e;case"string":return"string"!=typeof e&&b.throwArgumentError("invalid string","value",e),e}return b.throwArgumentError("unsupported type","type",t)}))}}}]),t}();e.TypedDataEncoder=B},function(t,e,r){"use strict";(function(t,e,n){var i=r(0)(r(2)); - /** - * [js-sha3]{@link https://github.com/emn178/js-sha3} - * - * @version 0.5.7 - * @author Chen, Yi-Cyuan [emn178@gmail.com] - * @copyright Chen, Yi-Cyuan 2015-2016 - * @license MIT - */ - !function(){var r="object"===("undefined"==typeof window?"undefined":(0,i.default)(window))?window:{};!r.JS_SHA3_NO_NODE_JS&&"object"===(void 0===t?"undefined":(0,i.default)(t))&&t.versions&&t.versions.node&&(r=e);for(var o=!r.JS_SHA3_NO_COMMON_JS&&"object"===(0,i.default)(n)&&n.exports,a="0123456789abcdef".split(""),s=[0,8,16,24],u=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],f=[224,256,384,512],c=["hex","buffer","arrayBuffer","array"],h=function(t,e,r){return function(n){return new k(t,e,t).update(n)[r]()}},l=function(t,e,r){return function(n,i){return new k(t,e,i).update(n)[r]()}},d=function(t,e){var r=h(t,e,"hex");r.create=function(){return new k(t,e,t)},r.update=function(t){return r.create().update(t)};for(var n=0;n>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}k.prototype.update=function(t){var e="string"!=typeof t;e&&t.constructor===ArrayBuffer&&(t=new Uint8Array(t));for(var r,n,i=t.length,o=this.blocks,a=this.byteCount,u=this.blockCount,f=0,c=this.s;f>2]|=t[f]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(o[r>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=a){for(this.start=r-a,this.block=o[u],r=0;r>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e>4&15]+a[15&t]+a[t>>12&15]+a[t>>8&15]+a[t>>20&15]+a[t>>16&15]+a[t>>28&15]+a[t>>24&15];s%e==0&&(M(r),o=0)}return i&&(t=r[o],i>0&&(u+=a[t>>4&15]+a[15&t]),i>1&&(u+=a[t>>12&15]+a[t>>8&15]),i>2&&(u+=a[t>>20&15]+a[t>>16&15])),u},k.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(t);a>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;s%r==0&&M(n)}return o&&(t=s<<2,e=n[a],o>0&&(u[t]=255&e),o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u};var M=function(t){var e,r,n,i,o,a,s,f,c,h,l,d,p,m,b,v,y,g,w,_,k,M,S,A,x,E,O,P,B,T,R,I,C,U,j,N,L,F,D,q,H,z,K,G,V,W,Z,J,X,Y,$,Q,tt,et,rt,nt,it,ot,at,st,ut,ft,ct;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],f=t[4]^t[14]^t[24]^t[34]^t[44],c=t[5]^t[15]^t[25]^t[35]^t[45],h=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],e=(d=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|s>>>31),r=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(s<<1|a>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(f<<1|c>>>31),r=o^(c<<1|f>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=a^(h<<1|l>>>31),r=s^(l<<1|h>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=f^(d<<1|p>>>31),r=c^(p<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=h^(i<<1|o>>>31),r=l^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],b=t[1],W=t[11]<<4|t[10]>>>28,Z=t[10]<<4|t[11]>>>28,P=t[20]<<3|t[21]>>>29,B=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,z=t[40]<<18|t[41]>>>14,K=t[41]<<18|t[40]>>>14,U=t[2]<<1|t[3]>>>31,j=t[3]<<1|t[2]>>>31,v=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,J=t[22]<<10|t[23]>>>22,X=t[23]<<10|t[22]>>>22,T=t[33]<<13|t[32]>>>19,R=t[32]<<13|t[33]>>>19,ft=t[42]<<2|t[43]>>>30,ct=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,N=t[14]<<6|t[15]>>>26,L=t[15]<<6|t[14]>>>26,g=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,Y=t[34]<<15|t[35]>>>17,$=t[35]<<15|t[34]>>>17,I=t[45]<<29|t[44]>>>3,C=t[44]<<29|t[45]>>>3,A=t[6]<<28|t[7]>>>4,x=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,F=t[26]<<25|t[27]>>>7,D=t[27]<<25|t[26]>>>7,_=t[36]<<21|t[37]>>>11,k=t[37]<<21|t[36]>>>11,Q=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,G=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,E=t[18]<<20|t[19]>>>12,O=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,at=t[28]<<7|t[29]>>>25,q=t[38]<<8|t[39]>>>24,H=t[39]<<8|t[38]>>>24,M=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=m^~v&g,t[1]=b^~y&w,t[10]=A^~E&P,t[11]=x^~O&B,t[20]=U^~N&F,t[21]=j^~L&D,t[30]=G^~W&J,t[31]=V^~Z&X,t[40]=et^~nt&ot,t[41]=rt^~it&at,t[2]=v^~g&_,t[3]=y^~w&k,t[12]=E^~P&T,t[13]=O^~B&R,t[22]=N^~F&q,t[23]=L^~D&H,t[32]=W^~J&Y,t[33]=Z^~X&$,t[42]=nt^~ot&st,t[43]=it^~at&ut,t[4]=g^~_&M,t[5]=w^~k&S,t[14]=P^~T&I,t[15]=B^~R&C,t[24]=F^~q&z,t[25]=D^~H&K,t[34]=J^~Y&Q,t[35]=X^~$&tt,t[44]=ot^~st&ft,t[45]=at^~ut&ct,t[6]=_^~M&m,t[7]=k^~S&b,t[16]=T^~I&A,t[17]=R^~C&x,t[26]=q^~z&U,t[27]=H^~K&j,t[36]=Y^~Q&G,t[37]=$^~tt&V,t[46]=st^~ft&et,t[47]=ut^~ct&rt,t[8]=M^~m&v,t[9]=S^~b&y,t[18]=I^~A&E,t[19]=C^~x&O,t[28]=z^~U&N,t[29]=K^~j&L,t[38]=Q^~G&W,t[39]=tt^~V&Z,t[48]=ft^~et&nt,t[49]=ct^~rt&it,t[0]^=u[n],t[1]^=u[n+1]};if(o)n.exports=m;else for(v=0;v>23,l=c>>21&3,d=c>>5&65535,p=31&c,m=e.mapStr.substr(d,p);if(0===l||n&&1&h)throw new Error("Illegal char "+f);1===l?o.push(m):2===l?o.push(i?m:f):3===l&&o.push(f)}return o.join("").normalize("NFC")}function n(e,n,o){void 0===o&&(o=!1);var a=r(e,o,n).split(".");return(a=a.map((function(e){return e.startsWith("xn--")?i(e=t.decode(e.substring(4)),o,!1):i(e,o,n),e}))).join(".")}function i(t,n,i){if("-"===t[2]&&"-"===t[3])throw new Error("Failed to validate "+t);if(t.startsWith("-")||t.endsWith("-"))throw new Error("Failed to validate "+t);if(t.includes("."))throw new Error("Failed to validate "+t);if(r(t,n,i)!==t)throw new Error("Failed to validate "+t);var o=t.codePointAt(0);if(e.mapChar(o)&2<<23)throw new Error("Label contains illegal character: "+o)}return{toUnicode:function(t,e){return void 0===e&&(e={}),n(t,!1,"useStd3ASCII"in e&&e.useStd3ASCII)},toAscii:function(e,r){void 0===r&&(r={});var i,o=!("transitional"in r)||r.transitional,a="useStd3ASCII"in r&&r.useStd3ASCII,s="verifyDnsLength"in r&&r.verifyDnsLength,u=n(e,o,a).split(".").map(t.toASCII),f=u.join(".");if(s){if(f.length<1||f.length>253)throw new Error("DNS name has wrong length: "+f);for(i=0;i63)throw new Error("DNS label has wrong length: "+c)}}return f}}}(t,e)}.apply(e,n))||(t.exports=i)},function(t,e,r){"use strict";var n;r(0)(r(2));void 0===(n=function(){return t=[new Uint32Array([2157250,2157314,2157378,2157442,2157506,2157570,2157634,0,2157698,2157762,2157826,2157890,2157954,0,2158018,0]),new Uint32Array([2179041,6291456,2179073,6291456,2179105,6291456,2179137,6291456,2179169,6291456,2179201,6291456,2179233,6291456,2179265,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([0,2113729,2197345,2197377,2113825,2197409,2197441,2113921,2197473,2114017,2197505,2197537,2197569,2197601,2197633,2197665]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,23068672,23068672,23068672,0,0,0,0,23068672]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064]),new Uint32Array([2196001,2196033,2196065,2196097,2196129,2196161,2196193,2196225,2196257,2196289,2196321,2196353,2196385,2196417,2196449,2196481]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,0,0,0,0,0]),new Uint32Array([2097281,2105921,2097729,2106081,0,2097601,2162337,2106017,2133281,2097505,2105889,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([2177025,6291456,2177057,6291456,2177089,6291456,2177121,6291456,2177153,6291456,2177185,6291456,2177217,6291456,2177249,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456]),new Uint32Array([2134435,2134531,2134627,2134723,2134723,2134819,2134819,2134915,2134915,2135011,2105987,2135107,2135203,2135299,2131587,2135395]),new Uint32Array([0,0,0,0,0,0,0,6291456,2168673,2169249,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2147906,2147970,2148034,2148098,2148162,2148226,2148290,2148354,2147906,2147970,2148034,2148098,2148162,2148226,2148290,2148354]),new Uint32Array([2125219,2125315,2152834,2152898,2125411,2152962,2153026,2125506,2125507,2125603,2153090,2153154,2153218,2153282,2153346,2105348]),new Uint32Array([2203393,6291456,2203425,6291456,2203457,6291456,2203489,6291456,6291456,6291456,6291456,2203521,6291456,2181281,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,6291456,2145538,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,6291456]),new Uint32Array([2139426,2160834,2160898,2160962,2134242,2161026,2161090,2161154,2161218,2161282,2161346,2161410,2138658,2161474,2161538,2134722]),new Uint32Array([2119939,2124930,2125026,2106658,2125218,2128962,2129058,2129154,2129250,2129346,2129442,2108866,2108770,2150466,2150530,2150594]),new Uint32Array([2201601,6291456,2201633,6291456,2201665,6291456,2201697,6291456,2201729,6291456,2201761,6291456,2201793,6291456,2201825,6291456]),new Uint32Array([2193537,2193569,2193601,2193633,2193665,2193697,2193729,2193761,2193793,2193825,2193857,2193889,2193921,2193953,2193985,2194017]),new Uint32Array([6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2190561,6291456,2190593,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2190625,6291456,2190657,6291456,23068672]),new Uint32Array([2215905,2215937,2215969,2216001,2216033,2216065,2216097,2216129,2216161,2216193,2216225,2216257,2105441,2216289,2216321,2216353]),new Uint32Array([23068672,18884130,23068672,23068672,23068672,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2191233,2191265,2191297,2191329,2191361,2191393,2191425,2117377,2191457,2191489,2191521,2191553,2191585,2191617,2191649,2117953]),new Uint32Array([2132227,2132323,2132419,2132419,2132515,2132515,2132611,2132707,2132707,2132803,2132899,2132899,2132995,2132995,2133091,2133187]),new Uint32Array([0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,0,0]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,10609889,10610785,10609921,10610817,2222241]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([2219969,2157121,2157441,2157505,2157889,2157953,2220001,2158465,2158529,10575617,2156994,2157058,2129923,2130019,2157122,2157186]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2185249,6291456,2185281,6291456,2185313,6291456,2185345,6291456,2185377,6291456,2185409,6291456,2185441,6291456,2185473,6291456]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,6291456,0]),new Uint32Array([2183361,6291456,2183393,6291456,2183425,6291456,2183457,6291456,2183489,6291456,2183521,6291456,2183553,6291456,2183585,6291456]),new Uint32Array([2192161,2192193,2192225,2192257,2192289,2192321,2192353,2192385,2192417,2192449,2192481,2192513,2192545,2192577,2192609,2192641]),new Uint32Array([2212001,2212033,2212065,2212097,2212129,2212161,2212193,2212225,2212257,2212289,2212321,2212353,2212385,2212417,2212449,2207265]),new Uint32Array([2249825,2249857,2249889,2249921,2249954,2250018,2250082,2250145,2250177,2250209,2250241,2250274,2250337,2250370,2250433,2250465]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147905,2147969,2148033,2148097,2148161,2148225,2148289,2148353]),new Uint32Array([10485857,6291456,2197217,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,23068672,23068672]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2180353,2180385,2144033,2180417,2180449,2180481,2180513,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,10610209,10610465,10610241,10610753,10609857]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([2223842,2223906,2223970,2224034,2224098,2224162,2224226,2224290,2224354,2224418,2224482,2224546,2224610,2224674,2224738,2224802]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([23068672,23068672,23068672,18923650,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,18923714,23068672,23068672]),new Uint32Array([2126179,2125538,2126275,2126371,2126467,2125634,2126563,2105603,2105604,2125346,2126659,2126755,2126851,2098179,2098181,2098182]),new Uint32Array([2227426,2227490,2227554,2227618,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2192353,2240642,2240642,2240705,2240737,2240737,2240769,2240802,2240866,2240929,2240961,2240993,2241025,2241057,2241089,2241121]),new Uint32Array([6291456,2170881,2170913,2170945,6291456,2170977,6291456,2171009,2171041,6291456,6291456,6291456,2171073,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2132226,2132514,2163586,2132610,2160386,2133090,2133186,2160450,2160514,2160578,2133570,2106178,2160642,2133858,2160706,2160770]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10532162,10532226,10532290,10532354,10532418,10532482,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2098209,2108353,2108193,2108481,2170241,2111713,2105473,2105569,2105601,2112289,2112481,2098305,2108321,0,0,0]),new Uint32Array([2209121,2209153,2209185,2209217,2209249,2209281,2209313,2209345,2209377,2209409,2209441,2209473,2207265,2209505,2209537,2209569]),new Uint32Array([2189025,6291456,2189057,6291456,2189089,6291456,2189121,6291456,2189153,6291456,2189185,6291456,2189217,6291456,2189249,6291456]),new Uint32Array([2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2165764,2140004]),new Uint32Array([2215105,6291456,2215137,6291456,6291456,2215169,2215201,6291456,6291456,6291456,2215233,2215265,2215297,2215329,2215361,2215393]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,23068672,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([10505091,10505187,10505283,10505379,10505475,10505571,10505667,10505763,10505859,10505955,10506051,10506147,10506243,10506339,10506435,10506531]),new Uint32Array([2229730,2229794,2229858,2229922,2229986,2230050,2230114,2230178,2230242,2230306,2230370,2230434,2230498,2230562,2230626,2230690]),new Uint32Array([2105505,2098241,2108353,2108417,2105825,0,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177]),new Uint32Array([6291456,6291456,6291456,6291456,10502115,10502178,10502211,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2190305,6291456,2190337,6291456,2190369,6291456,2190401,6291456,2190433,6291456,2190465,6291456,2190497,6291456,2190529,6291456]),new Uint32Array([2173793,2173985,2174017,6291456,2173761,2173697,6291456,2174689,6291456,2174017,2174721,6291456,6291456,2174753,2174785,2174817]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2099521,2099105,2120705,2098369,2120801,2103361,2097985,2098433,2121377,2121473,2099169,2099873,2098401,2099393,2152609,2100033]),new Uint32Array([2132898,2163842,2163906,2133282,2132034,2131938,2137410,2132802,2132706,2164866,2133282,2160578,2165186,2165186,6291456,6291456]),new Uint32Array([10500003,10500099,10500195,10500291,10500387,10500483,10500579,10500675,10500771,10500867,10500963,10501059,10501155,10501251,10501347,10501443]),new Uint32Array([2163458,2130978,2131074,2131266,2131362,2163522,2160130,2132066,2131010,2131106,2106018,2131618,2131298,2132034,2131938,2137410]),new Uint32Array([2212961,2116993,2212993,2213025,2213057,2213089,2213121,2213153,2213185,2213217,2213249,2209633,2213281,2213313,2213345,2213377]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2113729,2113825,2113921,2114017,2114113,2114209,2114305,2114401,2114497,2114593,2114689,2114785,2114881,2114977,2115073,2115169]),new Uint32Array([2238177,2238209,2238241,2238273,2238305,2238337,2238337,2217537,2238369,2238401,2238433,2238465,2215649,2238497,2238529,2238561]),new Uint32Array([2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0]),new Uint32Array([6291456,0,6291456,2145026,0,6291456,2145090,0,6291456,6291456,0,0,23068672,0,23068672,23068672]),new Uint32Array([2099233,2122017,2200673,2098113,2121537,2103201,2200705,2104033,2121857,2121953,2122401,2099649,2099969,2123009,2100129,2100289]),new Uint32Array([6291456,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0]),new Uint32Array([2187681,2187713,2187745,2187777,2187809,2187841,2187873,2187905,2187937,2187969,2188001,2188033,2188065,2188097,2188129,2188161]),new Uint32Array([0,10554498,10554562,10554626,10554690,10554754,10554818,10554882,10554946,10555010,10555074,6291456,6291456,0,0,0]),new Uint32Array([2235170,2235234,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0]),new Uint32Array([2181153,6291456,2188897,6291456,6291456,2188929,6291456,6291456,6291456,6291456,6291456,6291456,2111905,2100865,2188961,2188993]),new Uint32Array([2100833,2100897,0,0,2101569,2101697,2101825,2101953,2102081,2102209,10575617,2187041,10502177,10489601,10489697,2112289]),new Uint32Array([6291456,2172833,6291456,2172865,2172897,2172929,2172961,6291456,2172993,6291456,2173025,6291456,2173057,6291456,2173089,6291456]),new Uint32Array([6291456,0,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,2190721]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456]),new Uint32Array([2184993,6291456,2185025,6291456,2185057,6291456,2185089,6291456,2185121,6291456,2185153,6291456,2185185,6291456,2185217,6291456]),new Uint32Array([2115265,2115361,2115457,2115553,2115649,2115745,2115841,2115937,2116033,2116129,2116225,2116321,2150658,2150722,2200225,6291456]),new Uint32Array([2168321,6291456,2168353,6291456,2168385,6291456,2168417,6291456,2168449,6291456,2168481,6291456,2168513,6291456,2168545,6291456]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,0,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2186625,0,0,6291456,6291456,2186657,2186689,2186721,2173505,0,10496067,10496163,10496259]),new Uint32Array([2178785,6291456,2178817,6291456,2178849,6291456,2178881,6291456,2178913,6291456,2178945,6291456,2178977,6291456,2179009,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2097152,0,0,0,2097152,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,2197857,2197889,2197921,2197953,2197985,2198017,0,0,2198049,2198081,2198113,2198145,2198177,2198209]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2098209,2167297,2111137,6291456]),new Uint32Array([2171393,6291456,2171425,6291456,2171457,6291456,2171489,6291456,2171521,6291456,2171553,6291456,2171585,6291456,2171617,6291456]),new Uint32Array([2206753,2206785,2195457,2206817,2206849,2206881,2206913,2197153,2197153,2206945,2117857,2206977,2207009,2207041,2207073,2207105]),new Uint32Array([0,0,0,0,0,0,0,23068672,0,0,0,0,2144834,2144898,0,2144962]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672]),new Uint32Array([2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,0,2105505,2098241]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,2202049,6291456,2202081,6291456,2202113,6291456,2202145,6291456,2202177,6291456,2202209,6291456,2202241,6291456]),new Uint32Array([10501155,10501251,10501347,10501443,10501539,10501635,10501731,10501827,10501923,10502019,2141731,2105505,2098177,2155586,2166530,0]),new Uint32Array([2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441]),new Uint32Array([2146882,2146946,2147010,2147074,2147138,2147202,2147266,2147330,2146882,2146946,2147010,2147074,2147138,2147202,2147266,2147330]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([10502307,10502403,10502499,10502595,10502691,10502787,10502883,10502979,10503075,10503171,10503267,10503363,10503459,10503555,10503651,10503747]),new Uint32Array([2179937,2179969,2180001,2180033,2156545,2180065,2156577,2180097,2180129,2180161,2180193,2180225,2180257,2180289,2156737,2180321]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,0,0,6291456,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([2227682,2227746,2227810,2227874,2227938,2228002,2228066,2228130,2228194,2228258,2228322,2228386,2228450,2228514,2228578,2228642]),new Uint32Array([2105601,2169121,2108193,2170049,2181025,2181057,2112481,2108321,2108289,2181089,2170497,2100865,2181121,2173601,2173633,2173665]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2180641,6291456,6291456,6291456]),new Uint32Array([0,6291456,6291456,6291456,0,6291456,0,6291456,0,0,6291456,6291456,0,6291456,6291456,6291456]),new Uint32Array([2178273,6291456,2178305,6291456,2178337,6291456,2178369,6291456,2178401,6291456,2178433,6291456,2178465,6291456,2178497,6291456]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2237377,2237409,2236225,2237441,2237473,2217441,2215521,2215553,2217473,2237505,2237537,2209697,2237569,2215585,2237601,2237633]),new Uint32Array([2221985,2165601,2165601,2165665,2165665,2222017,2222017,2165729,2165729,2158913,2158913,2158913,2158913,2097281,2097281,2105921]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2149634,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2176897,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2176929,6291456,2176961,6291456,2176993,6291456]),new Uint32Array([2172641,6291456,2172673,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2172705,2172737,6291456,2172769,2172801,6291456]),new Uint32Array([2099173,2104196,2121667,2099395,2121763,2152258,2152322,2098946,2152386,2121859,2121955,2099333,2122051,2104324,2099493,2122147]),new Uint32Array([6291456,6291456,6291456,2145794,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2145858,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,0,0,6291456,0]),new Uint32Array([0,2105921,2097729,0,2097377,0,0,2106017,0,2097505,2105889,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2239074,2239138,2239201,2239233,2239265,2239297,2239329,2239361,0,2239393,2239425,2239425,2239458,2239521,2239553,2209569]),new Uint32Array([14680064,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,6291456,23068672]),new Uint32Array([2108321,2108289,2113153,2098209,2180897,2180929,2180961,2111137,2098241,2108353,2170241,2170273,2180993,2105825,6291456,2105473]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2146114,6291456,6291456,6291456,0,0,0]),new Uint32Array([2105921,2105921,2105921,2222049,2222049,2130977,2130977,2130977,2130977,2160065,2160065,2160065,2160065,2097729,2097729,2097729]),new Uint32Array([2218145,2214785,2207937,2218177,2218209,2192993,2210113,2212769,2218241,2218273,2216129,2218305,2216161,2218337,2218369,2218401]),new Uint32Array([0,0,0,2156546,2156610,2156674,2156738,2156802,0,0,0,0,0,2156866,23068672,2156930]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([2213409,2213441,2213473,2213505,2213537,2213569,2213601,2213633,2213665,2195681,2213697,2213729,2213761,2213793,2213825,2213857]),new Uint32Array([2100033,2099233,2122017,2200673,2098113,2121537,2103201,2200705,2104033,2121857,2121953,2122401,2099649,2099969,2123009,2100129]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2201857,6291456,2201889,6291456,2201921,6291456,2201953,6291456,2201985,6291456,2202017,6291456,2176193,2176257,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2188193,2188225,2188257,2188289,2188321,2188353,2188385,2188417,2188449,2188481,2188513,2188545,2188577,2188609,2188641,0]),new Uint32Array([10554529,2221089,0,10502113,10562017,10537921,10538049,2221121,2221153,0,0,0,0,0,0,0]),new Uint32Array([2213889,2213921,2213953,2213985,2214017,2214049,2214081,2194177,2214113,2214145,2214177,2214209,2214241,2214273,2214305,2214337]),new Uint32Array([2166978,2167042,2099169,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2180545,6291456,6291456,6291456]),new Uint32Array([10518915,10519011,10519107,10519203,2162242,2162306,2159554,2162370,2159362,2159618,2105922,2162434,2159746,2162498,2159810,2159874]),new Uint32Array([2161730,2161794,2135586,2161858,2161922,2137186,2131810,2160290,2135170,2161986,2137954,2162050,2162114,2162178,10518723,10518819]),new Uint32Array([10506627,10506723,10506819,10506915,10507011,10507107,10507203,10507299,10507395,10507491,10507587,10507683,10507779,10507875,10507971,10508067]),new Uint32Array([6291456,23068672,23068672,23068672,0,23068672,23068672,0,0,0,0,0,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2175873,2175905,2175937,2175969,2176001,2176033,2176065,2176097,2176129,2176161,2176193,2176225,2176257,2176289,2176321,2176353]),new Uint32Array([2140006,2140198,2140390,2140582,2140774,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241]),new Uint32Array([0,23068672,0,0,0,0,0,0,0,2145154,2145218,2145282,6291456,0,2145346,0]),new Uint32Array([0,0,0,0,10531458,10495395,2148545,2143201,2173473,2148865,2173505,0,2173537,0,2173569,2149121]),new Uint32Array([10537282,10495683,2148738,2148802,2148866,0,6291456,2148930,2186593,2173473,2148737,2148865,2148802,10495779,10495875,10495971]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2215425,2215457,2215489,2215521,2215553,2215585,2215617,2215649,2215681,2215713,2215745,2215777,2192033,2215809,2215841,2215873]),new Uint32Array([2242049,2242081,2242113,2242145,2242177,2242209,2242241,2242273,2215937,2242305,2242338,2242401,2242433,2242465,2242497,2216001]),new Uint32Array([10554529,2221089,0,0,10562017,10502113,10538049,10537921,2221185,10489601,10489697,10609889,10609921,2141729,2141793,10610273]),new Uint32Array([2141923,2142019,2142115,2142211,2142307,2142403,2142499,2142595,2142691,0,0,0,0,0,0,0]),new Uint32Array([0,2221185,2221217,10609857,10609857,10489601,10489697,10609889,10609921,2141729,2141793,2221345,2221377,2221409,2221441,2187105]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18923970,23068672,23068672,23068672,0,6291456,6291456]),new Uint32Array([2183105,6291456,2183137,6291456,2183169,6291456,2183201,6291456,2183233,6291456,2183265,6291456,2183297,6291456,2183329,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2134434,2134818,2097666,2097186,2097474,2097698,2105986,2131586,2132450,2131874,2131778,2135970,2135778,2161602,2136162,2161666]),new Uint32Array([2236865,2236897,2236930,2236993,2237025,2235681,2237058,2237121,2237153,2237185,2237217,2217281,2237250,2191233,2237313,2237345]),new Uint32Array([2190049,6291456,2190081,6291456,2190113,6291456,2190145,6291456,2190177,6291456,2190209,6291456,2190241,6291456,2190273,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2101922,2102050,2102178,2102306,10498755,10498851,10498947,10499043,10499139,10499235,10499331,10499427,10499523,10489604,10489732,10489860]),new Uint32Array([2166914,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2181601,2170561,2181633,2181665,2170753,2181697,2172897,2170881,2181729,2170913,2172929,2113441,2181761,2181793,2171009,2173761]),new Uint32Array([0,2105921,2097729,2106081,0,2097601,2162337,2106017,2133281,2097505,0,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2248001,2248033,2248066,2248130,2248193,2248226,2248289,2248322,2248385,2248417,2216673,2248450,2248514,2248577,2248610,2248673]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([2169729,6291456,2169761,6291456,2169793,6291456,2169825,6291456,2169857,2169889,6291456,2169921,6291456,2143329,6291456,2098305]),new Uint32Array([2162178,2163202,2163266,2135170,2136226,2161986,2137954,2159426,2159490,2163330,2159554,2163394,2159682,2139522,2136450,2159746]),new Uint32Array([2173953,2173985,0,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2174209,2174241,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,4271169,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2174273]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,2190785,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2189793,6291456,2189825,6291456,2189857,6291456,2189889,6291456,2189921,6291456,2189953,6291456,2189985,6291456,2190017,6291456]),new Uint32Array([2105601,2112289,2108193,2112481,2112577,0,2098305,2108321,2108289,2100865,2113153,2108481,2113345,0,2098209,2111137]),new Uint32Array([2172129,6291456,2172161,6291456,2172193,6291456,2172225,6291456,2172257,6291456,2172289,6291456,2172321,6291456,2172353,6291456]),new Uint32Array([2214753,6291456,2214785,6291456,6291456,2214817,2214849,2214881,2214913,2214945,2214977,2215009,2215041,2215073,2194401,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([10610305,10610337,10575617,2221761,10610401,10610433,10502177,0,10610465,10610497,10610529,10610561,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,23068672,0,0,0,0,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2187105,2187137,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2199393,2199425,2199457,2199489,2199521,2199553,2199585,2199617,2199649,2199681,2199713,2199745,2199777,2199809,2199841,0]),new Uint32Array([2217249,2217281,2217313,2217345,2217377,2217409,2217441,2217473,2215617,2217505,2217537,2217569,2214753,2217601,2217633,2217665]),new Uint32Array([2170273,2170305,6291456,2170337,2170369,6291456,2170401,2170433,2170465,6291456,6291456,6291456,2170497,2170529,6291456,2170561]),new Uint32Array([2188673,6291456,2188705,2188737,2188769,6291456,6291456,2188801,6291456,2188833,6291456,2188865,6291456,2180929,2181505,2180897]),new Uint32Array([10489988,10490116,10490244,10490372,10490500,10490628,10490756,10490884,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147393,2147457,2147521,2147585,2147649,2147713,2147777,2147841]),new Uint32Array([23068672,23068672,0,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2241153,2241185,2241217,2215809,2241250,2241313,2241345,2241377,2217921,2241377,2241409,2215873,2241441,2241473,2241505,2241537]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220417,2220417,2220449,2220449,2220481,2220481,2220513,2220513,2220545,2220545,2220577,2220577,2220609,2220609,2220641,2220641]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2144002,0,6291456,6291456,0,0,6291456,6291456,6291456]),new Uint32Array([2167105,2167137,2167169,2167201,2167233,2167265,2167297,2167329,2167361,2167393,2167425,2167457,2167489,2167521,2167553,2167585]),new Uint32Array([10575521,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([2234146,2234210,2234274,2234338,2234402,2234466,2234530,2234594,2234658,2234722,2234786,2234850,2234914,2234978,2235042,2235106]),new Uint32Array([0,0,0,0,0,0,0,2180577,0,0,0,0,0,2180609,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456]),new Uint32Array([2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2242529,2242561,2242593,2242625,2242657,2242689,2242721,2242753,2207937,2218177,2242785,2242817,2242849,2242882,2242945,2242977]),new Uint32Array([2118049,2105345,2118241,2105441,2118433,2118529,2118625,2118721,2118817,2200257,2200289,2191809,2200321,2200353,2200385,2200417]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2185505,6291456,2185537,6291456,2185569,6291456,2185601,6291456,2185633,6291456,2185665,6291456,2185697,6291456,2185729,6291456]),new Uint32Array([2231970,2232034,2232098,2232162,2232226,2232290,2232354,2232418,2232482,2232546,2232610,2232674,2232738,2232802,2232866,2232930]),new Uint32Array([2218625,2246402,2246466,2246530,2246594,2246657,2246689,2246689,2218657,2219681,2246721,2246753,2246785,2246818,2246881,2208481]),new Uint32Array([2197025,2197057,2197089,2197121,2197153,2197185,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2219137,2216961,2219169,2219201,2219233,2219265,2219297,2217025,2215041,2219329,2217057,2219361,2217089,2219393,2197153,2219426]),new Uint32Array([23068672,23068672,23068672,0,0,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713]),new Uint32Array([2243522,2243585,2243617,2243649,2243681,2210113,2243713,2243746,2243810,2243874,2243937,2243970,2244033,2244065,2244097,2244129]),new Uint32Array([2178017,6291456,2178049,6291456,2178081,6291456,2178113,6291456,2178145,6291456,2178177,6291456,2178209,6291456,2178241,6291456]),new Uint32Array([10553858,2165314,10518722,6291456,10518818,0,10518914,2130690,10519010,2130786,10519106,2130882,10519202,2165378,10554050,2165506]),new Uint32Array([0,0,2135491,2135587,2135683,2135779,2135875,2135971,2135971,2136067,2136163,2136259,2136355,2136355,2136451,2136547]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2220033,2220033,2220065,2220065,2220065,2220065,2220097,2220097,2220097,2220097,2220129,2220129,2220129,2220129,2220161,2220161]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2100897,2100898,2100899,2150018,2100865,2100866,2100867,2100868,2150082,2108481,2109858,2109859,2105569,2105505,2098241,2105601]),new Uint32Array([2097217,2097505,2097505,2097505,2097505,2165570,2165570,2165634,2165634,2165698,2165698,2097858,2097858,0,0,2097152]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([10503843,10503939,10504035,10504131,10504227,10504323,10504419,10504515,10504611,10504707,10504803,10504899,10504995,10491140,10491268,0]),new Uint32Array([2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2134145,2097153,2134241,2105953,2132705,2130977,2160065,2131297,2162049,2133089,2160577,2133857,2235297,2220769,2235329,2235361]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2222401,2222433,2222465,10531394,2222497,2222529,2222561,0,2222593,2222625,2222657,2222689,2222721,2222753,2222785,0]),new Uint32Array([2184481,6291456,2184513,6291456,2184545,6291456,2184577,6291456,2184609,6291456,2184641,6291456,2184673,6291456,2184705,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([2105570,2156034,2126947,2156098,2153666,2127043,2127139,2156162,0,2127235,2156226,2156290,2156354,2156418,2127331,2127427]),new Uint32Array([2215905,2207041,2153185,2241569,2241601,2241633,2241665,2241697,2241730,2241793,2241825,2241857,2241889,2241921,2241954,2242017]),new Uint32Array([2203777,6291456,2203809,6291456,2203841,6291456,2203873,6291456,2203905,6291456,2173121,2180993,2181249,2203937,2181313,0]),new Uint32Array([2168577,6291456,2168609,6291456,2168641,6291456,2168673,6291456,2168705,6291456,2168737,6291456,2168769,6291456,2168801,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,23068672,23068672,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,0,0]),new Uint32Array([2210113,2195521,2210145,2210177,2210209,2210241,2210273,2210305,2210337,2210369,2210401,2210433,2210465,2210497,2210529,2210561]),new Uint32Array([6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2228706,2228770,2228834,2228898,2228962,2229026,2229090,2229154,2229218,2229282,2229346,2229410,2229474,2229538,2229602,2229666]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,18874368,18874368,18874368,0,0]),new Uint32Array([2133089,2133281,2133281,2133281,2133281,2160577,2160577,2160577,2160577,2097441,2097441,2097441,2097441,2133857,2133857,2133857]),new Uint32Array([6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089]),new Uint32Array([2178529,6291456,2178561,6291456,2178593,6291456,2178625,6291456,2178657,6291456,2178689,6291456,2178721,6291456,2178753,6291456]),new Uint32Array([2221025,2221025,2221057,2221057,2159329,2159329,2159329,2159329,2097217,2097217,2158914,2158914,2158978,2158978,2159042,2159042]),new Uint32Array([2208161,2208193,2208225,2208257,2194433,2208289,2208321,2208353,2208385,2208417,2208449,2208481,2208513,2208545,2208577,2208609]),new Uint32Array([2169217,6291456,2169249,6291456,2169281,6291456,2169313,6291456,2169345,6291456,2169377,6291456,2169409,6291456,2169441,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2133187,2133283,2133283,2133379,2133475,2133571,2133667,2133667,2133763,2133859,2133955,2134051,2134147,2134147,2134243,2134339]),new Uint32Array([2197697,2114113,2114209,2197729,2197761,2114305,2197793,2114401,2114497,2197825,2114593,2114689,2114785,2114881,2114977,0]),new Uint32Array([2193089,2193121,2193153,2193185,2117665,2117569,2193217,2193249,2193281,2193313,2193345,2193377,2193409,2193441,2193473,2193505]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2184225,6291456,2184257,6291456,2184289,6291456,2184321,6291456,2184353,6291456,2184385,6291456,2184417,6291456,2184449,6291456]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2100833,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2098657,2098049,2200737,2123489,2123681,2200769,2098625,2100321,2098145,2100449,2098017,2098753,2200801,2200833,2200865,0]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,0,2098241,2108353,2108417,2105825,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2181153,2105505,2181185,2167617,2180993]),new Uint32Array([2160002,2160066,2160130,2160194,2160258,2132066,2131010,2131106,2106018,2131618,2160322,2131298,2132034,2131938,2137410,2132226]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([2183617,6291456,2183649,6291456,2183681,6291456,2183713,6291456,2183745,6291456,2183777,6291456,2183809,6291456,2183841,6291456]),new Uint32Array([0,6291456,6291456,0,6291456,0,0,6291456,6291456,0,6291456,0,0,6291456,0,0]),new Uint32Array([2250977,2251009,2251041,2251073,2195009,2251106,2251169,2251201,2251233,2251265,2251297,2251330,2251394,2251457,2251489,2251521]),new Uint32Array([2205729,2205761,2205793,2205825,2205857,2205889,2205921,2205953,2205985,2206017,2206049,2206081,2206113,2206145,2206177,2206209]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2143170,2168993,6291456,2169025,6291456,2169057,6291456,2169089,6291456,2143234,2169121,6291456,2169153,6291456,2169185,6291456]),new Uint32Array([23068672,23068672,2190689,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2248706,2248769,2248801,2248833,2248865,2248897,2248929,2248962,2249026,2249090,2249154,2240705,2249217,2249249,2249281,2249313]),new Uint32Array([10485857,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10495394,6291456,2098209,6291456,6291456,2097152,6291456,10531394]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2173985,2173953,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889]),new Uint32Array([6291456,2186977,6291456,6291456,6291456,6291456,6291456,10537858,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2209601,2209633,2209665,2209697,2209729,2209761,2209793,2209825,2209857,2209889,2209921,2209953,2209985,2210017,2210049,2210081]),new Uint32Array([10501539,10501635,10501731,10501827,10501923,10502019,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905]),new Uint32Array([2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2194561,2194593,2194625,2119777,2119873,2194657,2194689,2194721,2194753,2194785,2194817,2194849,2194881,2194913,2194945,2194977]),new Uint32Array([2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569]),new Uint32Array([2222818,2222882,2222946,2223010,2223074,2223138,2223202,2223266,2223330,2223394,2223458,2223522,2223586,2223650,2223714,2223778]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672]),new Uint32Array([0,2179553,2179585,2179617,2179649,2144001,2179681,2179713,2179745,2179777,2179809,2156705,2179841,2156833,2179873,2179905]),new Uint32Array([6291456,23068672,6291456,2145602,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,6291456,0,0]),new Uint32Array([2196513,2196545,2196577,2196609,2196641,2196673,2196705,2196737,2196769,2196801,2196833,2196865,2196897,2196929,2196961,2196993]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2177281,6291456,2177313,6291456,2177345,6291456,2177377,6291456,2177409,6291456,2177441,6291456,2177473,6291456,2177505,6291456]),new Uint32Array([2187137,2221473,2221505,2221537,2221569,6291456,6291456,10610209,10610241,10537986,10537986,10537986,10537986,10609857,10609857,10609857]),new Uint32Array([2243009,2243041,2216033,2243074,2243137,2243169,2243201,2219617,2243233,2243265,2243297,2243329,2243362,2243425,2243457,2243489]),new Uint32Array([10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,2097152,4194304,4194304,0,0]),new Uint32Array([2143042,6291456,2143106,2143106,2168833,6291456,2168865,6291456,6291456,2168897,6291456,2168929,6291456,2168961,6291456,2143170]),new Uint32Array([6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2204193,2204225,2204257,2204289,2204321,2204353,2204385,2204417,2204449,2204481,2204513,2204545,2204577,2204609,2204641,2204673]),new Uint32Array([2202753,6291456,2202785,6291456,2202817,6291456,2202849,6291456,2202881,6291456,2202913,6291456,2202945,6291456,2202977,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321]),new Uint32Array([2147394,2147458,2147522,2147586,2147650,2147714,2147778,2147842,2147394,2147458,2147522,2147586,2147650,2147714,2147778,2147842]),new Uint32Array([2253313,2253346,2253409,2253441,2253473,2253505,2253537,2253569,2253601,2253634,2219393,2253697,2253729,2253761,2253793,2253825]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([2162562,2162626,2131362,2162690,2159938,2160002,2162754,2162818,2160130,2162882,2160194,2160258,2160834,2160898,2161026,2161090]),new Uint32Array([2175361,2175393,2175425,2175457,2175489,2175521,2175553,2175585,2175617,2175649,2175681,2175713,2175745,2175777,2175809,2175841]),new Uint32Array([2253858,2253921,2253954,2254018,2254082,2196737,2254145,2196865,2254177,2254209,2254241,2254273,2197025,2254306,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2202113,2204129,2188705,2204161]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953]),new Uint32Array([2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209]),new Uint32Array([2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,0,2108417,0,2111713,2100897,2111905]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2175425,2175489,2175809,2175905,2175937,2175937,2176193,2176417,2180865,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,2143298,2143298,2143298,2143362,2143362,2143362,2143426,2143426,2143426,2171105,6291456,2171137]),new Uint32Array([2120162,2120258,2151618,2151682,2151746,2151810,2151874,2151938,2152002,2120035,2120131,2120227,2152066,2120323,2152130,2120419]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2195361,2142433,2236065,2236097,2236129,2236161,2118241,2117473,2236193,2236225,2236257,2236289,0,0,0,0]),new Uint32Array([2189281,6291456,2189313,6291456,2189345,6291456,2189377,6291456,2189409,6291456,2189441,6291456,2189473,6291456,2189505,6291456]),new Uint32Array([6291456,6291456,2145922,6291456,6291456,6291456,6291456,2145986,6291456,6291456,6291456,6291456,2146050,6291456,6291456,6291456]),new Uint32Array([2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,10502113,10562017,10610401,10502177,10610433,10538049]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,2186401,0,2186433,0,2186465,0,2186497]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,23068672,23068672,23068672]),new Uint32Array([0,0,2198241,2198273,2198305,2198337,2198369,2198401,0,0,2198433,2198465,2198497,0,0,0]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,0,23068672,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([0,2105921,2097729,0,2097377,0,0,2106017,2133281,2097505,2105889,0,2097697,2135777,2097633,2097441]),new Uint32Array([2197889,2197921,2197953,2197985,2198017,2198049,2198081,2198113,2198145,2198177,2198209,2198241,2198273,2198305,2198337,2198369]),new Uint32Array([2132514,2132610,2160386,2133090,2133186,2160450,2160514,2133282,2160578,2133570,2106178,2160642,2133858,2160706,2160770,2134146]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,6291456,23068672,23068672,6291456,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2184737,6291456,2184769,6291456,2184801,6291456,2184833,6291456,2184865,6291456,2184897,6291456,2184929,6291456,2184961,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,2186753,6291456,6291456,6291456,6291456,2186785,2186817,2186849,2173569,2186881,10496355,10495395,10575521]),new Uint32Array([0,0,2097729,0,0,0,0,2106017,0,2097505,0,2097185,0,2135777,2097633,2097441]),new Uint32Array([2189537,6291456,2189569,6291456,2189601,6291456,2189633,6291456,2189665,6291456,2189697,6291456,2189729,6291456,2189761,6291456]),new Uint32Array([2202497,6291456,2202529,6291456,2202561,6291456,2202593,6291456,2202625,6291456,2202657,6291456,2202689,6291456,2202721,6291456]),new Uint32Array([2245217,2218369,2245249,2245282,2245345,2245377,2245410,2245474,2245537,2245569,2245601,2245633,2245665,2245665,2245697,2245729]),new Uint32Array([6291456,0,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,23068672,6291456,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2097281,2105921,2097729,2106081,2097377,2097601,2162337,2106017,2133281,2097505,0,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([2176641,6291456,2176673,6291456,2176705,6291456,2176737,6291456,2176769,6291456,2176801,6291456,2176833,6291456,2176865,6291456]),new Uint32Array([2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953,2174369,2174369,0,0,2100833,2100737]),new Uint32Array([2116513,2190817,2190849,2190881,2190913,2190945,2116609,2190977,2191009,2191041,2191073,2117185,2191105,2191137,2191169,2191201]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2167617,2167649,2167681,2167713,2167745,2167777,2167809,6291456,2167841,2167873,2167905,2167937,2167969,2168001,2168033,4240130]),new Uint32Array([2165122,2163970,2164034,2164098,2164162,2164226,2164290,2164354,2164418,2164482,2164546,2133122,2134562,2132162,2132834,2136866]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2186209,2186241,2186273,2186305,2186337,2186369,0,0]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([0,0,23068672,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([0,10537921,10610689,10610273,10610497,10610529,10610305,10610721,10489601,10489697,10610337,10575617,10554529,2221761,2197217,10496577]),new Uint32Array([2105473,2105569,2105601,2112289,0,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441]),new Uint32Array([2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481]),new Uint32Array([2125346,2153410,2153474,2127394,2153538,2153602,2153666,2153730,2105507,2105476,2153794,2153858,2153922,2153986,2154050,2105794]),new Uint32Array([2200449,2119681,2200481,2153313,2199873,2199905,2199937,2200513,2200545,2200577,2200609,2119105,2119201,2119297,2119393,2119489]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2175777,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2222273,2197217,2221473,2221505,2221089,2222305,2200865,2099681,2104481,2222337,2099905,2120737,2222369,2103713,2100225,2098785]),new Uint32Array([2201377,6291456,2201409,6291456,2201441,6291456,2201473,6291456,2201505,6291456,2201537,6291456,2201569,6291456,6291456,23068672]),new Uint32Array([2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793]),new Uint32Array([2200897,6291456,2200929,6291456,2200961,6291456,2200993,6291456,2201025,6291456,2180865,6291456,2201057,6291456,2201089,6291456]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2161154,2161410,2138658,2161474,2161538,2097666,2097186,2097474,2162946,2132450,2163010,2163074,2136162,2163138,2161666,2161730]),new Uint32Array([2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953]),new Uint32Array([0,0,0,0,0,0,23068672,23068672,0,0,0,0,2145410,2145474,0,6291456]),new Uint32Array([2244161,2216065,2212769,2244193,2244225,2244257,2244290,2244353,2244385,2244417,2244449,2218273,2244481,2244514,2244577,2244609]),new Uint32Array([2125730,2125699,2125795,2125891,2125987,2154114,2154178,2154242,2154306,2154370,2154434,2154498,2126082,2126178,2126274,2126083]),new Uint32Array([2237665,2237697,2237697,2237697,2237730,2237793,2237825,2237857,2237890,2237953,2237985,2238017,2238049,2238081,2238113,2238145]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150146,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([2214369,2238593,2238625,2238657,2238689,2238721,2238753,2238785,2238817,2238850,2238913,2238945,2238977,2235457,2239009,2239041]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2252066,2252130,2252193,2252225,2252257,2252290,2252353,2252385,2252417,2252449,2252481,2252513,2252545,2252578,2252641,2252673]),new Uint32Array([2197697,2114113,2114209,2197729,2197761,2114305,2197793,2114401,2114497,2197825,2114593,2114689,2114785,2114881,2114977,2197857]),new Uint32Array([2224866,2224930,2224994,2225058,2225122,2225186,2225250,2225314,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2219490,2219554,2219617,2219649,2219681,2219714,2219778,2219842,2219905,2219937,0,0,0,0,0,0]),new Uint32Array([6291456,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289]),new Uint32Array([2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953,2148481,2173601,2173633,2173665]),new Uint32Array([2220161,2220161,2220193,2220193,2220193,2220193,2220225,2220225,2220225,2220225,2220257,2220257,2220257,2220257,2220289,2220289]),new Uint32Array([2192673,2192705,2192737,2192769,2192801,2192833,2192865,2118049,2192897,2117473,2117761,2192929,2192961,2192993,2193025,2193057]),new Uint32Array([2179297,6291456,2179329,6291456,2179361,6291456,2179393,6291456,2179425,6291456,2179457,6291456,2179489,6291456,2179521,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2235745,2235777,2193633,2235809,2235841,2235873,2235905,2235937,2235969,2116513,2116705,2236001,2200513,2199905,2200545,2236033]),new Uint32Array([2113153,2108481,2113345,2113441,2232993,2233025,0,0,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761]),new Uint32Array([2170593,6291456,2170625,6291456,2170657,6291456,2170689,2170721,6291456,2170753,6291456,6291456,2170785,6291456,2170817,2170849]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2166786,2166850,0,0,0,0]),new Uint32Array([23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,10575617,2187041,10502177,10489601,10489697,0]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2134562,2132162,2132834,2136866,2136482,2164610,2164674,2164738,2164802,2132802,2132706,2164866,2132898,2164930,2164994,2165058]),new Uint32Array([6291456,6291456,2098337,2101441,10531458,2153473,6291456,6291456,10531522,2100737,2108193,6291456,2106499,2106595,2106691,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([2233122,2233186,2233250,2233314,2233378,2233442,2233506,2233570,2233634,2233698,2233762,2233826,2233890,2233954,2234018,2234082]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2205217,2205249,2205281,2205313,2205345,2205377,2205409,2205441,2205473,2205505,2205537,2205569,2205601,2205633,2205665,2205697]),new Uint32Array([6291456,0,6291456,0,0,0,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([2173601,2173761,2174081,2173569,2174241,2174113,2173953,6291456,2174305,6291456,2174337,6291456,2174369,6291456,2174401,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2152450,2152514,2099653,2104452,2099813,2122243,2099973,2152578,2122339,2122435,2122531,2122627,2122723,2104580,2122819,2152642]),new Uint32Array([2236385,2236417,2236449,2236482,2236545,2215425,2236577,2236609,2236641,2236673,2215457,2236705,2236737,2236770,2215489,2236833]),new Uint32Array([2163394,2159746,2163458,2131362,2163522,2160130,2163778,2132226,2163842,2132898,2163906,2161410,2138658,2097666,2136162,2163650]),new Uint32Array([2218721,2246913,2246946,2216385,2247010,2247074,2215009,2247137,2247169,2216481,2247201,2247233,2247266,2247330,2247330,0]),new Uint32Array([2129730,2129762,2129858,2129731,2129827,2156482,2156482,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0,0,0,0,6291456,0,0]),new Uint32Array([2203969,2204001,2181377,2204033,2204065,6291456,2204097,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2169473,6291456,2169505,6291456,2169537,6291456,2169569,6291456,2169601,6291456,2169633,6291456,2169665,6291456,2169697,6291456]),new Uint32Array([2141542,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220801,2220801,2220801,2220801,2220833,2220833,2220865,2220865,2220865,2220865,2220897,2220897,2220897,2220897,2139873,2139873]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,0,0,0,0,0,0,6291456,0]),new Uint32Array([2214849,2218433,2218465,2218497,2218529,2218561,2214881,2218593,2218625,2218657,2218689,2218721,2218753,2216545,2218785,2218817]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([2136482,2164610,2164674,2164738,2164802,2132802,2132706,2164866,2132898,2164930,2164994,2165058,2165122,2132802,2132706,2164866]),new Uint32Array([2207649,2207681,2207713,2207745,2207777,2207809,2207841,2207873,2207905,2207937,2207969,2208001,2208033,2208065,2208097,2208129]),new Uint32Array([2123683,2105092,2152706,2123779,2105220,2152770,2100453,2098755,2123906,2124002,2124098,2124194,2124290,2124386,2124482,2124578]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,0,0,0,0,0,0,0,10485857]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([10508163,10508259,10508355,10508451,2200129,2200161,2192737,2200193,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2203553,6291456,2203585,6291456,6291456,6291456,2203617,6291456,2203649,6291456,2203681,6291456,2203713,6291456,2203745,6291456]),new Uint32Array([18884449,18884065,23068672,18884417,18884034,18921185,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18874368]),new Uint32Array([2247393,2247426,2247489,2247521,2247553,2247586,2247649,2247681,2247713,2247745,2247777,2247810,2247873,2247905,2247937,2247969]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2134145,2097153,2134241,0,2132705,2130977,2160065,2131297,0,2133089,2160577,2133857,2235297,0,2235329,0]),new Uint32Array([2182593,6291456,2182625,6291456,2182657,6291456,2182689,6291456,2182721,6291456,2182753,6291456,2182785,6291456,2182817,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2102402,2102403,6291456,2110050]),new Uint32Array([2149890,2108323,2149954,6291456,2113441,6291456,2149057,6291456,2113441,6291456,2105473,2167265,2111137,2105505,6291456,2108353]),new Uint32Array([2219105,2219137,2195233,2251554,2251617,2251649,2251681,2251713,2251746,2251810,2251873,2251905,2251937,2251970,2252033,2219169]),new Uint32Array([2203009,6291456,2203041,6291456,2203073,6291456,2203105,6291456,2203137,6291456,2203169,6291456,2203201,6291456,2203233,6291456]),new Uint32Array([2128195,2128291,2128387,2128483,2128579,2128675,2128771,2128867,2128963,2129059,2129155,2129251,2129347,2129443,2129539,2129635]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2140964,2141156,2140966,2141158,2141350]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2225378,2225442,2225506,2225570,2225634,2225698,2225762,2225826,2225890,2225954,2226018,2226082,2226146,2226210,2226274,2226338]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417]),new Uint32Array([2108353,2108417,0,2105601,2108193,2157121,2157313,2157377,2157441,2100897,6291456,2108419,2173953,2173633,2173633,2173953]),new Uint32Array([2111713,2173121,2111905,2098177,2173153,2173185,2173217,2113153,2113345,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2190753]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,2197249,6291456,2117377,2197281,2197313,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,23068672]),new Uint32Array([2173281,6291456,2173313,6291456,2173345,6291456,2173377,6291456,0,0,10532546,6291456,6291456,6291456,10562017,2173441]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2159426,2159490,2159554,2159362,2159618,2159682,2139522,2136450,2159746,2159810,2159874,2130978,2131074,2131266,2131362,2159938]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2203233,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2203265,6291456,2203297,6291456,2203329,2203361,6291456]),new Uint32Array([6291456,6291456,2148418,2148482,2148546,0,6291456,2148610,2186529,2186561,2148417,2148545,2148482,10495778,2143969,10495778]),new Uint32Array([2134146,2139426,2160962,2134242,2161218,2161282,2161346,2161410,2138658,2134722,2134434,2134818,2097666,2097346,2097698,2105986]),new Uint32Array([2198881,2198913,2198945,2198977,2199009,2199041,2199073,2199105,2199137,2199169,2199201,2199233,2199265,2199297,2199329,2199361]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([10610561,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([2183873,6291456,2183905,6291456,2183937,6291456,2183969,6291456,2184001,6291456,2184033,6291456,2184065,6291456,2184097,6291456]),new Uint32Array([2244642,2244706,2244769,2244801,2218305,2244833,2244865,2244897,2244929,2244961,2244993,2245026,2245089,2245122,2245185,0]),new Uint32Array([6291456,6291456,2116513,2116609,2116705,2116801,2199873,2199905,2199937,2199969,2190913,2200001,2200033,2200065,2200097,2191009]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2180673,2180705,2180737,2180769,2180801,2180833,0,0]),new Uint32Array([2098081,2099521,2099105,2120705,2098369,2120801,2103361,2097985,2098433,2121377,2121473,2099169,2099873,2098401,2099393,2152609]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150402]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,2145666,2145730,6291456,6291456]),new Uint32Array([2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665]),new Uint32Array([2187073,6291456,6291456,6291456,6291456,2098241,2098241,2108353,2100897,2111905,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2102404,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2100612,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10485857]),new Uint32Array([2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889]),new Uint32Array([2217697,2217729,2217761,2217793,2217825,2217857,2217889,2217921,2217953,2215873,2217985,2215905,2218017,2218049,2218081,2218113]),new Uint32Array([2211233,2218849,2216673,2218881,2218913,2218945,2218977,2219009,2216833,2219041,2215137,2219073,2216865,2209505,2219105,2216897]),new Uint32Array([2240097,2240129,2240161,2240193,2240225,2240257,2240289,2240321,2240353,2240386,2240449,2240481,2240513,2240545,2207905,2240578]),new Uint32Array([6291456,6291456,2202273,6291456,2202305,6291456,2202337,6291456,2202369,6291456,2202401,6291456,2202433,6291456,2202465,6291456]),new Uint32Array([0,23068672,23068672,18923394,23068672,18923458,18923522,18884099,18923586,18884195,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2201121,6291456,2201153,6291456,2201185,6291456,2201217,6291456,2201249,6291456,2201281,6291456,2201313,6291456,2201345,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2211041,2211073,2211105,2211137,2211169,2211201,2211233,2211265,2211297,2211329,2211361,2211393,2211425,2211457,2211489,2211521]),new Uint32Array([2181825,6291456,2181857,6291456,2181889,6291456,2181921,6291456,2181953,6291456,2181985,6291456,2182017,6291456,2182049,6291456]),new Uint32Array([2162337,2097633,2097633,2097633,2097633,2132705,2132705,2132705,2132705,2097153,2097153,2097153,2097153,2133089,2133089,2133089]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,2148545,6291456,2173473,6291456,2148865,6291456,2173505,6291456,2173537,6291456,2173569,6291456,2149121,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2207137,2207169,2207201,2207233,2207265,2207297,2207329,2207361,2207393,2207425,2207457,2207489,2207521,2207553,2207585,2207617]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,6291456,0,23068672,23068672,0,0,0,0,0,0]),new Uint32Array([2198401,2198433,2198465,2198497,0,2198529,2198561,2198593,2198625,2198657,2198689,2198721,2198753,2198785,2198817,2198849]),new Uint32Array([2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([2216385,2118721,2216417,2216449,2216481,2216513,2216545,2211233,2216577,2216609,2216641,2216673,2216705,2216737,2216737,2216769]),new Uint32Array([2216801,2216833,2216865,2216897,2216929,2216961,2216993,2215169,2217025,2217057,2217089,2217121,2217154,2217217,0,0]),new Uint32Array([2210593,2191809,2210625,2210657,2210689,2210721,2210753,2210785,2210817,2210849,2191297,2210881,2210913,2210945,2210977,2211009]),new Uint32Array([0,0,2105825,0,0,2111905,2105473,0,0,2112289,2108193,2112481,2112577,0,2098305,2108321]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,2097153,2134241,0,2132705,0,0,2131297,0,2133089,0,2133857,0,2220769,0,2235361]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,6291456,6291456,14680064]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2171873,6291456,2171905,6291456,2171937,6291456,2171969,6291456,2172001,6291456,2172033,6291456,2172065,6291456,2172097,6291456]),new Uint32Array([2220929,2220929,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2133857,2134145,2134145,2134145,2134145,2134241,2134241,2134241,2134241,2105889,2105889,2105889,2105889,2097185,2097185,2097185]),new Uint32Array([2173697,2173761,2173793,2174113,2173985,2173953,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,10499619,10499715,10499811,10499907]),new Uint32Array([0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2144322,2144386,2144450,2144514,2144578,2144642,2144706,2144770]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([2113153,2108481,2113345,2113441,2098209,2111137,0,2098241,2108353,2108417,2105825,0,0,2111905,2105473,2105569]),new Uint32Array([2236321,2236353,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2152194,2121283,2103684,2103812,2097986,2098533,2097990,2098693,2098595,2098853,2099013,2103940,2121379,2121475,2121571,2104068]),new Uint32Array([2206241,2206273,2206305,2206337,2206369,2206401,2206433,2206465,2206497,2206529,2206561,2206593,2206625,2206657,2206689,2206721]),new Uint32Array([6291456,6291456,6291456,6291456,16777216,16777216,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,10538818,10538882,6291456,6291456,2150338]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2214369,2214401,2214433,2214465,2214497,2214529,2214561,2214593,2194977,2214625,2195073,2214657,2214689,2214721,6291456,6291456]),new Uint32Array([2097152,2097152,2097152,2097152,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2182081,6291456,2182113,6291456,2182145,6291456,2182177,6291456,2182209,6291456,2182241,6291456,2182273,6291456,2182305,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2146881,2146945,2147009,2147073,2147137,2147201,2147265,2147329]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,23068672,23068672]),new Uint32Array([0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2122915,2123011,2123107,2104708,2123203,2123299,2123395,2100133,2104836,2100290,2100293,2104962,2104964,2098052,2123491,2123587]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,2171169,6291456,2171201,6291456,2171233,6291456,2171265,6291456,2171297,6291456,2171329,6291456,6291456,2171361,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,2148994,2149058,2149122,0,6291456,2149186,2186945,2173537,2148993,2149121,2149058,10531458,10496066,0]),new Uint32Array([2195009,2195041,2195073,2195105,2195137,2195169,2195201,2195233,2195265,2195297,2195329,2195361,2195393,2195425,2195457,2195489]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,0,0,6291456,6291456]),new Uint32Array([2182849,6291456,2182881,6291456,2182913,6291456,2182945,6291456,2182977,6291456,2183009,6291456,2183041,6291456,2183073,6291456]),new Uint32Array([2211553,2210081,2211585,2211617,2211649,2211681,2211713,2211745,2211777,2211809,2209569,2211841,2211873,2211905,2211937,2211969]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2166594,2127298,2166658,2142978,2141827,2166722]),new Uint32Array([2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2185761,2185793,2185825,2185857,2185889,2185921,0,0]),new Uint32Array([6291456,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456]),new Uint32Array([0,0,0,2220961,2220961,2220961,2220961,2144193,2144193,2159201,2159201,2159265,2159265,2144194,2220993,2220993]),new Uint32Array([2192641,2235393,2235425,2152257,2116609,2235457,2235489,2200065,2235521,2235553,2235585,2212449,2235617,2235649,2235681,2235713]),new Uint32Array([2194049,2194081,2194113,2194145,2194177,2194209,2194241,2194273,2194305,2194337,2194369,2194401,2194433,2194465,2194497,2194529]),new Uint32Array([2196673,2208641,2208673,2208705,2208737,2208769,2208801,2208833,2208865,2208897,2208929,2208961,2208993,2209025,2209057,2209089]),new Uint32Array([2191681,2191713,2191745,2191777,2153281,2191809,2191841,2191873,2191905,2191937,2191969,2192001,2192033,2192065,2192097,2192129]),new Uint32Array([2230946,2231010,2231074,2231138,2231202,2231266,2231330,2231394,2231458,2231522,2231586,2231650,2231714,2231778,2231842,2231906]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2185953,2185985,2186017,2186049,2186081,2186113,2186145,2186177]),new Uint32Array([2139811,2139907,2097284,2105860,2105988,2106116,2106244,2097444,2097604,2097155,10485778,10486344,2106372,6291456,0,0]),new Uint32Array([2110051,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2172385,6291456,2172417,6291456,2172449,6291456,2172481,6291456,2172513,6291456,2172545,6291456,2172577,6291456,2172609,6291456]),new Uint32Array([0,0,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2249345,2249377,2249409,2249441,2249473,2249505,2249537,2249570,2210209,2249633,2249665,2249697,2249729,2249761,2249793,2216769]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2187169,2187201,2187233,2187265,2187297,2187329,2187361,2187393,2187425,2187457,2187489,2187521,2187553,2187585,2187617,2187649]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,6291456,6291456,0,0,0,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2182337,6291456,2182369,6291456,2182401,6291456,2182433,6291456,2182465,6291456,2182497,6291456,2182529,6291456,2182561,6291456]),new Uint32Array([2138179,2138275,2138371,2138467,2134243,2134435,2138563,2138659,2138755,2138851,2138947,2139043,2138947,2138755,2139139,2139235]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2250498,2250562,2250625,2250657,2208321,2250689,2250721,2250753,2250785,2250817,2250849,2218945,2250881,2250913,2250945,0]),new Uint32Array([2170369,2105569,2098305,2108481,2173249,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2100897,2111905,2105473,2105569,2105601,0,2108193,0,0,0,2098305,2108321,2108289,2100865,2113153,2108481]),new Uint32Array([2100897,2100897,2105569,2105569,6291456,2112289,2149826,6291456,6291456,2112481,2112577,2098177,2098177,2098177,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,2169953,2169985,6291456,2170017,6291456,2170049,2170081,6291456,2170113,2170145,2170177,6291456,6291456,2170209,2170241]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220641,2220641,2220673,2220673,2220673,2220673,2220705,2220705,2220705,2220705,2220737,2220737,2220737,2220737,2220769,2220769]),new Uint32Array([2127650,2127746,2127842,2127938,2128034,2128130,2128226,2128322,2128418,2127523,2127619,2127715,2127811,2127907,2128003,2128099]),new Uint32Array([2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177]),new Uint32Array([0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2204705,2204737,2204769,2204801,2204833,2204865,2204897,2204929,2204961,2204993,2205025,2205057,2205089,2205121,2205153,2205185]),new Uint32Array([2176385,6291456,2176417,6291456,2176449,6291456,2176481,6291456,2176513,6291456,2176545,6291456,2176577,6291456,2176609,6291456]),new Uint32Array([2195521,2195553,2195585,2195617,2195649,2195681,2117857,2195713,2195745,2195777,2195809,2195841,2195873,2195905,2195937,2195969]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456]),new Uint32Array([2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113]),new Uint32Array([2131586,2132450,2135970,2135778,2161602,2136162,2163650,2161794,2135586,2163714,2137186,2131810,2160290,2135170,2097506,2159554]),new Uint32Array([2134145,2097153,2134241,2105953,2132705,2130977,2160065,2131297,2162049,2133089,2160577,2133857,0,0,0,0]),new Uint32Array([2116513,2116609,2116705,2116801,2116897,2116993,2117089,2117185,2117281,2117377,2117473,2117569,2117665,2117761,2117857,2117953]),new Uint32Array([2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100802,2101154,2101282,2101410,2101538,2101666,2101794]),new Uint32Array([2100289,2098657,2098049,2200737,2123489,2123681,2200769,2098625,2100321,2098145,2100449,2098017,2098753,2098977,2150241,2150305]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,2109955,6291456,6291456,0,0,0,0]),new Uint32Array([18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,0,0]),new Uint32Array([2130979,2131075,2131075,2131171,2131267,2131363,2131459,2131555,2131651,2131651,2131747,2131843,2131939,2132035,2132131,2132227]),new Uint32Array([0,2177793,6291456,2177825,6291456,2177857,6291456,2177889,6291456,2177921,6291456,2177953,6291456,2177985,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2113345,0,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289]),new Uint32Array([2136643,2136739,2136835,2136931,2137027,2137123,2137219,2137315,2137411,2137507,2137603,2137699,2137795,2137891,2137987,2138083]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2174433,6291456,2174465,6291456,2174497,6291456,2174529,6291456,2174561,6291456,2174593,6291456,2174625,6291456,2174657,6291456]),new Uint32Array([0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441]),new Uint32Array([10496547,10496643,2105505,2149698,6291456,10496739,10496835,2170273,6291456,2149762,2105825,2111713,2111713,2111713,2111713,2168673]),new Uint32Array([6291456,2143490,2143490,2143490,2171649,6291456,2171681,2171713,2171745,6291456,2171777,6291456,2171809,6291456,2171841,6291456]),new Uint32Array([2159106,2159106,2159170,2159170,2159234,2159234,2159298,2159298,2159298,2159362,2159362,2159362,2106401,2106401,2106401,2106401]),new Uint32Array([2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137]),new Uint32Array([2108417,2181217,2181249,2181281,2170433,2170401,2181313,2181345,2181377,2181409,2181441,2181473,2181505,2181537,2170529,2181569]),new Uint32Array([2218433,2245761,2245793,2245825,2245857,2245890,2245953,2245986,2209665,2246050,2246113,2246146,2246210,2246274,2246337,2246369]),new Uint32Array([2230754,2230818,2230882,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2184129,6291456,2184161,6291456,2184193,6291456,6291456,6291456,6291456,6291456,2146818,2183361,6291456,6291456,2142978,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2135170,2097506,2130691,2130787,2130883,2163970,2164034,2164098,2164162,2164226,2164290,2164354,2164418,2164482,2164546,2133122]),new Uint32Array([2108515,2108611,2100740,2108707,2108803,2108899,2108995,2109091,2109187,2109283,2109379,2109475,2109571,2109667,2109763,2100738]),new Uint32Array([2102788,2102916,2103044,2120515,2103172,2120611,2120707,2098373,2103300,2120803,2120899,2120995,2103428,2103556,2121091,2121187]),new Uint32Array([2158082,2158146,0,2158210,2158274,0,2158338,2158402,2158466,2129922,2158530,2158594,2158658,2158722,2158786,2158850]),new Uint32Array([10499619,10499715,10499811,10499907,10500003,10500099,10500195,10500291,10500387,10500483,10500579,10500675,10500771,10500867,10500963,10501059]),new Uint32Array([2239585,2239618,2239681,2239713,0,2191969,2239745,2239777,2192033,2239809,2239841,2239874,2239937,2239970,2240033,2240065]),new Uint32Array([2252705,2252738,2252801,2252833,2252865,2252897,2252930,2252994,2253057,2253089,2253121,2253154,2253217,2253250,2219361,2219361]),new Uint32Array([2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,10538050,10538114,10538178,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2226402,2226466,2226530,2226594,2226658,2226722,2226786,2226850,2226914,2226978,2227042,2227106,2227170,2227234,2227298,2227362]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,2144066,2144130,2144194,2144258,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2124674,2124770,2123875,2123971,2124067,2124163,2124259,2124355,2124451,2124547,2124643,2124739,2124835,2124931,2125027,2125123]),new Uint32Array([2168065,6291456,2168097,6291456,2168129,6291456,2168161,6291456,2168193,6291456,2168225,6291456,2168257,6291456,2168289,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2100610,2100611,6291456,2107842,2107843,6291456,6291456,6291456,6291456,10537922,6291456,10537986,6291456]),new Uint32Array([2174849,2174881,2174913,2174945,2174977,2175009,2175041,2175073,2175105,2175137,2175169,2175201,2175233,2175265,2175297,2175329]),new Uint32Array([2154562,2154626,2154690,2154754,2141858,2154818,2154882,2127298,2154946,2127298,2155010,2155074,2155138,2155202,2155266,2155202]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0]),new Uint32Array([2200641,2150786,2150850,2150914,2150978,2151042,2106562,2151106,2150562,2151170,2151234,2151298,2151362,2151426,2151490,2151554]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456]),new Uint32Array([2220289,2220289,2220321,2220321,2220321,2220321,2220353,2220353,2220353,2220353,2220385,2220385,2220385,2220385,2220417,2220417]),new Uint32Array([2155330,2155394,0,2155458,2155522,2155586,2105732,0,2155650,2155714,2155778,2125314,2155842,2155906,2126274,2155970]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0]),new Uint32Array([2097729,2106017,2106017,2106017,2106017,2131297,2131297,2131297,2131297,2106081,2106081,2162049,2162049,2105953,2105953,2162337]),new Uint32Array([2097185,2097697,2097697,2097697,2097697,2135777,2135777,2135777,2135777,2097377,2097377,2097377,2097377,2097601,2097601,2097217]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([2139331,2139427,2139523,2139043,2133571,2132611,2139619,2139715,0,0,0,0,0,0,0,0]),new Uint32Array([2174113,2174145,2100897,2098177,2108289,2100865,2173601,2173633,2173985,2174113,2174145,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,23068672,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,18923778,23068672,23068672,23068672,23068672,18923842,23068672,23068672,23068672,23068672,18923906,23068672,23068672,23068672]),new Uint32Array([2134145,2097153,2134241,0,2132705,2130977,2160065,2131297,0,2133089,0,2133857,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2177537,6291456,2177569,6291456,2177601,6291456,2177633,6291456,2177665,6291456,2177697,6291456,2177729,6291456,2177761,6291456]),new Uint32Array([2212481,2212513,2212545,2212577,2197121,2212609,2212641,2212673,2212705,2212737,2212769,2212801,2212833,2212865,2212897,2212929]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2098241,2108353,2170209,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,6291456,2108193,2172417,2112481,2098177]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456])],e=new Uint16Array([616,616,565,147,161,411,330,2,131,131,328,454,241,408,86,86,696,113,285,350,325,301,473,214,639,232,447,64,369,598,124,672,567,223,621,154,107,86,86,86,86,86,86,505,86,68,634,86,218,218,218,218,486,218,218,513,188,608,216,86,217,463,668,85,700,360,184,86,86,86,647,402,153,10,346,718,662,260,145,298,117,1,443,342,138,54,563,86,240,572,218,70,387,86,118,460,641,602,86,86,306,218,86,692,86,86,86,86,86,162,707,86,458,26,86,218,638,86,86,86,86,86,65,449,86,86,306,183,86,58,391,667,86,157,131,131,131,131,86,433,131,406,31,218,247,86,86,693,218,581,351,86,438,295,69,462,45,126,173,650,14,295,69,97,168,187,641,78,523,390,69,108,287,664,173,219,83,295,69,108,431,426,173,694,412,115,628,52,257,398,641,118,501,121,69,579,151,423,173,620,464,121,69,382,151,476,173,27,53,121,86,594,578,226,173,86,632,130,86,96,228,268,641,622,563,86,86,21,148,650,131,131,321,43,144,343,381,531,131,131,178,20,86,399,156,375,164,541,30,60,715,198,92,118,131,131,86,86,306,407,86,280,457,196,488,358,131,131,244,86,86,143,86,86,86,86,86,667,563,86,86,86,86,86,86,86,86,86,86,86,86,86,336,363,86,86,336,86,86,380,678,67,86,86,86,678,86,86,86,512,86,307,86,708,86,86,86,86,86,528,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,563,307,86,86,86,86,86,104,450,337,86,720,86,32,450,397,86,86,86,587,218,558,708,708,293,708,86,86,86,86,86,694,205,86,8,86,86,86,86,549,86,667,697,697,679,86,458,460,86,86,650,86,708,543,86,86,86,245,86,86,86,140,218,127,708,708,458,197,131,131,131,131,500,86,86,483,251,86,306,510,515,86,722,86,86,86,65,201,86,86,483,580,470,86,86,86,368,131,131,131,694,114,110,555,86,86,123,721,163,142,713,418,86,317,675,209,218,218,218,371,545,592,629,490,603,199,46,320,525,680,310,279,388,111,42,252,593,607,235,617,410,377,50,548,135,356,17,520,189,116,392,600,349,332,482,699,690,535,119,106,451,71,152,667,131,218,218,265,671,637,492,504,533,683,269,269,658,86,86,86,86,86,86,86,86,86,491,619,86,86,6,86,86,86,86,86,86,86,86,86,86,86,229,86,86,86,86,86,86,86,86,86,86,86,86,667,86,86,171,131,118,131,656,206,234,571,89,334,670,246,311,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,534,86,86,86,86,86,86,82,86,86,86,86,86,430,86,86,86,86,86,86,86,86,86,599,86,324,86,470,69,640,264,131,626,101,174,86,86,667,233,105,73,374,394,221,204,84,28,326,86,86,471,86,86,86,109,573,86,171,200,200,200,200,218,218,86,86,86,86,460,131,131,131,86,506,86,86,86,86,86,220,404,34,614,47,442,305,25,612,338,601,648,7,344,255,131,131,51,86,312,507,563,86,86,86,86,588,86,86,86,86,86,530,511,86,458,3,435,384,556,522,230,527,86,118,86,86,717,86,137,273,79,181,484,23,93,112,655,249,417,703,370,87,98,313,684,585,155,465,596,481,695,18,416,428,61,701,706,282,643,495,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,307,86,86,86,171,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,650,131,422,542,420,263,24,172,86,86,86,86,86,566,86,86,132,540,395,353,494,519,19,485,284,472,131,131,131,16,714,86,211,708,86,86,86,694,698,86,86,483,704,708,218,272,86,86,120,86,159,478,86,307,247,86,86,663,597,459,627,667,86,86,277,455,39,302,86,250,86,86,86,271,99,452,306,281,329,400,200,86,86,362,549,352,646,461,323,586,86,86,4,708,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,717,86,518,86,86,650,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,125,554,480,300,613,72,333,288,561,544,604,48,719,91,169,176,590,224,76,191,29,559,560,231,537,166,477,538,256,437,131,131,469,167,40,0,685,266,441,705,239,642,475,568,640,610,299,673,517,318,385,22,202,180,179,359,424,215,90,66,521,653,467,682,453,409,479,88,131,661,35,303,15,262,666,630,712,131,131,618,659,175,218,195,347,193,227,261,150,165,709,546,294,569,710,270,413,376,524,55,242,38,419,529,170,657,3,304,122,379,278,131,651,86,67,576,458,458,131,131,86,86,86,86,86,86,86,118,309,86,86,547,86,86,86,86,667,650,664,131,131,86,86,56,131,131,131,131,131,131,131,131,86,307,86,86,86,664,238,650,86,86,717,86,118,86,86,315,86,59,86,86,574,549,131,131,340,57,436,86,86,86,86,86,86,458,708,499,691,62,86,650,86,86,694,86,86,86,319,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,86,549,694,131,131,131,131,131,131,131,131,131,77,86,86,139,86,502,86,86,86,667,595,131,131,131,86,12,86,13,86,609,131,131,131,131,86,86,86,625,86,669,86,86,182,129,86,5,694,104,86,86,86,86,131,131,86,86,386,171,86,86,86,345,86,324,86,589,86,213,36,131,131,131,131,131,86,86,86,86,104,131,131,131,141,290,80,677,86,86,86,267,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,667,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,515,86,86,33,136,669,86,711,515,86,86,550,640,86,104,708,515,86,159,372,717,86,86,444,515,86,86,663,37,86,563,460,86,390,624,702,131,131,131,131,389,59,708,86,86,341,208,708,635,295,69,108,431,508,100,190,131,131,131,131,131,131,131,131,86,86,86,649,516,660,131,131,86,86,86,218,631,708,131,131,131,131,131,131,131,131,131,131,86,86,341,575,238,514,131,131,86,86,86,218,291,708,307,131,86,86,306,367,708,131,131,131,86,378,697,86,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,615,253,86,86,86,292,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,104,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,69,86,341,553,549,86,307,86,86,645,275,455,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,708,131,131,131,131,131,131,86,86,86,86,86,86,667,460,86,86,86,86,86,86,86,86,86,86,86,86,717,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,667,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,104,86,667,459,131,131,131,131,131,131,86,458,225,86,86,86,516,549,11,390,405,86,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,460,44,218,197,711,515,131,131,131,131,664,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,307,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,308,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,118,307,104,286,591,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,86,86,681,86,86,75,185,314,582,86,358,496,474,86,104,131,86,86,86,86,146,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,171,86,640,131,131,131,131,131,131,131,131,246,503,689,339,674,81,258,415,439,128,562,366,414,246,503,689,583,222,557,316,636,665,186,355,95,670,246,503,689,339,674,557,258,415,439,186,355,95,670,246,503,689,446,644,536,652,331,532,335,440,274,421,297,570,74,425,364,425,606,552,403,509,134,365,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,218,218,218,498,218,218,577,627,551,497,572,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,553,354,236,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,296,455,131,131,456,243,103,86,41,459,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,9,276,158,716,393,564,383,489,401,654,210,654,131,131,131,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,650,86,86,86,86,86,86,717,667,563,563,563,86,549,102,686,133,246,605,86,448,86,86,207,307,131,131,131,641,86,177,611,445,373,194,584,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,308,307,171,86,86,86,86,86,86,86,717,86,86,86,86,86,460,131,131,650,86,86,86,694,708,86,86,694,86,458,131,131,131,131,131,131,667,694,289,650,667,131,131,86,640,131,131,664,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,460,86,86,86,86,86,86,86,86,86,86,86,86,86,458,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,466,203,149,429,94,432,160,687,539,63,237,283,192,248,348,259,427,526,396,676,254,468,487,212,327,623,49,633,322,493,434,688,357,361,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131]),{mapStr:"صلى الله عليه وسلمجل جلالهキロメートルrad∕s2エスクードキログラムキロワットグラムトンクルゼイロサンチームパーセントピアストルファラッドブッシェルヘクタールマンションミリバールレントゲン′′′′1⁄10viii(10)(11)(12)(13)(14)(15)(16)(17)(18)(19)(20)∫∫∫∫(오전)(오후)アパートアルファアンペアイニングエーカーカラットカロリーキュリーギルダークローネサイクルシリングバーレルフィートポイントマイクロミクロンメガトンリットルルーブル株式会社kcalm∕s2c∕kgاكبرمحمدصلعمرسولریال1⁄41⁄23⁄4 ̈́ྲཱྀླཱྀ ̈͂ ̓̀ ̓́ ̓͂ ̔̀ ̔́ ̔͂ ̈̀‵‵‵a/ca/sc/oc/utelfax1⁄71⁄91⁄32⁄31⁄52⁄53⁄54⁄51⁄65⁄61⁄83⁄85⁄87⁄8xii0⁄3∮∮∮(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)(u)(v)(w)(x)(y)(z)::====(ᄀ)(ᄂ)(ᄃ)(ᄅ)(ᄆ)(ᄇ)(ᄉ)(ᄋ)(ᄌ)(ᄎ)(ᄏ)(ᄐ)(ᄑ)(ᄒ)(가)(나)(다)(라)(마)(바)(사)(아)(자)(차)(카)(타)(파)(하)(주)(一)(二)(三)(四)(五)(六)(七)(八)(九)(十)(月)(火)(水)(木)(金)(土)(日)(株)(有)(社)(名)(特)(財)(祝)(労)(代)(呼)(学)(監)(企)(資)(協)(祭)(休)(自)(至)pte10月11月12月ergltdアールインチウォンオンスオームカイリガロンガンマギニーケースコルナコーポセンチダースノットハイツパーツピクルフランペニヒヘルツペンスページベータボルトポンドホールホーンマイルマッハマルクヤードヤールユアンルピー10点11点12点13点14点15点16点17点18点19点20点21点22点23点24点hpabardm2dm3khzmhzghzthzmm2cm2km2mm3cm3km3kpampagpalogmilmolppmv∕ma∕m10日11日12日13日14日15日16日17日18日19日20日21日22日23日24日25日26日27日28日29日30日31日galffifflשּׁשּׂ ٌّ ٍّ َّ ُّ ِّ ّٰـَّـُّـِّتجمتحجتحمتخمتمجتمحتمخجمححميحمىسحجسجحسجىسمحسمجسممصححصممشحمشجيشمخشممضحىضخمطمحطممطميعجمعممعمىغممغميغمىفخمقمحقمملحملحيلحىلججلخملمحمحجمحيمجحمجممخممجخهمجهممنحمنحىنجمنجىنمينمىيممبخيتجيتجىتخيتخىتميتمىجميجحىجمىسخىصحيشحيضحيلجيلمييحييجييميمميقمينحيعميكمينجحمخيلجمكممجحيحجيمجيفميبحيسخينجيصلےقلے𝅘𝅥𝅮𝅘𝅥𝅯𝅘𝅥𝅰𝅘𝅥𝅱𝅘𝅥𝅲𝆹𝅥𝅮𝆺𝅥𝅮𝆹𝅥𝅯𝆺𝅥𝅯〔s〕ppv〔本〕〔三〕〔二〕〔安〕〔点〕〔打〕〔盗〕〔勝〕〔敗〕 ̄ ́ ̧ssi̇ijl·ʼndžljnjdz ̆ ̇ ̊ ̨ ̃ ̋ ιեւاٴوٴۇٴيٴक़ख़ग़ज़ड़ढ़फ़य़ড়ঢ়য়ਲ਼ਸ਼ਖ਼ਗ਼ਜ਼ਫ਼ଡ଼ଢ଼ําໍາຫນຫມགྷཌྷདྷབྷཛྷཀྵཱཱིུྲྀླྀྒྷྜྷྡྷྦྷྫྷྐྵaʾἀιἁιἂιἃιἄιἅιἆιἇιἠιἡιἢιἣιἤιἥιἦιἧιὠιὡιὢιὣιὤιὥιὦιὧιὰιαιάιᾶι ͂ὴιηιήιῆιὼιωιώιῶι ̳!! ̅???!!?rs°c°fnosmtmivix⫝̸ ゙ ゚よりコト333435참고주의363738394042444546474849503月4月5月6月7月8月9月hgevギガデシドルナノピコビルペソホンリラレムdaauovpciu平成昭和大正明治naμakakbmbgbpfnfμfμgmgμlmldlklfmnmμmpsnsμsmsnvμvkvpwnwμwmwkwkωmωbqcccddbgyhainkkktlnlxphprsrsvwbstմնմեմիվնմխיִײַשׁשׂאַאָאּבּגּדּהּוּזּטּיּךּכּלּמּנּסּףּפּצּקּרּתּוֹבֿכֿפֿאלئائەئوئۇئۆئۈئېئىئجئحئمئيبجبمبىبيتىتيثجثمثىثيخحضجضمطحظمغجفجفحفىفيقحقىقيكاكجكحكخكلكىكينخنىنيهجهىهييىذٰرٰىٰئرئزئنبزبنترتزتنثرثزثنمانرنزننيريزئخئهبهتهصخنههٰثهسهشهطىطيعىعيغىغيسىسيشىشيصىصيضىضيشخشرسرصرضراً ًـًـّ ْـْلآلألإ𝅗𝅥0,1,2,3,4,5,6,7,8,9,wzhvsdwcmcmddjほかココàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįĵķĺļľłńņňŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷÿźżɓƃƅɔƈɖɗƌǝəɛƒɠɣɩɨƙɯɲɵơƣƥʀƨʃƭʈưʊʋƴƶʒƹƽǎǐǒǔǖǘǚǜǟǡǣǥǧǩǫǭǯǵƕƿǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟƞȣȥȧȩȫȭȯȱȳⱥȼƚⱦɂƀʉʌɇɉɋɍɏɦɹɻʁʕͱͳʹͷ;ϳέίόύβγδεζθκλνξοπρστυφχψϊϋϗϙϛϝϟϡϣϥϧϩϫϭϯϸϻͻͼͽѐёђѓєѕіїјљњћќѝўџабвгдежзийклмнопрстуфхцчшщъыьэюяѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓԕԗԙԛԝԟԡԣԥԧԩԫԭԯաբգդզէըթժլծկհձղճյշոչպջռստրցփքօֆ་ⴧⴭნᏰᏱᏲᏳᏴᏵꙋɐɑᴂɜᴖᴗᴝᴥɒɕɟɡɥɪᵻʝɭᶅʟɱɰɳɴɸʂƫᴜʐʑḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹỻỽỿἐἑἒἓἔἕἰἱἲἳἴἵἶἷὀὁὂὃὄὅὑὓὕὗᾰᾱὲΐῐῑὶΰῠῡὺῥ`ὸ‐+−∑〈〉ⰰⰱⰲⰳⰴⰵⰶⰷⰸⰹⰺⰻⰼⰽⰾⰿⱀⱁⱂⱃⱄⱅⱆⱇⱈⱉⱊⱋⱌⱍⱎⱏⱐⱑⱒⱓⱔⱕⱖⱗⱘⱙⱚⱛⱜⱝⱞⱡɫᵽɽⱨⱪⱬⱳⱶȿɀⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳬⳮⳳⵡ母龟丨丶丿乙亅亠人儿入冂冖冫几凵刀力勹匕匚匸卜卩厂厶又口囗士夂夊夕女子宀寸小尢尸屮山巛工己巾干幺广廴廾弋弓彐彡彳心戈戶手支攴文斗斤方无曰欠止歹殳毋比毛氏气爪父爻爿片牙牛犬玄玉瓜瓦甘生用田疋疒癶白皮皿目矛矢石示禸禾穴立竹米糸缶网羊羽老而耒耳聿肉臣臼舌舛舟艮色艸虍虫血行衣襾見角言谷豆豕豸貝赤走足身車辛辰辵邑酉釆里長門阜隶隹雨靑非面革韋韭音頁風飛食首香馬骨高髟鬥鬯鬲鬼魚鳥鹵鹿麥麻黃黍黑黹黽鼎鼓鼠鼻齊齒龍龜龠.〒卄卅ᄁᆪᆬᆭᄄᆰᆱᆲᆳᆴᆵᄚᄈᄡᄊ짜ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵᄔᄕᇇᇈᇌᇎᇓᇗᇙᄜᇝᇟᄝᄞᄠᄢᄣᄧᄩᄫᄬᄭᄮᄯᄲᄶᅀᅇᅌᇱᇲᅗᅘᅙᆄᆅᆈᆑᆒᆔᆞᆡ上中下甲丙丁天地問幼箏우秘男適優印注項写左右医宗夜テヌモヨヰヱヲꙁꙃꙅꙇꙉꙍꙏꙑꙓꙕꙗꙙꙛꙝꙟꙡꙣꙥꙧꙩꙫꙭꚁꚃꚅꚇꚉꚋꚍꚏꚑꚓꚕꚗꚙꚛꜣꜥꜧꜩꜫꜭꜯꜳꜵꜷꜹꜻꜽꜿꝁꝃꝅꝇꝉꝋꝍꝏꝑꝓꝕꝗꝙꝛꝝꝟꝡꝣꝥꝧꝩꝫꝭꝯꝺꝼᵹꝿꞁꞃꞅꞇꞌꞑꞓꞗꞙꞛꞝꞟꞡꞣꞥꞧꞩɬʞʇꭓꞵꞷꬷꭒᎠᎡᎢᎣᎤᎥᎦᎧᎨᎩᎪᎫᎬᎭᎮᎯᎰᎱᎲᎳᎴᎵᎶᎷᎸᎹᎺᎻᎼᎽᎾᎿᏀᏁᏂᏃᏄᏅᏆᏇᏈᏉᏊᏋᏌᏍᏎᏏᏐᏑᏒᏓᏔᏕᏖᏗᏘᏙᏚᏛᏜᏝᏞᏟᏠᏡᏢᏣᏤᏥᏦᏧᏨᏩᏪᏫᏬᏭᏮᏯ豈更賈滑串句契喇奈懶癩羅蘿螺裸邏樂洛烙珞落酪駱亂卵欄爛蘭鸞嵐濫藍襤拉臘蠟廊朗浪狼郎來冷勞擄櫓爐盧蘆虜路露魯鷺碌祿綠菉錄論壟弄籠聾牢磊賂雷壘屢樓淚漏累縷陋勒肋凜凌稜綾菱陵讀拏諾丹寧怒率異北磻便復不泌數索參塞省葉說殺沈拾若掠略亮兩凉梁糧良諒量勵呂廬旅濾礪閭驪麗黎曆歷轢年憐戀撚漣煉璉秊練聯輦蓮連鍊列劣咽烈裂廉念捻殮簾獵令囹嶺怜玲瑩羚聆鈴零靈領例禮醴隸惡了僚寮尿料燎療蓼遼暈阮劉杻柳流溜琉留硫紐類戮陸倫崙淪輪律慄栗隆利吏履易李梨泥理痢罹裏裡離匿溺吝燐璘藺隣鱗麟林淋臨笠粒狀炙識什茶刺切度拓糖宅洞暴輻降廓兀嗀塚晴凞猪益礼神祥福靖精蘒諸逸都飯飼館鶴郞隷侮僧免勉勤卑喝嘆器塀墨層悔慨憎懲敏既暑梅海渚漢煮爫琢碑祉祈祐祖禍禎穀突節縉繁署者臭艹著褐視謁謹賓贈辶難響頻恵𤋮舘並况全侀充冀勇勺啕喙嗢墳奄奔婢嬨廒廙彩徭惘慎愈慠戴揄搜摒敖望杖滛滋瀞瞧爵犯瑱甆画瘝瘟盛直睊着磌窱类絛缾荒華蝹襁覆調請諭變輸遲醙鉶陼韛頋鬒𢡊𢡄𣏕㮝䀘䀹𥉉𥳐𧻓齃龎עםٱٻپڀٺٿٹڤڦڄڃچڇڍڌڎڈژڑکگڳڱںڻۀہھۓڭۋۅۉ、〖〗—–_{}【】《》「」『』[]#&*-<>\\$%@ءؤة\"'^|~⦅⦆・ゥャ¢£¬¦¥₩│←↑→↓■○𐐨𐐩𐐪𐐫𐐬𐐭𐐮𐐯𐐰𐐱𐐲𐐳𐐴𐐵𐐶𐐷𐐸𐐹𐐺𐐻𐐼𐐽𐐾𐐿𐑀𐑁𐑂𐑃𐑄𐑅𐑆𐑇𐑈𐑉𐑊𐑋𐑌𐑍𐑎𐑏𐓘𐓙𐓚𐓛𐓜𐓝𐓞𐓟𐓠𐓡𐓢𐓣𐓤𐓥𐓦𐓧𐓨𐓩𐓪𐓫𐓬𐓭𐓮𐓯𐓰𐓱𐓲𐓳𐓴𐓵𐓶𐓷𐓸𐓹𐓺𐓻𐳀𐳁𐳂𐳃𐳄𐳅𐳆𐳇𐳈𐳉𐳊𐳋𐳌𐳍𐳎𐳏𐳐𐳑𐳒𐳓𐳔𐳕𐳖𐳗𐳘𐳙𐳚𐳛𐳜𐳝𐳞𐳟𐳠𐳡𐳢𐳣𐳤𐳥𐳦𐳧𐳨𐳩𐳪𐳫𐳬𐳭𐳮𐳯𐳰𐳱𐳲𑣀𑣁𑣂𑣃𑣄𑣅𑣆𑣇𑣈𑣉𑣊𑣋𑣌𑣍𑣎𑣏𑣐𑣑𑣒𑣓𑣔𑣕𑣖𑣗𑣘𑣙𑣚𑣛𑣜𑣝𑣞𑣟ıȷ∇∂𞤢𞤣𞤤𞤥𞤦𞤧𞤨𞤩𞤪𞤫𞤬𞤭𞤮𞤯𞤰𞤱𞤲𞤳𞤴𞤵𞤶𞤷𞤸𞤹𞤺𞤻𞤼𞤽𞤾𞤿𞥀𞥁𞥂𞥃ٮڡٯ字双多解交映無前後再新初終販声吹演投捕遊指禁空合満申割営配得可丽丸乁𠄢你侻倂偺備像㒞𠘺兔兤具𠔜㒹內𠕋冗冤仌冬𩇟刃㓟刻剆剷㔕包匆卉博即卽卿𠨬灰及叟𠭣叫叱吆咞吸呈周咢哶唐啓啣善喫喳嗂圖圗噑噴壮城埴堍型堲報墬𡓤売壷夆夢奢𡚨𡛪姬娛娧姘婦㛮嬈嬾𡧈寃寘寳𡬘寿将㞁屠峀岍𡷤嵃𡷦嵮嵫嵼巡巢㠯巽帨帽幩㡢𢆃㡼庰庳庶𪎒𢌱舁弢㣇𣊸𦇚形彫㣣徚忍志忹悁㤺㤜𢛔惇慈慌慺憲憤憯懞戛扝抱拔捐𢬌挽拼捨掃揤𢯱搢揅掩㨮摩摾撝摷㩬敬𣀊旣書晉㬙㬈㫤冒冕最暜肭䏙朡杞杓𣏃㭉柺枅桒𣑭梎栟椔楂榣槪檨𣚣櫛㰘次𣢧歔㱎歲殟殻𣪍𡴋𣫺汎𣲼沿泍汧洖派浩浸涅𣴞洴港湮㴳滇𣻑淹潮𣽞𣾎濆瀹瀛㶖灊災灷炭𠔥煅𤉣熜爨牐𤘈犀犕𤜵𤠔獺王㺬玥㺸瑇瑜璅瓊㼛甤𤰶甾𤲒𢆟瘐𤾡𤾸𥁄㿼䀈𥃳𥃲𥄙𥄳眞真瞋䁆䂖𥐝硎䃣𥘦𥚚𥛅秫䄯穊穏𥥼𥪧䈂𥮫篆築䈧𥲀糒䊠糨糣紀𥾆絣䌁緇縂繅䌴𦈨𦉇䍙𦋙罺𦌾羕翺𦓚𦔣聠𦖨聰𣍟䏕育脃䐋脾媵𦞧𦞵𣎓𣎜舄辞䑫芑芋芝劳花芳芽苦𦬼茝荣莭茣莽菧荓菊菌菜𦰶𦵫𦳕䔫蓱蓳蔖𧏊蕤𦼬䕝䕡𦾱𧃒䕫虐虧虩蚩蚈蜎蛢蜨蝫螆蟡蠁䗹衠𧙧裗裞䘵裺㒻𧢮𧥦䚾䛇誠𧲨貫賁贛起𧼯𠠄跋趼跰𠣞軔𨗒𨗭邔郱鄑𨜮鄛鈸鋗鋘鉼鏹鐕𨯺開䦕閷𨵷䧦雃嶲霣𩅅𩈚䩮䩶韠𩐊䪲𩒖頩𩖶飢䬳餩馧駂駾䯎𩬰鱀鳽䳎䳭鵧𪃎䳸𪄅𪈎𪊑䵖黾鼅鼏鼖𪘀",mapChar:function(r){return r>=196608?r>=917760&&r<=917999?18874368:0:t[e[r>>4]][15&r]}};var t,e}.apply(e,[]))||(t.exports=n)},function(t,e,r){"use strict";t.exports=[{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"resolver",outputs:[{name:"",type:"address"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"label",type:"bytes32"},{name:"owner",type:"address"}],name:"setSubnodeOwner",outputs:[],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"ttl",type:"uint64"}],name:"setTTL",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"ttl",outputs:[{name:"",type:"uint64"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"resolver",type:"address"}],name:"setResolver",outputs:[],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"owner",type:"address"}],name:"setOwner",outputs:[],payable:!1,type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"owner",type:"address"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!0,name:"label",type:"bytes32"},{indexed:!1,name:"owner",type:"address"}],name:"NewOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"resolver",type:"address"}],name:"NewResolver",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"ttl",type:"uint64"}],name:"NewTTL",type:"event"},{constant:!1,inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"resolver",type:"address"},{internalType:"uint64",name:"ttl",type:"uint64"}],name:"setRecord",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"recordExists",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"bytes32",name:"label",type:"bytes32"},{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"resolver",type:"address"},{internalType:"uint64",name:"ttl",type:"uint64"}],name:"setSubnodeRecord",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}]},function(t,e,r){"use strict";t.exports=[{constant:!0,inputs:[{name:"interfaceID",type:"bytes4"}],name:"supportsInterface",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"},{name:"contentTypes",type:"uint256"}],name:"ABI",outputs:[{name:"contentType",type:"uint256"},{name:"data",type:"bytes"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes"}],name:"setMultihash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"multihash",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],name:"setPubkey",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"content",outputs:[{name:"ret",type:"bytes32"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"addr",outputs:[{name:"ret",type:"address"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"contentType",type:"uint256"},{name:"data",type:"bytes"}],name:"setABI",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"name",outputs:[{name:"ret",type:"string"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"name",type:"string"}],name:"setName",outputs:[],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes32"}],name:"setContent",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"pubkey",outputs:[{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"addr",type:"address"}],name:"setAddr",outputs:[],payable:!1,type:"function"},{inputs:[{name:"ensAddr",type:"address"}],payable:!1,type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"a",type:"address"}],name:"AddrChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"hash",type:"bytes32"}],name:"ContentChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"name",type:"string"}],name:"NameChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!0,name:"contentType",type:"uint256"}],name:"ABIChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"x",type:"bytes32"},{indexed:!1,name:"y",type:"bytes32"}],name:"PubkeyChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"hash",type:"bytes"}],name:"ContenthashChanged",type:"event"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"contenthash",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes"}],name:"setContenthash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}]},function(t,e,r){"use strict";var n=r(0),i=n(r(48)),o=n(r(78)),a=r(57),s=r(144),u=r(10).errors,f=r(132).interfaceIds;function c(t){this.registry=t}c.prototype.method=function(t,e,r,n,i){return{call:this.call.bind({ensName:t,methodName:e,methodArguments:r,callback:i,parent:this,outputFormatter:n}),send:this.send.bind({ensName:t,methodName:e,methodArguments:r,callback:i,parent:this})}},c.prototype.call=function(t){var e=this,r=new a,n=this.parent.prepareArguments(this.ensName,this.methodArguments),s=this.outputFormatter||null;return this.parent.registry.getResolver(this.ensName).then(function(){var a=(0,o.default)(i.default.mark((function o(a){return i.default.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,e.parent.checkInterfaceSupport(a,e.methodName);case 2:e.parent.handleCall(r,a.methods[e.methodName],n,s,t);case 3:case"end":return i.stop()}}),o)})));return function(t){return a.apply(this,arguments)}}()).catch((function(e){"function"!=typeof t?r.reject(e):t(e,null)})),r.eventEmitter},c.prototype.send=function(t,e){var r=this,n=new a,s=this.parent.prepareArguments(this.ensName,this.methodArguments);return this.parent.registry.getResolver(this.ensName).then(function(){var a=(0,o.default)(i.default.mark((function o(a){return i.default.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,r.parent.checkInterfaceSupport(a,r.methodName);case 2:r.parent.handleSend(n,a.methods[r.methodName],s,t,e);case 3:case"end":return i.stop()}}),o)})));return function(t){return a.apply(this,arguments)}}()).catch((function(t){"function"!=typeof e?n.reject(t):e(t,null)})),n.eventEmitter},c.prototype.handleCall=function(t,e,r,n,i){return e.apply(this,r).call().then((function(e){n&&(e=n(e)),"function"!=typeof i?t.resolve(e):i(e,e)})).catch((function(e){"function"!=typeof i?t.reject(e):i(e,null)})),t},c.prototype.handleSend=function(t,e,r,n,i){return e.apply(this,r).send(n).on("sending",(function(){t.eventEmitter.emit("sending")})).on("sent",(function(){t.eventEmitter.emit("sent")})).on("transactionHash",(function(e){t.eventEmitter.emit("transactionHash",e)})).on("confirmation",(function(e,r){t.eventEmitter.emit("confirmation",e,r)})).on("receipt",(function(e){t.eventEmitter.emit("receipt",e),t.resolve(e),"function"==typeof i&&i(e,e)})).on("error",(function(e){t.eventEmitter.emit("error",e),"function"!=typeof i?t.reject(e):i(e,null)})),t},c.prototype.prepareArguments=function(t,e){var r=s.hash(t);return e.length>0?(e.unshift(r),e):[r]},c.prototype.checkInterfaceSupport=function(){var t=(0,o.default)(i.default.mark((function t(e,r){var n;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(f[r]){t.next=2;break}return t.abrupt("return");case 2:return n=!1,t.prev=3,t.next=6,e.methods.supportsInterface(f[r]).call();case 6:n=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),console.warn('Could not verify interface of resolver contract at "'+e.options.address+'". ');case 12:if(n){t.next=14;break}throw u.ResolverMethodMissingError(e.options.address,r);case 14:case"end":return t.stop()}}),t,null,[[3,9]])})));return function(e,r){return t.apply(this,arguments)}}(),t.exports=c},function(t,e,r){"use strict";var n=r(308);t.exports={decode:function(t){var e=null,r=null,i=null;if(t&&t.error)return{protocolType:null,decoded:t.error};if(t)try{e=n.decode(t);var o=n.getCodec(t);"ipfs-ns"===o?r="ipfs":"swarm-ns"===o?r="bzz":"onion"===o?r="onion":"onion3"===o?r="onion3":e=t}catch(t){i=t.message}return{protocolType:r,decoded:e,error:i}},encode:function(t){var e,r,i=!1;if(t){var o=t.match(/^(ipfs|bzz|onion|onion3):\/\/(.*)/)||t.match(/\/(ipfs)\/(.*)/);o&&(r=o[1],e=o[2]);try{if("ipfs"===r)e.length>=4&&(i="0x"+n.fromIpfs(e));else if("bzz"===r)e.length>=4&&(i="0x"+n.fromSwarm(e));else if("onion"===r)16===e.length&&(i="0x"+n.encode("onion",e));else{if("onion3"!==r)throw new Error("Could not encode content hash: unsupported content type");56===e.length&&(i="0x"+n.encode("onion3",e))}}catch(t){throw t}}return i}}},function(t,e,r){"use strict";var n=r(309),i=r(317),o=i.hexStringToBuffer,a=i.profiles,s=r(340).cidV0ToV1Base32;t.exports={helpers:{cidV0ToV1Base32:s},decode:function(t){var e=o(t),r=n.getCodec(e),i=n.rmPrefix(e),s=a[r];return s||(s=a.default),s.decode(i)},fromIpfs:function(t){return this.encode("ipfs-ns",t)},fromSwarm:function(t){return this.encode("swarm-ns",t)},encode:function(t,e){var r=a[t];r||(r=a.default);var i=r.encode(e);return n.addPrefix(t,i).toString("hex")},getCodec:function(t){var e=o(t);return n.getCodec(e)}}},function(t,e,r){"use strict";(function(n){var i=r(51),o=r(313),a=r(314),s=r(145);(e=t.exports).addPrefix=function(t,e){var r;if(n.isBuffer(t))r=s.varintBufferEncode(t);else{if(!a[t])throw new Error("multicodec not recognized");r=a[t]}return n.concat([r,e])},e.rmPrefix=function(t){return i.decode(t),t.slice(i.decode.bytes)},e.getCodec=function(t){var e=i.decode(t),r=o.get(e);if(void 0===r)throw new Error("Code ".concat(e," not found"));return r},e.getName=function(t){return o.get(t)},e.getNumber=function(t){var e=a[t];if(void 0===e)throw new Error("Codec `"+t+"` not found");return s.varintBufferDecode(e)[0]},e.getCode=function(t){return i.decode(t)},e.getCodeVarint=function(t){var e=a[t];if(void 0===e)throw new Error("Codec `"+t+"` not found");return e},e.getVarint=function(t){return i.encode(t)};var u=r(315);Object.assign(e,u),e.print=r(316)}).call(this,r(1).Buffer)},function(t,e,r){"use strict";t.exports=function t(e,r,i){r=r||[];var o=i=i||0;for(;e>=n;)r[i++]=255&e|128,e/=128;for(;-128&e;)r[i++]=255&e|128,e>>>=7;return r[i]=0|e,t.bytes=i-o+1,r};var n=Math.pow(2,31)},function(t,e,r){"use strict";t.exports=function t(e,r){var n,i=0,o=0,a=r=r||0,s=e.length;do{if(a>=s)throw t.bytes=0,new RangeError("Could not decode varint");n=e[a++],i+=o<28?(127&n)<=128);return t.bytes=a-r,i}},function(t,e,r){"use strict";var n=Math.pow(2,7),i=Math.pow(2,14),o=Math.pow(2,21),a=Math.pow(2,28),s=Math.pow(2,35),u=Math.pow(2,42),f=Math.pow(2,49),c=Math.pow(2,56),h=Math.pow(2,63);t.exports=function(t){return t=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=5;)s+=e[a>>>o-5&31],o-=5;if(o>0&&(s+=e[a<<5-o&31]),i)for(;s.length%8!=0;)s+="=";return s}t.exports=function(t){return{encode:function(e){return o("string"==typeof e?Uint8Array.from(e):e,t)},decode:function(e){var r,i=n(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(t.indexOf(o)<0)throw new Error("invalid base32 character")}}catch(t){i.e(t)}finally{i.f()}return function(t,e){for(var r=(t=t.replace(new RegExp("=","g"),"")).length,n=0,i=0,o=0,a=new Uint8Array(5*r/8|0),s=0;s=8&&(a[o++]=i>>>n-8&255,n-=8);return a.buffer}(e,t)}}}},function(t,e,r){"use strict";function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r-1,r=t.indexOf("-")>-1&&t.indexOf("_")>-1;return{encode:function(t){var n="";n="string"==typeof t?o.from(t).toString("base64"):t.toString("base64"),r&&(n=n.replace(/\+/g,"-").replace(/\//g,"_"));var i=n.indexOf("=");return i>0&&!e&&(n=n.substring(0,i)),n},decode:function(e){var r,i=n(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(t.indexOf(a)<0)throw new Error("invalid base64 character")}}catch(t){i.e(t)}finally{i.f()}return o.from(e,"base64")}}}},function(t,e,r){"use strict";e.names=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"dbl-sha2-256":86,"sha3-224":23,"sha3-256":22,"sha3-384":21,"sha3-512":20,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"murmur3-128":34,"murmur3-32":35,md4:212,md5:213,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"Skein256-8":45825,"Skein256-16":45826,"Skein256-24":45827,"Skein256-32":45828,"Skein256-40":45829,"Skein256-48":45830,"Skein256-56":45831,"Skein256-64":45832,"Skein256-72":45833,"Skein256-80":45834,"Skein256-88":45835,"Skein256-96":45836,"Skein256-104":45837,"Skein256-112":45838,"Skein256-120":45839,"Skein256-128":45840,"Skein256-136":45841,"Skein256-144":45842,"Skein256-152":45843,"Skein256-160":45844,"Skein256-168":45845,"Skein256-176":45846,"Skein256-184":45847,"Skein256-192":45848,"Skein256-200":45849,"Skein256-208":45850,"Skein256-216":45851,"Skein256-224":45852,"Skein256-232":45853,"Skein256-240":45854,"Skein256-248":45855,"Skein256-256":45856,"Skein512-8":45857,"Skein512-16":45858,"Skein512-24":45859,"Skein512-32":45860,"Skein512-40":45861,"Skein512-48":45862,"Skein512-56":45863,"Skein512-64":45864,"Skein512-72":45865,"Skein512-80":45866,"Skein512-88":45867,"Skein512-96":45868,"Skein512-104":45869,"Skein512-112":45870,"Skein512-120":45871,"Skein512-128":45872,"Skein512-136":45873,"Skein512-144":45874,"Skein512-152":45875,"Skein512-160":45876,"Skein512-168":45877,"Skein512-176":45878,"Skein512-184":45879,"Skein512-192":45880,"Skein512-200":45881,"Skein512-208":45882,"Skein512-216":45883,"Skein512-224":45884,"Skein512-232":45885,"Skein512-240":45886,"Skein512-248":45887,"Skein512-256":45888,"Skein512-264":45889,"Skein512-272":45890,"Skein512-280":45891,"Skein512-288":45892,"Skein512-296":45893,"Skein512-304":45894,"Skein512-312":45895,"Skein512-320":45896,"Skein512-328":45897,"Skein512-336":45898,"Skein512-344":45899,"Skein512-352":45900,"Skein512-360":45901,"Skein512-368":45902,"Skein512-376":45903,"Skein512-384":45904,"Skein512-392":45905,"Skein512-400":45906,"Skein512-408":45907,"Skein512-416":45908,"Skein512-424":45909,"Skein512-432":45910,"Skein512-440":45911,"Skein512-448":45912,"Skein512-456":45913,"Skein512-464":45914,"Skein512-472":45915,"Skein512-480":45916,"Skein512-488":45917,"Skein512-496":45918,"Skein512-504":45919,"Skein512-512":45920,"Skein1024-8":45921,"Skein1024-16":45922,"Skein1024-24":45923,"Skein1024-32":45924,"Skein1024-40":45925,"Skein1024-48":45926,"Skein1024-56":45927,"Skein1024-64":45928,"Skein1024-72":45929,"Skein1024-80":45930,"Skein1024-88":45931,"Skein1024-96":45932,"Skein1024-104":45933,"Skein1024-112":45934,"Skein1024-120":45935,"Skein1024-128":45936,"Skein1024-136":45937,"Skein1024-144":45938,"Skein1024-152":45939,"Skein1024-160":45940,"Skein1024-168":45941,"Skein1024-176":45942,"Skein1024-184":45943,"Skein1024-192":45944,"Skein1024-200":45945,"Skein1024-208":45946,"Skein1024-216":45947,"Skein1024-224":45948,"Skein1024-232":45949,"Skein1024-240":45950,"Skein1024-248":45951,"Skein1024-256":45952,"Skein1024-264":45953,"Skein1024-272":45954,"Skein1024-280":45955,"Skein1024-288":45956,"Skein1024-296":45957,"Skein1024-304":45958,"Skein1024-312":45959,"Skein1024-320":45960,"Skein1024-328":45961,"Skein1024-336":45962,"Skein1024-344":45963,"Skein1024-352":45964,"Skein1024-360":45965,"Skein1024-368":45966,"Skein1024-376":45967,"Skein1024-384":45968,"Skein1024-392":45969,"Skein1024-400":45970,"Skein1024-408":45971,"Skein1024-416":45972,"Skein1024-424":45973,"Skein1024-432":45974,"Skein1024-440":45975,"Skein1024-448":45976,"Skein1024-456":45977,"Skein1024-464":45978,"Skein1024-472":45979,"Skein1024-480":45980,"Skein1024-488":45981,"Skein1024-496":45982,"Skein1024-504":45983,"Skein1024-512":45984,"Skein1024-520":45985,"Skein1024-528":45986,"Skein1024-536":45987,"Skein1024-544":45988,"Skein1024-552":45989,"Skein1024-560":45990,"Skein1024-568":45991,"Skein1024-576":45992,"Skein1024-584":45993,"Skein1024-592":45994,"Skein1024-600":45995,"Skein1024-608":45996,"Skein1024-616":45997,"Skein1024-624":45998,"Skein1024-632":45999,"Skein1024-640":46e3,"Skein1024-648":46001,"Skein1024-656":46002,"Skein1024-664":46003,"Skein1024-672":46004,"Skein1024-680":46005,"Skein1024-688":46006,"Skein1024-696":46007,"Skein1024-704":46008,"Skein1024-712":46009,"Skein1024-720":46010,"Skein1024-728":46011,"Skein1024-736":46012,"Skein1024-744":46013,"Skein1024-752":46014,"Skein1024-760":46015,"Skein1024-768":46016,"Skein1024-776":46017,"Skein1024-784":46018,"Skein1024-792":46019,"Skein1024-800":46020,"Skein1024-808":46021,"Skein1024-816":46022,"Skein1024-824":46023,"Skein1024-832":46024,"Skein1024-840":46025,"Skein1024-848":46026,"Skein1024-856":46027,"Skein1024-864":46028,"Skein1024-872":46029,"Skein1024-880":46030,"Skein1024-888":46031,"Skein1024-896":46032,"Skein1024-904":46033,"Skein1024-912":46034,"Skein1024-920":46035,"Skein1024-928":46036,"Skein1024-936":46037,"Skein1024-944":46038,"Skein1024-952":46039,"Skein1024-960":46040,"Skein1024-968":46041,"Skein1024-976":46042,"Skein1024-984":46043,"Skein1024-992":46044,"Skein1024-1000":46045,"Skein1024-1008":46046,"Skein1024-1016":46047,"Skein1024-1024":46048}),e.codes=Object.freeze({0:"identity",17:"sha1",18:"sha2-256",19:"sha2-512",86:"dbl-sha2-256",23:"sha3-224",22:"sha3-256",21:"sha3-384",20:"sha3-512",24:"shake-128",25:"shake-256",26:"keccak-224",27:"keccak-256",28:"keccak-384",29:"keccak-512",34:"murmur3-128",35:"murmur3-32",212:"md4",213:"md5",45569:"blake2b-8",45570:"blake2b-16",45571:"blake2b-24",45572:"blake2b-32",45573:"blake2b-40",45574:"blake2b-48",45575:"blake2b-56",45576:"blake2b-64",45577:"blake2b-72",45578:"blake2b-80",45579:"blake2b-88",45580:"blake2b-96",45581:"blake2b-104",45582:"blake2b-112",45583:"blake2b-120",45584:"blake2b-128",45585:"blake2b-136",45586:"blake2b-144",45587:"blake2b-152",45588:"blake2b-160",45589:"blake2b-168",45590:"blake2b-176",45591:"blake2b-184",45592:"blake2b-192",45593:"blake2b-200",45594:"blake2b-208",45595:"blake2b-216",45596:"blake2b-224",45597:"blake2b-232",45598:"blake2b-240",45599:"blake2b-248",45600:"blake2b-256",45601:"blake2b-264",45602:"blake2b-272",45603:"blake2b-280",45604:"blake2b-288",45605:"blake2b-296",45606:"blake2b-304",45607:"blake2b-312",45608:"blake2b-320",45609:"blake2b-328",45610:"blake2b-336",45611:"blake2b-344",45612:"blake2b-352",45613:"blake2b-360",45614:"blake2b-368",45615:"blake2b-376",45616:"blake2b-384",45617:"blake2b-392",45618:"blake2b-400",45619:"blake2b-408",45620:"blake2b-416",45621:"blake2b-424",45622:"blake2b-432",45623:"blake2b-440",45624:"blake2b-448",45625:"blake2b-456",45626:"blake2b-464",45627:"blake2b-472",45628:"blake2b-480",45629:"blake2b-488",45630:"blake2b-496",45631:"blake2b-504",45632:"blake2b-512",45633:"blake2s-8",45634:"blake2s-16",45635:"blake2s-24",45636:"blake2s-32",45637:"blake2s-40",45638:"blake2s-48",45639:"blake2s-56",45640:"blake2s-64",45641:"blake2s-72",45642:"blake2s-80",45643:"blake2s-88",45644:"blake2s-96",45645:"blake2s-104",45646:"blake2s-112",45647:"blake2s-120",45648:"blake2s-128",45649:"blake2s-136",45650:"blake2s-144",45651:"blake2s-152",45652:"blake2s-160",45653:"blake2s-168",45654:"blake2s-176",45655:"blake2s-184",45656:"blake2s-192",45657:"blake2s-200",45658:"blake2s-208",45659:"blake2s-216",45660:"blake2s-224",45661:"blake2s-232",45662:"blake2s-240",45663:"blake2s-248",45664:"blake2s-256",45825:"Skein256-8",45826:"Skein256-16",45827:"Skein256-24",45828:"Skein256-32",45829:"Skein256-40",45830:"Skein256-48",45831:"Skein256-56",45832:"Skein256-64",45833:"Skein256-72",45834:"Skein256-80",45835:"Skein256-88",45836:"Skein256-96",45837:"Skein256-104",45838:"Skein256-112",45839:"Skein256-120",45840:"Skein256-128",45841:"Skein256-136",45842:"Skein256-144",45843:"Skein256-152",45844:"Skein256-160",45845:"Skein256-168",45846:"Skein256-176",45847:"Skein256-184",45848:"Skein256-192",45849:"Skein256-200",45850:"Skein256-208",45851:"Skein256-216",45852:"Skein256-224",45853:"Skein256-232",45854:"Skein256-240",45855:"Skein256-248",45856:"Skein256-256",45857:"Skein512-8",45858:"Skein512-16",45859:"Skein512-24",45860:"Skein512-32",45861:"Skein512-40",45862:"Skein512-48",45863:"Skein512-56",45864:"Skein512-64",45865:"Skein512-72",45866:"Skein512-80",45867:"Skein512-88",45868:"Skein512-96",45869:"Skein512-104",45870:"Skein512-112",45871:"Skein512-120",45872:"Skein512-128",45873:"Skein512-136",45874:"Skein512-144",45875:"Skein512-152",45876:"Skein512-160",45877:"Skein512-168",45878:"Skein512-176",45879:"Skein512-184",45880:"Skein512-192",45881:"Skein512-200",45882:"Skein512-208",45883:"Skein512-216",45884:"Skein512-224",45885:"Skein512-232",45886:"Skein512-240",45887:"Skein512-248",45888:"Skein512-256",45889:"Skein512-264",45890:"Skein512-272",45891:"Skein512-280",45892:"Skein512-288",45893:"Skein512-296",45894:"Skein512-304",45895:"Skein512-312",45896:"Skein512-320",45897:"Skein512-328",45898:"Skein512-336",45899:"Skein512-344",45900:"Skein512-352",45901:"Skein512-360",45902:"Skein512-368",45903:"Skein512-376",45904:"Skein512-384",45905:"Skein512-392",45906:"Skein512-400",45907:"Skein512-408",45908:"Skein512-416",45909:"Skein512-424",45910:"Skein512-432",45911:"Skein512-440",45912:"Skein512-448",45913:"Skein512-456",45914:"Skein512-464",45915:"Skein512-472",45916:"Skein512-480",45917:"Skein512-488",45918:"Skein512-496",45919:"Skein512-504",45920:"Skein512-512",45921:"Skein1024-8",45922:"Skein1024-16",45923:"Skein1024-24",45924:"Skein1024-32",45925:"Skein1024-40",45926:"Skein1024-48",45927:"Skein1024-56",45928:"Skein1024-64",45929:"Skein1024-72",45930:"Skein1024-80",45931:"Skein1024-88",45932:"Skein1024-96",45933:"Skein1024-104",45934:"Skein1024-112",45935:"Skein1024-120",45936:"Skein1024-128",45937:"Skein1024-136",45938:"Skein1024-144",45939:"Skein1024-152",45940:"Skein1024-160",45941:"Skein1024-168",45942:"Skein1024-176",45943:"Skein1024-184",45944:"Skein1024-192",45945:"Skein1024-200",45946:"Skein1024-208",45947:"Skein1024-216",45948:"Skein1024-224",45949:"Skein1024-232",45950:"Skein1024-240",45951:"Skein1024-248",45952:"Skein1024-256",45953:"Skein1024-264",45954:"Skein1024-272",45955:"Skein1024-280",45956:"Skein1024-288",45957:"Skein1024-296",45958:"Skein1024-304",45959:"Skein1024-312",45960:"Skein1024-320",45961:"Skein1024-328",45962:"Skein1024-336",45963:"Skein1024-344",45964:"Skein1024-352",45965:"Skein1024-360",45966:"Skein1024-368",45967:"Skein1024-376",45968:"Skein1024-384",45969:"Skein1024-392",45970:"Skein1024-400",45971:"Skein1024-408",45972:"Skein1024-416",45973:"Skein1024-424",45974:"Skein1024-432",45975:"Skein1024-440",45976:"Skein1024-448",45977:"Skein1024-456",45978:"Skein1024-464",45979:"Skein1024-472",45980:"Skein1024-480",45981:"Skein1024-488",45982:"Skein1024-496",45983:"Skein1024-504",45984:"Skein1024-512",45985:"Skein1024-520",45986:"Skein1024-528",45987:"Skein1024-536",45988:"Skein1024-544",45989:"Skein1024-552",45990:"Skein1024-560",45991:"Skein1024-568",45992:"Skein1024-576",45993:"Skein1024-584",45994:"Skein1024-592",45995:"Skein1024-600",45996:"Skein1024-608",45997:"Skein1024-616",45998:"Skein1024-624",45999:"Skein1024-632",46e3:"Skein1024-640",46001:"Skein1024-648",46002:"Skein1024-656",46003:"Skein1024-664",46004:"Skein1024-672",46005:"Skein1024-680",46006:"Skein1024-688",46007:"Skein1024-696",46008:"Skein1024-704",46009:"Skein1024-712",46010:"Skein1024-720",46011:"Skein1024-728",46012:"Skein1024-736",46013:"Skein1024-744",46014:"Skein1024-752",46015:"Skein1024-760",46016:"Skein1024-768",46017:"Skein1024-776",46018:"Skein1024-784",46019:"Skein1024-792",46020:"Skein1024-800",46021:"Skein1024-808",46022:"Skein1024-816",46023:"Skein1024-824",46024:"Skein1024-832",46025:"Skein1024-840",46026:"Skein1024-848",46027:"Skein1024-856",46028:"Skein1024-864",46029:"Skein1024-872",46030:"Skein1024-880",46031:"Skein1024-888",46032:"Skein1024-896",46033:"Skein1024-904",46034:"Skein1024-912",46035:"Skein1024-920",46036:"Skein1024-928",46037:"Skein1024-936",46038:"Skein1024-944",46039:"Skein1024-952",46040:"Skein1024-960",46041:"Skein1024-968",46042:"Skein1024-976",46043:"Skein1024-984",46044:"Skein1024-992",46045:"Skein1024-1000",46046:"Skein1024-1008",46047:"Skein1024-1016",46048:"Skein1024-1024"}),e.defaultLengths=Object.freeze({17:20,18:32,19:64,86:32,23:28,22:32,21:48,20:64,24:32,25:64,26:28,27:32,28:48,29:64,34:32,45569:1,45570:2,45571:3,45572:4,45573:5,45574:6,45575:7,45576:8,45577:9,45578:10,45579:11,45580:12,45581:13,45582:14,45583:15,45584:16,45585:17,45586:18,45587:19,45588:20,45589:21,45590:22,45591:23,45592:24,45593:25,45594:26,45595:27,45596:28,45597:29,45598:30,45599:31,45600:32,45601:33,45602:34,45603:35,45604:36,45605:37,45606:38,45607:39,45608:40,45609:41,45610:42,45611:43,45612:44,45613:45,45614:46,45615:47,45616:48,45617:49,45618:50,45619:51,45620:52,45621:53,45622:54,45623:55,45624:56,45625:57,45626:58,45627:59,45628:60,45629:61,45630:62,45631:63,45632:64,45633:1,45634:2,45635:3,45636:4,45637:5,45638:6,45639:7,45640:8,45641:9,45642:10,45643:11,45644:12,45645:13,45646:14,45647:15,45648:16,45649:17,45650:18,45651:19,45652:20,45653:21,45654:22,45655:23,45656:24,45657:25,45658:26,45659:27,45660:28,45661:29,45662:30,45663:31,45664:32,45825:1,45826:2,45827:3,45828:4,45829:5,45830:6,45831:7,45832:8,45833:9,45834:10,45835:11,45836:12,45837:13,45838:14,45839:15,45840:16,45841:17,45842:18,45843:19,45844:20,45845:21,45846:22,45847:23,45848:24,45849:25,45850:26,45851:27,45852:28,45853:29,45854:30,45855:31,45856:32,45857:1,45858:2,45859:3,45860:4,45861:5,45862:6,45863:7,45864:8,45865:9,45866:10,45867:11,45868:12,45869:13,45870:14,45871:15,45872:16,45873:17,45874:18,45875:19,45876:20,45877:21,45878:22,45879:23,45880:24,45881:25,45882:26,45883:27,45884:28,45885:29,45886:30,45887:31,45888:32,45889:33,45890:34,45891:35,45892:36,45893:37,45894:38,45895:39,45896:40,45897:41,45898:42,45899:43,45900:44,45901:45,45902:46,45903:47,45904:48,45905:49,45906:50,45907:51,45908:52,45909:53,45910:54,45911:55,45912:56,45913:57,45914:58,45915:59,45916:60,45917:61,45918:62,45919:63,45920:64,45921:1,45922:2,45923:3,45924:4,45925:5,45926:6,45927:7,45928:8,45929:9,45930:10,45931:11,45932:12,45933:13,45934:14,45935:15,45936:16,45937:17,45938:18,45939:19,45940:20,45941:21,45942:22,45943:23,45944:24,45945:25,45946:26,45947:27,45948:28,45949:29,45950:30,45951:31,45952:32,45953:33,45954:34,45955:35,45956:36,45957:37,45958:38,45959:39,45960:40,45961:41,45962:42,45963:43,45964:44,45965:45,45966:46,45967:47,45968:48,45969:49,45970:50,45971:51,45972:52,45973:53,45974:54,45975:55,45976:56,45977:57,45978:58,45979:59,45980:60,45981:61,45982:62,45983:63,45984:64,45985:65,45986:66,45987:67,45988:68,45989:69,45990:70,45991:71,45992:72,45993:73,45994:74,45995:75,45996:76,45997:77,45998:78,45999:79,46e3:80,46001:81,46002:82,46003:83,46004:84,46005:85,46006:86,46007:87,46008:88,46009:89,46010:90,46011:91,46012:92,46013:93,46014:94,46015:95,46016:96,46017:97,46018:98,46019:99,46020:100,46021:101,46022:102,46023:103,46024:104,46025:105,46026:106,46027:107,46028:108,46029:109,46030:110,46031:111,46032:112,46033:113,46034:114,46035:115,46036:116,46037:117,46038:118,46039:119,46040:120,46041:121,46042:122,46043:123,46044:124,46045:125,46046:126,46047:127,46048:128})},function(t,e,r){"use strict";var n=r(1).Buffer,i=r(326);(e=t.exports=a).encode=function(t,e){var r=s(t);return a(r.name,n.from(r.encode(e)))},e.decode=function(t){n.isBuffer(t)&&(t=t.toString());var e=t.substring(0,1);"string"==typeof(t=t.substring(1,t.length))&&(t=n.from(t));var r=s(e);return n.from(r.decode(t.toString()))},e.isEncoded=function(t){n.isBuffer(t)&&(t=t.toString());if("[object String]"!==Object.prototype.toString.call(t))return!1;var e=t.substring(0,1);try{return s(e).name}catch(t){return!1}},e.names=Object.freeze(Object.keys(i.names)),e.codes=Object.freeze(Object.keys(i.codes));var o=new Error("Unsupported encoding");function a(t,e){if(!e)throw new Error("requires an encoded buffer");var r=s(t),i=n.from(r.code);return function(t,e){s(t).decode(e.toString())}(r.name,e),n.concat([i,e])}function s(t){var e;if(i.names[t])e=i.names[t];else{if(!i.codes[t])throw o;e=i.codes[t]}if(!e.isImplemented())throw new Error("Base "+t+" is not implemented yet");return e}},function(t,e,r){"use strict";var n=r(327),i=r(147),o=r(328),a=r(329),s=r(330),u=[["base1","1","","1"],["base2","0",i,"01"],["base8","7",i,"01234567"],["base10","9",i,"0123456789"],["base16","f",o,"0123456789abcdef"],["base32","b",a,"abcdefghijklmnopqrstuvwxyz234567"],["base32pad","c",a,"abcdefghijklmnopqrstuvwxyz234567="],["base32hex","v",a,"0123456789abcdefghijklmnopqrstuv"],["base32hexpad","t",a,"0123456789abcdefghijklmnopqrstuv="],["base32z","h",a,"ybndrfg8ejkmcpqxot1uwisza345h769"],["base58flickr","Z",i,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base58btc","z",i,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base64","m",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],f=u.reduce((function(t,e){return t[e[0]]=new n(e[0],e[1],e[2],e[3]),t}),{}),c=u.reduce((function(t,e){return t[e[1]]=f[e[0]],t}),{});t.exports={names:f,codes:c}},function(t,e,r){"use strict";var n=r(0),i=n(r(5)),o=n(r(9)),a=function(){function t(e,r,n,o){(0,i.default)(this,t),this.name=e,this.code=r,this.alphabet=o,n&&o&&(this.engine=n(o))}return(0,o.default)(t,[{key:"encode",value:function(t){return this.engine.encode(t)}},{key:"decode",value:function(t){return this.engine.decode(t)}},{key:"isImplemented",value:function(){return this.engine}}]),t}();t.exports=a},function(t,e,r){"use strict";function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=5;)s+=e[a>>>o-5&31],o-=5;if(o>0&&(s+=e[a<<5-o&31]),i)for(;s.length%8!=0;)s+="=";return s}t.exports=function(t){return{encode:function(e){return o("string"==typeof e?Uint8Array.from(e):e,t)},decode:function(e){var r,i=n(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(t.indexOf(o)<0)throw new Error("invalid base32 character")}}catch(t){i.e(t)}finally{i.f()}return function(t,e){for(var r=(t=t.replace(new RegExp("=","g"),"")).length,n=0,i=0,o=0,a=new Uint8Array(5*r/8|0),s=0;s=8&&(a[o++]=i>>>n-8&255,n-=8);return a.buffer}(e,t)}}}},function(t,e,r){"use strict";function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r-1,r=t.indexOf("-")>-1&&t.indexOf("_")>-1;return{encode:function(t){var n="";n="string"==typeof t?o.from(t).toString("base64"):t.toString("base64"),r&&(n=n.replace(/\+/g,"-").replace(/\//g,"_"));var i=n.indexOf("=");return i>0&&!e&&(n=n.substring(0,i)),n},decode:function(e){var r,i=n(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(t.indexOf(a)<0)throw new Error("invalid base64 character")}}catch(t){i.e(t)}finally{i.f()}return o.from(e,"base64")}}}},function(t,e,r){"use strict";var n=r(1).Buffer,i=r(51),o=r(332),a=r(333),s=r(148);(e=t.exports).addPrefix=function(t,e){var r;if(n.isBuffer(t))r=s.varintBufferEncode(t);else{if(!a[t])throw new Error("multicodec not recognized");r=a[t]}return n.concat([r,e])},e.rmPrefix=function(t){return i.decode(t),t.slice(i.decode.bytes)},e.getCodec=function(t){var e=i.decode(t),r=o.get(e);if(void 0===r)throw new Error("Code ".concat(e," not found"));return r},e.getName=function(t){return o.get(t)},e.getNumber=function(t){var e=a[t];if(void 0===e)throw new Error("Codec `"+t+"` not found");return s.varintBufferDecode(e)[0]},e.getCode=function(t){return i.decode(t)},e.getCodeVarint=function(t){var e=a[t];if(void 0===e)throw new Error("Codec `"+t+"` not found");return e},e.getVarint=function(t){return i.encode(t)};var u=r(334);Object.assign(e,u),e.print=r(335)},function(t,e,r){"use strict";var n=r(52),i=new Map;for(var o in n){var a=n[o];i.set(a,o)}t.exports=Object.freeze(i)},function(t,e,r){"use strict";var n=r(52),i=r(148).varintEncode,o={};for(var a in n){var s=n[a];o[a]=i(s)}t.exports=Object.freeze(o)},function(t,e,r){"use strict";for(var n=r(0)(r(31)),i=r(52),o={},a=0,s=Object.entries(i);a=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0){var c,l="Signer Error: ",d=h(f);try{for(d.s();!(c=d.n()).done;){var p=c.value;l+="".concat(l," ").concat(p,".")}}catch(t){d.e(t)}finally{d.f()}throw new Error(l)}var m="0x"+u.serialize().toString("hex"),b=w.keccak256(m),v={messageHash:"0x"+n.from(u.getMessageToSign(!0)).toString("hex"),v:"0x"+n.from(u.v).toString("hex"),r:"0x"+n.from(u.r).toString("hex"),s:"0x"+n.from(u.s).toString("hex"),rawTransaction:m,transactionHash:b};return r(null,v),v}catch(t){return r(t),Promise.reject(t)}}return t.type=function(t){var e,r=void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas;void 0!==t.type?e=w.toHex(t.type):void 0===t.type&&r&&(e="0x2");if(void 0!==t.gasPrice&&("0x2"===e||r))throw Error("eip-1559 transactions don't support gasPrice");if(("0x1"===e||"0x0"===e)&&r)throw Error("pre-eip-1559 transaction don't support maxFeePerGas/maxPriorityFeePerGas");r||t.common&&t.common.hardfork&&t.common.hardfork.toLowerCase()===S.London||t.hardfork&&t.hardfork.toLowerCase()===S.London?e="0x2":(t.accessList||t.common&&t.common.hardfork&&t.common.hardfork.toLowerCase()===S.Berlin||t.hardfork&&t.hardfork.toLowerCase()===S.Berlin)&&(e="0x1");return e}(t),void 0!==t.nonce&&void 0!==t.chainId&&(void 0!==t.gasPrice||void 0!==t.maxFeePerGas&&void 0!==t.maxPriorityFeePerGas)&&a?Promise.resolve(s(t)):Promise.all([A(t.chainId)?this._ethereumCall.getChainId():t.chainId,A(t.nonce)?this._ethereumCall.getTransactionCount(this.privateKeyToAccount(e).address):t.nonce,A(a)?this._ethereumCall.getNetworkId():1,E(this,t)]).then((function(e){if(A(e[0])||A(e[1])||A(e[2])||A(e[3]))throw new Error('One of the values "chainId", "networkId", "gasPrice", or "nonce" couldn\'t be fetched: '+JSON.stringify(e));return s(c(c({},t),{},{chainId:e[0],nonce:e[1],networkId:e[2]},e[3]))}))},x.prototype.recoverTransaction=function(t){var e=n.from(t.slice(2),"hex"),r=k.fromSerializedData(e);return w.toChecksumAddress(r.getSenderAddress().toString("hex"))},x.prototype.hashMessage=function(t){var e=w.isHexStrict(t)?t:w.utf8ToHex(t),r=w.hexToBytes(e),i=n.from(r),o="Ethereum Signed Message:\n"+r.length,a=n.from(o),s=n.concat([a,i]);return b.keccak256s(s)},x.prototype.sign=function(t,e){if(e.startsWith("0x")||(e="0x"+e),66!==e.length)throw new Error("Private key must be 32 bytes long");var r=this.hashMessage(t),n=m.sign(r,e),i=m.decodeSignature(n);return{message:t,messageHash:r,v:i[0],r:i[1],s:i[2],signature:n}},x.prototype.recover=function(t,e,r){var n=[].slice.apply(arguments);return t&&"object"===(0,a.default)(t)?this.recover(t.messageHash,m.encodeSignature([t.v,t.r,t.s]),!0):(r||(t=this.hashMessage(t)),n.length>=4?(r="boolean"==typeof(r=n.slice(-1)[0])&&!!r,this.recover(t,m.encodeSignature(n.slice(1,4)),r)):m.recover(t,e))},x.prototype.decrypt=function(t,e,r){if("string"!=typeof e)throw new Error("No password given.");var i,s,u=t&&"object"===(0,a.default)(t)?t:JSON.parse(r?t.toLowerCase():t);if(3!==u.version)throw new Error("Not a valid V3 wallet");if("scrypt"===u.crypto.kdf)s=u.crypto.kdfparams,i=y.syncScrypt(n.from(e),n.from(s.salt,"hex"),s.n,s.r,s.p,s.dklen);else{if("pbkdf2"!==u.crypto.kdf)throw new Error("Unsupported key derivation scheme");if("hmac-sha256"!==(s=u.crypto.kdfparams).prf)throw new Error("Unsupported parameters to PBKDF2");i=v.pbkdf2Sync(n.from(e),n.from(s.salt,"hex"),s.c,s.dklen,"sha256")}var f=n.from(u.crypto.ciphertext,"hex");if(w.sha3(n.from([].concat((0,o.default)(i.slice(16,32)),(0,o.default)(f)))).replace("0x","")!==u.crypto.mac)throw new Error("Key derivation failed - possibly wrong password");var c=v.createDecipheriv(u.crypto.cipher,i.slice(0,16),n.from(u.crypto.cipherparams.iv,"hex")),h="0x"+n.from([].concat((0,o.default)(c.update(f)),(0,o.default)(c.final()))).toString("hex");return this.privateKeyToAccount(h,!0)},x.prototype.encrypt=function(t,e,r){var i,a=this.privateKeyToAccount(t,!0),s=(r=r||{}).salt||v.randomBytes(32),u=r.iv||v.randomBytes(16),f=r.kdf||"scrypt",c={dklen:r.dklen||32,salt:s.toString("hex")};if("pbkdf2"===f)c.c=r.c||262144,c.prf="hmac-sha256",i=v.pbkdf2Sync(n.from(e),n.from(c.salt,"hex"),c.c,c.dklen,"sha256");else{if("scrypt"!==f)throw new Error("Unsupported kdf");c.n=r.n||8192,c.r=r.r||8,c.p=r.p||1,i=y.syncScrypt(n.from(e),n.from(c.salt,"hex"),c.n,c.r,c.p,c.dklen)}var h=v.createCipheriv(r.cipher||"aes-128-ctr",i.slice(0,16),u);if(!h)throw new Error("Unsupported cipher");var l=n.from([].concat((0,o.default)(h.update(n.from(a.privateKey.replace("0x",""),"hex"))),(0,o.default)(h.final()))),d=w.sha3(n.from([].concat((0,o.default)(i.slice(16,32)),(0,o.default)(l)))).replace("0x","");return{version:3,id:g.v4({random:r.uuid||v.randomBytes(16)}),address:a.address.toLowerCase().replace("0x",""),crypto:{ciphertext:l.toString("hex"),cipherparams:{iv:u.toString("hex")},cipher:r.cipher||"aes-128-ctr",kdf:f,kdfparams:c,mac:d.toString("hex")}}},O.prototype._findSafeIndex=function(t){return t=t||0,this.hasOwnProperty(t)?this._findSafeIndex(t+1):t},O.prototype._currentIndexes=function(){return Object.keys(this).map((function(t){return parseInt(t)})).filter((function(t){return t<9e20}))},O.prototype.create=function(t,e){for(var r=0;r7?t[n+2].toUpperCase():t[n+2];return r},l=function(t){var r=new e(t.slice(2),"hex"),n="0x"+s.keyFromPrivate(r).getPublic(!1,"hex").slice(2),i=f(n);return{address:h("0x"+i.slice(-40)),privateKey:t}},d=function(t){var e=(0,n.default)(t,3),r=e[0],o=e[1],a=e[2];return i.flatten([o,a,r])},p=function(t){return[i.slice(64,i.length(t),t),i.slice(0,32,t),i.slice(32,64,t)]},m=function(t){return function(r,n){var a=s.keyFromPrivate(new e(n.slice(2),"hex")).sign(new e(r.slice(2),"hex"),{canonical:!0});return d([o.fromString(i.fromNumber(t+a.recoveryParam)),i.pad(32,i.fromNat("0x"+a.r.toString(16))),i.pad(32,i.fromNat("0x"+a.s.toString(16)))])}},b=m(27);t.exports={create:function(t){var e=f(i.concat(i.random(32),t||i.random(32))),r=i.concat(i.concat(i.random(32),e),i.random(32)),n=f(r);return l(n)},toChecksum:h,fromPrivate:l,sign:b,makeSigner:m,recover:function(t,r){var n=p(r),o={v:i.toNumber(n[0]),r:n[1].slice(2),s:n[2].slice(2)},a="0x"+s.recoverPubKey(new e(t.slice(2),"hex"),o,o.v<2?o.v:1-o.v%2).encode("hex",!1).slice(2),u=f(a);return h("0x"+u.slice(-40))},encodeSignature:d,decodeSignature:p}}).call(this,r(1).Buffer)},function(t,e,r){"use strict";var n=function(t,e){for(var r=[],n=0;n */var n=r(1),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},function(t,e,r){"use strict";(e=t.exports=r(152)).Stream=e,e.Readable=e,e.Writable=r(156),e.Duplex=r(38),e.Transform=r(157),e.PassThrough=r(355),e.finished=r(84),e.pipeline=r(356)},function(t,e){},function(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){for(var r=0;r0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e,r,n,i=a.allocUnsafe(t>>>0),o=this.head,s=0;o;)e=o.data,r=i,n=s,a.prototype.copy.call(e,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(t,e){var r;return ti.length?i.length:t;if(o===i.length?n+=i:n+=i.slice(0,t),0==(t-=o)){o===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0==(t-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,e}},{key:u,value:function(t,e){return s(this,function(t){for(var e=1;e0,(function(t){n||(n=t),t&&a.forEach(f),o||(a.forEach(f),i(n))}))}));return e.reduce(c)}},function(t,e,r){"use strict";var n=r(3),i=r(39),o=r(4).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function f(t){return t<<30|t>>>2}function c(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,h=0;h<16;++h)r[h]=t.readInt32BE(4*h);for(;h<80;++h)r[h]=r[h-3]^r[h-8]^r[h-14]^r[h-16];for(var l=0;l<80;++l){var d=~~(l/20),p=0|((e=n)<<5|e>>>27)+c(d,i,o,s)+u+r[l]+a[d];u=s,s=o,o=f(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},function(t,e,r){"use strict";var n=r(3),i=r(39),o=r(4).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function f(t){return t<<5|t>>>27}function c(t){return t<<30|t>>>2}function h(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,l=0;l<16;++l)r[l]=t.readInt32BE(4*l);for(;l<80;++l)r[l]=(e=r[l-3]^r[l-8]^r[l-14]^r[l-16])<<1|e>>>31;for(var d=0;d<80;++d){var p=~~(d/20),m=f(n)+h(p,i,o,s)+u+r[d]+a[p]|0;u=s,s=o,o=c(i),i=n,n=m}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},function(t,e,r){"use strict";var n=r(3),i=r(158),o=r(39),a=r(4).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var t=a.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=u},function(t,e,r){"use strict";var n=r(3),i=r(159),o=r(39),a=r(4).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var t=a.allocUnsafe(48);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=u},function(t,e,r){"use strict";t.exports=r(75)},function(t,e,r){"use strict";t.exports=r(28)},function(t,e,r){"use strict";t.exports=r(46).Transform},function(t,e,r){"use strict";t.exports=r(46).PassThrough},function(t,e,r){"use strict";var n=r(3),i=r(4).Buffer,o=r(25),a=i.alloc(128);function s(t,e){o.call(this,"digest"),"string"==typeof e&&(e=i.from(e)),this._alg=t,this._key=e,e.length>64?e=t(e):e.length<64&&(e=i.concat([e,a],64));for(var r=this._ipad=i.allocUnsafe(64),n=this._opad=i.allocUnsafe(64),s=0;s<64;s++)r[s]=54^e[s],n[s]=92^e[s];this._hash=[r]}n(s,o),s.prototype._update=function(t){this._hash.push(t)},s.prototype._final=function(){var t=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,t]))},t.exports=s},function(t,e,r){"use strict";t.exports=r(162)},function(t,e,r){"use strict";(function(e){var n,i,o=r(4).Buffer,a=r(164),s=r(165),u=r(166),f=r(167),c=e.crypto&&e.crypto.subtle,h={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},l=[];function d(){return i||(i=e.process&&e.process.nextTick?e.process.nextTick:e.queueMicrotask?e.queueMicrotask:e.setImmediate?e.setImmediate:e.setTimeout)}function p(t,e,r,n,i){return c.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return c.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:i}},t,n<<3)})).then((function(t){return o.from(t)}))}t.exports=function(t,r,i,m,b,v){"function"==typeof b&&(v=b,b=void 0);var y=h[(b=b||"sha1").toLowerCase()];if(y&&"function"==typeof e.Promise){if(a(i,m),t=f(t,s,"Password"),r=f(r,s,"Salt"),"function"!=typeof v)throw new Error("No callback provided to pbkdf2");!function(t,e){t.then((function(t){d()((function(){e(null,t)}))}),(function(t){d()((function(){e(t)}))}))}(function(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==l[t])return l[t];var r=p(n=n||o.alloc(8),n,10,128,t).then((function(){return!0})).catch((function(){return!1}));return l[t]=r,r}(y).then((function(e){return e?p(t,r,i,m,y):u(t,r,i,m,b)})),v)}else d()((function(){var e;try{e=u(t,r,i,m,b)}catch(t){return v(t)}v(null,e)}))}}).call(this,r(7))},function(t,e,r){"use strict";var n=r(369),i=r(89),o=r(90),a=r(382),s=r(66);function u(t,e,r){if(t=t.toLowerCase(),o[t])return i.createCipheriv(t,e,r);if(a[t])return new n({key:e,iv:r,mode:t});throw new TypeError("invalid suite type")}function f(t,e,r){if(t=t.toLowerCase(),o[t])return i.createDecipheriv(t,e,r);if(a[t])return new n({key:e,iv:r,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var r,n;if(t=t.toLowerCase(),o[t])r=o[t].key,n=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");r=8*a[t].key,n=a[t].iv}var i=s(e,!1,r,n);return u(t,i.key,i.iv)},e.createCipheriv=e.Cipheriv=u,e.createDecipher=e.Decipher=function(t,e){var r,n;if(t=t.toLowerCase(),o[t])r=o[t].key,n=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");r=8*a[t].key,n=a[t].iv}var i=s(e,!1,r,n);return f(t,i.key,i.iv)},e.createDecipheriv=e.Decipheriv=f,e.listCiphers=e.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},function(t,e,r){"use strict";var n=r(25),i=r(370),o=r(3),a=r(4).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function u(t){n.call(this);var e,r=t.mode.toLowerCase(),i=s[r];e=t.decrypt?"decrypt":"encrypt";var o=t.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==r&&"des-ede-cbc"!==r||(o=a.concat([o,o.slice(0,8)]));var u=t.iv;a.isBuffer(u)||(u=a.from(u)),this._des=i.create({key:o,iv:u,type:e})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=u,o(u,n),u.prototype._update=function(t){return a.from(this._des.update(t))},u.prototype._final=function(){return a.from(this._des.final())}},function(t,e,r){"use strict";e.utils=r(168),e.Cipher=r(88),e.DES=r(169),e.CBC=r(371),e.EDE=r(372)},function(t,e,r){"use strict";var n=r(18),i=r(3),o={};function a(t){n.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},l.prototype.flush=function(){for(var t=16-this.cache.length,e=o.allocUnsafe(t),r=-1;++r>a%8,t._prev=o(t._prev,r?n:i);return s}function o(t,e){var r=t.length,i=-1,o=n.allocUnsafe(t.length);for(t=n.concat([t,n.from([e])]);++i>7;return o}e.encrypt=function(t,e,r){for(var o=e.length,a=n.allocUnsafe(o),s=-1;++s>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function a(t){this.h=t,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(t){for(var e=-1;++e0;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(t){var e;for(this.cache=n.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},a.prototype.final=function(t,e){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,t,0,e])),this.state},t.exports=a},function(t,e,r){"use strict";var n=r(173),i=r(4).Buffer,o=r(90),a=r(174),s=r(25),u=r(65),f=r(66);function c(t,e,r){s.call(this),this._cache=new h,this._last=void 0,this._cipher=new u.AES(e),this._prev=i.from(r),this._mode=t,this._autopadding=!0}function h(){this.cache=i.allocUnsafe(0)}function l(t,e,r){var s=o[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof e&&(e=i.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===s.type?new a(s.module,e,r,!0):"auth"===s.type?new n(s.module,e,r,!0):new c(s.module,e,r)}r(3)(c,s),c.prototype._update=function(t){var e,r;this._cache.add(t);for(var n=[];e=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,e),n.push(r);return i.concat(n)},c.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");var r=-1;for(;++r16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},h.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var r=o[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=f(e,!1,r.key,r.iv);return l(t,n.key,n.iv)},e.createDecipheriv=l},function(t,e,r){"use strict";e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},function(t,e,r){"use strict";(function(t){var n=r(175),i=r(385),o=r(386);var a={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(e){var r=new t(i[e].prime,"hex"),n=new t(i[e].gen,"hex");return new o(r,n)},e.createDiffieHellman=e.DiffieHellman=function e(r,i,s,u){return t.isBuffer(i)||void 0===a[i]?e(r,"binary",i,s):(i=i||"binary",u=u||"binary",s=s||new t([2]),t.isBuffer(s)||(s=new t(s,u)),"number"==typeof r?new o(n(r,s),s,!0):(t.isBuffer(r)||(r=new t(r,i)),new o(r,s,!0)))}}).call(this,r(1).Buffer)},function(t,e){},function(t){t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(t,e,r){"use strict";(function(e){var n=r(8),i=new(r(176)),o=new n(24),a=new n(11),s=new n(10),u=new n(3),f=new n(7),c=r(175),h=r(22);function l(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this._pub=new n(t),this}function d(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this._priv=new n(t),this}t.exports=m;var p={};function m(t,e,r){this.setGenerator(e),this.__prime=new n(t),this._prime=n.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=l,this.setPrivateKey=d):this._primeCode=8}function b(t,r){var n=new e(t.toArray());return r?n.toString(r):n}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var r=e.toString("hex"),n=[r,t.toString(16)].join("_");if(n in p)return p[n];var h,l=0;if(t.isEven()||!c.simpleSieve||!c.fermatTest(t)||!i.test(t))return l+=1,l+="02"===r||"05"===r?8:4,p[n]=l,l;switch(i.test(t.shrn(1))||(l+=2),r){case"02":t.mod(o).cmp(a)&&(l+=8);break;case"05":(h=t.mod(s)).cmp(u)&&h.cmp(f)&&(l+=8);break;default:l+=4}return p[n]=l,l}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new n(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(t){var r=(t=(t=new n(t)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new e(r.toArray()),o=this.getPrime();if(i.length0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e,r,n,i=a.allocUnsafe(t>>>0),o=this.head,s=0;o;)e=o.data,r=i,n=s,a.prototype.copy.call(e,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(t,e){var r;return ti.length?i.length:t;if(o===i.length?n+=i:n+=i.slice(0,t),0==(t-=o)){o===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0==(t-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,e}},{key:u,value:function(t,e){return s(this,function(t){for(var e=1;e0,(function(t){n||(n=t),t&&a.forEach(f),o||(a.forEach(f),i(n))}))}));return e.reduce(c)}},function(t,e,r){"use strict";var n=r(92).Buffer,i=r(160),o=r(94),a=r(54).ec,s=r(185),u=r(68),f=r(191);function c(t,e,r,o){if((t=n.from(t.toArray())).length0&&r.ishrn(n),r}function l(t,e,r){var o,a;do{for(o=n.alloc(0);8*o.length=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void i(!1,"Invalid character in "+t)}function f(t,e,r){var n=u(t,r);return r-1>=e&&(n|=u(t,r-1)<<4),n}function c(t,e,r,n){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u=49?f-49+10:f>=17?f-17+10:f,i(f>=0&&a0?t:e},a.min=function(t,e){return t.cmp(e)<0?t:e},a.prototype._init=function(t,r,n){if("number"==typeof t)return this._initNumber(t,r,n);if("object"===(0,e.default)(t))return this._initArray(t,r,n);"hex"===r&&(r=16),i(r===(0|r)&&r>=2&&r<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o=0;n-=3)a=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},a.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=f(t,e,n)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,f=r;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){a.prototype.inspect=l}else a.prototype.inspect=l;function l(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?d[6-u.length]+u+r:u+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var f=p[t],c=m[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var l=h.modrn(c).toString(t);r=(h=h.idivn(c)).isZero()?l+r:d[f-l.length]+l+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16,2)},s&&(a.prototype.toBuffer=function(t,e){return this.toArrayLike(s,t,e)}),a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function b(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var f=1;f>>26,h=67108863&u,l=Math.min(f,e.length-1),d=Math.max(0,f-t.length+1);d<=l;d++){var p=f-d|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&a}r.words[f]=0|h,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r._strip()}a.prototype.toArrayLike=function(t,e,r){this._strip();var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,n),a},a.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r=0&&(t[r--]=a>>8&255),r>=0&&(t[r--]=a>>16&255),6===o?(r>=0&&(t[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this._strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var r=t/26|0,n=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,b=0|a[2],v=8191&b,y=b>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],M=8191&k,S=k>>>13,A=0|a[5],x=8191&A,E=A>>>13,O=0|a[6],P=8191&O,B=O>>>13,T=0|a[7],R=8191&T,I=T>>>13,C=0|a[8],U=8191&C,j=C>>>13,N=0|a[9],L=8191&N,F=N>>>13,D=0|s[0],q=8191&D,H=D>>>13,z=0|s[1],K=8191&z,G=z>>>13,V=0|s[2],W=8191&V,Z=V>>>13,J=0|s[3],X=8191&J,Y=J>>>13,$=0|s[4],Q=8191&$,tt=$>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ft=st>>>13,ct=0|s[8],ht=8191&ct,lt=ct>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var bt=(f+(n=Math.imul(h,q))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(l,q)|0))<<13)|0;f=((o=Math.imul(l,H))+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,H))+Math.imul(m,q)|0,o=Math.imul(m,H);var vt=(f+(n=n+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,G)|0)+Math.imul(l,K)|0))<<13)|0;f=((o=o+Math.imul(l,G)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(v,q),i=(i=Math.imul(v,H))+Math.imul(y,q)|0,o=Math.imul(y,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0;var yt=(f+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(l,W)|0))<<13)|0;f=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,H))+Math.imul(_,q)|0,o=Math.imul(_,H),n=n+Math.imul(v,K)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,Z)|0;var gt=(f+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(l,X)|0))<<13)|0;f=((o=o+Math.imul(l,Y)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(M,q),i=(i=Math.imul(M,H))+Math.imul(S,q)|0,o=Math.imul(S,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,Y)|0;var wt=(f+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(l,Q)|0))<<13)|0;f=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(x,q),i=(i=Math.imul(x,H))+Math.imul(E,q)|0,o=Math.imul(E,H),n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,Y)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var _t=(f+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(l,rt)|0))<<13)|0;f=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(P,q),i=(i=Math.imul(P,H))+Math.imul(B,q)|0,o=Math.imul(B,H),n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,G)|0,n=n+Math.imul(M,W)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0;var kt=(f+(n=n+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(l,ot)|0))<<13)|0;f=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,q),i=(i=Math.imul(R,H))+Math.imul(I,q)|0,o=Math.imul(I,H),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,G)|0,n=n+Math.imul(x,W)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,Z)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(f+(n=n+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ft)|0)+Math.imul(l,ut)|0))<<13)|0;f=((o=o+Math.imul(l,ft)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(U,q),i=(i=Math.imul(U,H))+Math.imul(j,q)|0,o=Math.imul(j,H),n=n+Math.imul(R,K)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(B,W)|0,o=o+Math.imul(B,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(E,X)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(v,ot)|0,i=(i=i+Math.imul(v,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,ft)|0;var St=(f+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(l,ht)|0))<<13)|0;f=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(L,q),i=(i=Math.imul(L,H))+Math.imul(F,q)|0,o=Math.imul(F,H),n=n+Math.imul(U,K)|0,i=(i=i+Math.imul(U,G)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,Z)|0,n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,o=o+Math.imul(S,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(v,ut)|0,i=(i=i+Math.imul(v,ft)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ft)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ht)|0,o=o+Math.imul(m,lt)|0;var At=(f+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(l,pt)|0))<<13)|0;f=((o=o+Math.imul(l,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,G))+Math.imul(F,K)|0,o=Math.imul(F,G),n=n+Math.imul(U,W)|0,i=(i=i+Math.imul(U,Z)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,Z)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(E,rt)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,n=n+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ft)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ft)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,lt)|0;var xt=(f+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;f=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(L,W),i=(i=Math.imul(L,Z))+Math.imul(F,W)|0,o=Math.imul(F,Z),n=n+Math.imul(U,X)|0,i=(i=i+Math.imul(U,Y)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(B,rt)|0,o=o+Math.imul(B,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,n=n+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,ft)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ft)|0,n=n+Math.imul(w,ht)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ht)|0,o=o+Math.imul(_,lt)|0;var Et=(f+(n=n+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(y,pt)|0))<<13)|0;f=((o=o+Math.imul(y,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,Y))+Math.imul(F,X)|0,o=Math.imul(F,Y),n=n+Math.imul(U,Q)|0,i=(i=i+Math.imul(U,tt)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(I,rt)|0,o=o+Math.imul(I,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(B,ot)|0,o=o+Math.imul(B,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ft)|0)+Math.imul(E,ut)|0,o=o+Math.imul(E,ft)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,lt)|0;var Ot=(f+(n=n+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;f=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,tt))+Math.imul(F,Q)|0,o=Math.imul(F,tt),n=n+Math.imul(U,rt)|0,i=(i=i+Math.imul(U,nt)|0)+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,n=n+Math.imul(P,ut)|0,i=(i=i+Math.imul(P,ft)|0)+Math.imul(B,ut)|0,o=o+Math.imul(B,ft)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(E,ht)|0,o=o+Math.imul(E,lt)|0;var Pt=(f+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(S,pt)|0))<<13)|0;f=((o=o+Math.imul(S,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(L,rt),i=(i=Math.imul(L,nt))+Math.imul(F,rt)|0,o=Math.imul(F,nt),n=n+Math.imul(U,ot)|0,i=(i=i+Math.imul(U,at)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ft)|0)+Math.imul(I,ut)|0,o=o+Math.imul(I,ft)|0,n=n+Math.imul(P,ht)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(B,ht)|0,o=o+Math.imul(B,lt)|0;var Bt=(f+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(E,pt)|0))<<13)|0;f=((o=o+Math.imul(E,mt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(L,ot),i=(i=Math.imul(L,at))+Math.imul(F,ot)|0,o=Math.imul(F,at),n=n+Math.imul(U,ut)|0,i=(i=i+Math.imul(U,ft)|0)+Math.imul(j,ut)|0,o=o+Math.imul(j,ft)|0,n=n+Math.imul(R,ht)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(I,ht)|0,o=o+Math.imul(I,lt)|0;var Tt=(f+(n=n+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(B,pt)|0))<<13)|0;f=((o=o+Math.imul(B,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(L,ut),i=(i=Math.imul(L,ft))+Math.imul(F,ut)|0,o=Math.imul(F,ft),n=n+Math.imul(U,ht)|0,i=(i=i+Math.imul(U,lt)|0)+Math.imul(j,ht)|0,o=o+Math.imul(j,lt)|0;var Rt=(f+(n=n+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,mt)|0)+Math.imul(I,pt)|0))<<13)|0;f=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(L,ht),i=(i=Math.imul(L,lt))+Math.imul(F,ht)|0,o=Math.imul(F,lt);var It=(f+(n=n+Math.imul(U,pt)|0)|0)+((8191&(i=(i=i+Math.imul(U,mt)|0)+Math.imul(j,pt)|0))<<13)|0;f=((o=o+Math.imul(j,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var Ct=(f+(n=Math.imul(L,pt))|0)+((8191&(i=(i=Math.imul(L,mt))+Math.imul(F,pt)|0))<<13)|0;return f=((o=Math.imul(F,mt))+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,u[0]=bt,u[1]=vt,u[2]=yt,u[3]=gt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=St,u[9]=At,u[10]=xt,u[11]=Et,u[12]=Ot,u[13]=Pt,u[14]=Bt,u[15]=Tt,u[16]=Rt,u[17]=It,u[18]=Ct,0!==f&&(u[19]=f,r.length++),r};function y(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function g(t,e,r){return y(t,e,r)}function w(t,e){this.x=t,this.y=e}Math.imul||(v=b),a.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?v(this,t,e):r<63?b(this,t,e):r<1024?y(this,t,e):g(this,t,e)},w.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n>=1;return n},w.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,r+=o/67108864|0,r+=a>>>26,this.words[n]=67108863&a}return 0!==r&&(this.words[n]=r,this.length++),e?this.ineg():this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i&1}return e}(t);if(0===e.length)return new a(1);for(var r=this,n=0;n=0);var e,r=t%26,n=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e=0),n=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,f=0;f=0&&(0!==c||f>=n);f--){var h=0|this.words[f];this.words[f]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(t,e,r){return i(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){i("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,n=1<=0);var e=t%26,r=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var n=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(i("number"==typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o;if(0===s)return this._strip();for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o;return this.negative=1,this._strip()},a.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new a(null)).length=u+1,s.words=new Array(s.length);for(var f=0;f=0;h--){var l=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(i,l,h);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=l)}return s&&s._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){return i(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(n=s.div.neg()),"div"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:n,mod:o}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:s.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new a(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modrn(t.words[0]))}:this._wordDiv(t,e);var n,o,s},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modrn=function(t){var e=t<0;e&&(t=-t),i(t<=67108863);for(var r=(1<<26)%t,n=0,o=this.length-1;o>=0;o--)n=(r*n+(0|this.words[o]))%t;return e?-n:n},a.prototype.modn=function(t){return this.modrn(t)},a.prototype.idivn=function(t){var e=t<0;e&&(t=-t),i(t<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*r;this.words[n]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new a(1),o=new a(0),s=new a(0),u=new a(1),f=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),h=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(c),o.isub(h)),n.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),n.isub(s),o.isub(u)):(r.isub(e),s.isub(n),u.isub(o))}return{a:s,b:u,gcd:r.iushln(f)}},a.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n,o=new a(1),s=new a(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(e.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(e.iushrn(f);f-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var h=0,l=1;0==(r.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s)):(r.isub(e),s.isub(o))}return(n=0===e.cmpn(1)?o:s).cmpn(0)<0&&n.iadd(t),n},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){i("number"==typeof t);var e=t%26,r=(t-e)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),i(t<=67108863,"Number is too big");var n=0|this.words[0];e=n===t?0:nt.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new E(t)},a.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};function k(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){k.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){k.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){k.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function O(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}k.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},k.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},k.prototype.split=function(t,e){t.iushrn(this.n,0,e)},k.prototype.imulK=function(t){return t.imul(this.k)},o(M,k),M.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n>>22,i=o}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},a._prime=function(t){if(_[t])return _[t];var e;if("k256"===t)e=new M;else if("p224"===t)e=new S;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return _[t]=e,e},E.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){i(0==(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(h(t,t.umod(this.m)._forceRed(this)),t)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);i(!n.isZero());var s=new a(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,n),l=this.pow(t,n.addn(1).iushrn(1)),d=this.pow(t,n),p=o;0!==d.cmp(s);){for(var m=d,b=0;0!==m.cmp(s);b++)m=m.redSqr();i(b=0;n--){for(var f=e.words[n],c=u-1;c>=0;c--){var h=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}u=26}return i},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new O(t)},o(O,E),O.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},O.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},O.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t)}).call(this,r(17)(t))},function(t,e){},function(t){t.exports=JSON.parse('{"name":"elliptic","version":"6.5.4","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny ","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},function(t,e,r){"use strict";var n=r(19),i=r(8),o=r(3),a=r(67),s=n.assert;function u(t){a.call(this,"short",t),this.a=new i(t.a,16).toRed(this.red),this.b=new i(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function f(t,e,r,n){a.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(e,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function c(t,e,r,n){a.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(e,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,a),t.exports=u,u.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new i(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=(e=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(t.lambda)r=new i(t.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(e))?r=o[0]:(r=o[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:r,basis:t.basis?t.basis.map((function(t){return{a:new i(t.a,16),b:new i(t.b,16)}})):this._getEndoBasis(r)}}},u.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:i.mont(t),r=new i(2).toRed(e).redInvm(),n=r.redNeg(),o=new i(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},u.prototype._getEndoBasis=function(t){for(var e,r,n,o,a,s,u,f,c,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=t,d=this.n.clone(),p=new i(1),m=new i(0),b=new i(0),v=new i(1),y=0;0!==l.cmpn(0);){var g=d.div(l);f=d.sub(g.mul(l)),c=b.sub(g.mul(p));var w=v.sub(g.mul(m));if(!n&&f.cmp(h)<0)e=u.neg(),r=p,n=f.neg(),o=c;else if(n&&2==++y)break;u=f,d=l,l=f,b=p,p=c,v=m,m=w}a=f.neg(),s=c;var _=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=e,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},u.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),f=o.mul(n.b);return{k1:t.sub(a).sub(s),k2:u.add(f).neg()}},u.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(e&&!o||!e&&o)&&(n=n.redNeg()),this.point(t,n)},u.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},f.prototype.isInfinity=function(){return this.inf},f.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},f.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},f.prototype.getX=function(){return this.x.fromRed()},f.prototype.getY=function(){return this.y.fromRed()},f.prototype.mul=function(t){return t=new i(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},f.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},f.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},f.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},f.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},f.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(c,a.BasePoint),u.prototype.jpoint=function(t,e,r){return new c(this,t,e,r)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),c=f.redMul(s),h=n.redMul(f),l=u.redSqr().redIAdd(c).redISub(h).redISub(h),d=u.redMul(h.redISub(l)).redISub(o.redMul(c)),p=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(l,d,p)},c.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),f=u.redMul(a),c=r.redMul(u),h=s.redSqr().redIAdd(f).redISub(c).redISub(c),l=s.redMul(c.redISub(h)).redISub(i.redMul(f)),d=this.z.redMul(a);return this.curve.jpoint(h,l,d)},c.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,r){"use strict";var n=r(8),i=r(3),o=r(67),a=r(19);function s(t){o.call(this,"mont",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(t,e,r){o.BasePoint.call(this,t,"projective"),null===e&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(e,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),t.exports=s,s.prototype.validate=function(t){var e=t.normalize().x,r=e.redSqr(),n=r.redMul(e).redAdd(r.redMul(this.a)).redAdd(e);return 0===n.redSqrt().redSqr().cmp(n)},i(u,o.BasePoint),s.prototype.decodePoint=function(t,e){return this.point(a.toArray(t,e),1)},s.prototype.point=function(t,e){return new u(this,t,e)},s.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(t,e){return new u(t,e[0],e[1]||t.one)},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),r=t.redSub(e),n=t.redMul(e),i=r.redMul(e.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(t,e){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z).redMul(r),a=i.redMul(n),s=e.z.redMul(o.redAdd(a).redSqr()),u=e.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},u.prototype.mul=function(t){for(var e=t.clone(),r=this,n=this.curve.point(null,null),i=[];0!==e.cmpn(0);e.iushrn(1))i.push(e.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,r){"use strict";var n=r(19),i=r(8),o=r(3),a=r(67),s=n.assert;function u(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,a.call(this,"edwards",t),this.a=new i(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function f(t,e,r,n,o){a.BasePoint.call(this,t,"projective"),null===e&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(e,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,a),t.exports=u,u.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},u.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},u.prototype.jpoint=function(t,e,r,n){return this.point(t,e,r,n)},u.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(e&&!u||!e&&u)&&(s=s.redNeg()),this.point(t,s)},u.prototype.pointFromY=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==e&&(s=s.redNeg()),this.point(s,t)},u.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),r=t.y.redSqr(),n=e.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(r)));return 0===n.cmp(i)},o(f,a.BasePoint),u.prototype.pointFromJSON=function(t){return f.fromJSON(this,t)},u.prototype.point=function(t,e,r,n){return new f(this,t,e,r,n)},f.fromJSON=function(t,e){return new f(t,e[0],e[1],e[2])},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},f.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=n.redAdd(e),a=o.redSub(r),s=n.redSub(e),u=i.redMul(a),f=o.redMul(s),c=i.redMul(s),h=a.redMul(o);return this.curve.point(u,f,h,c)},f.prototype._projDbl=function(){var t,e,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){var f=(n=this.curve._mulA(s)).redAdd(u);this.zOne?(t=a.redSub(s).redSub(u).redMul(f.redSub(this.curve.two)),e=f.redMul(n.redSub(u)),r=f.redSqr().redSub(f).redSub(f)):(i=this.z.redSqr(),o=f.redSub(i).redISub(i),t=a.redSub(s).redISub(u).redMul(o),e=f.redMul(n.redSub(u)),r=f.redMul(o))}else n=s.redAdd(u),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),t=this.curve._mulC(a.redISub(n)).redMul(o),e=this.curve._mulC(n).redMul(s.redISub(u)),r=n.redMul(o);return this.curve.point(t,e,r)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),r=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=r.redSub(e),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(e),f=o.redMul(a),c=s.redMul(u),h=o.redMul(u),l=a.redMul(s);return this.curve.point(f,c,l,h)},f.prototype._projAdd=function(t){var e,r,n=this.z.redMul(t.z),i=n.redSqr(),o=this.x.redMul(t.x),a=this.y.redMul(t.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),f=i.redAdd(s),c=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(a),h=n.redMul(u).redMul(c);return this.curve.twisted?(e=n.redMul(f).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(f)):(e=n.redMul(f).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(f)),this.curve.point(h,e,r)},f.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},f.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},f.prototype.mulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!1)},f.prototype.jmulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!0)},f.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},f.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()},f.prototype.getY=function(){return this.normalize(),this.y.fromRed()},f.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},f.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var r=t.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add},function(t,e,r){"use strict";t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(t,e,r){"use strict";var n=r(0)(r(2)),i=r(8),o=r(405),a=r(19),s=r(95),u=r(91),f=a.assert,c=r(406),h=r(407);function l(t){if(!(this instanceof l))return new l(t);"string"==typeof t&&(f(Object.prototype.hasOwnProperty.call(s,t),"Unknown curve "+t),t=s[t]),t instanceof s.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=l,l.prototype.keyPair=function(t){return new c(this,t)},l.prototype.keyFromPrivate=function(t,e){return c.fromPrivate(this,t,e)},l.prototype.keyFromPublic=function(t,e){return c.fromPublic(this,t,e)},l.prototype.genKeyPair=function(t){t||(t={});for(var e=new o({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||u(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new i(2));;){var a=new i(e.generate(r));if(!(a.cmp(n)>0))return a.iaddn(1),this.keyFromPrivate(a)}},l.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},l.prototype.sign=function(t,e,r,a){"object"===(0,n.default)(r)&&(a=r,r=null),a||(a={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new i(t,16));for(var s=this.n.byteLength(),u=e.getPrivate().toArray("be",s),f=t.toArray("be",s),c=new o({hash:this.hash,entropy:u,nonce:f,pers:a.pers,persEnc:a.persEnc||"utf8"}),l=this.n.sub(new i(1)),d=0;;d++){var p=a.k?a.k(d):new i(c.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(l)>=0)){var m=this.g.mul(p);if(!m.isInfinity()){var b=m.getX(),v=b.umod(this.n);if(0!==v.cmpn(0)){var y=p.invm(this.n).mul(v.mul(e.getPrivate()).iadd(t));if(0!==(y=y.umod(this.n)).cmpn(0)){var g=(m.getY().isOdd()?1:0)|(0!==b.cmp(v)?2:0);return a.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),g^=1),new h({r:v,s:y,recoveryParam:g})}}}}}},l.prototype.verify=function(t,e,r,n){t=this._truncateToN(new i(t,16)),r=this.keyFromPublic(r,n);var o=(e=new h(e,"hex")).r,a=e.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),f=u.mul(t).umod(this.n),c=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(f,r.getPublic(),c)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(f,r.getPublic(),c)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},l.prototype.recoverPubKey=function(t,e,r,n){f((3&r)===r,"The recovery param is more than two bits"),e=new h(e,n);var o=this.n,a=new i(t),s=e.r,u=e.s,c=1&r,l=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");s=l?this.curve.pointFromX(s.add(this.curve.n),c):this.curve.pointFromX(s,c);var d=e.r.invm(o),p=o.sub(a).mul(d).umod(o),m=u.mul(d).umod(o);return this.g.mulAdd(p,s,m)},l.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new h(e,n)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(t,e,r){"use strict";var n=r(60),i=r(183),o=r(18);function a(t){if(!(this instanceof a))return new a(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=i.toArray(t.entropy,t.entropyEnc||"hex"),r=i.toArray(t.nonce,t.nonceEnc||"hex"),n=i.toArray(t.pers,t.persEnc||"hex");o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}t.exports=a,a.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},a.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length"}},function(t,e,r){"use strict";var n=r(8),i=r(19),o=i.assert;function a(t,e){if(t instanceof a)return t;this._importDER(t,e)||(o(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function s(){this.place=0}function u(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=e.place;o>>=0;return!(i<=127)&&(e.place=a,i)}function f(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}t.exports=a,a.prototype._importDER=function(t,e){t=i.toArray(t,e);var r=new s;if(48!==t[r.place++])return!1;var o=u(t,r);if(!1===o)return!1;if(o+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var a=u(t,r);if(!1===a)return!1;var f=t.slice(r.place,a+r.place);if(r.place+=a,2!==t[r.place++])return!1;var c=u(t,r);if(!1===c)return!1;if(t.length!==c+r.place)return!1;var h=t.slice(r.place,c+r.place);if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}return this.r=new n(f),this.s=new n(h),this.recoveryParam=null,!0},a.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=f(e),r=f(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];c(n,e.length),(n=n.concat(e)).push(2),c(n,r.length);var o=n.concat(r),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,t)}},function(t,e,r){"use strict";var n=r(60),i=r(95),o=r(19),a=o.assert,s=o.parseBytes,u=r(409),f=r(410);function c(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof c))return new c(t);t=i[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=n.sha512}t.exports=c,c.prototype.sign=function(t,e){t=s(t);var r=this.keyFromSecret(e),n=this.hashInt(r.messagePrefix(),t),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),t).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},c.prototype.verify=function(t,e,r){t=s(t),e=this.makeSignature(e);var n=this.keyFromPublic(r),i=this.hashInt(e.Rencoded(),n.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var t=this.hash(),e=0;e=e)throw new Error("invalid sig")}t.exports=function(t,e,r,f,c){var h=a(r);if("ec"===h.type){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");return function(t,e,r){var n=s[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),a=r.data.subjectPrivateKey.data;return i.verify(e,t,a)}(t,e,h)}if("dsa"===h.type){if("dsa"!==f)throw new Error("wrong public key type");return function(t,e,r){var n=r.data.p,o=r.data.q,s=r.data.g,f=r.data.pub_key,c=a.signature.decode(t,"der"),h=c.s,l=c.r;u(h,o),u(l,o);var d=i.mont(n),p=h.invm(o);return 0===s.toRed(d).redPow(new i(e).mul(p).mod(o)).fromRed().mul(f.toRed(d).redPow(l.mul(p).mod(o)).fromRed()).mod(n).mod(o).cmp(l)}(t,e,h)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");e=n.concat([c,e]);for(var l=h.modulus.byteLength(),d=[1],p=0;e.length+d.length+2r-l-2)throw new Error("message too long");var d=h.alloc(r-n-l-2),p=r-c-1,m=i(c),b=s(h.concat([f,d,h.alloc(1,1),e],p),a(m,p)),v=s(m,a(b,c));return new u(h.concat([h.alloc(1),v,b],r))}(p,e);else if(1===l)d=function(t,e,r){var n,o=e.length,a=t.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=r?h.alloc(a-o-3,255):function(t){var e,r=h.allocUnsafe(t),n=0,o=i(2*t),a=0;for(;n=0)throw new Error("data too long for modulus")}return r?c(d,p):f(d,p)}},function(t,e,r){"use strict";var n=r(68),i=r(192),o=r(193),a=r(8),s=r(94),u=r(36),f=r(194),c=r(4).Buffer;t.exports=function(t,e,r){var h;h=t.padding?t.padding:r?1:4;var l,d=n(t),p=d.modulus.byteLength();if(e.length>p||new a(e).cmp(d.modulus)>=0)throw new Error("decryption error");l=r?f(new a(e),d):s(e,d);var m=c.alloc(p-l.length);if(l=c.concat([m,l],p),4===h)return function(t,e){var r=t.modulus.byteLength(),n=u("sha1").update(c.alloc(0)).digest(),a=n.length;if(0!==e[0])throw new Error("decryption error");var s=e.slice(1,a+1),f=e.slice(a+1),h=o(s,i(f,a)),l=o(f,i(h,r-a-1));if(function(t,e){t=c.from(t),e=c.from(e);var r=0,n=t.length;t.length!==e.length&&(r++,n=Math.min(t.length,e.length));var i=-1;for(;++i=e.length){o++;break}var a=e.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return e.slice(i)}(0,l,r);if(3===h)return l;throw new Error("unknown padding")}},function(t,e,r){"use strict";(function(t,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(4),a=r(22),s=o.Buffer,u=o.kMaxLength,f=t.crypto||t.msCrypto,c=Math.pow(2,32)-1;function h(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>c||t<0)throw new TypeError("offset must be a uint32");if(t>u||t>e)throw new RangeError("offset out of range")}function l(t,e,r){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>c||t<0)throw new TypeError("size must be a uint32");if(t+e>r||t>u)throw new RangeError("buffer too small")}function d(t,e,r,i){if(n.browser){var o=t.buffer,s=new Uint8Array(o,e,r);return f.getRandomValues(s),i?void n.nextTick((function(){i(null,t)})):t}if(!i)return a(r).copy(t,e),t;a(r,(function(r,n){if(r)return i(r);n.copy(t,e),i(null,t)}))}f&&f.getRandomValues||!n.browser?(e.randomFill=function(e,r,n,i){if(!(s.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)i=r,r=0,n=e.length;else if("function"==typeof n)i=n,n=e.length-r;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return h(r,e.length),l(n,r,e.length),d(e,r,n,i)},e.randomFillSync=function(e,r,n){void 0===r&&(r=0);if(!(s.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');h(r,e.length),void 0===n&&(n=e.length-r);return l(n,r,e.length),d(e,r,n)}):(e.randomFill=i,e.randomFillSync=i)}).call(this,r(7),r(6))},function(t,e,r){"use strict";var n=r(8),i=r(150),o=function(t){return new n(t.slice(2),16)},a=function(t){var e="0x"+("0x"===t.slice(0,2)?new n(t.slice(2),16):new n(t,10)).toString("hex");return"0x0"===e?"0x":e},s=function(t){return"string"==typeof t?/^0x/.test(t)?t:"0x"+t:"0x"+new n(t).toString("hex")},u=function(t){return o(t).toNumber()},f=function(t){return function(e,r){return"0x"+o(e)[t](o(r)).toString("hex")}},c=f("add"),h=f("mul"),l=f("div"),d=f("sub");t.exports={toString:function(t){return o(t).toString(10)},fromString:a,toNumber:u,fromNumber:s,toEther:function(t){return u(l(t,a("10000000000")))/1e8},fromEther:function(t){return h(s(Math.floor(1e8*t)),a("10000000000"))},toUint256:function(t){return i.pad(32,t)},add:c,mul:h,div:l,sub:d}},function(t,e,r){"use strict";t.exports={encode:function(t){var e=function(t){return(e=t.toString(16)).length%2==0?e:"0"+e;var e},r=function(t,r){return t<56?e(r+t):e(r+e(t).length/2+55)+e(t)};return"0x"+function t(e){if("string"==typeof e){var n=e.slice(2);return(2!=n.length||n>="80"?r(n.length/2,128):"")+n}var i=e.map(t).join("");return r(i.length/2,192)+i}(t)},decode:function(t){var e=2,r=function(){if(e>=t.length)throw"";var r=t.slice(e,e+2);return r<"80"?(e+=2,"0x"+r):r<"c0"?i():o()},n=function(){var r=parseInt(t.slice(e,e+=2),16)%64;return r<56?r:parseInt(t.slice(e,e+=2*(r-55)),16)},i=function(){var r=n();return"0x"+t.slice(e,e+=2*r)},o=function(){for(var t=2*n()+e,i=[];e=64;){var d=r,p=n,m=i,b=o,v=a,y=s,g=u,w=f,_=void 0,k=void 0,M=void 0,S=void 0,A=void 0;for(k=0;k<16;k++)M=h+4*k,c[k]=(255&t[M])<<24|(255&t[M+1])<<16|(255&t[M+2])<<8|255&t[M+3];for(k=16;k<64;k++)S=((_=c[k-2])>>>17|_<<15)^(_>>>19|_<<13)^_>>>10,A=((_=c[k-15])>>>7|_<<25)^(_>>>18|_<<14)^_>>>3,c[k]=(S+c[k-7]|0)+(A+c[k-16]|0)|0;for(k=0;k<64;k++)S=(((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&y^~v&g)|0)+(w+(e[k]+c[k]|0)|0)|0,A=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&p^d&m^p&m)|0,w=g,g=y,y=v,v=b+S|0,b=m,m=p,p=d,d=S+A|0;r=r+d|0,n=n+p|0,i=i+m|0,o=o+b|0,a=a+v|0,s=s+y|0,u=u+g|0,f=f+w|0,h+=64,l-=64}}h(t);var l,d=t.length%64,p=t.length/536870912|0,m=t.length<<3,b=d<56?56:120,v=t.slice(t.length-d,t.length);for(v.push(128),l=d+1;l>>24&255),v.push(p>>>16&255),v.push(p>>>8&255),v.push(p>>>0&255),v.push(m>>>24&255),v.push(m>>>16&255),v.push(m>>>8&255),v.push(m>>>0&255),h(v),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255,f>>>24&255,f>>>16&255,f>>>8&255,f>>>0&255]}function i(t,e,r){t=t.length<=64?t:n(t);var i,o=64+e.length+4,a=new Array(o),s=new Array(64),u=[];for(i=0;i<64;i++)a[i]=54;for(i=0;i=o-4;t--){if(a[t]++,a[t]<=255)return;a[t]=0}}for(;r>=32;)f(),u=u.concat(n(s.concat(n(a)))),r-=32;return r>0&&(f(),u=u.concat(n(s.concat(n(a))).slice(0,r))),u}function o(t,e,r,n,i){var o;for(f(t,16*(2*r-1),i,0,16),o=0;o<2*r;o++)u(t,16*o,i,16),s(i,n),f(i,0,t,e+16*o,16);for(o=0;o>>32-e}function s(t,e){f(t,0,e,0,16);for(var r=8;r>0;r-=2)e[4]^=a(e[0]+e[12],7),e[8]^=a(e[4]+e[0],9),e[12]^=a(e[8]+e[4],13),e[0]^=a(e[12]+e[8],18),e[9]^=a(e[5]+e[1],7),e[13]^=a(e[9]+e[5],9),e[1]^=a(e[13]+e[9],13),e[5]^=a(e[1]+e[13],18),e[14]^=a(e[10]+e[6],7),e[2]^=a(e[14]+e[10],9),e[6]^=a(e[2]+e[14],13),e[10]^=a(e[6]+e[2],18),e[3]^=a(e[15]+e[11],7),e[7]^=a(e[3]+e[15],9),e[11]^=a(e[7]+e[3],13),e[15]^=a(e[11]+e[7],18),e[1]^=a(e[0]+e[3],7),e[2]^=a(e[1]+e[0],9),e[3]^=a(e[2]+e[1],13),e[0]^=a(e[3]+e[2],18),e[6]^=a(e[5]+e[4],7),e[7]^=a(e[6]+e[5],9),e[4]^=a(e[7]+e[6],13),e[5]^=a(e[4]+e[7],18),e[11]^=a(e[10]+e[9],7),e[8]^=a(e[11]+e[10],9),e[9]^=a(e[8]+e[11],13),e[10]^=a(e[9]+e[8],18),e[12]^=a(e[15]+e[14],7),e[13]^=a(e[12]+e[15],9),e[14]^=a(e[13]+e[12],13),e[15]^=a(e[14]+e[13],18);for(var n=0;n<16;++n)t[n]+=e[n]}function u(t,e,r,n){for(var i=0;i=256)return!1}return!0}function h(t,e){if("number"!=typeof t||t%1)throw new Error("invalid "+e);return t}function l(t,r,n,a,s,l,d){if(n=h(n,"N"),a=h(a,"r"),s=h(s,"p"),l=h(l,"dkLen"),0===n||0!=(n&n-1))throw new Error("N must be power of 2");if(n>2147483647/128/a)throw new Error("N too large");if(a>2147483647/128/s)throw new Error("r too large");if(!c(t))throw new Error("password must be an array or buffer");if(t=Array.prototype.slice.call(t),!c(r))throw new Error("salt must be an array or buffer");r=Array.prototype.slice.call(r);for(var p=i(t,r,128*s*a),m=new Uint32Array(32*s*a),b=0;bT&&(r=T);for(var c=0;cT&&(r=T);for(var b=0;b>0&255),p.push(m[C]>>8&255),p.push(m[C]>>16&255),p.push(m[C]>>24&255);var U=i(t,p,l);return d&&d(null,1,U),U}d&&R(e)};if(!d)for(;;){var C=I();if(null!=C)return C}I()}var d={scrypt:function(t,e,r,n,i,o,a){return new Promise((function(s,u){var f=0;a&&a(0),l(t,e,r,n,i,o,(function(t,e,r){if(t)u(t);else if(r)a&&1!==f&&a(1),s(new Uint8Array(r));else if(a&&e!==f)return f=e,a(e)}))}))},syncScrypt:function(t,e,r,n,i,o){return new Uint8Array(l(t,e,r,n,i,o))}};t.exports=d}()}).call(this,r(120).setImmediate)},function(t,e,r){"use strict";var n=r(431),i=r(432),o=i;o.v1=n,o.v4=i,t.exports=o},function(t,e,r){"use strict";var n,i,o=r(195),a=r(196),s=0,u=0;t.exports=function(t,e,r){var f=e&&r||0,c=e||[],h=(t=t||{}).node||n,l=void 0!==t.clockseq?t.clockseq:i;if(null==h||null==l){var d=o();null==h&&(h=n=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==l&&(l=i=16383&(d[6]<<8|d[7]))}var p=void 0!==t.msecs?t.msecs:(new Date).getTime(),m=void 0!==t.nsecs?t.nsecs:u+1,b=p-s+(m-u)/1e4;if(b<0&&void 0===t.clockseq&&(l=l+1&16383),(b<0||p>s)&&void 0===t.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=p,u=m,i=l;var v=(1e4*(268435455&(p+=122192928e5))+m)%4294967296;c[f++]=v>>>24&255,c[f++]=v>>>16&255,c[f++]=v>>>8&255,c[f++]=255&v;var y=p/4294967296*1e4&268435455;c[f++]=y>>>8&255,c[f++]=255&y,c[f++]=y>>>24&15|16,c[f++]=y>>>16&255,c[f++]=l>>>8|128,c[f++]=255&l;for(var g=0;g<6;++g)c[f+g]=h[g];return e||a(c)}},function(t,e,r){"use strict";var n=r(195),i=r(196);t.exports=function(t,e,r){var o=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[o+s]=a[s];return e||i(a)}},function(t,e,r){"use strict";(function(t){var n,i=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=function(){return(o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0});var s=r(26),u=r(43),f=r(104),c=function(e){function r(t,r){var n;void 0===r&&(r={});var i=e.call(this,o(o({},t),{type:0}))||this;if(i.common=i._validateTxV(i.v,r.common),i.gasPrice=new s.BN(s.toBuffer(""===t.gasPrice?"0x":t.gasPrice)),i._validateCannotExceedMaxInteger({gasPrice:i.gasPrice}),i.common.gteHardfork("spuriousDragon"))if(i.isSigned()){var a=i.v,f=i.common.chainIdBN().muln(2);(a.eq(f.addn(35))||a.eq(f.addn(36)))&&i.activeCapabilities.push(u.Capability.EIP155ReplayProtection)}else i.activeCapabilities.push(u.Capability.EIP155ReplayProtection);return(null===(n=null==r?void 0:r.freeze)||void 0===n||n)&&Object.freeze(i),i}return i(r,e),r.fromTxData=function(t,e){return void 0===e&&(e={}),new r(t,e)},r.fromSerializedTx=function(t,e){void 0===e&&(e={});var r=s.rlp.decode(t);if(!Array.isArray(r))throw new Error("Invalid serialized tx input. Must be array");return this.fromValuesArray(r,e)},r.fromRlpSerializedTx=function(t,e){return void 0===e&&(e={}),r.fromSerializedTx(t,e)},r.fromValuesArray=function(t,e){if(void 0===e&&(e={}),6!==t.length&&9!==t.length)throw new Error("Invalid transaction. Only expecting 6 values (for unsigned tx) or 9 values (for signed tx).");var n=a(t,9);return new r({nonce:n[0],gasPrice:n[1],gasLimit:n[2],to:n[3],value:n[4],data:n[5],v:n[6],r:n[7],s:n[8]},e)},r.prototype.raw=function(){return[s.bnToUnpaddedBuffer(this.nonce),s.bnToUnpaddedBuffer(this.gasPrice),s.bnToUnpaddedBuffer(this.gasLimit),void 0!==this.to?this.to.buf:t.from([]),s.bnToUnpaddedBuffer(this.value),this.data,void 0!==this.v?s.bnToUnpaddedBuffer(this.v):t.from([]),void 0!==this.r?s.bnToUnpaddedBuffer(this.r):t.from([]),void 0!==this.s?s.bnToUnpaddedBuffer(this.s):t.from([])]},r.prototype.serialize=function(){return s.rlp.encode(this.raw())},r.prototype._getMessageToSign=function(){var e=[s.bnToUnpaddedBuffer(this.nonce),s.bnToUnpaddedBuffer(this.gasPrice),s.bnToUnpaddedBuffer(this.gasLimit),void 0!==this.to?this.to.buf:t.from([]),s.bnToUnpaddedBuffer(this.value),this.data];return this.supports(u.Capability.EIP155ReplayProtection)&&(e.push(s.toBuffer(this.common.chainIdBN())),e.push(s.unpadBuffer(s.toBuffer(0))),e.push(s.unpadBuffer(s.toBuffer(0)))),e},r.prototype.getMessageToSign=function(t){void 0===t&&(t=!0);var e=this._getMessageToSign();return t?s.rlphash(e):e},r.prototype.getUpfrontCost=function(){return this.gasLimit.mul(this.gasPrice).add(this.value)},r.prototype.hash=function(){return s.rlphash(this.raw())},r.prototype.getMessageToVerifySignature=function(){if(!this.isSigned())throw Error("This transaction is not signed");var t=this._getMessageToSign();return s.rlphash(t)},r.prototype.getSenderPublicKey=function(){var t,e=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(null===(t=this.s)||void 0===t?void 0:t.gt(u.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");var r=this.v,n=this.r,i=this.s;try{return s.ecrecover(e,r,s.bnToUnpaddedBuffer(n),s.bnToUnpaddedBuffer(i),this.supports(u.Capability.EIP155ReplayProtection)?this.common.chainIdBN():void 0)}catch(t){throw new Error("Invalid Signature")}},r.prototype._processSignature=function(t,e,n){var i=new s.BN(t);this.supports(u.Capability.EIP155ReplayProtection)&&i.iadd(this.common.chainIdBN().muln(2).addn(8));var o={common:this.common};return r.fromTxData({nonce:this.nonce,gasPrice:this.gasPrice,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,v:i,r:new s.BN(e),s:new s.BN(n)},o)},r.prototype.toJSON=function(){return{nonce:s.bnToHex(this.nonce),gasPrice:s.bnToHex(this.gasPrice),gasLimit:s.bnToHex(this.gasLimit),to:void 0!==this.to?this.to.toString():void 0,value:s.bnToHex(this.value),data:"0x"+this.data.toString("hex"),v:void 0!==this.v?s.bnToHex(this.v):void 0,r:void 0!==this.r?s.bnToHex(this.r):void 0,s:void 0!==this.s?s.bnToHex(this.s):void 0}},r.prototype._validateTxV=function(t,e){var r;if(void 0!==t&&!t.eqn(0)&&(!e||e.gteHardfork("spuriousDragon"))&&!t.eqn(27)&&!t.eqn(28))if(e){var n=e.chainIdBN().muln(2);if(!(t.eq(n.addn(35))||t.eq(n.addn(36))))throw new Error("Incompatible EIP155-based V "+t.toString()+" and chain id "+e.chainIdBN().toString()+". See the Common parameter of the Transaction constructor to set the chain id.")}else{var i=void 0;i=t.subn(35).isEven()?35:36,r=t.subn(i).divn(2)}return this._getCommon(e,r)},r.prototype._unsignedTxImplementsEIP155=function(){return this.common.gteHardfork("spuriousDragon")},r.prototype._signedTxImplementsEIP155=function(){if(!this.isSigned())throw Error("This transaction is not signed");var t=this.common.gteHardfork("spuriousDragon"),e=this.v,r=this.common.chainIdBN().muln(2);return(e.eq(r.addn(35))||e.eq(r.addn(36)))&&t},r}(f.BaseTransaction);e.default=c}).call(this,r(1).Buffer)},function(t,e){},function(t,e,r){"use strict";function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:function(t){return new Uint8Array(t)},e=arguments.length>1?arguments[1]:void 0;return"function"==typeof t&&(t=t(e)),y("output",t,e),t}function _(t){return Object.prototype.toString.call(t).slice(8,-1)}t.exports=function(t){return{contextRandomize:function(e){switch(v(null===e||e instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==e&&y("seed",e,32),t.contextRandomize(e)){case 1:throw new Error(u)}},privateKeyVerify:function(e){return y("private key",e,32),0===t.privateKeyVerify(e)},privateKeyNegate:function(e){switch(y("private key",e,32),t.privateKeyNegate(e)){case 0:return e;case 1:throw new Error(o)}},privateKeyTweakAdd:function(e,r){switch(y("private key",e,32),y("tweak",r,32),t.privateKeyTweakAdd(e,r)){case 0:return e;case 1:throw new Error(a)}},privateKeyTweakMul:function(e,r){switch(y("private key",e,32),y("tweak",r,32),t.privateKeyTweakMul(e,r)){case 0:return e;case 1:throw new Error(s)}},publicKeyVerify:function(e){return y("public key",e,[33,65]),0===t.publicKeyVerify(e)},publicKeyCreate:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(y("private key",e,32),g(r),n=w(n,r?33:65),t.publicKeyCreate(n,e)){case 0:return n;case 1:throw new Error(f);case 2:throw new Error(h)}},publicKeyConvert:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(y("public key",e,[33,65]),g(r),n=w(n,r?33:65),t.publicKeyConvert(n,e)){case 0:return n;case 1:throw new Error(c);case 2:throw new Error(h)}},publicKeyNegate:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(y("public key",e,[33,65]),g(r),n=w(n,r?33:65),t.publicKeyNegate(n,e)){case 0:return n;case 1:throw new Error(c);case 2:throw new Error(o);case 3:throw new Error(h)}},publicKeyCombine:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0;v(Array.isArray(e),"Expected public keys to be an Array"),v(e.length>0,"Expected public keys array will have more than zero items");var o,a=n(e);try{for(a.s();!(o=a.n()).done;){var s=o.value;y("public key",s,[33,65])}}catch(t){a.e(t)}finally{a.f()}switch(g(r),i=w(i,r?33:65),t.publicKeyCombine(i,e)){case 0:return i;case 1:throw new Error(c);case 2:throw new Error(l);case 3:throw new Error(h)}},publicKeyTweakAdd:function(e,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0;switch(y("public key",e,[33,65]),y("tweak",r,32),g(n),i=w(i,n?33:65),t.publicKeyTweakAdd(i,e,r)){case 0:return i;case 1:throw new Error(c);case 2:throw new Error(a)}},publicKeyTweakMul:function(e,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0;switch(y("public key",e,[33,65]),y("tweak",r,32),g(n),i=w(i,n?33:65),t.publicKeyTweakMul(i,e,r)){case 0:return i;case 1:throw new Error(c);case 2:throw new Error(s)}},signatureNormalize:function(e){switch(y("signature",e,64),t.signatureNormalize(e)){case 0:return e;case 1:throw new Error(d)}},signatureExport:function(e,r){y("signature",e,64);var n={output:r=w(r,72),outputlen:72};switch(t.signatureExport(n,e)){case 0:return r.slice(0,n.outputlen);case 1:throw new Error(d);case 2:throw new Error(o)}},signatureImport:function(e,r){switch(y("signature",e),r=w(r,64),t.signatureImport(r,e)){case 0:return r;case 1:throw new Error(d);case 2:throw new Error(o)}},ecdsaSign:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;y("message",e,32),y("private key",r,32),v("Object"===_(n),"Expected options to be an Object"),void 0!==n.data&&y("options.data",n.data),void 0!==n.noncefn&&v("Function"===_(n.noncefn),"Expected options.noncefn to be a Function");var a={signature:i=w(i,64),recid:null};switch(t.ecdsaSign(a,e,r,n.data,n.noncefn)){case 0:return a;case 1:throw new Error(p);case 2:throw new Error(o)}},ecdsaVerify:function(e,r,n){switch(y("signature",e,64),y("message",r,32),y("public key",n,[33,65]),t.ecdsaVerify(e,r,n)){case 0:return!0;case 3:return!1;case 1:throw new Error(d);case 2:throw new Error(c)}},ecdsaRecover:function(e,r,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4?arguments[4]:void 0;switch(y("signature",e,64),v("Number"===_(r)&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),y("message",n,32),g(i),a=w(a,i?33:65),t.ecdsaRecover(a,e,r,n)){case 0:return a;case 1:throw new Error(d);case 2:throw new Error(m);case 3:throw new Error(o)}},ecdh:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;switch(y("public key",e,[33,65]),y("private key",r,32),v("Object"===_(n),"Expected options to be an Object"),void 0!==n.data&&y("options.data",n.data),void 0!==n.hashfn?(v("Function"===_(n.hashfn),"Expected options.hashfn to be a Function"),void 0!==n.xbuf&&y("options.xbuf",n.xbuf,32),void 0!==n.ybuf&&y("options.ybuf",n.ybuf,32),y("output",i)):i=w(i,32),t.ecdh(i,e,r,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return i;case 1:throw new Error(c);case 2:throw new Error(b)}}}}},function(t,e,r){"use strict";var n=new(0,r(54).ec)("secp256k1"),i=n.curve,o=i.n.constructor;function a(t){var e=t[0];switch(e){case 2:case 3:return 33!==t.length?null:function(t,e){var r=new o(e);if(r.cmp(i.p)>=0)return null;var a=(r=r.toRed(i.red)).redSqr().redIMul(r).redIAdd(i.b).redSqrt();return 3===t!==a.isOdd()&&(a=a.redNeg()),n.keyPair({pub:{x:r,y:a}})}(e,t.subarray(1,33));case 4:case 6:case 7:return 65!==t.length?null:function(t,e,r){var a=new o(e),s=new o(r);if(a.cmp(i.p)>=0||s.cmp(i.p)>=0)return null;if(a=a.toRed(i.red),s=s.toRed(i.red),(6===t||7===t)&&s.isOdd()!==(7===t))return null;var u=a.redSqr().redIMul(a);return s.redSqr().redISub(u.redIAdd(i.b)).isZero()?n.keyPair({pub:{x:a,y:s}}):null}(e,t.subarray(1,33),t.subarray(33,65));default:return null}}function s(t,e){for(var r=e.encode(null,33===t.length),n=0;n=0)return 1;if(r.iadd(new o(t)),r.cmp(i.n)>=0&&r.isub(i.n),r.isZero())return 1;var n=r.toArrayLike(Uint8Array,"be",32);return t.set(n),0},privateKeyTweakMul:function(t,e){var r=new o(e);if(r.cmp(i.n)>=0||r.isZero())return 1;r.imul(new o(t)),r.cmp(i.n)>=0&&(r=r.umod(i.n));var n=r.toArrayLike(Uint8Array,"be",32);return t.set(n),0},publicKeyVerify:function(t){return null===a(t)?1:0},publicKeyCreate:function(t,e){var r=new o(e);return r.cmp(i.n)>=0||r.isZero()?1:(s(t,n.keyFromPrivate(e).getPublic()),0)},publicKeyConvert:function(t,e){var r=a(e);return null===r?1:(s(t,r.getPublic()),0)},publicKeyNegate:function(t,e){var r=a(e);if(null===r)return 1;var n=r.getPublic();return n.y=n.y.redNeg(),s(t,n),0},publicKeyCombine:function(t,e){for(var r=new Array(e.length),n=0;n=0)return 2;var u=n.getPublic().add(i.g.mul(r));return u.isInfinity()?2:(s(t,u),0)},publicKeyTweakMul:function(t,e,r){var n=a(e);return null===n?1:(r=new o(r)).cmp(i.n)>=0||r.isZero()?2:(s(t,n.getPublic().mul(r)),0)},signatureNormalize:function(t){var e=new o(t.subarray(0,32)),r=new o(t.subarray(32,64));return e.cmp(i.n)>=0||r.cmp(i.n)>=0?1:(1===r.cmp(n.nh)&&t.set(i.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport:function(t,e){var r=e.subarray(0,32),n=e.subarray(32,64);if(new o(r).cmp(i.n)>=0)return 1;if(new o(n).cmp(i.n)>=0)return 1;var a=t.output,s=a.subarray(4,37);s[0]=0,s.set(r,1);for(var u=33,f=0;u>1&&0===s[f]&&!(128&s[f+1]);--u,++f);if(128&(s=s.subarray(f))[0])return 1;if(u>1&&0===s[0]&&!(128&s[1]))return 1;var c=a.subarray(39,72);c[0]=0,c.set(n,1);for(var h=33,l=0;h>1&&0===c[l]&&!(128&c[l+1]);--h,++l);return 128&(c=c.subarray(l))[0]||h>1&&0===c[0]&&!(128&c[1])?1:(t.outputlen=6+u+h,a[0]=48,a[1]=t.outputlen-2,a[2]=2,a[3]=s.length,a.set(s,4),a[4+u]=2,a[5+u]=c.length,a.set(c,6+u),0)},signatureImport:function(t,e){if(e.length<8)return 1;if(e.length>72)return 1;if(48!==e[0])return 1;if(e[1]!==e.length-2)return 1;if(2!==e[2])return 1;var r=e[3];if(0===r)return 1;if(5+r>=e.length)return 1;if(2!==e[4+r])return 1;var n=e[5+r];if(0===n)return 1;if(6+r+n!==e.length)return 1;if(128&e[4])return 1;if(r>1&&0===e[4]&&!(128&e[5]))return 1;if(128&e[r+6])return 1;if(n>1&&0===e[r+6]&&!(128&e[r+7]))return 1;var a=e.subarray(4,4+r);if(33===a.length&&0===a[0]&&(a=a.subarray(1)),a.length>32)return 1;var s=e.subarray(6+r);if(33===s.length&&0===s[0]&&(s=s.slice(1)),s.length>32)throw new Error("S length is too long");var u=new o(a);u.cmp(i.n)>=0&&(u=new o(0));var f=new o(e.subarray(6+r));return f.cmp(i.n)>=0&&(f=new o(0)),t.set(u.toArrayLike(Uint8Array,"be",32),0),t.set(f.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign:function(t,e,r,a,s){if(s){var u=s;s=function(t){var n=u(e,r,null,a,t);if(!(n instanceof Uint8Array&&32===n.length))throw new Error("This is the way");return new o(n)}}var f,c=new o(r);if(c.cmp(i.n)>=0||c.isZero())return 1;try{f=n.sign(e,r,{canonical:!0,k:s,pers:a})}catch(t){return 1}return t.signature.set(f.r.toArrayLike(Uint8Array,"be",32),0),t.signature.set(f.s.toArrayLike(Uint8Array,"be",32),32),t.recid=f.recoveryParam,0},ecdsaVerify:function(t,e,r){var s={r:t.subarray(0,32),s:t.subarray(32,64)},u=new o(s.r),f=new o(s.s);if(u.cmp(i.n)>=0||f.cmp(i.n)>=0)return 1;if(1===f.cmp(n.nh)||u.isZero()||f.isZero())return 3;var c=a(r);if(null===c)return 2;var h=c.getPublic();return n.verify(e,s,h)?0:3},ecdsaRecover:function(t,e,r,a){var u,f={r:e.slice(0,32),s:e.slice(32,64)},c=new o(f.r),h=new o(f.s);if(c.cmp(i.n)>=0||h.cmp(i.n)>=0)return 1;if(c.isZero()||h.isZero())return 2;try{u=n.recoverPubKey(a,f,r)}catch(t){return 2}return s(t,u),0},ecdh:function(t,e,r,s,u,f,c){var h=a(e);if(null===h)return 1;var l=new o(r);if(l.cmp(i.n)>=0||l.isZero())return 2;var d=h.getPublic().mul(l);if(void 0===u)for(var p=d.encode(null,!0),m=n.hash().update(p).digest(),b=0;b<32;++b)t[b]=m[b];else{f||(f=new Uint8Array(32));for(var v=d.getX().toArray("be",32),y=0;y<32;++y)f[y]=v[y];c||(c=new Uint8Array(32));for(var g=d.getY().toArray("be",32),w=0;w<32;++w)c[w]=g[w];var _=u(f,c,s);if(!(_ instanceof Uint8Array&&_.length===t.length))return 2;t.set(_)}return 0}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(22);e.getRandomBytes=function(t){return new Promise((function(e,r){n(t,(function(t,n){t?r(t):e(n)}))}))},e.getRandomBytesSync=function(t){return n(t)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(439),i=r(440);e.keccak224=n.createHashFunction((function(){return i("keccak224")})),e.keccak256=n.createHashFunction((function(){return i("keccak256")})),e.keccak384=n.createHashFunction((function(){return i("keccak384")})),e.keccak512=n.createHashFunction((function(){return i("keccak512")}))},function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.createHashFunction=function(e){return function(r){var n=e();return n.update(r),t.from(n.digest())}}}).call(this,r(1).Buffer)},function(t,e,r){"use strict";t.exports=r(441)(r(444))},function(t,e,r){"use strict";var n=r(442),i=r(443);t.exports=function(t){var e=n(t),r=i(t);return function(t,n){switch("string"==typeof t?t.toLowerCase():t){case"keccak224":return new e(1152,448,null,224,n);case"keccak256":return new e(1088,512,null,256,n);case"keccak384":return new e(832,768,null,384,n);case"keccak512":return new e(576,1024,null,512,n);case"sha3-224":return new e(1152,448,6,224,n);case"sha3-256":return new e(1088,512,6,256,n);case"sha3-384":return new e(832,768,6,384,n);case"sha3-512":return new e(576,1024,6,512,n);case"shake128":return new r(1344,256,31,n);case"shake256":return new r(1088,512,31,n);default:throw new Error("Invald algorithm: "+t)}}}},function(t,e,r){"use strict";(function(e){var n=r(0),i=n(r(5)),o=n(r(9)),a=n(r(14)),s=n(r(15)),u=n(r(13));function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,u.default)(t);if(e){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var c=r(87).Transform;t.exports=function(t){return function(r){(0,a.default)(s,r);var n=f(s);function s(e,r,o,a,u){var f;return(0,i.default)(this,s),(f=n.call(this,u))._rate=e,f._capacity=r,f._delimitedSuffix=o,f._hashBitLength=a,f._options=u,f._state=new t,f._state.initialize(e,r),f._finalized=!1,f}return(0,o.default)(s,[{key:"_transform",value:function(t,e,r){var n=null;try{this.update(t,e)}catch(t){n=t}r(n)}},{key:"_flush",value:function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)}},{key:"update",value:function(t,r){if(!e.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return e.isBuffer(t)||(t=e.from(t,r)),this._state.absorb(t),this}},{key:"digest",value:function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);var e=this._state.squeeze(this._hashBitLength/8);return void 0!==t&&(e=e.toString(t)),this._resetState(),e}},{key:"_resetState",value:function(){return this._state.initialize(this._rate,this._capacity),this}},{key:"_clone",value:function(){var t=new s(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}]),s}(c)}}).call(this,r(1).Buffer)},function(t,e,r){"use strict";(function(e){var n=r(0),i=n(r(5)),o=n(r(9)),a=n(r(14)),s=n(r(15)),u=n(r(13));function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,u.default)(t);if(e){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var c=r(87).Transform;t.exports=function(t){return function(r){(0,a.default)(s,r);var n=f(s);function s(e,r,o,a){var u;return(0,i.default)(this,s),(u=n.call(this,a))._rate=e,u._capacity=r,u._delimitedSuffix=o,u._options=a,u._state=new t,u._state.initialize(e,r),u._finalized=!1,u}return(0,o.default)(s,[{key:"_transform",value:function(t,e,r){var n=null;try{this.update(t,e)}catch(t){n=t}r(n)}},{key:"_flush",value:function(){}},{key:"_read",value:function(t){this.push(this.squeeze(t))}},{key:"update",value:function(t,r){if(!e.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return e.isBuffer(t)||(t=e.from(t,r)),this._state.absorb(t),this}},{key:"squeeze",value:function(t,e){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));var r=this._state.squeeze(t);return void 0!==e&&(r=r.toString(e)),r}},{key:"_resetState",value:function(){return this._state.initialize(this._rate,this._capacity),this}},{key:"_clone",value:function(){var t=new s(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}]),s}(c)}}).call(this,r(1).Buffer)},function(t,e,r){"use strict";(function(e){var n=r(445);function i(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}i.prototype.initialize=function(t,e){for(var r=0;r<50;++r)this.state[r]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1},i.prototype.absorb=function(t){for(var e=0;e>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0);return r},i.prototype.copy=function(t){for(var e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing},t.exports=i}).call(this,r(1).Buffer)},function(t,e,r){"use strict";var n=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];e.p1600=function(t){for(var e=0;e<24;++e){var r=t[0]^t[10]^t[20]^t[30]^t[40],i=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],f=t[6]^t[16]^t[26]^t[36]^t[46],c=t[7]^t[17]^t[27]^t[37]^t[47],h=t[8]^t[18]^t[28]^t[38]^t[48],l=t[9]^t[19]^t[29]^t[39]^t[49],d=h^(o<<1|a>>>31),p=l^(a<<1|o>>>31),m=t[0]^d,b=t[1]^p,v=t[10]^d,y=t[11]^p,g=t[20]^d,w=t[21]^p,_=t[30]^d,k=t[31]^p,M=t[40]^d,S=t[41]^p;d=r^(s<<1|u>>>31),p=i^(u<<1|s>>>31);var A=t[2]^d,x=t[3]^p,E=t[12]^d,O=t[13]^p,P=t[22]^d,B=t[23]^p,T=t[32]^d,R=t[33]^p,I=t[42]^d,C=t[43]^p;d=o^(f<<1|c>>>31),p=a^(c<<1|f>>>31);var U=t[4]^d,j=t[5]^p,N=t[14]^d,L=t[15]^p,F=t[24]^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0]=ht^~Mt&Ut,t[1]=lt^~St&jt,t[10]=qt^~Qt&mt,t[11]=Ht^~te&bt,t[20]=_t^~It&Gt,t[21]=kt^~Ct&Vt,t[30]=Yt^~dt&At,t[31]=$t^~pt&xt,t[40]=Tt^~zt&ee,t[41]=Rt^~Kt&re,t[2]=Mt^~Ut&Wt,t[3]=St^~jt&Zt,t[12]=Qt^~mt&Et,t[13]=te^~bt&Ot,t[22]=It^~Gt&ne,t[23]=Ct^~Vt&ie,t[32]=dt^~At&Nt,t[33]=pt^~xt&Lt,t[42]=zt^~ee&vt,t[43]=Kt^~re&yt,t[4]=Ut^~Wt&oe,t[5]=jt^~Zt&ae,t[14]=mt^~Et&Ft,t[15]=bt^~Ot&Dt,t[24]=Gt^~ne>,t[25]=Vt^~ie&wt,t[34]=At^~Nt&Jt,t[35]=xt^~Lt&Xt,t[44]=ee^~vt&Pt,t[45]=re^~yt&Bt,t[6]=Wt^~oe&ht,t[7]=Zt^~ae<,t[16]=Et^~Ft&qt,t[17]=Ot^~Dt&Ht,t[26]=ne^~gt&_t,t[27]=ie^~wt&kt,t[36]=Nt^~Jt&Yt,t[37]=Lt^~Xt&$t,t[46]=vt^~Pt&Tt,t[47]=yt^~Bt&Rt,t[8]=oe^~ht&Mt,t[9]=ae^~lt&St,t[18]=Ft^~qt&Qt,t[19]=Dt^~Ht&te,t[28]=gt^~_t&It,t[29]=wt^~kt&Ct,t[38]=Jt^~Yt&dt,t[39]=Xt^~$t&pt,t[48]=Pt^~Tt&zt,t[49]=Bt^~Rt&Kt,t[0]^=n[2*e],t[1]^=n[2*e+1]}}},function(t,e,r){"use strict";(function(t){var n=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Address=void 0;var i=n(r(100)),o=n(r(34)),a=r(35),s=r(199),u=function(){function e(t){i.default(20===t.length,"Invalid address length"),this.buf=t}return e.zero=function(){return new e(a.zeros(20))},e.fromString=function(t){return i.default(s.isValidAddress(t),"Invalid address"),new e(a.toBuffer(t))},e.fromPublicKey=function(r){return i.default(t.isBuffer(r),"Public key should be Buffer"),new e(s.pubToAddress(r))},e.fromPrivateKey=function(r){return i.default(t.isBuffer(r),"Private key should be Buffer"),new e(s.privateToAddress(r))},e.generate=function(r,n){return i.default(o.default.isBN(n)),new e(s.generateAddress(r.buf,n.toArrayLike(t)))},e.generate2=function(r,n,o){return i.default(t.isBuffer(n)),i.default(t.isBuffer(o)),new e(s.generateAddress2(r.buf,n,o))},e.prototype.equals=function(t){return this.buf.equals(t.buf)},e.prototype.isZero=function(){return this.equals(e.zero())},e.prototype.isPrecompileOrSystemAddress=function(){var t=new o.default(this.buf),e=new o.default(0),r=new o.default("ffff","hex");return t.gte(e)&&t.lte(r)},e.prototype.toString=function(){return"0x"+this.buf.toString("hex")},e.prototype.toBuffer=function(){return t.from(this.buf)},e}();e.Address=u}).call(this,r(1).Buffer)},function(t,e,r){"use strict";(function(t){var n=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.hashPersonalMessage=e.isValidSignature=e.fromRpcSig=e.toCompactSig=e.toRpcSig=e.ecrecover=e.ecsign=void 0;var i=r(200),o=n(r(34)),a=r(35),s=r(102),u=r(70),f=r(103);function c(t,e){var r=f.toType(t,f.TypeOutput.BN);if(!e)return r.subn(27);var n=f.toType(e,f.TypeOutput.BN);return r.sub(n.muln(2).addn(35))}function h(t){var e=new o.default(t);return e.eqn(0)||e.eqn(1)}e.ecsign=function(e,r,n){var o=i.ecdsaSign(e,r),a=o.signature,s=o.recid,u=t.from(a.slice(0,32)),c=t.from(a.slice(32,64));if(!n||"number"==typeof n){if(n&&!Number.isSafeInteger(n))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");return{r:u,s:c,v:n?s+(2*n+35):s+27}}return{r:u,s:c,v:f.toType(n,f.TypeOutput.BN).muln(2).addn(35).addn(s).toArrayLike(t)}},e.ecrecover=function(e,r,n,o,s){var u=t.concat([a.setLengthLeft(n,32),a.setLengthLeft(o,32)],64),f=c(r,s);if(!h(f))throw new Error("Invalid signature v value");var l=i.ecdsaRecover(u,f.toNumber(),e);return t.from(i.publicKeyConvert(l,!1).slice(1))},e.toRpcSig=function(e,r,n,i){if(!h(c(e,i)))throw new Error("Invalid signature v value");return a.bufferToHex(t.concat([a.setLengthLeft(r,32),a.setLengthLeft(n,32),a.toBuffer(e)]))},e.toCompactSig=function(e,r,n,i){if(!h(c(e,i)))throw new Error("Invalid signature v value");var o=f.toType(e,f.TypeOutput.Number),s=n;return(o>28&&o%2==1||1===o||28===o)&&((s=t.from(n))[0]|=128),a.bufferToHex(t.concat([a.setLengthLeft(r,32),a.setLengthLeft(s,32)]))},e.fromRpcSig=function(t){var e,r,n,i=a.toBuffer(t);if(i.length>=65)e=i.slice(0,32),r=i.slice(32,64),n=a.bufferToInt(i.slice(64));else{if(64!==i.length)throw new Error("Invalid signature length");e=i.slice(0,32),r=i.slice(32,64),n=a.bufferToInt(i.slice(32,33))>>7,r[0]&=127}return n<27&&(n+=27),{v:n,r:e,s:r}},e.isValidSignature=function(t,e,r,n,i){void 0===n&&(n=!0);var a=new o.default("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),s=new o.default("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==e.length||32!==r.length)return!1;if(!h(c(t,i)))return!1;var u=new o.default(e),f=new o.default(r);return!(u.isZero()||u.gt(s)||f.isZero()||f.gt(s))&&(!n||1!==f.cmp(a))},e.hashPersonalMessage=function(e){u.assertIsBuffer(e);var r=t.from("Ethereum Signed Message:\n"+e.length.toString(),"utf-8");return s.keccak(t.concat([r,e]))}}).call(this,r(1).Buffer)},function(t,e,r){"use strict";(function(t){var n=r(0)(r(2)),i=Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]},o=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e},a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.hasOwnProperty.call(t,r)&&i(e,t,r);return o(e,t),e},s=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.defineProperties=void 0;var u=s(r(100)),f=a(r(42)),c=a(r(69)),h=r(35);e.defineProperties=function(e,r,i){if(e.raw=[],e._fields=[],e.toJSON=function(t){if(void 0===t&&(t=!1),t){var r={};return e._fields.forEach((function(t){r[t]="0x"+e[t].toString("hex")})),r}return h.baToJSON(e.raw)},e.serialize=function(){return c.encode(e.raw)},r.forEach((function(r,n){function i(){return e.raw[n]}function o(i){"00"!==(i=h.toBuffer(i)).toString("hex")||r.allowZero||(i=t.allocUnsafe(0)),r.allowLess&&r.length?(i=h.unpadBuffer(i),u.default(r.length>=i.length,"The field "+r.name+" must not have more "+r.length+" bytes")):r.allowZero&&0===i.length||!r.length||u.default(r.length===i.length,"The field "+r.name+" must have byte length of "+r.length),e.raw[n]=i}e._fields.push(r.name),Object.defineProperty(e,r.name,{enumerable:!0,configurable:!0,get:i,set:o}),r.default&&(e[r.name]=r.default),r.alias&&Object.defineProperty(e,r.alias,{enumerable:!1,configurable:!0,set:o,get:i})})),i)if("string"==typeof i&&(i=t.from(f.stripHexPrefix(i),"hex")),t.isBuffer(i)&&(i=c.decode(i)),Array.isArray(i)){if(i.length>e._fields.length)throw new Error("wrong number of fields in data");i.forEach((function(t,r){e[e._fields[r]]=h.toBuffer(t)}))}else{if("object"!==(0,n.default)(i))throw new Error("invalid data");var o=Object.keys(i);r.forEach((function(t){-1!==o.indexOf(t.name)&&(e[t.name]=i[t.name]),-1!==o.indexOf(t.alias)&&(e[t.alias]=i[t.alias])}))}}}).call(this,r(1).Buffer)},function(t,e,r){"use strict";var n=Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]},i=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e},o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},a=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.rlp=e.BN=void 0;var s=a(r(34));e.BN=s.default;var u=o(r(69));e.rlp=u},function(t,e,r){"use strict";(function(t){var n,i,o=r(0)(r(2));i=function(t){t.version="1.2.0";var e=function(){for(var t=0,e=new Array(256),r=0;256!=r;++r)t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=r)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1,e[r]=t;return"undefined"!=typeof Int32Array?new Int32Array(e):e}();t.table=e,t.bstr=function(t,r){for(var n=-1^r,i=t.length-1,o=0;o>>8^e[255&(n^t.charCodeAt(o++))])>>>8^e[255&(n^t.charCodeAt(o++))];return o===i&&(n=n>>>8^e[255&(n^t.charCodeAt(o))]),-1^n},t.buf=function(t,r){if(t.length>1e4)return function(t,r){for(var n=-1^r,i=t.length-7,o=0;o>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])];for(;o>>8^e[255&(n^t[o++])];return-1^n}(t,r);for(var n=-1^r,i=t.length-3,o=0;o>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])])>>>8^e[255&(n^t[o++])];for(;o>>8^e[255&(n^t[o++])];return-1^n},t.str=function(t,r){for(var n,i,o=-1^r,a=0,s=t.length;a>>8^e[255&(o^n)]:n<2048?o=(o=o>>>8^e[255&(o^(192|n>>6&31))])>>>8^e[255&(o^(128|63&n))]:n>=55296&&n<57344?(n=64+(1023&n),i=1023&t.charCodeAt(a++),o=(o=(o=(o=o>>>8^e[255&(o^(240|n>>8&7))])>>>8^e[255&(o^(128|n>>2&63))])>>>8^e[255&(o^(128|i>>6&15|(3&n)<<4))])>>>8^e[255&(o^(128|63&i))]):o=(o=(o=o>>>8^e[255&(o^(224|n>>12&15))])>>>8^e[255&(o^(128|n>>6&63))])>>>8^e[255&(o^(128|63&n))];return-1^o}},"undefined"==typeof DO_NOT_EXPORT_CRC?"object"===(0,o.default)(e)?i(e):void 0===(n=function(){var t={};return i(t),t}.call(e,r,e,t))||(t.exports=n):i({})}).call(this,r(17)(t))},function(t,e,r){"use strict";var n=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.chains=e._getInitializedChains=void 0;var o=i(r(452)),a=i(r(453)),s=i(r(454)),u=i(r(455)),f=i(r(456)),c=i(r(457));function h(t){var e,r,i={1:"mainnet",3:"ropsten",4:"rinkeby",42:"kovan",5:"goerli",123:"calaveras"},h={mainnet:o.default,ropsten:a.default,rinkeby:s.default,kovan:u.default,goerli:f.default,calaveras:c.default};if(t)try{for(var l=n(t),d=l.next();!d.done;d=l.next()){var p=d.value,m=p.name;i[p.chainId.toString()]=m,h[m]=p}}catch(t){e={error:t}}finally{try{d&&!d.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}return h.names=i,h}e._getInitializedChains=h,e.chains=h()},function(t){t.exports=JSON.parse('{"name":"mainnet","chainId":1,"networkId":1,"defaultHardfork":"istanbul","consensus":{"type":"pow","algorithm":"ethash","ethash":{}},"comment":"The Ethereum main chain","url":"https://ethstats.net/","genesis":{"hash":"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3","timestamp":null,"gasLimit":5000,"difficulty":17179869184,"nonce":"0x0000000000000042","extraData":"0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa","stateRoot":"0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709da30580f0544"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0xfc64ec04"},{"name":"homestead","block":1150000,"forkHash":"0x97c2c34c"},{"name":"dao","block":1920000,"forkHash":"0x91d1f948"},{"name":"tangerineWhistle","block":2463000,"forkHash":"0x7a64da13"},{"name":"spuriousDragon","block":2675000,"forkHash":"0x3edd5b10"},{"name":"byzantium","block":4370000,"forkHash":"0xa00bc324"},{"name":"constantinople","block":7280000,"forkHash":"0x668db0af"},{"name":"petersburg","block":7280000,"forkHash":"0x668db0af"},{"name":"istanbul","block":9069000,"forkHash":"0x879d6e30"},{"name":"muirGlacier","block":9200000,"forkHash":"0xe029e991"},{"name":"berlin","block":12244000,"forkHash":"0x0eb440f6"},{"name":"london","block":12965000,"forkHash":"0xb715077d"}],"bootstrapNodes":[{"ip":"18.138.108.67","port":30303,"id":"d860a01f9722d78051619d1e2351aba3f43f943f6f00718d1b9baa4101932a1f5011f16bb2b1bb35db20d6fe28fa0bf09636d26a87d31de9ec6203eeedb1f666","location":"ap-southeast-1-001","comment":"bootnode-aws-ap-southeast-1-001"},{"ip":"3.209.45.79","port":30303,"id":"22a8232c3abc76a16ae9d6c3b164f98775fe226f0917b0ca871128a74a8e9630b458460865bab457221f1d448dd9791d24c4e5d88786180ac185df813a68d4de","location":"us-east-1-001","comment":"bootnode-aws-us-east-1-001"},{"ip":"34.255.23.113","port":30303,"id":"ca6de62fce278f96aea6ec5a2daadb877e51651247cb96ee310a318def462913b653963c155a0ef6c7d50048bba6e6cea881130857413d9f50a621546b590758","location":"eu-west-1-001","comment":"bootnode-aws-eu-west-1-001"},{"ip":"35.158.244.151","port":30303,"id":"279944d8dcd428dffaa7436f25ca0ca43ae19e7bcf94a8fb7d1641651f92d121e972ac2e8f381414b80cc8e5555811c2ec6e1a99bb009b3f53c4c69923e11bd8","location":"eu-central-1-001","comment":"bootnode-aws-eu-central-1-001"},{"ip":"52.187.207.27","port":30303,"id":"8499da03c47d637b20eee24eec3c356c9a2e6148d6fe25ca195c7949ab8ec2c03e3556126b0d7ed644675e78c4318b08691b7b57de10e5f0d40d05b09238fa0a","location":"australiaeast-001","comment":"bootnode-azure-australiaeast-001"},{"ip":"191.234.162.198","port":30303,"id":"103858bdb88756c71f15e9b5e09b56dc1be52f0a5021d46301dbbfb7e130029cc9d0d6f73f693bc29b665770fff7da4d34f3c6379fe12721b5d7a0bcb5ca1fc1","location":"brazilsouth-001","comment":"bootnode-azure-brazilsouth-001"},{"ip":"52.231.165.108","port":30303,"id":"715171f50508aba88aecd1250af392a45a330af91d7b90701c436b618c86aaa1589c9184561907bebbb56439b8f8787bc01f49a7c77276c58c1b09822d75e8e8","location":"koreasouth-001","comment":"bootnode-azure-koreasouth-001"},{"ip":"104.42.217.25","port":30303,"id":"5d6d7cd20d6da4bb83a1d28cadb5d409b64edf314c0335df658c1a54e32c7c4a7ab7823d57c39b6a757556e68ff1df17c748b698544a55cb488b52479a92b60f","location":"westus-001","comment":"bootnode-azure-westus-001"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.mainnet.ethdisco.net"]}')},function(t){t.exports=JSON.parse('{"name":"ropsten","chainId":3,"networkId":3,"defaultHardfork":"istanbul","consensus":{"type":"pow","algorithm":"ethash","ethash":{}},"comment":"PoW test network","url":"https://github.com/ethereum/ropsten","genesis":{"hash":"0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d","timestamp":null,"gasLimit":16777216,"difficulty":1048576,"nonce":"0x0000000000000042","extraData":"0x3535353535353535353535353535353535353535353535353535353535353535","stateRoot":"0x217b0bbcfb72e2d57e28f33cb361b9983513177755dc3f33ce3e7022ed62b77b"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0x30c7ddbc"},{"name":"homestead","block":0,"forkHash":"0x30c7ddbc"},{"name":"dao","block":null,"forkHash":null},{"name":"tangerineWhistle","block":0,"forkHash":"0x30c7ddbc"},{"name":"spuriousDragon","block":10,"forkHash":"0x63760190"},{"name":"byzantium","block":1700000,"forkHash":"0x3ea159c7"},{"name":"constantinople","block":4230000,"forkHash":"0x97b544f3"},{"name":"petersburg","block":4939394,"forkHash":"0xd6e2149b"},{"name":"istanbul","block":6485846,"forkHash":"0x4bc66396"},{"name":"muirGlacier","block":7117117,"forkHash":"0x6727ef90"},{"name":"berlin","block":9812189,"forkHash":"0xa157d377"},{"name":"london","block":10499401,"forkHash":"0x7119b6b3"}],"bootstrapNodes":[{"ip":"52.176.7.10","port":30303,"id":"30b7ab30a01c124a6cceca36863ece12c4f5fa68e3ba9b0b51407ccc002eeed3b3102d20a88f1c1d3c3154e2449317b8ef95090e77b312d5cc39354f86d5d606","location":"","comment":"US-Azure geth"},{"ip":"52.176.100.77","port":30303,"id":"865a63255b3bb68023b6bffd5095118fcc13e79dcf014fe4e47e065c350c7cc72af2e53eff895f11ba1bbb6a2b33271c1116ee870f266618eadfc2e78aa7349c","location":"","comment":"US-Azure parity"},{"ip":"52.232.243.152","port":30303,"id":"6332792c4a00e3e4ee0926ed89e0d27ef985424d97b6a45bf0f23e51f0dcb5e66b875777506458aea7af6f9e4ffb69f43f3778ee73c81ed9d34c51c4b16b0b0f","location":"","comment":"Parity"},{"ip":"192.81.208.223","port":30303,"id":"94c15d1b9e2fe7ce56e458b9a3b672ef11894ddedd0c6f247e0f1d3487f52b66208fb4aeb8179fce6e3a749ea93ed147c37976d67af557508d199d9594c35f09","location":"","comment":"@gpip"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.ropsten.ethdisco.net"]}')},function(t){t.exports=JSON.parse('{"name":"rinkeby","chainId":4,"networkId":4,"defaultHardfork":"istanbul","consensus":{"type":"poa","algorithm":"clique","clique":{"period":15,"epoch":30000}},"comment":"PoA test network","url":"https://www.rinkeby.io","genesis":{"hash":"0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177","timestamp":"0x58ee40ba","gasLimit":4700000,"difficulty":1,"nonce":"0x0000000000000000","extraData":"0x52657370656374206d7920617574686f7269746168207e452e436172746d616e42eb768f2244c8811c63729a21a3569731535f067ffc57839b00206d1ad20c69a1981b489f772031b279182d99e65703f0076e4812653aab85fca0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","stateRoot":"0x53580584816f617295ea26c0e17641e0120cab2f0a8ffb53a866fd53aa8e8c2d"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0x3b8e0691"},{"name":"homestead","block":1,"forkHash":"0x60949295"},{"name":"dao","block":null,"forkHash":null},{"name":"tangerineWhistle","block":2,"forkHash":"0x8bde40dd"},{"name":"spuriousDragon","block":3,"forkHash":"0xcb3a64bb"},{"name":"byzantium","block":1035301,"forkHash":"0x8d748b57"},{"name":"constantinople","block":3660663,"forkHash":"0xe49cab14"},{"name":"petersburg","block":4321234,"forkHash":"0xafec6b27"},{"name":"istanbul","block":5435345,"forkHash":"0xcbdb8838"},{"name":"berlin","block":8290928,"forkHash":"0x6910c8bd"},{"name":"london","block":8897988,"forkHash":"0x8e29f2f3"}],"bootstrapNodes":[{"ip":"52.169.42.101","port":30303,"id":"a24ac7c5484ef4ed0c5eb2d36620ba4e4aa13b8c84684e1b4aab0cebea2ae45cb4d375b77eab56516d34bfbd3c1a833fc51296ff084b770b94fb9028c4d25ccf","location":"","comment":"IE"},{"ip":"52.3.158.184","port":30303,"id":"343149e4feefa15d882d9fe4ac7d88f885bd05ebb735e547f12e12080a9fa07c8014ca6fd7f373123488102fe5e34111f8509cf0b7de3f5b44339c9f25e87cb8","location":"","comment":"INFURA"},{"ip":"159.89.28.211","port":30303,"id":"b6b28890b006743680c52e64e0d16db57f28124885595fa03a562be1d2bf0f3a1da297d56b13da25fb992888fd556d4c1a27b1f39d531bde7de1921c90061cc6","location":"","comment":"AKASHA"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.rinkeby.ethdisco.net"]}')},function(t){t.exports=JSON.parse('{"name":"kovan","chainId":42,"networkId":42,"defaultHardfork":"istanbul","consensus":{"type":"poa","algorithm":"aura","aura":{}},"comment":"Parity PoA test network","url":"https://kovan-testnet.github.io/website/","genesis":{"hash":"0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9","timestamp":null,"gasLimit":6000000,"difficulty":131072,"nonce":"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","extraData":"0x","stateRoot":"0x2480155b48a1cea17d67dbfdfaafe821c1d19cdd478c5358e8ec56dec24502b2"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0x010ffe56"},{"name":"homestead","block":0,"forkHash":"0x010ffe56"},{"name":"dao","block":null,"forkHash":"0x010ffe56"},{"name":"tangerineWhistle","block":0,"forkHash":"0x010ffe56"},{"name":"spuriousDragon","block":0,"forkHash":"0x010ffe56"},{"name":"byzantium","block":5067000,"forkHash":"0x7f83c620"},{"name":"constantinople","block":9200000,"forkHash":"0xa94e3dc4"},{"name":"petersburg","block":10255201,"forkHash":"0x186874aa"},{"name":"istanbul","block":14111141,"forkHash":"0x7f6599a6"},{"name":"berlin","block":null,"forkHash":null},{"name":"london","block":null,"forkHash":null}],"bootstrapNodes":[{"ip":"116.203.116.241","port":30303,"id":"16898006ba2cd4fa8bf9a3dfe32684c178fa861df144bfc21fe800dc4838a03e342056951fa9fd533dcb0be1219e306106442ff2cf1f7e9f8faa5f2fc1a3aa45","location":"","comment":"1"},{"ip":"3.217.96.11","port":30303,"id":"2909846f78c37510cc0e306f185323b83bb2209e5ff4fdd279d93c60e3f365e3c6e62ad1d2133ff11f9fd6d23ad9c3dad73bb974d53a22f7d1ac5b7dea79d0b0","location":"","comment":"2"},{"ip":"108.61.170.124","port":30303,"id":"740e1c8ea64e71762c71a463a04e2046070a0c9394fcab5891d41301dc473c0cff00ebab5a9bc87fbcb610ab98ac18225ff897bc8b7b38def5975d5ceb0a7d7c","location":"","comment":"3"},{"ip":"157.230.31.163","port":30303,"id":"2909846f78c37510cc0e306f185323b83bb2209e5ff4fdd279d93c60e3f365e3c6e62ad1d2133ff11f9fd6d23ad9c3dad73bb974d53a22f7d1ac5b7dea79d0b0","location":"","comment":"4"}]}')},function(t){t.exports=JSON.parse('{"name":"goerli","chainId":5,"networkId":5,"defaultHardfork":"istanbul","consensus":{"type":"poa","algorithm":"clique","clique":{"period":15,"epoch":30000}},"comment":"Cross-client PoA test network","url":"https://github.com/goerli/testnet","genesis":{"hash":"0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a","timestamp":"0x5c51a607","gasLimit":10485760,"difficulty":1,"nonce":"0x0000000000000000","extraData":"0x22466c6578692069732061207468696e6722202d204166726900000000000000e0a2bd4258d2768837baa26a28fe71dc079f84c70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","stateRoot":"0x5d6cded585e73c4e322c30c2f782a336316f17dd85a4863b9d838d2d4b8b3008"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0xa3f5ab08"},{"name":"homestead","block":0,"forkHash":"0xa3f5ab08"},{"name":"dao","block":null,"forkHash":"0xa3f5ab08"},{"name":"tangerineWhistle","block":0,"forkHash":"0xa3f5ab08"},{"name":"spuriousDragon","block":0,"forkHash":"0xa3f5ab08"},{"name":"byzantium","block":0,"forkHash":"0xa3f5ab08"},{"name":"constantinople","block":0,"forkHash":"0xa3f5ab08"},{"name":"petersburg","block":0,"forkHash":"0xa3f5ab08"},{"name":"istanbul","block":1561651,"forkHash":"0xc25efa5c"},{"name":"berlin","block":4460644,"forkHash":"0x757a1c47"},{"name":"london","block":5062605,"forkHash":"0xb8c6299d"}],"bootstrapNodes":[{"ip":"51.141.78.53","port":30303,"id":"011f758e6552d105183b1761c5e2dea0111bc20fd5f6422bc7f91e0fabbec9a6595caf6239b37feb773dddd3f87240d99d859431891e4a642cf2a0a9e6cbb98a","location":"","comment":"Upstream bootnode 1"},{"ip":"13.93.54.137","port":30303,"id":"176b9417f511d05b6b2cf3e34b756cf0a7096b3094572a8f6ef4cdcb9d1f9d00683bf0f83347eebdf3b81c3521c2332086d9592802230bf528eaf606a1d9677b","location":"","comment":"Upstream bootnode 2"},{"ip":"94.237.54.114","port":30313,"id":"46add44b9f13965f7b9875ac6b85f016f341012d84f975377573800a863526f4da19ae2c620ec73d11591fa9510e992ecc03ad0751f53cc02f7c7ed6d55c7291","location":"","comment":"Upstream bootnode 3"},{"ip":"18.218.250.66","port":30313,"id":"b5948a2d3e9d486c4d75bf32713221c2bd6cf86463302339299bd227dc2e276cd5a1c7ca4f43a0e9122fe9af884efed563bd2a1fd28661f3b5f5ad7bf1de5949","location":"","comment":"Upstream bootnode 4"},{"ip":"3.11.147.67","port":30303,"id":"a61215641fb8714a373c80edbfa0ea8878243193f57c96eeb44d0bc019ef295abd4e044fd619bfc4c59731a73fb79afe84e9ab6da0c743ceb479cbb6d263fa91","location":"","comment":"Ethereum Foundation bootnode"},{"ip":"51.15.116.226","port":30303,"id":"a869b02cec167211fb4815a82941db2e7ed2936fd90e78619c53eb17753fcf0207463e3419c264e2a1dd8786de0df7e68cf99571ab8aeb7c4e51367ef186b1dd","location":"","comment":"Goerli Initiative bootnode"},{"ip":"51.15.119.157","port":30303,"id":"807b37ee4816ecf407e9112224494b74dd5933625f655962d892f2f0f02d7fbbb3e2a94cf87a96609526f30c998fd71e93e2f53015c558ffc8b03eceaf30ee33","location":"","comment":"Goerli Initiative bootnode"},{"ip":"51.15.119.157","port":40303,"id":"a59e33ccd2b3e52d578f1fbd70c6f9babda2650f0760d6ff3b37742fdcdfdb3defba5d56d315b40c46b70198c7621e63ffa3f987389c7118634b0fefbbdfa7fd","location":"","comment":"Goerli Initiative bootnode"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.goerli.ethdisco.net"]}')},function(t){t.exports=JSON.parse('{"name":"calaveras","chainId":123,"networkId":123,"defaultHardfork":"berlin","consensus":{"type":"poa","algorithm":"clique","clique":{"period":30,"epoch":30000}},"comment":"The Calaveras testnet chain","url":"https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/client-integration-testnets/calaveras.md","genesis":{"hash":"0xeb9233d066c275efcdfed8037f4fc082770176aefdbcb7691c71da412a5670f2","gasLimit":"0x47b760","difficulty":"0x1","nonce":"0x0000000000000000","extraData":"0x00000000000000000000000000000000000000000000000000000000000000005211cea3870c7ba7c6c44b185e62eecdb864cd8c560228ce57d31efbf64c200b2c200aacec78cf17a7148e784fe95a7a750335f8b9572ee28d72e7650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","stateRoot":"0x664c93de37eb4a72953ea42b8c046cdb64c9f0b0bca5505ade8d970d49ebdb8c","timestamp":"0x60b3877f"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0xe34c4aff"},{"name":"homestead","block":0,"forkHash":"0xe34c4aff"},{"name":"dao","block":null,"forkHash":"0xe34c4aff"},{"name":"tangerineWhistle","block":0,"forkHash":"0xe34c4aff"},{"name":"spuriousDragon","block":0,"forkHash":"0xe34c4aff"},{"name":"byzantium","block":0,"forkHash":"0xe34c4aff"},{"name":"constantinople","block":0,"forkHash":"0xe34c4aff"},{"name":"petersburg","block":0,"forkHash":"0xe34c4aff"},{"name":"istanbul","block":0,"forkHash":"0xe34c4aff"},{"name":"berlin","block":0,"forkHash":"0xe34c4aff"},{"name":"london","block":500,"forkHash":"0x173783e4"}],"bootstrapNodes":[{"ip":"3.21.156.138","port":30303,"id":"39eb08bbfad87481553c471a63ff2a4b4885fffa4ff50f1cf46744d9ad6e2f764ede146fe4df563fa9ccda1a46b9b1a88fb08135e1bf1d71b320912499da773d","location":"","comment":"Calaveras bootnode 1"},{"ip":"3.9.20.133","port":30303,"id":"9e1096aa59862a6f164994cb5cb16f5124d6c992cdbf4535ff7dea43ea1512afe5448dca9df1b7ab0726129603f1a3336b631e4d7a1a44c94daddd03241587f9","location":"","comment":"Calaveras bootnode 2"}]}')},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hardforks=void 0,e.hardforks=[["chainstart",r(459)],["homestead",r(460)],["dao",r(461)],["tangerineWhistle",r(462)],["spuriousDragon",r(463)],["byzantium",r(464)],["constantinople",r(465)],["petersburg",r(466)],["istanbul",r(467)],["muirGlacier",r(468)],["berlin",r(469)],["london",r(470)]]},function(t){t.exports=JSON.parse('{"name":"chainstart","comment":"Start of the Ethereum main chain","url":"","status":"","gasConfig":{"minGasLimit":{"v":5000,"d":"Minimum the gas limit may ever be"},"gasLimitBoundDivisor":{"v":1024,"d":"The bound divisor of the gas limit, used in update calculations"},"maxRefundQuotient":{"v":2,"d":"Maximum refund quotient; max tx refund is min(tx.gasUsed/maxRefundQuotient, tx.gasRefund)"}},"gasPrices":{"base":{"v":2,"d":"Gas base cost, used e.g. for ChainID opcode (Istanbul)"},"tierStep":{"v":[0,2,3,5,8,10,20],"d":"Once per operation, for a selection of them"},"exp":{"v":10,"d":"Base fee of the EXP opcode"},"expByte":{"v":10,"d":"Times ceil(log256(exponent)) for the EXP instruction"},"sha3":{"v":30,"d":"Base fee of the SHA3 opcode"},"sha3Word":{"v":6,"d":"Once per word of the SHA3 operation\'s data"},"sload":{"v":50,"d":"Base fee of the SLOAD opcode"},"sstoreSet":{"v":20000,"d":"Once per SSTORE operation if the zeroness changes from zero"},"sstoreReset":{"v":5000,"d":"Once per SSTORE operation if the zeroness does not change from zero"},"sstoreRefund":{"v":15000,"d":"Once per SSTORE operation if the zeroness changes to zero"},"jumpdest":{"v":1,"d":"Base fee of the JUMPDEST opcode"},"log":{"v":375,"d":"Base fee of the LOG opcode"},"logData":{"v":8,"d":"Per byte in a LOG* operation\'s data"},"logTopic":{"v":375,"d":"Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas"},"create":{"v":32000,"d":"Base fee of the CREATE opcode"},"call":{"v":40,"d":"Base fee of the CALL opcode"},"callStipend":{"v":2300,"d":"Free gas given at beginning of call"},"callValueTransfer":{"v":9000,"d":"Paid for CALL when the value transfor is non-zero"},"callNewAccount":{"v":25000,"d":"Paid for CALL when the destination address didn\'t exist prior"},"selfdestructRefund":{"v":24000,"d":"Refunded following a selfdestruct operation"},"memory":{"v":3,"d":"Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL"},"quadCoeffDiv":{"v":512,"d":"Divisor for the quadratic particle of the memory cost equation"},"createData":{"v":200,"d":""},"tx":{"v":21000,"d":"Per transaction. NOTE: Not payable on data of calls between transactions"},"txCreation":{"v":32000,"d":"The cost of creating a contract via tx"},"txDataZero":{"v":4,"d":"Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions"},"txDataNonZero":{"v":68,"d":"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},"copy":{"v":3,"d":"Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added"},"ecRecover":{"v":3000,"d":""},"sha256":{"v":60,"d":""},"sha256Word":{"v":12,"d":""},"ripemd160":{"v":600,"d":""},"ripemd160Word":{"v":120,"d":""},"identity":{"v":15,"d":""},"identityWord":{"v":3,"d":""},"stop":{"v":0,"d":"Base fee of the STOP opcode"},"add":{"v":3,"d":"Base fee of the ADD opcode"},"mul":{"v":5,"d":"Base fee of the MUL opcode"},"sub":{"v":3,"d":"Base fee of the SUB opcode"},"div":{"v":5,"d":"Base fee of the DIV opcode"},"sdiv":{"v":5,"d":"Base fee of the SDIV opcode"},"mod":{"v":5,"d":"Base fee of the MOD opcode"},"smod":{"v":5,"d":"Base fee of the SMOD opcode"},"addmod":{"v":8,"d":"Base fee of the ADDMOD opcode"},"mulmod":{"v":8,"d":"Base fee of the MULMOD opcode"},"signextend":{"v":5,"d":"Base fee of the SIGNEXTEND opcode"},"lt":{"v":3,"d":"Base fee of the LT opcode"},"gt":{"v":3,"d":"Base fee of the GT opcode"},"slt":{"v":3,"d":"Base fee of the SLT opcode"},"sgt":{"v":3,"d":"Base fee of the SGT opcode"},"eq":{"v":3,"d":"Base fee of the EQ opcode"},"iszero":{"v":3,"d":"Base fee of the ISZERO opcode"},"and":{"v":3,"d":"Base fee of the AND opcode"},"or":{"v":3,"d":"Base fee of the OR opcode"},"xor":{"v":3,"d":"Base fee of the XOR opcode"},"not":{"v":3,"d":"Base fee of the NOT opcode"},"byte":{"v":3,"d":"Base fee of the BYTE opcode"},"address":{"v":2,"d":"Base fee of the ADDRESS opcode"},"balance":{"v":20,"d":"Base fee of the BALANCE opcode"},"origin":{"v":2,"d":"Base fee of the ORIGIN opcode"},"caller":{"v":2,"d":"Base fee of the CALLER opcode"},"callvalue":{"v":2,"d":"Base fee of the CALLVALUE opcode"},"calldataload":{"v":3,"d":"Base fee of the CALLDATALOAD opcode"},"calldatasize":{"v":2,"d":"Base fee of the CALLDATASIZE opcode"},"calldatacopy":{"v":3,"d":"Base fee of the CALLDATACOPY opcode"},"codesize":{"v":2,"d":"Base fee of the CODESIZE opcode"},"codecopy":{"v":3,"d":"Base fee of the CODECOPY opcode"},"gasprice":{"v":2,"d":"Base fee of the GASPRICE opcode"},"extcodesize":{"v":20,"d":"Base fee of the EXTCODESIZE opcode"},"extcodecopy":{"v":20,"d":"Base fee of the EXTCODECOPY opcode"},"blockhash":{"v":20,"d":"Base fee of the BLOCKHASH opcode"},"coinbase":{"v":2,"d":"Base fee of the COINBASE opcode"},"timestamp":{"v":2,"d":"Base fee of the TIMESTAMP opcode"},"number":{"v":2,"d":"Base fee of the NUMBER opcode"},"difficulty":{"v":2,"d":"Base fee of the DIFFICULTY opcode"},"gaslimit":{"v":2,"d":"Base fee of the GASLIMIT opcode"},"pop":{"v":2,"d":"Base fee of the POP opcode"},"mload":{"v":3,"d":"Base fee of the MLOAD opcode"},"mstore":{"v":3,"d":"Base fee of the MSTORE opcode"},"mstore8":{"v":3,"d":"Base fee of the MSTORE8 opcode"},"sstore":{"v":0,"d":"Base fee of the SSTORE opcode"},"jump":{"v":8,"d":"Base fee of the JUMP opcode"},"jumpi":{"v":10,"d":"Base fee of the JUMPI opcode"},"pc":{"v":2,"d":"Base fee of the PC opcode"},"msize":{"v":2,"d":"Base fee of the MSIZE opcode"},"gas":{"v":2,"d":"Base fee of the GAS opcode"},"push":{"v":3,"d":"Base fee of the PUSH opcode"},"dup":{"v":3,"d":"Base fee of the DUP opcode"},"swap":{"v":3,"d":"Base fee of the SWAP opcode"},"callcode":{"v":40,"d":"Base fee of the CALLCODE opcode"},"return":{"v":0,"d":"Base fee of the RETURN opcode"},"invalid":{"v":0,"d":"Base fee of the INVALID opcode"},"selfdestruct":{"v":0,"d":"Base fee of the SELFDESTRUCT opcode"}},"vm":{"stackLimit":{"v":1024,"d":"Maximum size of VM stack allowed"},"callCreateDepth":{"v":1024,"d":"Maximum depth of call/create stack"},"maxExtraDataSize":{"v":32,"d":"Maximum size extra data may be after Genesis"}},"pow":{"minimumDifficulty":{"v":131072,"d":"The minimum that the difficulty may ever be"},"difficultyBoundDivisor":{"v":2048,"d":"The bound divisor of the difficulty, used in the update calculations"},"durationLimit":{"v":13,"d":"The decision boundary on the blocktime duration used to determine whether difficulty should go up or not"},"epochDuration":{"v":30000,"d":"Duration between proof-of-work epochs"},"timebombPeriod":{"v":100000,"d":"Exponential difficulty timebomb period"},"minerReward":{"v":"5000000000000000000","d":"the amount a miner get rewarded for mining a block"},"difficultyBombDelay":{"v":0,"d":"the amount of blocks to delay the difficulty bomb with"}}}')},function(t){t.exports=JSON.parse('{"name":"homestead","comment":"Homestead hardfork with protocol and network changes","url":"https://eips.ethereum.org/EIPS/eip-606","status":"Final","gasConfig":{},"gasPrices":{"delegatecall":{"v":40,"d":"Base fee of the DELEGATECALL opcode"}},"vm":{},"pow":{}}')},function(t){t.exports=JSON.parse('{"name":"dao","comment":"DAO rescue hardfork","url":"https://eips.ethereum.org/EIPS/eip-779","status":"Final","gasConfig":{},"gasPrices":{},"vm":{},"pow":{}}')},function(t){t.exports=JSON.parse('{"name":"tangerineWhistle","comment":"Hardfork with gas cost changes for IO-heavy operations","url":"https://eips.ethereum.org/EIPS/eip-608","status":"Final","gasConfig":{},"gasPrices":{"sload":{"v":200,"d":"Once per SLOAD operation"},"call":{"v":700,"d":"Once per CALL operation & message call transaction"},"extcodesize":{"v":700,"d":"Base fee of the EXTCODESIZE opcode"},"extcodecopy":{"v":700,"d":"Base fee of the EXTCODECOPY opcode"},"balance":{"v":400,"d":"Base fee of the BALANCE opcode"},"delegatecall":{"v":700,"d":"Base fee of the DELEGATECALL opcode"},"callcode":{"v":700,"d":"Base fee of the CALLCODE opcode"},"selfdestruct":{"v":5000,"d":"Base fee of the SELFDESTRUCT opcode"}},"vm":{},"pow":{}}')},function(t){t.exports=JSON.parse('{"name":"spuriousDragon","comment":"HF with EIPs for simple replay attack protection, EXP cost increase, state trie clearing, contract code size limit","url":"https://eips.ethereum.org/EIPS/eip-607","status":"Final","gasConfig":{},"gasPrices":{"expByte":{"v":50,"d":"Times ceil(log256(exponent)) for the EXP instruction"}},"vm":{"maxCodeSize":{"v":24576,"d":"Maximum length of contract code"}},"pow":{}}')},function(t){t.exports=JSON.parse('{"name":"byzantium","comment":"Hardfork with new precompiles, instructions and other protocol changes","url":"https://eips.ethereum.org/EIPS/eip-609","status":"Final","gasConfig":{},"gasPrices":{"modexpGquaddivisor":{"v":20,"d":"Gquaddivisor from modexp precompile for gas calculation"},"ecAdd":{"v":500,"d":"Gas costs for curve addition precompile"},"ecMul":{"v":40000,"d":"Gas costs for curve multiplication precompile"},"ecPairing":{"v":100000,"d":"Base gas costs for curve pairing precompile"},"ecPairingWord":{"v":80000,"d":"Gas costs regarding curve pairing precompile input length"},"revert":{"v":0,"d":"Base fee of the REVERT opcode"},"staticcall":{"v":700,"d":"Base fee of the STATICCALL opcode"},"returndatasize":{"v":2,"d":"Base fee of the RETURNDATASIZE opcode"},"returndatacopy":{"v":3,"d":"Base fee of the RETURNDATACOPY opcode"}},"vm":{},"pow":{"minerReward":{"v":"3000000000000000000","d":"the amount a miner get rewarded for mining a block"},"difficultyBombDelay":{"v":3000000,"d":"the amount of blocks to delay the difficulty bomb with"}}}')},function(t){t.exports=JSON.parse('{"name":"constantinople","comment":"Postponed hardfork including EIP-1283 (SSTORE gas metering changes)","url":"https://eips.ethereum.org/EIPS/eip-1013","status":"Final","gasConfig":{},"gasPrices":{"netSstoreNoopGas":{"v":200,"d":"Once per SSTORE operation if the value doesn\'t change"},"netSstoreInitGas":{"v":20000,"d":"Once per SSTORE operation from clean zero"},"netSstoreCleanGas":{"v":5000,"d":"Once per SSTORE operation from clean non-zero"},"netSstoreDirtyGas":{"v":200,"d":"Once per SSTORE operation from dirty"},"netSstoreClearRefund":{"v":15000,"d":"Once per SSTORE operation for clearing an originally existing storage slot"},"netSstoreResetRefund":{"v":4800,"d":"Once per SSTORE operation for resetting to the original non-zero value"},"netSstoreResetClearRefund":{"v":19800,"d":"Once per SSTORE operation for resetting to the original zero value"},"shl":{"v":3,"d":"Base fee of the SHL opcode"},"shr":{"v":3,"d":"Base fee of the SHR opcode"},"sar":{"v":3,"d":"Base fee of the SAR opcode"},"extcodehash":{"v":400,"d":"Base fee of the EXTCODEHASH opcode"},"create2":{"v":32000,"d":"Base fee of the CREATE2 opcode"}},"vm":{},"pow":{"minerReward":{"v":"2000000000000000000","d":"The amount a miner gets rewarded for mining a block"},"difficultyBombDelay":{"v":5000000,"d":"the amount of blocks to delay the difficulty bomb with"}}}')},function(t){t.exports=JSON.parse('{"name":"petersburg","comment":"Aka constantinopleFix, removes EIP-1283, activate together with or after constantinople","url":"https://eips.ethereum.org/EIPS/eip-1716","status":"Draft","gasConfig":{},"gasPrices":{"netSstoreNoopGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreInitGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreCleanGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreDirtyGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreClearRefund":{"v":null,"d":"Removed along EIP-1283"},"netSstoreResetRefund":{"v":null,"d":"Removed along EIP-1283"},"netSstoreResetClearRefund":{"v":null,"d":"Removed along EIP-1283"}},"vm":{},"pow":{}}')},function(t){t.exports=JSON.parse('{"name":"istanbul","comment":"HF targeted for December 2019 following the Constantinople/Petersburg HF","url":"https://eips.ethereum.org/EIPS/eip-1679","status":"Draft","gasConfig":{},"gasPrices":{"blake2Round":{"v":1,"d":"Gas cost per round for the Blake2 F precompile"},"ecAdd":{"v":150,"d":"Gas costs for curve addition precompile"},"ecMul":{"v":6000,"d":"Gas costs for curve multiplication precompile"},"ecPairing":{"v":45000,"d":"Base gas costs for curve pairing precompile"},"ecPairingWord":{"v":34000,"d":"Gas costs regarding curve pairing precompile input length"},"txDataNonZero":{"v":16,"d":"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},"sstoreSentryGasEIP2200":{"v":2300,"d":"Minimum gas required to be present for an SSTORE call, not consumed"},"sstoreNoopGasEIP2200":{"v":800,"d":"Once per SSTORE operation if the value doesn\'t change"},"sstoreDirtyGasEIP2200":{"v":800,"d":"Once per SSTORE operation if a dirty value is changed"},"sstoreInitGasEIP2200":{"v":20000,"d":"Once per SSTORE operation from clean zero to non-zero"},"sstoreInitRefundEIP2200":{"v":19200,"d":"Once per SSTORE operation for resetting to the original zero value"},"sstoreCleanGasEIP2200":{"v":5000,"d":"Once per SSTORE operation from clean non-zero to something else"},"sstoreCleanRefundEIP2200":{"v":4200,"d":"Once per SSTORE operation for resetting to the original non-zero value"},"sstoreClearRefundEIP2200":{"v":15000,"d":"Once per SSTORE operation for clearing an originally existing storage slot"},"balance":{"v":700,"d":"Base fee of the BALANCE opcode"},"extcodehash":{"v":700,"d":"Base fee of the EXTCODEHASH opcode"},"chainid":{"v":2,"d":"Base fee of the CHAINID opcode"},"selfbalance":{"v":5,"d":"Base fee of the SELFBALANCE opcode"},"sload":{"v":800,"d":"Base fee of the SLOAD opcode"}},"vm":{},"pow":{}}')},function(t){t.exports=JSON.parse('{"name":"muirGlacier","comment":"HF to delay the difficulty bomb","url":"https://eips.ethereum.org/EIPS/eip-2384","status":"Final","gasConfig":{},"gasPrices":{},"vm":{},"pow":{"difficultyBombDelay":{"v":9000000,"d":"the amount of blocks to delay the difficulty bomb with"}}}')},function(t){t.exports=JSON.parse('{"name":"berlin","comment":"HF targeted for July 2020 following the Muir Glacier HF","url":"https://eips.ethereum.org/EIPS/eip-2070","status":"Draft","eips":[2565,2929,2718,2930]}')},function(t){t.exports=JSON.parse('{"name":"london","comment":"HF targeted for July 2021 following the Berlin fork","url":"https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/mainnet-upgrades/london.md","status":"Draft","eips":[1559,3198,3529,3541]}')},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EIPs=void 0,e.EIPs={1559:r(472),2315:r(473),2537:r(474),2565:r(475),2718:r(476),2929:r(477),2930:r(478),3198:r(479),3529:r(480),3541:r(481),3554:r(482)}},function(t){t.exports=JSON.parse('{"name":"EIP-1559","number":1559,"comment":"Fee market change for ETH 1.0 chain","url":"https://eips.ethereum.org/EIPS/eip-1559","status":"Review","minimumHardfork":"berlin","requiredEIPs":[2930],"gasConfig":{"baseFeeMaxChangeDenominator":{"v":8,"d":"Maximum base fee change denominator"},"elasticityMultiplier":{"v":2,"d":"Maximum block gas target elasticity"},"initialBaseFee":{"v":1000000000,"d":"Initial base fee on first EIP1559 block"}},"gasPrices":{},"vm":{},"pow":{}}')},function(t){t.exports=JSON.parse('{"name":"EIP-2315","number":2315,"comment":"Simple subroutines for the EVM","url":"https://eips.ethereum.org/EIPS/eip-2315","status":"Draft","minimumHardfork":"istanbul","gasConfig":{},"gasPrices":{"beginsub":{"v":2,"d":"Base fee of the BEGINSUB opcode"},"returnsub":{"v":5,"d":"Base fee of the RETURNSUB opcode"},"jumpsub":{"v":10,"d":"Base fee of the JUMPSUB opcode"}},"vm":{},"pow":{}}')},function(t){t.exports=JSON.parse('{"name":"EIP-2537","number":2537,"comment":"BLS12-381 precompiles","url":"https://eips.ethereum.org/EIPS/eip-2537","status":"Draft","minimumHardfork":"chainstart","gasConfig":{},"gasPrices":{"Bls12381G1AddGas":{"v":600,"d":"Gas cost of a single BLS12-381 G1 addition precompile-call"},"Bls12381G1MulGas":{"v":12000,"d":"Gas cost of a single BLS12-381 G1 multiplication precompile-call"},"Bls12381G2AddGas":{"v":4500,"d":"Gas cost of a single BLS12-381 G2 addition precompile-call"},"Bls12381G2MulGas":{"v":55000,"d":"Gas cost of a single BLS12-381 G2 multiplication precompile-call"},"Bls12381PairingBaseGas":{"v":115000,"d":"Base gas cost of BLS12-381 pairing check"},"Bls12381PairingPerPairGas":{"v":23000,"d":"Per-pair gas cost of BLS12-381 pairing check"},"Bls12381MapG1Gas":{"v":5500,"d":"Gas cost of BLS12-381 map field element to G1"},"Bls12381MapG2Gas":{"v":110000,"d":"Gas cost of BLS12-381 map field element to G2"},"Bls12381MultiExpGasDiscount":{"v":[[1,1200],[2,888],[3,764],[4,641],[5,594],[6,547],[7,500],[8,453],[9,438],[10,423],[11,408],[12,394],[13,379],[14,364],[15,349],[16,334],[17,330],[18,326],[19,322],[20,318],[21,314],[22,310],[23,306],[24,302],[25,298],[26,294],[27,289],[28,285],[29,281],[30,277],[31,273],[32,269],[33,268],[34,266],[35,265],[36,263],[37,262],[38,260],[39,259],[40,257],[41,256],[42,254],[43,253],[44,251],[45,250],[46,248],[47,247],[48,245],[49,244],[50,242],[51,241],[52,239],[53,238],[54,236],[55,235],[56,233],[57,232],[58,231],[59,229],[60,228],[61,226],[62,225],[63,223],[64,222],[65,221],[66,220],[67,219],[68,219],[69,218],[70,217],[71,216],[72,216],[73,215],[74,214],[75,213],[76,213],[77,212],[78,211],[79,211],[80,210],[81,209],[82,208],[83,208],[84,207],[85,206],[86,205],[87,205],[88,204],[89,203],[90,202],[91,202],[92,201],[93,200],[94,199],[95,199],[96,198],[97,197],[98,196],[99,196],[100,195],[101,194],[102,193],[103,193],[104,192],[105,191],[106,191],[107,190],[108,189],[109,188],[110,188],[111,187],[112,186],[113,185],[114,185],[115,184],[116,183],[117,182],[118,182],[119,181],[120,180],[121,179],[122,179],[123,178],[124,177],[125,176],[126,176],[127,175],[128,174]],"d":"Discount gas costs of calls to the MultiExp precompiles with `k` (point, scalar) pair"}},"vm":{},"pow":{}}')},function(t){t.exports=JSON.parse('{"name":"EIP-2565","number":2565,"comment":"ModExp gas cost","url":"https://eips.ethereum.org/EIPS/eip-2565","status":"Last call","minimumHardfork":"byzantium","gasConfig":{},"gasPrices":{"modexpGquaddivisor":{"v":3,"d":"Gquaddivisor from modexp precompile for gas calculation"}},"vm":{},"pow":{}}')},function(t){t.exports=JSON.parse('{"name":"EIP-2718","comment":"Typed Transaction Envelope","url":"https://eips.ethereum.org/EIPS/eip-2718","status":"Draft","minimumHardfork":"chainstart","gasConfig":{},"gasPrices":{},"vm":{},"pow":{}}')},function(t){t.exports=JSON.parse('{"name":"EIP-2929","comment":"Gas cost increases for state access opcodes","url":"https://eips.ethereum.org/EIPS/eip-2929","status":"Draft","minimumHardfork":"chainstart","gasConfig":{},"gasPrices":{"coldsload":{"v":2100,"d":"Gas cost of the first read of storage from a given location (per transaction)"},"coldaccountaccess":{"v":2600,"d":"Gas cost of the first read of a given address (per transaction)"},"warmstorageread":{"v":100,"d":"Gas cost of reading storage locations which have already loaded \'cold\'"},"sstoreCleanGasEIP2200":{"v":2900,"d":"Once per SSTORE operation from clean non-zero to something else"},"sstoreNoopGasEIP2200":{"v":100,"d":"Once per SSTORE operation if the value doesn\'t change"},"sstoreDirtyGasEIP2200":{"v":100,"d":"Once per SSTORE operation if a dirty value is changed"},"sstoreInitRefundEIP2200":{"v":19900,"d":"Once per SSTORE operation for resetting to the original zero value"},"sstoreCleanRefundEIP2200":{"v":4900,"d":"Once per SSTORE operation for resetting to the original non-zero value"},"call":{"v":0,"d":"Base fee of the CALL opcode"},"callcode":{"v":0,"d":"Base fee of the CALLCODE opcode"},"delegatecall":{"v":0,"d":"Base fee of the DELEGATECALL opcode"},"staticcall":{"v":0,"d":"Base fee of the STATICCALL opcode"},"balance":{"v":0,"d":"Base fee of the BALANCE opcode"},"extcodesize":{"v":0,"d":"Base fee of the EXTCODESIZE opcode"},"extcodecopy":{"v":0,"d":"Base fee of the EXTCODECOPY opcode"},"extcodehash":{"v":0,"d":"Base fee of the EXTCODEHASH opcode"},"sload":{"v":0,"d":"Base fee of the SLOAD opcode"},"sstore":{"v":0,"d":"Base fee of the SSTORE opcode"}},"vm":{},"pow":{}}')},function(t){t.exports=JSON.parse('{"name":"EIP-2930","comment":"Optional access lists","url":"https://eips.ethereum.org/EIPS/eip-2930","status":"Draft","minimumHardfork":"istanbul","requiredEIPs":[2718,2929],"gasConfig":{},"gasPrices":{"accessListStorageKeyCost":{"v":1900,"d":"Gas cost per storage key in an Access List transaction"},"accessListAddressCost":{"v":2400,"d":"Gas cost per storage key in an Access List transaction"}},"vm":{},"pow":{}}')},function(t){t.exports=JSON.parse('{"name":"EIP-3198","number":3198,"comment":"BASEFEE opcode","url":"https://eips.ethereum.org/EIPS/eip-3198","status":"Review","minimumHardfork":"london","gasConfig":{},"gasPrices":{"basefee":{"v":2,"d":"Gas cost of the BASEFEE opcode"}},"vm":{},"pow":{}}')},function(t){t.exports=JSON.parse('{"name":"EIP-3529","comment":"Reduction in refunds","url":"https://eips.ethereum.org/EIPS/eip-3529","status":"Draft","minimumHardfork":"berlin","requiredEIPs":[2929],"gasConfig":{"maxRefundQuotient":{"v":5,"d":"Maximum refund quotient; max tx refund is min(tx.gasUsed/maxRefundQuotient, tx.gasRefund)"}},"gasPrices":{"selfdestructRefund":{"v":0,"d":"Refunded following a selfdestruct operation"},"sstoreClearRefundEIP2200":{"v":4800,"d":"Once per SSTORE operation for clearing an originally existing storage slot"}},"vm":{},"pow":{}}')},function(t){t.exports=JSON.parse('{"name":"EIP-3541","comment":"Reject new contracts starting with the 0xEF byte","url":"https://eips.ethereum.org/EIPS/eip-3541","status":"Draft","minimumHardfork":"berlin","requiredEIPs":[],"gasConfig":{},"gasPrices":{},"vm":{},"pow":{}}')},function(t){t.exports=JSON.parse('{"name":"EIP-3554","comment":"Reduction in refunds","url":"Difficulty Bomb Delay to December 1st 2021","status":"Draft","minimumHardfork":"muirGlacier","requiredEIPs":[],"gasConfig":{},"gasPrices":{},"vm":{},"pow":{"difficultyBombDelay":{"v":9500000,"d":"the amount of blocks to delay the difficulty bomb with"}}}')},function(t,e,r){"use strict";(function(t){var n,i=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=function(){return(o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0});var s=r(26),u=r(104),f=r(43),c=r(202),h=t.from(1..toString(16).padStart(2,"0"),"hex"),l=function(e){function r(t,r){var n,i;void 0===r&&(r={});var a=e.call(this,o(o({},t),{type:1}))||this;a.DEFAULT_HARDFORK="berlin";var u=t.chainId,h=t.accessList,l=t.gasPrice;if(a.common=a._getCommon(r.common,u),a.chainId=a.common.chainIdBN(),!a.common.isActivatedEIP(2930))throw new Error("EIP-2930 not enabled on Common");a.activeCapabilities=a.activeCapabilities.concat([2718,2930]);var d=c.AccessLists.getAccessListData(null!=h?h:[]);if(a.accessList=d.accessList,a.AccessListJSON=d.AccessListJSON,c.AccessLists.verifyAccessList(a.accessList),a.gasPrice=new s.BN(s.toBuffer(""===l?"0x":l)),a._validateCannotExceedMaxInteger({gasPrice:a.gasPrice}),a.v&&!a.v.eqn(0)&&!a.v.eqn(1))throw new Error("The y-parity of the transaction should either be 0 or 1");if(a.common.gteHardfork("homestead")&&(null===(n=a.s)||void 0===n?void 0:n.gt(f.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");return(null===(i=null==r?void 0:r.freeze)||void 0===i||i)&&Object.freeze(a),a}return i(r,e),Object.defineProperty(r.prototype,"senderR",{get:function(){return this.r},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"senderS",{get:function(){return this.s},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"yParity",{get:function(){return this.v},enumerable:!1,configurable:!0}),r.fromTxData=function(t,e){return void 0===e&&(e={}),new r(t,e)},r.fromSerializedTx=function(t,e){if(void 0===e&&(e={}),!t.slice(0,1).equals(h))throw new Error("Invalid serialized tx input: not an EIP-2930 transaction (wrong tx type, expected: 1, received: "+t.slice(0,1).toString("hex"));var n=s.rlp.decode(t.slice(1));if(!Array.isArray(n))throw new Error("Invalid serialized tx input: must be array");return r.fromValuesArray(n,e)},r.fromRlpSerializedTx=function(t,e){return void 0===e&&(e={}),r.fromSerializedTx(t,e)},r.fromValuesArray=function(t,e){if(void 0===e&&(e={}),8!==t.length&&11!==t.length)throw new Error("Invalid EIP-2930 transaction. Only expecting 8 values (for unsigned tx) or 11 values (for signed tx).");var n=a(t,11),i=n[0],o=n[1],u=n[2],f=n[3],c=n[4],h=n[5],l=n[6],d=n[7],p=n[8],m=n[9],b=n[10];return new r({chainId:new s.BN(i),nonce:o,gasPrice:u,gasLimit:f,to:c,value:h,data:l,accessList:null!=d?d:[],v:void 0!==p?new s.BN(p):void 0,r:m,s:b},e)},r.prototype.getDataFee=function(){var t=e.prototype.getDataFee.call(this);return t.iaddn(c.AccessLists.getDataFeeEIP2930(this.accessList,this.common)),t},r.prototype.getUpfrontCost=function(){return this.gasLimit.mul(this.gasPrice).add(this.value)},r.prototype.raw=function(){return[s.bnToUnpaddedBuffer(this.chainId),s.bnToUnpaddedBuffer(this.nonce),s.bnToUnpaddedBuffer(this.gasPrice),s.bnToUnpaddedBuffer(this.gasLimit),void 0!==this.to?this.to.buf:t.from([]),s.bnToUnpaddedBuffer(this.value),this.data,this.accessList,void 0!==this.v?s.bnToUnpaddedBuffer(this.v):t.from([]),void 0!==this.r?s.bnToUnpaddedBuffer(this.r):t.from([]),void 0!==this.s?s.bnToUnpaddedBuffer(this.s):t.from([])]},r.prototype.serialize=function(){var e=this.raw();return t.concat([h,s.rlp.encode(e)])},r.prototype.getMessageToSign=function(e){void 0===e&&(e=!0);var r=this.raw().slice(0,8),n=t.concat([h,s.rlp.encode(r)]);return e?s.keccak256(n):n},r.prototype.hash=function(){if(!this.isSigned())throw new Error("Cannot call hash method if transaction is not signed");return s.keccak256(this.serialize())},r.prototype.getMessageToVerifySignature=function(){return this.getMessageToSign()},r.prototype.getSenderPublicKey=function(){var t;if(!this.isSigned())throw new Error("Cannot call this method if transaction is not signed");var e=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(null===(t=this.s)||void 0===t?void 0:t.gt(f.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");var r=this.yParity,n=this.r,i=this.s;try{return s.ecrecover(e,r.addn(27),s.bnToUnpaddedBuffer(n),s.bnToUnpaddedBuffer(i))}catch(t){throw new Error("Invalid Signature")}},r.prototype._processSignature=function(t,e,n){var i={common:this.common};return r.fromTxData({chainId:this.chainId,nonce:this.nonce,gasPrice:this.gasPrice,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,v:new s.BN(t-27),r:new s.BN(e),s:new s.BN(n)},i)},r.prototype.toJSON=function(){var t=c.AccessLists.getAccessListJSON(this.accessList);return{chainId:s.bnToHex(this.chainId),nonce:s.bnToHex(this.nonce),gasPrice:s.bnToHex(this.gasPrice),gasLimit:s.bnToHex(this.gasLimit),to:void 0!==this.to?this.to.toString():void 0,value:s.bnToHex(this.value),data:"0x"+this.data.toString("hex"),accessList:t,v:void 0!==this.v?s.bnToHex(this.v):void 0,r:void 0!==this.r?s.bnToHex(this.r):void 0,s:void 0!==this.s?s.bnToHex(this.s):void 0}},r}(u.BaseTransaction);e.default=l}).call(this,r(1).Buffer)},function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n=r(26),i=r(197),o=function(){function e(){}return e.fromTxData=function(t,e){if(void 0===e&&(e={}),"type"in t&&void 0!==t.type){var r=new n.BN(n.toBuffer(t.type)).toNumber();if(0===r)return i.Transaction.fromTxData(t,e);if(1===r)return i.AccessListEIP2930Transaction.fromTxData(t,e);if(2===r)return i.FeeMarketEIP1559Transaction.fromTxData(t,e);throw new Error("Tx instantiation with type "+r+" not supported")}return i.Transaction.fromTxData(t,e)},e.fromSerializedData=function(t,e){if(void 0===e&&(e={}),t[0]<=127){var r=void 0;switch(t[0]){case 1:r=2930;break;case 2:r=1559;break;default:throw new Error("TypedTransaction with ID "+t[0]+" unknown")}return 1559===r?i.FeeMarketEIP1559Transaction.fromSerializedTx(t,e):i.AccessListEIP2930Transaction.fromSerializedTx(t,e)}return i.Transaction.fromSerializedTx(t,e)},e.fromBlockBodyData=function(e,r){if(void 0===r&&(r={}),t.isBuffer(e))return this.fromSerializedData(e,r);if(Array.isArray(e))return i.Transaction.fromValuesArray(e,r);throw new Error("Cannot decode transaction: unknown type input")},e.getTransactionClass=function(t,e){if(void 0===t&&(t=0),0==t||t>=128&&t<=255)return i.Transaction;switch(t){case 1:return i.AccessListEIP2930Transaction;case 2:return i.FeeMarketEIP1559Transaction;default:throw new Error("TypedTransaction with ID "+t+" unknown")}},e}();e.default=o}).call(this,r(1).Buffer)},function(t,e,r){"use strict";(function(t){var n,i=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=function(){return(o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0});var s=r(26),u=r(104),f=r(43),c=r(202),h=t.from(2..toString(16).padStart(2,"0"),"hex"),l=function(e){function r(t,r){var n,i;void 0===r&&(r={});var a=e.call(this,o(o({},t),{type:2}))||this;a.DEFAULT_HARDFORK="london";var u=t.chainId,h=t.accessList,l=t.maxFeePerGas,d=t.maxPriorityFeePerGas;if(a.common=a._getCommon(r.common,u),a.chainId=a.common.chainIdBN(),!a.common.isActivatedEIP(1559))throw new Error("EIP-1559 not enabled on Common");a.activeCapabilities=a.activeCapabilities.concat([1559,2718,2930]);var p=c.AccessLists.getAccessListData(null!=h?h:[]);if(a.accessList=p.accessList,a.AccessListJSON=p.AccessListJSON,c.AccessLists.verifyAccessList(a.accessList),a.maxFeePerGas=new s.BN(s.toBuffer(""===l?"0x":l)),a.maxPriorityFeePerGas=new s.BN(s.toBuffer(""===d?"0x":d)),a._validateCannotExceedMaxInteger({maxFeePerGas:a.maxFeePerGas,maxPriorityFeePerGas:a.maxPriorityFeePerGas},256),a.maxFeePerGas.lt(a.maxPriorityFeePerGas))throw new Error("maxFeePerGas cannot be less than maxPriorityFeePerGas (The total must be the larger of the two)");if(a.v&&!a.v.eqn(0)&&!a.v.eqn(1))throw new Error("The y-parity of the transaction should either be 0 or 1");if(a.common.gteHardfork("homestead")&&(null===(n=a.s)||void 0===n?void 0:n.gt(f.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");return(null===(i=null==r?void 0:r.freeze)||void 0===i||i)&&Object.freeze(a),a}return i(r,e),Object.defineProperty(r.prototype,"senderR",{get:function(){return this.r},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"senderS",{get:function(){return this.s},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"yParity",{get:function(){return this.v},enumerable:!1,configurable:!0}),r.fromTxData=function(t,e){return void 0===e&&(e={}),new r(t,e)},r.fromSerializedTx=function(t,e){if(void 0===e&&(e={}),!t.slice(0,1).equals(h))throw new Error("Invalid serialized tx input: not an EIP-1559 transaction (wrong tx type, expected: 2, received: "+t.slice(0,1).toString("hex"));var n=s.rlp.decode(t.slice(1));if(!Array.isArray(n))throw new Error("Invalid serialized tx input: must be array");return r.fromValuesArray(n,e)},r.fromRlpSerializedTx=function(t,e){return void 0===e&&(e={}),r.fromSerializedTx(t,e)},r.fromValuesArray=function(t,e){if(void 0===e&&(e={}),9!==t.length&&12!==t.length)throw new Error("Invalid EIP-1559 transaction. Only expecting 9 values (for unsigned tx) or 12 values (for signed tx).");var n=a(t,12),i=n[0],o=n[1],u=n[2],f=n[3],c=n[4],h=n[5],l=n[6],d=n[7],p=n[8],m=n[9],b=n[10],v=n[11];return new r({chainId:new s.BN(i),nonce:o,maxPriorityFeePerGas:u,maxFeePerGas:f,gasLimit:c,to:h,value:l,data:d,accessList:null!=p?p:[],v:void 0!==m?new s.BN(m):void 0,r:b,s:v},e)},r.prototype.getDataFee=function(){var t=e.prototype.getDataFee.call(this);return t.iaddn(c.AccessLists.getDataFeeEIP2930(this.accessList,this.common)),t},r.prototype.getUpfrontCost=function(t){void 0===t&&(t=new s.BN(0));var e=s.BN.min(this.maxPriorityFeePerGas,this.maxFeePerGas.sub(t)).add(t);return this.gasLimit.mul(e).add(this.value)},r.prototype.raw=function(){return[s.bnToUnpaddedBuffer(this.chainId),s.bnToUnpaddedBuffer(this.nonce),s.bnToUnpaddedBuffer(this.maxPriorityFeePerGas),s.bnToUnpaddedBuffer(this.maxFeePerGas),s.bnToUnpaddedBuffer(this.gasLimit),void 0!==this.to?this.to.buf:t.from([]),s.bnToUnpaddedBuffer(this.value),this.data,this.accessList,void 0!==this.v?s.bnToUnpaddedBuffer(this.v):t.from([]),void 0!==this.r?s.bnToUnpaddedBuffer(this.r):t.from([]),void 0!==this.s?s.bnToUnpaddedBuffer(this.s):t.from([])]},r.prototype.serialize=function(){var e=this.raw();return t.concat([h,s.rlp.encode(e)])},r.prototype.getMessageToSign=function(e){void 0===e&&(e=!0);var r=this.raw().slice(0,9),n=t.concat([h,s.rlp.encode(r)]);return e?s.keccak256(n):n},r.prototype.hash=function(){if(!this.isSigned())throw new Error("Cannot call hash method if transaction is not signed");return s.keccak256(this.serialize())},r.prototype.getMessageToVerifySignature=function(){return this.getMessageToSign()},r.prototype.getSenderPublicKey=function(){var t;if(!this.isSigned())throw new Error("Cannot call this method if transaction is not signed");var e=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(null===(t=this.s)||void 0===t?void 0:t.gt(f.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");var r=this.v,n=this.r,i=this.s;try{return s.ecrecover(e,r.addn(27),s.bnToUnpaddedBuffer(n),s.bnToUnpaddedBuffer(i))}catch(t){throw new Error("Invalid Signature")}},r.prototype._processSignature=function(t,e,n){var i={common:this.common};return r.fromTxData({chainId:this.chainId,nonce:this.nonce,maxPriorityFeePerGas:this.maxPriorityFeePerGas,maxFeePerGas:this.maxFeePerGas,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,v:new s.BN(t-27),r:new s.BN(e),s:new s.BN(n)},i)},r.prototype.toJSON=function(){var t=c.AccessLists.getAccessListJSON(this.accessList);return{chainId:s.bnToHex(this.chainId),nonce:s.bnToHex(this.nonce),maxPriorityFeePerGas:s.bnToHex(this.maxPriorityFeePerGas),maxFeePerGas:s.bnToHex(this.maxFeePerGas),gasLimit:s.bnToHex(this.gasLimit),to:void 0!==this.to?this.to.toString():void 0,value:s.bnToHex(this.value),data:"0x"+this.data.toString("hex"),accessList:t,v:void 0!==this.v?s.bnToHex(this.v):void 0,r:void 0!==this.r?s.bnToHex(this.r):void 0,s:void 0!==this.s?s.bnToHex(this.s):void 0}},r}(u.BaseTransaction);e.default=l}).call(this,r(1).Buffer)},function(t,e,r){"use strict";t.exports=function(t){var e,r=this;return this.net.getId().then((function(t){return e=t,r.getBlock(0)})).then((function(r){var n="private";return"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3"===r.hash&&1===e&&(n="main"),"0cd786a2425d16f152c658316c423e6ce1181e15c3295826d7c9904cba9ce303"===r.hash&&2===e&&(n="morden"),"0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d"===r.hash&&3===e&&(n="ropsten"),"0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177"===r.hash&&4===e&&(n="rinkeby"),"0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a"===r.hash&&5===e&&(n="goerli"),"0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9"===r.hash&&42===e&&(n="kovan"),"function"==typeof t&&t(null,n),n})).catch((function(e){if("function"!=typeof t)throw e;t(e)}))}},function(t,e,r){"use strict";var n=r(27),i=r(58).subscriptions,o=r(30),a=r(61),s=function(){var t=this;n.packageInit(this,arguments);var e=this.setRequestManager;this.setRequestManager=function(r){return e(r),t.net.setRequestManager(r),!0};var r=this.setProvider;this.setProvider=function(){r.apply(t,arguments),t.setRequestManager(t._requestManager)},this.net=new a(this),[new i({name:"subscribe",type:"shh",subscriptions:{messages:{params:1}}}),new o({name:"getVersion",call:"shh_version",params:0}),new o({name:"getInfo",call:"shh_info",params:0}),new o({name:"setMaxMessageSize",call:"shh_setMaxMessageSize",params:1}),new o({name:"setMinPoW",call:"shh_setMinPoW",params:1}),new o({name:"markTrustedPeer",call:"shh_markTrustedPeer",params:1}),new o({name:"newKeyPair",call:"shh_newKeyPair",params:0}),new o({name:"addPrivateKey",call:"shh_addPrivateKey",params:1}),new o({name:"deleteKeyPair",call:"shh_deleteKeyPair",params:1}),new o({name:"hasKeyPair",call:"shh_hasKeyPair",params:1}),new o({name:"getPublicKey",call:"shh_getPublicKey",params:1}),new o({name:"getPrivateKey",call:"shh_getPrivateKey",params:1}),new o({name:"newSymKey",call:"shh_newSymKey",params:0}),new o({name:"addSymKey",call:"shh_addSymKey",params:1}),new o({name:"generateSymKeyFromPassword",call:"shh_generateSymKeyFromPassword",params:1}),new o({name:"hasSymKey",call:"shh_hasSymKey",params:1}),new o({name:"getSymKey",call:"shh_getSymKey",params:1}),new o({name:"deleteSymKey",call:"shh_deleteSymKey",params:1}),new o({name:"newMessageFilter",call:"shh_newMessageFilter",params:1}),new o({name:"getFilterMessages",call:"shh_getFilterMessages",params:1}),new o({name:"deleteMessageFilter",call:"shh_deleteMessageFilter",params:1}),new o({name:"post",call:"shh_post",params:1,inputFormatter:[null]}),new o({name:"unsubscribe",call:"shh_unsubscribe",params:1})].forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}))};s.prototype.clearSubscriptions=function(){this._requestManager.clearSubscriptions()},n.addProviders(s),t.exports=s},function(t,e,r){"use strict";var n=r(0)(r(2)),i=r(489),o=function t(e){this.givenProvider=t.givenProvider,e&&e._requestManager&&(e=e.currentProvider),"undefined"!=typeof document&&(this.pick=i.pick),this.setProvider(e)};o.givenProvider=null,"undefined"!=typeof ethereum&ðereum.bzz&&(o.givenProvider=ethereum.bzz),o.prototype.setProvider=function(t){if(t&&"object"===(0,n.default)(t)&&"string"==typeof t.bzz&&(t=t.bzz),"string"!=typeof t){this.currentProvider=null;var e=new Error("No provider set, please set one using bzz.setProvider().");return this.download=this.upload=this.isAvailable=function(){throw e},!1}return this.currentProvider=t,this.download=i.at(t).download,this.upload=i.at(t).upload,this.isAvailable=i.at(t).isAvailable,!0},t.exports=o},function(t,e,r){"use strict";var n=function(){throw"This swarm.js function isn't available on the browser."},i={readFile:n},o={download:n,safeDownloadArchived:n,directoryTree:n},a={platform:n,arch:n},s={join:n,slice:n},u={spawn:n},f={lookup:n},c=r(490),h=r(203),l=r(503),d=r(505),p=r(506);t.exports=p({fs:i,files:o,os:a,path:s,child_process:u,defaultArchives:{},mimetype:f,request:c,downloadUrl:null,bytes:h,hash:l,pick:d})},function(t,e,r){"use strict";var n=r(491),i=r(494),o=r(101),a=r(495),s=r(496),u=function(){};t.exports=function(t,e,r){if(!t||"string"!=typeof t)throw new TypeError("must specify a URL");"function"==typeof e&&(r=e,e={});if(r&&"function"!=typeof r)throw new TypeError("expected cb to be undefined or a function");r=r||u;var f=(e=e||{}).json?"json":"text",c=(e=o({responseType:f},e)).headers||{},h=(e.method||"GET").toUpperCase(),l=e.query;l&&("string"!=typeof l&&(l=n.stringify(l)),t=i(t,l));"json"===e.responseType&&a(c,"Accept","application/json");e.json&&"GET"!==h&&"HEAD"!==h&&(a(c,"Content-Type","application/json"),e.body=JSON.stringify(e.body));return e.method=h,e.url=t,e.headers=c,delete e.query,delete e.json,s(e,r)}},function(t,e,r){"use strict";var n=r(0)(r(2)),i=r(492),o=r(101),a=r(493);function s(t,e){return e.encode?e.strict?i(t):encodeURIComponent(t):t}function u(t){var e=t.indexOf("?");return-1===e?"":t.slice(e+1)}function f(t,e){var r=function(t){var e;switch(t.arrayFormat){case"index":return function(t,r,n){e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===n[t]&&(n[t]={}),n[t][e[1]]=r):n[t]=r};case"bracket":return function(t,r,n){e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};default:return function(t,e,r){void 0!==r[t]?r[t]=[].concat(r[t],e):r[t]=e}}}(e=o({arrayFormat:"none"},e)),i=Object.create(null);return"string"!=typeof t?i:(t=t.trim().replace(/^[?#&]/,""))?(t.split("&").forEach((function(t){var e=t.replace(/\+/g," ").split("="),n=e.shift(),o=e.length>0?e.join("="):void 0;o=void 0===o?null:a(o),r(a(n),o,i)})),Object.keys(i).sort().reduce((function(t,e){var r=i[e];return Boolean(r)&&"object"===(0,n.default)(r)&&!Array.isArray(r)?t[e]=function t(e){return Array.isArray(e)?e.sort():"object"===(0,n.default)(e)?t(Object.keys(e)).sort((function(t,e){return Number(t)-Number(e)})).map((function(t){return e[t]})):e}(r):t[e]=r,t}),Object.create(null))):i}e.extract=u,e.parse=f,e.stringify=function(t,e){!1===(e=o({encode:!0,strict:!0,arrayFormat:"none"},e)).sort&&(e.sort=function(){});var r=function(t){switch(t.arrayFormat){case"index":return function(e,r,n){return null===r?[s(e,t),"[",n,"]"].join(""):[s(e,t),"[",s(n,t),"]=",s(r,t)].join("")};case"bracket":return function(e,r){return null===r?s(e,t):[s(e,t),"[]=",s(r,t)].join("")};default:return function(e,r){return null===r?s(e,t):[s(e,t),"=",s(r,t)].join("")}}}(e);return t?Object.keys(t).sort(e.sort).map((function(n){var i=t[n];if(void 0===i)return"";if(null===i)return s(n,e);if(Array.isArray(i)){var o=[];return i.slice().forEach((function(t){void 0!==t&&o.push(r(n,t,o.length))})),o.join("&")}return s(n,e)+"="+s(i,e)})).filter((function(t){return t.length>0})).join("&"):""},e.parseUrl=function(t,e){return{url:t.split("?")[0]||"",query:f(u(t),e)}}},function(t,e,r){"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}},function(t,e,r){"use strict";var n=r(0)(r(2)),i=new RegExp("%[a-f0-9]{2}","gi"),o=new RegExp("(%[a-f0-9]{2})+","gi");function a(t,e){try{return decodeURIComponent(t.join(""))}catch(t){}if(1===t.length)return t;e=e||1;var r=t.slice(0,e),n=t.slice(e);return Array.prototype.concat.call([],a(r),a(n))}function s(t){try{return decodeURIComponent(t)}catch(n){for(var e=t.match(i),r=1;r0&&(h=setTimeout((function(){if(!f){f=!0,c.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",i(t)}}),t.timeout)),c.setRequestHeader)for(s in m)m.hasOwnProperty(s)&&c.setRequestHeader(s,m[s]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(c.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(c),c.send(p||null),c}t.exports=u,t.exports.default=u,u.XMLHttpRequest=n.XMLHttpRequest||function(){},u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var r=0;r>>31),r=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(u<<1|s>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(f<<1|c>>>31),r=o^(c<<1|f>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=s^(h<<1|l>>>31),r=u^(l<<1|h>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=f^(d<<1|p>>>31),r=c^(p<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=h^(i<<1|o>>>31),r=l^(o<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],b=t[1],W=t[11]<<4|t[10]>>>28,Z=t[10]<<4|t[11]>>>28,P=t[20]<<3|t[21]>>>29,B=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,z=t[40]<<18|t[41]>>>14,K=t[41]<<18|t[40]>>>14,U=t[2]<<1|t[3]>>>31,j=t[3]<<1|t[2]>>>31,v=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,J=t[22]<<10|t[23]>>>22,X=t[23]<<10|t[22]>>>22,T=t[33]<<13|t[32]>>>19,R=t[32]<<13|t[33]>>>19,ft=t[42]<<2|t[43]>>>30,ct=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,N=t[14]<<6|t[15]>>>26,L=t[15]<<6|t[14]>>>26,g=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,Y=t[34]<<15|t[35]>>>17,$=t[35]<<15|t[34]>>>17,I=t[45]<<29|t[44]>>>3,C=t[44]<<29|t[45]>>>3,A=t[6]<<28|t[7]>>>4,x=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,F=t[26]<<25|t[27]>>>7,D=t[27]<<25|t[26]>>>7,_=t[36]<<21|t[37]>>>11,k=t[37]<<21|t[36]>>>11,Q=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,G=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,E=t[18]<<20|t[19]>>>12,O=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,at=t[28]<<7|t[29]>>>25,q=t[38]<<8|t[39]>>>24,H=t[39]<<8|t[38]>>>24,M=t[48]<<14|t[49]>>>18,S=t[49]<<14|t[48]>>>18,t[0]=m^~v&g,t[1]=b^~y&w,t[10]=A^~E&P,t[11]=x^~O&B,t[20]=U^~N&F,t[21]=j^~L&D,t[30]=G^~W&J,t[31]=V^~Z&X,t[40]=et^~nt&ot,t[41]=rt^~it&at,t[2]=v^~g&_,t[3]=y^~w&k,t[12]=E^~P&T,t[13]=O^~B&R,t[22]=N^~F&q,t[23]=L^~D&H,t[32]=W^~J&Y,t[33]=Z^~X&$,t[42]=nt^~ot&st,t[43]=it^~at&ut,t[4]=g^~_&M,t[5]=w^~k&S,t[14]=P^~T&I,t[15]=B^~R&C,t[24]=F^~q&z,t[25]=D^~H&K,t[34]=J^~Y&Q,t[35]=X^~$&tt,t[44]=ot^~st&ft,t[45]=at^~ut&ct,t[6]=_^~M&m,t[7]=k^~S&b,t[16]=T^~I&A,t[17]=R^~C&x,t[26]=q^~z&U,t[27]=H^~K&j,t[36]=Y^~Q&G,t[37]=$^~tt&V,t[46]=st^~ft&et,t[47]=ut^~ct&rt,t[8]=M^~m&v,t[9]=S^~b&y,t[18]=I^~A&E,t[19]=C^~x&O,t[28]=z^~U&N,t[29]=K^~j&L,t[38]=Q^~G&W,t[39]=tt^~V&Z,t[48]=ft^~et&nt,t[49]=ct^~rt&it,t[0]^=a[n],t[1]^=a[n+1]},u=function(t){return function(e){var r;if("0x"===e.slice(0,2)){r=[];for(var a=2,u=e.length;a>2]|=e[d]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|63&r)<=57344?(u[b>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<=f){for(t.start=b-f,t.block=u[c],b=0;b>2]|=i[3&b],t.lastByteIndex===f)for(u[0]=u[c],b=1;b>4&15]+n[15&p]+n[p>>12&15]+n[p>>8&15]+n[p>>20&15]+n[p>>16&15]+n[p>>28&15]+n[p>>24&15];v%c==0&&(s(l),b=0)}return"0x"+m}(function(t){return{blocks:[],reset:!0,block:0,start:0,blockCount:1600-(t<<1)>>5,outputBlocks:t>>5,s:(e=[0,0,0,0,0,0,0,0,0,0],[].concat(e,e,e,e,e))};var e}(t),r)}};t.exports={keccak256:u(256),keccak512:u(512),keccak256s:u(256),keccak512s:u(512)}},function(t,e,r){"use strict";var n=function(t){return function(){return new Promise((function(e,r){var n,i=function(r){var n={},i=r.target.files.length,o=0;[].map.call(r.target.files,(function(r){var a=new FileReader;a.onload=function(a){var s=new Uint8Array(a.target.result);if("directory"===t){var u=r.webkitRelativePath;n[u.slice(u.indexOf("/")+1)]={type:"text/plain",data:s},++o===i&&e(n)}else if("file"===t){var f=r.webkitRelativePath;e({type:mimetype.lookup(f),data:s})}else e(s)},a.readAsArrayBuffer(r)}))};"directory"===t?((n=document.createElement("input")).addEventListener("change",i),n.type="file",n.webkitdirectory=!0,n.mozdirectory=!0,n.msdirectory=!0,n.odirectory=!0,n.directory=!0):((n=document.createElement("input")).addEventListener("change",i),n.type="file");var o=document.createEvent("MouseEvents");o.initEvent("click",!0,!1),n.dispatchEvent(o)}))}};t.exports={data:n("data"),file:n("file"),directory:n("directory")}},function(t,e,r){"use strict";t.exports=function(t){var e=t.fs,r=t.files,n=t.os,i=t.path,o=t.child_process,a=t.mimetype,s=t.defaultArchives,u=t.request,f=t.downloadUrl,c=t.bytes,h=t.hash,l=t.pick,d=function(t){return function(e){for(var r={},n=0,i=t.length;n=400?n(new Error("Error ".concat(i.statusCode,"."))):r(new Uint8Array(e))}))}))}},b=function(t){return function(e){return function e(r){return function(n){return function(i){var o=function(t){return void 0===t.path?Promise.resolve():"application/bzz-manifest+json"===t.contentType?e(t.hash)(n+t.path)(i):Promise.resolve((r=n+t.path,function(t){return function(e){return e[r]=t,e}})(function(t){return{type:t.contentType,hash:t.hash}}(t))(i));var r};return m(t)(r).then((function(t){return JSON.parse(j(t)).entries})).then((function(t){return Promise.all(t.map(o))})).then((function(){return i}))}}}(e)("")({})}},v=function(t){return function(e){return b(t)(e).then((function(t){return d(Object.keys(t))(Object.keys(t).map((function(e){return t[e].hash})))}))}},y=function(t){return function(e){return b(t)(e).then((function(e){var r=Object.keys(e),n=r.map((function(t){return e[t].hash})),i=r.map((function(t){return e[t].type})),o=n.map(m(t));return Promise.all(o).then((function(t){return d(r)(function(t){return t.map((function(t,e){return{type:i[e],data:t}}))}(t))}))}))}},g=function(t){return function(e){return function(n){return r.download(p(t)(e))(n)}}},w=function(t){return function(e){return function(r){return v(t)(e).then((function(e){var n=[];for(var o in e)if(o.length>0){var a=i.join(r,o);n.push(g(t)(e[o])(a))}return Promise.all(n).then((function(){return r}))}))}}},_=function(t){return function(e){return new Promise((function(r,n){var i={body:"string"==typeof e?N(e):e,method:"POST"};u("".concat(t,"/bzz-raw:/"),i,(function(t,e){return t?n(t):r(e)}))}))}},k=function(t){return function(e){return function(r){return function(n){return function i(o){var a="/"===r[0]?r:"/"+r,s="".concat(t,"/bzz:/").concat(e).concat(a),f={method:"PUT",headers:{"Content-Type":n.type},body:n.data};return new Promise((function(t,e){u(s,f,(function(r,n){return r?e(r):-1!==n.indexOf("error")?e(n):t(n)}))})).catch((function(t){return o>0&&i(o-1)}))}(3)}}}},M=function(t){return function(e){return A(t)({"":e})}},S=function(t){return function(r){return e.readFile(r).then((function(e){return M(t)({type:a.lookup(r),data:e})}))}},A=function(t){return function(e){return _(t)("{}").then((function(r){return Object.keys(e).reduce((function(r,n){return r.then(function(r){return function(n){return k(t)(n)(r)(e[r])}}(n))}),Promise.resolve(r))}))}},x=function(t){return function(r){return e.readFile(r).then(_(t))}},E=function(t){return function(n){return function(i){return r.directoryTree(i).then((function(t){return Promise.all(t.map((function(t){return e.readFile(t)}))).then((function(e){var r=t.map((function(t){return t.slice(i.length)})),n=t.map((function(t){return a.lookup(t)||"text/plain"}));return d(r)(e.map((function(t,e){return{type:n[e],data:t}})))}))})).then((function(t){return(e=n?{"":t[n]}:{},function(t){var r={};for(var n in e)r[n]=e[n];for(var i in t)r[i]=t[i];return r})(t);var e})).then(A(t))}}},O=function(t){return function(e){if("data"===e.pick)return l.data().then(_(t));if("file"===e.pick)return l.file().then(M(t));if("directory"===e.pick)return l.directory().then(A(t));if(e.path)switch(e.kind){case"data":return x(t)(e.path);case"file":return S(t)(e.path);case"directory":return E(t)(e.defaultFile)(e.path)}else{if(e.length||"string"==typeof e)return _(t)(e);if(e instanceof Object)return A(t)(e)}return Promise.reject(new Error("Bad arguments"))}},P=function(t){return function(e){return function(r){return C(t)(e).then((function(n){return n?r?w(t)(e)(r):y(t)(e):r?g(t)(e)(r):m(t)(e)}))}}},B=function(t,e){var i=n.platform().replace("win32","windows")+"-"+("x64"===n.arch()?"amd64":"386"),o=(e||s)[i],a=f+o.archive+".tar.gz",u=o.archiveMD5,c=o.binaryMD5;return r.safeDownloadArchived(a)(u)(c)(t)},T=function(t){return new Promise((function(e,r){var n=o.spawn,i=function(t){return function(e){return-1!==(""+e).indexOf(t)}},a=t.account,s=t.password,u=t.dataDir,f=t.ensApi,c=t.privateKey,h=0,l=n(t.binPath,["--bzzaccount",a||c,"--datadir",u,"--ens-api",f]),d=function(t){0===h&&i("Passphrase")(t)?setTimeout((function(){h=1,l.stdin.write(s+"\n")}),500):i("Swarm http proxy started")(t)&&(h=2,clearTimeout(p),e(l))};l.stdout.on("data",d),l.stderr.on("data",d);var p=setTimeout((function(){return r(new Error("Couldn't start swarm process."))}),2e4)}))},R=function(t){return new Promise((function(e,r){t.stderr.removeAllListeners("data"),t.stdout.removeAllListeners("data"),t.stdin.removeAllListeners("error"),t.removeAllListeners("error"),t.removeAllListeners("exit"),t.kill("SIGINT");var n=setTimeout((function(){return t.kill("SIGKILL")}),8e3);t.once("close",(function(){clearTimeout(n),e()}))}))},I=function(t){return _(t)("test").then((function(t){return"c9a99c7d326dcc6316f32fe2625b311f6dc49a175e6877681ded93137d3569e7"===t})).catch((function(){return!1}))},C=function(t){return function(e){return m(t)(e).then((function(t){try{return!!JSON.parse(j(t)).entries}catch(t){return!1}}))}},U=function(t){return function(e,r,n,i,o){var a;return void 0!==e&&(a=t(e)),void 0!==r&&(a=t(r)),void 0!==n&&(a=t(n)),void 0!==i&&(a=t(i)),void 0!==o&&(a=t(o)),a}},j=function(t){return c.toString(c.fromUint8Array(t))},N=function(t){return c.toUint8Array(c.fromString(t))},L=function(t){return{download:function(e,r){return P(t)(e)(r)},downloadData:U(m(t)),downloadDataToDisk:U(g(t)),downloadDirectory:U(y(t)),downloadDirectoryToDisk:U(w(t)),downloadEntries:U(b(t)),downloadRoutes:U(v(t)),isAvailable:function(){return I(t)},upload:function(e){return O(t)(e)},uploadData:U(_(t)),uploadFile:U(M(t)),uploadFileFromDisk:U(M(t)),uploadDataFromDisk:U(x(t)),uploadDirectory:U(A(t)),uploadDirectoryFromDisk:U(E(t)),uploadToManifest:U(k(t)),pick:l,hash:h,fromString:N,toString:j}};return{at:L,local:function(t){return function(e){return I("http://localhost:8500").then((function(r){return r?e(L("http://localhost:8500")).then((function(){})):B(t.binPath,t.archives).onData((function(e){return(t.onProgress||function(){})(e.length)})).then((function(){return T(t)})).then((function(t){return e(L("http://localhost:8500")).then((function(){return t}))})).then(R)}))}},download:P,downloadBinary:B,downloadData:m,downloadDataToDisk:g,downloadDirectory:y,downloadDirectoryToDisk:w,downloadEntries:b,downloadRoutes:v,isAvailable:I,startProcess:T,stopProcess:R,upload:O,uploadData:_,uploadDataFromDisk:x,uploadFile:M,uploadFileFromDisk:S,uploadDirectory:A,uploadDirectoryFromDisk:E,uploadToManifest:k,pick:l,hash:h,fromString:N,toString:j}}}])})); - //# sourceMappingURL=web3.min.js.map \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/web3/lib/web3.min.js.meta b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/web3/lib/web3.min.js.meta deleted file mode 100644 index 27d342f00..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/web3/lib/web3.min.js.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 170f1759f9a5fac468f925185c9fb186 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/web3/lib/web3modal.js b/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/web3/lib/web3modal.js deleted file mode 100644 index 04b6b04a8..000000000 --- a/Packages/io.chainsafe.web3-unity/Editor/WebGLTemplates/Web3GL-MetaMask/web3/lib/web3modal.js +++ /dev/null @@ -1,54 +0,0 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Web3Modal",[],t):"object"==typeof exports?exports.Web3Modal=t():e.Web3Modal=t()}(this,function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}([function(e,t,n){"use strict";e.exports=n(22)},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return r}),n.d(t,"__assign",function(){return o}),n.d(t,"__rest",function(){return u}),n.d(t,"__decorate",function(){return a}),n.d(t,"__param",function(){return l}),n.d(t,"__metadata",function(){return c}),n.d(t,"__awaiter",function(){return A}),n.d(t,"__generator",function(){return s}),n.d(t,"__createBinding",function(){return M}),n.d(t,"__exportStar",function(){return I}),n.d(t,"__values",function(){return g}),n.d(t,"__read",function(){return d}),n.d(t,"__spread",function(){return f}),n.d(t,"__spreadArrays",function(){return N}),n.d(t,"__await",function(){return j}),n.d(t,"__asyncGenerator",function(){return y}),n.d(t,"__asyncDelegator",function(){return p}),n.d(t,"__asyncValues",function(){return D}),n.d(t,"__makeTemplateObject",function(){return v}),n.d(t,"__importStar",function(){return w}),n.d(t,"__importDefault",function(){return C}),n.d(t,"__classPrivateFieldGet",function(){return T}),n.d(t,"__classPrivateFieldSet",function(){return m}); -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(r=e[a])&&(u=(o<3?r(u):o>3?r(t,n,u):r(t,n))||u);return o>3&&u&&Object.defineProperty(t,n,u),u}function l(e,t){return function(n,i){t(n,i,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function A(e,t,n,i){return new(n||(n=Promise))(function(r,o){function u(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(u,a)}l((i=i.apply(e,t||[])).next())})}function s(e,t){var n,i,r,o,u={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,i=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(r=(r=u.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)u.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return u}function f(){for(var e=[],t=0;t1||a(e,t)})})}function a(e,t){try{!function(e){e.value instanceof j?Promise.resolve(e.value.v).then(l,c):A(o[0][2],e)}(r[e](t))}catch(e){A(o[0][3],e)}}function l(e){a("next",e)}function c(e){a("throw",e)}function A(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function p(e){var t,n;return t={},i("next"),i("throw",function(e){throw e}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,r){t[i]=e[i]?function(t){return(n=!n)?{value:j(e[i](t)),done:"return"===i}:r?r(t):t}:r}}function D(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=g(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise(function(i,r){(function(e,t,n,i){Promise.resolve(i).then(function(t){e({value:t,done:n})},t)})(i,r,(t=e[n](t)).done,t.value)})}}}function v(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function C(e){return e&&e.__esModule?e:{default:e}}function T(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function m(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);i.__exportStar(n(31),t),i.__exportStar(n(32),t),i.__exportStar(n(33),t),i.__exportStar(n(34),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);i.__exportStar(n(27),t),i.__exportStar(n(28),t),i.__exportStar(n(29),t)},function(e,t,n){"use strict";e.exports=n(78)},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.themesList=void 0;var r=n(1),o=r.__importDefault(n(35)),u=r.__importDefault(n(36));t.themesList=((i={default:o.default})[o.default.name]=o.default,i[u.default.name]=u.default,i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.providers=t.injected=t.connectors=void 0;var i=n(1),r=i.__importStar(n(37));t.connectors=r;var o=i.__importStar(n(11));t.injected=o;var u=i.__importStar(n(62));t.providers=u},function(e,t,n){"use strict";var i=n(4),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return i.isMemo(e)?u:a[e.$$typeof]||r}a[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[i.Memo]=u;var c=Object.defineProperty,A=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,M=Object.getOwnPropertyDescriptor,I=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,n,i){if("string"!=typeof n){if(g){var r=I(n);r&&r!==g&&e(t,r,i)}var u=A(n);s&&(u=u.concat(s(n)));for(var a=l(t),d=l(n),f=0;f1)for(var n=1;n1?t-1:0),i=1;i0?" Additional arguments: "+n.join(", "):""))}var z=function(e){var t=document.head,n=e||t,i=document.createElement("style"),r=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var i=t[n];if(i&&1===i.nodeType&&i.hasAttribute(D))return i}}(n),o=void 0!==r?r.nextSibling:null;i.setAttribute(D,"active"),i.setAttribute(v,w);var u=E();return u&&i.setAttribute("nonce",u),n.insertBefore(i,o),i},h=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,i=t.length;n=0){var n=document.createTextNode(t),i=this.nodes[e];return this.element.insertBefore(n,i||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e=this.groupSizes.length){for(var n=this.groupSizes,i=n.length,r=i;e>=r;)(r<<=1)<0&&b(16,""+e);this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var o=i;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],i=this.indexOfGroup(e),r=i+n,o=i;o=P&&(P=t+1),k.set(e,t),B.set(t,e)},Z="style["+D+"]["+v+'="'+w+'"]',R=new RegExp("^"+D+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),H=function(e,t,n){for(var i,r=n.split(","),o=0,u=r.length;o0&&(c+=e+",")}),i+=""+a+l+'{content:"'+c+'"}/*!sc*/\n'}}}return i}(this)},e}(),K=5381,q=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},_=function(e){return q(K,e)};var $=/^\s*\/\/.*$/gm;function ee(e){var t,n,i,r=void 0===e?N:e,o=r.options,u=void 0===o?N:o,a=r.plugins,c=void 0===a?f:a,A=new l.a(u),s=[],M=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,i,r,o,u,a,l,c,A,s){switch(n){case 1:if(0===A&&64===i.charCodeAt(0))return e(i+";"),"";break;case 2:if(0===c)return i+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(r[0]+i),"";default:return i+(0===s?"/*|*/":"")}case-2:i.split("/*|*/}").forEach(t)}}}(function(e){s.push(e)}),I=function(e,i,r){return i>0&&-1!==r.slice(0,i).indexOf(n)&&r.slice(i-n.length,i)!==n?"."+t:e};function g(e,r,o,u){void 0===u&&(u="&");var a=e.replace($,""),l=r&&o?o+" "+r+" { "+a+" }":a;return t=u,n=r,i=new RegExp("\\"+n+"\\b","g"),A(o||!r?"":r,l)}return A.use([].concat(c,[function(e,t,r){2===e&&r.length&&r[0].lastIndexOf(n)>0&&(r[0]=r[0].replace(i,I))},M,function(e){if(-2===e){var t=s;return s=[],t}}])),g.hash=c.length?c.reduce(function(e,t){return t.name||b(15),q(e,t.name)},K).toString():"",g}var te=o.a.createContext(),ne=te.Consumer,ie=o.a.createContext(),re=(ie.Consumer,new J),oe=ee();function ue(){return Object(r.useContext)(te)||re}function ae(){return Object(r.useContext)(ie)||oe}function le(e){var t=Object(r.useState)(e.stylisPlugins),n=t[0],i=t[1],u=ue(),l=Object(r.useMemo)(function(){var t=u;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target})),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),c=Object(r.useMemo)(function(){return ee({options:{prefix:!e.disableVendorPrefixes},plugins:n})},[e.disableVendorPrefixes,n]);return Object(r.useEffect)(function(){a()(n,e.stylisPlugins)||i(e.stylisPlugins)},[e.stylisPlugins]),o.a.createElement(te.Provider,{value:l},o.a.createElement(ie.Provider,{value:c},e.children))}var ce=function(){function e(e,t){var n=this;this.inject=function(e){e.hasNameForId(n.id,n.name)||e.insertRules(n.id,n.name,oe.apply(void 0,n.stringifyArgs))},this.toString=function(){return b(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.stringifyArgs=t}return e.prototype.getName=function(){return this.name},e}(),Ae=/([A-Z])/g,se=/^ms-/;function Me(e){return e.replace(Ae,"-$1").toLowerCase().replace(se,"-ms-")}var Ie=function(e){return void 0===e||null===e||!1===e||""===e},ge=function e(t,n){var i=[];return Object.keys(t).forEach(function(n){if(!Ie(t[n])){if(d(t[n]))return i.push.apply(i,e(t[n],n)),i;if(j(t[n]))return i.push(Me(n)+":",t[n],";"),i;i.push(Me(n)+": "+function(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in c.a?String(t).trim():t+"px"}(n,t[n])+";")}return i}),n?[n+" {"].concat(i,["}"]):i};function de(e,t,n){if(Array.isArray(e)){for(var i,r=[],o=0,u=e.length;o1?t-1:0),i=1;i1?t-1:0),i=1;i25?39:97))};function Ce(e){var t,n="";for(t=Math.abs(e);t>ve;t=t/ve|0)n=we(t%ve)+n;return(we(t%ve)+n).replace(De,"$1-$2")}function Te(e){for(var t=0;t>>0);if(!t.hasNameForId(i,o)){var u=n(r,"."+o,void 0,i);t.insertRules(i,o,u)}return this.staticRulesId=o,o}for(var a=this.rules.length,l=q(this.baseHash,n.hash),c="",A=0;A>>0);if(!t.hasNameForId(i,g)){var d=n(c,"."+g,void 0,i);t.insertRules(i,g,d)}return g},e}(),Ee=(new Set,function(e,t,n){return void 0===n&&(n=N),e.theme!==n.theme&&e.theme||t||n.theme}),be=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ze=/(^-|-$)/g;function he(e){return e.replace(be,"-").replace(ze,"")}function xe(e){return"string"==typeof e&&!0}var Le=function(e){return Ce(_(e)>>>0)};function Se(e,t){return e&&t?e+" "+t:e||t}var Qe=o.a.createContext(),Oe=Qe.Consumer;function ke(e){var t=Object(r.useContext)(Qe),n=Object(r.useMemo)(function(){return function(e,t){return e?j(e)?e(t):Array.isArray(e)||"object"!=typeof e?b(8):t?I({},t,{},e):e:b(14)}(e.theme,t)},[e.theme,t]);return e.children?o.a.createElement(Qe.Provider,{value:n},e.children):null}var Be={};function Pe(e,t,n){var i=e.attrs,o=e.componentStyle,u=e.defaultProps,a=e.foldedComponentIds,l=e.shouldForwardProp,c=e.styledComponentId,s=e.target;Object(r.useDebugValue)(c);var M=function(e,t,n){void 0===e&&(e=N);var i=I({},t,{theme:e}),r={};return n.forEach(function(e){var t,n=e;for(t in j(n)&&(n=n(i)),n)i[t]=r[t]="className"===t?Se(r[t],n[t]):n[t]}),[i,r]}(Ee(t,Object(r.useContext)(Qe),u)||N,t,i),g=M[0],d=M[1],f=function(e,t,n,i){var o=ue(),u=ae(),a=e.isStatic&&!t?e.generateAndInjectStyles(N,o,u):e.generateAndInjectStyles(n,o,u);return Object(r.useDebugValue)(a),a}(o,i.length>0,g),y=n,p=d.$as||t.$as||d.as||t.as||s,D=xe(p),v=d!==t?I({},t,{},d):t,w=l||D&&A.a,C={};for(var T in v)"$"!==T[0]&&"as"!==T&&("forwardedAs"===T?C.as=v[T]:w&&!w(T,A.a)||(C[T]=v[T]));return t.style&&d.style!==t.style&&(C.style=I({},t.style,{},d.style)),C.className=Array.prototype.concat(a,c,f!==c?f:null,t.className,d.className).filter(Boolean).join(" "),C.ref=y,Object(r.createElement)(p,C)}function Ye(e,t,n){var i=p(e),r=!xe(e),u=t.displayName,a=void 0===u?function(e){return xe(e)?"styled."+e:"Styled("+y(e)+")"}(e):u,l=t.componentId,c=void 0===l?function(e,t){var n="string"!=typeof e?"sc":he(e);Be[n]=(Be[n]||0)+1;var i=n+"-"+Le(n+Be[n]);return t?t+"-"+i:i}(t.displayName,t.parentComponentId):l,A=t.attrs,s=void 0===A?f:A,g=t.displayName&&t.componentId?he(t.displayName)+"-"+t.componentId:t.componentId||c,d=i&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,N=t.shouldForwardProp;i&&e.shouldForwardProp&&(N=N?function(n,i){return e.shouldForwardProp(n,i)&&t.shouldForwardProp(n,i)}:e.shouldForwardProp);var j,D=new me(i?e.componentStyle.rules.concat(n):n,g),v=function(e,t){return Pe(j,e,t)};return v.displayName=a,(j=o.a.forwardRef(v)).attrs=d,j.componentStyle=D,j.displayName=a,j.shouldForwardProp=N,j.foldedComponentIds=i?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):f,j.styledComponentId=g,j.target=i?e.target:e,j.withComponent=function(e){var i=t.componentId,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i=0||(r[n]=e[n]);return r}(t,["componentId"]),o=i&&i+"-"+(xe(e)?e:he(y(e)));return Ye(e,I({},r,{attrs:d,componentId:o}),n)},Object.defineProperty(j,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?pe({},e.defaultProps,t):t}}),j.toString=function(){return"."+j.styledComponentId},r&&M()(j,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,self:!0,styledComponentId:!0,target:!0,withComponent:!0}),j}var Ue=function(e){return function e(t,n,r){if(void 0===r&&(r=N),!Object(i.isValidElementType)(n))return b(1,String(n));var o=function(){return t(n,r,fe.apply(void 0,arguments))};return o.withConfig=function(i){return e(t,n,I({},r,{},i))},o.attrs=function(i){return e(t,n,I({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},o}(Ye,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Ue[e]=Ue(e)});var Ge=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Te(e)}var t=e.prototype;return t.createStyles=function(e,t,n,i){var r=i(de(this.rules,t,n).join(""),""),o=this.componentId+e;n.insertRules(o,o,r)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,i){J.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,i)},e}();function Ze(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1?t-1:0),i=1;i"+t+""},this.getStyleTags=function(){return e.sealed?b(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return b(2);var n=((t={})[D]="",t[v]=w,t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),i=E();return i&&(n.nonce=i),[o.a.createElement("style",I({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new J({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?b(2):o.a.createElement(le,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return b(3)},e}(),Fe=function(e){var t=o.a.forwardRef(function(t,n){var i=Object(r.useContext)(Qe),u=e.defaultProps,a=Ee(t,i,u);return o.a.createElement(e,I({},t,{theme:a,ref:n}))});return M()(t,e),t.displayName="WithTheme("+y(e)+")",t},We=function(){return Object(r.useContext)(Qe)},Ve={StyleSheet:J,masterSheet:re},Xe="5.1.1";t.default=Ue}.call(this,n(10))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Provider=void 0;var i,r,o,u,a,l=n(1),c=l.__importStar(n(0)),A=l.__importDefault(n(13)),s=n(2),M=A.default.div(i||(i=l.__makeTemplateObject(["\n width: 45px;\n height: 45px;\n display: flex;\n border-radius: 50%;\n overflow: visible;\n box-shadow: none;\n justify-content: center;\n align-items: center;\n & img {\n width: 100%;\n height: 100%;\n }\n\n @media screen and (max-width: 768px) {\n width: 8.5vw;\n height: 8.5vw;\n }\n"],["\n width: 45px;\n height: 45px;\n display: flex;\n border-radius: 50%;\n overflow: visible;\n box-shadow: none;\n justify-content: center;\n align-items: center;\n & img {\n width: 100%;\n height: 100%;\n }\n\n @media screen and (max-width: 768px) {\n width: 8.5vw;\n height: 8.5vw;\n }\n"]))),I=A.default.div(r||(r=l.__makeTemplateObject(["\n width: 100%;\n font-size: 24px;\n font-weight: 700;\n margin-top: 0.5em;\n color: ",";\n @media screen and (max-width: 768px) {\n font-size: 5vw;\n }\n"],["\n width: 100%;\n font-size: 24px;\n font-weight: 700;\n margin-top: 0.5em;\n color: ",";\n @media screen and (max-width: 768px) {\n font-size: 5vw;\n }\n"])),function(e){return e.themeColors.main}),g=A.default.div(o||(o=l.__makeTemplateObject(["\n width: 100%;\n font-size: 18px;\n margin: 0.333em 0;\n color: ",";\n @media screen and (max-width: 768px) {\n font-size: 4vw;\n }\n"],["\n width: 100%;\n font-size: 18px;\n margin: 0.333em 0;\n color: ",";\n @media screen and (max-width: 768px) {\n font-size: 4vw;\n }\n"])),function(e){return e.themeColors.secondary}),d=A.default.div(u||(u=l.__makeTemplateObject(["\n transition: background-color 0.2s ease-in-out;\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n background-color: ",";\n border-radius: 12px;\n padding: 24px 16px;\n @media screen and (max-width: 768px) {\n padding: 1vw;\n }\n"],["\n transition: background-color 0.2s ease-in-out;\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n background-color: ",";\n border-radius: 12px;\n padding: 24px 16px;\n @media screen and (max-width: 768px) {\n padding: 1vw;\n }\n"])),function(e){return e.themeColors.background}),f=A.default.div(a||(a=l.__makeTemplateObject(["\n width: 100%;\n padding: 8px;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n cursor: pointer;\n border-radius: 0;\n border: ",";\n @media (hover: hover) {\n &:hover "," {\n background-color: ",";\n }\n }\n"],["\n width: 100%;\n padding: 8px;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n cursor: pointer;\n border-radius: 0;\n border: ",";\n @media (hover: hover) {\n &:hover "," {\n background-color: ",";\n }\n }\n"])),function(e){return"1px solid "+e.themeColors.border},d,function(e){return e.themeColors.hover});t.Provider=function(e){var t=e.name,n=e.logo,i=e.description,r=e.themeColors,o=e.onClick,u=l.__rest(e,["name","logo","description","themeColors","onClick"]);return c.createElement(f,l.__assign({themeColors:r,className:s.PROVIDER_WRAPPER_CLASSNAME,onClick:o},u),c.createElement(d,{themeColors:r,className:s.PROVIDER_CONTAINER_CLASSNAME},c.createElement(M,{className:s.PROVIDER_ICON_CLASSNAME},c.createElement("img",{src:n,alt:t})),c.createElement(I,{themeColors:r,className:s.PROVIDER_NAME_CLASSNAME},t),c.createElement(g,{themeColors:r,className:s.PROVIDER_DESCRIPTION_CLASSNAME},i)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);i.__exportStar(n(16),t),i.__exportStar(n(79),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventController=void 0;var i=function(){function e(){this._eventCallbacks=[]}return e.prototype.on=function(e){this._eventCallbacks.push(e)},e.prototype.off=function(e){e?e.callback?this._eventCallbacks=this._eventCallbacks.filter(function(t){return t.event!==e.event||t.callback!==e.callback}):this._eventCallbacks=this._eventCallbacks.filter(function(t){return t.event!==e.event}):this._eventCallbacks=[]},e.prototype.trigger=function(e,t){var n=this._eventCallbacks.filter(function(t){return t.event===e});n&&n.length&&n.forEach(function(e){e.callback(t)})},e}();t.EventController=i},function(e,t){e.exports=function(e,t,n,i){var r=n?n.call(i,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),u=Object.keys(t);if(o.length!==u.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),l=0;li&&(i=(t=t.trim()).charCodeAt(0)),i){case 38:return t.replace(d,"$1"+e.trim());case 58:return e.trim()+t.replace(d,"$1"+e.trim());default:if(0<1*n&&0l.charCodeAt(8))break;case 115:u=u.replace(l,"-webkit-"+l)+";"+u;break;case 207:case 102:u=u.replace(l,"-webkit-"+(102a.charCodeAt(0)&&(a=a.trim()),a=[a],0I)&&(Y=(Z=Z.replace(" ",":")).length),0h.length&&h.push(e)}function S(e,t,n){return null==e?0:function e(t,n,i,r){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var l=!1;if(null===t)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case o:case u:l=!0}}if(l)return i(r,t,""===n?"."+Q(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c
public async void GetArray() { - var response = await Evm.GetArray(Web3Accessor.Web3, Contracts.ArrayTotal, ABI.ArrayTotal, methodArrayGet); + var response = await Evm.GetArray(Web3Accessor.Web3, ChainSafeContracts.ArrayTotal, ABI.ArrayTotal, methodArrayGet); var responseString = string.Join(",\n", response.Select((list, i) => $"#{i} {string.Join((string)", ", (IEnumerable)list)}")); SampleOutputUtil.PrintResult(responseString, nameof(Evm), nameof(Evm.GetArray)); } @@ -155,7 +151,7 @@ public async void GetArray() /// public async void SendArray() { - var response = await Evm.SendArray(Web3Accessor.Web3, methodArraySend, ABI.ArrayTotal, Contracts.ArrayTotal, stringArraySend); + var response = await Evm.SendArray(Web3Accessor.Web3, methodArraySend, ABI.ArrayTotal, ChainSafeContracts.ArrayTotal, stringArraySend); var output = SampleOutputUtil.BuildOutputValue(response); SampleOutputUtil.PrintResult(output, nameof(Evm), nameof(Evm.SendArray)); } @@ -178,7 +174,7 @@ public async void GetGasLimit() { increaseAmountSend }; - var gasLimit = await Evm.GetGasLimit(Web3Accessor.Web3, ABI.ArrayTotal, Contracts.ArrayTotal, methodSend, args); + var gasLimit = await Evm.GetGasLimit(Web3Accessor.Web3, ABI.ArrayTotal, ChainSafeContracts.ArrayTotal, methodSend, args); SampleOutputUtil.PrintResult(gasLimit.ToString(), nameof(Evm), nameof(Evm.GetGasLimit)); } @@ -218,7 +214,7 @@ public async void GetTransactionStatus() /// public async void RegisteredContract() { - var balance = await Evm.UseRegisteredContract(Web3Accessor.Web3, registeredContractName, EthMethod.BalanceOf); + var balance = await Evm.UseRegisteredContract(Web3Accessor.Web3, registeredContractName, EthMethods.BalanceOf); SampleOutputUtil.PrintResult(balance.ToString(), nameof(Evm), nameof(Evm.UseRegisteredContract)); } @@ -324,34 +320,18 @@ public void EcdsaGetAddress() SampleOutputUtil.PrintResult(result, nameof(Evm), nameof(Evm.EcdsaGetAddress)); } - /// - /// Uploads to IPFS - /// - public async void IPFSUpload() - { - var cid = await Evm.Upload(new IpfsUploadRequest - { - ApiKey = apiKey, - Data = data, - BucketId = bucketId, - Path = path, - Filename = filename - }); - SampleOutputUtil.PrintResult(cid, nameof(IpfsSample), nameof(IpfsSample.Upload)); - } - /// /// Makes multiple calls /// public async void MultiCall() { - var erc20Contract = Web3Accessor.Web3.ContractBuilder.Build(ABI.Erc20, Contracts.Erc20); - var erc20BalanceOfCalldata = erc20Contract.Calldata(EthMethod.BalanceOf, new object[] + var erc20Contract = Web3Accessor.Web3.ContractBuilder.Build(ABI.Erc20, ChainSafeContracts.Erc20); + var erc20BalanceOfCalldata = erc20Contract.Calldata(EthMethods.BalanceOf, new object[] { Erc20Account }); - var erc20TotalSupplyCalldata = erc20Contract.Calldata(EthMethod.TotalSupply, new object[] + var erc20TotalSupplyCalldata = erc20Contract.Calldata(EthMethods.TotalSupply, new object[] { }); @@ -359,13 +339,13 @@ public async void MultiCall() { new Call3Value() { - Target = Contracts.Erc20, + Target = ChainSafeContracts.Erc20, AllowFailure = true, CallData = erc20BalanceOfCalldata.HexToByteArray(), }, new Call3Value() { - Target = Contracts.Erc20, + Target = ChainSafeContracts.Erc20, AllowFailure = true, CallData = erc20TotalSupplyCalldata.HexToByteArray(), } @@ -377,13 +357,13 @@ public async void MultiCall() if (multicallResultResponse[0] != null && multicallResultResponse[0].Success) { - var decodedBalanceOf = erc20Contract.Decode(EthMethod.BalanceOf, multicallResultResponse[0].ReturnData.ToHex()); + var decodedBalanceOf = erc20Contract.Decode(EthMethods.BalanceOf, multicallResultResponse[0].ReturnData.ToHex()); Debug.Log($"decodedBalanceOf {((BigInteger)decodedBalanceOf[0]).ToString()}"); } if (multicallResultResponse[1] != null && multicallResultResponse[1].Success) { - var decodedTotalSupply = erc20Contract.Decode(EthMethod.TotalSupply, multicallResultResponse[1].ReturnData.ToHex()); + var decodedTotalSupply = erc20Contract.Decode(EthMethods.TotalSupply, multicallResultResponse[1].ReturnData.ToHex()); Debug.Log($"decodedTotalSupply {((BigInteger)decodedTotalSupply[0]).ToString()}"); } } diff --git a/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs b/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs index 7604b48b6..16dd9af8a 100644 --- a/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs +++ b/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs @@ -1,8 +1,6 @@ -using System.Collections.Generic; -using System.Linq; using System.Numerics; +using ChainSafe.Gaming.Evm.Contracts.BuiltIn; using ChainSafe.Gaming.UnityPackage; -using ChainSafe.Gaming.UnityPackage.Model; using Scripts.EVM.Token; using UnityEngine; using UnityEngine.UI; @@ -13,61 +11,68 @@ public class Erc1155Calls : MonoBehaviour { #region Fields - + [Header("Change the fields below for testing purposes")] + #region Balance Of - - private string accountBalanceOf = "0xd25b827D92b0fd656A1c829933e9b0b836d5C3e2"; - private string tokenIdBalanceOf = "1"; + + [Header("Balance Of Call")] + [SerializeField] private string accountBalanceOf = "0xd25b827D92b0fd656A1c829933e9b0b836d5C3e2"; + [SerializeField] private string tokenIdBalanceOf = "1"; #endregion #region Balance Of Batch - - private string[] accountsBalanceOfBatch = { "0xd25b827D92b0fd656A1c829933e9b0b836d5C3e2", "0xE51995Cdb3b1c109E0e6E67ab5aB31CDdBB83E4a" }; - private string[] tokenIdsBalanceOfBatch = { "1", "2" }; + + [Header("Balance Of Batch Call")] + [SerializeField] private string[] accountsBalanceOfBatch = { "0xd25b827D92b0fd656A1c829933e9b0b836d5C3e2", "0xE51995Cdb3b1c109E0e6E67ab5aB31CDdBB83E4a" }; + [SerializeField] private string[] tokenIdsBalanceOfBatch = { "1", "2" }; #endregion #region Uri - - private string tokenIdUri = "1"; + + [Header("URI Call")] + [SerializeField] private string tokenIdUri = "1"; #endregion #region Mint - - private BigInteger idMint = 1; - private BigInteger amountMint = 1; + + [Header("Mint Call")] + [SerializeField] private BigInteger idMint = 1; + [SerializeField] private BigInteger amountMint = 1; #endregion #region Transfer - - private string toAccountTransfer = "0xdD4c825203f97984e7867F11eeCc813A036089D1"; - private BigInteger tokenIdTransfer = 1; - private BigInteger amountTransfer = 1; + + [Header("Transfer Call")] + [SerializeField] private string toAccountTransfer = "0xdD4c825203f97984e7867F11eeCc813A036089D1"; + [SerializeField] private BigInteger tokenIdTransfer = 1; + [SerializeField] private BigInteger amountTransfer = 1; #endregion #region Texture - - private string tokenIdTexture = "0"; + + [Header("Token ID for IPFS texture")] + [SerializeField] private string tokenIdTexture = "0"; public RawImage rawImage; #endregion #endregion - - + /// /// Balance Of ERC1155 Address /// public async void BalanceOf() { - var balance = tokenIdBalanceOf.StartsWith("0x") ? - await Erc1155.BalanceOf(Web3Accessor.Web3, Contracts.Erc1155, accountBalanceOf, tokenIdBalanceOf) - : await Erc1155.BalanceOf(Web3Accessor.Web3, Contracts.Erc1155, accountBalanceOf, BigInteger.Parse(tokenIdBalanceOf)); - SampleOutputUtil.PrintResult(balance.ToString(), nameof(Erc1155), nameof(Erc1155.BalanceOf)); + var balance = await Web3Accessor.Web3.Erc1155.GetBalanceOf( + ChainSafeContracts.Erc1155, + tokenIdBalanceOf, + accountBalanceOf); + SampleOutputUtil.PrintResult(balance.ToString(), "ERC-1155",nameof(Erc1155Service.GetBalanceOf)); } /// @@ -75,9 +80,11 @@ await Erc1155.BalanceOf(Web3Accessor.Web3, Contracts.Erc1155, accountBalanceOf, /// public async void BalanceOfBatch() { - var balances = await Erc1155.BalanceOfBatch(Web3Accessor.Web3, Contracts.Erc1155, accountsBalanceOfBatch, tokenIdsBalanceOfBatch); - var balancesString = string.Join(", ", balances); - SampleOutputUtil.PrintResult(balancesString, nameof(Erc1155), nameof(Erc1155.BalanceOfBatch)); + var balances = await Web3Accessor.Web3.Erc1155.GetBalanceOfBatch( + ChainSafeContracts.Erc1155, + accountsBalanceOfBatch, + tokenIdsBalanceOfBatch); + SampleOutputUtil.PrintResult(string.Join(", ", balances), "ERC-1155",nameof(Erc1155Service.GetBalanceOfBatch)); } /// @@ -85,8 +92,10 @@ public async void BalanceOfBatch() /// public async void Uri() { - var uri = await Erc1155.Uri(Web3Accessor.Web3, Contracts.Erc1155, tokenIdUri); - SampleOutputUtil.PrintResult(uri, nameof(Erc1155), nameof(Erc1155.Uri)); + var uri = await Web3Accessor.Web3.Erc1155.GetUri( + ChainSafeContracts.Erc1155, + tokenIdUri); + SampleOutputUtil.PrintResult(uri, "ERC-1155",nameof(Erc1155Service.GetUri)); } /// @@ -94,9 +103,12 @@ public async void Uri() /// public async void MintErc1155() { - var response = await Erc1155.MintErc1155(Web3Accessor.Web3, ABI.Erc1155, Contracts.Erc1155, idMint, amountMint); + var response = await Web3Accessor.Web3.Erc1155.Mint( + ChainSafeContracts.Erc1155, + idMint, + amountMint); var output = SampleOutputUtil.BuildOutputValue(response); - SampleOutputUtil.PrintResult(output, nameof(Erc1155), nameof(Erc1155.MintErc1155)); + SampleOutputUtil.PrintResult(output, "ERC-1155",nameof(Erc1155Service.Mint)); } /// @@ -104,9 +116,13 @@ public async void MintErc1155() /// public async void TransferErc1155() { - var response = await Erc1155.TransferErc1155(Web3Accessor.Web3, Contracts.Erc1155, tokenIdTransfer, amountTransfer, toAccountTransfer); + var response = await Web3Accessor.Web3.Erc1155.Transfer( + ChainSafeContracts.Erc1155, + tokenIdTransfer, + amountTransfer, + toAccountTransfer); var output = SampleOutputUtil.BuildOutputValue(response); - SampleOutputUtil.PrintResult(output, nameof(Erc1155), nameof(Erc1155.TransferErc1155)); + SampleOutputUtil.PrintResult(output, "ERC-1155",nameof(Erc1155Service.Transfer)); } /// @@ -114,7 +130,7 @@ public async void TransferErc1155() /// public async void ImportNftTexture1155() { - var textureRequest = await Erc1155.ImportNftTexture1155(Web3Accessor.Web3, Contracts.Erc1155, tokenIdTexture); - rawImage.texture = textureRequest; + var texture = await Web3Accessor.Web3.Erc1155.ImportTexture(ChainSafeContracts.Erc1155, tokenIdTexture); + rawImage.texture = texture; } } \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs b/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs index 33824b325..0d8d31c16 100644 --- a/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs +++ b/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs @@ -1,4 +1,6 @@ using System.Numerics; +using ChainSafe.Gaming.Evm.Contracts.BuiltIn; +using ChainSafe.Gaming.Evm.Providers; using ChainSafe.Gaming.UnityPackage; using Scripts.EVM.Token; using UnityEngine; @@ -9,23 +11,27 @@ public class Erc20Calls : MonoBehaviour { #region Fields + [Header("Change the fields below for testing purposes")] #region Balance Of - - private string accountBalanceOf = "0xd25b827D92b0fd656A1c829933e9b0b836d5C3e2"; + + [Header("Balance Of Call")] + [SerializeField] private string accountBalanceOf = "0xd25b827D92b0fd656A1c829933e9b0b836d5C3e2"; #endregion #region Mint - - private BigInteger amountMint = 1000000000000000000; + + [Header("Mint Call")] + [SerializeField] private BigInteger amountMint = 1000000000000000000; #endregion #region Transfer - - private const string toAccount = "0xdD4c825203f97984e7867F11eeCc813A036089D1"; - private BigInteger amountTransfer = 1000000000000000; + + [Header("Transfer Call")] + [SerializeField] private string toAccount = "0xdD4c825203f97984e7867F11eeCc813A036089D1"; + [SerializeField] private BigInteger amountTransfer = 1000000000000000; #endregion @@ -36,17 +42,8 @@ public class Erc20Calls : MonoBehaviour /// public async void BalanceOf() { - var balance = await Erc20.BalanceOf(Web3Accessor.Web3, Contracts.Erc20, accountBalanceOf); - SampleOutputUtil.PrintResult(balance.ToString(), nameof(Erc20), nameof(Erc20.BalanceOf)); - } - - /// - /// Custom ERC20 token balance of an address - /// - public async void CustomTokenBalanceOf() - { - var result = await Erc20.CustomTokenBalance(Web3Accessor.Web3, ABI.Erc20, Contracts.Erc20); - SampleOutputUtil.PrintResult(result.ToString(), nameof(Erc20), nameof(Erc20.CustomTokenBalance)); + var balance = await Web3Accessor.Web3.Erc20.GetBalanceOf(ChainSafeContracts.Erc20, accountBalanceOf); + SampleOutputUtil.PrintResult(balance.ToString(), "ERC-20", nameof(Erc20Service.GetBalanceOf)); } /// @@ -54,8 +51,8 @@ public async void CustomTokenBalanceOf() /// public async void NativeBalanceOf() { - var result = await Erc20.NativeBalanceOf(Web3Accessor.Web3, accountBalanceOf); - SampleOutputUtil.PrintResult(result.ToString(), nameof(Erc20), nameof(Erc20.NativeBalanceOf)); + var balance = await Web3Accessor.Web3.RpcProvider.GetBalance(accountBalanceOf); + SampleOutputUtil.PrintResult(balance.ToString(), "ERC-20", nameof(NativeBalanceOf)); } /// @@ -63,8 +60,8 @@ public async void NativeBalanceOf() /// public async void Name() { - var result = await Erc20.Name(Web3Accessor.Web3, Contracts.Erc20); - SampleOutputUtil.PrintResult(result, nameof(Erc20), nameof(Erc20.Name)); + var name = await Web3Accessor.Web3.Erc20.GetName(ChainSafeContracts.Erc20); + SampleOutputUtil.PrintResult(name, "ERC-20", nameof(Erc20Service.GetName)); } /// @@ -72,8 +69,8 @@ public async void Name() /// public async void Symbol() { - var result = await Erc20.Symbol(Web3Accessor.Web3, Contracts.Erc20); - SampleOutputUtil.PrintResult(result, nameof(Erc20), nameof(Erc20.Symbol)); + var symbol = await Web3Accessor.Web3.Erc20.GetSymbol(ChainSafeContracts.Erc20); + SampleOutputUtil.PrintResult(symbol, "ERC-20", nameof(Erc20Service.GetSymbol)); } /// @@ -81,8 +78,8 @@ public async void Symbol() /// public async void Decimals() { - var decimals = await Erc20.Decimals(Web3Accessor.Web3, Contracts.Erc20); - SampleOutputUtil.PrintResult(decimals.ToString(), nameof(Erc20), nameof(Erc20.Decimals)); + var decimals = await Web3Accessor.Web3.Erc20.GetDecimals(ChainSafeContracts.Erc20); + SampleOutputUtil.PrintResult(decimals.ToString(), "ERC-20", nameof(Erc20Service.GetDecimals)); } /// @@ -90,8 +87,8 @@ public async void Decimals() /// public async void TotalSupply() { - var result = await Erc20.TotalSupply(Web3Accessor.Web3, Contracts.Erc20); - SampleOutputUtil.PrintResult(result.ToString(), nameof(Erc20), nameof(Erc20.TotalSupply)); + var totalSupply = await Web3Accessor.Web3.Erc20.GetTotalSupply(ChainSafeContracts.Erc20); + SampleOutputUtil.PrintResult(totalSupply.ToString(), "ERC-20", nameof(Erc20Service.GetTotalSupply)); } /// @@ -99,9 +96,9 @@ public async void TotalSupply() /// public async void MintErc20() { - var response = await Erc20.MintErc20(Web3Accessor.Web3, Contracts.Erc20, toAccount, amountMint); - var output = SampleOutputUtil.BuildOutputValue(response); - SampleOutputUtil.PrintResult(output, nameof(Erc20), nameof(Erc20.MintErc20)); + var mintResponse = await Web3Accessor.Web3.Erc20.Mint(ChainSafeContracts.Erc20, amountMint, toAccount); + var output = SampleOutputUtil.BuildOutputValue(mintResponse); + SampleOutputUtil.PrintResult(output, "ERC-20", nameof(Erc20Service.Mint)); } /// @@ -109,8 +106,8 @@ public async void MintErc20() /// public async void TransferErc20() { - var response = await Erc20.TransferErc20(Web3Accessor.Web3, Contracts.Erc20, toAccount, amountTransfer); - var output = SampleOutputUtil.BuildOutputValue(response); - SampleOutputUtil.PrintResult(output, nameof(Erc20), nameof(Erc20.TransferErc20)); + var mintResponse = await Web3Accessor.Web3.Erc20.Transfer(ChainSafeContracts.Erc20, toAccount, amountTransfer); + var output = SampleOutputUtil.BuildOutputValue(mintResponse); + SampleOutputUtil.PrintResult(output, "ERC-20", nameof(Erc20Service.Transfer)); } } \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs b/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs index 584ef849b..4a1dc3524 100644 --- a/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs +++ b/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs @@ -1,9 +1,7 @@ -using System.Collections.Generic; using System.Linq; -using System.Numerics; using System.Text; +using ChainSafe.Gaming.Evm.Contracts.BuiltIn; using ChainSafe.Gaming.UnityPackage; -using ChainSafe.Gaming.UnityPackage.Model; using Scripts.EVM.Token; using UnityEngine; @@ -13,42 +11,49 @@ public class Erc721Calls : MonoBehaviour { #region Fields + [Header("Change the fields below for testing purposes")] #region Balance Of - - private string accountBalanceOf = "0xd25b827D92b0fd656A1c829933e9b0b836d5C3e2"; + + [Header("Balance Of Call")] + [SerializeField] private string accountBalanceOf = "0xd25b827D92b0fd656A1c829933e9b0b836d5C3e2"; #endregion #region Owner Of - - private string tokenIdOwnerOf = "1"; + + [Header("Owner Of Call")] + [SerializeField] private string tokenIdOwnerOf = "1"; #endregion - + + [Header("Balance Of Batch Call")] #region Owner Of Batch - private string[] tokenIdsOwnerOfBatch = { "4", "50", "6" }; + [SerializeField] private string[] tokenIdsOwnerOfBatch = { "4", "50", "6" }; #endregion #region Uri - - private string tokenIdUri = "0x01559ae4021a565d5cc4740f1cefa95de8c1fb193949ecd32c337b03047da501"; + + [Header("URI Call")] + [SerializeField] private string tokenIdUri = "0x01559ae4021a565d5cc4740f1cefa95de8c1fb193949ecd32c337b03047da501"; #endregion #region Mint - - private string uriMint = "1"; + + [Header("Mint Call")] + [SerializeField] private string uriMint = "1"; #endregion #region Transfer - - private string contractTransfer = "0x358AA13c52544ECCEF6B0ADD0f801012ADAD5eE3"; - private string toAccountTransfer = "0xdD4c825203f97984e7867F11eeCc813A036089D1"; - private int tokenIdTransfer = 0; + + [Header("Transfer Call")] + [SerializeField] private string contractTransfer = "0x358AA13c52544ECCEF6B0ADD0f801012ADAD5eE3"; + [SerializeField] private string toAccountTransfer = "0xdD4c825203f97984e7867F11eeCc813A036089D1"; + [SerializeField] private int tokenIdTransfer = 0; #endregion @@ -59,8 +64,8 @@ public class Erc721Calls : MonoBehaviour /// public async void BalanceOf() { - var balance = await Erc721.BalanceOf(Web3Accessor.Web3, Contracts.Erc721, accountBalanceOf); - SampleOutputUtil.PrintResult(balance.ToString(), nameof(Erc721), nameof(Erc721.BalanceOf)); + var balance = await Web3Accessor.Web3.Erc721.GetBalanceOf(ChainSafeContracts.Erc721, accountBalanceOf); + SampleOutputUtil.PrintResult(balance.ToString(), "ERC-721", nameof(Erc721Service.GetBalanceOf)); } /// @@ -68,12 +73,8 @@ public async void BalanceOf() /// public async void OwnerOf() { - var contract = Web3Accessor.Web3.ContractBuilder.Build(ABI.Erc721, Contracts.Erc721); - Debug.Log(contract.Calldata("ownerOf", new object[] { tokenIdOwnerOf })); - var owner = tokenIdOwnerOf.StartsWith("0x") ? - await Erc721.OwnerOf(Web3Accessor.Web3, Contracts.Erc721, tokenIdOwnerOf) - : await Erc721.OwnerOf(Web3Accessor.Web3, Contracts.Erc721, BigInteger.Parse(tokenIdOwnerOf)); - SampleOutputUtil.PrintResult(owner, nameof(Erc721), nameof(Erc721.OwnerOf)); + var owner = await Web3Accessor.Web3.Erc721.GetOwnerOf(ChainSafeContracts.Erc721, tokenIdOwnerOf); + SampleOutputUtil.PrintResult(owner, "ERC-721", nameof(Erc721Service.GetOwnerOf)); } /// @@ -81,8 +82,8 @@ await Erc721.OwnerOf(Web3Accessor.Web3, Contracts.Erc721, tokenIdOwnerOf) /// public async void OwnerOfBatch() { - var owners = await Erc721.OwnerOfBatch(Web3Accessor.Web3, Contracts.Erc721, tokenIdsOwnerOfBatch); - StringBuilder ownersString = new StringBuilder(); + var owners = await Web3Accessor.Web3.Erc721.GetOwnerOfBatch(ChainSafeContracts.Erc721, tokenIdsOwnerOfBatch); + var ownersString = new StringBuilder(); var dict = owners.GroupBy(x => x.Owner).ToDictionary(x => x.Key, x => x.Select(x => x.TokenId).ToList()); foreach (var owner in dict) { @@ -92,7 +93,7 @@ public async void OwnerOfBatch() ownersString.AppendLine("\t" + tokenId); } } - SampleOutputUtil.PrintResult(ownersString.ToString(), nameof(Erc721), nameof(Erc721.OwnerOfBatch)); + SampleOutputUtil.PrintResult(ownersString.ToString(), "ERC-721", nameof(Erc721Service.GetOwnerOfBatch)); } /// @@ -100,8 +101,8 @@ public async void OwnerOfBatch() /// public async void Uri() { - var uri = await Erc721.Uri(Web3Accessor.Web3, Contracts.Erc721, tokenIdUri); - SampleOutputUtil.PrintResult(uri, nameof(Erc721), nameof(Erc721.Uri)); + var uri = await Web3Accessor.Web3.Erc721.GetUri(ChainSafeContracts.Erc721, tokenIdUri); + SampleOutputUtil.PrintResult(uri, "ERC-721", nameof(Erc721Service.GetUri)); } /// @@ -109,9 +110,9 @@ public async void Uri() /// public async void MintErc721() { - var response = await Erc721.MintErc721(Web3Accessor.Web3, ABI.Erc721, Contracts.Erc721, uriMint); + var response = await Web3Accessor.Web3.Erc721.Mint(ChainSafeContracts.Erc721, uriMint); var output = SampleOutputUtil.BuildOutputValue(response); - SampleOutputUtil.PrintResult(output, nameof(Erc721), nameof(Erc721.MintErc721)); + SampleOutputUtil.PrintResult(output, "ERC-721", nameof(Erc721Service.GetUri)); } /// @@ -119,8 +120,8 @@ public async void MintErc721() /// public async void TransferErc721() { - var response = await Erc721.TransferErc721(Web3Accessor.Web3, contractTransfer, toAccountTransfer, tokenIdTransfer); + var response = await Web3Accessor.Web3.Erc721.Transfer(contractTransfer, toAccountTransfer, tokenIdTransfer); var output = SampleOutputUtil.BuildOutputValue(response); - SampleOutputUtil.PrintResult(output, nameof(Erc721), nameof(Erc721.TransferErc721)); + SampleOutputUtil.PrintResult(output, "ERC-721", nameof(Erc721Service.Transfer)); } } \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/IPFS.meta b/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/IPFS.meta new file mode 100644 index 000000000..379f2d5e5 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/IPFS.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b70d421e7223b8049aaf18e07497da9b +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/IPFS/IPFSCalls.cs b/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/IPFS/IPFSCalls.cs new file mode 100644 index 000000000..8e880b8a8 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/IPFS/IPFSCalls.cs @@ -0,0 +1,84 @@ +using System.Collections.Generic; +using ChainSafe.Gaming.UnityPackage.Model; +using UnityEngine; +using ChainSafe.Gaming.Marketplace; + +public class IPFSCalls : MonoBehaviour +{ + #region Fields + + [Header("IPFS VALUES")] + [SerializeField] private string apiSecretKey = "Fill In Your API Secret Key From Storage"; + [SerializeField] private string bucketId = "Fill In Your Bucket ID From Storage"; + [SerializeField] private string fileNameImage = "Logo.png"; + [SerializeField] private string fileNameMetaData = "MetaData.json"; + [SerializeField] private string nftName = "Name of the NFT"; + [SerializeField] private string description = "An NFT description"; + [SerializeField] private string externalUrl = "The URL that appears below your assets image"; + [SerializeField] private List display_types = new List { "Stamina", "Boost Number" }; + [SerializeField] private List trait_types = new List { "Health", "Thunder Power" }; + [SerializeField] private List values = new List { "5", "20" }; + [Header("Required for image only upload")] + [SerializeField] private string imageCID = "Enter your image CID from storage or upload call"; + + #endregion + + #region Methods + + /// + /// Uploads an image selected by the user to IPFS + /// + public async void IPFSUploadImage() + { + var uploadRequest = new IPFSUploadRequestModel + { + ApiKey = apiSecretKey, + BucketId = bucketId, + FileNameImage = fileNameImage + }; + var cid = await IPFS.UploadImage(uploadRequest); + Debug.Log($"Image uploaded to https://ipfs.chainsafe.io/ipfs/{cid}"); + } + + /// + /// Uploads metadata to IPFS + /// + public async void IPFSUploadMetadata() + { + var uploadRequest = new IPFSUploadRequestModel + { + ApiKey = apiSecretKey, + BucketId = bucketId, + Image = imageCID, + FileNameMetaData = fileNameMetaData, + Name = nftName, + Description = description, + External_url = externalUrl, + attributes = IPFS.CreateAttributesList(display_types, trait_types, values) + }; + var cid = await IPFS.UploadMetaData(uploadRequest); + Debug.Log($"Metadata uploaded to https://ipfs.chainsafe.io/ipfs/{cid}"); + } + + /// + /// Uploads an image selected by the user including metadata to IPFS + /// + public async void IPFSUploadImageAndMetadata() + { + var uploadRequest = new IPFSUploadRequestModel + { + ApiKey = apiSecretKey, + BucketId = bucketId, + FileNameImage = fileNameImage, + FileNameMetaData = fileNameMetaData, + Name = name, + Description = description, + External_url = externalUrl, + attributes = IPFS.CreateAttributesList(display_types, trait_types, values) + }; + var cid = await IPFS.UploadImageAndMetadata(uploadRequest); + Debug.Log($"Image & metadata uploaded to https://ipfs.chainsafe.io/ipfs/{cid}"); + } + + #endregion +} diff --git a/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/IPFS/IPFSCalls.cs.meta b/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/IPFS/IPFSCalls.cs.meta new file mode 100644 index 000000000..dfa434674 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/IPFS/IPFSCalls.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9a86b695c20675b43ba7a0f0a496749c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/Marketplace.meta b/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/Marketplace.meta new file mode 100644 index 000000000..4dd7b0018 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/Marketplace.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 46c47784b8c4b6040936da2a1ee85782 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/Marketplace/MarketplaceCalls.cs b/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/Marketplace/MarketplaceCalls.cs new file mode 100644 index 000000000..6f9b88f70 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/Marketplace/MarketplaceCalls.cs @@ -0,0 +1,275 @@ +#if MARKETPLACE_AVAILABLE +using Scripts.EVM.Marketplace; +using UnityEngine; + +/// +/// Marketplace sample calls for use with the api documentation. +/// Marketplace Api: https://docs.gaming.chainsafe.io/marketplace-api/docs/marketplaceapi +/// Token Api: https://docs.gaming.chainsafe.io/token-api/docs/tokenapi +/// +public class MarketplaceCalls : MonoBehaviour +{ + #region fields + [Header("Change the fields below for testing purposes")] + + [Header("Bearer token")] + [SerializeField] private string bearerToken = "Please set your bearer token from the ChainSafe dashboard"; + + [Header("721 Collection Call")] + [SerializeField] private string collectionId721 = "Set 721 collection ID"; + + [Header("1155 Collection Call")] + [SerializeField] private string collectionId1155 = "Set 1155 collection ID"; + + [Header("Marketplace Calls")] + [SerializeField] private string marketplaceId = "Set marketplace ID"; + + [Header("Token Calls")] + [SerializeField] private string tokenId = "Set token ID i.e 1"; + + [Header("Create 721 Collection Call")] + [SerializeField] private string collectionName721 = "Set 721 collection name"; + [SerializeField] private string collectionDescription721 = "Set 721 collection description"; + [SerializeField] private bool collectionMintingPublic721 = false; + + [Header("Create 1155 Collection Call")] + [SerializeField] private string collectionName1155 = "Set 1155 collection name"; + [SerializeField] private string collectionDescription1155 = "Set 1155 collection description"; + [SerializeField] private bool collectionMintingPublic1155 = false; + + [Header("Delete calls (Can only be used before the item is on chain)")] + [SerializeField] private string collectionToDelete = "Set collection to delete"; + [SerializeField] private string marketplaceToDelete = "Set marketplace to delete"; + + [Header("Mint 721 to collection calls")] + [SerializeField] private string collectionContract721 = "Set 721 collection to mint to"; + [SerializeField] private string uri721 = "Set metadata uri with full path i.e. https://ipfs.chainsafe.io/ipfs/bafyjvzacdj4apx52hvbyjkwyf7i6a7t3pcqd4kw4xxfc67hgvn3a"; + + [Header("Mint 1155 to collection calls")] + [SerializeField] private string collectionContract1155 = "Set 1155 collection to mint to"; + [SerializeField] private string uri1155 = "Set metadata uri with full path i.e. https://ipfs.chainsafe.io/ipfs/bafyjvzacdj4apx52hvbyjkwyf7i6a7t3pcqd4kw4xxfc67hgvn3a"; + [SerializeField] private string amount1155 = "Set amount of Nfts to mint i.e 1"; + + [Header("Create marketplace call")] + [SerializeField] private string marketplaceName = "Set marketplace name"; + [SerializeField] private string marketplaceDescription = "Set marketplace description"; + [SerializeField] private bool marketplaceWhitelisting = false; + + [Header("List to marketplace calls")] + [SerializeField] private string tokenIdToList = "Set token ID to list"; + [SerializeField] private string weiPriceToList = "Set price in wei to list for i.e 100000000000000"; + [SerializeField] private string marketplaceContractToListTo = "Set marketplace contract to list to"; + [SerializeField] private string collectionContractToList = "Set collection contract to list from"; + + [Header("List to marketplace calls")] + [SerializeField] private string marketplaceContractToBuyFrom = "Set marketplace contract to buy from"; + [SerializeField] private string tokenIdToBuy = "Set token ID to buy"; + [SerializeField] private string weiPriceToBuy = "Set price in wei to buy with i.e 100000000000000"; + + #endregion + + #region Methods + + /// + /// Gets all items in a project. + /// + public async void GetProjectItems() + { + var response = await Marketplace.GetProjectItems(); + Debug.Log($"Total: {response.total}"); + foreach (var item in response.items) + { + Marketplace.PrintObject(item); + } + } + + /// + /// Gets all items in a marketplace. + /// + public async void GetMarketplaceItems() + { + var response = await Marketplace.GetMarketplaceItems(marketplaceId); + Debug.Log($"Total: {response.total}"); + foreach (var item in response.items) + { + Marketplace.PrintObject(item); + } + } + + /// + /// Gets items listed by token id. + /// + public async void GetItem() + { + var response = await Marketplace.GetItem(marketplaceId, tokenId); + Marketplace.PrintObject(response.token); + } + + /// + /// Gets all tokens in a project. + /// + public async void GetProjectTokens() + { + var response = await Marketplace.GetProjectTokens(); + foreach (var token in response.tokens) + { + Marketplace.PrintObject(token); + } + } + + /// + /// Gets all tokens in a 721 collection. + /// + public async void GetCollectionTokens721() + { + var response = await Marketplace.GetCollectionTokens721(collectionId721); + foreach (var token in response.tokens) + { + Marketplace.PrintObject(token); + } + } + + /// + /// Gets all tokens in a 1155 collection. + /// + public async void GetCollectionTokens1155() + { + var response = await Marketplace.GetCollectionTokens1155(collectionId1155); + foreach (var token in response.tokens) + { + Marketplace.PrintObject(token); + } + } + + /// + /// Gets the information of a token in a collection via id. Token id is optional. + /// + public async void GetCollectionToken() + { + var response = await Marketplace.GetCollectionToken(collectionId721, tokenId); + Marketplace.PrintObject(response); + } + + /// + /// Gets the owners of a token id in a collection. + /// + public async void GetTokenOwners() + { + var response = await Marketplace.GetTokenOwners(collectionId1155, tokenId); + foreach (var owner in response.owners) + { + Marketplace.PrintObject(owner); + } + } + + /// + /// Creates a 721 collection + /// + public async void Create721Collection() + { + var data = await Marketplace.Create721Collection(bearerToken, collectionName721, collectionDescription721, collectionMintingPublic721); + var response = SampleOutputUtil.BuildOutputValue(data); + Debug.Log($"TX: {response}"); + } + + /// + /// Creates a 1155 collection + /// + public async void Create1155Collection() + { + var data = await Marketplace.Create1155Collection(bearerToken, collectionName1155, collectionDescription1155, collectionMintingPublic1155); + var response = SampleOutputUtil.BuildOutputValue(data); + Debug.Log($"TX: {response}"); + } + + /// + /// Mints an NFT to a 721 collection + /// + public async void Mint721CollectionNft() + { + var data = await Marketplace.Mint721CollectionNft(collectionContract721, uri721); + var response = SampleOutputUtil.BuildOutputValue(data); + Debug.Log($"TX: {response}"); + } + + /// + /// Mints an NFT to a 1155 collection + /// + public async void Mint1155CollectionNft() + { + var data = await Marketplace.Mint1155CollectionNft(collectionContract1155, uri1155, amount1155); + var response = SampleOutputUtil.BuildOutputValue(data); + Debug.Log($"TX: {response}"); + } + + /// + /// Deletes a collection that isn't on chain yet + /// + public async void DeleteCollection() + { + var response = await Marketplace.DeleteCollection(bearerToken, collectionToDelete); + Debug.Log(response); + } + + /// + /// Creates a marketplace + /// + public async void CreateMarketplace() + { + var data = await Marketplace.CreateMarketplace(bearerToken, marketplaceName, marketplaceDescription, marketplaceWhitelisting); + var response = SampleOutputUtil.BuildOutputValue(data); + Debug.Log($"TX: {response}"); + } + + /// + /// Deletes a marketplace that isn't on chain yet + /// + public async void DeleteMarketplace() + { + var response = await Marketplace.DeleteMarketplace(bearerToken,marketplaceToDelete); + Debug.Log(response); + } + + /// + /// Approves marketplace to list tokens + /// + public async void ApproveListNftsToMarketplace() + { + var data = await Marketplace.SetApprovalMarketplace(collectionContractToList, marketplaceContractToListTo, "1155",true); + var response = SampleOutputUtil.BuildOutputValue(data); + Debug.Log($"TX: {response}"); + } + + /// + /// Revokes approval from marketplace to list tokens + /// + public async void RevokeApprovalListNftsToMarketplace() + { + var data = await Marketplace.SetApprovalMarketplace(collectionContractToList, marketplaceContractToListTo, "1155",false); + var response = SampleOutputUtil.BuildOutputValue(data); + Debug.Log($"TX: {response}"); + } + + /// + /// Lists NFTs to the marketplace + /// + public async void ListNftsToMarketplace() + { + var data = await Marketplace.ListNftsToMarketplace(marketplaceContractToListTo,collectionContractToList, tokenIdToList, weiPriceToList); + var response = SampleOutputUtil.BuildOutputValue(data); + Debug.Log($"TX: {response}"); + } + + /// + /// Purchases an Nft from the marketplace + /// + public async void PurchaseNftFromMarketplace() + { + var data = await Marketplace.PurchaseNft(marketplaceContractToBuyFrom, tokenIdToBuy, weiPriceToBuy); + var response = SampleOutputUtil.BuildOutputValue(data); + Debug.Log($"TX: {response}"); + } + + #endregion +} +#endif \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/Marketplace/MarketplaceCalls.cs.meta b/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/Marketplace/MarketplaceCalls.cs.meta new file mode 100644 index 000000000..17b02f290 --- /dev/null +++ b/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scenes/SampleMain/Marketplace/MarketplaceCalls.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d447d1e7a64b28a4295aca07791c5557 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scriptable Objects.meta b/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scriptable Objects.meta deleted file mode 100644 index dc7294ade..000000000 --- a/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Scriptable Objects.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 705dbcc9b94ae4160a6c90657ec44bc2 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Utilities/DisableGameObjectIfServiceNotActive.cs b/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Utilities/DisableGameObjectIfServiceNotActive.cs index b2cd3f817..5db9a7e1f 100644 --- a/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Utilities/DisableGameObjectIfServiceNotActive.cs +++ b/Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/Scripts/Utilities/DisableGameObjectIfServiceNotActive.cs @@ -4,14 +4,16 @@ using ChainSafe.Gaming.UnityPackage; using ChainSafe.GamingSdk.Gelato.Types; using UnityEngine; +#if MARKETPLACE_AVAILABLE +using ChainSafe.Gaming.Marketplace; +#endif public enum ServiceType { - #if RAMP_AVAILABLE - Ramp, - #endif - Gelato, - Multicall + Ramp = 0, + Gelato = 1, + Multicall = 2, + Marketplace = 3 } public class DisableGameObjectIfServiceNotActive : MonoBehaviour @@ -22,14 +24,19 @@ public class DisableGameObjectIfServiceNotActive : MonoBehaviour #if RAMP_AVAILABLE {ServiceType.Ramp, typeof(ChainSafe.Gaming.Exchangers.Ramp.IRampExchanger)}, #endif + #if MARKETPLACE_AVAILABLE + {ServiceType.Marketplace, typeof(MarketplaceClient)}, + #endif {ServiceType.Gelato, typeof(IGelato)}, {ServiceType.Multicall, typeof(IMultiCall)} }; private void Awake() { - gameObject.SetActive(Web3Accessor.Web3.ServiceProvider.GetService(_typesDictionary[serviceType]) != null); + ShouldGameObjectBeDisabled(); } - + private void ShouldGameObjectBeDisabled() => gameObject.SetActive( + _typesDictionary.TryGetValue(serviceType, out var value) + && Web3Accessor.Web3.ServiceProvider.GetService(value) != null); } \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs b/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs index f57c3d34a..d2512dac7 100644 --- a/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs +++ b/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs @@ -27,15 +27,15 @@ public class Erc1155Tests : SampleTestsBase [UnityTest] public IEnumerator TestBalanceOf() { - var getBalanceOf = Erc1155.BalanceOf(web3, Contracts.Erc1155, _accounts[0], _tokenIds[0]); + var getBalanceOf = web3.Erc1155.GetBalanceOf(ChainSafeContracts.Erc1155, _accounts[0], _tokenIds[0]); yield return new WaitUntil(() => getBalanceOf.IsCompleted); - Assert.AreEqual(new BigInteger(2), getBalanceOf.Result); + Assert.AreEqual(new BigInteger(0), getBalanceOf.Result); } [UnityTest] public IEnumerator TestBalanceOfBatch() { - var getBalanceOf = Erc1155.BalanceOfBatch(web3, Contracts.Erc1155, _accounts, _tokenIds); + var getBalanceOf = web3.Erc1155.GetBalanceOfBatch(ChainSafeContracts.Erc1155, _accounts, _tokenIds); yield return new WaitUntil(() => getBalanceOf.IsCompleted); CollectionAssert.AreEqual(new List { 2, 3 }, getBalanceOf.Result); } @@ -46,7 +46,7 @@ public IEnumerator TestBalanceOfBatch() [UnityTest] public IEnumerator TestUri() { - var uri = Erc1155.Uri(web3, Contracts.Erc1155, _tokenIds[0]); + var uri = web3.Erc1155.GetUri(ChainSafeContracts.Erc1155, _tokenIds[0]); yield return new WaitUntil(() => uri.IsCompleted); Assert.AreEqual(ExpectedUriResult, uri.Result); } @@ -126,7 +126,7 @@ public IEnumerator TestImportNFTTexture() }; #endregion - var texture = Erc1155.ImportNftTexture1155(web3, Contracts.Erc1155, "1"); + var texture = web3.Erc1155.ImportTexture(ChainSafeContracts.Erc1155, "1"); yield return new WaitUntil(() => texture.IsCompleted); CollectionAssert.AreEqual(bytesOfTheTexture, texture.Result.EncodeToJPG(1)); } diff --git a/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs b/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs index 83b37292b..1e02e1f7b 100644 --- a/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs +++ b/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs @@ -1,10 +1,12 @@ using System.Collections; using System.Numerics; using ChainSafe.Gaming.Evm.JsonRpc; +using ChainSafe.Gaming.Evm.Providers; using ChainSafe.Gaming.UnityPackage; using ChainSafe.Gaming.Web3; using ChainSafe.Gaming.Web3.Build; using ChainSafe.Gaming.Web3.Unity; +using Nethereum.Hex.HexTypes; using NUnit.Framework; using Scripts.EVM.Token; using UnityEngine; @@ -27,7 +29,7 @@ public class Erc20Tests : SampleTestsBase [UnityTest] public IEnumerator TestBalanceOf() { - var getBalanceOf = Erc20.BalanceOf(web3, Contracts.Erc20, Account); + var getBalanceOf = web3.Erc20.GetBalanceOf(ChainSafeContracts.Erc20, Account); yield return new WaitUntil(() => getBalanceOf.IsCompleted); Assert.AreEqual(new BigInteger(1000000000000000000), getBalanceOf.Result); } @@ -35,15 +37,15 @@ public IEnumerator TestBalanceOf() [UnityTest] public IEnumerator TestNativeBalanceOf() { - var getNativeBalanceOf = Erc20.NativeBalanceOf(web3, Account); + var getNativeBalanceOf = web3.RpcProvider.GetBalance(Account); yield return new WaitUntil(() => getNativeBalanceOf.IsCompleted); - Assert.AreEqual(new BigInteger(500000000000000000), getNativeBalanceOf.Result); + Assert.AreEqual(new HexBigInteger(500000000000000000), new HexBigInteger(getNativeBalanceOf.Result)); } [UnityTest] public IEnumerator TestDecimals() { - var getDecimals = Erc20.Decimals(web3, Contracts.Erc20); + var getDecimals = web3.Erc20.GetDecimals(ChainSafeContracts.Erc20); yield return new WaitUntil(() => getDecimals.IsCompleted); Assert.AreEqual(new BigInteger(18), getDecimals.Result); } @@ -51,7 +53,7 @@ public IEnumerator TestDecimals() [UnityTest] public IEnumerator TestName() { - var getName = Erc20.Name(web3, Contracts.Erc20); + var getName = web3.Erc20.GetName(ChainSafeContracts.Erc20); yield return new WaitUntil(() => getName.IsCompleted); Assert.AreEqual("CsTestErc20", getName.Result); } @@ -59,7 +61,7 @@ public IEnumerator TestName() [UnityTest] public IEnumerator TestSymbol() { - var getSymbol = Erc20.Symbol(web3, Contracts.Erc20); + var getSymbol = web3.Erc20.GetSymbol(ChainSafeContracts.Erc20); yield return new WaitUntil(() => getSymbol.IsCompleted); Assert.AreEqual("CST", getSymbol.Result); } @@ -67,7 +69,7 @@ public IEnumerator TestSymbol() [UnityTest] public IEnumerator TestTotalSupply() { - var getTotalSupply = Erc20.TotalSupply(web3, TotalSupplyAddress); + var getTotalSupply = web3.Erc20.GetTotalSupply(TotalSupplyAddress); yield return new WaitUntil(() => getTotalSupply.IsCompleted); Assert.AreEqual(new BigInteger(1000000000000000000), getTotalSupply.Result); } diff --git a/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs b/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs index 0e6408bb1..c7aec1de2 100644 --- a/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs +++ b/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs @@ -45,7 +45,7 @@ public class Erc721Tests : SampleTestsBase [UnityTest] public IEnumerator TestBalanceOf() { - var getBalanceOf = Erc721.BalanceOf(web3, Contracts.Erc721, balanceOfAccount); + var getBalanceOf = web3.Erc721.GetBalanceOf(ChainSafeContracts.Erc721, balanceOfAccount); yield return new WaitUntil(() => getBalanceOf.IsCompleted); Assert.AreEqual(balanceOfExpected, getBalanceOf.Result); } @@ -53,7 +53,7 @@ public IEnumerator TestBalanceOf() [UnityTest] public IEnumerator TestOwnerOf() { - var getOwnerOf = Erc721.OwnerOf(web3, Contracts.Erc721, ownerOfTokenId); + var getOwnerOf = web3.Erc721.GetOwnerOf(ChainSafeContracts.Erc721, ownerOfTokenId); yield return new WaitUntil(() => getOwnerOf.IsCompleted); Assert.AreEqual(ownerOfExpected, getOwnerOf.Result); } @@ -61,7 +61,7 @@ public IEnumerator TestOwnerOf() [UnityTest] public IEnumerator TestOwnerOfBatch() { - var getOwnerOfBatch = Erc721.OwnerOfBatch(web3, Contracts.Erc721, ownerOfBatchTokenIds); + var getOwnerOfBatch = web3.Erc721.GetOwnerOfBatch(ChainSafeContracts.Erc721, ownerOfBatchTokenIds); yield return new WaitUntil(() => getOwnerOfBatch.IsCompleted); CollectionAssert.AreEqual(ownerOfBatchExpected, getOwnerOfBatch.Result.Select(x => x.Owner)); } @@ -69,7 +69,7 @@ public IEnumerator TestOwnerOfBatch() [UnityTest] public IEnumerator TestUri() { - var uri = Erc721.Uri(web3, Contracts.Erc721, uriTokenId); + var uri = web3.Erc721.GetUri(ChainSafeContracts.Erc721, uriTokenId); yield return new WaitUntil(() => uri.IsCompleted); Assert.AreEqual(ExpectedUriResult, uri.Result); } diff --git a/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs b/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs index 087b6a91f..97481e1db 100644 --- a/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs +++ b/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs @@ -56,7 +56,7 @@ public IEnumerator TestContractSend() { IncreaseAmount }; - var sendContract = Evm.ContractSend(web3, ContractSendMethod, ABI.ArrayTotal, Contracts.ArrayTotal, args); + var sendContract = Evm.ContractSend(web3, ContractSendMethod, ABI.ArrayTotal, ChainSafeContracts.ArrayTotal, args); yield return new WaitUntil(() => sendContract.IsCompleted); if (sendContract.Exception != null) throw sendContract.Exception; Assert.IsTrue(sendContract.IsCompletedSuccessfully); @@ -67,7 +67,7 @@ public IEnumerator TestContractSend() public IEnumerator TestSendArray() { yield return BuildWeb3WithTestResponse("0x3446b949c3d214fba7e61c9cf127eac6cd0b2983564cf76be618099879b6f1e1"); - var sendArray = Evm.SendArray(web3, SendArrayMethod, ABI.ArrayTotal, Contracts.ArrayTotal, ArrayToSend.ToArray()); + var sendArray = Evm.SendArray(web3, SendArrayMethod, ABI.ArrayTotal, ChainSafeContracts.ArrayTotal, ArrayToSend.ToArray()); yield return new WaitUntil(() => sendArray.IsCompleted); if (sendArray.Exception != null) throw sendArray.Exception; Assert.IsTrue(sendArray.IsCompletedSuccessfully); @@ -136,7 +136,7 @@ public IEnumerator TestSignVerify() public IEnumerator TestMintErc20() { yield return BuildWeb3WithTestResponse("0xf6133ad76359ffaf67853a5eb138a94ed11f29d350b907420a92c685c6df5303"); - var mint20 = Erc20.MintErc20(web3, Contracts.Erc20, SendToAddress, Mint20Amount); + var mint20 = web3.Erc20.Mint(ChainSafeContracts.Erc20, Mint20Amount, SendToAddress); yield return new WaitUntil(() => mint20.IsCompleted); if (mint20.Exception != null) throw mint20.Exception; Assert.IsTrue(mint20.IsCompletedSuccessfully); @@ -147,7 +147,7 @@ public IEnumerator TestMintErc20() public IEnumerator TestMintErc721() { yield return BuildWeb3WithTestResponse("0x09f1c615d638ae0b3a8c4a5555b46170c42dba214f04412400f3ff639657a223"); - var mint721 = Erc721.MintErc721(web3, ABI.Erc721, Contracts.Erc721, Mint721Uri); + var mint721 = web3.Erc721.Mint(ChainSafeContracts.Erc721, Mint721Uri); yield return new WaitUntil(() => mint721.IsCompleted); if (mint721.Exception != null) throw mint721.Exception; Assert.IsTrue(mint721.IsCompletedSuccessfully); @@ -158,7 +158,7 @@ public IEnumerator TestMintErc721() public IEnumerator TestMintErc1155() { yield return BuildWeb3WithTestResponse("0xa04294541b934b48ada4073b07ba01492d8ad676aa2db6f93249cec0820a1dca"); - var mint1155 = Erc1155.MintErc1155(web3, ABI.Erc1155, Contracts.Erc1155, Mint1155Id, Mint1155Amount); + var mint1155 = web3.Erc1155.Mint(ChainSafeContracts.Erc1155, Mint1155Id, Mint1155Amount); yield return new WaitUntil(() => mint1155.IsCompleted); if (mint1155.Exception != null) throw mint1155.Exception; Assert.IsTrue(mint1155.IsCompletedSuccessfully); @@ -169,7 +169,7 @@ public IEnumerator TestMintErc1155() public IEnumerator TestTransferErc20() { yield return BuildWeb3WithTestResponse("0x87d8826e895247b4106596040c5133a18ecbf76077c5433091a5f18c355a120b"); - var transferErc20 = Erc20.TransferErc20(web3, Contracts.Erc20, SendToAddress, TransferErc20Amount); + var transferErc20 = web3.Erc20.Transfer(ChainSafeContracts.Erc20, SendToAddress, TransferErc20Amount); yield return new WaitUntil(() => transferErc20.IsCompleted); if (transferErc20.Exception != null) throw transferErc20.Exception; Assert.IsTrue(transferErc20.IsCompletedSuccessfully); @@ -180,7 +180,7 @@ public IEnumerator TestTransferErc20() public IEnumerator TestTransferErc721() { yield return BuildWeb3WithTestResponse("0xba034c4150f2a5fd50926551a8e95028d51dcc91e3c3b566bbd316968bc29375"); - var transferErc721 = Erc721.TransferErc721(web3, Contracts.Erc721, SendToAddress, Transfer721Id); + var transferErc721 = web3.Erc721.Transfer(ChainSafeContracts.Erc721, SendToAddress, Transfer721Id); yield return new WaitUntil(() => transferErc721.IsCompleted); if (transferErc721.Exception != null) throw transferErc721.Exception; Assert.IsTrue(transferErc721.IsCompletedSuccessfully); @@ -191,7 +191,7 @@ public IEnumerator TestTransferErc721() public IEnumerator TestTransferErc1155() { yield return BuildWeb3WithTestResponse("0x390b47d378e9a6de830e2cc6d624de0920efc44d7b40fb61f75d983545c987fc"); - var transferErc1155 = Erc1155.TransferErc1155(web3, Contracts.Erc1155, Transfer1155Id, Transfer1155Amount, SendToAddress); + var transferErc1155 = web3.Erc1155.Transfer(ChainSafeContracts.Erc1155, Transfer1155Id, Transfer1155Amount, SendToAddress); yield return new WaitUntil(() => transferErc1155.IsCompleted); if (transferErc1155.Exception != null) throw transferErc1155.Exception; yield return new WaitUntil(() => transferErc1155.IsCompletedSuccessfully); diff --git a/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs b/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs index cf7c3bbec..9af03cb87 100644 --- a/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs +++ b/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs @@ -1,6 +1,7 @@ using System.Collections; using System.Collections.Generic; using System.Numerics; +using ChainSafe.Gaming.Evm.Contracts.BuiltIn; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using NUnit.Framework; @@ -48,9 +49,9 @@ public class EvmTests : SampleTestsBase [UnityTest] public IEnumerator TestContractCall() { - var address = web3.Signer.GetAddress().Result; + var address = web3.Signer.PublicAddress; object[] args = { address }; - var callContract = Evm.ContractCall(web3, ContractCallMethod, ABI.ArrayTotal, Contracts.ArrayTotal, args); + var callContract = Evm.ContractCall(web3, ContractCallMethod, ABI.ArrayTotal, ChainSafeContracts.ArrayTotal, args); yield return new WaitUntil(() => callContract.IsCompleted); if (callContract.Exception != null) throw callContract.Exception; Assert.IsTrue(callContract.IsCompletedSuccessfully); @@ -60,7 +61,7 @@ public IEnumerator TestContractCall() [UnityTest] public IEnumerator TestGetArray() { - var getArray = Evm.GetArray(web3, Contracts.ArrayTotal, ABI.ArrayTotal, GetArrayMethod); + var getArray = Evm.GetArray(web3, ChainSafeContracts.ArrayTotal, ABI.ArrayTotal, GetArrayMethod); yield return new WaitUntil(() => getArray.IsCompleted); // Convert toLower to make comparing easier var result = getArray.Result.ConvertAll(a => a.ConvertAll(b => b.ToLower())); @@ -87,7 +88,7 @@ public IEnumerator TestGetGasLimit() { IncreaseAmount }; - var getGasLimit = Evm.GetGasLimit(web3, ABI.ArrayTotal, Contracts.ArrayTotal, ContractSendMethod, args); + var getGasLimit = Evm.GetGasLimit(web3, ABI.ArrayTotal, ChainSafeContracts.ArrayTotal, ContractSendMethod, args); yield return new WaitUntil(() => getGasLimit.IsCompleted); if (getGasLimit.Exception != null) throw getGasLimit.Exception; // Just assert successful completion because result is always changing @@ -107,7 +108,7 @@ public IEnumerator TestGetGasPrice() [UnityTest] public IEnumerator TestUseRegisteredContract() { - var useRegisteredContract = Evm.UseRegisteredContract(web3, "CsTestErc20", EthMethod.BalanceOf); + var useRegisteredContract = Evm.UseRegisteredContract(web3, "CsTestErc20", EthMethods.BalanceOf); yield return new WaitUntil(() => useRegisteredContract.IsCompleted); if (useRegisteredContract.Exception != null) throw useRegisteredContract.Exception; Assert.IsTrue(useRegisteredContract.IsCompletedSuccessfully); @@ -149,7 +150,7 @@ public IEnumerator TestECDSAAddress() [UnityTest] public IEnumerator TestCustomBalanceOfErc20() { - var getCustomBalanceOf = Erc20.CustomTokenBalance(web3, ABI.Erc20, Contracts.Erc20); + var getCustomBalanceOf = web3.Erc20.GetBalanceOf(ChainSafeContracts.Erc20); yield return new WaitUntil(() => getCustomBalanceOf.IsCompleted); Assert.AreEqual(new BigInteger(999999999999999), getCustomBalanceOf.Result); } diff --git a/Packages/io.chainsafe.web3-unity/Tests/Runtime/SampleTestsBase.cs b/Packages/io.chainsafe.web3-unity/Tests/Runtime/SampleTestsBase.cs index 93ecaa304..d23939369 100644 --- a/Packages/io.chainsafe.web3-unity/Tests/Runtime/SampleTestsBase.cs +++ b/Packages/io.chainsafe.web3-unity/Tests/Runtime/SampleTestsBase.cs @@ -7,6 +7,7 @@ using ChainSafe.Gaming.WalletConnect; using ChainSafe.Gaming.Web3; using ChainSafe.Gaming.Web3.Build; +using ChainSafe.Gaming.Web3.Evm.Wallet; using ChainSafe.Gaming.Web3.Unity; using ChainSafe.GamingSdk.Gelato; using Microsoft.Extensions.DependencyInjection; @@ -60,13 +61,13 @@ internal static ValueTask BuildTestWeb3(Web3Builder.ConfigureServicesDeleg services.UseRpcProvider(); services.AddSingleton(new StubWalletConnectProviderConfig()); // can be replaced - services.AddSingleton(); + services.AddSingleton(); services.UseWalletConnectSigner(); services.UseWalletConnectTransactionExecutor(); // Add any contracts we would want to use services.ConfigureRegisteredContracts(contracts => - contracts.RegisterContract("CsTestErc20", ABI.Erc20, Contracts.Erc20)); + contracts.RegisterContract("CsTestErc20", ABI.Erc20, ChainSafeContracts.Erc20)); }); if (customConfiguration != null) diff --git a/Packages/io.chainsafe.web3-unity/Tests/Runtime/StubWalletConnectProvider.cs b/Packages/io.chainsafe.web3-unity/Tests/Runtime/StubWalletConnectProvider.cs index 35f43e9b2..658a83386 100644 --- a/Packages/io.chainsafe.web3-unity/Tests/Runtime/StubWalletConnectProvider.cs +++ b/Packages/io.chainsafe.web3-unity/Tests/Runtime/StubWalletConnectProvider.cs @@ -1,31 +1,62 @@ -using System.Threading.Tasks; -using ChainSafe.Gaming.WalletConnect; +using System; +using System.Threading.Tasks; +using ChainSafe.Gaming.Evm; +using ChainSafe.Gaming.Web3; +using ChainSafe.Gaming.Web3.Environment; +using ChainSafe.Gaming.Web3.Evm.Wallet; +using Nethereum.JsonRpc.Client.RpcMessages; +using Newtonsoft.Json; namespace Tests.Runtime { - public class StubWalletConnectProvider : IWalletConnectProvider + public class StubWalletConnectProvider : WalletProvider { private readonly StubWalletConnectProviderConfig config; + private readonly IChainConfig chainConfig; + private readonly IHttpClient httpClient; - public StubWalletConnectProvider(StubWalletConnectProviderConfig config) + public StubWalletConnectProvider(StubWalletConnectProviderConfig config, IHttpClient httpClient, IChainConfig chainConfig, ChainRegistryProvider chainRegistryProvider) : base(chainRegistryProvider: chainRegistryProvider) { this.config = config; + this.chainConfig = chainConfig; + this.httpClient = httpClient; } - public Task Connect() + public override Task Connect() { return Task.FromResult(config.WalletAddress); } - public Task Disconnect() + public override Task Disconnect() { // empty return Task.CompletedTask; } - public Task Request(T data, long? expiry = null) + public override Task Perform(string method, params object[] parameters) { - return Task.FromResult(config.StubResponse); + switch (method) + { + case "personal_sign": case "eth_signTypedData": case "eth_sendTransaction": + return Task.FromResult((T)Convert.ChangeType(config.StubResponse, typeof(T))); + default: + return Request(method, parameters); + } + } + + // Direct RPC request via WalletConnect RPC url. + private async Task Request(string method, params object[] parameters) + { + // Using WalletConnect Blockchain API: https://docs.walletconnect.com/cloud/blockchain-api + var url = $"https://rpc.walletconnect.com/v1?chainId=eip155:{chainConfig.ChainId}&projectId={config.ProjectId}"; + + string body = JsonConvert.SerializeObject(new RpcRequestMessage(Guid.NewGuid().ToString(), method, parameters)); + + var rawResult = await httpClient.PostRaw(url, body, "application/json"); + + RpcResponseMessage response = JsonConvert.DeserializeObject(rawResult.Response); + + return response.Result.ToObject(); } } } \ No newline at end of file diff --git a/Packages/io.chainsafe.web3-unity/Tests/Runtime/StubWalletConnectProviderConfig.cs b/Packages/io.chainsafe.web3-unity/Tests/Runtime/StubWalletConnectProviderConfig.cs index 4c95a2101..99425a367 100644 --- a/Packages/io.chainsafe.web3-unity/Tests/Runtime/StubWalletConnectProviderConfig.cs +++ b/Packages/io.chainsafe.web3-unity/Tests/Runtime/StubWalletConnectProviderConfig.cs @@ -3,7 +3,9 @@ public class StubWalletConnectProviderConfig { public const string DefaultWalletAddress = "0xD5c8010ef6dff4c83B19C511221A7F8d1e5cFF44"; + public const string DefaultProjectId = "f4bff60eb260841f46b1c77588cd8acb"; + public string ProjectId { get; set; } = DefaultProjectId; public string WalletAddress { get; set; } = DefaultWalletAddress; public string StubResponse { get; set; } } diff --git a/Packages/io.chainsafe.web3-unity/Tests/Runtime/chainsafe.web3-unity.RuntimeTests.asmdef b/Packages/io.chainsafe.web3-unity/Tests/Runtime/chainsafe.web3-unity.RuntimeTests.asmdef index a631ee9f2..017811d11 100644 --- a/Packages/io.chainsafe.web3-unity/Tests/Runtime/chainsafe.web3-unity.RuntimeTests.asmdef +++ b/Packages/io.chainsafe.web3-unity/Tests/Runtime/chainsafe.web3-unity.RuntimeTests.asmdef @@ -13,11 +13,14 @@ "precompiledReferences": [ "nunit.framework.dll", "Nethereum.Hex.dll", + "Nethereum.JsonRpc.Client.dll", "Microsoft.Extensions.DependencyInjection.Abstractions.dll", "ChainSafe.Gaming.dll", "ChainSafe.Gaming.Unity.dll", "ChainSafe.Gaming.Gelato.dll", - "ChainSafe.Gaming.WalletConnect.dll" + "ChainSafe.Gaming.WalletConnect.dll", + "Nethereum.RPC.dll", + "Newtonsoft.Json.dll" ], "autoReferenced": false, "defineConstraints": [ diff --git a/Packages/io.chainsafe.web3-unity/package.json b/Packages/io.chainsafe.web3-unity/package.json index edf0a5980..abb20c2da 100644 --- a/Packages/io.chainsafe.web3-unity/package.json +++ b/Packages/io.chainsafe.web3-unity/package.json @@ -1,6 +1,6 @@ { "name": "io.chainsafe.web3-unity", - "version": "2.5.5", + "version": "2.6.0", "displayName": "web3.unity SDK", "description": "web3.unity is an open-source gaming SDK written in C# and developed by ChainSafe Gaming. It connects games built in the Unity game engine to the blockchain. The library currently supports games built for web browsers (WebGL), iOS/Android mobile, and desktop. web3.unity is compatible with most EVM-based chains such as Ethereum, Polygon, Moonbeam, Cronos, Nervos, and Binance Smart Chain, letting developers easily choose and switch between them to create the best in-game experience.", "license": "LGPL-3.0-only", diff --git a/README.md b/README.md index 98344b639..543e8f5fc 100644 --- a/README.md +++ b/README.md @@ -4,14 +4,27 @@ [Discord](https://discord.gg/Q6A3YA2) [Twitter](https://twitter.com/chainsafeth) -## Notices - -After **June 15, 2023** all users of the SDK will be required to have their projects registered. Please ensure that you have a valid project ID to avoid any service interruptions by this time. If you need help getting a project ID, we've put together a tutorial to guide you through the process: https://docs.gaming.chainsafe.io/current/project-id-registration. - -As always, we're here to help, so feel free to message us in ⁠🕹web3unity-gaming-general or ⁠🕹gaming-help if you're stuck and need help! - ## Documentation -https://docs.gaming.chainsafe.io/ +You can access the full docs at [docs.gaming.chainsafe.io](https://docs.gaming.chainsafe.io) + +Our codebase is quite easy to use. This is an example of accessing player balance and calling a write method of a custom Smart Contract within Unity. + +```csharp +async void Awake() +{ + // Build Web3 client + var web3 = await BuildWeb3(); + + // Get ERC-20 balance for current user + var balance = await web3.Erc20.GetBalanceOf(erc20ContractAddress); + + // Interact with custom Contract + var customContract = web3.ContractBuilder.Build(contractAbi, contractAddress); + var friendHp = await customContract.SendSingle("healPlayer", nftItemId); +} +``` + +Additional prefab scripts can be found here https://docs.gaming.chainsafe.io/current/prefab-scripts#contract-call ## Support - Need help with web3.unity or found a bug? Be sure to read the documentation above, then review existing issues or create a new one [here](https://github.com/ChainSafe/web3.unity/issues). This is the best way to get help from the ChainSafe Gaming team. diff --git a/scripts/data/duplicate_samples.txt b/scripts/data/duplicate_samples.txt index 82aa82cc3..485699603 100644 --- a/scripts/data/duplicate_samples.txt +++ b/scripts/data/duplicate_samples.txt @@ -1,4 +1,5 @@ src/UnitySampleProject/Assets/Samples/web3.unity SDK:Web3.Unity Samples:Packages/io.chainsafe.web3-unity/Samples~/Web3.Unity/ src/UnitySampleProject/Assets/Samples/web3.unity SDK Web3Auth:Web3.Unity Web3Auth Samples:Packages/io.chainsafe.web3-unity.web3auth/Samples~/Web3.Unity Web3Auth/ src/UnitySampleProject/Assets/Samples/web3.unity SDK Lootboxes:Chainlink Lootbox Sample:Packages/io.chainsafe.web3-unity.lootboxes/Samples~/Chainlink Lootbox Samples/ -src/UnitySampleProject/Assets/Samples/web3.unity SDK Ramp:Web3.Unity Ramp Samples:Packages/io.chainsafe.web3-unity.ramp/Samples~/Web3.Unity Ramp Samples/ \ No newline at end of file +src/UnitySampleProject/Assets/Samples/web3.unity SDK Ramp:Web3.Unity Ramp Samples:Packages/io.chainsafe.web3-unity.ramp/Samples~/Web3.Unity Ramp Samples/ +src/UnitySampleProject/Assets/Samples/web3.unity SDK HyperPlay:Web3.Unity HyperPlay Samples:Packages/io.chainsafe.web3-unity.hyperplay/Samples~/Web3.Unity HyperPlay Samples/ \ No newline at end of file diff --git a/scripts/data/published_dependencies.txt b/scripts/data/published_dependencies.txt index a12f33d70..95a06a814 100644 --- a/scripts/data/published_dependencies.txt +++ b/scripts/data/published_dependencies.txt @@ -1,2 +1,3 @@ Packages/io.chainsafe.web3-unity/Runtime/Libraries/:ADRaffy.ENSNormalize;Nethereum.Model;BouncyCastle.Crypto;Nethereum.RLP;ChainSafe.Gaming.Debugging;Nethereum.RPC;ChainSafe.Gaming.Gelato;ChainSafe.Gaming.SygmaClient;Nethereum.Signer.EIP712;ChainSafe.Gaming.InProcessSigner;Nethereum.Signer;ChainSafe.Gaming.InProcessTransactionExecutor;Nethereum.Util;ChainSafe.Gaming.Unity.ThirdParty;Nethereum.Web3;ChainSafe.Gaming.Unity;System.Buffers;ChainSafe.Gaming.WalletConnect;System.Memory;ChainSafe.Gaming;System.Numerics.Vectors;Microsoft.Bcl.AsyncInterfaces;System.Reactive;Microsoft.Extensions.DependencyInjection.Abstractions;System.Runtime.CompilerServices.Unsafe;Microsoft.Extensions.DependencyInjection;System.Runtime.InteropServices.WindowsRuntime;Microsoft.Extensions.Logging.Abstractions;System.Security.Cryptography.Cng;Microsoft.IdentityModel.Abstractions;System.Text.Encodings.Web;Microsoft.IdentityModel.Logging;System.Text.Json;Microsoft.IdentityModel.Tokens;System.Threading.Channels;NBitcoin;System.Threading.Tasks.Extensions;Nethereum.ABI;WalletConnectSharp.Auth;Nethereum.Accounts;WalletConnectSharp.Common;WalletConnectSharp.Events;Nethereum.BlockchainProcessing;WalletConnectSharp.Core;Nethereum.Contracts;WalletConnectSharp.Crypto;Nethereum.Hex;Nethereum.JsonRpc.Client;WalletConnectSharp.Network.Websocket;Nethereum.JsonRpc.IpcClient;WalletConnectSharp.Network;Nethereum.JsonRpc.RpcClient;WalletConnectSharp.Sign;Nethereum.KeyStore;WalletConnectSharp.Storage;Nethereum.Merkle.Patricia;WalletConnectSharp.Web3Wallet;Nethereum.Merkle;Websocket.Client;Nethereum.Metamask;Nethereum.Siwe.Core;Nethereum.Siwe;Nethereum.UI;Nethereum.Unity.Metamask;Nethereum.Unity;ChainSafe.Gaming.MetaMask;ChainSafe.Gaming.MetaMask.Unity;ChainSafe.Gaming.InProcessTransactionExecutor.Unity;ChainSafe.Gaming.Marketplace -Packages/io.chainsafe.web3-unity.lootboxes/Chainlink/Runtime/Libraries/:Chainsafe.Gaming.Chainlink;ChainSafe.Gaming.Lootboxes.Chainlink \ No newline at end of file +Packages/io.chainsafe.web3-unity.lootboxes/Chainlink/Runtime/Libraries/:Chainsafe.Gaming.Chainlink;ChainSafe.Gaming.Lootboxes.Chainlink +Packages/io.chainsafe.web3-unity.hyperplay/Runtime/Libraries/:ChainSafe.Gaming.HyperPlay \ No newline at end of file diff --git a/src/ChainSafe.Gaming.Debugging/JsonRpcWallet.cs b/src/ChainSafe.Gaming.Debugging/JsonRpcWallet.cs index 02d7f614c..fd47c8812 100644 --- a/src/ChainSafe.Gaming.Debugging/JsonRpcWallet.cs +++ b/src/ChainSafe.Gaming.Debugging/JsonRpcWallet.cs @@ -17,27 +17,26 @@ public class JsonRpcWallet : ISigner, ITransactionExecutor, ILifecycleParticipan { private readonly JsonRpcWalletConfig config; private readonly IRpcProvider provider; - private string address; public JsonRpcWallet(JsonRpcWalletConfig config, IRpcProvider provider) { this.config = config; this.provider = provider; - address = this.config.AddressOverride; + PublicAddress = this.config.AddressOverride; } + public string PublicAddress { get; private set; } + public async ValueTask WillStartAsync() { - if (string.IsNullOrEmpty(address)) + if (string.IsNullOrEmpty(PublicAddress)) { - address = await QueryAddress(); + PublicAddress = await QueryAddress(); } } public ValueTask WillStopAsync() => new ValueTask(Task.CompletedTask); - public Task GetAddress() => Task.FromResult(address); - private async Task QueryAddress() { var accounts = await provider.Perform("eth_accounts"); @@ -49,14 +48,14 @@ private async Task QueryAddress() return accounts[config.AccountIndex]; } - public async Task SignMessage(byte[] message) + public Task SignMessage(byte[] message) { - return await SignMessageImpl(message.ToHex()); + return SignMessageImpl(message.ToHex()); } - public async Task SignMessage(string message) + public Task SignMessage(string message) { - return await SignMessageImpl(message.ToHexUTF8()); + return SignMessageImpl(message.ToHexUTF8()); } public async Task SendTransaction(TransactionRequest transaction) @@ -78,7 +77,7 @@ private async Task SendUncheckedTransaction(TransactionRequest transacti { if (transaction.From == null) { - var fromAddress = (await GetAddress()).ToLower(); + var fromAddress = PublicAddress.ToLower(); transaction.From = fromAddress; } @@ -92,13 +91,12 @@ private async Task SendUncheckedTransaction(TransactionRequest transacti return await provider.Perform("eth_sendTransaction", rpcTxParams); } - private async Task SignMessageImpl(string hexMessage) + private Task SignMessageImpl(string hexMessage) { - var adr = await GetAddress(); - return await provider.Perform("personal_sign", hexMessage, adr.ToLower()); + return provider.Perform("personal_sign", hexMessage, PublicAddress.ToLower()); } - public async Task SignTypedData(SerializableDomain domain, TStructType message) + public Task SignTypedData(SerializableDomain domain, TStructType message) { var typedData = new TypedData { @@ -110,8 +108,7 @@ public async Task SignTypedData(SerializableDomain domain, var data = Eip712TypedDataSigner.Current.EncodeTypedData(typedData); - var adr = await GetAddress(); - return await provider.Perform("eth_signTypedData_v4", adr.ToLower(), data); + return provider.Perform("eth_signTypedData_v4", PublicAddress.ToLower(), data); } } } \ No newline at end of file diff --git a/src/ChainSafe.Gaming.Gelato/Gelato.cs b/src/ChainSafe.Gaming.Gelato/Gelato.cs index 741348a94..9eebd1383 100644 --- a/src/ChainSafe.Gaming.Gelato/Gelato.cs +++ b/src/ChainSafe.Gaming.Gelato/Gelato.cs @@ -57,10 +57,7 @@ public async ValueTask WillStartAsync() analyticsClient.CaptureEvent(new AnalyticsEvent() { - ChainId = chainConfig.ChainId, - Network = chainConfig.Network, EventName = $"Gelato initialized", - ProjectId = projectConfig.ProjectId, PackageName = "io.chainsafe.web3-unity", }); } @@ -102,7 +99,7 @@ public async Task CallWithSyncFeeErc2771(CallWithSyncFeeErc2771Re ChainId = int.Parse(chainConfig.ChainId), Target = request.Target, Data = request.Data, - User = await signer.GetAddress(), + User = signer.PublicAddress, UserDeadline = request.UserDeadline, UserNonce = request.UserNonce, FeeToken = request.FeeToken, diff --git a/src/ChainSafe.Gaming.Gelato/GelatoClient.cs b/src/ChainSafe.Gaming.Gelato/GelatoClient.cs index 15de4bc2f..6587b4f07 100644 --- a/src/ChainSafe.Gaming.Gelato/GelatoClient.cs +++ b/src/ChainSafe.Gaming.Gelato/GelatoClient.cs @@ -52,10 +52,7 @@ public async Task Post(RelayCall relayCall, TReq }; analyticsClient.CaptureEvent(new AnalyticsEvent() { - ChainId = chainConfig.ChainId, - Network = chainConfig.Network, EventName = $"{relayCall}", - ProjectId = projectConfig.ProjectId, PackageName = "io.chainsafe.web3-unity", }); diff --git a/src/ChainSafe.Gaming.HyperPlay/ChainSafe.Gaming.HyperPlay.csproj b/src/ChainSafe.Gaming.HyperPlay/ChainSafe.Gaming.HyperPlay.csproj new file mode 100644 index 000000000..aca992a71 --- /dev/null +++ b/src/ChainSafe.Gaming.HyperPlay/ChainSafe.Gaming.HyperPlay.csproj @@ -0,0 +1,17 @@ + + + + netstandard2.1 + 9.0 + ChainSafe.Gaming.HyperPlay + True + ../../global.ruleset + Debug;Release;Test + AnyCPU + + + + + + + diff --git a/src/ChainSafe.Gaming.HyperPlay/Dto/Chain.cs b/src/ChainSafe.Gaming.HyperPlay/Dto/Chain.cs new file mode 100644 index 000000000..1280516a3 --- /dev/null +++ b/src/ChainSafe.Gaming.HyperPlay/Dto/Chain.cs @@ -0,0 +1,10 @@ +using Newtonsoft.Json; + +namespace ChainSafe.Gaming.HyperPlay.Dto +{ + public struct Chain + { + [JsonProperty("chainId")] + public string ChainId { get; set; } + } +} \ No newline at end of file diff --git a/src/ChainSafe.Gaming.HyperPlay/Dto/HyperPlayError.cs b/src/ChainSafe.Gaming.HyperPlay/Dto/HyperPlayError.cs new file mode 100644 index 000000000..bc25ac9fc --- /dev/null +++ b/src/ChainSafe.Gaming.HyperPlay/Dto/HyperPlayError.cs @@ -0,0 +1,13 @@ +using Newtonsoft.Json; + +namespace ChainSafe.Gaming.HyperPlay.Dto +{ + /// + /// Error model for HyperPlay RPC responses. + /// + public struct HyperPlayError + { + [JsonProperty("message")] + public string Message { get; set; } + } +} \ No newline at end of file diff --git a/src/ChainSafe.Gaming.HyperPlay/Dto/HyperPlayRequest.cs b/src/ChainSafe.Gaming.HyperPlay/Dto/HyperPlayRequest.cs new file mode 100644 index 000000000..2e36cc3d2 --- /dev/null +++ b/src/ChainSafe.Gaming.HyperPlay/Dto/HyperPlayRequest.cs @@ -0,0 +1,16 @@ +using Newtonsoft.Json; + +namespace ChainSafe.Gaming.HyperPlay.Dto +{ + /// + /// Request model for HyperPlay RPC requests. + /// + public struct HyperPlayRequest + { + [JsonProperty("request")] + public Request Request { get; set; } + + [JsonProperty("chain")] + public Chain Chain { get; set; } + } +} \ No newline at end of file diff --git a/src/ChainSafe.Gaming.HyperPlay/Dto/Request.cs b/src/ChainSafe.Gaming.HyperPlay/Dto/Request.cs new file mode 100644 index 000000000..46039a8b6 --- /dev/null +++ b/src/ChainSafe.Gaming.HyperPlay/Dto/Request.cs @@ -0,0 +1,13 @@ +using Newtonsoft.Json; + +namespace ChainSafe.Gaming.HyperPlay.Dto +{ + public struct Request + { + [JsonProperty("method")] + public string Method { get; set; } + + [JsonProperty("params", DefaultValueHandling = DefaultValueHandling.Ignore)] + public object[] Params { get; set; } + } +} \ No newline at end of file diff --git a/src/ChainSafe.Gaming.HyperPlay/HyperPlayConfig.cs b/src/ChainSafe.Gaming.HyperPlay/HyperPlayConfig.cs new file mode 100644 index 000000000..eaf0ebd34 --- /dev/null +++ b/src/ChainSafe.Gaming.HyperPlay/HyperPlayConfig.cs @@ -0,0 +1,14 @@ +namespace ChainSafe.Gaming.HyperPlay +{ + /// + /// Config for a HyperPlay connection. + /// + public class HyperPlayConfig : IHyperPlayConfig + { + /// + /// Remember the HyperPlay session. + /// Like remember me for login. + /// + public bool RememberSession { get; set; } + } +} \ No newline at end of file diff --git a/src/ChainSafe.Gaming.HyperPlay/HyperPlayData.cs b/src/ChainSafe.Gaming.HyperPlay/HyperPlayData.cs new file mode 100644 index 000000000..4822f2748 --- /dev/null +++ b/src/ChainSafe.Gaming.HyperPlay/HyperPlayData.cs @@ -0,0 +1,20 @@ +using Newtonsoft.Json; + +namespace ChainSafe.Gaming.HyperPlay +{ + /// + /// Concrete implementation of . + /// + public class HyperPlayData : IHyperPlayData + { + [JsonIgnore] + public string StoragePath => "hyperplay-data.json"; + + [JsonIgnore] + public bool LoadOnInitialize => true; + + public bool RememberSession { get; set; } + + public string SavedAccount { get; set; } + } +} \ No newline at end of file diff --git a/src/ChainSafe.Gaming.HyperPlay/HyperPlayExtensions.cs b/src/ChainSafe.Gaming.HyperPlay/HyperPlayExtensions.cs new file mode 100644 index 000000000..f418b75a6 --- /dev/null +++ b/src/ChainSafe.Gaming.HyperPlay/HyperPlayExtensions.cs @@ -0,0 +1,62 @@ +using ChainSafe.Gaming.Evm.Signers; +using ChainSafe.Gaming.LocalStorage; +using ChainSafe.Gaming.Web3.Build; +using ChainSafe.Gaming.Web3.Core; +using ChainSafe.Gaming.Web3.Core.Evm; +using ChainSafe.Gaming.Web3.Core.Logout; +using ChainSafe.Gaming.Web3.Evm.Wallet; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.DependencyInjection.Extensions; + +namespace ChainSafe.Gaming.HyperPlay +{ + public static class HyperPlayExtensions + { + /// + /// Binds implementation of as to Web3 as a service. + /// + /// Service collection to bind implementations to. + /// Config for connecting via HyperPlay. + /// The same service collection that was passed in. This enables fluent style. + public static IWeb3ServiceCollection UseHyperPlay(this IWeb3ServiceCollection collection, IHyperPlayConfig config) + { + collection.AssertServiceNotBound(); + + collection.AddSingleton(); + + collection.AddSingleton(); + + collection.Replace(ServiceDescriptor.Singleton(typeof(IHyperPlayConfig), config)); + + return collection; + } + + /// + /// Binds implementation of as to Web3 as a service. + /// + /// Service collection to bind implementations to. + /// The same service collection that was passed in. This enables fluent style. + public static IWeb3ServiceCollection UseHyperPlaySigner(this IWeb3ServiceCollection collection) + { + collection.AssertServiceNotBound(); + + collection.AddSingleton(); + + return collection; + } + + /// + /// Binds implementation of as to Web3 as a service. + /// + /// Service collection to bind implementations to. + /// The same service collection that was passed in. This enables fluent style. + public static IWeb3ServiceCollection UseHyperPlayTransactionExecutor(this IWeb3ServiceCollection collection) + { + collection.AssertServiceNotBound(); + + collection.AddSingleton(); + + return collection; + } + } +} \ No newline at end of file diff --git a/src/ChainSafe.Gaming.HyperPlay/HyperPlayProvider.cs b/src/ChainSafe.Gaming.HyperPlay/HyperPlayProvider.cs new file mode 100644 index 000000000..5e7774bdd --- /dev/null +++ b/src/ChainSafe.Gaming.HyperPlay/HyperPlayProvider.cs @@ -0,0 +1,149 @@ +using System.Text; +using System.Threading.Tasks; +using ChainSafe.Gaming.Evm; +using ChainSafe.Gaming.HyperPlay.Dto; +using ChainSafe.Gaming.LocalStorage; +using ChainSafe.Gaming.Web3; +using ChainSafe.Gaming.Web3.Core; +using ChainSafe.Gaming.Web3.Core.Debug; +using ChainSafe.Gaming.Web3.Core.Logout; +using ChainSafe.Gaming.Web3.Environment; +using ChainSafe.Gaming.Web3.Evm.Wallet; +using Nethereum.Signer; +using Nethereum.Util; +using Newtonsoft.Json; +using Chain = ChainSafe.Gaming.HyperPlay.Dto.Chain; + +namespace ChainSafe.Gaming.HyperPlay +{ + /// + /// Concrete implementation of . + /// + public class HyperPlayProvider : WalletProvider + { + private readonly IHyperPlayConfig config; + private readonly IHyperPlayData data; + private readonly DataStorage dataStorage; + private readonly IHttpClient httpClient; + private readonly IChainConfig chainConfig; + + /// + /// Initializes a new instance of the class. + /// + /// Injected . + /// Injected . + /// Injected . + /// HttpClient to make requests. + /// ChainConfig to fetch chain data. + /// Injected . + public HyperPlayProvider(IHyperPlayConfig config, IHyperPlayData data, DataStorage dataStorage, IHttpClient httpClient, IChainConfig chainConfig, ChainRegistryProvider chainRegistryProvider) + : base(chainRegistryProvider: chainRegistryProvider) + { + this.config = config; + this.data = data; + this.dataStorage = dataStorage; + this.httpClient = httpClient; + this.chainConfig = chainConfig; + } + + /// + /// Connect to wallet via HyperPlay desktop client and return the account address. + /// + /// Signed-in account public address. + public override async Task Connect() + { + string[] accounts = await Perform("eth_accounts"); + + string account = accounts[0].AssertIsPublicAddress(nameof(account)); + + // Saved account exists. + if (data.RememberSession && data.SavedAccount == account) + { + return account; + } + + string message = "Sign-in with Ethereum"; + + string hash = await Perform("personal_sign", message, account); + + // Verify signature. + // TODO: Make into a Util Method. + EthECDSASignature signature = MessageSigner.ExtractEcdsaSignature(hash); + + string messageToHash = "\x19" + "Ethereum Signed Message:\n" + message.Length + message; + + byte[] messageHash = new Sha3Keccack().CalculateHash(Encoding.UTF8.GetBytes(messageToHash)); + + var key = EthECKey.RecoverFromSignature(signature, messageHash); + + if (key.GetPublicAddress().ToLower().Trim() != account.ToLower().Trim()) + { + throw new Web3Exception("Fetched address does not match the signing address."); + } + + if (config.RememberSession) + { + data.RememberSession = true; + + data.SavedAccount = account; + + await dataStorage.Save(data); + } + + return account; + } + + public override Task Disconnect() + { + if (data.RememberSession) + { + dataStorage.Clear(data); + } + + return Task.CompletedTask; + } + + /// + /// Make RPC request to HyperPlay desktop client. + /// + /// RPC request method name. + /// RPC request parameters. + /// RPC request response type. + /// RPC request Response. + public override async Task Perform(string method, params object[] parameters) + { + string body = JsonConvert.SerializeObject(new HyperPlayRequest + { + Request = new Request + { + Method = method, + Params = parameters, + }, + Chain = new Chain + { + ChainId = chainConfig.ChainId, + }, + }); + + string response = (await httpClient.PostRaw(config.Url, body, "application/json")).Response; + + // In case response is just a primitive type like string/number... + // Deserializing it directly doesn't work. + if (response is T result) + { + return result; + } + + try + { + return JsonConvert.DeserializeObject(response); + } + catch (JsonSerializationException) + { + var error = JsonConvert.DeserializeObject(response); + + throw new Web3Exception($"HyperPlay RPC request failed: {error.Message}"); + } + } + } +} \ No newline at end of file diff --git a/src/ChainSafe.Gaming.HyperPlay/HyperPlaySigner.cs b/src/ChainSafe.Gaming.HyperPlay/HyperPlaySigner.cs new file mode 100644 index 000000000..c829a54cd --- /dev/null +++ b/src/ChainSafe.Gaming.HyperPlay/HyperPlaySigner.cs @@ -0,0 +1,67 @@ +using System.Threading.Tasks; +using ChainSafe.Gaming.Evm.Signers; +using ChainSafe.Gaming.Web3.Core; +using ChainSafe.Gaming.Web3.Core.Evm; +using ChainSafe.Gaming.Web3.Core.Logout; +using ChainSafe.Gaming.Web3.Evm.Wallet; + +namespace ChainSafe.Gaming.HyperPlay +{ + /// + /// Concrete implementation of via HyperPlay desktop client. + /// + public class HyperPlaySigner : ISigner, ILifecycleParticipant, ILogoutHandler + { + private readonly IWalletProvider walletProvider; + + /// + /// Initializes a new instance of the class. + /// + /// HyperPlay connection provider to connect and make RPC requests. + public HyperPlaySigner(IWalletProvider walletProvider) + { + this.walletProvider = walletProvider; + } + + public string PublicAddress { get; private set; } + + public async ValueTask WillStartAsync() + { + PublicAddress = await walletProvider.Connect(); + } + + /// + /// Sign message via HyperPlay desktop client. + /// + /// Message to sign. + /// Signed message hash. + public Task SignMessage(string message) + { + return walletProvider.Perform("personal_sign", message, PublicAddress); + } + + /// + /// Sign typed data via HyperPlay desktop client. + /// + /// A serializable domain separator. + /// Data to be signed. + /// Data type of data to be signed. + /// Hash response of a successfully signed typed data. + public Task SignTypedData(SerializableDomain domain, TStructType message) + { + SerializableTypedData typedData = new SerializableTypedData(domain, message); + + return walletProvider.Perform("eth_signTypedData_v3", PublicAddress, typedData); + } + + public ValueTask WillStopAsync() + { + return new ValueTask(Task.CompletedTask); + } + + public async Task OnLogout() + { + await walletProvider.Disconnect(); + } + } +} \ No newline at end of file diff --git a/src/ChainSafe.Gaming.HyperPlay/HyperPlayTransactionExecutor.cs b/src/ChainSafe.Gaming.HyperPlay/HyperPlayTransactionExecutor.cs new file mode 100644 index 000000000..621e3c7a1 --- /dev/null +++ b/src/ChainSafe.Gaming.HyperPlay/HyperPlayTransactionExecutor.cs @@ -0,0 +1,69 @@ +using System.Text.RegularExpressions; +using System.Threading.Tasks; +using ChainSafe.Gaming.Evm.Providers; +using ChainSafe.Gaming.Evm.Signers; +using ChainSafe.Gaming.Evm.Transactions; +using ChainSafe.Gaming.Web3; +using ChainSafe.Gaming.Web3.Core.Evm; +using ChainSafe.Gaming.Web3.Evm.Wallet; +using Nethereum.RPC.Eth.DTOs; + +namespace ChainSafe.Gaming.HyperPlay +{ + /// + /// Concrete implementation of via HyperPlay desktop client. + /// + public class HyperPlayTransactionExecutor : ITransactionExecutor + { + private readonly IWalletProvider walletProvider; + private readonly ISigner signer; + + /// + /// Initializes a new instance of the class. + /// + /// HyperPlay provider for making RPC requests. + /// Signer for fetching public address. + public HyperPlayTransactionExecutor(IWalletProvider walletProvider, ISigner signer) + { + this.walletProvider = walletProvider; + this.signer = signer; + } + + /// + /// Send a Transaction via HyperPlay desktop Client. + /// This prompts user to approve a transaction on HyperPlay. + /// + /// Transaction to send. + /// Hash response of a successfully executed transaction. + /// Throws Exception if executing transaction fails. + public async Task SendTransaction(TransactionRequest transaction) + { + if (string.IsNullOrEmpty(transaction.From)) + { + transaction.From = signer.PublicAddress; + } + + TransactionInput transactionInput = new TransactionInput + { + From = transaction.From, + To = transaction.To, + Gas = transaction.GasLimit, + GasPrice = transaction.GasPrice, + Value = transaction.Value, + Data = transaction.Data ?? "0x", + Nonce = transaction.Nonce, + AccessList = transaction.AccessList, + }; + + string hash = await walletProvider.Perform("eth_sendTransaction", transactionInput); + + string hashPattern = @"^0x[a-fA-F0-9]{64}$"; + if (!Regex.IsMatch(hash, hashPattern)) + { + throw new Web3Exception($"incorrect txn response format {hash}"); + } + + return await walletProvider.GetTransaction(hash); + } + } +} \ No newline at end of file diff --git a/src/ChainSafe.Gaming.HyperPlay/IHyperPlayConfig.cs b/src/ChainSafe.Gaming.HyperPlay/IHyperPlayConfig.cs new file mode 100644 index 000000000..c1019e971 --- /dev/null +++ b/src/ChainSafe.Gaming.HyperPlay/IHyperPlayConfig.cs @@ -0,0 +1,18 @@ +namespace ChainSafe.Gaming.HyperPlay +{ + /// + /// Config for a HyperPlay connection. + /// + public interface IHyperPlayConfig + { + /// + /// Url for connecting to HyperPlay desktop client. + /// + public string Url => "http://localhost:9680/rpc"; + + /// + /// Remember a connected session. + /// + public bool RememberSession { get; set; } + } +} \ No newline at end of file diff --git a/src/ChainSafe.Gaming.HyperPlay/IHyperPlayData.cs b/src/ChainSafe.Gaming.HyperPlay/IHyperPlayData.cs new file mode 100644 index 000000000..c53dad351 --- /dev/null +++ b/src/ChainSafe.Gaming.HyperPlay/IHyperPlayData.cs @@ -0,0 +1,21 @@ +using ChainSafe.Gaming.LocalStorage; + +namespace ChainSafe.Gaming.HyperPlay +{ + /// + /// data for HyperPlay. + /// Persisted data for HyperPlay. + /// + public interface IHyperPlayData : IStorable + { + /// + /// Remember session from a previous connection. + /// + public bool RememberSession { get; set; } + + /// + /// Saved account from a previous session. + /// + public string SavedAccount { get; set; } + } +} \ No newline at end of file diff --git a/src/ChainSafe.Gaming.InProcessSigner/InProcessSigner.cs b/src/ChainSafe.Gaming.InProcessSigner/InProcessSigner.cs index f3148e18e..51d6d045c 100644 --- a/src/ChainSafe.Gaming.InProcessSigner/InProcessSigner.cs +++ b/src/ChainSafe.Gaming.InProcessSigner/InProcessSigner.cs @@ -15,8 +15,8 @@ namespace ChainSafe.Gaming.InProcessSigner /// public class InProcessSigner : ISigner { - private EthECKey privateKey; - private EthereumMessageSigner messageSigner; + private readonly EthECKey privateKey; + private readonly EthereumMessageSigner messageSigner; /// /// Initializes a new instance of the class. @@ -33,8 +33,8 @@ public InProcessSigner(InProcessSignerConfig config) /// /// Implementation of using In Process. /// - /// Public address of signer. - public Task GetAddress() => Task.FromResult(privateKey.GetPublicAddress()); + /// Public address of signer. + public string PublicAddress => privateKey.GetPublicAddress(); /// /// Implementation of using In Process. diff --git a/src/ChainSafe.Gaming.InProcessTransactionExecutor.Unity/ChainSafe.Gaming.InProcessTransactionExecutor.Unity.csproj b/src/ChainSafe.Gaming.InProcessTransactionExecutor.Unity/ChainSafe.Gaming.InProcessTransactionExecutor.Unity.csproj index 73d85b1d2..36dd894ec 100644 --- a/src/ChainSafe.Gaming.InProcessTransactionExecutor.Unity/ChainSafe.Gaming.InProcessTransactionExecutor.Unity.csproj +++ b/src/ChainSafe.Gaming.InProcessTransactionExecutor.Unity/ChainSafe.Gaming.InProcessTransactionExecutor.Unity.csproj @@ -6,14 +6,13 @@ True True ../../global.ruleset - enable Debug;Release;Test AnyCPU ChainSafe.Gaming.InProcessTransactionExecutor.Unity - + diff --git a/src/ChainSafe.Gaming.InProcessTransactionExecutor.Unity/RpcClientWrapper.cs b/src/ChainSafe.Gaming.InProcessTransactionExecutor.Unity/RpcClientWrapper.cs index 40d98d47c..ed40e4e8a 100644 --- a/src/ChainSafe.Gaming.InProcessTransactionExecutor.Unity/RpcClientWrapper.cs +++ b/src/ChainSafe.Gaming.InProcessTransactionExecutor.Unity/RpcClientWrapper.cs @@ -1,6 +1,7 @@ using System; using System.Net.Http; using ChainSafe.Gaming.Web3; +using ChainSafe.Gaming.Web3.Environment; using Nethereum.JsonRpc.Client; using Nethereum.Unity.Rpc; @@ -8,11 +9,13 @@ namespace ChainSafe.Gaming.InProcessTransactionExecutor.Unity { public class RpcClientWrapper : IRpcClientWrapper { + private readonly IChainConfig chainConfig; + public RpcClientWrapper(IChainConfig chainConfig) { - Client = new SimpleRpcClient(new Uri(chainConfig.Rpc), new HttpClient()); + this.chainConfig = chainConfig; } - public IClient Client { get; private set; } + public IClient Client => new RpcClient(new Uri(chainConfig.Rpc)); } } \ No newline at end of file diff --git a/src/ChainSafe.Gaming.InProcessTransactionExecutor/ChainSafe.Gaming.InProcessTransactionExecutor.csproj b/src/ChainSafe.Gaming.InProcessTransactionExecutor/ChainSafe.Gaming.InProcessTransactionExecutor.csproj index 1a2fca6ad..080af97b0 100644 --- a/src/ChainSafe.Gaming.InProcessTransactionExecutor/ChainSafe.Gaming.InProcessTransactionExecutor.csproj +++ b/src/ChainSafe.Gaming.InProcessTransactionExecutor/ChainSafe.Gaming.InProcessTransactionExecutor.csproj @@ -6,7 +6,6 @@ True True ../../global.ruleset - enable Debug;Release;Test AnyCPU ChainSafe.Gaming.InProcessTransactionExecutor diff --git a/src/ChainSafe.Gaming.InProcessTransactionExecutor/InProcessTransactionExecutor.cs b/src/ChainSafe.Gaming.InProcessTransactionExecutor/InProcessTransactionExecutor.cs index 2402435c7..403780e4e 100644 --- a/src/ChainSafe.Gaming.InProcessTransactionExecutor/InProcessTransactionExecutor.cs +++ b/src/ChainSafe.Gaming.InProcessTransactionExecutor/InProcessTransactionExecutor.cs @@ -5,6 +5,7 @@ using ChainSafe.Gaming.Evm.Transactions; using ChainSafe.Gaming.Web3; using ChainSafe.Gaming.Web3.Core.Evm; +using ChainSafe.Gaming.Web3.Environment; using Nethereum.Hex.HexTypes; using Nethereum.RPC.Eth.DTOs; using Nethereum.Web3.Accounts; @@ -18,19 +19,21 @@ namespace ChainSafe.Gaming.InProcessTransactionExecutor /// public class InProcessTransactionExecutor : ITransactionExecutor { - private readonly NWeb3 web3; private readonly IRpcProvider rpcProvider; private readonly string accountAddress; + private NWeb3 web3; + /// /// Initializes a new instance of the class. /// /// Injected . /// Injected . /// Injected . + /// Injected . /// Injected . /// Throws exception if initializing instance fails. - public InProcessTransactionExecutor(ISigner signer, IChainConfig chainConfig, IRpcProvider rpcProvider, IRpcClientWrapper rpcClientWrapper) + public InProcessTransactionExecutor(ISigner signer, IChainConfig chainConfig, IRpcProvider rpcProvider, IMainThreadRunner mainThreadRunner, IRpcClientWrapper rpcClientWrapper) { // It should be possible to set up other signers to work with this as well. // However, does it make sense to let a remote wallet sign a transaction, but @@ -39,19 +42,24 @@ public InProcessTransactionExecutor(ISigner signer, IChainConfig chainConfig, IR throw new Web3Exception($"{nameof(InProcessTransactionExecutor)} only supports {nameof(InProcessSigner.InProcessSigner)}"); accountAddress = privateKey.GetPublicAddress(); var account = new Account(privateKey); - if (chainConfig.Rpc is not null && !string.Empty.Equals(chainConfig.Rpc)) - { - web3 = new NWeb3(account, rpcClientWrapper.Client); - } - else if (chainConfig.Ipc is not null && !string.Empty.Equals(chainConfig.Ipc)) - { - var client = new NIpcClient(chainConfig.Rpc); - web3 = new NWeb3(client); - } - else + + // Initialize Web3 on the main thread. + mainThreadRunner.Enqueue(() => { - throw new Web3Exception($"{nameof(IChainConfig)} should have at least one communication method set."); - } + if (chainConfig.Rpc is not null && !string.Empty.Equals(chainConfig.Rpc)) + { + web3 = new NWeb3(account, rpcClientWrapper.Client); + } + else if (chainConfig.Ipc is not null && !string.Empty.Equals(chainConfig.Ipc)) + { + var client = new NIpcClient(chainConfig.Rpc); + web3 = new NWeb3(client); + } + else + { + throw new Web3Exception($"{nameof(IChainConfig)} should have at least one communication method set."); + } + }); this.rpcProvider = rpcProvider; } diff --git a/src/ChainSafe.Gaming.Lootboxes.Chainlink/LootboxService.cs b/src/ChainSafe.Gaming.Lootboxes.Chainlink/LootboxService.cs index f4af46520..fe637f17c 100644 --- a/src/ChainSafe.Gaming.Lootboxes.Chainlink/LootboxService.cs +++ b/src/ChainSafe.Gaming.Lootboxes.Chainlink/LootboxService.cs @@ -71,13 +71,8 @@ async ValueTask ILifecycleParticipant.WillStartAsync() analyticsClient.CaptureEvent(new AnalyticsEvent() { - ProjectId = projectConfig.ProjectId, - Network = chainConfig.Network, - ChainId = chainConfig.ChainId, - Rpc = chainConfig.Rpc, EventName = "Lootboxes Initialized", PackageName = "io.chainsafe.web3-unity.lootboxes", - Version = analyticsClient.AnalyticsVersion, }); // todo check if contract is correct @@ -126,7 +121,7 @@ public async Task> GetLootboxTypes() public async Task BalanceOf(uint lootboxType) { - var playerAddress = await this.GetCurrentPlayerAddress(); + var playerAddress = this.GetCurrentPlayerAddress(); return await this.BalanceOf(playerAddress, lootboxType); } @@ -165,7 +160,7 @@ public async Task CalculateOpenPrice(uint lootboxType, uint lootboxC public async Task IsOpeningLootbox() { - var playerAddress = await this.GetCurrentPlayerAddress(); + var playerAddress = this.GetCurrentPlayerAddress(); var response = await this.contract.Call("openerRequests", new object[] { playerAddress }); var requests = (BigInteger)response[0]; return requests > 0; @@ -173,7 +168,7 @@ public async Task IsOpeningLootbox() public async Task OpeningLootboxType() { - var playerAddress = await this.GetCurrentPlayerAddress(); + var playerAddress = this.GetCurrentPlayerAddress(); // This response is actually very different from all the others since it returns several components var response = (List)(await this.contract.Call("getOpenerRequestDetails", new object[] { playerAddress }))[0]; @@ -210,7 +205,7 @@ await this.contract.Send( public async Task CanClaimRewards() { - var playerAddress = await this.GetCurrentPlayerAddress(); + var playerAddress = this.GetCurrentPlayerAddress(); return await this.CanClaimRewards(playerAddress); } @@ -227,7 +222,7 @@ public async Task CanClaimRewards(string account) public async Task ClaimRewards() { - var playerAddress = await this.GetCurrentPlayerAddress(); + var playerAddress = this.GetCurrentPlayerAddress(); return await this.ClaimRewards(playerAddress); } @@ -298,14 +293,14 @@ LootboxRewards ExtractRewards(IEnumerable> eventLo } } - private async Task GetCurrentPlayerAddress() + private string GetCurrentPlayerAddress() { if (this.signer is null) { throw new Web3Exception($"No {nameof(ISigner)} was registered. Can't get current user's address."); } - return await this.signer.GetAddress(); + return signer.PublicAddress; } } } \ No newline at end of file diff --git a/src/ChainSafe.Gaming.MetaMask.Unity/MetaMaskProvider.cs b/src/ChainSafe.Gaming.MetaMask.Unity/MetaMaskProvider.cs index 05898326c..fbfe64000 100644 --- a/src/ChainSafe.Gaming.MetaMask.Unity/MetaMaskProvider.cs +++ b/src/ChainSafe.Gaming.MetaMask.Unity/MetaMaskProvider.cs @@ -1,8 +1,10 @@ using System.Threading.Tasks; +using ChainSafe.Gaming.Evm; using ChainSafe.Gaming.Web3; using ChainSafe.Gaming.Web3.Analytics; using ChainSafe.Gaming.Web3.Core.Logout; using ChainSafe.Gaming.Web3.Environment; +using ChainSafe.Gaming.Web3.Evm.Wallet; using UnityEngine; using Object = UnityEngine.Object; @@ -11,7 +13,7 @@ namespace ChainSafe.Gaming.MetaMask.Unity /// /// Concrete implementation of . /// - public class MetaMaskProvider : IMetaMaskProvider, ILogoutHandler + public class MetaMaskProvider : WalletProvider, ILogoutHandler { private readonly ILogWriter logWriter; @@ -24,7 +26,13 @@ public class MetaMaskProvider : IMetaMaskProvider, ILogoutHandler /// Initializes a new instance of the class. /// /// Common Logger used for logging messages and errors. - public MetaMaskProvider(ILogWriter logWriter, IAnalyticsClient analyticsClient, IChainConfig chainConfig, IProjectConfig projectConfig) + /// Injected . + /// Injected . + /// Injected . + /// Injected . + public MetaMaskProvider(ILogWriter logWriter, IAnalyticsClient analyticsClient, IChainConfig chainConfig, IProjectConfig projectConfig, ChainRegistryProvider chainRegistryProvider) + : base( + chainRegistryProvider: chainRegistryProvider) { this.logWriter = logWriter; this.chainConfig = chainConfig; @@ -53,41 +61,35 @@ public MetaMaskProvider(ILogWriter logWriter, IAnalyticsClient analyticsClient, metaMaskController.Initialize(this.logWriter); } + public override Task Disconnect() + { + // Currently no disconnect logic for MetaMask lib on NEthereum. + return Task.CompletedTask; + } + + public override async Task Perform(string method, params object[] parameters) + { + return await metaMaskController.Request(method, parameters); + } + /// - /// Implementation of . + /// Implementation of . /// Called to connect to MetaMask. /// /// Connected account. - public async Task Connect() + public override async Task Connect() { logWriter.Log("Connecting from Metamask..."); analyticsClient.CaptureEvent(new AnalyticsEvent() { - ProjectId = projectConfig.ProjectId, - Network = chainConfig.Network, - ChainId = chainConfig.ChainId, - Rpc = chainConfig.Rpc, EventName = "Metamask WebGL Initialized", PackageName = "io.chainsafe.web3-unity", - Version = analyticsClient.AnalyticsVersion, }); return await metaMaskController.Connect(); } - /// - /// Make JsonRPC requests using MetaMask. - /// - /// JsonRPC method name. - /// JsonRPC request parameters. - /// Type of response result. - /// Response result. - public async Task Request(string method, params object[] parameters) - { - return await metaMaskController.Request(method, parameters); - } - public Task OnLogout() { Object.Destroy(metaMaskController.gameObject); diff --git a/src/ChainSafe.Gaming.MetaMask.Unity/MetaMaskProviderExtensions.cs b/src/ChainSafe.Gaming.MetaMask.Unity/MetaMaskProviderExtensions.cs index 0143af1ad..1f67696b9 100644 --- a/src/ChainSafe.Gaming.MetaMask.Unity/MetaMaskProviderExtensions.cs +++ b/src/ChainSafe.Gaming.MetaMask.Unity/MetaMaskProviderExtensions.cs @@ -1,5 +1,6 @@ using ChainSafe.Gaming.Web3.Build; using ChainSafe.Gaming.Web3.Core.Logout; +using ChainSafe.Gaming.Web3.Evm.Wallet; using Microsoft.Extensions.DependencyInjection; namespace ChainSafe.Gaming.MetaMask.Unity @@ -10,16 +11,16 @@ namespace ChainSafe.Gaming.MetaMask.Unity public static class MetaMaskProviderExtensions { /// - /// Binds implementation of as to Web3 as a service. + /// Binds implementation of as to Web3 as a service. /// /// Service collection to bind implementations to. /// The same service collection that was passed in. This enables fluent style. public static IWeb3ServiceCollection UseMetaMask(this IWeb3ServiceCollection collection) { - collection.AssertServiceNotBound(); + collection.AssertServiceNotBound(); // wallet - collection.AddSingleton(); + collection.AddSingleton(); return collection; } diff --git a/src/ChainSafe.Gaming.MetaMask/IMetaMaskProvider.cs b/src/ChainSafe.Gaming.MetaMask/IMetaMaskProvider.cs deleted file mode 100644 index ae2979936..000000000 --- a/src/ChainSafe.Gaming.MetaMask/IMetaMaskProvider.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System.Threading.Tasks; - -namespace ChainSafe.Gaming.MetaMask -{ - /// - /// Connect and disconnect to Metamask and make a Json RPC request. - /// - public interface IMetaMaskProvider - { - /// - /// Connects to Metamask. - /// - /// Connected address. - public Task Connect(); - - /// - /// Make JsonRPC request using Metamask. - /// - /// JsonRPC method name. - /// JsonRPC request parameters. - /// Type of response's result. - /// Response's result. - public Task Request(string method, params object[] parameters); - } -} \ No newline at end of file diff --git a/src/ChainSafe.Gaming.MetaMask/MetaMaskSigner.cs b/src/ChainSafe.Gaming.MetaMask/MetaMaskSigner.cs index d7083fa31..62565eadb 100644 --- a/src/ChainSafe.Gaming.MetaMask/MetaMaskSigner.cs +++ b/src/ChainSafe.Gaming.MetaMask/MetaMaskSigner.cs @@ -3,6 +3,7 @@ using ChainSafe.Gaming.Web3.Core; using ChainSafe.Gaming.Web3.Core.Evm; using ChainSafe.Gaming.Web3.Environment; +using ChainSafe.Gaming.Web3.Evm.Wallet; namespace ChainSafe.Gaming.MetaMask { @@ -11,22 +12,18 @@ namespace ChainSafe.Gaming.MetaMask /// public class MetaMaskSigner : ISigner, ILifecycleParticipant { - private readonly IMetaMaskProvider metaMaskProvider; + private readonly IWalletProvider walletProvider; /// /// Initializes a new instance of the class. /// - /// Metamask provider that connects to Metamask and makes JsonRPC requests. - /// Log Writer used for logging messages and errors. - public MetaMaskSigner(IMetaMaskProvider metaMaskProvider, ILogWriter logWriter) + /// Metamask provider that connects to Metamask and makes JsonRPC requests. + public MetaMaskSigner(IWalletProvider walletProvider) { - this.metaMaskProvider = metaMaskProvider; + this.walletProvider = walletProvider; } - /// - /// Signer's public key/address. - /// - private string Address { get; set; } + public string PublicAddress { get; private set; } /// /// Implementation of . @@ -35,17 +32,7 @@ public MetaMaskSigner(IMetaMaskProvider metaMaskProvider, ILogWriter logWriter) /// async awaitable task. public async ValueTask WillStartAsync() { - Address = await metaMaskProvider.Connect(); - } - - /// - /// Implementation of . - /// Get public address of connected client. - /// - /// Wallet address of connected client. - public Task GetAddress() - { - return Task.FromResult(Address); + PublicAddress = await walletProvider.Connect(); } /// @@ -55,9 +42,9 @@ public Task GetAddress() /// /// Message to sign. /// Hash response of a successfully signed message. - public async Task SignMessage(string message) + public Task SignMessage(string message) { - return await metaMaskProvider.Request("personal_sign", message, Address); + return walletProvider.Perform("personal_sign", message, PublicAddress); } /// @@ -68,12 +55,12 @@ public async Task SignMessage(string message) /// Data to be signed. /// Data type of data to be signed. /// Hash response of a successfully signed typed data. - public async Task SignTypedData(SerializableDomain domain, TStructType message) + public Task SignTypedData(SerializableDomain domain, TStructType message) { SerializableTypedData typedData = new SerializableTypedData(domain, message); // MetaMask doesn't work with regular eth_signTypedData method, has to be eth_signTypedData_v4. - return await metaMaskProvider.Request("eth_signTypedData_v4", typedData, Address); + return walletProvider.Perform("eth_signTypedData_v4", typedData, PublicAddress); } /// @@ -81,6 +68,6 @@ public async Task SignTypedData(SerializableDomain domain, /// Lifetime event method, called during "Web3.TerminateAsync". /// /// async awaitable task. - public ValueTask WillStopAsync() => new ValueTask(Task.CompletedTask); + public ValueTask WillStopAsync() => new(Task.CompletedTask); } } \ No newline at end of file diff --git a/src/ChainSafe.Gaming.MetaMask/MetaMaskTransactionExecutor.cs b/src/ChainSafe.Gaming.MetaMask/MetaMaskTransactionExecutor.cs index fc4172f00..ec3ed050d 100644 --- a/src/ChainSafe.Gaming.MetaMask/MetaMaskTransactionExecutor.cs +++ b/src/ChainSafe.Gaming.MetaMask/MetaMaskTransactionExecutor.cs @@ -1,10 +1,12 @@ using System.Text.RegularExpressions; using System.Threading.Tasks; +using ChainSafe.Gaming.Evm.Providers; using ChainSafe.Gaming.Evm.Signers; using ChainSafe.Gaming.Evm.Transactions; using ChainSafe.Gaming.Web3; using ChainSafe.Gaming.Web3.Core.Evm; using ChainSafe.Gaming.Web3.Environment; +using ChainSafe.Gaming.Web3.Evm.Wallet; using Nethereum.RPC.Eth.DTOs; namespace ChainSafe.Gaming.MetaMask @@ -16,7 +18,7 @@ public class MetaMaskTransactionExecutor : ITransactionExecutor { private readonly ILogWriter logWriter; - private readonly IMetaMaskProvider metaMaskProvider; + private readonly IWalletProvider walletProvider; private readonly ISigner signer; @@ -24,13 +26,13 @@ public class MetaMaskTransactionExecutor : ITransactionExecutor /// Initializes a new instance of the class. /// /// Log Writer used for logging messages and errors. - /// Metamask provider that connects to Metamask and makes JsonRPC requests. + /// Metamask provider that connects to Metamask and makes JsonRPC requests. /// Signer for fetching address. - public MetaMaskTransactionExecutor(ILogWriter logWriter, IMetaMaskProvider metaMaskProvider, ISigner signer) + public MetaMaskTransactionExecutor(ILogWriter logWriter, IWalletProvider walletProvider, ISigner signer) { this.logWriter = logWriter; - this.metaMaskProvider = metaMaskProvider; + this.walletProvider = walletProvider; this.signer = signer; } @@ -47,7 +49,7 @@ public async Task SendTransaction(TransactionRequest transa { if (string.IsNullOrEmpty(transaction.From)) { - transaction.From = await signer.GetAddress(); + transaction.From = signer.PublicAddress; } TransactionInput transactionInput = new TransactionInput @@ -62,7 +64,7 @@ public async Task SendTransaction(TransactionRequest transa AccessList = transaction.AccessList, }; - string hash = await metaMaskProvider.Request("eth_sendTransaction", transactionInput); + string hash = await walletProvider.Perform("eth_sendTransaction", transactionInput); string hashPattern = @"^0x[a-fA-F0-9]{64}$"; if (!Regex.IsMatch(hash, hashPattern)) @@ -72,7 +74,7 @@ public async Task SendTransaction(TransactionRequest transa logWriter.Log($"Transaction executed with hash {hash}"); - return await metaMaskProvider.Request("eth_getTransactionByHash", hash); + return await walletProvider.GetTransaction(hash); } } } \ No newline at end of file diff --git a/src/ChainSafe.Gaming.SygmaClient/Types/IFeeHandlerRouter.cs b/src/ChainSafe.Gaming.SygmaClient/Types/IFeeHandlerRouter.cs index 9641184f4..852b52be4 100644 --- a/src/ChainSafe.Gaming.SygmaClient/Types/IFeeHandlerRouter.cs +++ b/src/ChainSafe.Gaming.SygmaClient/Types/IFeeHandlerRouter.cs @@ -1,5 +1,4 @@ using System.Threading.Tasks; -using NBitcoin; namespace ChainSafe.Gaming.SygmaClient.Types { diff --git a/src/ChainSafe.Gaming.Tests/ChainsafeRPCTests.cs b/src/ChainSafe.Gaming.Tests/ChainsafeRPCTests.cs index bd2006a8e..f910be67f 100644 --- a/src/ChainSafe.Gaming.Tests/ChainsafeRPCTests.cs +++ b/src/ChainSafe.Gaming.Tests/ChainsafeRPCTests.cs @@ -47,13 +47,8 @@ public void SetUp() var secondAccountTask = Web3Util.CreateWeb3(1).AsTask(); secondAccountTask.Wait(); - var firstWalletAddressTask = firstAccount.Signer.GetAddress(); - firstWalletAddressTask.Wait(); - - firstWalletAddress = firstWalletAddressTask.Result; - var secondaryWalletAddressTask = secondAccountTask.Result.Signer.GetAddress(); - secondaryWalletAddressTask.Wait(); - secondaryWalletAddress = secondaryWalletAddressTask.Result; + firstWalletAddress = firstAccount.Signer.PublicAddress; + secondaryWalletAddress = secondAccountTask.Result.Signer.PublicAddress; var amount = new HexBigInteger(1000000); var txTask = firstAccount.TransactionExecutor.SendTransaction(new TransactionRequest @@ -234,7 +229,7 @@ public void GetTransactionReceiptTest() [Test] public void CallContractMethodTest() { - var address = firstAccount.Signer.GetAddress().Result; + var address = firstAccount.Signer.PublicAddress; var contract = firstAccount.ContractBuilder.Build(nft721ABI, nft721Address); var ret = contract.Send("safeMint", new object[] { address }).Result; diff --git a/src/ChainSafe.Gaming.Tests/ProvidersSendTests.cs b/src/ChainSafe.Gaming.Tests/ProvidersSendTests.cs index 7cf856e1c..6e875e294 100644 --- a/src/ChainSafe.Gaming.Tests/ProvidersSendTests.cs +++ b/src/ChainSafe.Gaming.Tests/ProvidersSendTests.cs @@ -57,10 +57,10 @@ public void Cleanup() public void SendTransactionTest() { // Get initial balances and addresses for both sender and receiver accounts. - var fromAddress = firstAccount.Signer.GetAddress().Result; + var fromAddress = firstAccount.Signer.PublicAddress; var fromInitialBalance = firstAccount.RpcProvider.GetBalance(fromAddress).Result.Value; - var toAddress = secondAccount.Signer.GetAddress().Result; + var toAddress = secondAccount.Signer.PublicAddress; var toInitialBalance = firstAccount.RpcProvider.GetBalance(toAddress).Result.Value; var amount = new HexBigInteger(1000000); diff --git a/src/ChainSafe.Gaming.Unity/ChainSafe.Gaming.Unity.csproj b/src/ChainSafe.Gaming.Unity/ChainSafe.Gaming.Unity.csproj index 9ee2d4165..542bbb428 100644 --- a/src/ChainSafe.Gaming.Unity/ChainSafe.Gaming.Unity.csproj +++ b/src/ChainSafe.Gaming.Unity/ChainSafe.Gaming.Unity.csproj @@ -24,6 +24,7 @@ + diff --git a/src/ChainSafe.Gaming.Unity/UnityDispatcherAdapter.cs b/src/ChainSafe.Gaming.Unity/UnityDispatcherAdapter.cs index 671ff6cb4..ac064c7a8 100644 --- a/src/ChainSafe.Gaming.Unity/UnityDispatcherAdapter.cs +++ b/src/ChainSafe.Gaming.Unity/UnityDispatcherAdapter.cs @@ -1,6 +1,7 @@ using System; using System.Threading.Tasks; using ChainSafe.Gaming.Evm.Unity; +using ChainSafe.Gaming.Web3.Environment; namespace ChainSafe.Gaming.Unity { diff --git a/src/ChainSafe.Gaming.WalletConnect/IWalletConnectProvider.cs b/src/ChainSafe.Gaming.WalletConnect/IWalletConnectProvider.cs deleted file mode 100644 index 0c3b81139..000000000 --- a/src/ChainSafe.Gaming.WalletConnect/IWalletConnectProvider.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System.Threading.Tasks; - -namespace ChainSafe.Gaming.WalletConnect -{ - /// - /// Interface that represents the provider for the WalletConnect features. - /// - public interface IWalletConnectProvider - { - /// - /// Connect WalletConnect session. - /// - /// Public address of the connected user. - Task Connect(); - - /// - /// Disconnect WalletConnect session. - /// - /// A representing the asynchronous operation. - Task Disconnect(); - - /// - /// Make a request to the WalletConnect API. - /// - /// Request data. - /// Expiry in milliseconds. - /// Type of the request. - /// Response hash of the operation. - Task Request(T data, long? expiry = null); - } -} \ No newline at end of file diff --git a/src/ChainSafe.Gaming.WalletConnect/Methods/EthSignTypedData.cs b/src/ChainSafe.Gaming.WalletConnect/Methods/EthSignTypedData.cs index e290fe4f8..e2da8bf78 100644 --- a/src/ChainSafe.Gaming.WalletConnect/Methods/EthSignTypedData.cs +++ b/src/ChainSafe.Gaming.WalletConnect/Methods/EthSignTypedData.cs @@ -8,28 +8,26 @@ namespace ChainSafe.Gaming.WalletConnect.Methods /// /// Sign Typed Data Wallet Connect Json RPC method params. /// - /// Type of data to be signed. [RpcMethod("eth_signTypedData")] [RpcRequestOptions(Clock.ONE_MINUTE, 99998)] - public class EthSignTypedData : List + public class EthSignTypedData : List { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Public address of signer. - /// Serializable domain for Json RPC. - /// Typed Data to be signed. - public EthSignTypedData(string address, SerializableDomain domain, TStruct message) + /// SerializableTypedData. + public EthSignTypedData(string address, object typedData) : base(new object[] { address, - new SerializableTypedData(domain, message), + typedData, }) { } /// - /// Initializes a new instance of the class used by json.net. + /// Initializes a new instance of the class used by json.net. /// Preserved for Unity using ChainSafe.Gaming.Unity/link.xml. /// public EthSignTypedData() diff --git a/src/ChainSafe.Gaming.WalletConnect/WalletConnectExtensions.cs b/src/ChainSafe.Gaming.WalletConnect/WalletConnectExtensions.cs index bf3ce1036..ea5b9c93f 100644 --- a/src/ChainSafe.Gaming.WalletConnect/WalletConnectExtensions.cs +++ b/src/ChainSafe.Gaming.WalletConnect/WalletConnectExtensions.cs @@ -1,4 +1,5 @@ using System.Linq; +using ChainSafe.Gaming.Evm.Providers; using ChainSafe.Gaming.Evm.Signers; using ChainSafe.Gaming.WalletConnect.Storage; using ChainSafe.Gaming.WalletConnect.Wallets; @@ -6,6 +7,7 @@ using ChainSafe.Gaming.Web3.Core; using ChainSafe.Gaming.Web3.Core.Evm; using ChainSafe.Gaming.Web3.Core.Logout; +using ChainSafe.Gaming.Web3.Evm.Wallet; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; @@ -29,12 +31,12 @@ public static IWeb3ServiceCollection ConfigureWalletConnect(this IWeb3ServiceCol /// The same service collection that was passed in. This enables fluent style. public static IWeb3ServiceCollection UseWalletConnect(this IWeb3ServiceCollection services) { - services.AssertServiceNotBound(); + services.AssertServiceNotBound(); services.AddSingleton(); services.AddSingleton(); services.AddSingleton(); - services.AddSingleton(); + services.AddSingleton(); return services; } @@ -45,7 +47,7 @@ public static IWeb3ServiceCollection UseWalletConnect(this IWeb3ServiceCollectio /// The same service collection that was passed in. This enables fluent style. public static IWeb3ServiceCollection UseWalletConnect(this IWeb3ServiceCollection services, IWalletConnectConfig config) { - services.AssertServiceNotBound(); + services.AssertServiceNotBound(); services.ConfigureWalletConnect(config); services.UseWalletConnect(); @@ -124,12 +126,12 @@ public static IConnectionHelper ConnectionHelper(this WalletConnectSubCategory w /// private static void EnsureProviderBoundFirst(IWeb3ServiceCollection services) { - if (services.Any(descriptor => descriptor.ServiceType == typeof(IWalletConnectProvider))) + if (services.Any(descriptor => descriptor.ServiceType == typeof(IWalletProvider))) { return; } - throw new Web3BuildException($"You should bind {nameof(IWalletConnectProvider)} first."); + throw new Web3BuildException($"You should bind {nameof(IWalletProvider)} first."); } } } \ No newline at end of file diff --git a/src/ChainSafe.Gaming.WalletConnect/WalletConnectProvider.cs b/src/ChainSafe.Gaming.WalletConnect/WalletConnectProvider.cs index 3169a029b..45eeda7e8 100644 --- a/src/ChainSafe.Gaming.WalletConnect/WalletConnectProvider.cs +++ b/src/ChainSafe.Gaming.WalletConnect/WalletConnectProvider.cs @@ -1,7 +1,9 @@ using System; using System.Linq; using System.Threading.Tasks; +using ChainSafe.Gaming.Evm; using ChainSafe.Gaming.WalletConnect.Connection; +using ChainSafe.Gaming.WalletConnect.Methods; using ChainSafe.Gaming.WalletConnect.Models; using ChainSafe.Gaming.WalletConnect.Storage; using ChainSafe.Gaming.WalletConnect.Wallets; @@ -10,6 +12,9 @@ using ChainSafe.Gaming.Web3.Core; using ChainSafe.Gaming.Web3.Core.Debug; using ChainSafe.Gaming.Web3.Environment; +using ChainSafe.Gaming.Web3.Evm.Wallet; +using Nethereum.JsonRpc.Client.RpcMessages; +using Newtonsoft.Json; using WalletConnectSharp.Common.Logging; using WalletConnectSharp.Common.Model.Errors; using WalletConnectSharp.Common.Utils; @@ -26,7 +31,7 @@ namespace ChainSafe.Gaming.WalletConnect /// /// Default implementation of . /// - public class WalletConnectProvider : ILifecycleParticipant, IWalletConnectProvider, IConnectionHelper + public class WalletConnectProvider : WalletProvider, ILifecycleParticipant, IConnectionHelper { private readonly ILogWriter logWriter; private readonly IWalletConnectConfig config; @@ -35,6 +40,7 @@ public class WalletConnectProvider : ILifecycleParticipant, IWalletConnectProvid private readonly IOperatingSystemMediator osMediator; private readonly IWalletRegistry walletRegistry; private readonly RedirectionHandler redirection; + private readonly IHttpClient httpClient; private WalletConnectCore core; private WalletConnectSignClient signClient; @@ -53,7 +59,10 @@ public WalletConnectProvider( IOperatingSystemMediator osMediator, IWalletRegistry walletRegistry, RedirectionHandler redirection, - IAnalyticsClient analyticsClient) + IHttpClient httpClient, + IAnalyticsClient analyticsClient, + ChainRegistryProvider chainRegistryProvider) + : base(chainRegistryProvider: chainRegistryProvider) { this.analyticsClient = analyticsClient; this.redirection = redirection; @@ -63,6 +72,7 @@ public WalletConnectProvider( this.storage = storage; this.config = config; this.logWriter = logWriter; + this.httpClient = httpClient; } public bool StoredSessionAvailable => localData.SessionTopic != null; @@ -75,13 +85,8 @@ async ValueTask ILifecycleParticipant.WillStartAsync() { analyticsClient.CaptureEvent(new AnalyticsEvent() { - ProjectId = analyticsClient.ProjectConfig.ProjectId, - Network = analyticsClient.ChainConfig.Network, - ChainId = analyticsClient.ChainConfig.ChainId, - Rpc = analyticsClient.ChainConfig.Rpc, EventName = "Wallet Connect Initialized", PackageName = "io.chainsafe.web3-unity", - Version = analyticsClient.AnalyticsVersion, }); ValidateConfig(); @@ -123,11 +128,12 @@ async ValueTask ILifecycleParticipant.WillStartAsync() Events = new[] { "chainChanged", "accountsChanged" }, Methods = new[] { - "eth_sendTransaction", - "eth_signTransaction", "eth_sign", "personal_sign", "eth_signTypedData", + "eth_signTransaction", + "eth_sendTransaction", + "eth_getTransactionByHash", }, } }, @@ -153,7 +159,7 @@ async ValueTask ILifecycleParticipant.WillStopAsync() core?.Dispose(); } - public async Task Connect() + public override async Task Connect() { if (connected) { @@ -210,7 +216,7 @@ public async Task Connect() } } - public async Task Disconnect() + public override async Task Disconnect() { if (!connected) { @@ -325,7 +331,7 @@ private async Task RenewSession() WCLogger.Log("Renewed session successfully."); } - public async Task Request(T data, long? expiry = null) + public override async Task Perform(string method, params object[] parameters) { if (!connected) { @@ -345,13 +351,12 @@ public async Task Request(T data, long? expiry = null) } } - var method = RpcMethodAttribute.MethodForType(); var methodRegistered = session.Namespaces.Any(n => n.Value.Methods.Contains(method)); if (!methodRegistered) { throw new WalletConnectException( - "The method provided is not supported. " + + $"RPC method {method} is not supported. " + $"If you add a new method you have to update {nameof(WalletConnectProvider)} code to reflect those changes. " + "Contact ChainSafe if you think a specific method should be included in the SDK."); } @@ -365,7 +370,7 @@ public async Task Request(T data, long? expiry = null) var chainId = GetChainId(); - return await signClient.Request(sessionTopic, data, chainId, expiry); + return await WalletConnectRequest(sessionTopic, method, chainId, parameters); void OnPublishedMessage(object sender, PublishParams args) { @@ -444,5 +449,53 @@ private string GetFullAddress() return defaultNamespace.Accounts[0]; } + + private async Task WalletConnectRequest(string topic, string method, string chainId, params object[] parameters) + { + // Helper method to make a request using WalletConnectSignClient. + async Task MakeRequest() + { + var data = (TRequest)Activator.CreateInstance(typeof(TRequest), parameters); + return await signClient.Request(topic, data, chainId); + } + + switch (method) + { + case "personal_sign": + return await MakeRequest(); + case "eth_signTypedData": + return await MakeRequest(); + case "eth_signTransaction": + return await MakeRequest(); + case "eth_sendTransaction": + return await MakeRequest(); + default: + try + { + return await Request(method, parameters); + } + catch (Exception e) + { + throw new WalletConnectException($"{method} RPC method currently not implemented.", e); + } + } + } + + // Direct RPC request via WalletConnect RPC url. + private async Task Request(string method, params object[] parameters) + { + string chain = session.Namespaces.First().Value.Chains[0]; + + // Using WalletConnect Blockchain API: https://docs.walletconnect.com/cloud/blockchain-api + var url = $"https://rpc.walletconnect.com/v1?chainId={chain}&projectId={config.ProjectId}"; + + string body = JsonConvert.SerializeObject(new RpcRequestMessage(Guid.NewGuid().ToString(), method, parameters)); + + var rawResult = await httpClient.PostRaw(url, body, "application/json"); + + RpcResponseMessage response = JsonConvert.DeserializeObject(rawResult.Response); + + return response.Result.ToObject(); + } } } \ No newline at end of file diff --git a/src/ChainSafe.Gaming.WalletConnect/WalletConnectSigner.cs b/src/ChainSafe.Gaming.WalletConnect/WalletConnectSigner.cs index 025c22c88..06c8d79c0 100644 --- a/src/ChainSafe.Gaming.WalletConnect/WalletConnectSigner.cs +++ b/src/ChainSafe.Gaming.WalletConnect/WalletConnectSigner.cs @@ -1,10 +1,10 @@ using System.Threading.Tasks; using ChainSafe.Gaming.Evm.Signers; -using ChainSafe.Gaming.WalletConnect.Methods; using ChainSafe.Gaming.Web3; using ChainSafe.Gaming.Web3.Core; using ChainSafe.Gaming.Web3.Core.Evm; using ChainSafe.Gaming.Web3.Core.Logout; +using ChainSafe.Gaming.Web3.Evm.Wallet; using WalletConnectSharp.Common.Logging; namespace ChainSafe.Gaming.WalletConnect @@ -14,30 +14,27 @@ namespace ChainSafe.Gaming.WalletConnect /// public class WalletConnectSigner : ISigner, ILifecycleParticipant, ILogoutHandler { - private readonly IWalletConnectProvider provider; + private readonly IWalletProvider provider; - private string address; - - public WalletConnectSigner(IWalletConnectProvider provider) + public WalletConnectSigner(IWalletProvider provider) { this.provider = provider; } + public string PublicAddress { get; private set; } + public async ValueTask WillStartAsync() { - address = await provider.Connect(); + PublicAddress = await provider.Connect(); } ValueTask ILifecycleParticipant.WillStopAsync() => new(Task.CompletedTask); public Task OnLogout() => provider.Disconnect(); - public Task GetAddress() => Task.FromResult(address); - public async Task SignMessage(string message) { - var requestData = new EthSignMessage(message, address); - var hash = await provider.Request(requestData); + var hash = await provider.Perform("personal_sign", message, PublicAddress); if (!ValidateSignResponse(hash)) { @@ -50,8 +47,9 @@ public async Task SignMessage(string message) public async Task SignTypedData(SerializableDomain domain, TStructType message) { - var requestData = new EthSignTypedData(address, domain, message); - var hash = await provider.Request(requestData); + SerializableTypedData typedData = new SerializableTypedData(domain, message); + + var hash = await provider.Perform("eth_signTypedData", PublicAddress, typedData); if (!ValidateSignResponse(hash)) { diff --git a/src/ChainSafe.Gaming.WalletConnect/WalletConnectTransactionExecutor.cs b/src/ChainSafe.Gaming.WalletConnect/WalletConnectTransactionExecutor.cs index ca0adfa45..6ccb4d53f 100644 --- a/src/ChainSafe.Gaming.WalletConnect/WalletConnectTransactionExecutor.cs +++ b/src/ChainSafe.Gaming.WalletConnect/WalletConnectTransactionExecutor.cs @@ -1,13 +1,12 @@ -using System; using System.Text.RegularExpressions; using System.Threading.Tasks; using ChainSafe.Gaming.Evm.Providers; using ChainSafe.Gaming.Evm.Signers; using ChainSafe.Gaming.Evm.Transactions; -using ChainSafe.Gaming.WalletConnect.Methods; using ChainSafe.Gaming.WalletConnect.Models; using ChainSafe.Gaming.Web3; using ChainSafe.Gaming.Web3.Core.Evm; +using ChainSafe.Gaming.Web3.Evm.Wallet; using WalletConnectSharp.Common.Logging; namespace ChainSafe.Gaming.WalletConnect @@ -17,13 +16,11 @@ namespace ChainSafe.Gaming.WalletConnect /// public class WalletConnectTransactionExecutor : ITransactionExecutor { - private readonly IRpcProvider rpcProvider; - private readonly IWalletConnectProvider provider; + private readonly IWalletProvider provider; private readonly ISigner signer; - public WalletConnectTransactionExecutor(IWalletConnectProvider provider, IRpcProvider rpcProvider, ISigner signer) + public WalletConnectTransactionExecutor(IWalletProvider provider, ISigner signer) { - this.rpcProvider = rpcProvider; this.provider = provider; this.signer = signer; } @@ -32,10 +29,10 @@ public async Task SendTransaction(TransactionRequest transa { if (string.IsNullOrEmpty(transaction.From)) { - transaction.From = await signer.GetAddress(); + transaction.From = signer.PublicAddress; } - var requestData = new EthSendTransaction(new TransactionModel + var requestData = new TransactionModel { From = transaction.From, To = transaction.To, @@ -44,9 +41,9 @@ public async Task SendTransaction(TransactionRequest transa Value = transaction.Value?.HexValue, Data = transaction.Data ?? "0x", Nonce = transaction.Nonce?.HexValue, - }); + }; - var hash = await provider.Request(requestData); + var hash = await provider.Perform("eth_sendTransaction", requestData); if (!ValidateResponseHash(hash)) { throw new Web3Exception($"Incorrect transaction response format: \"{hash}\"."); @@ -54,7 +51,7 @@ public async Task SendTransaction(TransactionRequest transa WCLogger.Log($"Transaction executed successfully. Hash: {hash}."); - return await rpcProvider.GetTransaction(hash); + return await provider.GetTransaction(hash); bool ValidateResponseHash(string hash) { diff --git a/src/ChainSafe.Gaming/ChainSafe.Gaming.csproj b/src/ChainSafe.Gaming/ChainSafe.Gaming.csproj index 5225af0ac..cb395f804 100644 --- a/src/ChainSafe.Gaming/ChainSafe.Gaming.csproj +++ b/src/ChainSafe.Gaming/ChainSafe.Gaming.csproj @@ -35,6 +35,14 @@ + + + + + + + +