diff --git a/.gitignore b/.gitignore index aeb38ad..6aa0951 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ Pods .idea Data Classes/Native +.vscode \ No newline at end of file diff --git a/Unity-iPhone.xcodeproj/project.pbxproj b/Unity-iPhone.xcodeproj/project.pbxproj index 65a92c0..a4db047 100644 --- a/Unity-iPhone.xcodeproj/project.pbxproj +++ b/Unity-iPhone.xcodeproj/project.pbxproj @@ -173,6 +173,166 @@ D53CC8AE2A7BA29900CAD911 /* libffmpeg3.3.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D53CC8A92A7BA29800CAD911 /* libffmpeg3.3.a */; }; D53CC8AF2A7BA29900CAD911 /* libtolua.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D53CC8AA2A7BA29800CAD911 /* libtolua.a */; }; D53CC8B12A7BA2EF00CAD911 /* ReplayKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D53CC8B02A7BA2EF00CAD911 /* ReplayKit.framework */; }; + D580D3B22A8DE02600C036A0 /* Il2CppGenericAdjustorThunkTable.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3132A8DE02600C036A0 /* Il2CppGenericAdjustorThunkTable.c */; }; + D580D3B32A8DE02600C036A0 /* Generics10.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3142A8DE02600C036A0 /* Generics10.cpp */; }; + D580D3B42A8DE02600C036A0 /* mscorlib9.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3152A8DE02600C036A0 /* mscorlib9.cpp */; }; + D580D3B52A8DE02600C036A0 /* UnityEngine.UnityAnalyticsModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3162A8DE02600C036A0 /* UnityEngine.UnityAnalyticsModule.cpp */; }; + D580D3B62A8DE02600C036A0 /* Il2CppGenericMethodTable.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3172A8DE02600C036A0 /* Il2CppGenericMethodTable.c */; }; + D580D3B72A8DE02600C036A0 /* Generics4.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3182A8DE02600C036A0 /* Generics4.cpp */; }; + D580D3B82A8DE02600C036A0 /* Generics5.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3192A8DE02600C036A0 /* Generics5.cpp */; }; + D580D3B92A8DE02600C036A0 /* System.Xml_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D31A2A8DE02600C036A0 /* System.Xml_CodeGen.c */; }; + D580D3BA2A8DE02600C036A0 /* GenericMethods6.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D31B2A8DE02600C036A0 /* GenericMethods6.cpp */; }; + D580D3BB2A8DE02600C036A0 /* mscorlib8.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D31C2A8DE02600C036A0 /* mscorlib8.cpp */; }; + D580D3BC2A8DE02600C036A0 /* Generics11.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D31D2A8DE02600C036A0 /* Generics11.cpp */; }; + D580D3BD2A8DE02600C036A0 /* UnityEngine.Physics2DModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D31E2A8DE02600C036A0 /* UnityEngine.Physics2DModule_CodeGen.c */; }; + D580D3BE2A8DE02600C036A0 /* Il2CppCCTypeValuesTable.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D31F2A8DE02600C036A0 /* Il2CppCCTypeValuesTable.cpp */; }; + D580D3BF2A8DE02600C036A0 /* Generics13.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3202A8DE02600C036A0 /* Generics13.cpp */; }; + D580D3C02A8DE02600C036A0 /* GenericMethods4.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3212A8DE02600C036A0 /* GenericMethods4.cpp */; }; + D580D3C12A8DE02600C036A0 /* Il2CppInteropDataTable.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3222A8DE02600C036A0 /* Il2CppInteropDataTable.cpp */; }; + D580D3C22A8DE02600C036A0 /* Generics7.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3232A8DE02600C036A0 /* Generics7.cpp */; }; + D580D3C32A8DE02600C036A0 /* UnityEngine.UIElementsModule9.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3242A8DE02600C036A0 /* UnityEngine.UIElementsModule9.cpp */; }; + D580D3C42A8DE02600C036A0 /* UnityEngine.UIElementsModule8.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3252A8DE02600C036A0 /* UnityEngine.UIElementsModule8.cpp */; }; + D580D3C52A8DE02600C036A0 /* UnityICallRegistration.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3262A8DE02600C036A0 /* UnityICallRegistration.cpp */; }; + D580D3C62A8DE02600C036A0 /* Generics6.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3272A8DE02600C036A0 /* Generics6.cpp */; }; + D580D3C72A8DE02600C036A0 /* GenericMethods5.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3282A8DE02600C036A0 /* GenericMethods5.cpp */; }; + D580D3C82A8DE02600C036A0 /* UnityEngine_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3292A8DE02600C036A0 /* UnityEngine_CodeGen.c */; }; + D580D3C92A8DE02600C036A0 /* Generics12.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D32A2A8DE02600C036A0 /* Generics12.cpp */; }; + D580D3CA2A8DE02600C036A0 /* Generics16.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D32B2A8DE02600C036A0 /* Generics16.cpp */; }; + D580D3CB2A8DE02600C036A0 /* GenericMethods1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D32C2A8DE02600C036A0 /* GenericMethods1.cpp */; }; + D580D3CC2A8DE02600C036A0 /* UnityEngine.UIElementsNativeModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D32D2A8DE02600C036A0 /* UnityEngine.UIElementsNativeModule_CodeGen.c */; }; + D580D3CD2A8DE02600C036A0 /* Generics2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D32E2A8DE02600C036A0 /* Generics2.cpp */; }; + D580D3CE2A8DE02600C036A0 /* UnityEngine.TextCoreFontEngineModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D32F2A8DE02600C036A0 /* UnityEngine.TextCoreFontEngineModule_CodeGen.c */; }; + D580D3CF2A8DE02600C036A0 /* UnityEngine.PhysicsModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3302A8DE02600C036A0 /* UnityEngine.PhysicsModule_CodeGen.c */; }; + D580D3D02A8DE02600C036A0 /* System1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3312A8DE02600C036A0 /* System1.cpp */; }; + D580D3D12A8DE02600C036A0 /* Generics3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3322A8DE02600C036A0 /* Generics3.cpp */; }; + D580D3D22A8DE02600C036A0 /* UnityEngine.AndroidJNIModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3332A8DE02600C036A0 /* UnityEngine.AndroidJNIModule_CodeGen.c */; }; + D580D3D32A8DE02600C036A0 /* Assembly-CSharp.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3342A8DE02600C036A0 /* Assembly-CSharp.cpp */; }; + D580D3D42A8DE02600C036A0 /* Generics17.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3352A8DE02600C036A0 /* Generics17.cpp */; }; + D580D3D52A8DE02600C036A0 /* UnityEngine.UI_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3362A8DE02600C036A0 /* UnityEngine.UI_CodeGen.c */; }; + D580D3D62A8DE02600C036A0 /* Generics15.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3372A8DE02600C036A0 /* Generics15.cpp */; }; + D580D3D72A8DE02600C036A0 /* UnityEngine.SpriteShapeModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3382A8DE02600C036A0 /* UnityEngine.SpriteShapeModule.cpp */; }; + D580D3D82A8DE02600C036A0 /* UnityEngine.TextRenderingModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3392A8DE02600C036A0 /* UnityEngine.TextRenderingModule.cpp */; }; + D580D3D92A8DE02600C036A0 /* GenericMethods2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D33A2A8DE02600C036A0 /* GenericMethods2.cpp */; }; + D580D3DA2A8DE02600C036A0 /* System3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D33B2A8DE02600C036A0 /* System3.cpp */; }; + D580D3DB2A8DE02600C036A0 /* Generics1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D33C2A8DE02600C036A0 /* Generics1.cpp */; }; + D580D3DC2A8DE02600C036A0 /* __Generated_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D33D2A8DE02600C036A0 /* __Generated_CodeGen.c */; }; + D580D3DD2A8DE02600C036A0 /* System.Configuration.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D33E2A8DE02600C036A0 /* System.Configuration.cpp */; }; + D580D3DE2A8DE02600C036A0 /* Il2CppCodeRegistration.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D33F2A8DE02600C036A0 /* Il2CppCodeRegistration.cpp */; }; + D580D3DF2A8DE02600C036A0 /* System2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3402A8DE02600C036A0 /* System2.cpp */; }; + D580D3E02A8DE02600C036A0 /* Il2CppCCalculateFieldValues1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3412A8DE02600C036A0 /* Il2CppCCalculateFieldValues1.cpp */; }; + D580D3E12A8DE02600C036A0 /* __Generated.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3422A8DE02600C036A0 /* __Generated.cpp */; }; + D580D3E22A8DE02600C036A0 /* GenericMethods3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3432A8DE02600C036A0 /* GenericMethods3.cpp */; }; + D580D3E32A8DE02600C036A0 /* Generics14.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3442A8DE02600C036A0 /* Generics14.cpp */; }; + D580D3E42A8DE02600C036A0 /* mscorlib15.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3452A8DE02600C036A0 /* mscorlib15.cpp */; }; + D580D3E52A8DE02600C036A0 /* UnityEngine.UIElementsModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3462A8DE02600C036A0 /* UnityEngine.UIElementsModule_CodeGen.c */; }; + D580D3E62A8DE02600C036A0 /* Il2CppCCalculateTypeValues.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3472A8DE02600C036A0 /* Il2CppCCalculateTypeValues.cpp */; }; + D580D3E72A8DE02600C036A0 /* Il2CppCCalculateFieldValues.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3482A8DE02600C036A0 /* Il2CppCCalculateFieldValues.cpp */; }; + D580D3E82A8DE02600C036A0 /* UnityEngine.AudioModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3492A8DE02600C036A0 /* UnityEngine.AudioModule.cpp */; }; + D580D3E92A8DE02600C036A0 /* Il2CppGenericMethodPointerTable.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D34A2A8DE02600C036A0 /* Il2CppGenericMethodPointerTable.c */; }; + D580D3EA2A8DE02600C036A0 /* mscorlib14.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D34B2A8DE02600C036A0 /* mscorlib14.cpp */; }; + D580D3EB2A8DE02600C036A0 /* UnityEngine.CoreModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D34C2A8DE02600C036A0 /* UnityEngine.CoreModule_CodeGen.c */; }; + D580D3EC2A8DE02600C036A0 /* UnityEngine.AnimationModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D34D2A8DE02600C036A0 /* UnityEngine.AnimationModule_CodeGen.c */; }; + D580D3ED2A8DE02600C036A0 /* UnityEngine.AnimationModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D34E2A8DE02600C036A0 /* UnityEngine.AnimationModule.cpp */; }; + D580D3EE2A8DE02600C036A0 /* UnityEngine.TextRenderingModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D34F2A8DE02600C036A0 /* UnityEngine.TextRenderingModule_CodeGen.c */; }; + D580D3EF2A8DE02600C036A0 /* mscorlib16.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3502A8DE02600C036A0 /* mscorlib16.cpp */; }; + D580D3F02A8DE02600C036A0 /* mscorlib17.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3512A8DE02600C036A0 /* mscorlib17.cpp */; }; + D580D3F12A8DE02600C036A0 /* UnityEngine.GameCenterModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3522A8DE02600C036A0 /* UnityEngine.GameCenterModule.cpp */; }; + D580D3F22A8DE02600C036A0 /* mscorlib13.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3532A8DE02600C036A0 /* mscorlib13.cpp */; }; + D580D3F32A8DE02600C036A0 /* mscorlib.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3542A8DE02600C036A0 /* mscorlib.cpp */; }; + D580D3F42A8DE02600C036A0 /* mscorlib12.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3552A8DE02600C036A0 /* mscorlib12.cpp */; }; + D580D3F52A8DE02600C036A0 /* UnityEngine.UnityWebRequestModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3562A8DE02600C036A0 /* UnityEngine.UnityWebRequestModule_CodeGen.c */; }; + D580D3F62A8DE02600C036A0 /* mscorlib10.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3572A8DE02600C036A0 /* mscorlib10.cpp */; }; + D580D3F72A8DE02600C036A0 /* Il2CppRgctxTable.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3582A8DE02600C036A0 /* Il2CppRgctxTable.c */; }; + D580D3F82A8DE02600C036A0 /* UnityClassRegistration.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3592A8DE02600C036A0 /* UnityClassRegistration.cpp */; }; + D580D3F92A8DE02600C036A0 /* UnityEngine.InputLegacyModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D35A2A8DE02600C036A0 /* UnityEngine.InputLegacyModule.cpp */; }; + D580D3FA2A8DE02600C036A0 /* mscorlib11.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D35B2A8DE02600C036A0 /* mscorlib11.cpp */; }; + D580D3FB2A8DE02600C036A0 /* UnityEngine.SpriteShapeModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D35C2A8DE02600C036A0 /* UnityEngine.SpriteShapeModule_CodeGen.c */; }; + D580D3FC2A8DE02600C036A0 /* UnityEngine.UIElementsModule11.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D35D2A8DE02600C036A0 /* UnityEngine.UIElementsModule11.cpp */; }; + D580D3FD2A8DE02600C036A0 /* UnityEngine.IMGUIModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D35E2A8DE02600C036A0 /* UnityEngine.IMGUIModule_CodeGen.c */; }; + D580D3FE2A8DE02600C036A0 /* Il2CppTypeDefinitions.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D35F2A8DE02600C036A0 /* Il2CppTypeDefinitions.c */; }; + D580D3FF2A8DE02600C036A0 /* UnityEngine.UI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3602A8DE02600C036A0 /* UnityEngine.UI.cpp */; }; + D580D4002A8DE02600C036A0 /* System_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3612A8DE02600C036A0 /* System_CodeGen.c */; }; + D580D4012A8DE02600C036A0 /* UnityEngine.IMGUIModule1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3622A8DE02600C036A0 /* UnityEngine.IMGUIModule1.cpp */; }; + D580D4022A8DE02600C036A0 /* UnityEngine.UIModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3632A8DE02600C036A0 /* UnityEngine.UIModule.cpp */; }; + D580D4032A8DE02600C036A0 /* UnityEngine.UIElementsModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3642A8DE02600C036A0 /* UnityEngine.UIElementsModule.cpp */; }; + D580D4042A8DE02600C036A0 /* UnityEngine.UIElementsModule10.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3652A8DE02600C036A0 /* UnityEngine.UIElementsModule10.cpp */; }; + D580D4052A8DE02600C036A0 /* UnityEngine.UIElementsModule12.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3662A8DE02600C036A0 /* UnityEngine.UIElementsModule12.cpp */; }; + D580D4062A8DE02600C036A0 /* UnityEngine.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3672A8DE02600C036A0 /* UnityEngine.cpp */; }; + D580D4072A8DE02600C036A0 /* UnityEngine.SharedInternalsModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3682A8DE02600C036A0 /* UnityEngine.SharedInternalsModule_CodeGen.c */; }; + D580D4082A8DE02600C036A0 /* mscorlib_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3692A8DE02600C036A0 /* mscorlib_CodeGen.c */; }; + D580D4092A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D36A2A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule.cpp */; }; + D580D40A2A8DE02600C036A0 /* Il2CppMetadataRegistration.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D36B2A8DE02600C036A0 /* Il2CppMetadataRegistration.c */; }; + D580D40B2A8DE02600C036A0 /* UnityEngine.Physics2DModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D36C2A8DE02600C036A0 /* UnityEngine.Physics2DModule.cpp */; }; + D580D40C2A8DE02600C036A0 /* Il2CppGenericMethodDefinitions.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D36D2A8DE02600C036A0 /* Il2CppGenericMethodDefinitions.c */; }; + D580D40D2A8DE02600C036A0 /* UnityEngine.SharedInternalsModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D36E2A8DE02600C036A0 /* UnityEngine.SharedInternalsModule.cpp */; }; + D580D40E2A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D36F2A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule2.cpp */; }; + D580D40F2A8DE02600C036A0 /* UnityEngine.UIModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3702A8DE02600C036A0 /* UnityEngine.UIModule_CodeGen.c */; }; + D580D4102A8DE02600C036A0 /* System.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3712A8DE02600C036A0 /* System.cpp */; }; + D580D4112A8DE02600C036A0 /* Mono.Security.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3722A8DE02600C036A0 /* Mono.Security.cpp */; }; + D580D4122A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3732A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule3.cpp */; }; + D580D4132A8DE02600C036A0 /* System.Configuration_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3742A8DE02600C036A0 /* System.Configuration_CodeGen.c */; }; + D580D4142A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3752A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule_CodeGen.c */; }; + D580D4152A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3762A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule1.cpp */; }; + D580D4162A8DE02600C036A0 /* UnityEngine.GridModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3772A8DE02600C036A0 /* UnityEngine.GridModule.cpp */; }; + D580D4172A8DE02600C036A0 /* Il2CppMetadataUsage.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3782A8DE02600C036A0 /* Il2CppMetadataUsage.c */; }; + D580D4182A8DE02600C036A0 /* Il2CppReversePInvokeWrapperTable.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3792A8DE02600C036A0 /* Il2CppReversePInvokeWrapperTable.cpp */; }; + D580D4192A8DE02600C036A0 /* UnityEngine.UIElementsNativeModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D37A2A8DE02600C036A0 /* UnityEngine.UIElementsNativeModule.cpp */; }; + D580D41A2A8DE02600C036A0 /* Generics19.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D37B2A8DE02600C036A0 /* Generics19.cpp */; }; + D580D41B2A8DE02600C036A0 /* Il2CppInvokerTable.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D37C2A8DE02600C036A0 /* Il2CppInvokerTable.cpp */; }; + D580D41C2A8DE02600C036A0 /* UnityEngine.UI1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D37D2A8DE02600C036A0 /* UnityEngine.UI1.cpp */; }; + D580D41D2A8DE02600C036A0 /* Generics25.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D37E2A8DE02600C036A0 /* Generics25.cpp */; }; + D580D41E2A8DE02600C036A0 /* Mono.Security_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D37F2A8DE02600C036A0 /* Mono.Security_CodeGen.c */; }; + D580D41F2A8DE02600C036A0 /* UnityEngine.UIElementsModule3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3802A8DE02600C036A0 /* UnityEngine.UIElementsModule3.cpp */; }; + D580D4202A8DE02600C036A0 /* UnityEngine.UIElementsModule2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3812A8DE02600C036A0 /* UnityEngine.UIElementsModule2.cpp */; }; + D580D4212A8DE02600C036A0 /* UnityEngine.CoreModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3822A8DE02600C036A0 /* UnityEngine.CoreModule.cpp */; }; + D580D4222A8DE02600C036A0 /* Il2CppGenericClassTable.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3832A8DE02600C036A0 /* Il2CppGenericClassTable.c */; }; + D580D4232A8DE02600C036A0 /* UnityEngine.GridModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3842A8DE02600C036A0 /* UnityEngine.GridModule_CodeGen.c */; }; + D580D4242A8DE02600C036A0 /* System.Xml.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3852A8DE02600C036A0 /* System.Xml.cpp */; }; + D580D4252A8DE02600C036A0 /* UnityEngine.CoreModule1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3862A8DE02600C036A0 /* UnityEngine.CoreModule1.cpp */; }; + D580D4262A8DE02600C036A0 /* Il2CppGenericInstDefinitions.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3872A8DE02600C036A0 /* Il2CppGenericInstDefinitions.c */; }; + D580D4272A8DE02600C036A0 /* mscorlib1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3882A8DE02600C036A0 /* mscorlib1.cpp */; }; + D580D4282A8DE02600C036A0 /* Generics24.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3892A8DE02600C036A0 /* Generics24.cpp */; }; + D580D4292A8DE02600C036A0 /* Generics18.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D38A2A8DE02600C036A0 /* Generics18.cpp */; }; + D580D42A2A8DE02600C036A0 /* UnityEngine.PhysicsModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D38B2A8DE02600C036A0 /* UnityEngine.PhysicsModule.cpp */; }; + D580D42B2A8DE02600C036A0 /* UnityEngine.TextCoreFontEngineModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D38C2A8DE02600C036A0 /* UnityEngine.TextCoreFontEngineModule.cpp */; }; + D580D42C2A8DE02600C036A0 /* UnityEngine.UI2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D38D2A8DE02600C036A0 /* UnityEngine.UI2.cpp */; }; + D580D42D2A8DE02600C036A0 /* Generics26.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D38E2A8DE02600C036A0 /* Generics26.cpp */; }; + D580D42E2A8DE02600C036A0 /* mscorlib3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D38F2A8DE02600C036A0 /* mscorlib3.cpp */; }; + D580D42F2A8DE02600C036A0 /* UnityEngine.GameCenterModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3902A8DE02600C036A0 /* UnityEngine.GameCenterModule_CodeGen.c */; }; + D580D4302A8DE02600C036A0 /* UnityEngine.TilemapModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3912A8DE02600C036A0 /* UnityEngine.TilemapModule.cpp */; }; + D580D4312A8DE02600C036A0 /* UnityEngine.UIElementsModule1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3922A8DE02600C036A0 /* UnityEngine.UIElementsModule1.cpp */; }; + D580D4322A8DE02600C036A0 /* UnityEngine.UnityAnalyticsModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3932A8DE02600C036A0 /* UnityEngine.UnityAnalyticsModule_CodeGen.c */; }; + D580D4332A8DE02600C036A0 /* Il2CppCCFieldValuesTable.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3942A8DE02600C036A0 /* Il2CppCCFieldValuesTable.cpp */; }; + D580D4342A8DE02600C036A0 /* mscorlib2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3952A8DE02600C036A0 /* mscorlib2.cpp */; }; + D580D4352A8DE02600C036A0 /* System.Core_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3962A8DE02600C036A0 /* System.Core_CodeGen.c */; }; + D580D4362A8DE02600C036A0 /* Generics27.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3972A8DE02600C036A0 /* Generics27.cpp */; }; + D580D4372A8DE02600C036A0 /* UnityEngine.UI3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3982A8DE02600C036A0 /* UnityEngine.UI3.cpp */; }; + D580D4382A8DE02600C036A0 /* GenericMethods.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3992A8DE02600C036A0 /* GenericMethods.cpp */; }; + D580D4392A8DE02600C036A0 /* Generics23.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D39A2A8DE02600C036A0 /* Generics23.cpp */; }; + D580D43A2A8DE02600C036A0 /* UnityEngine.TilemapModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D39B2A8DE02600C036A0 /* UnityEngine.TilemapModule_CodeGen.c */; }; + D580D43B2A8DE02600C036A0 /* mscorlib6.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D39C2A8DE02600C036A0 /* mscorlib6.cpp */; }; + D580D43C2A8DE02600C036A0 /* UnresolvedVirtualCallStubs.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D39D2A8DE02600C036A0 /* UnresolvedVirtualCallStubs.cpp */; }; + D580D43D2A8DE02600C036A0 /* UnityEngine.UIElementsModule5.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D39E2A8DE02600C036A0 /* UnityEngine.UIElementsModule5.cpp */; }; + D580D43E2A8DE02600C036A0 /* UnityEngine.UIElementsModule4.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D39F2A8DE02600C036A0 /* UnityEngine.UIElementsModule4.cpp */; }; + D580D43F2A8DE02600C036A0 /* UnityEngine.IMGUIModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3A02A8DE02600C036A0 /* UnityEngine.IMGUIModule.cpp */; }; + D580D4402A8DE02600C036A0 /* System.Core.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3A12A8DE02600C036A0 /* System.Core.cpp */; }; + D580D4412A8DE02600C036A0 /* UnityEngine.InputLegacyModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3A22A8DE02600C036A0 /* UnityEngine.InputLegacyModule_CodeGen.c */; }; + D580D4422A8DE02600C036A0 /* mscorlib7.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3A32A8DE02600C036A0 /* mscorlib7.cpp */; }; + D580D4432A8DE02600C036A0 /* Generics22.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3A42A8DE02600C036A0 /* Generics22.cpp */; }; + D580D4442A8DE02600C036A0 /* Generics20.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3A52A8DE02600C036A0 /* Generics20.cpp */; }; + D580D4452A8DE02600C036A0 /* mscorlib5.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3A62A8DE02600C036A0 /* mscorlib5.cpp */; }; + D580D4462A8DE02600C036A0 /* UnityEngine.AndroidJNIModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3A72A8DE02600C036A0 /* UnityEngine.AndroidJNIModule.cpp */; }; + D580D4472A8DE02600C036A0 /* Assembly-CSharp_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3A82A8DE02600C036A0 /* Assembly-CSharp_CodeGen.c */; }; + D580D4482A8DE02600C036A0 /* Generics8.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3A92A8DE02600C036A0 /* Generics8.cpp */; }; + D580D4492A8DE02600C036A0 /* UnityEngine.AudioModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D580D3AA2A8DE02600C036A0 /* UnityEngine.AudioModule_CodeGen.c */; }; + D580D44A2A8DE02600C036A0 /* UnityEngine.UIElementsModule6.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3AB2A8DE02600C036A0 /* UnityEngine.UIElementsModule6.cpp */; }; + D580D44B2A8DE02600C036A0 /* UnityEngine.UIElementsModule7.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3AC2A8DE02600C036A0 /* UnityEngine.UIElementsModule7.cpp */; }; + D580D44C2A8DE02600C036A0 /* Generics9.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3AD2A8DE02600C036A0 /* Generics9.cpp */; }; + D580D44D2A8DE02600C036A0 /* Generics.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3AE2A8DE02600C036A0 /* Generics.cpp */; }; + D580D44E2A8DE02600C036A0 /* UnityEngine.UnityWebRequestModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3AF2A8DE02600C036A0 /* UnityEngine.UnityWebRequestModule.cpp */; }; + D580D44F2A8DE02600C036A0 /* mscorlib4.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3B02A8DE02600C036A0 /* mscorlib4.cpp */; }; + D580D4502A8DE02600C036A0 /* Generics21.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D580D3B12A8DE02600C036A0 /* Generics21.cpp */; }; + D580D4522A8DE18800C036A0 /* Data in Resources */ = {isa = PBXBuildFile; fileRef = D580D4512A8DE18800C036A0 /* Data */; }; D59AB8472A68FC2200433200 /* StoreObserver.m in Sources */ = {isa = PBXBuildFile; fileRef = D59AB8462A68FC2200433200 /* StoreObserver.m */; }; D59AB84C2A68FC8B00433200 /* AppConfiguration.m in Sources */ = {isa = PBXBuildFile; fileRef = D59AB84B2A68FC8B00433200 /* AppConfiguration.m */; }; D59AB84F2A68FE8E00433200 /* StoreManager.m in Sources */ = {isa = PBXBuildFile; fileRef = D59AB84D2A68FE8E00433200 /* StoreManager.m */; }; @@ -183,166 +343,6 @@ D5BF397629C9B79400EC6351 /* UIViewController+Logger.mm in Sources */ = {isa = PBXBuildFile; fileRef = D5BF397529C9B79400EC6351 /* UIViewController+Logger.mm */; }; D5BF397829C9B8C000EC6351 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = D5BF397729C9B8C000EC6351 /* GoogleService-Info.plist */; }; D5DE834F29C831FE0029E408 /* UIViewController+Share.mm in Sources */ = {isa = PBXBuildFile; fileRef = D5DE834E29C831FE0029E408 /* UIViewController+Share.mm */; }; - D5ED96D52A8B8A9800854015 /* Data in Resources */ = {isa = PBXBuildFile; fileRef = D5ED96D42A8B8A9800854015 /* Data */; }; - D5ED97762A8B8AAF00854015 /* Il2CppGenericAdjustorThunkTable.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96D72A8B8AAF00854015 /* Il2CppGenericAdjustorThunkTable.c */; }; - D5ED97772A8B8AAF00854015 /* Generics10.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96D82A8B8AAF00854015 /* Generics10.cpp */; }; - D5ED97782A8B8AAF00854015 /* mscorlib9.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96D92A8B8AAF00854015 /* mscorlib9.cpp */; }; - D5ED97792A8B8AAF00854015 /* UnityEngine.UnityAnalyticsModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96DA2A8B8AAF00854015 /* UnityEngine.UnityAnalyticsModule.cpp */; }; - D5ED977A2A8B8AAF00854015 /* Il2CppGenericMethodTable.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96DB2A8B8AAF00854015 /* Il2CppGenericMethodTable.c */; }; - D5ED977B2A8B8AAF00854015 /* Generics4.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96DC2A8B8AAF00854015 /* Generics4.cpp */; }; - D5ED977C2A8B8AAF00854015 /* Generics5.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96DD2A8B8AAF00854015 /* Generics5.cpp */; }; - D5ED977D2A8B8AAF00854015 /* System.Xml_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96DE2A8B8AAF00854015 /* System.Xml_CodeGen.c */; }; - D5ED977E2A8B8AAF00854015 /* GenericMethods6.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96DF2A8B8AAF00854015 /* GenericMethods6.cpp */; }; - D5ED977F2A8B8AAF00854015 /* mscorlib8.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96E02A8B8AAF00854015 /* mscorlib8.cpp */; }; - D5ED97802A8B8AAF00854015 /* Generics11.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96E12A8B8AAF00854015 /* Generics11.cpp */; }; - D5ED97812A8B8AAF00854015 /* UnityEngine.Physics2DModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96E22A8B8AAF00854015 /* UnityEngine.Physics2DModule_CodeGen.c */; }; - D5ED97822A8B8AAF00854015 /* Il2CppCCTypeValuesTable.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96E32A8B8AAF00854015 /* Il2CppCCTypeValuesTable.cpp */; }; - D5ED97832A8B8AAF00854015 /* Generics13.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96E42A8B8AAF00854015 /* Generics13.cpp */; }; - D5ED97842A8B8AAF00854015 /* GenericMethods4.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96E52A8B8AAF00854015 /* GenericMethods4.cpp */; }; - D5ED97852A8B8AAF00854015 /* Il2CppInteropDataTable.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96E62A8B8AAF00854015 /* Il2CppInteropDataTable.cpp */; }; - D5ED97862A8B8AAF00854015 /* Generics7.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96E72A8B8AAF00854015 /* Generics7.cpp */; }; - D5ED97872A8B8AAF00854015 /* UnityEngine.UIElementsModule9.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96E82A8B8AAF00854015 /* UnityEngine.UIElementsModule9.cpp */; }; - D5ED97882A8B8AAF00854015 /* UnityEngine.UIElementsModule8.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96E92A8B8AAF00854015 /* UnityEngine.UIElementsModule8.cpp */; }; - D5ED97892A8B8AAF00854015 /* UnityICallRegistration.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96EA2A8B8AAF00854015 /* UnityICallRegistration.cpp */; }; - D5ED978A2A8B8AAF00854015 /* Generics6.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96EB2A8B8AAF00854015 /* Generics6.cpp */; }; - D5ED978B2A8B8AAF00854015 /* GenericMethods5.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96EC2A8B8AAF00854015 /* GenericMethods5.cpp */; }; - D5ED978C2A8B8AAF00854015 /* UnityEngine_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96ED2A8B8AAF00854015 /* UnityEngine_CodeGen.c */; }; - D5ED978D2A8B8AAF00854015 /* Generics12.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96EE2A8B8AAF00854015 /* Generics12.cpp */; }; - D5ED978E2A8B8AAF00854015 /* Generics16.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96EF2A8B8AAF00854015 /* Generics16.cpp */; }; - D5ED978F2A8B8AAF00854015 /* GenericMethods1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96F02A8B8AAF00854015 /* GenericMethods1.cpp */; }; - D5ED97902A8B8AAF00854015 /* UnityEngine.UIElementsNativeModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96F12A8B8AAF00854015 /* UnityEngine.UIElementsNativeModule_CodeGen.c */; }; - D5ED97912A8B8AAF00854015 /* Generics2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96F22A8B8AAF00854015 /* Generics2.cpp */; }; - D5ED97922A8B8AAF00854015 /* UnityEngine.TextCoreFontEngineModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96F32A8B8AAF00854015 /* UnityEngine.TextCoreFontEngineModule_CodeGen.c */; }; - D5ED97932A8B8AAF00854015 /* UnityEngine.PhysicsModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96F42A8B8AAF00854015 /* UnityEngine.PhysicsModule_CodeGen.c */; }; - D5ED97942A8B8AAF00854015 /* System1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96F52A8B8AAF00854015 /* System1.cpp */; }; - D5ED97952A8B8AAF00854015 /* Generics3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96F62A8B8AAF00854015 /* Generics3.cpp */; }; - D5ED97962A8B8AAF00854015 /* UnityEngine.AndroidJNIModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96F72A8B8AAF00854015 /* UnityEngine.AndroidJNIModule_CodeGen.c */; }; - D5ED97972A8B8AAF00854015 /* Assembly-CSharp.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96F82A8B8AAF00854015 /* Assembly-CSharp.cpp */; }; - D5ED97982A8B8AAF00854015 /* Generics17.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96F92A8B8AAF00854015 /* Generics17.cpp */; }; - D5ED97992A8B8AAF00854015 /* UnityEngine.UI_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96FA2A8B8AAF00854015 /* UnityEngine.UI_CodeGen.c */; }; - D5ED979A2A8B8AAF00854015 /* Generics15.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96FB2A8B8AAF00854015 /* Generics15.cpp */; }; - D5ED979B2A8B8AAF00854015 /* UnityEngine.SpriteShapeModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96FC2A8B8AAF00854015 /* UnityEngine.SpriteShapeModule.cpp */; }; - D5ED979C2A8B8AAF00854015 /* UnityEngine.TextRenderingModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96FD2A8B8AAF00854015 /* UnityEngine.TextRenderingModule.cpp */; }; - D5ED979D2A8B8AAF00854015 /* GenericMethods2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96FE2A8B8AAF00854015 /* GenericMethods2.cpp */; }; - D5ED979E2A8B8AAF00854015 /* System3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED96FF2A8B8AAF00854015 /* System3.cpp */; }; - D5ED979F2A8B8AAF00854015 /* Generics1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97002A8B8AAF00854015 /* Generics1.cpp */; }; - D5ED97A02A8B8AAF00854015 /* __Generated_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97012A8B8AAF00854015 /* __Generated_CodeGen.c */; }; - D5ED97A12A8B8AAF00854015 /* System.Configuration.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97022A8B8AAF00854015 /* System.Configuration.cpp */; }; - D5ED97A22A8B8AAF00854015 /* Il2CppCodeRegistration.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97032A8B8AAF00854015 /* Il2CppCodeRegistration.cpp */; }; - D5ED97A32A8B8AAF00854015 /* System2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97042A8B8AAF00854015 /* System2.cpp */; }; - D5ED97A42A8B8AAF00854015 /* Il2CppCCalculateFieldValues1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97052A8B8AAF00854015 /* Il2CppCCalculateFieldValues1.cpp */; }; - D5ED97A52A8B8AAF00854015 /* __Generated.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97062A8B8AAF00854015 /* __Generated.cpp */; }; - D5ED97A62A8B8AAF00854015 /* GenericMethods3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97072A8B8AAF00854015 /* GenericMethods3.cpp */; }; - D5ED97A72A8B8AAF00854015 /* Generics14.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97082A8B8AAF00854015 /* Generics14.cpp */; }; - D5ED97A82A8B8AAF00854015 /* mscorlib15.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97092A8B8AAF00854015 /* mscorlib15.cpp */; }; - D5ED97A92A8B8AAF00854015 /* UnityEngine.UIElementsModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED970A2A8B8AAF00854015 /* UnityEngine.UIElementsModule_CodeGen.c */; }; - D5ED97AA2A8B8AAF00854015 /* Il2CppCCalculateTypeValues.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED970B2A8B8AAF00854015 /* Il2CppCCalculateTypeValues.cpp */; }; - D5ED97AB2A8B8AAF00854015 /* Il2CppCCalculateFieldValues.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED970C2A8B8AAF00854015 /* Il2CppCCalculateFieldValues.cpp */; }; - D5ED97AC2A8B8AAF00854015 /* UnityEngine.AudioModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED970D2A8B8AAF00854015 /* UnityEngine.AudioModule.cpp */; }; - D5ED97AD2A8B8AAF00854015 /* Il2CppGenericMethodPointerTable.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED970E2A8B8AAF00854015 /* Il2CppGenericMethodPointerTable.c */; }; - D5ED97AE2A8B8AAF00854015 /* mscorlib14.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED970F2A8B8AAF00854015 /* mscorlib14.cpp */; }; - D5ED97AF2A8B8AAF00854015 /* UnityEngine.CoreModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97102A8B8AAF00854015 /* UnityEngine.CoreModule_CodeGen.c */; }; - D5ED97B02A8B8AAF00854015 /* UnityEngine.AnimationModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97112A8B8AAF00854015 /* UnityEngine.AnimationModule_CodeGen.c */; }; - D5ED97B12A8B8AAF00854015 /* UnityEngine.AnimationModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97122A8B8AAF00854015 /* UnityEngine.AnimationModule.cpp */; }; - D5ED97B22A8B8AAF00854015 /* UnityEngine.TextRenderingModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97132A8B8AAF00854015 /* UnityEngine.TextRenderingModule_CodeGen.c */; }; - D5ED97B32A8B8AAF00854015 /* mscorlib16.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97142A8B8AAF00854015 /* mscorlib16.cpp */; }; - D5ED97B42A8B8AAF00854015 /* mscorlib17.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97152A8B8AAF00854015 /* mscorlib17.cpp */; }; - D5ED97B52A8B8AAF00854015 /* UnityEngine.GameCenterModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97162A8B8AAF00854015 /* UnityEngine.GameCenterModule.cpp */; }; - D5ED97B62A8B8AAF00854015 /* mscorlib13.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97172A8B8AAF00854015 /* mscorlib13.cpp */; }; - D5ED97B72A8B8AAF00854015 /* mscorlib.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97182A8B8AAF00854015 /* mscorlib.cpp */; }; - D5ED97B82A8B8AAF00854015 /* mscorlib12.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97192A8B8AAF00854015 /* mscorlib12.cpp */; }; - D5ED97B92A8B8AAF00854015 /* UnityEngine.UnityWebRequestModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED971A2A8B8AAF00854015 /* UnityEngine.UnityWebRequestModule_CodeGen.c */; }; - D5ED97BA2A8B8AAF00854015 /* mscorlib10.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED971B2A8B8AAF00854015 /* mscorlib10.cpp */; }; - D5ED97BB2A8B8AAF00854015 /* Il2CppRgctxTable.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED971C2A8B8AAF00854015 /* Il2CppRgctxTable.c */; }; - D5ED97BC2A8B8AAF00854015 /* UnityClassRegistration.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED971D2A8B8AAF00854015 /* UnityClassRegistration.cpp */; }; - D5ED97BD2A8B8AAF00854015 /* UnityEngine.InputLegacyModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED971E2A8B8AAF00854015 /* UnityEngine.InputLegacyModule.cpp */; }; - D5ED97BE2A8B8AAF00854015 /* mscorlib11.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED971F2A8B8AAF00854015 /* mscorlib11.cpp */; }; - D5ED97BF2A8B8AAF00854015 /* UnityEngine.SpriteShapeModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97202A8B8AAF00854015 /* UnityEngine.SpriteShapeModule_CodeGen.c */; }; - D5ED97C02A8B8AAF00854015 /* UnityEngine.UIElementsModule11.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97212A8B8AAF00854015 /* UnityEngine.UIElementsModule11.cpp */; }; - D5ED97C12A8B8AAF00854015 /* UnityEngine.IMGUIModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97222A8B8AAF00854015 /* UnityEngine.IMGUIModule_CodeGen.c */; }; - D5ED97C22A8B8AAF00854015 /* Il2CppTypeDefinitions.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97232A8B8AAF00854015 /* Il2CppTypeDefinitions.c */; }; - D5ED97C32A8B8AAF00854015 /* UnityEngine.UI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97242A8B8AAF00854015 /* UnityEngine.UI.cpp */; }; - D5ED97C42A8B8AAF00854015 /* System_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97252A8B8AAF00854015 /* System_CodeGen.c */; }; - D5ED97C52A8B8AAF00854015 /* UnityEngine.IMGUIModule1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97262A8B8AAF00854015 /* UnityEngine.IMGUIModule1.cpp */; }; - D5ED97C62A8B8AAF00854015 /* UnityEngine.UIModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97272A8B8AAF00854015 /* UnityEngine.UIModule.cpp */; }; - D5ED97C72A8B8AAF00854015 /* UnityEngine.UIElementsModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97282A8B8AAF00854015 /* UnityEngine.UIElementsModule.cpp */; }; - D5ED97C82A8B8AAF00854015 /* UnityEngine.UIElementsModule10.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97292A8B8AAF00854015 /* UnityEngine.UIElementsModule10.cpp */; }; - D5ED97C92A8B8AAF00854015 /* UnityEngine.UIElementsModule12.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED972A2A8B8AAF00854015 /* UnityEngine.UIElementsModule12.cpp */; }; - D5ED97CA2A8B8AAF00854015 /* UnityEngine.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED972B2A8B8AAF00854015 /* UnityEngine.cpp */; }; - D5ED97CB2A8B8AAF00854015 /* UnityEngine.SharedInternalsModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED972C2A8B8AAF00854015 /* UnityEngine.SharedInternalsModule_CodeGen.c */; }; - D5ED97CC2A8B8AAF00854015 /* mscorlib_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED972D2A8B8AAF00854015 /* mscorlib_CodeGen.c */; }; - D5ED97CD2A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED972E2A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule.cpp */; }; - D5ED97CE2A8B8AAF00854015 /* Il2CppMetadataRegistration.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED972F2A8B8AAF00854015 /* Il2CppMetadataRegistration.c */; }; - D5ED97CF2A8B8AAF00854015 /* UnityEngine.Physics2DModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97302A8B8AAF00854015 /* UnityEngine.Physics2DModule.cpp */; }; - D5ED97D02A8B8AAF00854015 /* Il2CppGenericMethodDefinitions.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97312A8B8AAF00854015 /* Il2CppGenericMethodDefinitions.c */; }; - D5ED97D12A8B8AAF00854015 /* UnityEngine.SharedInternalsModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97322A8B8AAF00854015 /* UnityEngine.SharedInternalsModule.cpp */; }; - D5ED97D22A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97332A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule2.cpp */; }; - D5ED97D32A8B8AAF00854015 /* UnityEngine.UIModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97342A8B8AAF00854015 /* UnityEngine.UIModule_CodeGen.c */; }; - D5ED97D42A8B8AAF00854015 /* System.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97352A8B8AAF00854015 /* System.cpp */; }; - D5ED97D52A8B8AAF00854015 /* Mono.Security.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97362A8B8AAF00854015 /* Mono.Security.cpp */; }; - D5ED97D62A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97372A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule3.cpp */; }; - D5ED97D72A8B8AAF00854015 /* System.Configuration_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97382A8B8AAF00854015 /* System.Configuration_CodeGen.c */; }; - D5ED97D82A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97392A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule_CodeGen.c */; }; - D5ED97D92A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED973A2A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule1.cpp */; }; - D5ED97DA2A8B8AAF00854015 /* UnityEngine.GridModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED973B2A8B8AAF00854015 /* UnityEngine.GridModule.cpp */; }; - D5ED97DB2A8B8AAF00854015 /* Il2CppMetadataUsage.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED973C2A8B8AAF00854015 /* Il2CppMetadataUsage.c */; }; - D5ED97DC2A8B8AAF00854015 /* Il2CppReversePInvokeWrapperTable.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED973D2A8B8AAF00854015 /* Il2CppReversePInvokeWrapperTable.cpp */; }; - D5ED97DD2A8B8AAF00854015 /* UnityEngine.UIElementsNativeModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED973E2A8B8AAF00854015 /* UnityEngine.UIElementsNativeModule.cpp */; }; - D5ED97DE2A8B8AAF00854015 /* Generics19.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED973F2A8B8AAF00854015 /* Generics19.cpp */; }; - D5ED97DF2A8B8AAF00854015 /* Il2CppInvokerTable.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97402A8B8AAF00854015 /* Il2CppInvokerTable.cpp */; }; - D5ED97E02A8B8AAF00854015 /* UnityEngine.UI1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97412A8B8AAF00854015 /* UnityEngine.UI1.cpp */; }; - D5ED97E12A8B8AAF00854015 /* Generics25.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97422A8B8AAF00854015 /* Generics25.cpp */; }; - D5ED97E22A8B8AAF00854015 /* Mono.Security_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97432A8B8AAF00854015 /* Mono.Security_CodeGen.c */; }; - D5ED97E32A8B8AAF00854015 /* UnityEngine.UIElementsModule3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97442A8B8AAF00854015 /* UnityEngine.UIElementsModule3.cpp */; }; - D5ED97E42A8B8AAF00854015 /* UnityEngine.UIElementsModule2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97452A8B8AAF00854015 /* UnityEngine.UIElementsModule2.cpp */; }; - D5ED97E52A8B8AAF00854015 /* UnityEngine.CoreModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97462A8B8AAF00854015 /* UnityEngine.CoreModule.cpp */; }; - D5ED97E62A8B8AAF00854015 /* Il2CppGenericClassTable.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97472A8B8AAF00854015 /* Il2CppGenericClassTable.c */; }; - D5ED97E72A8B8AAF00854015 /* UnityEngine.GridModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97482A8B8AAF00854015 /* UnityEngine.GridModule_CodeGen.c */; }; - D5ED97E82A8B8AAF00854015 /* System.Xml.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97492A8B8AAF00854015 /* System.Xml.cpp */; }; - D5ED97E92A8B8AAF00854015 /* UnityEngine.CoreModule1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED974A2A8B8AAF00854015 /* UnityEngine.CoreModule1.cpp */; }; - D5ED97EA2A8B8AAF00854015 /* Il2CppGenericInstDefinitions.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED974B2A8B8AAF00854015 /* Il2CppGenericInstDefinitions.c */; }; - D5ED97EB2A8B8AAF00854015 /* mscorlib1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED974C2A8B8AAF00854015 /* mscorlib1.cpp */; }; - D5ED97EC2A8B8AAF00854015 /* Generics24.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED974D2A8B8AAF00854015 /* Generics24.cpp */; }; - D5ED97ED2A8B8AAF00854015 /* Generics18.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED974E2A8B8AAF00854015 /* Generics18.cpp */; }; - D5ED97EE2A8B8AAF00854015 /* UnityEngine.PhysicsModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED974F2A8B8AAF00854015 /* UnityEngine.PhysicsModule.cpp */; }; - D5ED97EF2A8B8AAF00854015 /* UnityEngine.TextCoreFontEngineModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97502A8B8AAF00854015 /* UnityEngine.TextCoreFontEngineModule.cpp */; }; - D5ED97F02A8B8AAF00854015 /* UnityEngine.UI2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97512A8B8AAF00854015 /* UnityEngine.UI2.cpp */; }; - D5ED97F12A8B8AAF00854015 /* Generics26.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97522A8B8AAF00854015 /* Generics26.cpp */; }; - D5ED97F22A8B8AAF00854015 /* mscorlib3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97532A8B8AAF00854015 /* mscorlib3.cpp */; }; - D5ED97F32A8B8AAF00854015 /* UnityEngine.GameCenterModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97542A8B8AAF00854015 /* UnityEngine.GameCenterModule_CodeGen.c */; }; - D5ED97F42A8B8AAF00854015 /* UnityEngine.TilemapModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97552A8B8AAF00854015 /* UnityEngine.TilemapModule.cpp */; }; - D5ED97F52A8B8AAF00854015 /* UnityEngine.UIElementsModule1.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97562A8B8AAF00854015 /* UnityEngine.UIElementsModule1.cpp */; }; - D5ED97F62A8B8AAF00854015 /* UnityEngine.UnityAnalyticsModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97572A8B8AAF00854015 /* UnityEngine.UnityAnalyticsModule_CodeGen.c */; }; - D5ED97F72A8B8AAF00854015 /* Il2CppCCFieldValuesTable.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97582A8B8AAF00854015 /* Il2CppCCFieldValuesTable.cpp */; }; - D5ED97F82A8B8AAF00854015 /* mscorlib2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97592A8B8AAF00854015 /* mscorlib2.cpp */; }; - D5ED97F92A8B8AAF00854015 /* System.Core_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED975A2A8B8AAF00854015 /* System.Core_CodeGen.c */; }; - D5ED97FA2A8B8AAF00854015 /* Generics27.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED975B2A8B8AAF00854015 /* Generics27.cpp */; }; - D5ED97FB2A8B8AAF00854015 /* UnityEngine.UI3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED975C2A8B8AAF00854015 /* UnityEngine.UI3.cpp */; }; - D5ED97FC2A8B8AAF00854015 /* GenericMethods.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED975D2A8B8AAF00854015 /* GenericMethods.cpp */; }; - D5ED97FD2A8B8AAF00854015 /* Generics23.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED975E2A8B8AAF00854015 /* Generics23.cpp */; }; - D5ED97FE2A8B8AAF00854015 /* UnityEngine.TilemapModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED975F2A8B8AAF00854015 /* UnityEngine.TilemapModule_CodeGen.c */; }; - D5ED97FF2A8B8AAF00854015 /* mscorlib6.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97602A8B8AAF00854015 /* mscorlib6.cpp */; }; - D5ED98002A8B8AAF00854015 /* UnresolvedVirtualCallStubs.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97612A8B8AAF00854015 /* UnresolvedVirtualCallStubs.cpp */; }; - D5ED98012A8B8AAF00854015 /* UnityEngine.UIElementsModule5.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97622A8B8AAF00854015 /* UnityEngine.UIElementsModule5.cpp */; }; - D5ED98022A8B8AAF00854015 /* UnityEngine.UIElementsModule4.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97632A8B8AAF00854015 /* UnityEngine.UIElementsModule4.cpp */; }; - D5ED98032A8B8AAF00854015 /* UnityEngine.IMGUIModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97642A8B8AAF00854015 /* UnityEngine.IMGUIModule.cpp */; }; - D5ED98042A8B8AAF00854015 /* System.Core.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97652A8B8AAF00854015 /* System.Core.cpp */; }; - D5ED98052A8B8AAF00854015 /* UnityEngine.InputLegacyModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97662A8B8AAF00854015 /* UnityEngine.InputLegacyModule_CodeGen.c */; }; - D5ED98062A8B8AAF00854015 /* mscorlib7.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97672A8B8AAF00854015 /* mscorlib7.cpp */; }; - D5ED98072A8B8AAF00854015 /* Generics22.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97682A8B8AAF00854015 /* Generics22.cpp */; }; - D5ED98082A8B8AAF00854015 /* Generics20.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97692A8B8AAF00854015 /* Generics20.cpp */; }; - D5ED98092A8B8AAF00854015 /* mscorlib5.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED976A2A8B8AAF00854015 /* mscorlib5.cpp */; }; - D5ED980A2A8B8AAF00854015 /* UnityEngine.AndroidJNIModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED976B2A8B8AAF00854015 /* UnityEngine.AndroidJNIModule.cpp */; }; - D5ED980B2A8B8AAF00854015 /* Assembly-CSharp_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED976C2A8B8AAF00854015 /* Assembly-CSharp_CodeGen.c */; }; - D5ED980C2A8B8AAF00854015 /* Generics8.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED976D2A8B8AAF00854015 /* Generics8.cpp */; }; - D5ED980D2A8B8AAF00854015 /* UnityEngine.AudioModule_CodeGen.c in Sources */ = {isa = PBXBuildFile; fileRef = D5ED976E2A8B8AAF00854015 /* UnityEngine.AudioModule_CodeGen.c */; }; - D5ED980E2A8B8AAF00854015 /* UnityEngine.UIElementsModule6.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED976F2A8B8AAF00854015 /* UnityEngine.UIElementsModule6.cpp */; }; - D5ED980F2A8B8AAF00854015 /* UnityEngine.UIElementsModule7.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97702A8B8AAF00854015 /* UnityEngine.UIElementsModule7.cpp */; }; - D5ED98102A8B8AAF00854015 /* Generics9.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97712A8B8AAF00854015 /* Generics9.cpp */; }; - D5ED98112A8B8AAF00854015 /* Generics.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97722A8B8AAF00854015 /* Generics.cpp */; }; - D5ED98122A8B8AAF00854015 /* UnityEngine.UnityWebRequestModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97732A8B8AAF00854015 /* UnityEngine.UnityWebRequestModule.cpp */; }; - D5ED98132A8B8AAF00854015 /* mscorlib4.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97742A8B8AAF00854015 /* mscorlib4.cpp */; }; - D5ED98142A8B8AAF00854015 /* Generics21.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D5ED97752A8B8AAF00854015 /* Generics21.cpp */; }; D73241D4841253D964E0EAE6 /* StoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F50947088C745C27111D9D3F /* StoreKit.framework */; }; /* End PBXBuildFile section */ @@ -1237,6 +1237,166 @@ D53CC8AA2A7BA29800CAD911 /* libtolua.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libtolua.a; sourceTree = ""; }; D53CC8B02A7BA2EF00CAD911 /* ReplayKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ReplayKit.framework; path = System/Library/Frameworks/ReplayKit.framework; sourceTree = SDKROOT; }; D53CC8B72A7BA67000CAD911 /* libresolv.9.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libresolv.9.tbd; path = usr/lib/libresolv.9.tbd; sourceTree = SDKROOT; }; + D580D3132A8DE02600C036A0 /* Il2CppGenericAdjustorThunkTable.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Il2CppGenericAdjustorThunkTable.c; sourceTree = ""; }; + D580D3142A8DE02600C036A0 /* Generics10.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics10.cpp; sourceTree = ""; }; + D580D3152A8DE02600C036A0 /* mscorlib9.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib9.cpp; sourceTree = ""; }; + D580D3162A8DE02600C036A0 /* UnityEngine.UnityAnalyticsModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UnityAnalyticsModule.cpp; sourceTree = ""; }; + D580D3172A8DE02600C036A0 /* Il2CppGenericMethodTable.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Il2CppGenericMethodTable.c; sourceTree = ""; }; + D580D3182A8DE02600C036A0 /* Generics4.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics4.cpp; sourceTree = ""; }; + D580D3192A8DE02600C036A0 /* Generics5.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics5.cpp; sourceTree = ""; }; + D580D31A2A8DE02600C036A0 /* System.Xml_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = System.Xml_CodeGen.c; sourceTree = ""; }; + D580D31B2A8DE02600C036A0 /* GenericMethods6.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GenericMethods6.cpp; sourceTree = ""; }; + D580D31C2A8DE02600C036A0 /* mscorlib8.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib8.cpp; sourceTree = ""; }; + D580D31D2A8DE02600C036A0 /* Generics11.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics11.cpp; sourceTree = ""; }; + D580D31E2A8DE02600C036A0 /* UnityEngine.Physics2DModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.Physics2DModule_CodeGen.c; sourceTree = ""; }; + D580D31F2A8DE02600C036A0 /* Il2CppCCTypeValuesTable.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppCCTypeValuesTable.cpp; sourceTree = ""; }; + D580D3202A8DE02600C036A0 /* Generics13.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics13.cpp; sourceTree = ""; }; + D580D3212A8DE02600C036A0 /* GenericMethods4.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GenericMethods4.cpp; sourceTree = ""; }; + D580D3222A8DE02600C036A0 /* Il2CppInteropDataTable.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppInteropDataTable.cpp; sourceTree = ""; }; + D580D3232A8DE02600C036A0 /* Generics7.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics7.cpp; sourceTree = ""; }; + D580D3242A8DE02600C036A0 /* UnityEngine.UIElementsModule9.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule9.cpp; sourceTree = ""; }; + D580D3252A8DE02600C036A0 /* UnityEngine.UIElementsModule8.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule8.cpp; sourceTree = ""; }; + D580D3262A8DE02600C036A0 /* UnityICallRegistration.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityICallRegistration.cpp; sourceTree = ""; }; + D580D3272A8DE02600C036A0 /* Generics6.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics6.cpp; sourceTree = ""; }; + D580D3282A8DE02600C036A0 /* GenericMethods5.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GenericMethods5.cpp; sourceTree = ""; }; + D580D3292A8DE02600C036A0 /* UnityEngine_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine_CodeGen.c; sourceTree = ""; }; + D580D32A2A8DE02600C036A0 /* Generics12.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics12.cpp; sourceTree = ""; }; + D580D32B2A8DE02600C036A0 /* Generics16.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics16.cpp; sourceTree = ""; }; + D580D32C2A8DE02600C036A0 /* GenericMethods1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GenericMethods1.cpp; sourceTree = ""; }; + D580D32D2A8DE02600C036A0 /* UnityEngine.UIElementsNativeModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.UIElementsNativeModule_CodeGen.c; sourceTree = ""; }; + D580D32E2A8DE02600C036A0 /* Generics2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics2.cpp; sourceTree = ""; }; + D580D32F2A8DE02600C036A0 /* UnityEngine.TextCoreFontEngineModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.TextCoreFontEngineModule_CodeGen.c; sourceTree = ""; }; + D580D3302A8DE02600C036A0 /* UnityEngine.PhysicsModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.PhysicsModule_CodeGen.c; sourceTree = ""; }; + D580D3312A8DE02600C036A0 /* System1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = System1.cpp; sourceTree = ""; }; + D580D3322A8DE02600C036A0 /* Generics3.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics3.cpp; sourceTree = ""; }; + D580D3332A8DE02600C036A0 /* UnityEngine.AndroidJNIModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.AndroidJNIModule_CodeGen.c; sourceTree = ""; }; + D580D3342A8DE02600C036A0 /* Assembly-CSharp.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = "Assembly-CSharp.cpp"; sourceTree = ""; }; + D580D3352A8DE02600C036A0 /* Generics17.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics17.cpp; sourceTree = ""; }; + D580D3362A8DE02600C036A0 /* UnityEngine.UI_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.UI_CodeGen.c; sourceTree = ""; }; + D580D3372A8DE02600C036A0 /* Generics15.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics15.cpp; sourceTree = ""; }; + D580D3382A8DE02600C036A0 /* UnityEngine.SpriteShapeModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.SpriteShapeModule.cpp; sourceTree = ""; }; + D580D3392A8DE02600C036A0 /* UnityEngine.TextRenderingModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.TextRenderingModule.cpp; sourceTree = ""; }; + D580D33A2A8DE02600C036A0 /* GenericMethods2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GenericMethods2.cpp; sourceTree = ""; }; + D580D33B2A8DE02600C036A0 /* System3.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = System3.cpp; sourceTree = ""; }; + D580D33C2A8DE02600C036A0 /* Generics1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics1.cpp; sourceTree = ""; }; + D580D33D2A8DE02600C036A0 /* __Generated_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = __Generated_CodeGen.c; sourceTree = ""; }; + D580D33E2A8DE02600C036A0 /* System.Configuration.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = System.Configuration.cpp; sourceTree = ""; }; + D580D33F2A8DE02600C036A0 /* Il2CppCodeRegistration.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppCodeRegistration.cpp; sourceTree = ""; }; + D580D3402A8DE02600C036A0 /* System2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = System2.cpp; sourceTree = ""; }; + D580D3412A8DE02600C036A0 /* Il2CppCCalculateFieldValues1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppCCalculateFieldValues1.cpp; sourceTree = ""; }; + D580D3422A8DE02600C036A0 /* __Generated.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = __Generated.cpp; sourceTree = ""; }; + D580D3432A8DE02600C036A0 /* GenericMethods3.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GenericMethods3.cpp; sourceTree = ""; }; + D580D3442A8DE02600C036A0 /* Generics14.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics14.cpp; sourceTree = ""; }; + D580D3452A8DE02600C036A0 /* mscorlib15.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib15.cpp; sourceTree = ""; }; + D580D3462A8DE02600C036A0 /* UnityEngine.UIElementsModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.UIElementsModule_CodeGen.c; sourceTree = ""; }; + D580D3472A8DE02600C036A0 /* Il2CppCCalculateTypeValues.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppCCalculateTypeValues.cpp; sourceTree = ""; }; + D580D3482A8DE02600C036A0 /* Il2CppCCalculateFieldValues.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppCCalculateFieldValues.cpp; sourceTree = ""; }; + D580D3492A8DE02600C036A0 /* UnityEngine.AudioModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.AudioModule.cpp; sourceTree = ""; }; + D580D34A2A8DE02600C036A0 /* Il2CppGenericMethodPointerTable.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Il2CppGenericMethodPointerTable.c; sourceTree = ""; }; + D580D34B2A8DE02600C036A0 /* mscorlib14.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib14.cpp; sourceTree = ""; }; + D580D34C2A8DE02600C036A0 /* UnityEngine.CoreModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.CoreModule_CodeGen.c; sourceTree = ""; }; + D580D34D2A8DE02600C036A0 /* UnityEngine.AnimationModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.AnimationModule_CodeGen.c; sourceTree = ""; }; + D580D34E2A8DE02600C036A0 /* UnityEngine.AnimationModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.AnimationModule.cpp; sourceTree = ""; }; + D580D34F2A8DE02600C036A0 /* UnityEngine.TextRenderingModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.TextRenderingModule_CodeGen.c; sourceTree = ""; }; + D580D3502A8DE02600C036A0 /* mscorlib16.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib16.cpp; sourceTree = ""; }; + D580D3512A8DE02600C036A0 /* mscorlib17.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib17.cpp; sourceTree = ""; }; + D580D3522A8DE02600C036A0 /* UnityEngine.GameCenterModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.GameCenterModule.cpp; sourceTree = ""; }; + D580D3532A8DE02600C036A0 /* mscorlib13.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib13.cpp; sourceTree = ""; }; + D580D3542A8DE02600C036A0 /* mscorlib.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib.cpp; sourceTree = ""; }; + D580D3552A8DE02600C036A0 /* mscorlib12.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib12.cpp; sourceTree = ""; }; + D580D3562A8DE02600C036A0 /* UnityEngine.UnityWebRequestModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.UnityWebRequestModule_CodeGen.c; sourceTree = ""; }; + D580D3572A8DE02600C036A0 /* mscorlib10.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib10.cpp; sourceTree = ""; }; + D580D3582A8DE02600C036A0 /* Il2CppRgctxTable.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Il2CppRgctxTable.c; sourceTree = ""; }; + D580D3592A8DE02600C036A0 /* UnityClassRegistration.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityClassRegistration.cpp; sourceTree = ""; }; + D580D35A2A8DE02600C036A0 /* UnityEngine.InputLegacyModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.InputLegacyModule.cpp; sourceTree = ""; }; + D580D35B2A8DE02600C036A0 /* mscorlib11.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib11.cpp; sourceTree = ""; }; + D580D35C2A8DE02600C036A0 /* UnityEngine.SpriteShapeModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.SpriteShapeModule_CodeGen.c; sourceTree = ""; }; + D580D35D2A8DE02600C036A0 /* UnityEngine.UIElementsModule11.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule11.cpp; sourceTree = ""; }; + D580D35E2A8DE02600C036A0 /* UnityEngine.IMGUIModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.IMGUIModule_CodeGen.c; sourceTree = ""; }; + D580D35F2A8DE02600C036A0 /* Il2CppTypeDefinitions.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Il2CppTypeDefinitions.c; sourceTree = ""; }; + D580D3602A8DE02600C036A0 /* UnityEngine.UI.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UI.cpp; sourceTree = ""; }; + D580D3612A8DE02600C036A0 /* System_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = System_CodeGen.c; sourceTree = ""; }; + D580D3622A8DE02600C036A0 /* UnityEngine.IMGUIModule1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.IMGUIModule1.cpp; sourceTree = ""; }; + D580D3632A8DE02600C036A0 /* UnityEngine.UIModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIModule.cpp; sourceTree = ""; }; + D580D3642A8DE02600C036A0 /* UnityEngine.UIElementsModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule.cpp; sourceTree = ""; }; + D580D3652A8DE02600C036A0 /* UnityEngine.UIElementsModule10.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule10.cpp; sourceTree = ""; }; + D580D3662A8DE02600C036A0 /* UnityEngine.UIElementsModule12.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule12.cpp; sourceTree = ""; }; + D580D3672A8DE02600C036A0 /* UnityEngine.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.cpp; sourceTree = ""; }; + D580D3682A8DE02600C036A0 /* UnityEngine.SharedInternalsModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.SharedInternalsModule_CodeGen.c; sourceTree = ""; }; + D580D3692A8DE02600C036A0 /* mscorlib_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = mscorlib_CodeGen.c; sourceTree = ""; }; + D580D36A2A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.TextCoreTextEngineModule.cpp; sourceTree = ""; }; + D580D36B2A8DE02600C036A0 /* Il2CppMetadataRegistration.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Il2CppMetadataRegistration.c; sourceTree = ""; }; + D580D36C2A8DE02600C036A0 /* UnityEngine.Physics2DModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.Physics2DModule.cpp; sourceTree = ""; }; + D580D36D2A8DE02600C036A0 /* Il2CppGenericMethodDefinitions.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Il2CppGenericMethodDefinitions.c; sourceTree = ""; }; + D580D36E2A8DE02600C036A0 /* UnityEngine.SharedInternalsModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.SharedInternalsModule.cpp; sourceTree = ""; }; + D580D36F2A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.TextCoreTextEngineModule2.cpp; sourceTree = ""; }; + D580D3702A8DE02600C036A0 /* UnityEngine.UIModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.UIModule_CodeGen.c; sourceTree = ""; }; + D580D3712A8DE02600C036A0 /* System.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = System.cpp; sourceTree = ""; }; + D580D3722A8DE02600C036A0 /* Mono.Security.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Mono.Security.cpp; sourceTree = ""; }; + D580D3732A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule3.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.TextCoreTextEngineModule3.cpp; sourceTree = ""; }; + D580D3742A8DE02600C036A0 /* System.Configuration_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = System.Configuration_CodeGen.c; sourceTree = ""; }; + D580D3752A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.TextCoreTextEngineModule_CodeGen.c; sourceTree = ""; }; + D580D3762A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.TextCoreTextEngineModule1.cpp; sourceTree = ""; }; + D580D3772A8DE02600C036A0 /* UnityEngine.GridModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.GridModule.cpp; sourceTree = ""; }; + D580D3782A8DE02600C036A0 /* Il2CppMetadataUsage.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Il2CppMetadataUsage.c; sourceTree = ""; }; + D580D3792A8DE02600C036A0 /* Il2CppReversePInvokeWrapperTable.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppReversePInvokeWrapperTable.cpp; sourceTree = ""; }; + D580D37A2A8DE02600C036A0 /* UnityEngine.UIElementsNativeModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsNativeModule.cpp; sourceTree = ""; }; + D580D37B2A8DE02600C036A0 /* Generics19.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics19.cpp; sourceTree = ""; }; + D580D37C2A8DE02600C036A0 /* Il2CppInvokerTable.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppInvokerTable.cpp; sourceTree = ""; }; + D580D37D2A8DE02600C036A0 /* UnityEngine.UI1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UI1.cpp; sourceTree = ""; }; + D580D37E2A8DE02600C036A0 /* Generics25.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics25.cpp; sourceTree = ""; }; + D580D37F2A8DE02600C036A0 /* Mono.Security_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Mono.Security_CodeGen.c; sourceTree = ""; }; + D580D3802A8DE02600C036A0 /* UnityEngine.UIElementsModule3.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule3.cpp; sourceTree = ""; }; + D580D3812A8DE02600C036A0 /* UnityEngine.UIElementsModule2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule2.cpp; sourceTree = ""; }; + D580D3822A8DE02600C036A0 /* UnityEngine.CoreModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.CoreModule.cpp; sourceTree = ""; }; + D580D3832A8DE02600C036A0 /* Il2CppGenericClassTable.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Il2CppGenericClassTable.c; sourceTree = ""; }; + D580D3842A8DE02600C036A0 /* UnityEngine.GridModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.GridModule_CodeGen.c; sourceTree = ""; }; + D580D3852A8DE02600C036A0 /* System.Xml.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = System.Xml.cpp; sourceTree = ""; }; + D580D3862A8DE02600C036A0 /* UnityEngine.CoreModule1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.CoreModule1.cpp; sourceTree = ""; }; + D580D3872A8DE02600C036A0 /* Il2CppGenericInstDefinitions.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Il2CppGenericInstDefinitions.c; sourceTree = ""; }; + D580D3882A8DE02600C036A0 /* mscorlib1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib1.cpp; sourceTree = ""; }; + D580D3892A8DE02600C036A0 /* Generics24.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics24.cpp; sourceTree = ""; }; + D580D38A2A8DE02600C036A0 /* Generics18.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics18.cpp; sourceTree = ""; }; + D580D38B2A8DE02600C036A0 /* UnityEngine.PhysicsModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.PhysicsModule.cpp; sourceTree = ""; }; + D580D38C2A8DE02600C036A0 /* UnityEngine.TextCoreFontEngineModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.TextCoreFontEngineModule.cpp; sourceTree = ""; }; + D580D38D2A8DE02600C036A0 /* UnityEngine.UI2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UI2.cpp; sourceTree = ""; }; + D580D38E2A8DE02600C036A0 /* Generics26.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics26.cpp; sourceTree = ""; }; + D580D38F2A8DE02600C036A0 /* mscorlib3.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib3.cpp; sourceTree = ""; }; + D580D3902A8DE02600C036A0 /* UnityEngine.GameCenterModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.GameCenterModule_CodeGen.c; sourceTree = ""; }; + D580D3912A8DE02600C036A0 /* UnityEngine.TilemapModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.TilemapModule.cpp; sourceTree = ""; }; + D580D3922A8DE02600C036A0 /* UnityEngine.UIElementsModule1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule1.cpp; sourceTree = ""; }; + D580D3932A8DE02600C036A0 /* UnityEngine.UnityAnalyticsModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.UnityAnalyticsModule_CodeGen.c; sourceTree = ""; }; + D580D3942A8DE02600C036A0 /* Il2CppCCFieldValuesTable.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppCCFieldValuesTable.cpp; sourceTree = ""; }; + D580D3952A8DE02600C036A0 /* mscorlib2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib2.cpp; sourceTree = ""; }; + D580D3962A8DE02600C036A0 /* System.Core_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = System.Core_CodeGen.c; sourceTree = ""; }; + D580D3972A8DE02600C036A0 /* Generics27.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics27.cpp; sourceTree = ""; }; + D580D3982A8DE02600C036A0 /* UnityEngine.UI3.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UI3.cpp; sourceTree = ""; }; + D580D3992A8DE02600C036A0 /* GenericMethods.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GenericMethods.cpp; sourceTree = ""; }; + D580D39A2A8DE02600C036A0 /* Generics23.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics23.cpp; sourceTree = ""; }; + D580D39B2A8DE02600C036A0 /* UnityEngine.TilemapModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.TilemapModule_CodeGen.c; sourceTree = ""; }; + D580D39C2A8DE02600C036A0 /* mscorlib6.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib6.cpp; sourceTree = ""; }; + D580D39D2A8DE02600C036A0 /* UnresolvedVirtualCallStubs.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnresolvedVirtualCallStubs.cpp; sourceTree = ""; }; + D580D39E2A8DE02600C036A0 /* UnityEngine.UIElementsModule5.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule5.cpp; sourceTree = ""; }; + D580D39F2A8DE02600C036A0 /* UnityEngine.UIElementsModule4.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule4.cpp; sourceTree = ""; }; + D580D3A02A8DE02600C036A0 /* UnityEngine.IMGUIModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.IMGUIModule.cpp; sourceTree = ""; }; + D580D3A12A8DE02600C036A0 /* System.Core.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = System.Core.cpp; sourceTree = ""; }; + D580D3A22A8DE02600C036A0 /* UnityEngine.InputLegacyModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.InputLegacyModule_CodeGen.c; sourceTree = ""; }; + D580D3A32A8DE02600C036A0 /* mscorlib7.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib7.cpp; sourceTree = ""; }; + D580D3A42A8DE02600C036A0 /* Generics22.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics22.cpp; sourceTree = ""; }; + D580D3A52A8DE02600C036A0 /* Generics20.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics20.cpp; sourceTree = ""; }; + D580D3A62A8DE02600C036A0 /* mscorlib5.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib5.cpp; sourceTree = ""; }; + D580D3A72A8DE02600C036A0 /* UnityEngine.AndroidJNIModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.AndroidJNIModule.cpp; sourceTree = ""; }; + D580D3A82A8DE02600C036A0 /* Assembly-CSharp_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "Assembly-CSharp_CodeGen.c"; sourceTree = ""; }; + D580D3A92A8DE02600C036A0 /* Generics8.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics8.cpp; sourceTree = ""; }; + D580D3AA2A8DE02600C036A0 /* UnityEngine.AudioModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.AudioModule_CodeGen.c; sourceTree = ""; }; + D580D3AB2A8DE02600C036A0 /* UnityEngine.UIElementsModule6.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule6.cpp; sourceTree = ""; }; + D580D3AC2A8DE02600C036A0 /* UnityEngine.UIElementsModule7.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule7.cpp; sourceTree = ""; }; + D580D3AD2A8DE02600C036A0 /* Generics9.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics9.cpp; sourceTree = ""; }; + D580D3AE2A8DE02600C036A0 /* Generics.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics.cpp; sourceTree = ""; }; + D580D3AF2A8DE02600C036A0 /* UnityEngine.UnityWebRequestModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UnityWebRequestModule.cpp; sourceTree = ""; }; + D580D3B02A8DE02600C036A0 /* mscorlib4.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib4.cpp; sourceTree = ""; }; + D580D3B12A8DE02600C036A0 /* Generics21.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics21.cpp; sourceTree = ""; }; + D580D4512A8DE18800C036A0 /* Data */ = {isa = PBXFileReference; lastKnownFileType = folder; name = Data; path = "../../game/wallet-test/target/ios/Data"; sourceTree = ""; }; D59AB8462A68FC2200433200 /* StoreObserver.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StoreObserver.m; sourceTree = ""; }; D59AB8492A68FC5200433200 /* StoreObserver.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StoreObserver.h; sourceTree = ""; }; D59AB84A2A68FC7200433200 /* AppConfiguration.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppConfiguration.h; sourceTree = ""; }; @@ -1257,166 +1417,6 @@ D5BF397729C9B8C000EC6351 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; }; D5DE834C29C831E20029E408 /* UIViewController+Share.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "UIViewController+Share.h"; sourceTree = ""; }; D5DE834E29C831FE0029E408 /* UIViewController+Share.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = "UIViewController+Share.mm"; sourceTree = ""; }; - D5ED96D42A8B8A9800854015 /* Data */ = {isa = PBXFileReference; lastKnownFileType = folder; path = Data; sourceTree = ""; }; - D5ED96D72A8B8AAF00854015 /* Il2CppGenericAdjustorThunkTable.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Il2CppGenericAdjustorThunkTable.c; sourceTree = ""; }; - D5ED96D82A8B8AAF00854015 /* Generics10.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics10.cpp; sourceTree = ""; }; - D5ED96D92A8B8AAF00854015 /* mscorlib9.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib9.cpp; sourceTree = ""; }; - D5ED96DA2A8B8AAF00854015 /* UnityEngine.UnityAnalyticsModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UnityAnalyticsModule.cpp; sourceTree = ""; }; - D5ED96DB2A8B8AAF00854015 /* Il2CppGenericMethodTable.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Il2CppGenericMethodTable.c; sourceTree = ""; }; - D5ED96DC2A8B8AAF00854015 /* Generics4.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics4.cpp; sourceTree = ""; }; - D5ED96DD2A8B8AAF00854015 /* Generics5.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics5.cpp; sourceTree = ""; }; - D5ED96DE2A8B8AAF00854015 /* System.Xml_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = System.Xml_CodeGen.c; sourceTree = ""; }; - D5ED96DF2A8B8AAF00854015 /* GenericMethods6.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GenericMethods6.cpp; sourceTree = ""; }; - D5ED96E02A8B8AAF00854015 /* mscorlib8.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib8.cpp; sourceTree = ""; }; - D5ED96E12A8B8AAF00854015 /* Generics11.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics11.cpp; sourceTree = ""; }; - D5ED96E22A8B8AAF00854015 /* UnityEngine.Physics2DModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.Physics2DModule_CodeGen.c; sourceTree = ""; }; - D5ED96E32A8B8AAF00854015 /* Il2CppCCTypeValuesTable.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppCCTypeValuesTable.cpp; sourceTree = ""; }; - D5ED96E42A8B8AAF00854015 /* Generics13.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics13.cpp; sourceTree = ""; }; - D5ED96E52A8B8AAF00854015 /* GenericMethods4.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GenericMethods4.cpp; sourceTree = ""; }; - D5ED96E62A8B8AAF00854015 /* Il2CppInteropDataTable.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppInteropDataTable.cpp; sourceTree = ""; }; - D5ED96E72A8B8AAF00854015 /* Generics7.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics7.cpp; sourceTree = ""; }; - D5ED96E82A8B8AAF00854015 /* UnityEngine.UIElementsModule9.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule9.cpp; sourceTree = ""; }; - D5ED96E92A8B8AAF00854015 /* UnityEngine.UIElementsModule8.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule8.cpp; sourceTree = ""; }; - D5ED96EA2A8B8AAF00854015 /* UnityICallRegistration.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityICallRegistration.cpp; sourceTree = ""; }; - D5ED96EB2A8B8AAF00854015 /* Generics6.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics6.cpp; sourceTree = ""; }; - D5ED96EC2A8B8AAF00854015 /* GenericMethods5.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GenericMethods5.cpp; sourceTree = ""; }; - D5ED96ED2A8B8AAF00854015 /* UnityEngine_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine_CodeGen.c; sourceTree = ""; }; - D5ED96EE2A8B8AAF00854015 /* Generics12.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics12.cpp; sourceTree = ""; }; - D5ED96EF2A8B8AAF00854015 /* Generics16.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics16.cpp; sourceTree = ""; }; - D5ED96F02A8B8AAF00854015 /* GenericMethods1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GenericMethods1.cpp; sourceTree = ""; }; - D5ED96F12A8B8AAF00854015 /* UnityEngine.UIElementsNativeModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.UIElementsNativeModule_CodeGen.c; sourceTree = ""; }; - D5ED96F22A8B8AAF00854015 /* Generics2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics2.cpp; sourceTree = ""; }; - D5ED96F32A8B8AAF00854015 /* UnityEngine.TextCoreFontEngineModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.TextCoreFontEngineModule_CodeGen.c; sourceTree = ""; }; - D5ED96F42A8B8AAF00854015 /* UnityEngine.PhysicsModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.PhysicsModule_CodeGen.c; sourceTree = ""; }; - D5ED96F52A8B8AAF00854015 /* System1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = System1.cpp; sourceTree = ""; }; - D5ED96F62A8B8AAF00854015 /* Generics3.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics3.cpp; sourceTree = ""; }; - D5ED96F72A8B8AAF00854015 /* UnityEngine.AndroidJNIModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.AndroidJNIModule_CodeGen.c; sourceTree = ""; }; - D5ED96F82A8B8AAF00854015 /* Assembly-CSharp.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = "Assembly-CSharp.cpp"; sourceTree = ""; }; - D5ED96F92A8B8AAF00854015 /* Generics17.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics17.cpp; sourceTree = ""; }; - D5ED96FA2A8B8AAF00854015 /* UnityEngine.UI_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.UI_CodeGen.c; sourceTree = ""; }; - D5ED96FB2A8B8AAF00854015 /* Generics15.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics15.cpp; sourceTree = ""; }; - D5ED96FC2A8B8AAF00854015 /* UnityEngine.SpriteShapeModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.SpriteShapeModule.cpp; sourceTree = ""; }; - D5ED96FD2A8B8AAF00854015 /* UnityEngine.TextRenderingModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.TextRenderingModule.cpp; sourceTree = ""; }; - D5ED96FE2A8B8AAF00854015 /* GenericMethods2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GenericMethods2.cpp; sourceTree = ""; }; - D5ED96FF2A8B8AAF00854015 /* System3.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = System3.cpp; sourceTree = ""; }; - D5ED97002A8B8AAF00854015 /* Generics1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics1.cpp; sourceTree = ""; }; - D5ED97012A8B8AAF00854015 /* __Generated_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = __Generated_CodeGen.c; sourceTree = ""; }; - D5ED97022A8B8AAF00854015 /* System.Configuration.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = System.Configuration.cpp; sourceTree = ""; }; - D5ED97032A8B8AAF00854015 /* Il2CppCodeRegistration.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppCodeRegistration.cpp; sourceTree = ""; }; - D5ED97042A8B8AAF00854015 /* System2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = System2.cpp; sourceTree = ""; }; - D5ED97052A8B8AAF00854015 /* Il2CppCCalculateFieldValues1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppCCalculateFieldValues1.cpp; sourceTree = ""; }; - D5ED97062A8B8AAF00854015 /* __Generated.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = __Generated.cpp; sourceTree = ""; }; - D5ED97072A8B8AAF00854015 /* GenericMethods3.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GenericMethods3.cpp; sourceTree = ""; }; - D5ED97082A8B8AAF00854015 /* Generics14.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics14.cpp; sourceTree = ""; }; - D5ED97092A8B8AAF00854015 /* mscorlib15.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib15.cpp; sourceTree = ""; }; - D5ED970A2A8B8AAF00854015 /* UnityEngine.UIElementsModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.UIElementsModule_CodeGen.c; sourceTree = ""; }; - D5ED970B2A8B8AAF00854015 /* Il2CppCCalculateTypeValues.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppCCalculateTypeValues.cpp; sourceTree = ""; }; - D5ED970C2A8B8AAF00854015 /* Il2CppCCalculateFieldValues.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppCCalculateFieldValues.cpp; sourceTree = ""; }; - D5ED970D2A8B8AAF00854015 /* UnityEngine.AudioModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.AudioModule.cpp; sourceTree = ""; }; - D5ED970E2A8B8AAF00854015 /* Il2CppGenericMethodPointerTable.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Il2CppGenericMethodPointerTable.c; sourceTree = ""; }; - D5ED970F2A8B8AAF00854015 /* mscorlib14.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib14.cpp; sourceTree = ""; }; - D5ED97102A8B8AAF00854015 /* UnityEngine.CoreModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.CoreModule_CodeGen.c; sourceTree = ""; }; - D5ED97112A8B8AAF00854015 /* UnityEngine.AnimationModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.AnimationModule_CodeGen.c; sourceTree = ""; }; - D5ED97122A8B8AAF00854015 /* UnityEngine.AnimationModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.AnimationModule.cpp; sourceTree = ""; }; - D5ED97132A8B8AAF00854015 /* UnityEngine.TextRenderingModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.TextRenderingModule_CodeGen.c; sourceTree = ""; }; - D5ED97142A8B8AAF00854015 /* mscorlib16.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib16.cpp; sourceTree = ""; }; - D5ED97152A8B8AAF00854015 /* mscorlib17.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib17.cpp; sourceTree = ""; }; - D5ED97162A8B8AAF00854015 /* UnityEngine.GameCenterModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.GameCenterModule.cpp; sourceTree = ""; }; - D5ED97172A8B8AAF00854015 /* mscorlib13.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib13.cpp; sourceTree = ""; }; - D5ED97182A8B8AAF00854015 /* mscorlib.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib.cpp; sourceTree = ""; }; - D5ED97192A8B8AAF00854015 /* mscorlib12.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib12.cpp; sourceTree = ""; }; - D5ED971A2A8B8AAF00854015 /* UnityEngine.UnityWebRequestModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.UnityWebRequestModule_CodeGen.c; sourceTree = ""; }; - D5ED971B2A8B8AAF00854015 /* mscorlib10.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib10.cpp; sourceTree = ""; }; - D5ED971C2A8B8AAF00854015 /* Il2CppRgctxTable.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Il2CppRgctxTable.c; sourceTree = ""; }; - D5ED971D2A8B8AAF00854015 /* UnityClassRegistration.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityClassRegistration.cpp; sourceTree = ""; }; - D5ED971E2A8B8AAF00854015 /* UnityEngine.InputLegacyModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.InputLegacyModule.cpp; sourceTree = ""; }; - D5ED971F2A8B8AAF00854015 /* mscorlib11.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib11.cpp; sourceTree = ""; }; - D5ED97202A8B8AAF00854015 /* UnityEngine.SpriteShapeModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.SpriteShapeModule_CodeGen.c; sourceTree = ""; }; - D5ED97212A8B8AAF00854015 /* UnityEngine.UIElementsModule11.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule11.cpp; sourceTree = ""; }; - D5ED97222A8B8AAF00854015 /* UnityEngine.IMGUIModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.IMGUIModule_CodeGen.c; sourceTree = ""; }; - D5ED97232A8B8AAF00854015 /* Il2CppTypeDefinitions.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Il2CppTypeDefinitions.c; sourceTree = ""; }; - D5ED97242A8B8AAF00854015 /* UnityEngine.UI.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UI.cpp; sourceTree = ""; }; - D5ED97252A8B8AAF00854015 /* System_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = System_CodeGen.c; sourceTree = ""; }; - D5ED97262A8B8AAF00854015 /* UnityEngine.IMGUIModule1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.IMGUIModule1.cpp; sourceTree = ""; }; - D5ED97272A8B8AAF00854015 /* UnityEngine.UIModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIModule.cpp; sourceTree = ""; }; - D5ED97282A8B8AAF00854015 /* UnityEngine.UIElementsModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule.cpp; sourceTree = ""; }; - D5ED97292A8B8AAF00854015 /* UnityEngine.UIElementsModule10.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule10.cpp; sourceTree = ""; }; - D5ED972A2A8B8AAF00854015 /* UnityEngine.UIElementsModule12.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule12.cpp; sourceTree = ""; }; - D5ED972B2A8B8AAF00854015 /* UnityEngine.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.cpp; sourceTree = ""; }; - D5ED972C2A8B8AAF00854015 /* UnityEngine.SharedInternalsModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.SharedInternalsModule_CodeGen.c; sourceTree = ""; }; - D5ED972D2A8B8AAF00854015 /* mscorlib_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = mscorlib_CodeGen.c; sourceTree = ""; }; - D5ED972E2A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.TextCoreTextEngineModule.cpp; sourceTree = ""; }; - D5ED972F2A8B8AAF00854015 /* Il2CppMetadataRegistration.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Il2CppMetadataRegistration.c; sourceTree = ""; }; - D5ED97302A8B8AAF00854015 /* UnityEngine.Physics2DModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.Physics2DModule.cpp; sourceTree = ""; }; - D5ED97312A8B8AAF00854015 /* Il2CppGenericMethodDefinitions.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Il2CppGenericMethodDefinitions.c; sourceTree = ""; }; - D5ED97322A8B8AAF00854015 /* UnityEngine.SharedInternalsModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.SharedInternalsModule.cpp; sourceTree = ""; }; - D5ED97332A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.TextCoreTextEngineModule2.cpp; sourceTree = ""; }; - D5ED97342A8B8AAF00854015 /* UnityEngine.UIModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.UIModule_CodeGen.c; sourceTree = ""; }; - D5ED97352A8B8AAF00854015 /* System.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = System.cpp; sourceTree = ""; }; - D5ED97362A8B8AAF00854015 /* Mono.Security.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Mono.Security.cpp; sourceTree = ""; }; - D5ED97372A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule3.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.TextCoreTextEngineModule3.cpp; sourceTree = ""; }; - D5ED97382A8B8AAF00854015 /* System.Configuration_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = System.Configuration_CodeGen.c; sourceTree = ""; }; - D5ED97392A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.TextCoreTextEngineModule_CodeGen.c; sourceTree = ""; }; - D5ED973A2A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.TextCoreTextEngineModule1.cpp; sourceTree = ""; }; - D5ED973B2A8B8AAF00854015 /* UnityEngine.GridModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.GridModule.cpp; sourceTree = ""; }; - D5ED973C2A8B8AAF00854015 /* Il2CppMetadataUsage.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Il2CppMetadataUsage.c; sourceTree = ""; }; - D5ED973D2A8B8AAF00854015 /* Il2CppReversePInvokeWrapperTable.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppReversePInvokeWrapperTable.cpp; sourceTree = ""; }; - D5ED973E2A8B8AAF00854015 /* UnityEngine.UIElementsNativeModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsNativeModule.cpp; sourceTree = ""; }; - D5ED973F2A8B8AAF00854015 /* Generics19.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics19.cpp; sourceTree = ""; }; - D5ED97402A8B8AAF00854015 /* Il2CppInvokerTable.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppInvokerTable.cpp; sourceTree = ""; }; - D5ED97412A8B8AAF00854015 /* UnityEngine.UI1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UI1.cpp; sourceTree = ""; }; - D5ED97422A8B8AAF00854015 /* Generics25.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics25.cpp; sourceTree = ""; }; - D5ED97432A8B8AAF00854015 /* Mono.Security_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Mono.Security_CodeGen.c; sourceTree = ""; }; - D5ED97442A8B8AAF00854015 /* UnityEngine.UIElementsModule3.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule3.cpp; sourceTree = ""; }; - D5ED97452A8B8AAF00854015 /* UnityEngine.UIElementsModule2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule2.cpp; sourceTree = ""; }; - D5ED97462A8B8AAF00854015 /* UnityEngine.CoreModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.CoreModule.cpp; sourceTree = ""; }; - D5ED97472A8B8AAF00854015 /* Il2CppGenericClassTable.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Il2CppGenericClassTable.c; sourceTree = ""; }; - D5ED97482A8B8AAF00854015 /* UnityEngine.GridModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.GridModule_CodeGen.c; sourceTree = ""; }; - D5ED97492A8B8AAF00854015 /* System.Xml.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = System.Xml.cpp; sourceTree = ""; }; - D5ED974A2A8B8AAF00854015 /* UnityEngine.CoreModule1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.CoreModule1.cpp; sourceTree = ""; }; - D5ED974B2A8B8AAF00854015 /* Il2CppGenericInstDefinitions.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Il2CppGenericInstDefinitions.c; sourceTree = ""; }; - D5ED974C2A8B8AAF00854015 /* mscorlib1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib1.cpp; sourceTree = ""; }; - D5ED974D2A8B8AAF00854015 /* Generics24.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics24.cpp; sourceTree = ""; }; - D5ED974E2A8B8AAF00854015 /* Generics18.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics18.cpp; sourceTree = ""; }; - D5ED974F2A8B8AAF00854015 /* UnityEngine.PhysicsModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.PhysicsModule.cpp; sourceTree = ""; }; - D5ED97502A8B8AAF00854015 /* UnityEngine.TextCoreFontEngineModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.TextCoreFontEngineModule.cpp; sourceTree = ""; }; - D5ED97512A8B8AAF00854015 /* UnityEngine.UI2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UI2.cpp; sourceTree = ""; }; - D5ED97522A8B8AAF00854015 /* Generics26.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics26.cpp; sourceTree = ""; }; - D5ED97532A8B8AAF00854015 /* mscorlib3.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib3.cpp; sourceTree = ""; }; - D5ED97542A8B8AAF00854015 /* UnityEngine.GameCenterModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.GameCenterModule_CodeGen.c; sourceTree = ""; }; - D5ED97552A8B8AAF00854015 /* UnityEngine.TilemapModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.TilemapModule.cpp; sourceTree = ""; }; - D5ED97562A8B8AAF00854015 /* UnityEngine.UIElementsModule1.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule1.cpp; sourceTree = ""; }; - D5ED97572A8B8AAF00854015 /* UnityEngine.UnityAnalyticsModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.UnityAnalyticsModule_CodeGen.c; sourceTree = ""; }; - D5ED97582A8B8AAF00854015 /* Il2CppCCFieldValuesTable.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Il2CppCCFieldValuesTable.cpp; sourceTree = ""; }; - D5ED97592A8B8AAF00854015 /* mscorlib2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib2.cpp; sourceTree = ""; }; - D5ED975A2A8B8AAF00854015 /* System.Core_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = System.Core_CodeGen.c; sourceTree = ""; }; - D5ED975B2A8B8AAF00854015 /* Generics27.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics27.cpp; sourceTree = ""; }; - D5ED975C2A8B8AAF00854015 /* UnityEngine.UI3.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UI3.cpp; sourceTree = ""; }; - D5ED975D2A8B8AAF00854015 /* GenericMethods.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GenericMethods.cpp; sourceTree = ""; }; - D5ED975E2A8B8AAF00854015 /* Generics23.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics23.cpp; sourceTree = ""; }; - D5ED975F2A8B8AAF00854015 /* UnityEngine.TilemapModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.TilemapModule_CodeGen.c; sourceTree = ""; }; - D5ED97602A8B8AAF00854015 /* mscorlib6.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib6.cpp; sourceTree = ""; }; - D5ED97612A8B8AAF00854015 /* UnresolvedVirtualCallStubs.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnresolvedVirtualCallStubs.cpp; sourceTree = ""; }; - D5ED97622A8B8AAF00854015 /* UnityEngine.UIElementsModule5.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule5.cpp; sourceTree = ""; }; - D5ED97632A8B8AAF00854015 /* UnityEngine.UIElementsModule4.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule4.cpp; sourceTree = ""; }; - D5ED97642A8B8AAF00854015 /* UnityEngine.IMGUIModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.IMGUIModule.cpp; sourceTree = ""; }; - D5ED97652A8B8AAF00854015 /* System.Core.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = System.Core.cpp; sourceTree = ""; }; - D5ED97662A8B8AAF00854015 /* UnityEngine.InputLegacyModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.InputLegacyModule_CodeGen.c; sourceTree = ""; }; - D5ED97672A8B8AAF00854015 /* mscorlib7.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib7.cpp; sourceTree = ""; }; - D5ED97682A8B8AAF00854015 /* Generics22.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics22.cpp; sourceTree = ""; }; - D5ED97692A8B8AAF00854015 /* Generics20.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics20.cpp; sourceTree = ""; }; - D5ED976A2A8B8AAF00854015 /* mscorlib5.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib5.cpp; sourceTree = ""; }; - D5ED976B2A8B8AAF00854015 /* UnityEngine.AndroidJNIModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.AndroidJNIModule.cpp; sourceTree = ""; }; - D5ED976C2A8B8AAF00854015 /* Assembly-CSharp_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "Assembly-CSharp_CodeGen.c"; sourceTree = ""; }; - D5ED976D2A8B8AAF00854015 /* Generics8.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics8.cpp; sourceTree = ""; }; - D5ED976E2A8B8AAF00854015 /* UnityEngine.AudioModule_CodeGen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = UnityEngine.AudioModule_CodeGen.c; sourceTree = ""; }; - D5ED976F2A8B8AAF00854015 /* UnityEngine.UIElementsModule6.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule6.cpp; sourceTree = ""; }; - D5ED97702A8B8AAF00854015 /* UnityEngine.UIElementsModule7.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UIElementsModule7.cpp; sourceTree = ""; }; - D5ED97712A8B8AAF00854015 /* Generics9.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics9.cpp; sourceTree = ""; }; - D5ED97722A8B8AAF00854015 /* Generics.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics.cpp; sourceTree = ""; }; - D5ED97732A8B8AAF00854015 /* UnityEngine.UnityWebRequestModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UnityEngine.UnityWebRequestModule.cpp; sourceTree = ""; }; - D5ED97742A8B8AAF00854015 /* mscorlib4.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mscorlib4.cpp; sourceTree = ""; }; - D5ED97752A8B8AAF00854015 /* Generics21.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Generics21.cpp; sourceTree = ""; }; D82C4A5193DCF9EF3D188459 /* LaunchScreen-iPad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "LaunchScreen-iPad.png"; sourceTree = SOURCE_ROOT; }; F45EC7828AD38CFF72384701 /* Pods_Unity_iPhone.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Unity_iPhone.framework; sourceTree = BUILT_PRODUCTS_DIR; }; F50947088C745C27111D9D3F /* StoreKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = StoreKit.framework; path = System/Library/Frameworks/StoreKit.framework; sourceTree = SDKROOT; }; @@ -1519,7 +1519,7 @@ 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = { isa = PBXGroup; children = ( - D5ED96D42A8B8A9800854015 /* Data */, + D580D4512A8DE18800C036A0 /* Data */, D59AB85A2A6A387A00433200 /* test-in-app-purchase.storekit */, D59AB8482A68FC2900433200 /* purchase */, D526FA3C299498E3002A2290 /* cocos2d_libs.xcodeproj */, @@ -1770,7 +1770,7 @@ D507D14B2994C61600CF3953 /* Classes */ = { isa = PBXGroup; children = ( - D5ED96D62A8B8AAF00854015 /* Native */, + D580D3122A8DE02600C036A0 /* Native */, D507D2362994C61700CF3953 /* CrashReporter.h */, D507D2312994C61700CF3953 /* CrashReporter.mm */, D507D18A2994C61600CF3953 /* DynamicLibEngineAPI-functions.h */, @@ -3491,6 +3491,172 @@ path = iOS; sourceTree = ""; }; + D580D3122A8DE02600C036A0 /* Native */ = { + isa = PBXGroup; + children = ( + D580D3132A8DE02600C036A0 /* Il2CppGenericAdjustorThunkTable.c */, + D580D3142A8DE02600C036A0 /* Generics10.cpp */, + D580D3152A8DE02600C036A0 /* mscorlib9.cpp */, + D580D3162A8DE02600C036A0 /* UnityEngine.UnityAnalyticsModule.cpp */, + D580D3172A8DE02600C036A0 /* Il2CppGenericMethodTable.c */, + D580D3182A8DE02600C036A0 /* Generics4.cpp */, + D580D3192A8DE02600C036A0 /* Generics5.cpp */, + D580D31A2A8DE02600C036A0 /* System.Xml_CodeGen.c */, + D580D31B2A8DE02600C036A0 /* GenericMethods6.cpp */, + D580D31C2A8DE02600C036A0 /* mscorlib8.cpp */, + D580D31D2A8DE02600C036A0 /* Generics11.cpp */, + D580D31E2A8DE02600C036A0 /* UnityEngine.Physics2DModule_CodeGen.c */, + D580D31F2A8DE02600C036A0 /* Il2CppCCTypeValuesTable.cpp */, + D580D3202A8DE02600C036A0 /* Generics13.cpp */, + D580D3212A8DE02600C036A0 /* GenericMethods4.cpp */, + D580D3222A8DE02600C036A0 /* Il2CppInteropDataTable.cpp */, + D580D3232A8DE02600C036A0 /* Generics7.cpp */, + D580D3242A8DE02600C036A0 /* UnityEngine.UIElementsModule9.cpp */, + D580D3252A8DE02600C036A0 /* UnityEngine.UIElementsModule8.cpp */, + D580D3262A8DE02600C036A0 /* UnityICallRegistration.cpp */, + D580D3272A8DE02600C036A0 /* Generics6.cpp */, + D580D3282A8DE02600C036A0 /* GenericMethods5.cpp */, + D580D3292A8DE02600C036A0 /* UnityEngine_CodeGen.c */, + D580D32A2A8DE02600C036A0 /* Generics12.cpp */, + D580D32B2A8DE02600C036A0 /* Generics16.cpp */, + D580D32C2A8DE02600C036A0 /* GenericMethods1.cpp */, + D580D32D2A8DE02600C036A0 /* UnityEngine.UIElementsNativeModule_CodeGen.c */, + D580D32E2A8DE02600C036A0 /* Generics2.cpp */, + D580D32F2A8DE02600C036A0 /* UnityEngine.TextCoreFontEngineModule_CodeGen.c */, + D580D3302A8DE02600C036A0 /* UnityEngine.PhysicsModule_CodeGen.c */, + D580D3312A8DE02600C036A0 /* System1.cpp */, + D580D3322A8DE02600C036A0 /* Generics3.cpp */, + D580D3332A8DE02600C036A0 /* UnityEngine.AndroidJNIModule_CodeGen.c */, + D580D3342A8DE02600C036A0 /* Assembly-CSharp.cpp */, + D580D3352A8DE02600C036A0 /* Generics17.cpp */, + D580D3362A8DE02600C036A0 /* UnityEngine.UI_CodeGen.c */, + D580D3372A8DE02600C036A0 /* Generics15.cpp */, + D580D3382A8DE02600C036A0 /* UnityEngine.SpriteShapeModule.cpp */, + D580D3392A8DE02600C036A0 /* UnityEngine.TextRenderingModule.cpp */, + D580D33A2A8DE02600C036A0 /* GenericMethods2.cpp */, + D580D33B2A8DE02600C036A0 /* System3.cpp */, + D580D33C2A8DE02600C036A0 /* Generics1.cpp */, + D580D33D2A8DE02600C036A0 /* __Generated_CodeGen.c */, + D580D33E2A8DE02600C036A0 /* System.Configuration.cpp */, + D580D33F2A8DE02600C036A0 /* Il2CppCodeRegistration.cpp */, + D580D3402A8DE02600C036A0 /* System2.cpp */, + D580D3412A8DE02600C036A0 /* Il2CppCCalculateFieldValues1.cpp */, + D580D3422A8DE02600C036A0 /* __Generated.cpp */, + D580D3432A8DE02600C036A0 /* GenericMethods3.cpp */, + D580D3442A8DE02600C036A0 /* Generics14.cpp */, + D580D3452A8DE02600C036A0 /* mscorlib15.cpp */, + D580D3462A8DE02600C036A0 /* UnityEngine.UIElementsModule_CodeGen.c */, + D580D3472A8DE02600C036A0 /* Il2CppCCalculateTypeValues.cpp */, + D580D3482A8DE02600C036A0 /* Il2CppCCalculateFieldValues.cpp */, + D580D3492A8DE02600C036A0 /* UnityEngine.AudioModule.cpp */, + D580D34A2A8DE02600C036A0 /* Il2CppGenericMethodPointerTable.c */, + D580D34B2A8DE02600C036A0 /* mscorlib14.cpp */, + D580D34C2A8DE02600C036A0 /* UnityEngine.CoreModule_CodeGen.c */, + D580D34D2A8DE02600C036A0 /* UnityEngine.AnimationModule_CodeGen.c */, + D580D34E2A8DE02600C036A0 /* UnityEngine.AnimationModule.cpp */, + D580D34F2A8DE02600C036A0 /* UnityEngine.TextRenderingModule_CodeGen.c */, + D580D3502A8DE02600C036A0 /* mscorlib16.cpp */, + D580D3512A8DE02600C036A0 /* mscorlib17.cpp */, + D580D3522A8DE02600C036A0 /* UnityEngine.GameCenterModule.cpp */, + D580D3532A8DE02600C036A0 /* mscorlib13.cpp */, + D580D3542A8DE02600C036A0 /* mscorlib.cpp */, + D580D3552A8DE02600C036A0 /* mscorlib12.cpp */, + D580D3562A8DE02600C036A0 /* UnityEngine.UnityWebRequestModule_CodeGen.c */, + D580D3572A8DE02600C036A0 /* mscorlib10.cpp */, + D580D3582A8DE02600C036A0 /* Il2CppRgctxTable.c */, + D580D3592A8DE02600C036A0 /* UnityClassRegistration.cpp */, + D580D35A2A8DE02600C036A0 /* UnityEngine.InputLegacyModule.cpp */, + D580D35B2A8DE02600C036A0 /* mscorlib11.cpp */, + D580D35C2A8DE02600C036A0 /* UnityEngine.SpriteShapeModule_CodeGen.c */, + D580D35D2A8DE02600C036A0 /* UnityEngine.UIElementsModule11.cpp */, + D580D35E2A8DE02600C036A0 /* UnityEngine.IMGUIModule_CodeGen.c */, + D580D35F2A8DE02600C036A0 /* Il2CppTypeDefinitions.c */, + D580D3602A8DE02600C036A0 /* UnityEngine.UI.cpp */, + D580D3612A8DE02600C036A0 /* System_CodeGen.c */, + D580D3622A8DE02600C036A0 /* UnityEngine.IMGUIModule1.cpp */, + D580D3632A8DE02600C036A0 /* UnityEngine.UIModule.cpp */, + D580D3642A8DE02600C036A0 /* UnityEngine.UIElementsModule.cpp */, + D580D3652A8DE02600C036A0 /* UnityEngine.UIElementsModule10.cpp */, + D580D3662A8DE02600C036A0 /* UnityEngine.UIElementsModule12.cpp */, + D580D3672A8DE02600C036A0 /* UnityEngine.cpp */, + D580D3682A8DE02600C036A0 /* UnityEngine.SharedInternalsModule_CodeGen.c */, + D580D3692A8DE02600C036A0 /* mscorlib_CodeGen.c */, + D580D36A2A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule.cpp */, + D580D36B2A8DE02600C036A0 /* Il2CppMetadataRegistration.c */, + D580D36C2A8DE02600C036A0 /* UnityEngine.Physics2DModule.cpp */, + D580D36D2A8DE02600C036A0 /* Il2CppGenericMethodDefinitions.c */, + D580D36E2A8DE02600C036A0 /* UnityEngine.SharedInternalsModule.cpp */, + D580D36F2A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule2.cpp */, + D580D3702A8DE02600C036A0 /* UnityEngine.UIModule_CodeGen.c */, + D580D3712A8DE02600C036A0 /* System.cpp */, + D580D3722A8DE02600C036A0 /* Mono.Security.cpp */, + D580D3732A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule3.cpp */, + D580D3742A8DE02600C036A0 /* System.Configuration_CodeGen.c */, + D580D3752A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule_CodeGen.c */, + D580D3762A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule1.cpp */, + D580D3772A8DE02600C036A0 /* UnityEngine.GridModule.cpp */, + D580D3782A8DE02600C036A0 /* Il2CppMetadataUsage.c */, + D580D3792A8DE02600C036A0 /* Il2CppReversePInvokeWrapperTable.cpp */, + D580D37A2A8DE02600C036A0 /* UnityEngine.UIElementsNativeModule.cpp */, + D580D37B2A8DE02600C036A0 /* Generics19.cpp */, + D580D37C2A8DE02600C036A0 /* Il2CppInvokerTable.cpp */, + D580D37D2A8DE02600C036A0 /* UnityEngine.UI1.cpp */, + D580D37E2A8DE02600C036A0 /* Generics25.cpp */, + D580D37F2A8DE02600C036A0 /* Mono.Security_CodeGen.c */, + D580D3802A8DE02600C036A0 /* UnityEngine.UIElementsModule3.cpp */, + D580D3812A8DE02600C036A0 /* UnityEngine.UIElementsModule2.cpp */, + D580D3822A8DE02600C036A0 /* UnityEngine.CoreModule.cpp */, + D580D3832A8DE02600C036A0 /* Il2CppGenericClassTable.c */, + D580D3842A8DE02600C036A0 /* UnityEngine.GridModule_CodeGen.c */, + D580D3852A8DE02600C036A0 /* System.Xml.cpp */, + D580D3862A8DE02600C036A0 /* UnityEngine.CoreModule1.cpp */, + D580D3872A8DE02600C036A0 /* Il2CppGenericInstDefinitions.c */, + D580D3882A8DE02600C036A0 /* mscorlib1.cpp */, + D580D3892A8DE02600C036A0 /* Generics24.cpp */, + D580D38A2A8DE02600C036A0 /* Generics18.cpp */, + D580D38B2A8DE02600C036A0 /* UnityEngine.PhysicsModule.cpp */, + D580D38C2A8DE02600C036A0 /* UnityEngine.TextCoreFontEngineModule.cpp */, + D580D38D2A8DE02600C036A0 /* UnityEngine.UI2.cpp */, + D580D38E2A8DE02600C036A0 /* Generics26.cpp */, + D580D38F2A8DE02600C036A0 /* mscorlib3.cpp */, + D580D3902A8DE02600C036A0 /* UnityEngine.GameCenterModule_CodeGen.c */, + D580D3912A8DE02600C036A0 /* UnityEngine.TilemapModule.cpp */, + D580D3922A8DE02600C036A0 /* UnityEngine.UIElementsModule1.cpp */, + D580D3932A8DE02600C036A0 /* UnityEngine.UnityAnalyticsModule_CodeGen.c */, + D580D3942A8DE02600C036A0 /* Il2CppCCFieldValuesTable.cpp */, + D580D3952A8DE02600C036A0 /* mscorlib2.cpp */, + D580D3962A8DE02600C036A0 /* System.Core_CodeGen.c */, + D580D3972A8DE02600C036A0 /* Generics27.cpp */, + D580D3982A8DE02600C036A0 /* UnityEngine.UI3.cpp */, + D580D3992A8DE02600C036A0 /* GenericMethods.cpp */, + D580D39A2A8DE02600C036A0 /* Generics23.cpp */, + D580D39B2A8DE02600C036A0 /* UnityEngine.TilemapModule_CodeGen.c */, + D580D39C2A8DE02600C036A0 /* mscorlib6.cpp */, + D580D39D2A8DE02600C036A0 /* UnresolvedVirtualCallStubs.cpp */, + D580D39E2A8DE02600C036A0 /* UnityEngine.UIElementsModule5.cpp */, + D580D39F2A8DE02600C036A0 /* UnityEngine.UIElementsModule4.cpp */, + D580D3A02A8DE02600C036A0 /* UnityEngine.IMGUIModule.cpp */, + D580D3A12A8DE02600C036A0 /* System.Core.cpp */, + D580D3A22A8DE02600C036A0 /* UnityEngine.InputLegacyModule_CodeGen.c */, + D580D3A32A8DE02600C036A0 /* mscorlib7.cpp */, + D580D3A42A8DE02600C036A0 /* Generics22.cpp */, + D580D3A52A8DE02600C036A0 /* Generics20.cpp */, + D580D3A62A8DE02600C036A0 /* mscorlib5.cpp */, + D580D3A72A8DE02600C036A0 /* UnityEngine.AndroidJNIModule.cpp */, + D580D3A82A8DE02600C036A0 /* Assembly-CSharp_CodeGen.c */, + D580D3A92A8DE02600C036A0 /* Generics8.cpp */, + D580D3AA2A8DE02600C036A0 /* UnityEngine.AudioModule_CodeGen.c */, + D580D3AB2A8DE02600C036A0 /* UnityEngine.UIElementsModule6.cpp */, + D580D3AC2A8DE02600C036A0 /* UnityEngine.UIElementsModule7.cpp */, + D580D3AD2A8DE02600C036A0 /* Generics9.cpp */, + D580D3AE2A8DE02600C036A0 /* Generics.cpp */, + D580D3AF2A8DE02600C036A0 /* UnityEngine.UnityWebRequestModule.cpp */, + D580D3B02A8DE02600C036A0 /* mscorlib4.cpp */, + D580D3B12A8DE02600C036A0 /* Generics21.cpp */, + ); + path = Native; + sourceTree = ""; + }; D59AB8482A68FC2900433200 /* purchase */ = { isa = PBXGroup; children = ( @@ -3510,172 +3676,6 @@ path = purchase; sourceTree = ""; }; - D5ED96D62A8B8AAF00854015 /* Native */ = { - isa = PBXGroup; - children = ( - D5ED96D72A8B8AAF00854015 /* Il2CppGenericAdjustorThunkTable.c */, - D5ED96D82A8B8AAF00854015 /* Generics10.cpp */, - D5ED96D92A8B8AAF00854015 /* mscorlib9.cpp */, - D5ED96DA2A8B8AAF00854015 /* UnityEngine.UnityAnalyticsModule.cpp */, - D5ED96DB2A8B8AAF00854015 /* Il2CppGenericMethodTable.c */, - D5ED96DC2A8B8AAF00854015 /* Generics4.cpp */, - D5ED96DD2A8B8AAF00854015 /* Generics5.cpp */, - D5ED96DE2A8B8AAF00854015 /* System.Xml_CodeGen.c */, - D5ED96DF2A8B8AAF00854015 /* GenericMethods6.cpp */, - D5ED96E02A8B8AAF00854015 /* mscorlib8.cpp */, - D5ED96E12A8B8AAF00854015 /* Generics11.cpp */, - D5ED96E22A8B8AAF00854015 /* UnityEngine.Physics2DModule_CodeGen.c */, - D5ED96E32A8B8AAF00854015 /* Il2CppCCTypeValuesTable.cpp */, - D5ED96E42A8B8AAF00854015 /* Generics13.cpp */, - D5ED96E52A8B8AAF00854015 /* GenericMethods4.cpp */, - D5ED96E62A8B8AAF00854015 /* Il2CppInteropDataTable.cpp */, - D5ED96E72A8B8AAF00854015 /* Generics7.cpp */, - D5ED96E82A8B8AAF00854015 /* UnityEngine.UIElementsModule9.cpp */, - D5ED96E92A8B8AAF00854015 /* UnityEngine.UIElementsModule8.cpp */, - D5ED96EA2A8B8AAF00854015 /* UnityICallRegistration.cpp */, - D5ED96EB2A8B8AAF00854015 /* Generics6.cpp */, - D5ED96EC2A8B8AAF00854015 /* GenericMethods5.cpp */, - D5ED96ED2A8B8AAF00854015 /* UnityEngine_CodeGen.c */, - D5ED96EE2A8B8AAF00854015 /* Generics12.cpp */, - D5ED96EF2A8B8AAF00854015 /* Generics16.cpp */, - D5ED96F02A8B8AAF00854015 /* GenericMethods1.cpp */, - D5ED96F12A8B8AAF00854015 /* UnityEngine.UIElementsNativeModule_CodeGen.c */, - D5ED96F22A8B8AAF00854015 /* Generics2.cpp */, - D5ED96F32A8B8AAF00854015 /* UnityEngine.TextCoreFontEngineModule_CodeGen.c */, - D5ED96F42A8B8AAF00854015 /* UnityEngine.PhysicsModule_CodeGen.c */, - D5ED96F52A8B8AAF00854015 /* System1.cpp */, - D5ED96F62A8B8AAF00854015 /* Generics3.cpp */, - D5ED96F72A8B8AAF00854015 /* UnityEngine.AndroidJNIModule_CodeGen.c */, - D5ED96F82A8B8AAF00854015 /* Assembly-CSharp.cpp */, - D5ED96F92A8B8AAF00854015 /* Generics17.cpp */, - D5ED96FA2A8B8AAF00854015 /* UnityEngine.UI_CodeGen.c */, - D5ED96FB2A8B8AAF00854015 /* Generics15.cpp */, - D5ED96FC2A8B8AAF00854015 /* UnityEngine.SpriteShapeModule.cpp */, - D5ED96FD2A8B8AAF00854015 /* UnityEngine.TextRenderingModule.cpp */, - D5ED96FE2A8B8AAF00854015 /* GenericMethods2.cpp */, - D5ED96FF2A8B8AAF00854015 /* System3.cpp */, - D5ED97002A8B8AAF00854015 /* Generics1.cpp */, - D5ED97012A8B8AAF00854015 /* __Generated_CodeGen.c */, - D5ED97022A8B8AAF00854015 /* System.Configuration.cpp */, - D5ED97032A8B8AAF00854015 /* Il2CppCodeRegistration.cpp */, - D5ED97042A8B8AAF00854015 /* System2.cpp */, - D5ED97052A8B8AAF00854015 /* Il2CppCCalculateFieldValues1.cpp */, - D5ED97062A8B8AAF00854015 /* __Generated.cpp */, - D5ED97072A8B8AAF00854015 /* GenericMethods3.cpp */, - D5ED97082A8B8AAF00854015 /* Generics14.cpp */, - D5ED97092A8B8AAF00854015 /* mscorlib15.cpp */, - D5ED970A2A8B8AAF00854015 /* UnityEngine.UIElementsModule_CodeGen.c */, - D5ED970B2A8B8AAF00854015 /* Il2CppCCalculateTypeValues.cpp */, - D5ED970C2A8B8AAF00854015 /* Il2CppCCalculateFieldValues.cpp */, - D5ED970D2A8B8AAF00854015 /* UnityEngine.AudioModule.cpp */, - D5ED970E2A8B8AAF00854015 /* Il2CppGenericMethodPointerTable.c */, - D5ED970F2A8B8AAF00854015 /* mscorlib14.cpp */, - D5ED97102A8B8AAF00854015 /* UnityEngine.CoreModule_CodeGen.c */, - D5ED97112A8B8AAF00854015 /* UnityEngine.AnimationModule_CodeGen.c */, - D5ED97122A8B8AAF00854015 /* UnityEngine.AnimationModule.cpp */, - D5ED97132A8B8AAF00854015 /* UnityEngine.TextRenderingModule_CodeGen.c */, - D5ED97142A8B8AAF00854015 /* mscorlib16.cpp */, - D5ED97152A8B8AAF00854015 /* mscorlib17.cpp */, - D5ED97162A8B8AAF00854015 /* UnityEngine.GameCenterModule.cpp */, - D5ED97172A8B8AAF00854015 /* mscorlib13.cpp */, - D5ED97182A8B8AAF00854015 /* mscorlib.cpp */, - D5ED97192A8B8AAF00854015 /* mscorlib12.cpp */, - D5ED971A2A8B8AAF00854015 /* UnityEngine.UnityWebRequestModule_CodeGen.c */, - D5ED971B2A8B8AAF00854015 /* mscorlib10.cpp */, - D5ED971C2A8B8AAF00854015 /* Il2CppRgctxTable.c */, - D5ED971D2A8B8AAF00854015 /* UnityClassRegistration.cpp */, - D5ED971E2A8B8AAF00854015 /* UnityEngine.InputLegacyModule.cpp */, - D5ED971F2A8B8AAF00854015 /* mscorlib11.cpp */, - D5ED97202A8B8AAF00854015 /* UnityEngine.SpriteShapeModule_CodeGen.c */, - D5ED97212A8B8AAF00854015 /* UnityEngine.UIElementsModule11.cpp */, - D5ED97222A8B8AAF00854015 /* UnityEngine.IMGUIModule_CodeGen.c */, - D5ED97232A8B8AAF00854015 /* Il2CppTypeDefinitions.c */, - D5ED97242A8B8AAF00854015 /* UnityEngine.UI.cpp */, - D5ED97252A8B8AAF00854015 /* System_CodeGen.c */, - D5ED97262A8B8AAF00854015 /* UnityEngine.IMGUIModule1.cpp */, - D5ED97272A8B8AAF00854015 /* UnityEngine.UIModule.cpp */, - D5ED97282A8B8AAF00854015 /* UnityEngine.UIElementsModule.cpp */, - D5ED97292A8B8AAF00854015 /* UnityEngine.UIElementsModule10.cpp */, - D5ED972A2A8B8AAF00854015 /* UnityEngine.UIElementsModule12.cpp */, - D5ED972B2A8B8AAF00854015 /* UnityEngine.cpp */, - D5ED972C2A8B8AAF00854015 /* UnityEngine.SharedInternalsModule_CodeGen.c */, - D5ED972D2A8B8AAF00854015 /* mscorlib_CodeGen.c */, - D5ED972E2A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule.cpp */, - D5ED972F2A8B8AAF00854015 /* Il2CppMetadataRegistration.c */, - D5ED97302A8B8AAF00854015 /* UnityEngine.Physics2DModule.cpp */, - D5ED97312A8B8AAF00854015 /* Il2CppGenericMethodDefinitions.c */, - D5ED97322A8B8AAF00854015 /* UnityEngine.SharedInternalsModule.cpp */, - D5ED97332A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule2.cpp */, - D5ED97342A8B8AAF00854015 /* UnityEngine.UIModule_CodeGen.c */, - D5ED97352A8B8AAF00854015 /* System.cpp */, - D5ED97362A8B8AAF00854015 /* Mono.Security.cpp */, - D5ED97372A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule3.cpp */, - D5ED97382A8B8AAF00854015 /* System.Configuration_CodeGen.c */, - D5ED97392A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule_CodeGen.c */, - D5ED973A2A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule1.cpp */, - D5ED973B2A8B8AAF00854015 /* UnityEngine.GridModule.cpp */, - D5ED973C2A8B8AAF00854015 /* Il2CppMetadataUsage.c */, - D5ED973D2A8B8AAF00854015 /* Il2CppReversePInvokeWrapperTable.cpp */, - D5ED973E2A8B8AAF00854015 /* UnityEngine.UIElementsNativeModule.cpp */, - D5ED973F2A8B8AAF00854015 /* Generics19.cpp */, - D5ED97402A8B8AAF00854015 /* Il2CppInvokerTable.cpp */, - D5ED97412A8B8AAF00854015 /* UnityEngine.UI1.cpp */, - D5ED97422A8B8AAF00854015 /* Generics25.cpp */, - D5ED97432A8B8AAF00854015 /* Mono.Security_CodeGen.c */, - D5ED97442A8B8AAF00854015 /* UnityEngine.UIElementsModule3.cpp */, - D5ED97452A8B8AAF00854015 /* UnityEngine.UIElementsModule2.cpp */, - D5ED97462A8B8AAF00854015 /* UnityEngine.CoreModule.cpp */, - D5ED97472A8B8AAF00854015 /* Il2CppGenericClassTable.c */, - D5ED97482A8B8AAF00854015 /* UnityEngine.GridModule_CodeGen.c */, - D5ED97492A8B8AAF00854015 /* System.Xml.cpp */, - D5ED974A2A8B8AAF00854015 /* UnityEngine.CoreModule1.cpp */, - D5ED974B2A8B8AAF00854015 /* Il2CppGenericInstDefinitions.c */, - D5ED974C2A8B8AAF00854015 /* mscorlib1.cpp */, - D5ED974D2A8B8AAF00854015 /* Generics24.cpp */, - D5ED974E2A8B8AAF00854015 /* Generics18.cpp */, - D5ED974F2A8B8AAF00854015 /* UnityEngine.PhysicsModule.cpp */, - D5ED97502A8B8AAF00854015 /* UnityEngine.TextCoreFontEngineModule.cpp */, - D5ED97512A8B8AAF00854015 /* UnityEngine.UI2.cpp */, - D5ED97522A8B8AAF00854015 /* Generics26.cpp */, - D5ED97532A8B8AAF00854015 /* mscorlib3.cpp */, - D5ED97542A8B8AAF00854015 /* UnityEngine.GameCenterModule_CodeGen.c */, - D5ED97552A8B8AAF00854015 /* UnityEngine.TilemapModule.cpp */, - D5ED97562A8B8AAF00854015 /* UnityEngine.UIElementsModule1.cpp */, - D5ED97572A8B8AAF00854015 /* UnityEngine.UnityAnalyticsModule_CodeGen.c */, - D5ED97582A8B8AAF00854015 /* Il2CppCCFieldValuesTable.cpp */, - D5ED97592A8B8AAF00854015 /* mscorlib2.cpp */, - D5ED975A2A8B8AAF00854015 /* System.Core_CodeGen.c */, - D5ED975B2A8B8AAF00854015 /* Generics27.cpp */, - D5ED975C2A8B8AAF00854015 /* UnityEngine.UI3.cpp */, - D5ED975D2A8B8AAF00854015 /* GenericMethods.cpp */, - D5ED975E2A8B8AAF00854015 /* Generics23.cpp */, - D5ED975F2A8B8AAF00854015 /* UnityEngine.TilemapModule_CodeGen.c */, - D5ED97602A8B8AAF00854015 /* mscorlib6.cpp */, - D5ED97612A8B8AAF00854015 /* UnresolvedVirtualCallStubs.cpp */, - D5ED97622A8B8AAF00854015 /* UnityEngine.UIElementsModule5.cpp */, - D5ED97632A8B8AAF00854015 /* UnityEngine.UIElementsModule4.cpp */, - D5ED97642A8B8AAF00854015 /* UnityEngine.IMGUIModule.cpp */, - D5ED97652A8B8AAF00854015 /* System.Core.cpp */, - D5ED97662A8B8AAF00854015 /* UnityEngine.InputLegacyModule_CodeGen.c */, - D5ED97672A8B8AAF00854015 /* mscorlib7.cpp */, - D5ED97682A8B8AAF00854015 /* Generics22.cpp */, - D5ED97692A8B8AAF00854015 /* Generics20.cpp */, - D5ED976A2A8B8AAF00854015 /* mscorlib5.cpp */, - D5ED976B2A8B8AAF00854015 /* UnityEngine.AndroidJNIModule.cpp */, - D5ED976C2A8B8AAF00854015 /* Assembly-CSharp_CodeGen.c */, - D5ED976D2A8B8AAF00854015 /* Generics8.cpp */, - D5ED976E2A8B8AAF00854015 /* UnityEngine.AudioModule_CodeGen.c */, - D5ED976F2A8B8AAF00854015 /* UnityEngine.UIElementsModule6.cpp */, - D5ED97702A8B8AAF00854015 /* UnityEngine.UIElementsModule7.cpp */, - D5ED97712A8B8AAF00854015 /* Generics9.cpp */, - D5ED97722A8B8AAF00854015 /* Generics.cpp */, - D5ED97732A8B8AAF00854015 /* UnityEngine.UnityWebRequestModule.cpp */, - D5ED97742A8B8AAF00854015 /* mscorlib4.cpp */, - D5ED97752A8B8AAF00854015 /* Generics21.cpp */, - ); - path = Native; - sourceTree = ""; - }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -3789,7 +3789,7 @@ A11B44AE88B0F8D848806B46 /* LaunchScreen-iPhoneLandscape.png in Resources */, 3EB845A79D9D222154D9CF54 /* LaunchScreen-iPad.storyboard in Resources */, D507C92A2994A0A800CF3953 /* ScanResultViewController.xib in Resources */, - D5ED96D52A8B8A9800854015 /* Data in Resources */, + D580D4522A8DE18800C036A0 /* Data in Resources */, D507D5F12994C62A00CF3953 /* libil2cpp.icalls in Resources */, D507C9372994A0A800CF3953 /* SimpleQRViewController.xib in Resources */, D507C9192994A0A800CF3953 /* QrCodeViewController.xib in Resources */, @@ -3889,281 +3889,281 @@ D507D5DF2994C62A00CF3953 /* UnityAdsInitializationListener.mm in Sources */, D507C9202994A0A800CF3953 /* ToastManager.m in Sources */, D59AB8522A68FEB700433200 /* Section.m in Sources */, - D5ED97AD2A8B8AAF00854015 /* Il2CppGenericMethodPointerTable.c in Sources */, - D5ED977A2A8B8AAF00854015 /* Il2CppGenericMethodTable.c in Sources */, - D5ED97E52A8B8AAF00854015 /* UnityEngine.CoreModule.cpp in Sources */, - D5ED97A82A8B8AAF00854015 /* mscorlib15.cpp in Sources */, + D580D3E92A8DE02600C036A0 /* Il2CppGenericMethodPointerTable.c in Sources */, + D580D3B62A8DE02600C036A0 /* Il2CppGenericMethodTable.c in Sources */, + D580D4212A8DE02600C036A0 /* UnityEngine.CoreModule.cpp in Sources */, + D580D3E42A8DE02600C036A0 /* mscorlib15.cpp in Sources */, D507D2462994C61700CF3953 /* UnityReplayKit.mm in Sources */, D507D2562994C61700CF3953 /* OrientationSupport.mm in Sources */, - D5ED97DA2A8B8AAF00854015 /* UnityEngine.GridModule.cpp in Sources */, - D5ED97FC2A8B8AAF00854015 /* GenericMethods.cpp in Sources */, - D5ED97852A8B8AAF00854015 /* Il2CppInteropDataTable.cpp in Sources */, - D5ED97BD2A8B8AAF00854015 /* UnityEngine.InputLegacyModule.cpp in Sources */, - D5ED97D72A8B8AAF00854015 /* System.Configuration_CodeGen.c in Sources */, - D5ED97CB2A8B8AAF00854015 /* UnityEngine.SharedInternalsModule_CodeGen.c in Sources */, - D5ED978C2A8B8AAF00854015 /* UnityEngine_CodeGen.c in Sources */, - D5ED97F92A8B8AAF00854015 /* System.Core_CodeGen.c in Sources */, - D5ED98122A8B8AAF00854015 /* UnityEngine.UnityWebRequestModule.cpp in Sources */, + D580D4162A8DE02600C036A0 /* UnityEngine.GridModule.cpp in Sources */, + D580D4382A8DE02600C036A0 /* GenericMethods.cpp in Sources */, + D580D3C12A8DE02600C036A0 /* Il2CppInteropDataTable.cpp in Sources */, + D580D3F92A8DE02600C036A0 /* UnityEngine.InputLegacyModule.cpp in Sources */, + D580D4132A8DE02600C036A0 /* System.Configuration_CodeGen.c in Sources */, + D580D4072A8DE02600C036A0 /* UnityEngine.SharedInternalsModule_CodeGen.c in Sources */, + D580D3C82A8DE02600C036A0 /* UnityEngine_CodeGen.c in Sources */, + D580D4352A8DE02600C036A0 /* System.Core_CodeGen.c in Sources */, + D580D44E2A8DE02600C036A0 /* UnityEngine.UnityWebRequestModule.cpp in Sources */, D507D5E32994C62A00CF3953 /* UnityBannerUnityWrapper.m in Sources */, - D5ED980E2A8B8AAF00854015 /* UnityEngine.UIElementsModule6.cpp in Sources */, + D580D44A2A8DE02600C036A0 /* UnityEngine.UIElementsModule6.cpp in Sources */, D507D24F2994C61700CF3953 /* CameraCapture.mm in Sources */, - D5ED97992A8B8AAF00854015 /* UnityEngine.UI_CodeGen.c in Sources */, - D5ED97772A8B8AAF00854015 /* Generics10.cpp in Sources */, - D5ED98082A8B8AAF00854015 /* Generics20.cpp in Sources */, + D580D3D52A8DE02600C036A0 /* UnityEngine.UI_CodeGen.c in Sources */, + D580D3B32A8DE02600C036A0 /* Generics10.cpp in Sources */, + D580D4442A8DE02600C036A0 /* Generics20.cpp in Sources */, D507D3082994C61700CF3953 /* iPhone_Sensors.mm in Sources */, - D5ED97812A8B8AAF00854015 /* UnityEngine.Physics2DModule_CodeGen.c in Sources */, + D580D3BD2A8DE02600C036A0 /* UnityEngine.Physics2DModule_CodeGen.c in Sources */, D507D25C2994C61700CF3953 /* UnityView+tvOS.mm in Sources */, - D5ED98022A8B8AAF00854015 /* UnityEngine.UIElementsModule4.cpp in Sources */, - D5ED97942A8B8AAF00854015 /* System1.cpp in Sources */, + D580D43E2A8DE02600C036A0 /* UnityEngine.UIElementsModule4.cpp in Sources */, + D580D3D02A8DE02600C036A0 /* System1.cpp in Sources */, D507C91A2994A0A800CF3953 /* QrCodeViewController.m in Sources */, D507D5E72994C62A00CF3953 /* UnityMonetizationNativePromoAdapterWrapper.m in Sources */, - D5ED978B2A8B8AAF00854015 /* GenericMethods5.cpp in Sources */, + D580D3C72A8DE02600C036A0 /* GenericMethods5.cpp in Sources */, D507D25A2994C61700CF3953 /* UnityViewControllerBase+iOS.mm in Sources */, D507D2602994C61700CF3953 /* UnityAppController+ViewHandling.mm in Sources */, - D5ED979A2A8B8AAF00854015 /* Generics15.cpp in Sources */, + D580D3D62A8DE02600C036A0 /* Generics15.cpp in Sources */, D507C9172994A0A800CF3953 /* WalletEvent.cpp in Sources */, D507D5E12994C62A00CF3953 /* UnityAdsPurchasingWrapper.m in Sources */, D507D24D2994C61700CF3953 /* FullScreenVideoPlayer.mm in Sources */, - D5ED97E92A8B8AAF00854015 /* UnityEngine.CoreModule1.cpp in Sources */, - D5ED98042A8B8AAF00854015 /* System.Core.cpp in Sources */, + D580D4252A8DE02600C036A0 /* UnityEngine.CoreModule1.cpp in Sources */, + D580D4402A8DE02600C036A0 /* System.Core.cpp in Sources */, D507C9322994A0A800CF3953 /* SimpleQRViewController.m in Sources */, D507D2572994C61700CF3953 /* UnityView+Keyboard.mm in Sources */, - D5ED97902A8B8AAF00854015 /* UnityEngine.UIElementsNativeModule_CodeGen.c in Sources */, - D5ED98062A8B8AAF00854015 /* mscorlib7.cpp in Sources */, - D5ED98032A8B8AAF00854015 /* UnityEngine.IMGUIModule.cpp in Sources */, - D5ED97EE2A8B8AAF00854015 /* UnityEngine.PhysicsModule.cpp in Sources */, + D580D3CC2A8DE02600C036A0 /* UnityEngine.UIElementsNativeModule_CodeGen.c in Sources */, + D580D4422A8DE02600C036A0 /* mscorlib7.cpp in Sources */, + D580D43F2A8DE02600C036A0 /* UnityEngine.IMGUIModule.cpp in Sources */, + D580D42A2A8DE02600C036A0 /* UnityEngine.PhysicsModule.cpp in Sources */, D507D5E42994C62A00CF3953 /* UnityAdsUnityWrapper.m in Sources */, D507D2522994C61700CF3953 /* CMVideoSampling.mm in Sources */, - D5ED98112A8B8AAF00854015 /* Generics.cpp in Sources */, - D5ED97D92A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule1.cpp in Sources */, + D580D44D2A8DE02600C036A0 /* Generics.cpp in Sources */, + D580D4152A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule1.cpp in Sources */, D507C93A2994A0A800CF3953 /* QRCodeReaderViewController.m in Sources */, D507C9272994A0A800CF3953 /* LBXScanVideoZoomView.m in Sources */, D507D5EB2994C62A00CF3953 /* UnityAdsShowListener.mm in Sources */, D507C9332994A0A800CF3953 /* LBXPermissionSetting.m in Sources */, - D5ED97B22A8B8AAF00854015 /* UnityEngine.TextRenderingModule_CodeGen.c in Sources */, - D5ED97FE2A8B8AAF00854015 /* UnityEngine.TilemapModule_CodeGen.c in Sources */, + D580D3EE2A8DE02600C036A0 /* UnityEngine.TextRenderingModule_CodeGen.c in Sources */, + D580D43A2A8DE02600C036A0 /* UnityEngine.TilemapModule_CodeGen.c in Sources */, D59AB8472A68FC2200433200 /* StoreObserver.m in Sources */, D507D24E2994C61700CF3953 /* DisplayManager.mm in Sources */, D53CC8A22A7BA28D00CAD911 /* UnityNotificationWrapper.m in Sources */, - D5ED977C2A8B8AAF00854015 /* Generics5.cpp in Sources */, - D5ED97A32A8B8AAF00854015 /* System2.cpp in Sources */, - D5ED97782A8B8AAF00854015 /* mscorlib9.cpp in Sources */, - D5ED97AF2A8B8AAF00854015 /* UnityEngine.CoreModule_CodeGen.c in Sources */, - D5ED97C02A8B8AAF00854015 /* UnityEngine.UIElementsModule11.cpp in Sources */, - D5ED979D2A8B8AAF00854015 /* GenericMethods2.cpp in Sources */, - D5ED977B2A8B8AAF00854015 /* Generics4.cpp in Sources */, - D5ED97FA2A8B8AAF00854015 /* Generics27.cpp in Sources */, + D580D3B82A8DE02600C036A0 /* Generics5.cpp in Sources */, + D580D3DF2A8DE02600C036A0 /* System2.cpp in Sources */, + D580D3B42A8DE02600C036A0 /* mscorlib9.cpp in Sources */, + D580D3EB2A8DE02600C036A0 /* UnityEngine.CoreModule_CodeGen.c in Sources */, + D580D3FC2A8DE02600C036A0 /* UnityEngine.UIElementsModule11.cpp in Sources */, + D580D3D92A8DE02600C036A0 /* GenericMethods2.cpp in Sources */, + D580D3B72A8DE02600C036A0 /* Generics4.cpp in Sources */, + D580D4362A8DE02600C036A0 /* Generics27.cpp in Sources */, D507C9362994A0A800CF3953 /* LBXPermission.m in Sources */, D507D5ED2994C62A00CF3953 /* VolumeIOSPlugin.mm in Sources */, - D5ED97B12A8B8AAF00854015 /* UnityEngine.AnimationModule.cpp in Sources */, + D580D3ED2A8DE02600C036A0 /* UnityEngine.AnimationModule.cpp in Sources */, D507D3032994C61700CF3953 /* UnityAppController+Rendering.mm in Sources */, - D5ED97F62A8B8AAF00854015 /* UnityEngine.UnityAnalyticsModule_CodeGen.c in Sources */, + D580D4322A8DE02600C036A0 /* UnityEngine.UnityAnalyticsModule_CodeGen.c in Sources */, D507D2582994C61700CF3953 /* Keyboard.mm in Sources */, - D5ED97D82A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule_CodeGen.c in Sources */, - D5ED97A92A8B8AAF00854015 /* UnityEngine.UIElementsModule_CodeGen.c in Sources */, + D580D4142A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule_CodeGen.c in Sources */, + D580D3E52A8DE02600C036A0 /* UnityEngine.UIElementsModule_CodeGen.c in Sources */, D53CC8932A7BA24A00CAD911 /* AFUnityUtils.mm in Sources */, D507D25B2994C61700CF3953 /* UnityViewControllerBase.mm in Sources */, D507D24C2994C61700CF3953 /* DeviceSettings.mm in Sources */, - D5ED97FB2A8B8AAF00854015 /* UnityEngine.UI3.cpp in Sources */, - D5ED97EB2A8B8AAF00854015 /* mscorlib1.cpp in Sources */, + D580D4372A8DE02600C036A0 /* UnityEngine.UI3.cpp in Sources */, + D580D4272A8DE02600C036A0 /* mscorlib1.cpp in Sources */, D507C92F2994A0A800CF3953 /* UIImageView+CornerRadius.m in Sources */, - D5ED97CF2A8B8AAF00854015 /* UnityEngine.Physics2DModule.cpp in Sources */, + D580D40B2A8DE02600C036A0 /* UnityEngine.Physics2DModule.cpp in Sources */, D507D24A2994C61700CF3953 /* InternalProfiler.cpp in Sources */, - D5ED977D2A8B8AAF00854015 /* System.Xml_CodeGen.c in Sources */, + D580D3B92A8DE02600C036A0 /* System.Xml_CodeGen.c in Sources */, D50CEEEB29C043ED002CC932 /* WebPageViewController.m in Sources */, - D5ED979E2A8B8AAF00854015 /* System3.cpp in Sources */, - D5ED980B2A8B8AAF00854015 /* Assembly-CSharp_CodeGen.c in Sources */, - D5ED97E82A8B8AAF00854015 /* System.Xml.cpp in Sources */, - D5ED97DC2A8B8AAF00854015 /* Il2CppReversePInvokeWrapperTable.cpp in Sources */, + D580D3DA2A8DE02600C036A0 /* System3.cpp in Sources */, + D580D4472A8DE02600C036A0 /* Assembly-CSharp_CodeGen.c in Sources */, + D580D4242A8DE02600C036A0 /* System.Xml.cpp in Sources */, + D580D4182A8DE02600C036A0 /* Il2CppReversePInvokeWrapperTable.cpp in Sources */, D507D2542994C61700CF3953 /* NoGraphicsHelper.mm in Sources */, - D5ED97E02A8B8AAF00854015 /* UnityEngine.UI1.cpp in Sources */, + D580D41C2A8DE02600C036A0 /* UnityEngine.UI1.cpp in Sources */, D507C9262994A0A800CF3953 /* LBXScanViewStyle.m in Sources */, D507C9302994A0A800CF3953 /* QQScanNativeViewController.m in Sources */, - D5ED97AC2A8B8AAF00854015 /* UnityEngine.AudioModule.cpp in Sources */, - D5ED97D22A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule2.cpp in Sources */, - D5ED97CE2A8B8AAF00854015 /* Il2CppMetadataRegistration.c in Sources */, + D580D3E82A8DE02600C036A0 /* UnityEngine.AudioModule.cpp in Sources */, + D580D40E2A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule2.cpp in Sources */, + D580D40A2A8DE02600C036A0 /* Il2CppMetadataRegistration.c in Sources */, D507D5E82994C62A00CF3953 /* UnityJsonAdditions.m in Sources */, - D5ED978F2A8B8AAF00854015 /* GenericMethods1.cpp in Sources */, - D5ED97912A8B8AAF00854015 /* Generics2.cpp in Sources */, - D5ED97BC2A8B8AAF00854015 /* UnityClassRegistration.cpp in Sources */, - D5ED97DB2A8B8AAF00854015 /* Il2CppMetadataUsage.c in Sources */, - D5ED97A22A8B8AAF00854015 /* Il2CppCodeRegistration.cpp in Sources */, - D5ED97F42A8B8AAF00854015 /* UnityEngine.TilemapModule.cpp in Sources */, + D580D3CB2A8DE02600C036A0 /* GenericMethods1.cpp in Sources */, + D580D3CD2A8DE02600C036A0 /* Generics2.cpp in Sources */, + D580D3F82A8DE02600C036A0 /* UnityClassRegistration.cpp in Sources */, + D580D4172A8DE02600C036A0 /* Il2CppMetadataUsage.c in Sources */, + D580D3DE2A8DE02600C036A0 /* Il2CppCodeRegistration.cpp in Sources */, + D580D4302A8DE02600C036A0 /* UnityEngine.TilemapModule.cpp in Sources */, D507C91B2994A0A800CF3953 /* UIViewController+QR.mm in Sources */, - D5ED97B92A8B8AAF00854015 /* UnityEngine.UnityWebRequestModule_CodeGen.c in Sources */, - D5ED97B82A8B8AAF00854015 /* mscorlib12.cpp in Sources */, - D5ED97A52A8B8AAF00854015 /* __Generated.cpp in Sources */, + D580D3F52A8DE02600C036A0 /* UnityEngine.UnityWebRequestModule_CodeGen.c in Sources */, + D580D3F42A8DE02600C036A0 /* mscorlib12.cpp in Sources */, + D580D3E12A8DE02600C036A0 /* __Generated.cpp in Sources */, D507D5E62994C62A00CF3953 /* UnityMonetizationUnityWrapper.m in Sources */, - D5ED97832A8B8AAF00854015 /* Generics13.cpp in Sources */, - D5ED97F72A8B8AAF00854015 /* Il2CppCCFieldValuesTable.cpp in Sources */, - D5ED978D2A8B8AAF00854015 /* Generics12.cpp in Sources */, + D580D3BF2A8DE02600C036A0 /* Generics13.cpp in Sources */, + D580D4332A8DE02600C036A0 /* Il2CppCCFieldValuesTable.cpp in Sources */, + D580D3C92A8DE02600C036A0 /* Generics12.cpp in Sources */, D507C93E2994A0A800CF3953 /* UIViewController+Wallet.mm in Sources */, - D5ED97DE2A8B8AAF00854015 /* Generics19.cpp in Sources */, + D580D41A2A8DE02600C036A0 /* Generics19.cpp in Sources */, D507C93C2994A0A800CF3953 /* QRPhotoAlbumButton.m in Sources */, D59AB84F2A68FE8E00433200 /* StoreManager.m in Sources */, D59AB85E2A6A500900433200 /* SKProduct+SKProductAdditions.m in Sources */, - D5ED978A2A8B8AAF00854015 /* Generics6.cpp in Sources */, + D580D3C62A8DE02600C036A0 /* Generics6.cpp in Sources */, D507C9412994A0A800CF3953 /* UIView+Toast.m in Sources */, - D5ED97C32A8B8AAF00854015 /* UnityEngine.UI.cpp in Sources */, + D580D3FF2A8DE02600C036A0 /* UnityEngine.UI.cpp in Sources */, D507D5E92994C62A00CF3953 /* UnityAdsUtilities.m in Sources */, D507D2482994C61700CF3953 /* OnDemandResources.mm in Sources */, D507D5DD2994C62900CF3953 /* RegisterFeatures.cpp in Sources */, - D5ED97ED2A8B8AAF00854015 /* Generics18.cpp in Sources */, + D580D4292A8DE02600C036A0 /* Generics18.cpp in Sources */, D507C9182994A0A800CF3953 /* AppleSignIn.m in Sources */, - D5ED97EF2A8B8AAF00854015 /* UnityEngine.TextCoreFontEngineModule.cpp in Sources */, + D580D42B2A8DE02600C036A0 /* UnityEngine.TextCoreFontEngineModule.cpp in Sources */, D507C9392994A0A800CF3953 /* QRCameraSwitchButton.m in Sources */, D507C9222994A0A800CF3953 /* LBXScanNative.m in Sources */, D507C9342994A0A800CF3953 /* LBXPermissionPhotos.m in Sources */, - D5ED977F2A8B8AAF00854015 /* mscorlib8.cpp in Sources */, + D580D3BB2A8DE02600C036A0 /* mscorlib8.cpp in Sources */, D53CC8922A7BA24A00CAD911 /* AppsFlyerAppController.mm in Sources */, D507C9312994A0A800CF3953 /* LBXScanNativeViewController.m in Sources */, D507D2552994C61700CF3953 /* Filesystem.mm in Sources */, D507C9252994A0A800CF3953 /* LBXScanViewController.m in Sources */, - D5ED97A72A8B8AAF00854015 /* Generics14.cpp in Sources */, + D580D3E32A8DE02600C036A0 /* Generics14.cpp in Sources */, D53CC8A32A7BA28D00CAD911 /* UnityAppController+Notifications.mm in Sources */, D507D5F42994C62A00CF3953 /* NSUserDefaults.mm in Sources */, - D5ED98012A8B8AAF00854015 /* UnityEngine.UIElementsModule5.cpp in Sources */, + D580D43D2A8DE02600C036A0 /* UnityEngine.UIElementsModule5.cpp in Sources */, D507C9382994A0A800CF3953 /* QRToggleTorchButton.m in Sources */, - D5ED97C22A8B8AAF00854015 /* Il2CppTypeDefinitions.c in Sources */, + D580D3FE2A8DE02600C036A0 /* Il2CppTypeDefinitions.c in Sources */, D507D5E52994C62A00CF3953 /* UnityMonetizationPurchasingAdapter.m in Sources */, - D5ED98092A8B8AAF00854015 /* mscorlib5.cpp in Sources */, + D580D4452A8DE02600C036A0 /* mscorlib5.cpp in Sources */, D507D30B2994C61700CF3953 /* UnityViewControllerListener.mm in Sources */, D507C9162994A0A800CF3953 /* LBXScanTypes.m in Sources */, - D5ED97C72A8B8AAF00854015 /* UnityEngine.UIElementsModule.cpp in Sources */, + D580D4032A8DE02600C036A0 /* UnityEngine.UIElementsModule.cpp in Sources */, D507D25F2994C61700CF3953 /* StoreReview.m in Sources */, D507D30C2994C61700CF3953 /* LifeCycleListener.mm in Sources */, - D5ED97862A8B8AAF00854015 /* Generics7.cpp in Sources */, + D580D3C22A8DE02600C036A0 /* Generics7.cpp in Sources */, D507D3072994C61700CF3953 /* UnityAppController+UnityInterface.mm in Sources */, - D5ED97B62A8B8AAF00854015 /* mscorlib13.cpp in Sources */, - D5ED97CA2A8B8AAF00854015 /* UnityEngine.cpp in Sources */, + D580D3F22A8DE02600C036A0 /* mscorlib13.cpp in Sources */, + D580D4062A8DE02600C036A0 /* UnityEngine.cpp in Sources */, D53CC8902A7BA24A00CAD911 /* AppsFlyeriOSWrapper.mm in Sources */, - D5ED97F22A8B8AAF00854015 /* mscorlib3.cpp in Sources */, - D5ED977E2A8B8AAF00854015 /* GenericMethods6.cpp in Sources */, - D5ED97842A8B8AAF00854015 /* GenericMethods4.cpp in Sources */, - D5ED97762A8B8AAF00854015 /* Il2CppGenericAdjustorThunkTable.c in Sources */, - D5ED98002A8B8AAF00854015 /* UnresolvedVirtualCallStubs.cpp in Sources */, - D5ED97F02A8B8AAF00854015 /* UnityEngine.UI2.cpp in Sources */, - D5ED97D32A8B8AAF00854015 /* UnityEngine.UIModule_CodeGen.c in Sources */, - D5ED97C12A8B8AAF00854015 /* UnityEngine.IMGUIModule_CodeGen.c in Sources */, - D5ED97F32A8B8AAF00854015 /* UnityEngine.GameCenterModule_CodeGen.c in Sources */, - D5ED97B52A8B8AAF00854015 /* UnityEngine.GameCenterModule.cpp in Sources */, + D580D42E2A8DE02600C036A0 /* mscorlib3.cpp in Sources */, + D580D3BA2A8DE02600C036A0 /* GenericMethods6.cpp in Sources */, + D580D3C02A8DE02600C036A0 /* GenericMethods4.cpp in Sources */, + D580D3B22A8DE02600C036A0 /* Il2CppGenericAdjustorThunkTable.c in Sources */, + D580D43C2A8DE02600C036A0 /* UnresolvedVirtualCallStubs.cpp in Sources */, + D580D42C2A8DE02600C036A0 /* UnityEngine.UI2.cpp in Sources */, + D580D40F2A8DE02600C036A0 /* UnityEngine.UIModule_CodeGen.c in Sources */, + D580D3FD2A8DE02600C036A0 /* UnityEngine.IMGUIModule_CodeGen.c in Sources */, + D580D42F2A8DE02600C036A0 /* UnityEngine.GameCenterModule_CodeGen.c in Sources */, + D580D3F12A8DE02600C036A0 /* UnityEngine.GameCenterModule.cpp in Sources */, D507D5EE2994C62A00CF3953 /* unity_services_locale.mm in Sources */, - D5ED97D12A8B8AAF00854015 /* UnityEngine.SharedInternalsModule.cpp in Sources */, - D5ED98072A8B8AAF00854015 /* Generics22.cpp in Sources */, - D5ED97CD2A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule.cpp in Sources */, + D580D40D2A8DE02600C036A0 /* UnityEngine.SharedInternalsModule.cpp in Sources */, + D580D4432A8DE02600C036A0 /* Generics22.cpp in Sources */, + D580D4092A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule.cpp in Sources */, D507D25D2994C61700CF3953 /* SplashScreen.mm in Sources */, D507C93F2994A0A800CF3953 /* UIUtils.m in Sources */, D507D5DB2994C62900CF3953 /* Il2CppOptions.cpp in Sources */, D59AB8582A690C9900433200 /* Utilities.m in Sources */, - D5ED97DF2A8B8AAF00854015 /* Il2CppInvokerTable.cpp in Sources */, - D5ED97962A8B8AAF00854015 /* UnityEngine.AndroidJNIModule_CodeGen.c in Sources */, + D580D41B2A8DE02600C036A0 /* Il2CppInvokerTable.cpp in Sources */, + D580D3D22A8DE02600C036A0 /* UnityEngine.AndroidJNIModule_CodeGen.c in Sources */, D507D60E2994D1E300CF3953 /* main.mm in Sources */, - D5ED97872A8B8AAF00854015 /* UnityEngine.UIElementsModule9.cpp in Sources */, - D5ED97E62A8B8AAF00854015 /* Il2CppGenericClassTable.c in Sources */, + D580D3C32A8DE02600C036A0 /* UnityEngine.UIElementsModule9.cpp in Sources */, + D580D4222A8DE02600C036A0 /* Il2CppGenericClassTable.c in Sources */, D53CC8912A7BA24A00CAD911 /* AppsFlyer+AppController.m in Sources */, D507D2472994C61700CF3953 /* UnityWebRequest.mm in Sources */, D507C91C2994A0A800CF3953 /* NSString+Customer.m in Sources */, - D5ED97B02A8B8AAF00854015 /* UnityEngine.AnimationModule_CodeGen.c in Sources */, - D5ED97D62A8B8AAF00854015 /* UnityEngine.TextCoreTextEngineModule3.cpp in Sources */, - D5ED97BE2A8B8AAF00854015 /* mscorlib11.cpp in Sources */, - D5ED979C2A8B8AAF00854015 /* UnityEngine.TextRenderingModule.cpp in Sources */, - D5ED97A02A8B8AAF00854015 /* __Generated_CodeGen.c in Sources */, - D5ED97E32A8B8AAF00854015 /* UnityEngine.UIElementsModule3.cpp in Sources */, - D5ED98102A8B8AAF00854015 /* Generics9.cpp in Sources */, - D5ED980F2A8B8AAF00854015 /* UnityEngine.UIElementsModule7.cpp in Sources */, + D580D3EC2A8DE02600C036A0 /* UnityEngine.AnimationModule_CodeGen.c in Sources */, + D580D4122A8DE02600C036A0 /* UnityEngine.TextCoreTextEngineModule3.cpp in Sources */, + D580D3FA2A8DE02600C036A0 /* mscorlib11.cpp in Sources */, + D580D3D82A8DE02600C036A0 /* UnityEngine.TextRenderingModule.cpp in Sources */, + D580D3DC2A8DE02600C036A0 /* __Generated_CodeGen.c in Sources */, + D580D41F2A8DE02600C036A0 /* UnityEngine.UIElementsModule3.cpp in Sources */, + D580D44C2A8DE02600C036A0 /* Generics9.cpp in Sources */, + D580D44B2A8DE02600C036A0 /* UnityEngine.UIElementsModule7.cpp in Sources */, D507D3052994C61700CF3953 /* DynamicLibEngineAPI.mm in Sources */, - D5ED98142A8B8AAF00854015 /* Generics21.cpp in Sources */, - D5ED97AB2A8B8AAF00854015 /* Il2CppCCalculateFieldValues.cpp in Sources */, - D5ED980C2A8B8AAF00854015 /* Generics8.cpp in Sources */, - D5ED97882A8B8AAF00854015 /* UnityEngine.UIElementsModule8.cpp in Sources */, - D5ED97972A8B8AAF00854015 /* Assembly-CSharp.cpp in Sources */, + D580D4502A8DE02600C036A0 /* Generics21.cpp in Sources */, + D580D3E72A8DE02600C036A0 /* Il2CppCCalculateFieldValues.cpp in Sources */, + D580D4482A8DE02600C036A0 /* Generics8.cpp in Sources */, + D580D3C42A8DE02600C036A0 /* UnityEngine.UIElementsModule8.cpp in Sources */, + D580D3D32A8DE02600C036A0 /* Assembly-CSharp.cpp in Sources */, D507C93B2994A0A800CF3953 /* QRCodeReaderView.m in Sources */, D507C92D2994A0A800CF3953 /* LBXScanView.m in Sources */, D507D24B2994C61700CF3953 /* CVTextureCache.mm in Sources */, D53CC8A12A7BA28D00CAD911 /* UnityNotificationManager.m in Sources */, D507D2532994C61700CF3953 /* VideoPlayer.mm in Sources */, - D5ED97E22A8B8AAF00854015 /* Mono.Security_CodeGen.c in Sources */, - D5ED97A12A8B8AAF00854015 /* System.Configuration.cpp in Sources */, + D580D41E2A8DE02600C036A0 /* Mono.Security_CodeGen.c in Sources */, + D580D3DD2A8DE02600C036A0 /* System.Configuration.cpp in Sources */, D507D5F22994C62A00CF3953 /* UnityEarlyTransactionObserver.mm in Sources */, - D5ED97BA2A8B8AAF00854015 /* mscorlib10.cpp in Sources */, - D5ED97982A8B8AAF00854015 /* Generics17.cpp in Sources */, + D580D3F62A8DE02600C036A0 /* mscorlib10.cpp in Sources */, + D580D3D42A8DE02600C036A0 /* Generics17.cpp in Sources */, D507C93D2994A0A800CF3953 /* QRCodeReader.m in Sources */, D507D2612994C61700CF3953 /* UnityViewControllerBase+tvOS.mm in Sources */, - D5ED97C62A8B8AAF00854015 /* UnityEngine.UIModule.cpp in Sources */, + D580D4022A8DE02600C036A0 /* UnityEngine.UIModule.cpp in Sources */, D53CC8942A7BA24A00CAD911 /* AppsFlyerAttribution.m in Sources */, - D5ED97BB2A8B8AAF00854015 /* Il2CppRgctxTable.c in Sources */, + D580D3F72A8DE02600C036A0 /* Il2CppRgctxTable.c in Sources */, D507C91E2994A0A800CF3953 /* DataManager.m in Sources */, - D5ED97B42A8B8AAF00854015 /* mscorlib17.cpp in Sources */, - D5ED980D2A8B8AAF00854015 /* UnityEngine.AudioModule_CodeGen.c in Sources */, + D580D3F02A8DE02600C036A0 /* mscorlib17.cpp in Sources */, + D580D4492A8DE02600C036A0 /* UnityEngine.AudioModule_CodeGen.c in Sources */, D5BF397629C9B79400EC6351 /* UIViewController+Logger.mm in Sources */, - D5ED97D52A8B8AAF00854015 /* Mono.Security.cpp in Sources */, + D580D4112A8DE02600C036A0 /* Mono.Security.cpp in Sources */, D507D5E02994C62A00CF3953 /* UnityAdsLoadListener.mm in Sources */, D507D3092994C61700CF3953 /* RenderPluginDelegate.mm in Sources */, - D5ED980A2A8B8AAF00854015 /* UnityEngine.AndroidJNIModule.cpp in Sources */, - D5ED97B32A8B8AAF00854015 /* mscorlib16.cpp in Sources */, - D5ED97D42A8B8AAF00854015 /* System.cpp in Sources */, - D5ED97E42A8B8AAF00854015 /* UnityEngine.UIElementsModule2.cpp in Sources */, + D580D4462A8DE02600C036A0 /* UnityEngine.AndroidJNIModule.cpp in Sources */, + D580D3EF2A8DE02600C036A0 /* mscorlib16.cpp in Sources */, + D580D4102A8DE02600C036A0 /* System.cpp in Sources */, + D580D4202A8DE02600C036A0 /* UnityEngine.UIElementsModule2.cpp in Sources */, D59AB8552A690BC300433200 /* UIViewController+Purchase.mm in Sources */, D5DE834F29C831FE0029E408 /* UIViewController+Share.mm in Sources */, D507C92C2994A0A800CF3953 /* CreateBarCodeViewController.m in Sources */, - D5ED98132A8B8AAF00854015 /* mscorlib4.cpp in Sources */, - D5ED97EC2A8B8AAF00854015 /* Generics24.cpp in Sources */, - D5ED97932A8B8AAF00854015 /* UnityEngine.PhysicsModule_CodeGen.c in Sources */, + D580D44F2A8DE02600C036A0 /* mscorlib4.cpp in Sources */, + D580D4282A8DE02600C036A0 /* Generics24.cpp in Sources */, + D580D3CF2A8DE02600C036A0 /* UnityEngine.PhysicsModule_CodeGen.c in Sources */, D507D5F32994C62A00CF3953 /* UnityPurchasing.m in Sources */, - D5ED97952A8B8AAF00854015 /* Generics3.cpp in Sources */, - D5ED97C42A8B8AAF00854015 /* System_CodeGen.c in Sources */, + D580D3D12A8DE02600C036A0 /* Generics3.cpp in Sources */, + D580D4002A8DE02600C036A0 /* System_CodeGen.c in Sources */, D507C91D2994A0A800CF3953 /* UICKeyChainStore.m in Sources */, D507D25E2994C61700CF3953 /* ActivityIndicator.mm in Sources */, - D5ED98052A8B8AAF00854015 /* UnityEngine.InputLegacyModule_CodeGen.c in Sources */, - D5ED97922A8B8AAF00854015 /* UnityEngine.TextCoreFontEngineModule_CodeGen.c in Sources */, - D5ED97792A8B8AAF00854015 /* UnityEngine.UnityAnalyticsModule.cpp in Sources */, + D580D4412A8DE02600C036A0 /* UnityEngine.InputLegacyModule_CodeGen.c in Sources */, + D580D3CE2A8DE02600C036A0 /* UnityEngine.TextCoreFontEngineModule_CodeGen.c in Sources */, + D580D3B52A8DE02600C036A0 /* UnityEngine.UnityAnalyticsModule.cpp in Sources */, D507D2622994C61700CF3953 /* UnityView+iOS.mm in Sources */, D507C9292994A0A800CF3953 /* ScanResultViewController.m in Sources */, - D5ED97B72A8B8AAF00854015 /* mscorlib.cpp in Sources */, + D580D3F32A8DE02600C036A0 /* mscorlib.cpp in Sources */, D507D30A2994C61700CF3953 /* AppDelegateListener.mm in Sources */, D507D2492994C61700CF3953 /* AVCapture.mm in Sources */, D507C92B2994A0A800CF3953 /* LBXScanBaseViewController.m in Sources */, - D5ED97A62A8B8AAF00854015 /* GenericMethods3.cpp in Sources */, - D5ED97F12A8B8AAF00854015 /* Generics26.cpp in Sources */, + D580D3E22A8DE02600C036A0 /* GenericMethods3.cpp in Sources */, + D580D42D2A8DE02600C036A0 /* Generics26.cpp in Sources */, D507C92E2994A0A800CF3953 /* LBXScanNetAnimation.m in Sources */, D59AB84C2A68FC8B00433200 /* AppConfiguration.m in Sources */, D507C9282994A0A800CF3953 /* LBXScanLineAnimation.m in Sources */, D507C9212994A0A800CF3953 /* AppDelegate.mm in Sources */, - D5ED97802A8B8AAF00854015 /* Generics11.cpp in Sources */, - D5ED97FF2A8B8AAF00854015 /* mscorlib6.cpp in Sources */, - D5ED97D02A8B8AAF00854015 /* Il2CppGenericMethodDefinitions.c in Sources */, - D5ED97892A8B8AAF00854015 /* UnityICallRegistration.cpp in Sources */, + D580D3BC2A8DE02600C036A0 /* Generics11.cpp in Sources */, + D580D43B2A8DE02600C036A0 /* mscorlib6.cpp in Sources */, + D580D40C2A8DE02600C036A0 /* Il2CppGenericMethodDefinitions.c in Sources */, + D580D3C52A8DE02600C036A0 /* UnityICallRegistration.cpp in Sources */, D507D3042994C61700CF3953 /* CrashReporter.mm in Sources */, D507D5EA2994C62A00CF3953 /* UnityAnalyticsWrapper.m in Sources */, D507D5EC2994C62A00CF3953 /* UnityMonetizationDecisionWrapper.m in Sources */, D507D3062994C61700CF3953 /* UnityAppController.mm in Sources */, - D5ED97DD2A8B8AAF00854015 /* UnityEngine.UIElementsNativeModule.cpp in Sources */, - D5ED978E2A8B8AAF00854015 /* Generics16.cpp in Sources */, + D580D4192A8DE02600C036A0 /* UnityEngine.UIElementsNativeModule.cpp in Sources */, + D580D3CA2A8DE02600C036A0 /* Generics16.cpp in Sources */, D507D2592994C61700CF3953 /* UnityView.mm in Sources */, - D5ED97BF2A8B8AAF00854015 /* UnityEngine.SpriteShapeModule_CodeGen.c in Sources */, - D5ED97AA2A8B8AAF00854015 /* Il2CppCCalculateTypeValues.cpp in Sources */, - D5ED979B2A8B8AAF00854015 /* UnityEngine.SpriteShapeModule.cpp in Sources */, - D5ED979F2A8B8AAF00854015 /* Generics1.cpp in Sources */, + D580D3FB2A8DE02600C036A0 /* UnityEngine.SpriteShapeModule_CodeGen.c in Sources */, + D580D3E62A8DE02600C036A0 /* Il2CppCCalculateTypeValues.cpp in Sources */, + D580D3D72A8DE02600C036A0 /* UnityEngine.SpriteShapeModule.cpp in Sources */, + D580D3DB2A8DE02600C036A0 /* Generics1.cpp in Sources */, D507D2502994C61700CF3953 /* UnityReplayKit_Scripting.mm in Sources */, - D5ED97C92A8B8AAF00854015 /* UnityEngine.UIElementsModule12.cpp in Sources */, + D580D4052A8DE02600C036A0 /* UnityEngine.UIElementsModule12.cpp in Sources */, D507C9242994A0A800CF3953 /* StyleDIY.m in Sources */, - D5ED97822A8B8AAF00854015 /* Il2CppCCTypeValuesTable.cpp in Sources */, - D5ED97A42A8B8AAF00854015 /* Il2CppCCalculateFieldValues1.cpp in Sources */, - D5ED97C52A8B8AAF00854015 /* UnityEngine.IMGUIModule1.cpp in Sources */, + D580D3BE2A8DE02600C036A0 /* Il2CppCCTypeValuesTable.cpp in Sources */, + D580D3E02A8DE02600C036A0 /* Il2CppCCalculateFieldValues1.cpp in Sources */, + D580D4012A8DE02600C036A0 /* UnityEngine.IMGUIModule1.cpp in Sources */, D507C9402994A0A800CF3953 /* NSData+Base64.m in Sources */, D507C9352994A0A800CF3953 /* LBXPermissionCamera.m in Sources */, D507D2512994C61700CF3953 /* MetalHelper.mm in Sources */, - D5ED97EA2A8B8AAF00854015 /* Il2CppGenericInstDefinitions.c in Sources */, - D5ED97F82A8B8AAF00854015 /* mscorlib2.cpp in Sources */, + D580D4262A8DE02600C036A0 /* Il2CppGenericInstDefinitions.c in Sources */, + D580D4342A8DE02600C036A0 /* mscorlib2.cpp in Sources */, D507C91F2994A0A800CF3953 /* JcWallet.mm in Sources */, - D5ED97E12A8B8AAF00854015 /* Generics25.cpp in Sources */, + D580D41D2A8DE02600C036A0 /* Generics25.cpp in Sources */, D507D5E22994C62A00CF3953 /* UnityAdsNativeObject.m in Sources */, - D5ED97E72A8B8AAF00854015 /* UnityEngine.GridModule_CodeGen.c in Sources */, - D5ED97C82A8B8AAF00854015 /* UnityEngine.UIElementsModule10.cpp in Sources */, - D5ED97F52A8B8AAF00854015 /* UnityEngine.UIElementsModule1.cpp in Sources */, - D5ED97FD2A8B8AAF00854015 /* Generics23.cpp in Sources */, - D5ED97CC2A8B8AAF00854015 /* mscorlib_CodeGen.c in Sources */, - D5ED97AE2A8B8AAF00854015 /* mscorlib14.cpp in Sources */, + D580D4232A8DE02600C036A0 /* UnityEngine.GridModule_CodeGen.c in Sources */, + D580D4042A8DE02600C036A0 /* UnityEngine.UIElementsModule10.cpp in Sources */, + D580D4312A8DE02600C036A0 /* UnityEngine.UIElementsModule1.cpp in Sources */, + D580D4392A8DE02600C036A0 /* Generics23.cpp in Sources */, + D580D4082A8DE02600C036A0 /* mscorlib_CodeGen.c in Sources */, + D580D3EA2A8DE02600C036A0 /* mscorlib14.cpp in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/Unity-iPhone.xcworkspace/xcuserdata/zhl.xcuserdatad/UserInterfaceState.xcuserstate b/Unity-iPhone.xcworkspace/xcuserdata/zhl.xcuserdatad/UserInterfaceState.xcuserstate index 6170804..01646a0 100644 Binary files a/Unity-iPhone.xcworkspace/xcuserdata/zhl.xcuserdatad/UserInterfaceState.xcuserstate and b/Unity-iPhone.xcworkspace/xcuserdata/zhl.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/js/jcwallet.js b/js/jcwallet.js index 4f9460a..9ea61c5 100644 --- a/js/jcwallet.js +++ b/js/jcwallet.js @@ -21,15 +21,15 @@ var n=r(0),a=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r) * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2015-2018 * @license MIT - */!function(){"use strict";var c="input is invalid type",f="object"===("undefined"==typeof window?"undefined":o(window)),d=f?window:{};d.JS_SHA3_NO_WINDOW&&(f=!1);var s=!f&&"object"===("undefined"==typeof self?"undefined":o(self));!d.JS_SHA3_NO_NODE_JS&&"object"===(void 0===e?"undefined":o(e))&&e.versions&&e.versions.node?d=n:s&&(d=self);var u=!d.JS_SHA3_NO_COMMON_JS&&"object"===o(a)&&a.exports,b=r(144),h=!d.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,l="0123456789abcdef".split(""),p=[4,1024,262144,67108864],m=[0,8,16,24],x=[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],v=[128,256],g=["hex","buffer","arrayBuffer","array","digest"],w={128:168,256:136};!d.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!h||!d.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===o(e)&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var _=function(e,t,r){return function(n){return new N(e,t,e).update(n)[r]()}},M=function(e,t,r){return function(n,a){return new N(e,t,a).update(n)[r]()}},k=function(e,t,r){return function(t,n,a,i){return O["cshake"+e].update(t,n,a,i)[r]()}},S=function(e,t,r){return function(t,n,a,i){return O["kmac"+e].update(t,n,a,i)[r]()}},A=function(e,t,r,n){for(var a=0;a>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 U(e,t,r){N.call(this,e,t,r)}N.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,r=o(e);if("string"!==r){if("object"!==r)throw new Error(c);if(null===e)throw new Error(c);if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw new Error(c);t=!0}for(var n,a,i=this.blocks,f=this.byteCount,d=e.length,s=this.blockCount,u=0,b=this.s;u>2]|=e[u]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|63&a)<=57344?(i[n>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|63&a)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|63&a)<=f){for(this.start=n-f,this.block=i[s],n=0;n>=8);r>0;)a.unshift(r),r=255&(e>>=8),++n;return t?a.push(n):a.unshift(n),this.update(a),a.length},N.prototype.encodeString=function(e){var t,r=o(e);if("string"!==r){if("object"!==r)throw new Error(c);if(null===e)throw new Error(c);if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw new Error(c);t=!0}var n=0,a=e.length;if(t)n=a;else for(var i=0;i=57344?n+=3:(f=65536+((1023&f)<<10|1023&e.charCodeAt(++i)),n+=4)}return n+=this.encode(8*n),this.update(e),n},N.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t>4&15]+l[15&e]+l[e>>12&15]+l[e>>8&15]+l[e>>20&15]+l[e>>16&15]+l[e>>28&15]+l[e>>24&15];o%t==0&&(z(r),i=0)}return a&&(e=r[i],c+=l[e>>4&15]+l[15&e],a>1&&(c+=l[e>>12&15]+l[e>>8&15]),a>2&&(c+=l[e>>20&15]+l[e>>16&15])),c},N.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,a=this.extraBytes,i=0,o=0,c=this.outputBits>>3;e=a?new ArrayBuffer(n+1<<2):new ArrayBuffer(c);for(var f=new Uint32Array(e);o>8&255,f[e+2]=t>>16&255,f[e+3]=t>>24&255;c%r==0&&z(n)}return i&&(e=c<<2,t=n[o],f[e]=255&t,i>1&&(f[e+1]=t>>8&255),i>2&&(f[e+2]=t>>16&255)),f},U.prototype=new N,U.prototype.finalize=function(){return this.encode(this.outputBits,!0),N.prototype.finalize.call(this)};var z=function(e){var t,r,n,a,i,o,c,f,d,s,u,b,h,l,p,m,y,v,g,w,_,M,k,S,A,E,T,O,P,j,B,R,C,I,L,N,U,z,F,q,H,D,K,G,W,V,Z,J,X,Y,$,Q,ee,te,re,ne,ae,ie,oe,ce,fe,de,se;for(n=0;n<48;n+=2)a=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],c=e[3]^e[13]^e[23]^e[33]^e[43],f=e[4]^e[14]^e[24]^e[34]^e[44],d=e[5]^e[15]^e[25]^e[35]^e[45],s=e[6]^e[16]^e[26]^e[36]^e[46],u=e[7]^e[17]^e[27]^e[37]^e[47],t=(b=e[8]^e[18]^e[28]^e[38]^e[48])^(o<<1|c>>>31),r=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(c<<1|o>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=a^(f<<1|d>>>31),r=i^(d<<1|f>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=o^(s<<1|u>>>31),r=c^(u<<1|s>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=f^(b<<1|h>>>31),r=d^(h<<1|b>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=s^(a<<1|i>>>31),r=u^(i<<1|a>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,l=e[0],p=e[1],V=e[11]<<4|e[10]>>>28,Z=e[10]<<4|e[11]>>>28,O=e[20]<<3|e[21]>>>29,P=e[21]<<3|e[20]>>>29,ce=e[31]<<9|e[30]>>>23,fe=e[30]<<9|e[31]>>>23,D=e[40]<<18|e[41]>>>14,K=e[41]<<18|e[40]>>>14,I=e[2]<<1|e[3]>>>31,L=e[3]<<1|e[2]>>>31,m=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,J=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,j=e[33]<<13|e[32]>>>19,B=e[32]<<13|e[33]>>>19,de=e[42]<<2|e[43]>>>30,se=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,N=e[14]<<6|e[15]>>>26,U=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,g=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,$=e[35]<<15|e[34]>>>17,R=e[45]<<29|e[44]>>>3,C=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,A=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ae=e[16]<<23|e[17]>>>9,z=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,_=e[37]<<21|e[36]>>>11,Q=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,G=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,E=e[18]<<20|e[19]>>>12,T=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,oe=e[28]<<7|e[29]>>>25,q=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,M=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=l^~m&v,e[1]=p^~y&g,e[10]=S^~E&O,e[11]=A^~T&P,e[20]=I^~N&z,e[21]=L^~U&F,e[30]=G^~V&J,e[31]=W^~Z&X,e[40]=te^~ne&ie,e[41]=re^~ae&oe,e[2]=m^~v&w,e[3]=y^~g&_,e[12]=E^~O&j,e[13]=T^~P&B,e[22]=N^~z&q,e[23]=U^~F&H,e[32]=V^~J&Y,e[33]=Z^~X&$,e[42]=ne^~ie&ce,e[43]=ae^~oe&fe,e[4]=v^~w&M,e[5]=g^~_&k,e[14]=O^~j&R,e[15]=P^~B&C,e[24]=z^~q&D,e[25]=F^~H&K,e[34]=J^~Y&Q,e[35]=X^~$&ee,e[44]=ie^~ce&de,e[45]=oe^~fe&se,e[6]=w^~M&l,e[7]=_^~k&p,e[16]=j^~R&S,e[17]=B^~C&A,e[26]=q^~D&I,e[27]=H^~K&L,e[36]=Y^~Q&G,e[37]=$^~ee&W,e[46]=ce^~de&te,e[47]=fe^~se&re,e[8]=M^~l&m,e[9]=k^~p&y,e[18]=R^~S&E,e[19]=C^~A&T,e[28]=D^~I&N,e[29]=K^~L&U,e[38]=Q^~G&V,e[39]=ee^~W&Z,e[48]=de^~te&ne,e[49]=se^~re&ae,e[0]^=x[n],e[1]^=x[n+1]};if(u)a.exports=O;else{for(j=0;j=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function d(e,t,r,n){for(var a=0,i=Math.min(e.length,r),o=t;o=49?c-49+10:c>=17?c-17+10:c}return a}o.isBN=function(e){return e instanceof o||null!==e&&"object"===t(e)&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n);if("object"===t(e))return this._initArray(e,r,n);"hex"===r&&(r=16),a(r===(0|r)&&r>=2&&r<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===r?this._parseHex(e,i):this._parseBase(e,r,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),r,n)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(a(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(a("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[i]|=o<>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);else if("le"===r)for(n=0,i=0;n>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)a=f(e,r,r+6),this.words[n]|=a<>>26-i&4194303,(i+=24)>=26&&(i-=26,n++);r+6!==t&&(a=f(e,t,r+6),this.words[n]|=a<>>26-i&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,a=1;a<=67108863;a*=t)n++;n--,a=a/t|0;for(var i=e.length-r,o=i%n,c=Math.min(i,i-o)+r,f=0,s=r;s1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var s=["","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"],u=[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],b=[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 h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,c=67108863&o,f=o/67108864|0;r.words[0]=c;for(var d=1;d>>26,u=67108863&f,b=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=b;h++){var l=d-h|0;s+=(o=(a=0|e.words[l])*(i=0|t.words[h])+u)/67108864|0,u=67108863&o}r.words[d]=0|u,f=0|s}return 0!==f?r.words[d]=0|f:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,i=0,o=0;o>>24-n&16777215)||o!==this.length-1?s[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,o--)}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],h=b[e];r="";var l=this.clone();for(l.negative=0;!l.isZero();){var p=l.modn(h).toString(e);r=(l=l.idivn(h)).isZero()?p+r:s[d-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}a(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return a(void 0!==c),this.toArrayLike(c,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),i=r||Math.max(1,n);a(n<=i,"byte array longer than desired length"),a(i>0,"Requested array length <= 0"),this.strip();var o,c,f="le"===t,d=new e(i),s=this.clone();if(f){for(c=0;!s.isZero();c++)o=s.andln(255),s.iushrn(8),d[c]=o;for(;c=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=r.length,0!==a)this.words[this.length]=a,this.length++;else if(r!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,h=0|o[1],l=8191&h,p=h>>>13,m=0|o[2],x=8191&m,y=m>>>13,v=0|o[3],g=8191&v,w=v>>>13,_=0|o[4],M=8191&_,k=_>>>13,S=0|o[5],A=8191&S,E=S>>>13,T=0|o[6],O=8191&T,P=T>>>13,j=0|o[7],B=8191&j,R=j>>>13,C=0|o[8],I=8191&C,L=C>>>13,N=0|o[9],U=8191&N,z=N>>>13,F=0|c[0],q=8191&F,H=F>>>13,D=0|c[1],K=8191&D,G=D>>>13,W=0|c[2],V=8191&W,Z=W>>>13,J=0|c[3],X=8191&J,Y=J>>>13,$=0|c[4],Q=8191&$,ee=$>>>13,te=0|c[5],re=8191&te,ne=te>>>13,ae=0|c[6],ie=8191&ae,oe=ae>>>13,ce=0|c[7],fe=8191&ce,de=ce>>>13,se=0|c[8],ue=8191&se,be=se>>>13,he=0|c[9],le=8191&he,pe=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(d+(n=Math.imul(u,q))|0)+((8191&(a=(a=Math.imul(u,H))+Math.imul(b,q)|0))<<13)|0;d=((i=Math.imul(b,H))+(a>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(l,q),a=(a=Math.imul(l,H))+Math.imul(p,q)|0,i=Math.imul(p,H);var xe=(d+(n=n+Math.imul(u,K)|0)|0)+((8191&(a=(a=a+Math.imul(u,G)|0)+Math.imul(b,K)|0))<<13)|0;d=((i=i+Math.imul(b,G)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(x,q),a=(a=Math.imul(x,H))+Math.imul(y,q)|0,i=Math.imul(y,H),n=n+Math.imul(l,K)|0,a=(a=a+Math.imul(l,G)|0)+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0;var ye=(d+(n=n+Math.imul(u,V)|0)|0)+((8191&(a=(a=a+Math.imul(u,Z)|0)+Math.imul(b,V)|0))<<13)|0;d=((i=i+Math.imul(b,Z)|0)+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(g,q),a=(a=Math.imul(g,H))+Math.imul(w,q)|0,i=Math.imul(w,H),n=n+Math.imul(x,K)|0,a=(a=a+Math.imul(x,G)|0)+Math.imul(y,K)|0,i=i+Math.imul(y,G)|0,n=n+Math.imul(l,V)|0,a=(a=a+Math.imul(l,Z)|0)+Math.imul(p,V)|0,i=i+Math.imul(p,Z)|0;var ve=(d+(n=n+Math.imul(u,X)|0)|0)+((8191&(a=(a=a+Math.imul(u,Y)|0)+Math.imul(b,X)|0))<<13)|0;d=((i=i+Math.imul(b,Y)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(M,q),a=(a=Math.imul(M,H))+Math.imul(k,q)|0,i=Math.imul(k,H),n=n+Math.imul(g,K)|0,a=(a=a+Math.imul(g,G)|0)+Math.imul(w,K)|0,i=i+Math.imul(w,G)|0,n=n+Math.imul(x,V)|0,a=(a=a+Math.imul(x,Z)|0)+Math.imul(y,V)|0,i=i+Math.imul(y,Z)|0,n=n+Math.imul(l,X)|0,a=(a=a+Math.imul(l,Y)|0)+Math.imul(p,X)|0,i=i+Math.imul(p,Y)|0;var ge=(d+(n=n+Math.imul(u,Q)|0)|0)+((8191&(a=(a=a+Math.imul(u,ee)|0)+Math.imul(b,Q)|0))<<13)|0;d=((i=i+Math.imul(b,ee)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(A,q),a=(a=Math.imul(A,H))+Math.imul(E,q)|0,i=Math.imul(E,H),n=n+Math.imul(M,K)|0,a=(a=a+Math.imul(M,G)|0)+Math.imul(k,K)|0,i=i+Math.imul(k,G)|0,n=n+Math.imul(g,V)|0,a=(a=a+Math.imul(g,Z)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,Z)|0,n=n+Math.imul(x,X)|0,a=(a=a+Math.imul(x,Y)|0)+Math.imul(y,X)|0,i=i+Math.imul(y,Y)|0,n=n+Math.imul(l,Q)|0,a=(a=a+Math.imul(l,ee)|0)+Math.imul(p,Q)|0,i=i+Math.imul(p,ee)|0;var we=(d+(n=n+Math.imul(u,re)|0)|0)+((8191&(a=(a=a+Math.imul(u,ne)|0)+Math.imul(b,re)|0))<<13)|0;d=((i=i+Math.imul(b,ne)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(O,q),a=(a=Math.imul(O,H))+Math.imul(P,q)|0,i=Math.imul(P,H),n=n+Math.imul(A,K)|0,a=(a=a+Math.imul(A,G)|0)+Math.imul(E,K)|0,i=i+Math.imul(E,G)|0,n=n+Math.imul(M,V)|0,a=(a=a+Math.imul(M,Z)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,Z)|0,n=n+Math.imul(g,X)|0,a=(a=a+Math.imul(g,Y)|0)+Math.imul(w,X)|0,i=i+Math.imul(w,Y)|0,n=n+Math.imul(x,Q)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(y,Q)|0,i=i+Math.imul(y,ee)|0,n=n+Math.imul(l,re)|0,a=(a=a+Math.imul(l,ne)|0)+Math.imul(p,re)|0,i=i+Math.imul(p,ne)|0;var _e=(d+(n=n+Math.imul(u,ie)|0)|0)+((8191&(a=(a=a+Math.imul(u,oe)|0)+Math.imul(b,ie)|0))<<13)|0;d=((i=i+Math.imul(b,oe)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(B,q),a=(a=Math.imul(B,H))+Math.imul(R,q)|0,i=Math.imul(R,H),n=n+Math.imul(O,K)|0,a=(a=a+Math.imul(O,G)|0)+Math.imul(P,K)|0,i=i+Math.imul(P,G)|0,n=n+Math.imul(A,V)|0,a=(a=a+Math.imul(A,Z)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,Z)|0,n=n+Math.imul(M,X)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,Y)|0,n=n+Math.imul(g,Q)|0,a=(a=a+Math.imul(g,ee)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,n=n+Math.imul(x,re)|0,a=(a=a+Math.imul(x,ne)|0)+Math.imul(y,re)|0,i=i+Math.imul(y,ne)|0,n=n+Math.imul(l,ie)|0,a=(a=a+Math.imul(l,oe)|0)+Math.imul(p,ie)|0,i=i+Math.imul(p,oe)|0;var Me=(d+(n=n+Math.imul(u,fe)|0)|0)+((8191&(a=(a=a+Math.imul(u,de)|0)+Math.imul(b,fe)|0))<<13)|0;d=((i=i+Math.imul(b,de)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(I,q),a=(a=Math.imul(I,H))+Math.imul(L,q)|0,i=Math.imul(L,H),n=n+Math.imul(B,K)|0,a=(a=a+Math.imul(B,G)|0)+Math.imul(R,K)|0,i=i+Math.imul(R,G)|0,n=n+Math.imul(O,V)|0,a=(a=a+Math.imul(O,Z)|0)+Math.imul(P,V)|0,i=i+Math.imul(P,Z)|0,n=n+Math.imul(A,X)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(E,X)|0,i=i+Math.imul(E,Y)|0,n=n+Math.imul(M,Q)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,ee)|0,n=n+Math.imul(g,re)|0,a=(a=a+Math.imul(g,ne)|0)+Math.imul(w,re)|0,i=i+Math.imul(w,ne)|0,n=n+Math.imul(x,ie)|0,a=(a=a+Math.imul(x,oe)|0)+Math.imul(y,ie)|0,i=i+Math.imul(y,oe)|0,n=n+Math.imul(l,fe)|0,a=(a=a+Math.imul(l,de)|0)+Math.imul(p,fe)|0,i=i+Math.imul(p,de)|0;var ke=(d+(n=n+Math.imul(u,ue)|0)|0)+((8191&(a=(a=a+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((i=i+Math.imul(b,be)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,q),a=(a=Math.imul(U,H))+Math.imul(z,q)|0,i=Math.imul(z,H),n=n+Math.imul(I,K)|0,a=(a=a+Math.imul(I,G)|0)+Math.imul(L,K)|0,i=i+Math.imul(L,G)|0,n=n+Math.imul(B,V)|0,a=(a=a+Math.imul(B,Z)|0)+Math.imul(R,V)|0,i=i+Math.imul(R,Z)|0,n=n+Math.imul(O,X)|0,a=(a=a+Math.imul(O,Y)|0)+Math.imul(P,X)|0,i=i+Math.imul(P,Y)|0,n=n+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,ee)|0,n=n+Math.imul(M,re)|0,a=(a=a+Math.imul(M,ne)|0)+Math.imul(k,re)|0,i=i+Math.imul(k,ne)|0,n=n+Math.imul(g,ie)|0,a=(a=a+Math.imul(g,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,n=n+Math.imul(x,fe)|0,a=(a=a+Math.imul(x,de)|0)+Math.imul(y,fe)|0,i=i+Math.imul(y,de)|0,n=n+Math.imul(l,ue)|0,a=(a=a+Math.imul(l,be)|0)+Math.imul(p,ue)|0,i=i+Math.imul(p,be)|0;var Se=(d+(n=n+Math.imul(u,le)|0)|0)+((8191&(a=(a=a+Math.imul(u,pe)|0)+Math.imul(b,le)|0))<<13)|0;d=((i=i+Math.imul(b,pe)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(U,K),a=(a=Math.imul(U,G))+Math.imul(z,K)|0,i=Math.imul(z,G),n=n+Math.imul(I,V)|0,a=(a=a+Math.imul(I,Z)|0)+Math.imul(L,V)|0,i=i+Math.imul(L,Z)|0,n=n+Math.imul(B,X)|0,a=(a=a+Math.imul(B,Y)|0)+Math.imul(R,X)|0,i=i+Math.imul(R,Y)|0,n=n+Math.imul(O,Q)|0,a=(a=a+Math.imul(O,ee)|0)+Math.imul(P,Q)|0,i=i+Math.imul(P,ee)|0,n=n+Math.imul(A,re)|0,a=(a=a+Math.imul(A,ne)|0)+Math.imul(E,re)|0,i=i+Math.imul(E,ne)|0,n=n+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,n=n+Math.imul(g,fe)|0,a=(a=a+Math.imul(g,de)|0)+Math.imul(w,fe)|0,i=i+Math.imul(w,de)|0,n=n+Math.imul(x,ue)|0,a=(a=a+Math.imul(x,be)|0)+Math.imul(y,ue)|0,i=i+Math.imul(y,be)|0;var Ae=(d+(n=n+Math.imul(l,le)|0)|0)+((8191&(a=(a=a+Math.imul(l,pe)|0)+Math.imul(p,le)|0))<<13)|0;d=((i=i+Math.imul(p,pe)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,V),a=(a=Math.imul(U,Z))+Math.imul(z,V)|0,i=Math.imul(z,Z),n=n+Math.imul(I,X)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(L,X)|0,i=i+Math.imul(L,Y)|0,n=n+Math.imul(B,Q)|0,a=(a=a+Math.imul(B,ee)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,ee)|0,n=n+Math.imul(O,re)|0,a=(a=a+Math.imul(O,ne)|0)+Math.imul(P,re)|0,i=i+Math.imul(P,ne)|0,n=n+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,n=n+Math.imul(M,fe)|0,a=(a=a+Math.imul(M,de)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,de)|0,n=n+Math.imul(g,ue)|0,a=(a=a+Math.imul(g,be)|0)+Math.imul(w,ue)|0,i=i+Math.imul(w,be)|0;var Ee=(d+(n=n+Math.imul(x,le)|0)|0)+((8191&(a=(a=a+Math.imul(x,pe)|0)+Math.imul(y,le)|0))<<13)|0;d=((i=i+Math.imul(y,pe)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,X),a=(a=Math.imul(U,Y))+Math.imul(z,X)|0,i=Math.imul(z,Y),n=n+Math.imul(I,Q)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(L,Q)|0,i=i+Math.imul(L,ee)|0,n=n+Math.imul(B,re)|0,a=(a=a+Math.imul(B,ne)|0)+Math.imul(R,re)|0,i=i+Math.imul(R,ne)|0,n=n+Math.imul(O,ie)|0,a=(a=a+Math.imul(O,oe)|0)+Math.imul(P,ie)|0,i=i+Math.imul(P,oe)|0,n=n+Math.imul(A,fe)|0,a=(a=a+Math.imul(A,de)|0)+Math.imul(E,fe)|0,i=i+Math.imul(E,de)|0,n=n+Math.imul(M,ue)|0,a=(a=a+Math.imul(M,be)|0)+Math.imul(k,ue)|0,i=i+Math.imul(k,be)|0;var Te=(d+(n=n+Math.imul(g,le)|0)|0)+((8191&(a=(a=a+Math.imul(g,pe)|0)+Math.imul(w,le)|0))<<13)|0;d=((i=i+Math.imul(w,pe)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,Q),a=(a=Math.imul(U,ee))+Math.imul(z,Q)|0,i=Math.imul(z,ee),n=n+Math.imul(I,re)|0,a=(a=a+Math.imul(I,ne)|0)+Math.imul(L,re)|0,i=i+Math.imul(L,ne)|0,n=n+Math.imul(B,ie)|0,a=(a=a+Math.imul(B,oe)|0)+Math.imul(R,ie)|0,i=i+Math.imul(R,oe)|0,n=n+Math.imul(O,fe)|0,a=(a=a+Math.imul(O,de)|0)+Math.imul(P,fe)|0,i=i+Math.imul(P,de)|0,n=n+Math.imul(A,ue)|0,a=(a=a+Math.imul(A,be)|0)+Math.imul(E,ue)|0,i=i+Math.imul(E,be)|0;var Oe=(d+(n=n+Math.imul(M,le)|0)|0)+((8191&(a=(a=a+Math.imul(M,pe)|0)+Math.imul(k,le)|0))<<13)|0;d=((i=i+Math.imul(k,pe)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,re),a=(a=Math.imul(U,ne))+Math.imul(z,re)|0,i=Math.imul(z,ne),n=n+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(L,ie)|0,i=i+Math.imul(L,oe)|0,n=n+Math.imul(B,fe)|0,a=(a=a+Math.imul(B,de)|0)+Math.imul(R,fe)|0,i=i+Math.imul(R,de)|0,n=n+Math.imul(O,ue)|0,a=(a=a+Math.imul(O,be)|0)+Math.imul(P,ue)|0,i=i+Math.imul(P,be)|0;var Pe=(d+(n=n+Math.imul(A,le)|0)|0)+((8191&(a=(a=a+Math.imul(A,pe)|0)+Math.imul(E,le)|0))<<13)|0;d=((i=i+Math.imul(E,pe)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(z,ie)|0,i=Math.imul(z,oe),n=n+Math.imul(I,fe)|0,a=(a=a+Math.imul(I,de)|0)+Math.imul(L,fe)|0,i=i+Math.imul(L,de)|0,n=n+Math.imul(B,ue)|0,a=(a=a+Math.imul(B,be)|0)+Math.imul(R,ue)|0,i=i+Math.imul(R,be)|0;var je=(d+(n=n+Math.imul(O,le)|0)|0)+((8191&(a=(a=a+Math.imul(O,pe)|0)+Math.imul(P,le)|0))<<13)|0;d=((i=i+Math.imul(P,pe)|0)+(a>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(U,fe),a=(a=Math.imul(U,de))+Math.imul(z,fe)|0,i=Math.imul(z,de),n=n+Math.imul(I,ue)|0,a=(a=a+Math.imul(I,be)|0)+Math.imul(L,ue)|0,i=i+Math.imul(L,be)|0;var Be=(d+(n=n+Math.imul(B,le)|0)|0)+((8191&(a=(a=a+Math.imul(B,pe)|0)+Math.imul(R,le)|0))<<13)|0;d=((i=i+Math.imul(R,pe)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,ue),a=(a=Math.imul(U,be))+Math.imul(z,ue)|0,i=Math.imul(z,be);var Re=(d+(n=n+Math.imul(I,le)|0)|0)+((8191&(a=(a=a+Math.imul(I,pe)|0)+Math.imul(L,le)|0))<<13)|0;d=((i=i+Math.imul(L,pe)|0)+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Ce=(d+(n=Math.imul(U,le))|0)+((8191&(a=(a=Math.imul(U,pe))+Math.imul(z,le)|0))<<13)|0;return d=((i=Math.imul(z,pe))+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=xe,f[2]=ye,f[3]=ve,f[4]=ge,f[5]=we,f[6]=_e,f[7]=Me,f[8]=ke,f[9]=Se,f[10]=Ae,f[11]=Ee,f[12]=Te,f[13]=Oe,f[14]=Pe,f[15]=je,f[16]=Be,f[17]=Re,f[18]=Ce,0!==d&&(f[19]=d,r.length++),r};function p(e,t,r){return(new m).mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(l=h),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}r.words[i]=c,n=o,o=a}return 0!==n?r.words[i]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},m.prototype.permute=function(e,t,r,n,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,r[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=n/67108864|0,t+=i>>>26,this.words[r]=67108863&i}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>a}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,n=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),c=67108863^67108863>>>i<o)for(this.length-=o,d=0;d=0&&(0!==s||d>=n);d--){var u=0|this.words[d];this.words[d]=s<<26-i|u>>>i,s=u&c}return f&&0!==s&&(f.words[f.length++]=s),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return a(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(a("number"==typeof e),a(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(f/67108864|0),this.words[n+r]=67108863&i}for(;n>26,this.words[n+r]=67108863&i;if(0===c)return this.strip();for(a(-1===c),c=0,n=0;n>26,this.words[n]=67108863&i;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),a=e,i=0|a.words[a.length-1];0!==(r=26-this._countBits(i))&&(a=a.ushln(r),n.iushln(r),i=0|a.words[a.length-1]);var c,f=n.length-a.length;if("mod"!==t){(c=new o(null)).length=f+1,c.words=new Array(c.length);for(var d=0;d=0;u--){var b=67108864*(0|n.words[a.length+u])+(0|n.words[a.length+u-1]);for(b=Math.min(b/i|0,67108863),n._ishlnsubmul(a,b,u);0!==n.negative;)b--,n.negative=0,n._ishlnsubmul(a,1,u),n.isZero()||(n.negative^=1);c&&(c.words[u]=b)}return c&&c.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:c||null,mod:n}},o.prototype.divmod=function(e,t,r){return a(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(c=this.neg().divmod(e,t),"mod"!==t&&(n=c.div.neg()),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(c=this.divmod(e.neg(),t),"mod"!==t&&(n=c.div.neg()),{div:n,mod:c.mod}):0!=(this.negative&e.negative)?(c=this.neg().divmod(e.neg(),t),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.isub(e)),{div:c.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,i,c},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),i=r.cmp(n);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){a(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},o.prototype.idivn=function(e){a(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),i=new o(0),c=new o(0),f=new o(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var s=r.clone(),u=t.clone();!t.isZero();){for(var b=0,h=1;0==(t.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(s),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var l=0,p=1;0==(r.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(r.iushrn(l);l-- >0;)(c.isOdd()||f.isOdd())&&(c.iadd(s),f.isub(u)),c.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(c),i.isub(f)):(r.isub(t),c.isub(n),f.isub(i))}return{a:c,b:f,gcd:r.iushln(d)}},o.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new o(1),c=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var d=0,s=1;0==(t.words[0]&s)&&d<26;++d,s<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(f),i.iushrn(1);for(var u=0,b=1;0==(r.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(r.iushrn(u);u-- >0;)c.isOdd()&&c.iadd(f),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(c)):(r.isub(t),c.isub(i))}return(n=0===t.cmpn(1)?i:c).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var a=t.cmp(r);if(a<0){var i=t;t=r,r=i}else if(0===a||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,c&=67108863,this.words[o]=c}return 0!==i&&(this.words[o]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var n=0|this.words[r],a=0|e.words[r];if(n!==a){na&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new M(e)},o.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var x={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function g(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){M.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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 e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,a=i}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(x[e])return x[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new g;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return x[e]=t,t},M.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},M.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},M.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},M.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},M.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},M.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},M.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},M.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},M.prototype.isqr=function(e){return this.imul(e,e.clone())},M.prototype.sqr=function(e){return this.mul(e,e)},M.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);a(!n.isZero());var c=new o(1).toRed(this),f=c.redNeg(),d=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new o(2*s*s).toRed(this);0!==this.pow(s,d).cmp(f);)s.redIAdd(f);for(var u=this.pow(s,n),b=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),l=i;0!==h.cmp(c);){for(var p=h,m=0;0!==p.cmp(c);m++)p=p.redSqr();a(m=0;n--){for(var d=t.words[n],s=f-1;s>=0;s--){var u=d>>s&1;a!==r[0]&&(a=this.sqr(a)),0!==u||0!==i?(i<<=1,i|=u,(4===++c||0===n&&0===s)&&(a=this.mul(a,r[i]),c=0,i=0)):c=0}f=26}return a},M.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},M.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,M),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(15)(e))},function(e,t,r){"use strict";var n=r(9),a=r(30),i=a.getNAF,o=a.getJSF,c=a.assert;function f(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.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=t.n&&new n(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 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 d(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=f,f.prototype.point=function(){throw new Error("Not implemented")},f.prototype.validate=function(){throw new Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){c(e.precomputed);var r=e._getDoubles(),n=i(t,1,this._bitLength),a=(1<=o;s--)f=(f<<1)+n[s];d.push(f)}for(var u=this.jpoint(null,null,null),b=this.jpoint(null,null,null),h=a;h>0;h--){for(o=0;o=0;d--){for(var s=0;d>=0&&0===o[d];d--)s++;if(d>=0&&s++,f=f.dblp(s),d<0)break;var u=o[d];c(0!==u),f="affine"===e.type?u>0?f.mixedAdd(a[u-1>>1]):f.mixedAdd(a[-u-1>>1].neg()):u>0?f.add(a[u-1>>1]):f.add(a[-u-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,n,a){var c,f,d,s=this._wnafT1,u=this._wnafT2,b=this._wnafT3,h=0;for(c=0;c=1;c-=2){var p=c-1,m=c;if(1===s[p]&&1===s[m]){var x=[t[p],null,null,t[m]];0===t[p].y.cmp(t[m].y)?(x[1]=t[p].add(t[m]),x[2]=t[p].toJ().mixedAdd(t[m].neg())):0===t[p].y.cmp(t[m].y.redNeg())?(x[1]=t[p].toJ().mixedAdd(t[m]),x[2]=t[p].add(t[m].neg())):(x[1]=t[p].toJ().mixedAdd(t[m]),x[2]=t[p].toJ().mixedAdd(t[m].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=o(r[p],r[m]);for(h=Math.max(v[0].length,h),b[p]=new Array(h),b[m]=new Array(h),f=0;f=0;c--){for(var k=0;c>=0;){var S=!0;for(f=0;f=0&&k++,_=_.dblp(k),c<0)break;for(f=0;f0?d=u[f][A-1>>1]:A<0&&(d=u[f][-A-1>>1].neg()),_="affine"===d.type?_.mixedAdd(d):_.add(d))}}for(c=0;c=Math.ceil((e.bitLength()+1)/t.step)},d.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,a=0;a=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r(436),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(13))},function(e,t,r){"use strict";(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=t.recoverPublicKey=t.concatSig=t.legacyToBuffer=t.isNullish=t.padWithZeroes=void 0;var a=r(124),i=r(18);function o(e,t){if(""!==e&&!/^[0-9a-f]+$/i.test(e))throw new Error("Expected an unprefixed hex string. Received: ".concat(e));if(t<0)throw new Error("Expected a non-negative integer target length. Received: ".concat(t));return String.prototype.padStart.call(e,t,"0")}t.padWithZeroes=o,t.isNullish=function(e){return null==e},t.legacyToBuffer=function(t){return"string"!=typeof t||i.isHexString(t)?a.toBuffer(t):e.from(t)},t.concatSig=function(e,t,r){var n=a.fromSigned(t),c=a.fromSigned(r),f=a.bufferToInt(e),d=o(a.toUnsigned(n).toString("hex"),64),s=o(a.toUnsigned(c).toString("hex"),64),u=i.stripHexPrefix(i.intToHex(f));return a.addHexPrefix(d.concat(s,u))},t.recoverPublicKey=function(e,t){var r=a.fromRpcSig(t);return a.ecrecover(e,r.v,r.r,r.s)},t.normalize=function(e){if(e){if("number"==typeof e){var t=a.toBuffer(e);e=a.bufferToHex(t)}if("string"!=typeof e){var r="eth-sig-util.normalize() requires hex string or integer input.";throw r+=" received ".concat(n(e),": ").concat(e),new Error(r)}return a.addHexPrefix(e.toLowerCase())}}}).call(this,r(0).Buffer)},function(e,t,r){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,n){"use strict";function a(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var c;"object"===t(e)?e.exports=o:n.BN=o,o.BN=o,o.wordSize=26;try{c="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(465).Buffer}catch(e){}function f(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void a(!1,"Invalid character in "+e)}function d(e,t,r){var n=f(e,r);return r-1>=t&&(n|=f(e,r-1)<<4),n}function s(e,t,r,n){for(var i=0,o=0,c=Math.min(e.length,r),f=t;f=49?d-49+10:d>=17?d-17+10:d,a(d>=0&&o0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n);if("object"===t(e))return this._initArray(e,r,n);"hex"===r&&(r=16),a(r===(0|r)&&r>=2&&r<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[i]|=o<>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);else if("le"===r)for(n=0,i=0;n>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)a=d(e,t,n)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,a=1;a<=67108863;a*=t)n++;n--,a=a/t|0;for(var i=e.length-r,o=i%n,c=Math.min(i,i-o)+r,f=0,d=r;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=b}catch(e){o.prototype.inspect=b}else o.prototype.inspect=b;function b(){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],p=[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];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,i=0,o=0;o>>24-n&16777215,(n+=2)>=26&&(n-=26,o--),r=0!==i||o!==this.length-1?h[6-f.length]+f+r:f+r}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=l[e],s=p[e];r="";var u=this.clone();for(u.negative=0;!u.isZero();){var b=u.modrn(s).toString(e);r=(u=u.idivn(s)).isZero()?b+r:h[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}a(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},c&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(c,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,c=67108863&o,f=o/67108864|0;r.words[0]=c;for(var d=1;d>>26,u=67108863&f,b=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=b;h++){var l=d-h|0;s+=(o=(a=0|e.words[l])*(i=0|t.words[h])+u)/67108864|0,u=67108863&o}r.words[d]=0|u,f=0|s}return 0!==f?r.words[d]=0|f:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var n=this.byteLength(),i=r||Math.max(1,n);a(n<=i,"byte array longer than desired length"),a(i>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,i);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,n),o},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,a=0,i=0;a>8&255),r>16&255),6===i?(r>24&255),n=0,i=0):(n=o>>>24,i+=2)}if(r=0&&(e[r--]=o>>8&255),r>=0&&(e[r--]=o>>16&255),6===i?(r>=0&&(e[r--]=o>>24&255),n=0,i=0):(n=o>>>24,i+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=r.length,0!==a)this.words[this.length]=a,this.length++;else if(r!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,h=0|o[1],l=8191&h,p=h>>>13,m=0|o[2],x=8191&m,y=m>>>13,v=0|o[3],g=8191&v,w=v>>>13,_=0|o[4],M=8191&_,k=_>>>13,S=0|o[5],A=8191&S,E=S>>>13,T=0|o[6],O=8191&T,P=T>>>13,j=0|o[7],B=8191&j,R=j>>>13,C=0|o[8],I=8191&C,L=C>>>13,N=0|o[9],U=8191&N,z=N>>>13,F=0|c[0],q=8191&F,H=F>>>13,D=0|c[1],K=8191&D,G=D>>>13,W=0|c[2],V=8191&W,Z=W>>>13,J=0|c[3],X=8191&J,Y=J>>>13,$=0|c[4],Q=8191&$,ee=$>>>13,te=0|c[5],re=8191&te,ne=te>>>13,ae=0|c[6],ie=8191&ae,oe=ae>>>13,ce=0|c[7],fe=8191&ce,de=ce>>>13,se=0|c[8],ue=8191&se,be=se>>>13,he=0|c[9],le=8191&he,pe=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(d+(n=Math.imul(u,q))|0)+((8191&(a=(a=Math.imul(u,H))+Math.imul(b,q)|0))<<13)|0;d=((i=Math.imul(b,H))+(a>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(l,q),a=(a=Math.imul(l,H))+Math.imul(p,q)|0,i=Math.imul(p,H);var xe=(d+(n=n+Math.imul(u,K)|0)|0)+((8191&(a=(a=a+Math.imul(u,G)|0)+Math.imul(b,K)|0))<<13)|0;d=((i=i+Math.imul(b,G)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(x,q),a=(a=Math.imul(x,H))+Math.imul(y,q)|0,i=Math.imul(y,H),n=n+Math.imul(l,K)|0,a=(a=a+Math.imul(l,G)|0)+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0;var ye=(d+(n=n+Math.imul(u,V)|0)|0)+((8191&(a=(a=a+Math.imul(u,Z)|0)+Math.imul(b,V)|0))<<13)|0;d=((i=i+Math.imul(b,Z)|0)+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(g,q),a=(a=Math.imul(g,H))+Math.imul(w,q)|0,i=Math.imul(w,H),n=n+Math.imul(x,K)|0,a=(a=a+Math.imul(x,G)|0)+Math.imul(y,K)|0,i=i+Math.imul(y,G)|0,n=n+Math.imul(l,V)|0,a=(a=a+Math.imul(l,Z)|0)+Math.imul(p,V)|0,i=i+Math.imul(p,Z)|0;var ve=(d+(n=n+Math.imul(u,X)|0)|0)+((8191&(a=(a=a+Math.imul(u,Y)|0)+Math.imul(b,X)|0))<<13)|0;d=((i=i+Math.imul(b,Y)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(M,q),a=(a=Math.imul(M,H))+Math.imul(k,q)|0,i=Math.imul(k,H),n=n+Math.imul(g,K)|0,a=(a=a+Math.imul(g,G)|0)+Math.imul(w,K)|0,i=i+Math.imul(w,G)|0,n=n+Math.imul(x,V)|0,a=(a=a+Math.imul(x,Z)|0)+Math.imul(y,V)|0,i=i+Math.imul(y,Z)|0,n=n+Math.imul(l,X)|0,a=(a=a+Math.imul(l,Y)|0)+Math.imul(p,X)|0,i=i+Math.imul(p,Y)|0;var ge=(d+(n=n+Math.imul(u,Q)|0)|0)+((8191&(a=(a=a+Math.imul(u,ee)|0)+Math.imul(b,Q)|0))<<13)|0;d=((i=i+Math.imul(b,ee)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(A,q),a=(a=Math.imul(A,H))+Math.imul(E,q)|0,i=Math.imul(E,H),n=n+Math.imul(M,K)|0,a=(a=a+Math.imul(M,G)|0)+Math.imul(k,K)|0,i=i+Math.imul(k,G)|0,n=n+Math.imul(g,V)|0,a=(a=a+Math.imul(g,Z)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,Z)|0,n=n+Math.imul(x,X)|0,a=(a=a+Math.imul(x,Y)|0)+Math.imul(y,X)|0,i=i+Math.imul(y,Y)|0,n=n+Math.imul(l,Q)|0,a=(a=a+Math.imul(l,ee)|0)+Math.imul(p,Q)|0,i=i+Math.imul(p,ee)|0;var we=(d+(n=n+Math.imul(u,re)|0)|0)+((8191&(a=(a=a+Math.imul(u,ne)|0)+Math.imul(b,re)|0))<<13)|0;d=((i=i+Math.imul(b,ne)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(O,q),a=(a=Math.imul(O,H))+Math.imul(P,q)|0,i=Math.imul(P,H),n=n+Math.imul(A,K)|0,a=(a=a+Math.imul(A,G)|0)+Math.imul(E,K)|0,i=i+Math.imul(E,G)|0,n=n+Math.imul(M,V)|0,a=(a=a+Math.imul(M,Z)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,Z)|0,n=n+Math.imul(g,X)|0,a=(a=a+Math.imul(g,Y)|0)+Math.imul(w,X)|0,i=i+Math.imul(w,Y)|0,n=n+Math.imul(x,Q)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(y,Q)|0,i=i+Math.imul(y,ee)|0,n=n+Math.imul(l,re)|0,a=(a=a+Math.imul(l,ne)|0)+Math.imul(p,re)|0,i=i+Math.imul(p,ne)|0;var _e=(d+(n=n+Math.imul(u,ie)|0)|0)+((8191&(a=(a=a+Math.imul(u,oe)|0)+Math.imul(b,ie)|0))<<13)|0;d=((i=i+Math.imul(b,oe)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(B,q),a=(a=Math.imul(B,H))+Math.imul(R,q)|0,i=Math.imul(R,H),n=n+Math.imul(O,K)|0,a=(a=a+Math.imul(O,G)|0)+Math.imul(P,K)|0,i=i+Math.imul(P,G)|0,n=n+Math.imul(A,V)|0,a=(a=a+Math.imul(A,Z)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,Z)|0,n=n+Math.imul(M,X)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,Y)|0,n=n+Math.imul(g,Q)|0,a=(a=a+Math.imul(g,ee)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,n=n+Math.imul(x,re)|0,a=(a=a+Math.imul(x,ne)|0)+Math.imul(y,re)|0,i=i+Math.imul(y,ne)|0,n=n+Math.imul(l,ie)|0,a=(a=a+Math.imul(l,oe)|0)+Math.imul(p,ie)|0,i=i+Math.imul(p,oe)|0;var Me=(d+(n=n+Math.imul(u,fe)|0)|0)+((8191&(a=(a=a+Math.imul(u,de)|0)+Math.imul(b,fe)|0))<<13)|0;d=((i=i+Math.imul(b,de)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(I,q),a=(a=Math.imul(I,H))+Math.imul(L,q)|0,i=Math.imul(L,H),n=n+Math.imul(B,K)|0,a=(a=a+Math.imul(B,G)|0)+Math.imul(R,K)|0,i=i+Math.imul(R,G)|0,n=n+Math.imul(O,V)|0,a=(a=a+Math.imul(O,Z)|0)+Math.imul(P,V)|0,i=i+Math.imul(P,Z)|0,n=n+Math.imul(A,X)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(E,X)|0,i=i+Math.imul(E,Y)|0,n=n+Math.imul(M,Q)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,ee)|0,n=n+Math.imul(g,re)|0,a=(a=a+Math.imul(g,ne)|0)+Math.imul(w,re)|0,i=i+Math.imul(w,ne)|0,n=n+Math.imul(x,ie)|0,a=(a=a+Math.imul(x,oe)|0)+Math.imul(y,ie)|0,i=i+Math.imul(y,oe)|0,n=n+Math.imul(l,fe)|0,a=(a=a+Math.imul(l,de)|0)+Math.imul(p,fe)|0,i=i+Math.imul(p,de)|0;var ke=(d+(n=n+Math.imul(u,ue)|0)|0)+((8191&(a=(a=a+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((i=i+Math.imul(b,be)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,q),a=(a=Math.imul(U,H))+Math.imul(z,q)|0,i=Math.imul(z,H),n=n+Math.imul(I,K)|0,a=(a=a+Math.imul(I,G)|0)+Math.imul(L,K)|0,i=i+Math.imul(L,G)|0,n=n+Math.imul(B,V)|0,a=(a=a+Math.imul(B,Z)|0)+Math.imul(R,V)|0,i=i+Math.imul(R,Z)|0,n=n+Math.imul(O,X)|0,a=(a=a+Math.imul(O,Y)|0)+Math.imul(P,X)|0,i=i+Math.imul(P,Y)|0,n=n+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,ee)|0,n=n+Math.imul(M,re)|0,a=(a=a+Math.imul(M,ne)|0)+Math.imul(k,re)|0,i=i+Math.imul(k,ne)|0,n=n+Math.imul(g,ie)|0,a=(a=a+Math.imul(g,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,n=n+Math.imul(x,fe)|0,a=(a=a+Math.imul(x,de)|0)+Math.imul(y,fe)|0,i=i+Math.imul(y,de)|0,n=n+Math.imul(l,ue)|0,a=(a=a+Math.imul(l,be)|0)+Math.imul(p,ue)|0,i=i+Math.imul(p,be)|0;var Se=(d+(n=n+Math.imul(u,le)|0)|0)+((8191&(a=(a=a+Math.imul(u,pe)|0)+Math.imul(b,le)|0))<<13)|0;d=((i=i+Math.imul(b,pe)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(U,K),a=(a=Math.imul(U,G))+Math.imul(z,K)|0,i=Math.imul(z,G),n=n+Math.imul(I,V)|0,a=(a=a+Math.imul(I,Z)|0)+Math.imul(L,V)|0,i=i+Math.imul(L,Z)|0,n=n+Math.imul(B,X)|0,a=(a=a+Math.imul(B,Y)|0)+Math.imul(R,X)|0,i=i+Math.imul(R,Y)|0,n=n+Math.imul(O,Q)|0,a=(a=a+Math.imul(O,ee)|0)+Math.imul(P,Q)|0,i=i+Math.imul(P,ee)|0,n=n+Math.imul(A,re)|0,a=(a=a+Math.imul(A,ne)|0)+Math.imul(E,re)|0,i=i+Math.imul(E,ne)|0,n=n+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,n=n+Math.imul(g,fe)|0,a=(a=a+Math.imul(g,de)|0)+Math.imul(w,fe)|0,i=i+Math.imul(w,de)|0,n=n+Math.imul(x,ue)|0,a=(a=a+Math.imul(x,be)|0)+Math.imul(y,ue)|0,i=i+Math.imul(y,be)|0;var Ae=(d+(n=n+Math.imul(l,le)|0)|0)+((8191&(a=(a=a+Math.imul(l,pe)|0)+Math.imul(p,le)|0))<<13)|0;d=((i=i+Math.imul(p,pe)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,V),a=(a=Math.imul(U,Z))+Math.imul(z,V)|0,i=Math.imul(z,Z),n=n+Math.imul(I,X)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(L,X)|0,i=i+Math.imul(L,Y)|0,n=n+Math.imul(B,Q)|0,a=(a=a+Math.imul(B,ee)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,ee)|0,n=n+Math.imul(O,re)|0,a=(a=a+Math.imul(O,ne)|0)+Math.imul(P,re)|0,i=i+Math.imul(P,ne)|0,n=n+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,n=n+Math.imul(M,fe)|0,a=(a=a+Math.imul(M,de)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,de)|0,n=n+Math.imul(g,ue)|0,a=(a=a+Math.imul(g,be)|0)+Math.imul(w,ue)|0,i=i+Math.imul(w,be)|0;var Ee=(d+(n=n+Math.imul(x,le)|0)|0)+((8191&(a=(a=a+Math.imul(x,pe)|0)+Math.imul(y,le)|0))<<13)|0;d=((i=i+Math.imul(y,pe)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,X),a=(a=Math.imul(U,Y))+Math.imul(z,X)|0,i=Math.imul(z,Y),n=n+Math.imul(I,Q)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(L,Q)|0,i=i+Math.imul(L,ee)|0,n=n+Math.imul(B,re)|0,a=(a=a+Math.imul(B,ne)|0)+Math.imul(R,re)|0,i=i+Math.imul(R,ne)|0,n=n+Math.imul(O,ie)|0,a=(a=a+Math.imul(O,oe)|0)+Math.imul(P,ie)|0,i=i+Math.imul(P,oe)|0,n=n+Math.imul(A,fe)|0,a=(a=a+Math.imul(A,de)|0)+Math.imul(E,fe)|0,i=i+Math.imul(E,de)|0,n=n+Math.imul(M,ue)|0,a=(a=a+Math.imul(M,be)|0)+Math.imul(k,ue)|0,i=i+Math.imul(k,be)|0;var Te=(d+(n=n+Math.imul(g,le)|0)|0)+((8191&(a=(a=a+Math.imul(g,pe)|0)+Math.imul(w,le)|0))<<13)|0;d=((i=i+Math.imul(w,pe)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,Q),a=(a=Math.imul(U,ee))+Math.imul(z,Q)|0,i=Math.imul(z,ee),n=n+Math.imul(I,re)|0,a=(a=a+Math.imul(I,ne)|0)+Math.imul(L,re)|0,i=i+Math.imul(L,ne)|0,n=n+Math.imul(B,ie)|0,a=(a=a+Math.imul(B,oe)|0)+Math.imul(R,ie)|0,i=i+Math.imul(R,oe)|0,n=n+Math.imul(O,fe)|0,a=(a=a+Math.imul(O,de)|0)+Math.imul(P,fe)|0,i=i+Math.imul(P,de)|0,n=n+Math.imul(A,ue)|0,a=(a=a+Math.imul(A,be)|0)+Math.imul(E,ue)|0,i=i+Math.imul(E,be)|0;var Oe=(d+(n=n+Math.imul(M,le)|0)|0)+((8191&(a=(a=a+Math.imul(M,pe)|0)+Math.imul(k,le)|0))<<13)|0;d=((i=i+Math.imul(k,pe)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,re),a=(a=Math.imul(U,ne))+Math.imul(z,re)|0,i=Math.imul(z,ne),n=n+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(L,ie)|0,i=i+Math.imul(L,oe)|0,n=n+Math.imul(B,fe)|0,a=(a=a+Math.imul(B,de)|0)+Math.imul(R,fe)|0,i=i+Math.imul(R,de)|0,n=n+Math.imul(O,ue)|0,a=(a=a+Math.imul(O,be)|0)+Math.imul(P,ue)|0,i=i+Math.imul(P,be)|0;var Pe=(d+(n=n+Math.imul(A,le)|0)|0)+((8191&(a=(a=a+Math.imul(A,pe)|0)+Math.imul(E,le)|0))<<13)|0;d=((i=i+Math.imul(E,pe)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(z,ie)|0,i=Math.imul(z,oe),n=n+Math.imul(I,fe)|0,a=(a=a+Math.imul(I,de)|0)+Math.imul(L,fe)|0,i=i+Math.imul(L,de)|0,n=n+Math.imul(B,ue)|0,a=(a=a+Math.imul(B,be)|0)+Math.imul(R,ue)|0,i=i+Math.imul(R,be)|0;var je=(d+(n=n+Math.imul(O,le)|0)|0)+((8191&(a=(a=a+Math.imul(O,pe)|0)+Math.imul(P,le)|0))<<13)|0;d=((i=i+Math.imul(P,pe)|0)+(a>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(U,fe),a=(a=Math.imul(U,de))+Math.imul(z,fe)|0,i=Math.imul(z,de),n=n+Math.imul(I,ue)|0,a=(a=a+Math.imul(I,be)|0)+Math.imul(L,ue)|0,i=i+Math.imul(L,be)|0;var Be=(d+(n=n+Math.imul(B,le)|0)|0)+((8191&(a=(a=a+Math.imul(B,pe)|0)+Math.imul(R,le)|0))<<13)|0;d=((i=i+Math.imul(R,pe)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,ue),a=(a=Math.imul(U,be))+Math.imul(z,ue)|0,i=Math.imul(z,be);var Re=(d+(n=n+Math.imul(I,le)|0)|0)+((8191&(a=(a=a+Math.imul(I,pe)|0)+Math.imul(L,le)|0))<<13)|0;d=((i=i+Math.imul(L,pe)|0)+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Ce=(d+(n=Math.imul(U,le))|0)+((8191&(a=(a=Math.imul(U,pe))+Math.imul(z,le)|0))<<13)|0;return d=((i=Math.imul(z,pe))+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=xe,f[2]=ye,f[3]=ve,f[4]=ge,f[5]=we,f[6]=_e,f[7]=Me,f[8]=ke,f[9]=Se,f[10]=Ae,f[11]=Ee,f[12]=Te,f[13]=Oe,f[14]=Pe,f[15]=je,f[16]=Be,f[17]=Re,f[18]=Ce,0!==d&&(f[19]=d,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}r.words[i]=c,n=o,o=a}return 0!==n?r.words[i]=n:r.length--,r._strip()}function v(e,t,r){return y(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(x=m),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?x(this,e,t):r<63?m(this,e,t):r<1024?y(this,e,t):v(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},g.prototype.permute=function(e,t,r,n,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,r[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,r+=i/67108864|0,r+=o>>>26,this.words[n]=67108863&o}return 0!==r&&(this.words[n]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>a&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,n=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),c=67108863^67108863>>>i<o)for(this.length-=o,d=0;d=0&&(0!==s||d>=n);d--){var u=0|this.words[d];this.words[d]=s<<26-i|u>>>i,s=u&c}return f&&0!==s&&(f.words[f.length++]=s),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return a(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(a("number"==typeof e),a(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(f/67108864|0),this.words[n+r]=67108863&i}for(;n>26,this.words[n+r]=67108863&i;if(0===c)return this._strip();for(a(-1===c),c=0,n=0;n>26,this.words[n]=67108863&i;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),a=e,i=0|a.words[a.length-1];0!==(r=26-this._countBits(i))&&(a=a.ushln(r),n.iushln(r),i=0|a.words[a.length-1]);var c,f=n.length-a.length;if("mod"!==t){(c=new o(null)).length=f+1,c.words=new Array(c.length);for(var d=0;d=0;u--){var b=67108864*(0|n.words[a.length+u])+(0|n.words[a.length+u-1]);for(b=Math.min(b/i|0,67108863),n._ishlnsubmul(a,b,u);0!==n.negative;)b--,n.negative=0,n._ishlnsubmul(a,1,u),n.isZero()||(n.negative^=1);c&&(c.words[u]=b)}return c&&c._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:c||null,mod:n}},o.prototype.divmod=function(e,t,r){return a(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(c=this.neg().divmod(e,t),"mod"!==t&&(n=c.div.neg()),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(c=this.divmod(e.neg(),t),"mod"!==t&&(n=c.div.neg()),{div:n,mod:c.mod}):0!=(this.negative&e.negative)?(c=this.neg().divmod(e.neg(),t),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.isub(e)),{div:c.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,i,c},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),i=r.cmp(n);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),a(e<=67108863);for(var r=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(r*n+(0|this.words[i]))%e;return t?-n:n},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),a(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*r;this.words[n]=i/e|0,r=i%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),i=new o(0),c=new o(0),f=new o(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var s=r.clone(),u=t.clone();!t.isZero();){for(var b=0,h=1;0==(t.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(s),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var l=0,p=1;0==(r.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(r.iushrn(l);l-- >0;)(c.isOdd()||f.isOdd())&&(c.iadd(s),f.isub(u)),c.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(c),i.isub(f)):(r.isub(t),c.isub(n),f.isub(i))}return{a:c,b:f,gcd:r.iushln(d)}},o.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new o(1),c=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var d=0,s=1;0==(t.words[0]&s)&&d<26;++d,s<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(f),i.iushrn(1);for(var u=0,b=1;0==(r.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(r.iushrn(u);u-- >0;)c.isOdd()&&c.iadd(f),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(c)):(r.isub(t),c.isub(i))}return(n=0===t.cmpn(1)?i:c).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var a=t.cmp(r);if(a<0){var i=t;t=r,r=i}else if(0===a||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,c&=67108863,this.words[o]=c}return 0!==i&&(this.words[o]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var n=0|this.words[r],a=0|e.words[r];if(n!==a){na&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new E(e)},o.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}_.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},i(M,_),M.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,a=i}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},M.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new M;else if("p224"===e)t=new k;else if("p192"===e)t=new S;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return w[e]=t,t},E.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);a(!n.isZero());var c=new o(1).toRed(this),f=c.redNeg(),d=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new o(2*s*s).toRed(this);0!==this.pow(s,d).cmp(f);)s.redIAdd(f);for(var u=this.pow(s,n),b=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),l=i;0!==h.cmp(c);){for(var p=h,m=0;0!==p.cmp(c);m++)p=p.redSqr();a(m=0;n--){for(var d=t.words[n],s=f-1;s>=0;s--){var u=d>>s&1;a!==r[0]&&(a=this.sqr(a)),0!==u||0!==i?(i<<=1,i|=u,(4===++c||0===n&&0===s)&&(a=this.mul(a,r[i]),c=0,i=0)):c=0}f=26}return a},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new T(e)},i(T,E),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(15)(e))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;var n=r(68);t.assertIsHexString=function(e){if(!(0,n.isHexString)(e)){var t="This method only supports 0x-prefixed hex strings but input was: ".concat(e);throw new Error(t)}};t.assertIsBuffer=function(t){if(!e.isBuffer(t)){var r="This method only supports Buffer but input was: ".concat(t);throw new Error(r)}};t.assertIsArray=function(e){if(!Array.isArray(e)){var t="This method only supports number arrays but input was: ".concat(e);throw new Error(t)}};t.assertIsString=function(e){if("string"!=typeof e){var t="This method only supports strings but input was: ".concat(e);throw new Error(t)}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var n=r(145),a=function(e){var t,r,a=new Promise((function(){t=arguments[0],r=arguments[1]}));if(e)return{resolve:t,reject:r,eventEmitter:a};var i=new n;return a._events=i._events,a.emit=i.emit,a.on=i.on,a.once=i.once,a.off=i.off,a.listeners=i.listeners,a.addListener=i.addListener,a.removeListener=i.removeListener,a.removeAllListeners=i.removeAllListeners,{resolve:t,reject:r,eventEmitter:a}};a.resolve=function(e){var t=a(!0);return t.resolve(e),t.eventEmitter},e.exports=a},function(e,t,r){"use strict";var n=r(500),a=function(e){this.name=e.name,this.type=e.type,this.subscriptions=e.subscriptions||{},this.requestManager=null};a.prototype.setRequestManager=function(e){this.requestManager=e},a.prototype.attachToObject=function(e){var t=this.buildCall(),r=this.name.split(".");r.length>1?(e[r[0]]=e[r[0]]||{},e[r[0]][r[1]]=t):e[r[0]]=t},a.prototype.buildCall=function(){var e=this;return function(){e.subscriptions[arguments[0]]||console.warn("Subscription "+JSON.stringify(arguments[0])+" doesn't exist. Subscribing anyway.");var t=new n({subscription:e.subscriptions[arguments[0]]||{},requestManager:e.requestManager,type:e.type});return t.subscribe.apply(t,arguments)}},e.exports={subscriptions:a,subscription:n}},function(e,t,r){"use strict";var n=r(51),a=r(53),i=r(24),o=function(){var e=this;n.packageInit(this,arguments),[new a({name:"getId",call:"net_version",params:0,outputFormatter:parseInt}),new a({name:"isListening",call:"net_listening",params:0}),new a({name:"getPeerCount",call:"net_peerCount",params:0,outputFormatter:i.hexToNumber})].forEach((function(t){t.attachToObject(e),t.setRequestManager(e._requestManager)}))};n.addProviders(o),e.exports=o},function(e){e.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(e,t,r){var n=r(6).Buffer;function a(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=new Array(t),a=0;a>>24]^s[l>>>16&255]^u[p>>>8&255]^b[255&m]^t[x++],o=d[l>>>24]^s[p>>>16&255]^u[m>>>8&255]^b[255&h]^t[x++],c=d[p>>>24]^s[m>>>16&255]^u[h>>>8&255]^b[255&l]^t[x++],f=d[m>>>24]^s[h>>>16&255]^u[l>>>8&255]^b[255&p]^t[x++],h=i,l=o,p=c,m=f;return i=(n[h>>>24]<<24|n[l>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[x++],o=(n[l>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&h])^t[x++],c=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[h>>>8&255]<<8|n[255&l])^t[x++],f=(n[m>>>24]<<24|n[h>>>16&255]<<16|n[l>>>8&255]<<8|n[255&p])^t[x++],[i>>>=0,o>>>=0,c>>>=0,f>>>=0]}var c=[0,1,2,4,8,16,32,64,128,27,54],f=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],a=[[],[],[],[]],i=[[],[],[],[]],o=0,c=0,f=0;f<256;++f){var d=c^c<<1^c<<2^c<<3^c<<4;d=d>>>8^255&d^99,r[o]=d,n[d]=o;var s=e[o],u=e[s],b=e[u],h=257*e[d]^16843008*d;a[0][o]=h<<24|h>>>8,a[1][o]=h<<16|h>>>16,a[2][o]=h<<8|h>>>24,a[3][o]=h,h=16843009*b^65537*u^257*s^16843008*o,i[0][d]=h<<24|h>>>8,i[1][d]=h<<16|h>>>16,i[2][d]=h<<8|h>>>24,i[3][d]=h,0===o?o=c=1:(o=s^e[e[e[b^s]]],c^=e[e[c]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:a,INV_SUB_MIX:i}}();function d(e){this._key=a(e),this._reset()}d.blockSize=16,d.keySize=32,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),a=[],i=0;i>>24,o=f.SBOX[o>>>24]<<24|f.SBOX[o>>>16&255]<<16|f.SBOX[o>>>8&255]<<8|f.SBOX[255&o],o^=c[i/t|0]<<24):t>6&&i%t==4&&(o=f.SBOX[o>>>24]<<24|f.SBOX[o>>>16&255]<<16|f.SBOX[o>>>8&255]<<8|f.SBOX[255&o]),a[i]=a[i-t]^o}for(var d=[],s=0;s>>24]]^f.INV_SUB_MIX[1][f.SBOX[b>>>16&255]]^f.INV_SUB_MIX[2][f.SBOX[b>>>8&255]]^f.INV_SUB_MIX[3][f.SBOX[255&b]]}this._nRounds=r,this._keySchedule=a,this._invKeySchedule=d},d.prototype.encryptBlockRaw=function(e){return o(e=a(e),this._keySchedule,f.SUB_MIX,f.SBOX,this._nRounds)},d.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},d.prototype.decryptBlock=function(e){var t=(e=a(e))[1];e[1]=e[3],e[3]=t;var r=o(e,this._invKeySchedule,f.INV_SUB_MIX,f.INV_SBOX,this._nRounds),i=n.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i},d.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},e.exports.AES=d},function(e,t,r){var n=r(6).Buffer,a=r(134);e.exports=function(e,t,r,i){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=r/8,c=n.alloc(o),f=n.alloc(i||0),d=n.alloc(0);o>0||i>0;){var s=new a;s.update(d),s.update(e),t&&s.update(t),d=s.digest();var u=0;if(o>0){var b=c.length-o;u=Math.min(o,d.length),d.copy(c,b,0,u),o-=u}if(u0){var h=f.length-i,l=Math.min(i,d.length-u);d.copy(f,h,u,u+l),i-=l}}return d.fill(0),{key:c,iv:f}}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=r(582),i=r(589),o=r(590),c=r(153),f=r(151),d=r(6).Buffer;function s(e){var t;"object"!==n(e)||d.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=d.from(e));var r,s,u=o(e,t),b=u.tag,h=u.data;switch(b){case"CERTIFICATE":s=a.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(s||(s=a.PublicKey.decode(h,"der")),r=s.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return a.RSAPublicKey.decode(s.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return s.subjectPrivateKey=s.subjectPublicKey,{type:"ec",data:s};case"1.2.840.10040.4.1":return s.algorithm.params.pub_key=a.DSAparam.decode(s.subjectPublicKey.data,"der"),{type:"dsa",data:s.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":h=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=i[e.algorithm.decrypt.cipher.algo.join(".")],o=e.algorithm.decrypt.cipher.iv,s=e.subjectPrivateKey,u=parseInt(a.split("-")[1],10)/8,b=f.pbkdf2Sync(t,r,n,u,"sha1"),h=c.createDecipheriv(a,b,o),l=[];return l.push(h.update(s)),l.push(h.final()),d.concat(l)}(h=a.EncryptedPrivateKey.decode(h,"der"),t);case"PRIVATE KEY":switch(r=(s=a.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return a.RSAPrivateKey.decode(s.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:s.algorithm.curve,privateKey:a.ECPrivateKey.decode(s.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return s.algorithm.params.priv_key=a.DSAparam.decode(s.subjectPrivateKey,"der"),{type:"dsa",params:s.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return a.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return a.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:a.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=a.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+b)}}e.exports=s,s.signature=a.signature},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;var n=r(71);t.assertIsHexString=function(e){if(!(0,n.isHexString)(e)){var t="This method only supports 0x-prefixed hex strings but input was: ".concat(e);throw new Error(t)}};t.assertIsBuffer=function(t){if(!e.isBuffer(t)){var r="This method only supports Buffer but input was: ".concat(t);throw new Error(r)}};t.assertIsArray=function(e){if(!Array.isArray(e)){var t="This method only supports number arrays but input was: ".concat(e);throw new Error(t)}};t.assertIsString=function(e){if("string"!=typeof e){var t="This method only supports strings but input was: ".concat(e);throw new Error(t)}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;var n=r(73);t.assertIsHexString=function(e){if(!(0,n.isHexString)(e)){var t="This method only supports 0x-prefixed hex strings but input was: ".concat(e);throw new Error(t)}};t.assertIsBuffer=function(t){if(!e.isBuffer(t)){var r="This method only supports Buffer but input was: ".concat(t);throw new Error(r)}};t.assertIsArray=function(e){if(!Array.isArray(e)){var t="This method only supports number arrays but input was: ".concat(e);throw new Error(t)}};t.assertIsString=function(e){if("string"!=typeof e){var t="This method only supports strings but input was: ".concat(e);throw new Error(t)}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;var n=r(74);t.assertIsHexString=function(e){if(!(0,n.isHexString)(e)){var t="This method only supports 0x-prefixed hex strings but input was: ".concat(e);throw new Error(t)}};t.assertIsBuffer=function(t){if(!e.isBuffer(t)){var r="This method only supports Buffer but input was: ".concat(t);throw new Error(r)}};t.assertIsArray=function(e){if(!Array.isArray(e)){var t="This method only supports number arrays but input was: ".concat(e);throw new Error(t)}};t.assertIsString=function(e){if("string"!=typeof e){var t="This method only supports strings but input was: ".concat(e);throw new Error(t)}}}).call(this,r(0).Buffer)},function(e,t,r){var n=r(737),a=r(310);e.exports=function(e){return null!=e&&a(e.length)&&!n(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t|=0;for(var r=Math.max(e.length-t,0),n=Array(r),a=0;a>>1|Y<<31)^(X>>>8|Y<<24)^X>>>7,Q=(Y>>>1|X<<31)^(Y>>>8|X<<24)^(Y>>>7|X<<25),ee=d[G-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ae=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),ie=d[G-7],oe=ie.high,ce=ie.low,fe=d[G-16],de=fe.high,se=fe.low;V=(V=(V=$+oe+((W=Q+ce)>>>0>>0?1:0))+ne+((W+=ae)>>>0>>0?1:0))+de+((W+=se)>>>0>>0?1:0),Z.high=V,Z.low=W}var ue,be=N&z^~N&q,he=U&F^~U&H,le=O&j^O&R^j&R,pe=P&B^P&C^B&C,me=(O>>>28|P<<4)^(O<<30|P>>>2)^(O<<25|P>>>7),xe=(P>>>28|O<<4)^(P<<30|O>>>2)^(P<<25|O>>>7),ye=(N>>>14|U<<18)^(N>>>18|U<<14)^(N<<23|U>>>9),ve=(U>>>14|N<<18)^(U>>>18|N<<14)^(U<<23|N>>>9),ge=f[G],we=ge.high,_e=ge.low,Me=D+ye+((ue=K+ve)>>>0>>0?1:0),ke=xe+pe;D=q,K=H,q=z,H=F,z=N,F=U,N=I+(Me=(Me=(Me=Me+be+((ue+=he)>>>0>>0?1:0))+we+((ue+=_e)>>>0<_e>>>0?1:0))+V+((ue+=W)>>>0>>0?1:0))+((U=L+ue|0)>>>0>>0?1:0)|0,I=R,L=C,R=j,C=B,j=O,B=P,O=Me+(me+le+(ke>>>0>>0?1:0))+((P=ue+ke|0)>>>0>>0?1:0)|0}l=n.low=l+P,n.high=h+O+(l>>>0

>>0?1:0),m=a.low=m+B,a.high=p+j+(m>>>0>>0?1:0),y=i.low=y+C,i.high=x+R+(y>>>0>>0?1:0),g=o.low=g+L,o.high=v+I+(g>>>0>>0?1:0),_=c.low=_+U,c.high=w+N+(_>>>0>>0?1:0),k=s.low=k+F,s.high=M+z+(k>>>0>>0?1:0),A=u.low=A+H,u.high=S+q+(A>>>0>>0?1:0),T=b.low=T+K,b.high=E+D+(T>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=r._createHelper(s),t.HmacSHA512=r._createHmacHelper(s)}(),e.SHA512},"object"===c(t)?e.exports=t=o(r(2),r(48)):(a=[r(2),r(48)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1=t.rlp=t.BN=void 0;var i=r(125);t.secp256k1=i;var o=r(18),c=r(9);t.BN=c;var f=r(21);t.rlp=f,Object.assign(t,o),a(r(402),t),a(r(403),t),a(r(131),t),a(r(442),t),a(r(81),t),a(r(443),t)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.ecdhUnsafe=t.ecdh=t.recover=t.verify=t.sign=t.signatureImportLax=t.signatureImport=t.signatureExport=t.signatureNormalize=t.publicKeyCombine=t.publicKeyTweakMul=t.publicKeyTweakAdd=t.publicKeyVerify=t.publicKeyConvert=t.publicKeyCreate=t.privateKeyTweakMul=t.privateKeyTweakAdd=t.privateKeyModInverse=t.privateKeyNegate=t.privateKeyImport=t.privateKeyExport=t.privateKeyVerify=void 0;var n=r(22),a=r(398),i=r(399);t.privateKeyVerify=function(e){return 32===e.length&&n.privateKeyVerify(Uint8Array.from(e))},t.privateKeyExport=function(e,t){if(32!==e.length)throw new RangeError("private key length is invalid");var r=a.privateKeyExport(e,t);return i.privateKeyExport(e,r,t)},t.privateKeyImport=function(e){if(null!==(e=i.privateKeyImport(e))&&32===e.length&&t.privateKeyVerify(e))return e;throw new Error("couldn't import from DER format")},t.privateKeyNegate=function(t){return e.from(n.privateKeyNegate(Uint8Array.from(t)))},t.privateKeyModInverse=function(t){if(32!==t.length)throw new Error("private key length is invalid");return e.from(a.privateKeyModInverse(Uint8Array.from(t)))},t.privateKeyTweakAdd=function(t,r){return e.from(n.privateKeyTweakAdd(Uint8Array.from(t),r))},t.privateKeyTweakMul=function(t,r){return e.from(n.privateKeyTweakMul(Uint8Array.from(t),Uint8Array.from(r)))},t.publicKeyCreate=function(t,r){return e.from(n.publicKeyCreate(Uint8Array.from(t),r))},t.publicKeyConvert=function(t,r){return e.from(n.publicKeyConvert(Uint8Array.from(t),r))},t.publicKeyVerify=function(e){return(33===e.length||65===e.length)&&n.publicKeyVerify(Uint8Array.from(e))},t.publicKeyTweakAdd=function(t,r,a){return e.from(n.publicKeyTweakAdd(Uint8Array.from(t),Uint8Array.from(r),a))},t.publicKeyTweakMul=function(t,r,a){return e.from(n.publicKeyTweakMul(Uint8Array.from(t),Uint8Array.from(r),a))},t.publicKeyCombine=function(t,r){var a=[];return t.forEach((function(e){a.push(Uint8Array.from(e))})),e.from(n.publicKeyCombine(a,r))},t.signatureNormalize=function(t){return e.from(n.signatureNormalize(Uint8Array.from(t)))},t.signatureExport=function(t){return e.from(n.signatureExport(Uint8Array.from(t)))},t.signatureImport=function(t){return e.from(n.signatureImport(Uint8Array.from(t)))},t.signatureImportLax=function(e){if(0===e.length)throw new RangeError("signature length is invalid");var t=i.signatureImportLax(e);if(null===t)throw new Error("couldn't parse DER signature");return a.signatureImport(t)},t.sign=function(t,r,a){if(null===a)throw new TypeError("options should be an Object");var i=void 0;if(a){if(i={},null===a.data)throw new TypeError("options.data should be a Buffer");if(a.data){if(32!=a.data.length)throw new RangeError("options.data length is invalid");i.data=new Uint8Array(a.data)}if(null===a.noncefn)throw new TypeError("options.noncefn should be a Function");a.noncefn&&(i.noncefn=function(t,r,n,i,o){var c=null!=n?e.from(n):null,f=null!=i?e.from(i):null,d=e.from("");return a.noncefn&&(d=a.noncefn(e.from(t),e.from(r),c,f,o)),new Uint8Array(d)})}var o=n.ecdsaSign(Uint8Array.from(t),Uint8Array.from(r),i);return{signature:e.from(o.signature),recovery:o.recid}},t.verify=function(e,t,r){return n.ecdsaVerify(Uint8Array.from(t),Uint8Array.from(e),r)},t.recover=function(t,r,a,i){return e.from(n.ecdsaRecover(Uint8Array.from(r),a,Uint8Array.from(t),i))},t.ecdh=function(t,r){return e.from(n.ecdh(Uint8Array.from(t),Uint8Array.from(r),{}))},t.ecdhUnsafe=function(t,r,n){if(33!==t.length&&65!==t.length)throw new RangeError("public key length is invalid");if(32!==r.length)throw new RangeError("private key length is invalid");return e.from(a.ecdhUnsafe(Uint8Array.from(t),Uint8Array.from(r),n))}}).call(this,r(0).Buffer)},function(e,t,r){e.exports=r(376)(r(377))},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a;function i(e){this.rand=e}if(e.exports=function(e){return a||(a=new i(null)),a.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r>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 U(e,t,r){N.call(this,e,t,r)}N.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,r=o(e);if("string"!==r){if("object"!==r)throw new Error(c);if(null===e)throw new Error(c);if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw new Error(c);t=!0}for(var n,a,i=this.blocks,f=this.byteCount,d=e.length,s=this.blockCount,u=0,b=this.s;u>2]|=e[u]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|63&a)<=57344?(i[n>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|63&a)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|63&a)<=f){for(this.start=n-f,this.block=i[s],n=0;n>=8);r>0;)a.unshift(r),r=255&(e>>=8),++n;return t?a.push(n):a.unshift(n),this.update(a),a.length},N.prototype.encodeString=function(e){var t,r=o(e);if("string"!==r){if("object"!==r)throw new Error(c);if(null===e)throw new Error(c);if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw new Error(c);t=!0}var n=0,a=e.length;if(t)n=a;else for(var i=0;i=57344?n+=3:(f=65536+((1023&f)<<10|1023&e.charCodeAt(++i)),n+=4)}return n+=this.encode(8*n),this.update(e),n},N.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t>4&15]+l[15&e]+l[e>>12&15]+l[e>>8&15]+l[e>>20&15]+l[e>>16&15]+l[e>>28&15]+l[e>>24&15];o%t==0&&(z(r),i=0)}return a&&(e=r[i],c+=l[e>>4&15]+l[15&e],a>1&&(c+=l[e>>12&15]+l[e>>8&15]),a>2&&(c+=l[e>>20&15]+l[e>>16&15])),c},N.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,a=this.extraBytes,i=0,o=0,c=this.outputBits>>3;e=a?new ArrayBuffer(n+1<<2):new ArrayBuffer(c);for(var f=new Uint32Array(e);o>8&255,f[e+2]=t>>16&255,f[e+3]=t>>24&255;c%r==0&&z(n)}return i&&(e=c<<2,t=n[o],f[e]=255&t,i>1&&(f[e+1]=t>>8&255),i>2&&(f[e+2]=t>>16&255)),f},U.prototype=new N,U.prototype.finalize=function(){return this.encode(this.outputBits,!0),N.prototype.finalize.call(this)};var z=function(e){var t,r,n,a,i,o,c,f,d,s,u,b,h,l,p,m,y,v,g,w,_,M,k,S,A,E,T,O,P,j,B,R,C,I,L,N,U,z,F,q,H,D,K,G,W,V,Z,J,X,Y,$,Q,ee,te,re,ne,ae,ie,oe,ce,fe,de,se;for(n=0;n<48;n+=2)a=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],c=e[3]^e[13]^e[23]^e[33]^e[43],f=e[4]^e[14]^e[24]^e[34]^e[44],d=e[5]^e[15]^e[25]^e[35]^e[45],s=e[6]^e[16]^e[26]^e[36]^e[46],u=e[7]^e[17]^e[27]^e[37]^e[47],t=(b=e[8]^e[18]^e[28]^e[38]^e[48])^(o<<1|c>>>31),r=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(c<<1|o>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=a^(f<<1|d>>>31),r=i^(d<<1|f>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=o^(s<<1|u>>>31),r=c^(u<<1|s>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=f^(b<<1|h>>>31),r=d^(h<<1|b>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=s^(a<<1|i>>>31),r=u^(i<<1|a>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,l=e[0],p=e[1],V=e[11]<<4|e[10]>>>28,Z=e[10]<<4|e[11]>>>28,O=e[20]<<3|e[21]>>>29,P=e[21]<<3|e[20]>>>29,ce=e[31]<<9|e[30]>>>23,fe=e[30]<<9|e[31]>>>23,D=e[40]<<18|e[41]>>>14,K=e[41]<<18|e[40]>>>14,I=e[2]<<1|e[3]>>>31,L=e[3]<<1|e[2]>>>31,m=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,J=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,j=e[33]<<13|e[32]>>>19,B=e[32]<<13|e[33]>>>19,de=e[42]<<2|e[43]>>>30,se=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,N=e[14]<<6|e[15]>>>26,U=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,g=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,$=e[35]<<15|e[34]>>>17,R=e[45]<<29|e[44]>>>3,C=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,A=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ae=e[16]<<23|e[17]>>>9,z=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,_=e[37]<<21|e[36]>>>11,Q=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,G=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,E=e[18]<<20|e[19]>>>12,T=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,oe=e[28]<<7|e[29]>>>25,q=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,M=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=l^~m&v,e[1]=p^~y&g,e[10]=S^~E&O,e[11]=A^~T&P,e[20]=I^~N&z,e[21]=L^~U&F,e[30]=G^~V&J,e[31]=W^~Z&X,e[40]=te^~ne&ie,e[41]=re^~ae&oe,e[2]=m^~v&w,e[3]=y^~g&_,e[12]=E^~O&j,e[13]=T^~P&B,e[22]=N^~z&q,e[23]=U^~F&H,e[32]=V^~J&Y,e[33]=Z^~X&$,e[42]=ne^~ie&ce,e[43]=ae^~oe&fe,e[4]=v^~w&M,e[5]=g^~_&k,e[14]=O^~j&R,e[15]=P^~B&C,e[24]=z^~q&D,e[25]=F^~H&K,e[34]=J^~Y&Q,e[35]=X^~$&ee,e[44]=ie^~ce&de,e[45]=oe^~fe&se,e[6]=w^~M&l,e[7]=_^~k&p,e[16]=j^~R&S,e[17]=B^~C&A,e[26]=q^~D&I,e[27]=H^~K&L,e[36]=Y^~Q&G,e[37]=$^~ee&W,e[46]=ce^~de&te,e[47]=fe^~se&re,e[8]=M^~l&m,e[9]=k^~p&y,e[18]=R^~S&E,e[19]=C^~A&T,e[28]=D^~I&N,e[29]=K^~L&U,e[38]=Q^~G&V,e[39]=ee^~W&Z,e[48]=de^~te&ne,e[49]=se^~re&ae,e[0]^=x[n],e[1]^=x[n+1]};if(u)a.exports=O;else{for(j=0;j=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function d(e,t,r,n){for(var a=0,i=Math.min(e.length,r),o=t;o=49?c-49+10:c>=17?c-17+10:c}return a}o.isBN=function(e){return e instanceof o||null!==e&&"object"===t(e)&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n);if("object"===t(e))return this._initArray(e,r,n);"hex"===r&&(r=16),a(r===(0|r)&&r>=2&&r<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===r?this._parseHex(e,i):this._parseBase(e,r,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),r,n)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(a(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(a("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[i]|=o<>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);else if("le"===r)for(n=0,i=0;n>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)a=f(e,r,r+6),this.words[n]|=a<>>26-i&4194303,(i+=24)>=26&&(i-=26,n++);r+6!==t&&(a=f(e,t,r+6),this.words[n]|=a<>>26-i&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,a=1;a<=67108863;a*=t)n++;n--,a=a/t|0;for(var i=e.length-r,o=i%n,c=Math.min(i,i-o)+r,f=0,s=r;s1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var s=["","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"],u=[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],b=[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 h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,c=67108863&o,f=o/67108864|0;r.words[0]=c;for(var d=1;d>>26,u=67108863&f,b=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=b;h++){var l=d-h|0;s+=(o=(a=0|e.words[l])*(i=0|t.words[h])+u)/67108864|0,u=67108863&o}r.words[d]=0|u,f=0|s}return 0!==f?r.words[d]=0|f:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,i=0,o=0;o>>24-n&16777215)||o!==this.length-1?s[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,o--)}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],h=b[e];r="";var l=this.clone();for(l.negative=0;!l.isZero();){var p=l.modn(h).toString(e);r=(l=l.idivn(h)).isZero()?p+r:s[d-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}a(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return a(void 0!==c),this.toArrayLike(c,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),i=r||Math.max(1,n);a(n<=i,"byte array longer than desired length"),a(i>0,"Requested array length <= 0"),this.strip();var o,c,f="le"===t,d=new e(i),s=this.clone();if(f){for(c=0;!s.isZero();c++)o=s.andln(255),s.iushrn(8),d[c]=o;for(;c=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=r.length,0!==a)this.words[this.length]=a,this.length++;else if(r!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,h=0|o[1],l=8191&h,p=h>>>13,m=0|o[2],x=8191&m,y=m>>>13,v=0|o[3],g=8191&v,w=v>>>13,_=0|o[4],M=8191&_,k=_>>>13,S=0|o[5],A=8191&S,E=S>>>13,T=0|o[6],O=8191&T,P=T>>>13,j=0|o[7],B=8191&j,R=j>>>13,C=0|o[8],I=8191&C,L=C>>>13,N=0|o[9],U=8191&N,z=N>>>13,F=0|c[0],q=8191&F,H=F>>>13,D=0|c[1],K=8191&D,G=D>>>13,W=0|c[2],V=8191&W,Z=W>>>13,J=0|c[3],X=8191&J,Y=J>>>13,$=0|c[4],Q=8191&$,ee=$>>>13,te=0|c[5],re=8191&te,ne=te>>>13,ae=0|c[6],ie=8191&ae,oe=ae>>>13,ce=0|c[7],fe=8191&ce,de=ce>>>13,se=0|c[8],ue=8191&se,be=se>>>13,he=0|c[9],le=8191&he,pe=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(d+(n=Math.imul(u,q))|0)+((8191&(a=(a=Math.imul(u,H))+Math.imul(b,q)|0))<<13)|0;d=((i=Math.imul(b,H))+(a>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(l,q),a=(a=Math.imul(l,H))+Math.imul(p,q)|0,i=Math.imul(p,H);var xe=(d+(n=n+Math.imul(u,K)|0)|0)+((8191&(a=(a=a+Math.imul(u,G)|0)+Math.imul(b,K)|0))<<13)|0;d=((i=i+Math.imul(b,G)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(x,q),a=(a=Math.imul(x,H))+Math.imul(y,q)|0,i=Math.imul(y,H),n=n+Math.imul(l,K)|0,a=(a=a+Math.imul(l,G)|0)+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0;var ye=(d+(n=n+Math.imul(u,V)|0)|0)+((8191&(a=(a=a+Math.imul(u,Z)|0)+Math.imul(b,V)|0))<<13)|0;d=((i=i+Math.imul(b,Z)|0)+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(g,q),a=(a=Math.imul(g,H))+Math.imul(w,q)|0,i=Math.imul(w,H),n=n+Math.imul(x,K)|0,a=(a=a+Math.imul(x,G)|0)+Math.imul(y,K)|0,i=i+Math.imul(y,G)|0,n=n+Math.imul(l,V)|0,a=(a=a+Math.imul(l,Z)|0)+Math.imul(p,V)|0,i=i+Math.imul(p,Z)|0;var ve=(d+(n=n+Math.imul(u,X)|0)|0)+((8191&(a=(a=a+Math.imul(u,Y)|0)+Math.imul(b,X)|0))<<13)|0;d=((i=i+Math.imul(b,Y)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(M,q),a=(a=Math.imul(M,H))+Math.imul(k,q)|0,i=Math.imul(k,H),n=n+Math.imul(g,K)|0,a=(a=a+Math.imul(g,G)|0)+Math.imul(w,K)|0,i=i+Math.imul(w,G)|0,n=n+Math.imul(x,V)|0,a=(a=a+Math.imul(x,Z)|0)+Math.imul(y,V)|0,i=i+Math.imul(y,Z)|0,n=n+Math.imul(l,X)|0,a=(a=a+Math.imul(l,Y)|0)+Math.imul(p,X)|0,i=i+Math.imul(p,Y)|0;var ge=(d+(n=n+Math.imul(u,Q)|0)|0)+((8191&(a=(a=a+Math.imul(u,ee)|0)+Math.imul(b,Q)|0))<<13)|0;d=((i=i+Math.imul(b,ee)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(A,q),a=(a=Math.imul(A,H))+Math.imul(E,q)|0,i=Math.imul(E,H),n=n+Math.imul(M,K)|0,a=(a=a+Math.imul(M,G)|0)+Math.imul(k,K)|0,i=i+Math.imul(k,G)|0,n=n+Math.imul(g,V)|0,a=(a=a+Math.imul(g,Z)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,Z)|0,n=n+Math.imul(x,X)|0,a=(a=a+Math.imul(x,Y)|0)+Math.imul(y,X)|0,i=i+Math.imul(y,Y)|0,n=n+Math.imul(l,Q)|0,a=(a=a+Math.imul(l,ee)|0)+Math.imul(p,Q)|0,i=i+Math.imul(p,ee)|0;var we=(d+(n=n+Math.imul(u,re)|0)|0)+((8191&(a=(a=a+Math.imul(u,ne)|0)+Math.imul(b,re)|0))<<13)|0;d=((i=i+Math.imul(b,ne)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(O,q),a=(a=Math.imul(O,H))+Math.imul(P,q)|0,i=Math.imul(P,H),n=n+Math.imul(A,K)|0,a=(a=a+Math.imul(A,G)|0)+Math.imul(E,K)|0,i=i+Math.imul(E,G)|0,n=n+Math.imul(M,V)|0,a=(a=a+Math.imul(M,Z)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,Z)|0,n=n+Math.imul(g,X)|0,a=(a=a+Math.imul(g,Y)|0)+Math.imul(w,X)|0,i=i+Math.imul(w,Y)|0,n=n+Math.imul(x,Q)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(y,Q)|0,i=i+Math.imul(y,ee)|0,n=n+Math.imul(l,re)|0,a=(a=a+Math.imul(l,ne)|0)+Math.imul(p,re)|0,i=i+Math.imul(p,ne)|0;var _e=(d+(n=n+Math.imul(u,ie)|0)|0)+((8191&(a=(a=a+Math.imul(u,oe)|0)+Math.imul(b,ie)|0))<<13)|0;d=((i=i+Math.imul(b,oe)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(B,q),a=(a=Math.imul(B,H))+Math.imul(R,q)|0,i=Math.imul(R,H),n=n+Math.imul(O,K)|0,a=(a=a+Math.imul(O,G)|0)+Math.imul(P,K)|0,i=i+Math.imul(P,G)|0,n=n+Math.imul(A,V)|0,a=(a=a+Math.imul(A,Z)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,Z)|0,n=n+Math.imul(M,X)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,Y)|0,n=n+Math.imul(g,Q)|0,a=(a=a+Math.imul(g,ee)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,n=n+Math.imul(x,re)|0,a=(a=a+Math.imul(x,ne)|0)+Math.imul(y,re)|0,i=i+Math.imul(y,ne)|0,n=n+Math.imul(l,ie)|0,a=(a=a+Math.imul(l,oe)|0)+Math.imul(p,ie)|0,i=i+Math.imul(p,oe)|0;var Me=(d+(n=n+Math.imul(u,fe)|0)|0)+((8191&(a=(a=a+Math.imul(u,de)|0)+Math.imul(b,fe)|0))<<13)|0;d=((i=i+Math.imul(b,de)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(I,q),a=(a=Math.imul(I,H))+Math.imul(L,q)|0,i=Math.imul(L,H),n=n+Math.imul(B,K)|0,a=(a=a+Math.imul(B,G)|0)+Math.imul(R,K)|0,i=i+Math.imul(R,G)|0,n=n+Math.imul(O,V)|0,a=(a=a+Math.imul(O,Z)|0)+Math.imul(P,V)|0,i=i+Math.imul(P,Z)|0,n=n+Math.imul(A,X)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(E,X)|0,i=i+Math.imul(E,Y)|0,n=n+Math.imul(M,Q)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,ee)|0,n=n+Math.imul(g,re)|0,a=(a=a+Math.imul(g,ne)|0)+Math.imul(w,re)|0,i=i+Math.imul(w,ne)|0,n=n+Math.imul(x,ie)|0,a=(a=a+Math.imul(x,oe)|0)+Math.imul(y,ie)|0,i=i+Math.imul(y,oe)|0,n=n+Math.imul(l,fe)|0,a=(a=a+Math.imul(l,de)|0)+Math.imul(p,fe)|0,i=i+Math.imul(p,de)|0;var ke=(d+(n=n+Math.imul(u,ue)|0)|0)+((8191&(a=(a=a+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((i=i+Math.imul(b,be)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,q),a=(a=Math.imul(U,H))+Math.imul(z,q)|0,i=Math.imul(z,H),n=n+Math.imul(I,K)|0,a=(a=a+Math.imul(I,G)|0)+Math.imul(L,K)|0,i=i+Math.imul(L,G)|0,n=n+Math.imul(B,V)|0,a=(a=a+Math.imul(B,Z)|0)+Math.imul(R,V)|0,i=i+Math.imul(R,Z)|0,n=n+Math.imul(O,X)|0,a=(a=a+Math.imul(O,Y)|0)+Math.imul(P,X)|0,i=i+Math.imul(P,Y)|0,n=n+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,ee)|0,n=n+Math.imul(M,re)|0,a=(a=a+Math.imul(M,ne)|0)+Math.imul(k,re)|0,i=i+Math.imul(k,ne)|0,n=n+Math.imul(g,ie)|0,a=(a=a+Math.imul(g,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,n=n+Math.imul(x,fe)|0,a=(a=a+Math.imul(x,de)|0)+Math.imul(y,fe)|0,i=i+Math.imul(y,de)|0,n=n+Math.imul(l,ue)|0,a=(a=a+Math.imul(l,be)|0)+Math.imul(p,ue)|0,i=i+Math.imul(p,be)|0;var Se=(d+(n=n+Math.imul(u,le)|0)|0)+((8191&(a=(a=a+Math.imul(u,pe)|0)+Math.imul(b,le)|0))<<13)|0;d=((i=i+Math.imul(b,pe)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(U,K),a=(a=Math.imul(U,G))+Math.imul(z,K)|0,i=Math.imul(z,G),n=n+Math.imul(I,V)|0,a=(a=a+Math.imul(I,Z)|0)+Math.imul(L,V)|0,i=i+Math.imul(L,Z)|0,n=n+Math.imul(B,X)|0,a=(a=a+Math.imul(B,Y)|0)+Math.imul(R,X)|0,i=i+Math.imul(R,Y)|0,n=n+Math.imul(O,Q)|0,a=(a=a+Math.imul(O,ee)|0)+Math.imul(P,Q)|0,i=i+Math.imul(P,ee)|0,n=n+Math.imul(A,re)|0,a=(a=a+Math.imul(A,ne)|0)+Math.imul(E,re)|0,i=i+Math.imul(E,ne)|0,n=n+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,n=n+Math.imul(g,fe)|0,a=(a=a+Math.imul(g,de)|0)+Math.imul(w,fe)|0,i=i+Math.imul(w,de)|0,n=n+Math.imul(x,ue)|0,a=(a=a+Math.imul(x,be)|0)+Math.imul(y,ue)|0,i=i+Math.imul(y,be)|0;var Ae=(d+(n=n+Math.imul(l,le)|0)|0)+((8191&(a=(a=a+Math.imul(l,pe)|0)+Math.imul(p,le)|0))<<13)|0;d=((i=i+Math.imul(p,pe)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,V),a=(a=Math.imul(U,Z))+Math.imul(z,V)|0,i=Math.imul(z,Z),n=n+Math.imul(I,X)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(L,X)|0,i=i+Math.imul(L,Y)|0,n=n+Math.imul(B,Q)|0,a=(a=a+Math.imul(B,ee)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,ee)|0,n=n+Math.imul(O,re)|0,a=(a=a+Math.imul(O,ne)|0)+Math.imul(P,re)|0,i=i+Math.imul(P,ne)|0,n=n+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,n=n+Math.imul(M,fe)|0,a=(a=a+Math.imul(M,de)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,de)|0,n=n+Math.imul(g,ue)|0,a=(a=a+Math.imul(g,be)|0)+Math.imul(w,ue)|0,i=i+Math.imul(w,be)|0;var Ee=(d+(n=n+Math.imul(x,le)|0)|0)+((8191&(a=(a=a+Math.imul(x,pe)|0)+Math.imul(y,le)|0))<<13)|0;d=((i=i+Math.imul(y,pe)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,X),a=(a=Math.imul(U,Y))+Math.imul(z,X)|0,i=Math.imul(z,Y),n=n+Math.imul(I,Q)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(L,Q)|0,i=i+Math.imul(L,ee)|0,n=n+Math.imul(B,re)|0,a=(a=a+Math.imul(B,ne)|0)+Math.imul(R,re)|0,i=i+Math.imul(R,ne)|0,n=n+Math.imul(O,ie)|0,a=(a=a+Math.imul(O,oe)|0)+Math.imul(P,ie)|0,i=i+Math.imul(P,oe)|0,n=n+Math.imul(A,fe)|0,a=(a=a+Math.imul(A,de)|0)+Math.imul(E,fe)|0,i=i+Math.imul(E,de)|0,n=n+Math.imul(M,ue)|0,a=(a=a+Math.imul(M,be)|0)+Math.imul(k,ue)|0,i=i+Math.imul(k,be)|0;var Te=(d+(n=n+Math.imul(g,le)|0)|0)+((8191&(a=(a=a+Math.imul(g,pe)|0)+Math.imul(w,le)|0))<<13)|0;d=((i=i+Math.imul(w,pe)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,Q),a=(a=Math.imul(U,ee))+Math.imul(z,Q)|0,i=Math.imul(z,ee),n=n+Math.imul(I,re)|0,a=(a=a+Math.imul(I,ne)|0)+Math.imul(L,re)|0,i=i+Math.imul(L,ne)|0,n=n+Math.imul(B,ie)|0,a=(a=a+Math.imul(B,oe)|0)+Math.imul(R,ie)|0,i=i+Math.imul(R,oe)|0,n=n+Math.imul(O,fe)|0,a=(a=a+Math.imul(O,de)|0)+Math.imul(P,fe)|0,i=i+Math.imul(P,de)|0,n=n+Math.imul(A,ue)|0,a=(a=a+Math.imul(A,be)|0)+Math.imul(E,ue)|0,i=i+Math.imul(E,be)|0;var Oe=(d+(n=n+Math.imul(M,le)|0)|0)+((8191&(a=(a=a+Math.imul(M,pe)|0)+Math.imul(k,le)|0))<<13)|0;d=((i=i+Math.imul(k,pe)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,re),a=(a=Math.imul(U,ne))+Math.imul(z,re)|0,i=Math.imul(z,ne),n=n+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(L,ie)|0,i=i+Math.imul(L,oe)|0,n=n+Math.imul(B,fe)|0,a=(a=a+Math.imul(B,de)|0)+Math.imul(R,fe)|0,i=i+Math.imul(R,de)|0,n=n+Math.imul(O,ue)|0,a=(a=a+Math.imul(O,be)|0)+Math.imul(P,ue)|0,i=i+Math.imul(P,be)|0;var Pe=(d+(n=n+Math.imul(A,le)|0)|0)+((8191&(a=(a=a+Math.imul(A,pe)|0)+Math.imul(E,le)|0))<<13)|0;d=((i=i+Math.imul(E,pe)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(z,ie)|0,i=Math.imul(z,oe),n=n+Math.imul(I,fe)|0,a=(a=a+Math.imul(I,de)|0)+Math.imul(L,fe)|0,i=i+Math.imul(L,de)|0,n=n+Math.imul(B,ue)|0,a=(a=a+Math.imul(B,be)|0)+Math.imul(R,ue)|0,i=i+Math.imul(R,be)|0;var je=(d+(n=n+Math.imul(O,le)|0)|0)+((8191&(a=(a=a+Math.imul(O,pe)|0)+Math.imul(P,le)|0))<<13)|0;d=((i=i+Math.imul(P,pe)|0)+(a>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(U,fe),a=(a=Math.imul(U,de))+Math.imul(z,fe)|0,i=Math.imul(z,de),n=n+Math.imul(I,ue)|0,a=(a=a+Math.imul(I,be)|0)+Math.imul(L,ue)|0,i=i+Math.imul(L,be)|0;var Be=(d+(n=n+Math.imul(B,le)|0)|0)+((8191&(a=(a=a+Math.imul(B,pe)|0)+Math.imul(R,le)|0))<<13)|0;d=((i=i+Math.imul(R,pe)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,ue),a=(a=Math.imul(U,be))+Math.imul(z,ue)|0,i=Math.imul(z,be);var Re=(d+(n=n+Math.imul(I,le)|0)|0)+((8191&(a=(a=a+Math.imul(I,pe)|0)+Math.imul(L,le)|0))<<13)|0;d=((i=i+Math.imul(L,pe)|0)+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Ce=(d+(n=Math.imul(U,le))|0)+((8191&(a=(a=Math.imul(U,pe))+Math.imul(z,le)|0))<<13)|0;return d=((i=Math.imul(z,pe))+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=xe,f[2]=ye,f[3]=ve,f[4]=ge,f[5]=we,f[6]=_e,f[7]=Me,f[8]=ke,f[9]=Se,f[10]=Ae,f[11]=Ee,f[12]=Te,f[13]=Oe,f[14]=Pe,f[15]=je,f[16]=Be,f[17]=Re,f[18]=Ce,0!==d&&(f[19]=d,r.length++),r};function p(e,t,r){return(new m).mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(l=h),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}r.words[i]=c,n=o,o=a}return 0!==n?r.words[i]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},m.prototype.permute=function(e,t,r,n,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,r[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=n/67108864|0,t+=i>>>26,this.words[r]=67108863&i}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>a}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,n=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),c=67108863^67108863>>>i<o)for(this.length-=o,d=0;d=0&&(0!==s||d>=n);d--){var u=0|this.words[d];this.words[d]=s<<26-i|u>>>i,s=u&c}return f&&0!==s&&(f.words[f.length++]=s),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return a(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(a("number"==typeof e),a(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(f/67108864|0),this.words[n+r]=67108863&i}for(;n>26,this.words[n+r]=67108863&i;if(0===c)return this.strip();for(a(-1===c),c=0,n=0;n>26,this.words[n]=67108863&i;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),a=e,i=0|a.words[a.length-1];0!==(r=26-this._countBits(i))&&(a=a.ushln(r),n.iushln(r),i=0|a.words[a.length-1]);var c,f=n.length-a.length;if("mod"!==t){(c=new o(null)).length=f+1,c.words=new Array(c.length);for(var d=0;d=0;u--){var b=67108864*(0|n.words[a.length+u])+(0|n.words[a.length+u-1]);for(b=Math.min(b/i|0,67108863),n._ishlnsubmul(a,b,u);0!==n.negative;)b--,n.negative=0,n._ishlnsubmul(a,1,u),n.isZero()||(n.negative^=1);c&&(c.words[u]=b)}return c&&c.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:c||null,mod:n}},o.prototype.divmod=function(e,t,r){return a(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(c=this.neg().divmod(e,t),"mod"!==t&&(n=c.div.neg()),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(c=this.divmod(e.neg(),t),"mod"!==t&&(n=c.div.neg()),{div:n,mod:c.mod}):0!=(this.negative&e.negative)?(c=this.neg().divmod(e.neg(),t),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.isub(e)),{div:c.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,i,c},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),i=r.cmp(n);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){a(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},o.prototype.idivn=function(e){a(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),i=new o(0),c=new o(0),f=new o(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var s=r.clone(),u=t.clone();!t.isZero();){for(var b=0,h=1;0==(t.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(s),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var l=0,p=1;0==(r.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(r.iushrn(l);l-- >0;)(c.isOdd()||f.isOdd())&&(c.iadd(s),f.isub(u)),c.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(c),i.isub(f)):(r.isub(t),c.isub(n),f.isub(i))}return{a:c,b:f,gcd:r.iushln(d)}},o.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new o(1),c=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var d=0,s=1;0==(t.words[0]&s)&&d<26;++d,s<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(f),i.iushrn(1);for(var u=0,b=1;0==(r.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(r.iushrn(u);u-- >0;)c.isOdd()&&c.iadd(f),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(c)):(r.isub(t),c.isub(i))}return(n=0===t.cmpn(1)?i:c).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var a=t.cmp(r);if(a<0){var i=t;t=r,r=i}else if(0===a||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,c&=67108863,this.words[o]=c}return 0!==i&&(this.words[o]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var n=0|this.words[r],a=0|e.words[r];if(n!==a){na&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new M(e)},o.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var x={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function g(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){M.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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 e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,a=i}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(x[e])return x[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new g;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return x[e]=t,t},M.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},M.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},M.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},M.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},M.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},M.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},M.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},M.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},M.prototype.isqr=function(e){return this.imul(e,e.clone())},M.prototype.sqr=function(e){return this.mul(e,e)},M.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);a(!n.isZero());var c=new o(1).toRed(this),f=c.redNeg(),d=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new o(2*s*s).toRed(this);0!==this.pow(s,d).cmp(f);)s.redIAdd(f);for(var u=this.pow(s,n),b=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),l=i;0!==h.cmp(c);){for(var p=h,m=0;0!==p.cmp(c);m++)p=p.redSqr();a(m=0;n--){for(var d=t.words[n],s=f-1;s>=0;s--){var u=d>>s&1;a!==r[0]&&(a=this.sqr(a)),0!==u||0!==i?(i<<=1,i|=u,(4===++c||0===n&&0===s)&&(a=this.mul(a,r[i]),c=0,i=0)):c=0}f=26}return a},M.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},M.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,M),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(15)(e))},function(e,t,r){"use strict";var n=r(9),a=r(30),i=a.getNAF,o=a.getJSF,c=a.assert;function f(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.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=t.n&&new n(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 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 d(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=f,f.prototype.point=function(){throw new Error("Not implemented")},f.prototype.validate=function(){throw new Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){c(e.precomputed);var r=e._getDoubles(),n=i(t,1,this._bitLength),a=(1<=o;s--)f=(f<<1)+n[s];d.push(f)}for(var u=this.jpoint(null,null,null),b=this.jpoint(null,null,null),h=a;h>0;h--){for(o=0;o=0;d--){for(var s=0;d>=0&&0===o[d];d--)s++;if(d>=0&&s++,f=f.dblp(s),d<0)break;var u=o[d];c(0!==u),f="affine"===e.type?u>0?f.mixedAdd(a[u-1>>1]):f.mixedAdd(a[-u-1>>1].neg()):u>0?f.add(a[u-1>>1]):f.add(a[-u-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,n,a){var c,f,d,s=this._wnafT1,u=this._wnafT2,b=this._wnafT3,h=0;for(c=0;c=1;c-=2){var p=c-1,m=c;if(1===s[p]&&1===s[m]){var x=[t[p],null,null,t[m]];0===t[p].y.cmp(t[m].y)?(x[1]=t[p].add(t[m]),x[2]=t[p].toJ().mixedAdd(t[m].neg())):0===t[p].y.cmp(t[m].y.redNeg())?(x[1]=t[p].toJ().mixedAdd(t[m]),x[2]=t[p].add(t[m].neg())):(x[1]=t[p].toJ().mixedAdd(t[m]),x[2]=t[p].toJ().mixedAdd(t[m].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=o(r[p],r[m]);for(h=Math.max(v[0].length,h),b[p]=new Array(h),b[m]=new Array(h),f=0;f=0;c--){for(var k=0;c>=0;){var S=!0;for(f=0;f=0&&k++,_=_.dblp(k),c<0)break;for(f=0;f0?d=u[f][A-1>>1]:A<0&&(d=u[f][-A-1>>1].neg()),_="affine"===d.type?_.mixedAdd(d):_.add(d))}}for(c=0;c=Math.ceil((e.bitLength()+1)/t.step)},d.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,a=0;a=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r(436),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(13))},function(e,t,r){"use strict";(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=t.recoverPublicKey=t.concatSig=t.legacyToBuffer=t.isNullish=t.padWithZeroes=void 0;var a=r(124),i=r(18);function o(e,t){if(""!==e&&!/^[0-9a-f]+$/i.test(e))throw new Error("Expected an unprefixed hex string. Received: ".concat(e));if(t<0)throw new Error("Expected a non-negative integer target length. Received: ".concat(t));return String.prototype.padStart.call(e,t,"0")}t.padWithZeroes=o,t.isNullish=function(e){return null==e},t.legacyToBuffer=function(t){return"string"!=typeof t||i.isHexString(t)?a.toBuffer(t):e.from(t)},t.concatSig=function(e,t,r){var n=a.fromSigned(t),c=a.fromSigned(r),f=a.bufferToInt(e),d=o(a.toUnsigned(n).toString("hex"),64),s=o(a.toUnsigned(c).toString("hex"),64),u=i.stripHexPrefix(i.intToHex(f));return a.addHexPrefix(d.concat(s,u))},t.recoverPublicKey=function(e,t){var r=a.fromRpcSig(t);return a.ecrecover(e,r.v,r.r,r.s)},t.normalize=function(e){if(e){if("number"==typeof e){var t=a.toBuffer(e);e=a.bufferToHex(t)}if("string"!=typeof e){var r="eth-sig-util.normalize() requires hex string or integer input.";throw r+=" received ".concat(n(e),": ").concat(e),new Error(r)}return a.addHexPrefix(e.toLowerCase())}}}).call(this,r(0).Buffer)},function(e,t,r){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,n){"use strict";function a(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var c;"object"===t(e)?e.exports=o:n.BN=o,o.BN=o,o.wordSize=26;try{c="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(465).Buffer}catch(e){}function f(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void a(!1,"Invalid character in "+e)}function d(e,t,r){var n=f(e,r);return r-1>=t&&(n|=f(e,r-1)<<4),n}function s(e,t,r,n){for(var i=0,o=0,c=Math.min(e.length,r),f=t;f=49?d-49+10:d>=17?d-17+10:d,a(d>=0&&o0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n);if("object"===t(e))return this._initArray(e,r,n);"hex"===r&&(r=16),a(r===(0|r)&&r>=2&&r<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[i]|=o<>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);else if("le"===r)for(n=0,i=0;n>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)a=d(e,t,n)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,a=1;a<=67108863;a*=t)n++;n--,a=a/t|0;for(var i=e.length-r,o=i%n,c=Math.min(i,i-o)+r,f=0,d=r;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=b}catch(e){o.prototype.inspect=b}else o.prototype.inspect=b;function b(){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],p=[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];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,i=0,o=0;o>>24-n&16777215,(n+=2)>=26&&(n-=26,o--),r=0!==i||o!==this.length-1?h[6-f.length]+f+r:f+r}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=l[e],s=p[e];r="";var u=this.clone();for(u.negative=0;!u.isZero();){var b=u.modrn(s).toString(e);r=(u=u.idivn(s)).isZero()?b+r:h[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}a(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},c&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(c,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,c=67108863&o,f=o/67108864|0;r.words[0]=c;for(var d=1;d>>26,u=67108863&f,b=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=b;h++){var l=d-h|0;s+=(o=(a=0|e.words[l])*(i=0|t.words[h])+u)/67108864|0,u=67108863&o}r.words[d]=0|u,f=0|s}return 0!==f?r.words[d]=0|f:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var n=this.byteLength(),i=r||Math.max(1,n);a(n<=i,"byte array longer than desired length"),a(i>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,i);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,n),o},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,a=0,i=0;a>8&255),r>16&255),6===i?(r>24&255),n=0,i=0):(n=o>>>24,i+=2)}if(r=0&&(e[r--]=o>>8&255),r>=0&&(e[r--]=o>>16&255),6===i?(r>=0&&(e[r--]=o>>24&255),n=0,i=0):(n=o>>>24,i+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=r.length,0!==a)this.words[this.length]=a,this.length++;else if(r!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,h=0|o[1],l=8191&h,p=h>>>13,m=0|o[2],x=8191&m,y=m>>>13,v=0|o[3],g=8191&v,w=v>>>13,_=0|o[4],M=8191&_,k=_>>>13,S=0|o[5],A=8191&S,E=S>>>13,T=0|o[6],O=8191&T,P=T>>>13,j=0|o[7],B=8191&j,R=j>>>13,C=0|o[8],I=8191&C,L=C>>>13,N=0|o[9],U=8191&N,z=N>>>13,F=0|c[0],q=8191&F,H=F>>>13,D=0|c[1],K=8191&D,G=D>>>13,W=0|c[2],V=8191&W,Z=W>>>13,J=0|c[3],X=8191&J,Y=J>>>13,$=0|c[4],Q=8191&$,ee=$>>>13,te=0|c[5],re=8191&te,ne=te>>>13,ae=0|c[6],ie=8191&ae,oe=ae>>>13,ce=0|c[7],fe=8191&ce,de=ce>>>13,se=0|c[8],ue=8191&se,be=se>>>13,he=0|c[9],le=8191&he,pe=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(d+(n=Math.imul(u,q))|0)+((8191&(a=(a=Math.imul(u,H))+Math.imul(b,q)|0))<<13)|0;d=((i=Math.imul(b,H))+(a>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(l,q),a=(a=Math.imul(l,H))+Math.imul(p,q)|0,i=Math.imul(p,H);var xe=(d+(n=n+Math.imul(u,K)|0)|0)+((8191&(a=(a=a+Math.imul(u,G)|0)+Math.imul(b,K)|0))<<13)|0;d=((i=i+Math.imul(b,G)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(x,q),a=(a=Math.imul(x,H))+Math.imul(y,q)|0,i=Math.imul(y,H),n=n+Math.imul(l,K)|0,a=(a=a+Math.imul(l,G)|0)+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0;var ye=(d+(n=n+Math.imul(u,V)|0)|0)+((8191&(a=(a=a+Math.imul(u,Z)|0)+Math.imul(b,V)|0))<<13)|0;d=((i=i+Math.imul(b,Z)|0)+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(g,q),a=(a=Math.imul(g,H))+Math.imul(w,q)|0,i=Math.imul(w,H),n=n+Math.imul(x,K)|0,a=(a=a+Math.imul(x,G)|0)+Math.imul(y,K)|0,i=i+Math.imul(y,G)|0,n=n+Math.imul(l,V)|0,a=(a=a+Math.imul(l,Z)|0)+Math.imul(p,V)|0,i=i+Math.imul(p,Z)|0;var ve=(d+(n=n+Math.imul(u,X)|0)|0)+((8191&(a=(a=a+Math.imul(u,Y)|0)+Math.imul(b,X)|0))<<13)|0;d=((i=i+Math.imul(b,Y)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(M,q),a=(a=Math.imul(M,H))+Math.imul(k,q)|0,i=Math.imul(k,H),n=n+Math.imul(g,K)|0,a=(a=a+Math.imul(g,G)|0)+Math.imul(w,K)|0,i=i+Math.imul(w,G)|0,n=n+Math.imul(x,V)|0,a=(a=a+Math.imul(x,Z)|0)+Math.imul(y,V)|0,i=i+Math.imul(y,Z)|0,n=n+Math.imul(l,X)|0,a=(a=a+Math.imul(l,Y)|0)+Math.imul(p,X)|0,i=i+Math.imul(p,Y)|0;var ge=(d+(n=n+Math.imul(u,Q)|0)|0)+((8191&(a=(a=a+Math.imul(u,ee)|0)+Math.imul(b,Q)|0))<<13)|0;d=((i=i+Math.imul(b,ee)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(A,q),a=(a=Math.imul(A,H))+Math.imul(E,q)|0,i=Math.imul(E,H),n=n+Math.imul(M,K)|0,a=(a=a+Math.imul(M,G)|0)+Math.imul(k,K)|0,i=i+Math.imul(k,G)|0,n=n+Math.imul(g,V)|0,a=(a=a+Math.imul(g,Z)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,Z)|0,n=n+Math.imul(x,X)|0,a=(a=a+Math.imul(x,Y)|0)+Math.imul(y,X)|0,i=i+Math.imul(y,Y)|0,n=n+Math.imul(l,Q)|0,a=(a=a+Math.imul(l,ee)|0)+Math.imul(p,Q)|0,i=i+Math.imul(p,ee)|0;var we=(d+(n=n+Math.imul(u,re)|0)|0)+((8191&(a=(a=a+Math.imul(u,ne)|0)+Math.imul(b,re)|0))<<13)|0;d=((i=i+Math.imul(b,ne)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(O,q),a=(a=Math.imul(O,H))+Math.imul(P,q)|0,i=Math.imul(P,H),n=n+Math.imul(A,K)|0,a=(a=a+Math.imul(A,G)|0)+Math.imul(E,K)|0,i=i+Math.imul(E,G)|0,n=n+Math.imul(M,V)|0,a=(a=a+Math.imul(M,Z)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,Z)|0,n=n+Math.imul(g,X)|0,a=(a=a+Math.imul(g,Y)|0)+Math.imul(w,X)|0,i=i+Math.imul(w,Y)|0,n=n+Math.imul(x,Q)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(y,Q)|0,i=i+Math.imul(y,ee)|0,n=n+Math.imul(l,re)|0,a=(a=a+Math.imul(l,ne)|0)+Math.imul(p,re)|0,i=i+Math.imul(p,ne)|0;var _e=(d+(n=n+Math.imul(u,ie)|0)|0)+((8191&(a=(a=a+Math.imul(u,oe)|0)+Math.imul(b,ie)|0))<<13)|0;d=((i=i+Math.imul(b,oe)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(B,q),a=(a=Math.imul(B,H))+Math.imul(R,q)|0,i=Math.imul(R,H),n=n+Math.imul(O,K)|0,a=(a=a+Math.imul(O,G)|0)+Math.imul(P,K)|0,i=i+Math.imul(P,G)|0,n=n+Math.imul(A,V)|0,a=(a=a+Math.imul(A,Z)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,Z)|0,n=n+Math.imul(M,X)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,Y)|0,n=n+Math.imul(g,Q)|0,a=(a=a+Math.imul(g,ee)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,n=n+Math.imul(x,re)|0,a=(a=a+Math.imul(x,ne)|0)+Math.imul(y,re)|0,i=i+Math.imul(y,ne)|0,n=n+Math.imul(l,ie)|0,a=(a=a+Math.imul(l,oe)|0)+Math.imul(p,ie)|0,i=i+Math.imul(p,oe)|0;var Me=(d+(n=n+Math.imul(u,fe)|0)|0)+((8191&(a=(a=a+Math.imul(u,de)|0)+Math.imul(b,fe)|0))<<13)|0;d=((i=i+Math.imul(b,de)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(I,q),a=(a=Math.imul(I,H))+Math.imul(L,q)|0,i=Math.imul(L,H),n=n+Math.imul(B,K)|0,a=(a=a+Math.imul(B,G)|0)+Math.imul(R,K)|0,i=i+Math.imul(R,G)|0,n=n+Math.imul(O,V)|0,a=(a=a+Math.imul(O,Z)|0)+Math.imul(P,V)|0,i=i+Math.imul(P,Z)|0,n=n+Math.imul(A,X)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(E,X)|0,i=i+Math.imul(E,Y)|0,n=n+Math.imul(M,Q)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,ee)|0,n=n+Math.imul(g,re)|0,a=(a=a+Math.imul(g,ne)|0)+Math.imul(w,re)|0,i=i+Math.imul(w,ne)|0,n=n+Math.imul(x,ie)|0,a=(a=a+Math.imul(x,oe)|0)+Math.imul(y,ie)|0,i=i+Math.imul(y,oe)|0,n=n+Math.imul(l,fe)|0,a=(a=a+Math.imul(l,de)|0)+Math.imul(p,fe)|0,i=i+Math.imul(p,de)|0;var ke=(d+(n=n+Math.imul(u,ue)|0)|0)+((8191&(a=(a=a+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((i=i+Math.imul(b,be)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,q),a=(a=Math.imul(U,H))+Math.imul(z,q)|0,i=Math.imul(z,H),n=n+Math.imul(I,K)|0,a=(a=a+Math.imul(I,G)|0)+Math.imul(L,K)|0,i=i+Math.imul(L,G)|0,n=n+Math.imul(B,V)|0,a=(a=a+Math.imul(B,Z)|0)+Math.imul(R,V)|0,i=i+Math.imul(R,Z)|0,n=n+Math.imul(O,X)|0,a=(a=a+Math.imul(O,Y)|0)+Math.imul(P,X)|0,i=i+Math.imul(P,Y)|0,n=n+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,ee)|0,n=n+Math.imul(M,re)|0,a=(a=a+Math.imul(M,ne)|0)+Math.imul(k,re)|0,i=i+Math.imul(k,ne)|0,n=n+Math.imul(g,ie)|0,a=(a=a+Math.imul(g,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,n=n+Math.imul(x,fe)|0,a=(a=a+Math.imul(x,de)|0)+Math.imul(y,fe)|0,i=i+Math.imul(y,de)|0,n=n+Math.imul(l,ue)|0,a=(a=a+Math.imul(l,be)|0)+Math.imul(p,ue)|0,i=i+Math.imul(p,be)|0;var Se=(d+(n=n+Math.imul(u,le)|0)|0)+((8191&(a=(a=a+Math.imul(u,pe)|0)+Math.imul(b,le)|0))<<13)|0;d=((i=i+Math.imul(b,pe)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(U,K),a=(a=Math.imul(U,G))+Math.imul(z,K)|0,i=Math.imul(z,G),n=n+Math.imul(I,V)|0,a=(a=a+Math.imul(I,Z)|0)+Math.imul(L,V)|0,i=i+Math.imul(L,Z)|0,n=n+Math.imul(B,X)|0,a=(a=a+Math.imul(B,Y)|0)+Math.imul(R,X)|0,i=i+Math.imul(R,Y)|0,n=n+Math.imul(O,Q)|0,a=(a=a+Math.imul(O,ee)|0)+Math.imul(P,Q)|0,i=i+Math.imul(P,ee)|0,n=n+Math.imul(A,re)|0,a=(a=a+Math.imul(A,ne)|0)+Math.imul(E,re)|0,i=i+Math.imul(E,ne)|0,n=n+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,n=n+Math.imul(g,fe)|0,a=(a=a+Math.imul(g,de)|0)+Math.imul(w,fe)|0,i=i+Math.imul(w,de)|0,n=n+Math.imul(x,ue)|0,a=(a=a+Math.imul(x,be)|0)+Math.imul(y,ue)|0,i=i+Math.imul(y,be)|0;var Ae=(d+(n=n+Math.imul(l,le)|0)|0)+((8191&(a=(a=a+Math.imul(l,pe)|0)+Math.imul(p,le)|0))<<13)|0;d=((i=i+Math.imul(p,pe)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,V),a=(a=Math.imul(U,Z))+Math.imul(z,V)|0,i=Math.imul(z,Z),n=n+Math.imul(I,X)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(L,X)|0,i=i+Math.imul(L,Y)|0,n=n+Math.imul(B,Q)|0,a=(a=a+Math.imul(B,ee)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,ee)|0,n=n+Math.imul(O,re)|0,a=(a=a+Math.imul(O,ne)|0)+Math.imul(P,re)|0,i=i+Math.imul(P,ne)|0,n=n+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,n=n+Math.imul(M,fe)|0,a=(a=a+Math.imul(M,de)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,de)|0,n=n+Math.imul(g,ue)|0,a=(a=a+Math.imul(g,be)|0)+Math.imul(w,ue)|0,i=i+Math.imul(w,be)|0;var Ee=(d+(n=n+Math.imul(x,le)|0)|0)+((8191&(a=(a=a+Math.imul(x,pe)|0)+Math.imul(y,le)|0))<<13)|0;d=((i=i+Math.imul(y,pe)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,X),a=(a=Math.imul(U,Y))+Math.imul(z,X)|0,i=Math.imul(z,Y),n=n+Math.imul(I,Q)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(L,Q)|0,i=i+Math.imul(L,ee)|0,n=n+Math.imul(B,re)|0,a=(a=a+Math.imul(B,ne)|0)+Math.imul(R,re)|0,i=i+Math.imul(R,ne)|0,n=n+Math.imul(O,ie)|0,a=(a=a+Math.imul(O,oe)|0)+Math.imul(P,ie)|0,i=i+Math.imul(P,oe)|0,n=n+Math.imul(A,fe)|0,a=(a=a+Math.imul(A,de)|0)+Math.imul(E,fe)|0,i=i+Math.imul(E,de)|0,n=n+Math.imul(M,ue)|0,a=(a=a+Math.imul(M,be)|0)+Math.imul(k,ue)|0,i=i+Math.imul(k,be)|0;var Te=(d+(n=n+Math.imul(g,le)|0)|0)+((8191&(a=(a=a+Math.imul(g,pe)|0)+Math.imul(w,le)|0))<<13)|0;d=((i=i+Math.imul(w,pe)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,Q),a=(a=Math.imul(U,ee))+Math.imul(z,Q)|0,i=Math.imul(z,ee),n=n+Math.imul(I,re)|0,a=(a=a+Math.imul(I,ne)|0)+Math.imul(L,re)|0,i=i+Math.imul(L,ne)|0,n=n+Math.imul(B,ie)|0,a=(a=a+Math.imul(B,oe)|0)+Math.imul(R,ie)|0,i=i+Math.imul(R,oe)|0,n=n+Math.imul(O,fe)|0,a=(a=a+Math.imul(O,de)|0)+Math.imul(P,fe)|0,i=i+Math.imul(P,de)|0,n=n+Math.imul(A,ue)|0,a=(a=a+Math.imul(A,be)|0)+Math.imul(E,ue)|0,i=i+Math.imul(E,be)|0;var Oe=(d+(n=n+Math.imul(M,le)|0)|0)+((8191&(a=(a=a+Math.imul(M,pe)|0)+Math.imul(k,le)|0))<<13)|0;d=((i=i+Math.imul(k,pe)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,re),a=(a=Math.imul(U,ne))+Math.imul(z,re)|0,i=Math.imul(z,ne),n=n+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(L,ie)|0,i=i+Math.imul(L,oe)|0,n=n+Math.imul(B,fe)|0,a=(a=a+Math.imul(B,de)|0)+Math.imul(R,fe)|0,i=i+Math.imul(R,de)|0,n=n+Math.imul(O,ue)|0,a=(a=a+Math.imul(O,be)|0)+Math.imul(P,ue)|0,i=i+Math.imul(P,be)|0;var Pe=(d+(n=n+Math.imul(A,le)|0)|0)+((8191&(a=(a=a+Math.imul(A,pe)|0)+Math.imul(E,le)|0))<<13)|0;d=((i=i+Math.imul(E,pe)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(z,ie)|0,i=Math.imul(z,oe),n=n+Math.imul(I,fe)|0,a=(a=a+Math.imul(I,de)|0)+Math.imul(L,fe)|0,i=i+Math.imul(L,de)|0,n=n+Math.imul(B,ue)|0,a=(a=a+Math.imul(B,be)|0)+Math.imul(R,ue)|0,i=i+Math.imul(R,be)|0;var je=(d+(n=n+Math.imul(O,le)|0)|0)+((8191&(a=(a=a+Math.imul(O,pe)|0)+Math.imul(P,le)|0))<<13)|0;d=((i=i+Math.imul(P,pe)|0)+(a>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(U,fe),a=(a=Math.imul(U,de))+Math.imul(z,fe)|0,i=Math.imul(z,de),n=n+Math.imul(I,ue)|0,a=(a=a+Math.imul(I,be)|0)+Math.imul(L,ue)|0,i=i+Math.imul(L,be)|0;var Be=(d+(n=n+Math.imul(B,le)|0)|0)+((8191&(a=(a=a+Math.imul(B,pe)|0)+Math.imul(R,le)|0))<<13)|0;d=((i=i+Math.imul(R,pe)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,ue),a=(a=Math.imul(U,be))+Math.imul(z,ue)|0,i=Math.imul(z,be);var Re=(d+(n=n+Math.imul(I,le)|0)|0)+((8191&(a=(a=a+Math.imul(I,pe)|0)+Math.imul(L,le)|0))<<13)|0;d=((i=i+Math.imul(L,pe)|0)+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Ce=(d+(n=Math.imul(U,le))|0)+((8191&(a=(a=Math.imul(U,pe))+Math.imul(z,le)|0))<<13)|0;return d=((i=Math.imul(z,pe))+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=xe,f[2]=ye,f[3]=ve,f[4]=ge,f[5]=we,f[6]=_e,f[7]=Me,f[8]=ke,f[9]=Se,f[10]=Ae,f[11]=Ee,f[12]=Te,f[13]=Oe,f[14]=Pe,f[15]=je,f[16]=Be,f[17]=Re,f[18]=Ce,0!==d&&(f[19]=d,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}r.words[i]=c,n=o,o=a}return 0!==n?r.words[i]=n:r.length--,r._strip()}function v(e,t,r){return y(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(x=m),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?x(this,e,t):r<63?m(this,e,t):r<1024?y(this,e,t):v(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},g.prototype.permute=function(e,t,r,n,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,r[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,r+=i/67108864|0,r+=o>>>26,this.words[n]=67108863&o}return 0!==r&&(this.words[n]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>a&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,n=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),c=67108863^67108863>>>i<o)for(this.length-=o,d=0;d=0&&(0!==s||d>=n);d--){var u=0|this.words[d];this.words[d]=s<<26-i|u>>>i,s=u&c}return f&&0!==s&&(f.words[f.length++]=s),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return a(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(a("number"==typeof e),a(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(f/67108864|0),this.words[n+r]=67108863&i}for(;n>26,this.words[n+r]=67108863&i;if(0===c)return this._strip();for(a(-1===c),c=0,n=0;n>26,this.words[n]=67108863&i;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),a=e,i=0|a.words[a.length-1];0!==(r=26-this._countBits(i))&&(a=a.ushln(r),n.iushln(r),i=0|a.words[a.length-1]);var c,f=n.length-a.length;if("mod"!==t){(c=new o(null)).length=f+1,c.words=new Array(c.length);for(var d=0;d=0;u--){var b=67108864*(0|n.words[a.length+u])+(0|n.words[a.length+u-1]);for(b=Math.min(b/i|0,67108863),n._ishlnsubmul(a,b,u);0!==n.negative;)b--,n.negative=0,n._ishlnsubmul(a,1,u),n.isZero()||(n.negative^=1);c&&(c.words[u]=b)}return c&&c._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:c||null,mod:n}},o.prototype.divmod=function(e,t,r){return a(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(c=this.neg().divmod(e,t),"mod"!==t&&(n=c.div.neg()),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(c=this.divmod(e.neg(),t),"mod"!==t&&(n=c.div.neg()),{div:n,mod:c.mod}):0!=(this.negative&e.negative)?(c=this.neg().divmod(e.neg(),t),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.isub(e)),{div:c.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,i,c},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),i=r.cmp(n);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),a(e<=67108863);for(var r=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(r*n+(0|this.words[i]))%e;return t?-n:n},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),a(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*r;this.words[n]=i/e|0,r=i%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),i=new o(0),c=new o(0),f=new o(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var s=r.clone(),u=t.clone();!t.isZero();){for(var b=0,h=1;0==(t.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(s),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var l=0,p=1;0==(r.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(r.iushrn(l);l-- >0;)(c.isOdd()||f.isOdd())&&(c.iadd(s),f.isub(u)),c.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(c),i.isub(f)):(r.isub(t),c.isub(n),f.isub(i))}return{a:c,b:f,gcd:r.iushln(d)}},o.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new o(1),c=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var d=0,s=1;0==(t.words[0]&s)&&d<26;++d,s<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(f),i.iushrn(1);for(var u=0,b=1;0==(r.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(r.iushrn(u);u-- >0;)c.isOdd()&&c.iadd(f),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(c)):(r.isub(t),c.isub(i))}return(n=0===t.cmpn(1)?i:c).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var a=t.cmp(r);if(a<0){var i=t;t=r,r=i}else if(0===a||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,c&=67108863,this.words[o]=c}return 0!==i&&(this.words[o]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var n=0|this.words[r],a=0|e.words[r];if(n!==a){na&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new E(e)},o.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}_.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},i(M,_),M.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,a=i}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},M.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new M;else if("p224"===e)t=new k;else if("p192"===e)t=new S;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return w[e]=t,t},E.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);a(!n.isZero());var c=new o(1).toRed(this),f=c.redNeg(),d=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new o(2*s*s).toRed(this);0!==this.pow(s,d).cmp(f);)s.redIAdd(f);for(var u=this.pow(s,n),b=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),l=i;0!==h.cmp(c);){for(var p=h,m=0;0!==p.cmp(c);m++)p=p.redSqr();a(m=0;n--){for(var d=t.words[n],s=f-1;s>=0;s--){var u=d>>s&1;a!==r[0]&&(a=this.sqr(a)),0!==u||0!==i?(i<<=1,i|=u,(4===++c||0===n&&0===s)&&(a=this.mul(a,r[i]),c=0,i=0)):c=0}f=26}return a},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new T(e)},i(T,E),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(15)(e))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;var n=r(68);t.assertIsHexString=function(e){if(!(0,n.isHexString)(e)){var t="This method only supports 0x-prefixed hex strings but input was: ".concat(e);throw new Error(t)}};t.assertIsBuffer=function(t){if(!e.isBuffer(t)){var r="This method only supports Buffer but input was: ".concat(t);throw new Error(r)}};t.assertIsArray=function(e){if(!Array.isArray(e)){var t="This method only supports number arrays but input was: ".concat(e);throw new Error(t)}};t.assertIsString=function(e){if("string"!=typeof e){var t="This method only supports strings but input was: ".concat(e);throw new Error(t)}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var n=r(145),a=function(e){var t,r,a=new Promise((function(){t=arguments[0],r=arguments[1]}));if(e)return{resolve:t,reject:r,eventEmitter:a};var i=new n;return a._events=i._events,a.emit=i.emit,a.on=i.on,a.once=i.once,a.off=i.off,a.listeners=i.listeners,a.addListener=i.addListener,a.removeListener=i.removeListener,a.removeAllListeners=i.removeAllListeners,{resolve:t,reject:r,eventEmitter:a}};a.resolve=function(e){var t=a(!0);return t.resolve(e),t.eventEmitter},e.exports=a},function(e,t,r){"use strict";var n=r(500),a=function(e){this.name=e.name,this.type=e.type,this.subscriptions=e.subscriptions||{},this.requestManager=null};a.prototype.setRequestManager=function(e){this.requestManager=e},a.prototype.attachToObject=function(e){var t=this.buildCall(),r=this.name.split(".");r.length>1?(e[r[0]]=e[r[0]]||{},e[r[0]][r[1]]=t):e[r[0]]=t},a.prototype.buildCall=function(){var e=this;return function(){e.subscriptions[arguments[0]]||console.warn("Subscription "+JSON.stringify(arguments[0])+" doesn't exist. Subscribing anyway.");var t=new n({subscription:e.subscriptions[arguments[0]]||{},requestManager:e.requestManager,type:e.type});return t.subscribe.apply(t,arguments)}},e.exports={subscriptions:a,subscription:n}},function(e,t,r){"use strict";var n=r(51),a=r(53),i=r(24),o=function(){var e=this;n.packageInit(this,arguments),[new a({name:"getId",call:"net_version",params:0,outputFormatter:parseInt}),new a({name:"isListening",call:"net_listening",params:0}),new a({name:"getPeerCount",call:"net_peerCount",params:0,outputFormatter:i.hexToNumber})].forEach((function(t){t.attachToObject(e),t.setRequestManager(e._requestManager)}))};n.addProviders(o),e.exports=o},function(e){e.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(e,t,r){var n=r(6).Buffer;function a(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=new Array(t),a=0;a>>24]^s[l>>>16&255]^u[p>>>8&255]^b[255&m]^t[x++],o=d[l>>>24]^s[p>>>16&255]^u[m>>>8&255]^b[255&h]^t[x++],c=d[p>>>24]^s[m>>>16&255]^u[h>>>8&255]^b[255&l]^t[x++],f=d[m>>>24]^s[h>>>16&255]^u[l>>>8&255]^b[255&p]^t[x++],h=i,l=o,p=c,m=f;return i=(n[h>>>24]<<24|n[l>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[x++],o=(n[l>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&h])^t[x++],c=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[h>>>8&255]<<8|n[255&l])^t[x++],f=(n[m>>>24]<<24|n[h>>>16&255]<<16|n[l>>>8&255]<<8|n[255&p])^t[x++],[i>>>=0,o>>>=0,c>>>=0,f>>>=0]}var c=[0,1,2,4,8,16,32,64,128,27,54],f=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],a=[[],[],[],[]],i=[[],[],[],[]],o=0,c=0,f=0;f<256;++f){var d=c^c<<1^c<<2^c<<3^c<<4;d=d>>>8^255&d^99,r[o]=d,n[d]=o;var s=e[o],u=e[s],b=e[u],h=257*e[d]^16843008*d;a[0][o]=h<<24|h>>>8,a[1][o]=h<<16|h>>>16,a[2][o]=h<<8|h>>>24,a[3][o]=h,h=16843009*b^65537*u^257*s^16843008*o,i[0][d]=h<<24|h>>>8,i[1][d]=h<<16|h>>>16,i[2][d]=h<<8|h>>>24,i[3][d]=h,0===o?o=c=1:(o=s^e[e[e[b^s]]],c^=e[e[c]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:a,INV_SUB_MIX:i}}();function d(e){this._key=a(e),this._reset()}d.blockSize=16,d.keySize=32,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),a=[],i=0;i>>24,o=f.SBOX[o>>>24]<<24|f.SBOX[o>>>16&255]<<16|f.SBOX[o>>>8&255]<<8|f.SBOX[255&o],o^=c[i/t|0]<<24):t>6&&i%t==4&&(o=f.SBOX[o>>>24]<<24|f.SBOX[o>>>16&255]<<16|f.SBOX[o>>>8&255]<<8|f.SBOX[255&o]),a[i]=a[i-t]^o}for(var d=[],s=0;s>>24]]^f.INV_SUB_MIX[1][f.SBOX[b>>>16&255]]^f.INV_SUB_MIX[2][f.SBOX[b>>>8&255]]^f.INV_SUB_MIX[3][f.SBOX[255&b]]}this._nRounds=r,this._keySchedule=a,this._invKeySchedule=d},d.prototype.encryptBlockRaw=function(e){return o(e=a(e),this._keySchedule,f.SUB_MIX,f.SBOX,this._nRounds)},d.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},d.prototype.decryptBlock=function(e){var t=(e=a(e))[1];e[1]=e[3],e[3]=t;var r=o(e,this._invKeySchedule,f.INV_SUB_MIX,f.INV_SBOX,this._nRounds),i=n.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i},d.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},e.exports.AES=d},function(e,t,r){var n=r(6).Buffer,a=r(134);e.exports=function(e,t,r,i){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=r/8,c=n.alloc(o),f=n.alloc(i||0),d=n.alloc(0);o>0||i>0;){var s=new a;s.update(d),s.update(e),t&&s.update(t),d=s.digest();var u=0;if(o>0){var b=c.length-o;u=Math.min(o,d.length),d.copy(c,b,0,u),o-=u}if(u0){var h=f.length-i,l=Math.min(i,d.length-u);d.copy(f,h,u,u+l),i-=l}}return d.fill(0),{key:c,iv:f}}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=r(582),i=r(589),o=r(590),c=r(153),f=r(151),d=r(6).Buffer;function s(e){var t;"object"!==n(e)||d.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=d.from(e));var r,s,u=o(e,t),b=u.tag,h=u.data;switch(b){case"CERTIFICATE":s=a.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(s||(s=a.PublicKey.decode(h,"der")),r=s.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return a.RSAPublicKey.decode(s.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return s.subjectPrivateKey=s.subjectPublicKey,{type:"ec",data:s};case"1.2.840.10040.4.1":return s.algorithm.params.pub_key=a.DSAparam.decode(s.subjectPublicKey.data,"der"),{type:"dsa",data:s.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":h=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=i[e.algorithm.decrypt.cipher.algo.join(".")],o=e.algorithm.decrypt.cipher.iv,s=e.subjectPrivateKey,u=parseInt(a.split("-")[1],10)/8,b=f.pbkdf2Sync(t,r,n,u,"sha1"),h=c.createDecipheriv(a,b,o),l=[];return l.push(h.update(s)),l.push(h.final()),d.concat(l)}(h=a.EncryptedPrivateKey.decode(h,"der"),t);case"PRIVATE KEY":switch(r=(s=a.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return a.RSAPrivateKey.decode(s.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:s.algorithm.curve,privateKey:a.ECPrivateKey.decode(s.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return s.algorithm.params.priv_key=a.DSAparam.decode(s.subjectPrivateKey,"der"),{type:"dsa",params:s.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return a.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return a.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:a.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=a.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+b)}}e.exports=s,s.signature=a.signature},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;var n=r(71);t.assertIsHexString=function(e){if(!(0,n.isHexString)(e)){var t="This method only supports 0x-prefixed hex strings but input was: ".concat(e);throw new Error(t)}};t.assertIsBuffer=function(t){if(!e.isBuffer(t)){var r="This method only supports Buffer but input was: ".concat(t);throw new Error(r)}};t.assertIsArray=function(e){if(!Array.isArray(e)){var t="This method only supports number arrays but input was: ".concat(e);throw new Error(t)}};t.assertIsString=function(e){if("string"!=typeof e){var t="This method only supports strings but input was: ".concat(e);throw new Error(t)}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;var n=r(73);t.assertIsHexString=function(e){if(!(0,n.isHexString)(e)){var t="This method only supports 0x-prefixed hex strings but input was: ".concat(e);throw new Error(t)}};t.assertIsBuffer=function(t){if(!e.isBuffer(t)){var r="This method only supports Buffer but input was: ".concat(t);throw new Error(r)}};t.assertIsArray=function(e){if(!Array.isArray(e)){var t="This method only supports number arrays but input was: ".concat(e);throw new Error(t)}};t.assertIsString=function(e){if("string"!=typeof e){var t="This method only supports strings but input was: ".concat(e);throw new Error(t)}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;var n=r(74);t.assertIsHexString=function(e){if(!(0,n.isHexString)(e)){var t="This method only supports 0x-prefixed hex strings but input was: ".concat(e);throw new Error(t)}};t.assertIsBuffer=function(t){if(!e.isBuffer(t)){var r="This method only supports Buffer but input was: ".concat(t);throw new Error(r)}};t.assertIsArray=function(e){if(!Array.isArray(e)){var t="This method only supports number arrays but input was: ".concat(e);throw new Error(t)}};t.assertIsString=function(e){if("string"!=typeof e){var t="This method only supports strings but input was: ".concat(e);throw new Error(t)}}}).call(this,r(0).Buffer)},function(e,t,r){var n=r(737),a=r(310);e.exports=function(e){return null!=e&&a(e.length)&&!n(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t|=0;for(var r=Math.max(e.length-t,0),n=Array(r),a=0;a>>1|Y<<31)^(X>>>8|Y<<24)^X>>>7,Q=(Y>>>1|X<<31)^(Y>>>8|X<<24)^(Y>>>7|X<<25),ee=d[G-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ae=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),ie=d[G-7],oe=ie.high,ce=ie.low,fe=d[G-16],de=fe.high,se=fe.low;V=(V=(V=$+oe+((W=Q+ce)>>>0>>0?1:0))+ne+((W+=ae)>>>0>>0?1:0))+de+((W+=se)>>>0>>0?1:0),Z.high=V,Z.low=W}var ue,be=N&z^~N&q,he=U&F^~U&H,le=O&j^O&R^j&R,pe=P&B^P&C^B&C,me=(O>>>28|P<<4)^(O<<30|P>>>2)^(O<<25|P>>>7),xe=(P>>>28|O<<4)^(P<<30|O>>>2)^(P<<25|O>>>7),ye=(N>>>14|U<<18)^(N>>>18|U<<14)^(N<<23|U>>>9),ve=(U>>>14|N<<18)^(U>>>18|N<<14)^(U<<23|N>>>9),ge=f[G],we=ge.high,_e=ge.low,Me=D+ye+((ue=K+ve)>>>0>>0?1:0),ke=xe+pe;D=q,K=H,q=z,H=F,z=N,F=U,N=I+(Me=(Me=(Me=Me+be+((ue+=he)>>>0>>0?1:0))+we+((ue+=_e)>>>0<_e>>>0?1:0))+V+((ue+=W)>>>0>>0?1:0))+((U=L+ue|0)>>>0>>0?1:0)|0,I=R,L=C,R=j,C=B,j=O,B=P,O=Me+(me+le+(ke>>>0>>0?1:0))+((P=ue+ke|0)>>>0>>0?1:0)|0}l=n.low=l+P,n.high=h+O+(l>>>0

>>0?1:0),m=a.low=m+B,a.high=p+j+(m>>>0>>0?1:0),y=i.low=y+C,i.high=x+R+(y>>>0>>0?1:0),g=o.low=g+L,o.high=v+I+(g>>>0>>0?1:0),_=c.low=_+U,c.high=w+N+(_>>>0>>0?1:0),k=s.low=k+F,s.high=M+z+(k>>>0>>0?1:0),A=u.low=A+H,u.high=S+q+(A>>>0>>0?1:0),T=b.low=T+K,b.high=E+D+(T>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=r._createHelper(s),t.HmacSHA512=r._createHmacHelper(s)}(),e.SHA512},"object"===c(t)?e.exports=t=o(r(2),r(48)):(a=[r(2),r(48)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1=t.rlp=t.BN=void 0;var i=r(125);t.secp256k1=i;var o=r(18),c=r(9);t.BN=c;var f=r(21);t.rlp=f,Object.assign(t,o),a(r(402),t),a(r(403),t),a(r(131),t),a(r(442),t),a(r(81),t),a(r(443),t)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.ecdhUnsafe=t.ecdh=t.recover=t.verify=t.sign=t.signatureImportLax=t.signatureImport=t.signatureExport=t.signatureNormalize=t.publicKeyCombine=t.publicKeyTweakMul=t.publicKeyTweakAdd=t.publicKeyVerify=t.publicKeyConvert=t.publicKeyCreate=t.privateKeyTweakMul=t.privateKeyTweakAdd=t.privateKeyModInverse=t.privateKeyNegate=t.privateKeyImport=t.privateKeyExport=t.privateKeyVerify=void 0;var n=r(22),a=r(398),i=r(399);t.privateKeyVerify=function(e){return 32===e.length&&n.privateKeyVerify(Uint8Array.from(e))},t.privateKeyExport=function(e,t){if(32!==e.length)throw new RangeError("private key length is invalid");var r=a.privateKeyExport(e,t);return i.privateKeyExport(e,r,t)},t.privateKeyImport=function(e){if(null!==(e=i.privateKeyImport(e))&&32===e.length&&t.privateKeyVerify(e))return e;throw new Error("couldn't import from DER format")},t.privateKeyNegate=function(t){return e.from(n.privateKeyNegate(Uint8Array.from(t)))},t.privateKeyModInverse=function(t){if(32!==t.length)throw new Error("private key length is invalid");return e.from(a.privateKeyModInverse(Uint8Array.from(t)))},t.privateKeyTweakAdd=function(t,r){return e.from(n.privateKeyTweakAdd(Uint8Array.from(t),r))},t.privateKeyTweakMul=function(t,r){return e.from(n.privateKeyTweakMul(Uint8Array.from(t),Uint8Array.from(r)))},t.publicKeyCreate=function(t,r){return e.from(n.publicKeyCreate(Uint8Array.from(t),r))},t.publicKeyConvert=function(t,r){return e.from(n.publicKeyConvert(Uint8Array.from(t),r))},t.publicKeyVerify=function(e){return(33===e.length||65===e.length)&&n.publicKeyVerify(Uint8Array.from(e))},t.publicKeyTweakAdd=function(t,r,a){return e.from(n.publicKeyTweakAdd(Uint8Array.from(t),Uint8Array.from(r),a))},t.publicKeyTweakMul=function(t,r,a){return e.from(n.publicKeyTweakMul(Uint8Array.from(t),Uint8Array.from(r),a))},t.publicKeyCombine=function(t,r){var a=[];return t.forEach((function(e){a.push(Uint8Array.from(e))})),e.from(n.publicKeyCombine(a,r))},t.signatureNormalize=function(t){return e.from(n.signatureNormalize(Uint8Array.from(t)))},t.signatureExport=function(t){return e.from(n.signatureExport(Uint8Array.from(t)))},t.signatureImport=function(t){return e.from(n.signatureImport(Uint8Array.from(t)))},t.signatureImportLax=function(e){if(0===e.length)throw new RangeError("signature length is invalid");var t=i.signatureImportLax(e);if(null===t)throw new Error("couldn't parse DER signature");return a.signatureImport(t)},t.sign=function(t,r,a){if(null===a)throw new TypeError("options should be an Object");var i=void 0;if(a){if(i={},null===a.data)throw new TypeError("options.data should be a Buffer");if(a.data){if(32!=a.data.length)throw new RangeError("options.data length is invalid");i.data=new Uint8Array(a.data)}if(null===a.noncefn)throw new TypeError("options.noncefn should be a Function");a.noncefn&&(i.noncefn=function(t,r,n,i,o){var c=null!=n?e.from(n):null,f=null!=i?e.from(i):null,d=e.from("");return a.noncefn&&(d=a.noncefn(e.from(t),e.from(r),c,f,o)),new Uint8Array(d)})}var o=n.ecdsaSign(Uint8Array.from(t),Uint8Array.from(r),i);return{signature:e.from(o.signature),recovery:o.recid}},t.verify=function(e,t,r){return n.ecdsaVerify(Uint8Array.from(t),Uint8Array.from(e),r)},t.recover=function(t,r,a,i){return e.from(n.ecdsaRecover(Uint8Array.from(r),a,Uint8Array.from(t),i))},t.ecdh=function(t,r){return e.from(n.ecdh(Uint8Array.from(t),Uint8Array.from(r),{}))},t.ecdhUnsafe=function(t,r,n){if(33!==t.length&&65!==t.length)throw new RangeError("public key length is invalid");if(32!==r.length)throw new RangeError("private key length is invalid");return e.from(a.ecdhUnsafe(Uint8Array.from(t),Uint8Array.from(r),n))}}).call(this,r(0).Buffer)},function(e,t,r){e.exports=r(376)(r(377))},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a;function i(e){this.rand=e}if(e.exports=function(e){return a||(a=new i(null)),a.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r>>32-t}function d(e,t,r,n,a,i,o){return f(e+(t&r|~t&n)+a+i|0,o)+t|0}function s(e,t,r,n,a,i,o){return f(e+(t&n|r&~n)+a+i|0,o)+t|0}function u(e,t,r,n,a,i,o){return f(e+(t^r^n)+a+i|0,o)+t|0}function b(e,t,r,n,a,i,o){return f(e+(r^(t|~n))+a+i|0,o)+t|0}n(c,a),c.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,a=this._c,i=this._d;r=d(r,n,a,i,e[0],3614090360,7),i=d(i,r,n,a,e[1],3905402710,12),a=d(a,i,r,n,e[2],606105819,17),n=d(n,a,i,r,e[3],3250441966,22),r=d(r,n,a,i,e[4],4118548399,7),i=d(i,r,n,a,e[5],1200080426,12),a=d(a,i,r,n,e[6],2821735955,17),n=d(n,a,i,r,e[7],4249261313,22),r=d(r,n,a,i,e[8],1770035416,7),i=d(i,r,n,a,e[9],2336552879,12),a=d(a,i,r,n,e[10],4294925233,17),n=d(n,a,i,r,e[11],2304563134,22),r=d(r,n,a,i,e[12],1804603682,7),i=d(i,r,n,a,e[13],4254626195,12),a=d(a,i,r,n,e[14],2792965006,17),r=s(r,n=d(n,a,i,r,e[15],1236535329,22),a,i,e[1],4129170786,5),i=s(i,r,n,a,e[6],3225465664,9),a=s(a,i,r,n,e[11],643717713,14),n=s(n,a,i,r,e[0],3921069994,20),r=s(r,n,a,i,e[5],3593408605,5),i=s(i,r,n,a,e[10],38016083,9),a=s(a,i,r,n,e[15],3634488961,14),n=s(n,a,i,r,e[4],3889429448,20),r=s(r,n,a,i,e[9],568446438,5),i=s(i,r,n,a,e[14],3275163606,9),a=s(a,i,r,n,e[3],4107603335,14),n=s(n,a,i,r,e[8],1163531501,20),r=s(r,n,a,i,e[13],2850285829,5),i=s(i,r,n,a,e[2],4243563512,9),a=s(a,i,r,n,e[7],1735328473,14),r=u(r,n=s(n,a,i,r,e[12],2368359562,20),a,i,e[5],4294588738,4),i=u(i,r,n,a,e[8],2272392833,11),a=u(a,i,r,n,e[11],1839030562,16),n=u(n,a,i,r,e[14],4259657740,23),r=u(r,n,a,i,e[1],2763975236,4),i=u(i,r,n,a,e[4],1272893353,11),a=u(a,i,r,n,e[7],4139469664,16),n=u(n,a,i,r,e[10],3200236656,23),r=u(r,n,a,i,e[13],681279174,4),i=u(i,r,n,a,e[0],3936430074,11),a=u(a,i,r,n,e[3],3572445317,16),n=u(n,a,i,r,e[6],76029189,23),r=u(r,n,a,i,e[9],3654602809,4),i=u(i,r,n,a,e[12],3873151461,11),a=u(a,i,r,n,e[15],530742520,16),r=b(r,n=u(n,a,i,r,e[2],3299628645,23),a,i,e[0],4096336452,6),i=b(i,r,n,a,e[7],1126891415,10),a=b(a,i,r,n,e[14],2878612391,15),n=b(n,a,i,r,e[5],4237533241,21),r=b(r,n,a,i,e[12],1700485571,6),i=b(i,r,n,a,e[3],2399980690,10),a=b(a,i,r,n,e[10],4293915773,15),n=b(n,a,i,r,e[1],2240044497,21),r=b(r,n,a,i,e[8],1873313359,6),i=b(i,r,n,a,e[15],4264355552,10),a=b(a,i,r,n,e[6],2734768916,15),n=b(n,a,i,r,e[13],1309151649,21),r=b(r,n,a,i,e[4],4149444226,6),i=b(i,r,n,a,e[11],3174756917,10),a=b(a,i,r,n,e[2],718787259,15),n=b(n,a,i,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+a|0,this._d=this._d+i|0},c.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 e=i.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=c},function(e,t,r){"use strict";var n=r(65).codes.ERR_STREAM_PREMATURE_CLOSE;function a(){}e.exports=function e(t,r,i){if("function"==typeof r)return e(t,null,r);r||(r={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),a=0;a>>32-t}function p(e,t,r,n,a,i,o,c){return l(e+(t^r^n)+i+o|0,c)+a|0}function m(e,t,r,n,a,i,o,c){return l(e+(t&r|~t&n)+i+o|0,c)+a|0}function x(e,t,r,n,a,i,o,c){return l(e+((t|~r)^n)+i+o|0,c)+a|0}function y(e,t,r,n,a,i,o,c){return l(e+(t&n|r&~n)+i+o|0,c)+a|0}function v(e,t,r,n,a,i,o,c){return l(e+(t^(r|~n))+i+o|0,c)+a|0}a(h,i),h.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,a=0|this._c,i=0|this._d,h=0|this._e,g=0|this._a,w=0|this._b,_=0|this._c,M=0|this._d,k=0|this._e,S=0;S<80;S+=1){var A,E;S<16?(A=p(r,n,a,i,h,e[c[S]],u[0],d[S]),E=v(g,w,_,M,k,e[f[S]],b[0],s[S])):S<32?(A=m(r,n,a,i,h,e[c[S]],u[1],d[S]),E=y(g,w,_,M,k,e[f[S]],b[1],s[S])):S<48?(A=x(r,n,a,i,h,e[c[S]],u[2],d[S]),E=x(g,w,_,M,k,e[f[S]],b[2],s[S])):S<64?(A=y(r,n,a,i,h,e[c[S]],u[3],d[S]),E=m(g,w,_,M,k,e[f[S]],b[3],s[S])):(A=v(r,n,a,i,h,e[c[S]],u[4],d[S]),E=p(g,w,_,M,k,e[f[S]],b[4],s[S])),r=h,h=i,i=l(a,10),a=n,n=A,g=k,k=M,M=l(_,10),_=w,w=E}var T=this._b+a+M|0;this._b=this._c+i+k|0,this._c=this._d+h+g|0,this._d=this._e+r+w|0,this._e=this._a+n+_|0,this._a=T},h.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 e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(427),t.sha1=r(428),t.sha224=r(429),t.sha256=r(220),t.sha384=r(430),t.sha512=r(221)},function(e,t,r){var n=r(0),a=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return a(e,t,r)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=o),i(a,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t,n,a){var i=r(103);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var a=n.callback;t.pendingcb--,a(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var c,f=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:i.nextTick;y.WritableState=x;var d=Object.create(r(83));d.inherits=r(4);var s={deprecate:r(102)},u=r(223),b=r(138).Buffer,h=a.Uint8Array||function(){};var l,p=r(224);function m(){}function x(e,t){c=c||r(50),e=e||{};var n=t instanceof c;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var a=e.highWaterMark,d=e.writableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:n&&(d||0===d)?d:s,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 u=!1===e.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,a=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,a){--t.pendingcb,r?(i.nextTick(a,n),i.nextTick(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(a(n),e._writableState.errorEmitted=!0,e.emit("error",n),k(e,t))}(e,r,n,t,a);else{var o=_(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||w(e,r),n?f(g,e,r,o,a):g(e,r,o,a)}}(t,e)},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 o(this)}function y(e){if(c=c||r(50),!(l.call(y,this)||this instanceof c))return new y(e);this._writableState=new x(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function v(e,t,r,n,a,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(a,t.onwrite):e._write(a,i,t.onwrite),t.sync=!1}function g(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),k(e,t)}function w(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,a=new Array(n),i=t.corkedRequestsFree;i.entry=r;for(var c=0,f=!0;r;)a[c]=r,r.isBuf||(f=!1),r=r.next,c+=1;a.allBuffers=f,v(e,t,!0,t.length,a,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var d=r.chunk,s=r.encoding,u=r.callback;if(v(e,t,!1,t.objectMode?1:d.length,d,s,u),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),k(e,t)}))}function k(e,t){var r=_(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(M,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}d.inherits(y,u),x.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(x.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===y&&(e&&e._writableState instanceof x)}})):l=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,r){var n,a=this._writableState,o=!1,c=!a.objectMode&&(n=e,b.isBuffer(n)||n instanceof h);return c&&!b.isBuffer(e)&&(e=function(e){return b.from(e)}(e)),"function"==typeof t&&(r=t,t=null),c?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof r&&(r=m),a.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),i.nextTick(t,r)}(this,r):(c||function(e,t,r,n){var a=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),i.nextTick(n,o),a=!1),a}(this,a,e,r))&&(a.pendingcb++,o=function(e,t,r,n,a,i){if(!r){var o=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=b.from(t,r));return t}(t,n,a);n!==o&&(r=!0,a="buffer",n=o)}var c=t.objectMode?1:n.length;t.length+=c;var f=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,k(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=p.destroy,y.prototype._undestroy=p.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(11),r(104).setImmediate,r(13))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.ecdhUnsafe=t.ecdh=t.recover=t.verify=t.sign=t.signatureImportLax=t.signatureImport=t.signatureExport=t.signatureNormalize=t.publicKeyCombine=t.publicKeyTweakMul=t.publicKeyTweakAdd=t.publicKeyVerify=t.publicKeyConvert=t.publicKeyCreate=t.privateKeyTweakMul=t.privateKeyTweakAdd=t.privateKeyModInverse=t.privateKeyNegate=t.privateKeyImport=t.privateKeyExport=t.privateKeyVerify=void 0;var n=r(22),a=r(448),i=r(449);t.privateKeyVerify=function(e){return 32===e.length&&n.privateKeyVerify(Uint8Array.from(e))},t.privateKeyExport=function(e,t){if(32!==e.length)throw new RangeError("private key length is invalid");var r=a.privateKeyExport(e,t);return i.privateKeyExport(e,r,t)},t.privateKeyImport=function(e){if(null!==(e=i.privateKeyImport(e))&&32===e.length&&t.privateKeyVerify(e))return e;throw new Error("couldn't import from DER format")},t.privateKeyNegate=function(t){return e.from(n.privateKeyNegate(Uint8Array.from(t)))},t.privateKeyModInverse=function(t){if(32!==t.length)throw new Error("private key length is invalid");return e.from(a.privateKeyModInverse(Uint8Array.from(t)))},t.privateKeyTweakAdd=function(t,r){return e.from(n.privateKeyTweakAdd(Uint8Array.from(t),r))},t.privateKeyTweakMul=function(t,r){return e.from(n.privateKeyTweakMul(Uint8Array.from(t),Uint8Array.from(r)))},t.publicKeyCreate=function(t,r){return e.from(n.publicKeyCreate(Uint8Array.from(t),r))},t.publicKeyConvert=function(t,r){return e.from(n.publicKeyConvert(Uint8Array.from(t),r))},t.publicKeyVerify=function(e){return(33===e.length||65===e.length)&&n.publicKeyVerify(Uint8Array.from(e))},t.publicKeyTweakAdd=function(t,r,a){return e.from(n.publicKeyTweakAdd(Uint8Array.from(t),Uint8Array.from(r),a))},t.publicKeyTweakMul=function(t,r,a){return e.from(n.publicKeyTweakMul(Uint8Array.from(t),Uint8Array.from(r),a))},t.publicKeyCombine=function(t,r){var a=[];return t.forEach((function(e){a.push(Uint8Array.from(e))})),e.from(n.publicKeyCombine(a,r))},t.signatureNormalize=function(t){return e.from(n.signatureNormalize(Uint8Array.from(t)))},t.signatureExport=function(t){return e.from(n.signatureExport(Uint8Array.from(t)))},t.signatureImport=function(t){return e.from(n.signatureImport(Uint8Array.from(t)))},t.signatureImportLax=function(e){if(0===e.length)throw new RangeError("signature length is invalid");var t=i.signatureImportLax(e);if(null===t)throw new Error("couldn't parse DER signature");return a.signatureImport(t)},t.sign=function(t,r,a){if(null===a)throw new TypeError("options should be an Object");var i=void 0;if(a){if(i={},null===a.data)throw new TypeError("options.data should be a Buffer");if(a.data){if(32!=a.data.length)throw new RangeError("options.data length is invalid");i.data=new Uint8Array(a.data)}if(null===a.noncefn)throw new TypeError("options.noncefn should be a Function");a.noncefn&&(i.noncefn=function(t,r,n,i,o){var c=null!=n?e.from(n):null,f=null!=i?e.from(i):null,d=e.from("");return a.noncefn&&(d=a.noncefn(e.from(t),e.from(r),c,f,o)),new Uint8Array(d)})}var o=n.ecdsaSign(Uint8Array.from(t),Uint8Array.from(r),i);return{signature:e.from(o.signature),recovery:o.recid}},t.verify=function(e,t,r){return n.ecdsaVerify(Uint8Array.from(t),Uint8Array.from(e),r)},t.recover=function(t,r,a,i){return e.from(n.ecdsaRecover(Uint8Array.from(r),a,Uint8Array.from(t),i))},t.ecdh=function(t,r){return e.from(n.ecdh(Uint8Array.from(t),Uint8Array.from(r),{}))},t.ecdhUnsafe=function(t,r,n){if(33!==t.length&&65!==t.length)throw new RangeError("public key length is invalid");if(32!==r.length)throw new RangeError("private key length is invalid");return e.from(a.ecdhUnsafe(Uint8Array.from(t),Uint8Array.from(r),n))}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160=t.sha256=t.keccak256=t.keccak=void 0;var n=r(38),a=n.keccak224,i=n.keccak384,o=n.keccak256,c=n.keccak512,f=r(19),d=r(18),s=r(21),u=r(84);t.keccak=function(t,r){switch(void 0===r&&(r=256),t="string"!=typeof t||d.isHexString(t)?u.toBuffer(t):e.from(t,"utf8"),r||(r=256),r){case 224:return a(t);case 256:return o(t);case 384:return i(t);case 512:return c(t);default:throw new Error("Invald algorithm: keccak"+r)}},t.keccak256=function(e){return t.keccak(e)},t.sha256=function(e){return e=u.toBuffer(e),f("sha256").update(e).digest()},t.ripemd160=function(e,t){e=u.toBuffer(e);var r=f("rmd160").update(e).digest();return!0===t?u.setLength(r,32):r},t.rlphash=function(e){return t.keccak(s.encode(e))}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160FromArray=t.ripemd160FromString=t.ripemd160=t.sha256FromArray=t.sha256FromString=t.sha256=t.keccakFromArray=t.keccakFromHexString=t.keccakFromString=t.keccak256=t.keccak=void 0;var n=r(38),a=r(19),i=r(40),o=r(52),c=r(107);t.keccak=function(e,t){switch(void 0===t&&(t=256),(0,c.assertIsBuffer)(e),t){case 224:return(0,n.keccak224)(e);case 256:return(0,n.keccak256)(e);case 384:return(0,n.keccak384)(e);case 512:return(0,n.keccak512)(e);default:throw new Error("Invald algorithm: keccak".concat(t))}};t.keccak256=function(e){return(0,t.keccak)(e)};t.keccakFromString=function(r,n){void 0===n&&(n=256),(0,c.assertIsString)(r);var a=e.from(r,"utf8");return(0,t.keccak)(a,n)};t.keccakFromHexString=function(e,r){return void 0===r&&(r=256),(0,c.assertIsHexString)(e),(0,t.keccak)((0,o.toBuffer)(e),r)};t.keccakFromArray=function(e,r){return void 0===r&&(r=256),(0,c.assertIsArray)(e),(0,t.keccak)((0,o.toBuffer)(e),r)};var f=function(e){return e=(0,o.toBuffer)(e),a("sha256").update(e).digest()};t.sha256=function(e){return(0,c.assertIsBuffer)(e),f(e)};t.sha256FromString=function(e){return(0,c.assertIsString)(e),f(e)};t.sha256FromArray=function(e){return(0,c.assertIsArray)(e),f(e)};var d=function(e,t){e=(0,o.toBuffer)(e);var r=a("rmd160").update(e).digest();return!0===t?(0,o.setLengthLeft)(r,32):r};t.ripemd160=function(e,t){return(0,c.assertIsBuffer)(e),d(e,t)};t.ripemd160FromString=function(e,t){return(0,c.assertIsString)(e),d(e,t)};t.ripemd160FromArray=function(e,t){return(0,c.assertIsArray)(e),d(e,t)};t.rlphash=function(e){return(0,t.keccak)(i.rlp.encode(e))}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0;var n,a=r(40),i=r(68),o=r(52);function c(t){return(0,o.unpadBuffer)(t.toArrayLike(e))}t.bnToHex=function(e){return"0x".concat(e.toString(16))},t.bnToUnpaddedBuffer=c,t.bnToRlp=function(e){return c(e)},function(e){e[e.Number=0]="Number",e[e.BN=1]="BN",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(n=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0!==e){if("string"==typeof e&&!(0,i.isHexString)(e))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(e));if("number"==typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var r=(0,o.toBuffer)(e);if(t===n.Buffer)return r;if(t===n.BN)return new a.BN(r);if(t===n.Number){var c=new a.BN(r),f=new a.BN(Number.MAX_SAFE_INTEGER.toString());if(c.gt(f))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return c.toNumber()}return"0x".concat(r.toString("hex"))}}}).call(this,r(0).Buffer)},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,a="~";function i(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function c(e,t,r,n,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var c=new o(r,n||e,i),f=a?a+t:t;return e._events[f]?e._events[f].fn?e._events[f]=[e._events[f],c]:e._events[f].push(c):(e._events[f]=c,e._eventsCount++),e}function f(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function d(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(a=!1)),d.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(a?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},d.prototype.listeners=function(e){var t=a?a+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,i=r.length,o=new Array(i);n 2 bytes.");var r=i.decode(e);if(!t.isValidCode(r))throw new Error("multihash unknown function code: 0x".concat(r.toString(16)));e=e.slice(i.decode.bytes);var a=i.decode(e);if(a<0)throw new Error("multihash invalid length: ".concat(a));if((e=e.slice(i.decode.bytes)).length!==a)throw new Error("multihash length inconsistent: 0x".concat(e.toString("hex")));return{code:r,name:o.codes[r],length:a,digest:e}},t.encode=function(e,r,a){if(!e||void 0===r)throw new Error("multihash encode requires at least two args: digest, code");var o=t.coerceCode(r);if(!n.isBuffer(e))throw new Error("digest should be a Buffer");if(null==a&&(a=e.length),a&&e.length!==a)throw new Error("digest length should be equal to specified length.");return n.concat([n.from(i.encode(o)),n.from(i.encode(a)),e])},t.coerceCode=function(e){var r=e;if("string"==typeof e){if(void 0===o.names[e])throw new Error("Unrecognized hash function named: ".concat(e));r=o.names[e]}if("number"!=typeof r)throw new Error("Hash function code should be a number. Got: ".concat(r));if(void 0===o.codes[r]&&!t.isAppCode(r))throw new Error("Unrecognized function code: ".concat(r));return r},t.isAppCode=function(e){return e>0&&e<16},t.isValidCode=function(e){return!!t.isAppCode(e)||!!o.codes[e]},t.validate=c,t.prefix=function(e){return c(e),e.slice(0,2)}},function(e,t,r){"use strict";var n=r(6).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r>>0,s=new Uint8Array(o);e[r];){var u=t[e.charCodeAt(r)];if(255===u)return;for(var b=0,h=o-1;(0!==u||b>>0,s[h]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");i=b,r++}for(var l=o-i;l!==o&&0===s[l];)l++;var p=n.allocUnsafe(a+(o-l));p.fill(0,0,a);for(var m=a;l!==o;)p[m++]=s[l++];return p}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=n.from(t)),!n.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,a=0,i=0,o=t.length;i!==o&&0===t[i];)i++,r++;for(var d=(o-i)*s+1>>>0,u=new Uint8Array(d);i!==o;){for(var b=t[i],h=0,l=d-1;(0!==b||h>>0,u[l]=b%c>>>0,b=b/c>>>0;if(0!==b)throw new Error("Non-zero carry");a=h,i++}for(var p=d-a;p!==d&&0===u[p];)p++;for(var m=f.repeat(r);pr)?t=("rmd160"===e?new f:d(e)).update(t).digest():t.length0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(a,r);return t+=this._buffer(e,t),a},a.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},a.prototype._pad=function(e,t){if(0===t)return!1;for(;t=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function o(e,r){var a=function(e){var t=i(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(r),o=r.modulus.byteLength(),c=new n(e).mul(a.blinder).umod(r.modulus),f=c.toRed(n.mont(r.prime1)),d=c.toRed(n.mont(r.prime2)),s=r.coefficient,u=r.prime1,b=r.prime2,h=f.redPow(r.exponent1).fromRed(),l=d.redPow(r.exponent2).fromRed(),p=h.isub(l).imul(s).umod(u).imul(b);return l.iadd(p).imul(a.unblinder).umod(r.modulus).toArrayLike(t,"be",o)}o.getr=i,e.exports=o}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a,i=r(0),o=i.Buffer,c={};for(a in i)i.hasOwnProperty(a)&&"SlowBuffer"!==a&&"Buffer"!==a&&(c[a]=i[a]);var f=c.Buffer={};for(a in o)o.hasOwnProperty(a)&&"allocUnsafe"!==a&&"allocUnsafeSlow"!==a&&(f[a]=o[a]);if(c.Buffer.prototype=o.prototype,f.from&&f.from!==Uint8Array.from||(f.from=function(e,t,r){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+n(e));if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+n(e));return o(e,t,r)}),f.alloc||(f.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+n(e));if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var a=o(e);return t&&0!==t.length?"string"==typeof r?a.fill(t,r):a.fill(t):a.fill(0),a}),!c.kStringMaxLength)try{c.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(e){}c.constants||(c.constants={MAX_LENGTH:c.kMaxLength},c.kStringMaxLength&&(c.constants.MAX_STRING_LENGTH=c.kStringMaxLength)),e.exports=c}).call(this,r(11))},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=r(159).Reporter,i=r(91).EncoderBuffer,o=r(91).DecoderBuffer,c=r(31),f=["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"],d=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(f);function s(e,t,r){var n={};this._baseState=n,n.name=r,n.enc=e,n.parent=t||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())}e.exports=s;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];s.prototype.clone=function(){var e=this._baseState,t={};u.forEach((function(r){t[r]=e[r]}));var r=new this.constructor(t.parent);return r._baseState=t,r},s.prototype._wrap=function(){var e=this._baseState;d.forEach((function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}}),this)},s.prototype._init=function(e){var t=this._baseState;c(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),c.equal(t.children.length,1,"Root node can have only one child")},s.prototype._useArgs=function(e){var t=this._baseState,r=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==r.length&&(c(null===t.children),t.children=r,r.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(c(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!==n(e)||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(r){r==(0|r)&&(r|=0);var n=e[r];t[n]=r})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){s.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),f.forEach((function(e){s.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return c(null===t.tag),t.tag=e,this._useArgs(r),this}})),s.prototype.use=function(e){c(e);var t=this._baseState;return c(null===t.use),t.use=e,this},s.prototype.optional=function(){return this._baseState.optional=!0,this},s.prototype.def=function(e){var t=this._baseState;return c(null===t.default),t.default=e,t.optional=!0,this},s.prototype.explicit=function(e){var t=this._baseState;return c(null===t.explicit&&null===t.implicit),t.explicit=e,this},s.prototype.implicit=function(e){var t=this._baseState;return c(null===t.explicit&&null===t.implicit),t.implicit=e,this},s.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},s.prototype.key=function(e){var t=this._baseState;return c(null===t.key),t.key=e,this},s.prototype.any=function(){return this._baseState.any=!0,this},s.prototype.choice=function(e){var t=this._baseState;return c(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},s.prototype.contains=function(e){var t=this._baseState;return c(null===t.use),t.contains=e,this},s.prototype._decode=function(e,t){var r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));var n,a=r.default,i=!0,c=null;if(null!==r.key&&(c=e.enterKey(r.key)),r.optional){var f=null;if(null!==r.explicit?f=r.explicit:null!==r.implicit?f=r.implicit:null!==r.tag&&(f=r.tag),null!==f||r.any){if(i=this._peekTag(e,f,r.any),e.isError(i))return i}else{var d=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),i=!0}catch(e){i=!1}e.restore(d)}}if(r.obj&&i&&(n=e.enterObject()),i){if(null!==r.explicit){var s=this._decodeTag(e,r.explicit);if(e.isError(s))return s;e=s}var u=e.offset;if(null===r.use&&null===r.choice){var b;r.any&&(b=e.save());var h=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(h))return h;r.any?a=e.raw(b):e=h}if(t&&t.track&&null!==r.tag&&t.track(e.path(),u,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),r.any||(a=null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t)),e.isError(a))return a;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(e,t)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var l=new o(a);a=this._getUse(r.contains,e._reporterState.obj)._decode(l,t)}}return r.obj&&i&&(a=e.leaveObject(n)),null===r.key||null===a&&!0!==i?null!==c&&e.exitKey(c):e.leaveKey(c,r.key,a),a},s.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},s.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),c(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},s.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,a=!1;return Object.keys(r.choice).some((function(i){var o=e.save(),c=r.choice[i];try{var f=c._decode(e,t);if(e.isError(f))return!1;n={type:i,value:f},a=!0}catch(t){return e.restore(o),!1}return!0}),this),a?n:e.error("Choice not matched")},s.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},s.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var a=this._encodeValue(e,t,r);if(void 0!==a&&!this._skipDefault(a,t,r))return a}},s.prototype._encodeValue=function(e,t,r){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new a);var o=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}var c=null,f=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)c=this._getUse(i.contains,r)._encode(e,t),f=!0;else if(i.children)c=i.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var a=t.enterKey(r._baseState.key);if("object"!==n(e))return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(a),i}),this).filter((function(e){return e})),c=this._createEncoderBuffer(c);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var d=this.clone();d._baseState.implicit=null,c=this._createEncoderBuffer(e.map((function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)}),d))}else null!==i.use?o=this._getUse(i.use,r)._encode(e,t):(c=this._encodePrimitive(i.tag,e),f=!0);if(!i.any&&null===i.choice){var s=null!==i.implicit?i.implicit:i.tag,u=null===i.implicit?"universal":"context";null===s?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(s,f,u,c))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},s.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||c(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},s.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},s.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},s.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},function(e,t,r){"use strict";var n=r(4);function a(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function i(e,t){this.path=e,this.rethrow(t)}t.Reporter=a,a.prototype.isError=function(e){return e instanceof i},a.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},a.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},a.prototype.enterKey=function(e){return this._reporterState.path.push(e)},a.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},a.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},a.prototype.path=function(){return this._reporterState.path.join("/")},a.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},a.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},a.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof i;if(t=n?e:new i(r.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},a.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(i,Error),i.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,i),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,r){"use strict";function n(e){var t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);var n=e[r];t[n]=r})),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n(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=n(t.tag)},function(e,t,r){"use strict";(function(t){!function(r){function n(e){var t=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]),r=1779033703,n=3144134277,a=1013904242,i=2773480762,o=1359893119,c=2600822924,f=528734635,d=1541459225,s=new Uint32Array(64);function u(e){for(var u=0,b=e.length;b>=64;){var h=r,l=n,p=a,m=i,x=o,y=c,v=f,g=d,w=void 0,_=void 0,M=void 0,k=void 0,S=void 0;for(_=0;_<16;_++)M=u+4*_,s[_]=(255&e[M])<<24|(255&e[M+1])<<16|(255&e[M+2])<<8|255&e[M+3];for(_=16;_<64;_++)k=((w=s[_-2])>>>17|w<<15)^(w>>>19|w<<13)^w>>>10,S=((w=s[_-15])>>>7|w<<25)^(w>>>18|w<<14)^w>>>3,s[_]=(k+s[_-7]|0)+(S+s[_-16]|0)|0;for(_=0;_<64;_++)k=(((x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7))+(x&y^~x&v)|0)+(g+(t[_]+s[_]|0)|0)|0,S=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&l^h&p^l&p)|0,g=v,v=y,y=x,x=m+k|0,m=p,p=l,l=h,h=k+S|0;r=r+h|0,n=n+l|0,a=a+p|0,i=i+m|0,o=o+x|0,c=c+y|0,f=f+v|0,d=d+g|0,u+=64,b-=64}}u(e);var b,h=e.length%64,l=e.length/536870912|0,p=e.length<<3,m=h<56?56:120,x=e.slice(e.length-h,e.length);for(x.push(128),b=h+1;b>>24&255),x.push(l>>>16&255),x.push(l>>>8&255),x.push(l>>>0&255),x.push(p>>>24&255),x.push(p>>>16&255),x.push(p>>>8&255),x.push(p>>>0&255),u(x),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>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,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255,f>>>24&255,f>>>16&255,f>>>8&255,f>>>0&255,d>>>24&255,d>>>16&255,d>>>8&255,d>>>0&255]}function a(e,t,r){e=e.length<=64?e:n(e);var a,i=64+t.length+4,o=new Array(i),c=new Array(64),f=[];for(a=0;a<64;a++)o[a]=54;for(a=0;a=i-4;e--){if(o[e]++,o[e]<=255)return;o[e]=0}}for(;r>=32;)d(),f=f.concat(n(c.concat(n(o)))),r-=32;return r>0&&(d(),f=f.concat(n(c.concat(n(o))).slice(0,r))),f}function i(e,t,r,n,a){var i;for(d(e,16*(2*r-1),a,0,16),i=0;i<2*r;i++)f(e,16*i,a,16),c(a,n),d(a,0,e,t+16*i,16);for(i=0;i>>32-t}function c(e,t){d(e,0,t,0,16);for(var r=8;r>0;r-=2)t[4]^=o(t[0]+t[12],7),t[8]^=o(t[4]+t[0],9),t[12]^=o(t[8]+t[4],13),t[0]^=o(t[12]+t[8],18),t[9]^=o(t[5]+t[1],7),t[13]^=o(t[9]+t[5],9),t[1]^=o(t[13]+t[9],13),t[5]^=o(t[1]+t[13],18),t[14]^=o(t[10]+t[6],7),t[2]^=o(t[14]+t[10],9),t[6]^=o(t[2]+t[14],13),t[10]^=o(t[6]+t[2],18),t[3]^=o(t[15]+t[11],7),t[7]^=o(t[3]+t[15],9),t[11]^=o(t[7]+t[3],13),t[15]^=o(t[11]+t[7],18),t[1]^=o(t[0]+t[3],7),t[2]^=o(t[1]+t[0],9),t[3]^=o(t[2]+t[1],13),t[0]^=o(t[3]+t[2],18),t[6]^=o(t[5]+t[4],7),t[7]^=o(t[6]+t[5],9),t[4]^=o(t[7]+t[6],13),t[5]^=o(t[4]+t[7],18),t[11]^=o(t[10]+t[9],7),t[8]^=o(t[11]+t[10],9),t[9]^=o(t[8]+t[11],13),t[10]^=o(t[9]+t[8],18),t[12]^=o(t[15]+t[14],7),t[13]^=o(t[12]+t[15],9),t[14]^=o(t[13]+t[12],13),t[15]^=o(t[14]+t[13],18);for(var n=0;n<16;++n)e[n]+=t[n]}function f(e,t,r,n){for(var a=0;a=256)return!1}return!0}function u(e,t){if("number"!=typeof e||e%1)throw new Error("invalid "+t);return e}function b(e,r,n,o,c,b,h){if(n=u(n,"N"),o=u(o,"r"),c=u(c,"p"),b=u(b,"dkLen"),0===n||0!=(n&n-1))throw new Error("N must be power of 2");if(n>2147483647/128/o)throw new Error("N too large");if(o>2147483647/128/c)throw new Error("r too large");if(!s(e))throw new Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!s(r))throw new Error("salt must be an array or buffer");r=Array.prototype.slice.call(r);for(var l=a(e,r,128*c*o),p=new Uint32Array(32*c*o),m=0;mj&&(r=j);for(var s=0;sj&&(r=j);for(var m=0;m>0&255),l.push(p[C]>>8&255),l.push(p[C]>>16&255),l.push(p[C]>>24&255);var I=a(e,l,b);return h&&h(null,1,I),I}h&&B(t)};if(!h)for(;;){var C=R();if(null!=C)return C}R()}var h={scrypt:function(e,t,r,n,a,i,o){return new Promise((function(c,f){var d=0;o&&o(0),b(e,t,r,n,a,i,(function(e,t,r){if(e)f(e);else if(r)o&&1!==d&&o(1),c(new Uint8Array(r));else if(o&&t!==d)return d=t,o(t)}))}))},syncScrypt:function(e,t,r,n,a,i){return new Uint8Array(b(e,t,r,n,a,i))}};e.exports=h}()}).call(this,r(104).setImmediate)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeeMarketEIP1559Transaction=t.TransactionFactory=t.AccessListEIP2930Transaction=t.Transaction=void 0;var o=r(603);Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return i(o).default}});var c=r(670);Object.defineProperty(t,"AccessListEIP2930Transaction",{enumerable:!0,get:function(){return i(c).default}});var f=r(671);Object.defineProperty(t,"TransactionFactory",{enumerable:!0,get:function(){return i(f).default}});var d=r(672);Object.defineProperty(t,"FeeMarketEIP1559Transaction",{enumerable:!0,get:function(){return i(d).default}}),a(r(72),t)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160FromArray=t.ripemd160FromString=t.ripemd160=t.sha256FromArray=t.sha256FromString=t.sha256=t.keccakFromArray=t.keccakFromHexString=t.keccakFromString=t.keccak256=t.keccak=void 0;var n=r(38),a=r(19),i=r(41),o=r(55),c=r(115);t.keccak=function(e,t){switch(void 0===t&&(t=256),(0,c.assertIsBuffer)(e),t){case 224:return(0,n.keccak224)(e);case 256:return(0,n.keccak256)(e);case 384:return(0,n.keccak384)(e);case 512:return(0,n.keccak512)(e);default:throw new Error("Invald algorithm: keccak".concat(t))}};t.keccak256=function(e){return(0,t.keccak)(e)};t.keccakFromString=function(r,n){void 0===n&&(n=256),(0,c.assertIsString)(r);var a=e.from(r,"utf8");return(0,t.keccak)(a,n)};t.keccakFromHexString=function(e,r){return void 0===r&&(r=256),(0,c.assertIsHexString)(e),(0,t.keccak)((0,o.toBuffer)(e),r)};t.keccakFromArray=function(e,r){return void 0===r&&(r=256),(0,c.assertIsArray)(e),(0,t.keccak)((0,o.toBuffer)(e),r)};var f=function(e){return e=(0,o.toBuffer)(e),a("sha256").update(e).digest()};t.sha256=function(e){return(0,c.assertIsBuffer)(e),f(e)};t.sha256FromString=function(e){return(0,c.assertIsString)(e),f(e)};t.sha256FromArray=function(e){return(0,c.assertIsArray)(e),f(e)};var d=function(e,t){e=(0,o.toBuffer)(e);var r=a("rmd160").update(e).digest();return!0===t?(0,o.setLengthLeft)(r,32):r};t.ripemd160=function(e,t){return(0,c.assertIsBuffer)(e),d(e,t)};t.ripemd160FromString=function(e,t){return(0,c.assertIsString)(e),d(e,t)};t.ripemd160FromArray=function(e,t){return(0,c.assertIsArray)(e),d(e,t)};t.rlphash=function(e){return(0,t.keccak)(i.rlp.encode(e))}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0;var n,a=r(41),i=r(71),o=r(55);function c(t){return(0,o.unpadBuffer)(t.toArrayLike(e))}t.bnToHex=function(e){return"0x".concat(e.toString(16))},t.bnToUnpaddedBuffer=c,t.bnToRlp=function(e){return c(e)},function(e){e[e.Number=0]="Number",e[e.BN=1]="BN",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(n=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0!==e){if("string"==typeof e&&!(0,i.isHexString)(e))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(e));if("number"==typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var r=(0,o.toBuffer)(e);if(t===n.Buffer)return r;if(t===n.BN)return new a.BN(r);if(t===n.Number){var c=new a.BN(r),f=new a.BN(Number.MAX_SAFE_INTEGER.toString());if(c.gt(f))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return c.toNumber()}return"0x".concat(r.toString("hex"))}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return a(t,e),t},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseTransaction=void 0;var f=i(r(166)),d=r(54),s=r(72),u=function(){function e(e,t){this.cache={hash:void 0,dataFee:void 0},this.activeCapabilities=[],this.DEFAULT_CHAIN=f.Chain.Mainnet,this.DEFAULT_HARDFORK=f.Hardfork.Istanbul;var r=e.nonce,n=e.gasLimit,a=e.to,i=e.value,o=e.data,c=e.v,s=e.r,u=e.s,b=e.type;this._type=new d.BN((0,d.toBuffer)(b)).toNumber(),this.txOptions=t;var h=(0,d.toBuffer)(""===a?"0x":a),l=(0,d.toBuffer)(""===c?"0x":c),p=(0,d.toBuffer)(""===s?"0x":s),m=(0,d.toBuffer)(""===u?"0x":u);this.nonce=new d.BN((0,d.toBuffer)(""===r?"0x":r)),this.gasLimit=new d.BN((0,d.toBuffer)(""===n?"0x":n)),this.to=h.length>0?new d.Address(h):void 0,this.value=new d.BN((0,d.toBuffer)(""===i?"0x":i)),this.data=(0,d.toBuffer)(""===o?"0x":o),this.v=l.length>0?new d.BN(l):void 0,this.r=p.length>0?new d.BN(p):void 0,this.s=m.length>0?new d.BN(m):void 0,this._validateCannotExceedMaxInteger({value:this.value,r:this.r,s:this.s}),this._validateCannotExceedMaxInteger({gasLimit:this.gasLimit},64),this._validateCannotExceedMaxInteger({nonce:this.nonce},64,!0)}return Object.defineProperty(e.prototype,"transactionType",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),e.prototype.supports=function(e){return this.activeCapabilities.includes(e)},e.prototype.validate=function(e){void 0===e&&(e=!1);var t=[];return this.getBaseFee().gt(this.gasLimit)&&t.push("gasLimit is too low. given ".concat(this.gasLimit,", need at least ").concat(this.getBaseFee())),this.isSigned()&&!this.verifySignature()&&t.push("Invalid Signature"),e?t:0===t.length},e.prototype.getBaseFee=function(){var e=this.getDataFee().addn(this.common.param("gasPrices","tx"));return this.common.gteHardfork("homestead")&&this.toCreationAddress()&&e.iaddn(this.common.param("gasPrices","txCreation")),e},e.prototype.getDataFee=function(){for(var e=this.common.param("gasPrices","txDataZero"),t=this.common.param("gasPrices","txDataNonZero"),r=0,n=0;n-1&&this.activeCapabilities.splice(u,1)}return f},e.prototype._getCommon=function(e,t){var r;if(t){var n=new d.BN((0,d.toBuffer)(t));if(e){if(!e.chainIdBN().eq(n)){var a=this._errorMsg("The chain ID does not match the chain ID of Common");throw new Error(a)}return e.copy()}return f.default.isSupportedChainId(n)?new f.default({chain:n,hardfork:this.DEFAULT_HARDFORK}):f.default.forCustomChain(this.DEFAULT_CHAIN,{name:"custom-chain",networkId:n,chainId:n},this.DEFAULT_HARDFORK)}return null!==(r=null==e?void 0:e.copy())&&void 0!==r?r:new f.default({chain:this.DEFAULT_CHAIN,hardfork:this.DEFAULT_HARDFORK})},e.prototype._validateCannotExceedMaxInteger=function(e,t,r){var n,a;void 0===t&&(t=256),void 0===r&&(r=!1);try{for(var i=o(Object.entries(e)),f=i.next();!f.done;f=i.next()){var s=c(f.value,2),u=s[0],b=s[1];switch(t){case 64:if(r){if(null==b?void 0:b.gte(d.MAX_UINT64)){var h=this._errorMsg("".concat(u," cannot equal or exceed MAX_UINT64 (2^64-1), given ").concat(b));throw new Error(h)}}else if(null==b?void 0:b.gt(d.MAX_UINT64)){h=this._errorMsg("".concat(u," cannot exceed MAX_UINT64 (2^64-1), given ").concat(b));throw new Error(h)}break;case 256:if(r){if(null==b?void 0:b.gte(d.MAX_INTEGER)){h=this._errorMsg("".concat(u," cannot equal or exceed MAX_INTEGER (2^256-1), given ").concat(b));throw new Error(h)}}else if(null==b?void 0:b.gt(d.MAX_INTEGER)){h=this._errorMsg("".concat(u," cannot exceed MAX_INTEGER (2^256-1), given ").concat(b));throw new Error(h)}break;default:h=this._errorMsg("unimplemented bits value");throw new Error(h)}}}catch(e){n={error:e}}finally{try{f&&!f.done&&(a=i.return)&&a.call(i)}finally{if(n)throw n.error}}},e.prototype._getSharedErrorPostfix=function(){var e="";try{e=this.isSigned()?(0,d.bufferToHex)(this.hash()):"not available (unsigned)"}catch(t){e="error"}var t="";try{t=this.isSigned().toString()}catch(t){e="error"}var r="";try{r=this.common.hardfork()}catch(e){r="error"}var n="tx type=".concat(this.type," hash=").concat(e," nonce=").concat(this.nonce," value=").concat(this.value," ");return n+="signed=".concat(t," hf=").concat(r)},e}();t.BaseTransaction=u},function(e,t,r){"use strict";(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a,i=this&&this.__extends||(a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsensusAlgorithm=t.ConsensusType=t.Hardfork=t.Chain=t.CustomChain=void 0;var f,d,s=r(23),u=r(609),b=r(610),h=r(616),l=r(623),p=r(641);!function(e){e.PolygonMainnet="polygon-mainnet",e.PolygonMumbai="polygon-mumbai",e.ArbitrumRinkebyTestnet="arbitrum-rinkeby-testnet",e.xDaiChain="x-dai-chain",e.OptimisticKovan="optimistic-kovan",e.OptimisticEthereum="optimistic-ethereum"}(f=t.CustomChain||(t.CustomChain={})),function(e){e[e.Mainnet=1]="Mainnet",e[e.Ropsten=3]="Ropsten",e[e.Rinkeby=4]="Rinkeby",e[e.Kovan=42]="Kovan",e[e.Goerli=5]="Goerli",e[e.Sepolia=11155111]="Sepolia"}(t.Chain||(t.Chain={})),function(e){e.Chainstart="chainstart",e.Homestead="homestead",e.Dao="dao",e.TangerineWhistle="tangerineWhistle",e.SpuriousDragon="spuriousDragon",e.Byzantium="byzantium",e.Constantinople="constantinople",e.Petersburg="petersburg",e.Istanbul="istanbul",e.MuirGlacier="muirGlacier",e.Berlin="berlin",e.London="london",e.ArrowGlacier="arrowGlacier",e.GrayGlacier="grayGlacier",e.MergeForkIdTransition="mergeForkIdTransition",e.Merge="merge",e.Shanghai="shanghai"}(d=t.Hardfork||(t.Hardfork={})),function(e){e.ProofOfStake="pos",e.ProofOfWork="pow",e.ProofOfAuthority="poa"}(t.ConsensusType||(t.ConsensusType={})),function(e){e.Ethash="ethash",e.Clique="clique",e.Casper="casper"}(t.ConsensusAlgorithm||(t.ConsensusAlgorithm={}));var m=function(t){function a(e){var r,n,a,i,o=this;(o=t.call(this)||this)._supportedHardforks=[],o._eips=[],o._customChains=null!==(a=e.customChains)&&void 0!==a?a:[],o._chainParams=o.setChain(e.chain),o.DEFAULT_HARDFORK=null!==(i=o._chainParams.defaultHardfork)&&void 0!==i?i:d.Istanbul;try{for(var f=c(o._chainParams.hardforks),s=f.next();!s.done;s=f.next()){var u=s.value;u.forkHash||(u.forkHash=o._calcForkHash(u.name))}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}return o._hardfork=o.DEFAULT_HARDFORK,e.supportedHardforks&&(o._supportedHardforks=e.supportedHardforks),e.hardfork&&o.setHardfork(e.hardfork),e.eips&&o.setEIPs(e.eips),o}return i(a,t),a.custom=function(e,t){var r;void 0===t&&(t={});var n=null!==(r=t.baseChain)&&void 0!==r?r:"mainnet",i=o({},a._getChainParams(n));if(i.name="custom-chain","string"!=typeof e)return new a(o({chain:o(o({},i),e)},t));if(e===f.PolygonMainnet)return a.custom({name:f.PolygonMainnet,chainId:137,networkId:137},t);if(e===f.PolygonMumbai)return a.custom({name:f.PolygonMumbai,chainId:80001,networkId:80001},t);if(e===f.ArbitrumRinkebyTestnet)return a.custom({name:f.ArbitrumRinkebyTestnet,chainId:421611,networkId:421611},t);if(e===f.xDaiChain)return a.custom({name:f.xDaiChain,chainId:100,networkId:100},t);if(e===f.OptimisticKovan)return a.custom({name:f.OptimisticKovan,chainId:69,networkId:69},o({hardfork:d.Berlin},t));if(e===f.OptimisticEthereum)return a.custom({name:f.OptimisticEthereum,chainId:10,networkId:10},o({hardfork:d.Berlin},t));throw new Error("Custom chain ".concat(e," not supported"))},a.forCustomChain=function(e,t,r,n){var i=a._getChainParams(e);return new a({chain:o(o({},i),t),hardfork:r,supportedHardforks:n})},a.isSupportedChainId=function(e){var t=(0,h._getInitializedChains)();return Boolean(t.names[e.toString()])},a._getChainParams=function(e,t){var r=(0,h._getInitializedChains)(t);if("number"==typeof e||b.BN.isBN(e)){if(e=e.toString(),r.names[e])return r[r.names[e]];throw new Error("Chain with ID ".concat(e," not supported"))}if(r[e])return r[e];throw new Error("Chain with name ".concat(e," not supported"))},a.prototype.setChain=function(e){var t,r;if("number"==typeof e||"string"==typeof e||b.BN.isBN(e)){var i=void 0;i=this._customChains&&this._customChains.length>0&&Array.isArray(this._customChains[0])?this._customChains.map((function(e){return e[0]})):this._customChains,this._chainParams=a._getChainParams(e,i)}else{if("object"!==n(e))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=c(["networkId","genesis","hardforks","bootstrapNodes"]),f=o.next();!f.done;f=o.next()){var d=f.value;if(void 0===e[d])throw new Error("Missing required chain parameter: ".concat(d))}}catch(e){t={error:e}}finally{try{f&&!f.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}this._chainParams=e}return this._chainParams},a.prototype.setHardfork=function(e){var t,r;if(!this._isSupportedHardfork(e))throw new Error("Hardfork ".concat(e," not set as supported in supportedHardforks"));var n=!1;try{for(var a=c(l.hardforks),i=a.next();!i.done;i=a.next()){i.value[0]===e&&(this._hardfork!==e&&(this._hardfork=e,this.emit("hardforkChanged",e)),n=!0)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}if(!n)throw new Error("Hardfork with name ".concat(e," not supported"))},a.prototype.getHardforkByBlockNumber=function(e,t){var r,n;e=(0,b.toType)(e,b.TypeOutput.BN),t=(0,b.toType)(t,b.TypeOutput.BN);var a,i,o,f=d.Chainstart;try{for(var s=c(this.hardforks()),u=s.next();!u.done;u=s.next()){var h=u.value;if(null!==h.block)e.gte(new b.BN(h.block))&&(f=h.name),t&&h.td&&(t.gte(new b.BN(h.td))?a=h.name:i=o),o=h.name;else if(null!=t&&void 0!==h.td&&null!==h.td&&t.gte(new b.BN(h.td)))return h.name}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}if(t){var l="block number: ".concat(e," (-> ").concat(f,"), ");if(a&&!this.hardforkGteHardfork(f,a)){var p="HF determined by block number is lower than the minimum total difficulty HF";throw l+="total difficulty: ".concat(t," (-> ").concat(a,")"),new Error("".concat(p,": ").concat(l))}if(i&&!this.hardforkGteHardfork(i,f)){p="Maximum HF determined by total difficulty is lower than the block number HF";throw l+="total difficulty: ".concat(t," (-> ").concat(i,")"),new Error("".concat(p,": ").concat(l))}}return f},a.prototype.setHardforkByBlockNumber=function(e,t){var r=this.getHardforkByBlockNumber(e,t);return this.setHardfork(r),r},a.prototype._chooseHardfork=function(e,t){if(void 0===t&&(t=!0),e){if(t&&!this._isSupportedHardfork(e))throw new Error("Hardfork ".concat(e," not set as supported in supportedHardforks"))}else e=this._hardfork;return e},a.prototype._getHardfork=function(e){var t,r,n=this.hardforks();try{for(var a=c(n),i=a.next();!i.done;i=a.next()){var o=i.value;if(o.name===e)return o}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}throw new Error("Hardfork ".concat(e," not defined for chain ").concat(this.chainName()))},a.prototype._isSupportedHardfork=function(e){var t,r;if(!(this._supportedHardforks.length>0))return!0;try{for(var n=c(this._supportedHardforks),a=n.next();!a.done;a=n.next()){if(e===a.value)return!0}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return!1},a.prototype.setEIPs=function(e){var t,r,n=this;void 0===e&&(e=[]);var a=function(t){if(!(t in p.EIPs))throw new Error("".concat(t," not supported"));var r=i.gteHardfork(p.EIPs[t].minimumHardfork);if(!r)throw new Error("".concat(t," cannot be activated on hardfork ").concat(i.hardfork(),", minimumHardfork: ").concat(r));p.EIPs[t].requiredEIPs&&p.EIPs[t].requiredEIPs.forEach((function(r){if(!e.includes(r)&&!n.isActivatedEIP(r))throw new Error("".concat(t," requires EIP ").concat(r,", but is not included in the EIP list"))}))},i=this;try{for(var o=c(e),f=o.next();!f.done;f=o.next()){a(f.value)}}catch(e){t={error:e}}finally{try{f&&!f.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}this._eips=e},a.prototype.param=function(e,t){var r,n,a=null;try{for(var i=c(this._eips),o=i.next();!o.done;o=i.next()){var f=o.value;if(null!==(a=this.paramByEIP(e,t,f)))return a}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return this.paramByHardfork(e,t,this._hardfork)},a.prototype.paramByHardfork=function(e,t,r){var n,a,i,o;r=this._chooseHardfork(r);var f=null;try{for(var d=c(l.hardforks),s=d.next();!s.done;s=d.next()){var u=s.value;if("eips"in u[1]){var b=u[1].eips;try{for(var h=(i=void 0,c(b)),p=h.next();!p.done;p=h.next()){var m=p.value,x=this.paramByEIP(e,t,m);f=null!==x?x:f}}catch(e){i={error:e}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}}else{if(!u[1][e])throw new Error("Topic ".concat(e," not defined"));void 0!==u[1][e][t]&&(f=u[1][e][t].v)}if(u[0]===r)break}}catch(e){n={error:e}}finally{try{s&&!s.done&&(a=d.return)&&a.call(d)}finally{if(n)throw n.error}}return f},a.prototype.paramByEIP=function(e,t,r){if(!(r in p.EIPs))throw new Error("".concat(r," not supported"));var n=p.EIPs[r];if(!(e in n))throw new Error("Topic ".concat(e," not defined"));return void 0===n[e][t]?null:n[e][t].v},a.prototype.paramByBlock=function(e,t,r){var n=this.activeHardforks(r),a=n[n.length-1].name;return this.paramByHardfork(e,t,a)},a.prototype.isActivatedEIP=function(e){var t,r;if(this.eips().includes(e))return!0;try{for(var n=c(l.hardforks),a=n.next();!a.done;a=n.next()){var i=a.value[1];if(this.gteHardfork(i.name)&&"eips"in i&&i.eips.includes(e))return!0}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return!1},a.prototype.hardforkIsActiveOnBlock=function(e,t,r){var n;void 0===r&&(r={}),t=(0,b.toType)(t,b.TypeOutput.BN);var a=null!==(n=r.onlySupported)&&void 0!==n&&n;e=this._chooseHardfork(e,a);var i=this.hardforkBlockBN(e);return!(!i||!t.gte(i))},a.prototype.activeOnBlock=function(e,t){return this.hardforkIsActiveOnBlock(null,e,t)},a.prototype.hardforkGteHardfork=function(e,t,r){var n,a;void 0===r&&(r={});var i,o=void 0!==r.onlyActive&&r.onlyActive;e=this._chooseHardfork(e,r.onlySupported),i=o?this.activeHardforks(null,r):this.hardforks();var f=-1,d=-1,s=0;try{for(var u=c(i),b=u.next();!b.done;b=u.next()){var h=b.value;h.name===e&&(f=s),h.name===t&&(d=s),s+=1}}catch(e){n={error:e}}finally{try{b&&!b.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}return f>=d&&-1!==d},a.prototype.gteHardfork=function(e,t){return this.hardforkGteHardfork(null,e,t)},a.prototype.hardforkIsActiveOnChain=function(e,t){var r,n,a;void 0===t&&(t={});var i=null!==(a=t.onlySupported)&&void 0!==a&&a;e=this._chooseHardfork(e,i);try{for(var o=c(this.hardforks()),f=o.next();!f.done;f=o.next()){var d=f.value;if(d.name===e&&null!==d.block)return!0}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1},a.prototype.activeHardforks=function(e,t){var r,n;void 0===t&&(t={});var a=[],i=this.hardforks();try{for(var o=c(i),f=o.next();!f.done;f=o.next()){var d=f.value;if(null!==d.block){if(null!=e&&e0)return r[r.length-1].name;throw new Error("No (supported) active hardfork found")},a.prototype.hardforkBlock=function(e){var t=this.hardforkBlockBN(e);return(0,b.toType)(t,b.TypeOutput.Number)},a.prototype.hardforkBlockBN=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e).block;return null==t?null:new b.BN(t)},a.prototype.hardforkTD=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e).td;return null==t?null:new b.BN(t)},a.prototype.isHardforkBlock=function(e,t){e=(0,b.toType)(e,b.TypeOutput.BN),t=this._chooseHardfork(t,!1);var r=this.hardforkBlockBN(t);return!!r&&r.eq(e)},a.prototype.nextHardforkBlock=function(e){var t=this.nextHardforkBlockBN(e);return(0,b.toType)(t,b.TypeOutput.Number)},a.prototype.nextHardforkBlockBN=function(e){e=this._chooseHardfork(e,!1);var t=this.hardforkBlockBN(e);return null===t?null:this.hardforks().reduce((function(e,r){var n=new b.BN(r.block);return n.gt(t)&&null===e?n:e}),null)},a.prototype.isNextHardforkBlock=function(e,t){e=(0,b.toType)(e,b.TypeOutput.BN),t=this._chooseHardfork(t,!1);var r=this.nextHardforkBlockBN(t);return null!==r&&r.eq(e)},a.prototype._calcForkHash=function(t){var r,n,a=e.from(this.genesis().hash.substr(2),"hex"),i=e.alloc(0),o=0;try{for(var f=c(this.hardforks()),d=f.next();!d.done;d=f.next()){var s=d.value,h=s.block;if(0!==h&&null!==h&&h!==o){var l=e.from(h.toString(16).padStart(16,"0"),"hex");i=e.concat([i,l])}if(s.name===t)break;null!==h&&(o=h)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}var p=e.concat([a,i]),m=(0,b.intToBuffer)((0,u.buf)(p)>>>0).toString("hex");return"0x".concat(m)},a.prototype.forkHash=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e);if(null===t.block&&void 0===t.td){throw new Error("No fork hash calculation possible for future hardfork")}return void 0!==t.forkHash?t.forkHash:this._calcForkHash(e)},a.prototype.hardforkForForkHash=function(e){var t=this.hardforks().filter((function(t){return t.forkHash===e}));return t.length>=1?t[t.length-1]:null},a.prototype.genesis=function(){return this._chainParams.genesis},a.prototype.genesisState=function(){var e,t;switch(this.chainName()){case"mainnet":return r(664);case"ropsten":return r(665);case"rinkeby":return r(666);case"kovan":return r(667);case"goerli":return r(668);case"sepolia":return r(669)}if(this._customChains&&this._customChains.length>0&&Array.isArray(this._customChains[0]))try{for(var n=c(this._customChains),a=n.next();!a.done;a=n.next()){var i=a.value;if(i[0].name===this.chainName())return i[1]}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return{}},a.prototype.hardforks=function(){return this._chainParams.hardforks},a.prototype.bootstrapNodes=function(){return this._chainParams.bootstrapNodes},a.prototype.dnsNetworks=function(){return this._chainParams.dnsNetworks},a.prototype.hardfork=function(){return this._hardfork},a.prototype.chainId=function(){return(0,b.toType)(this.chainIdBN(),b.TypeOutput.Number)},a.prototype.chainIdBN=function(){return new b.BN(this._chainParams.chainId)},a.prototype.chainName=function(){return this._chainParams.name},a.prototype.networkId=function(){return(0,b.toType)(this.networkIdBN(),b.TypeOutput.Number)},a.prototype.networkIdBN=function(){return new b.BN(this._chainParams.networkId)},a.prototype.eips=function(){return this._eips},a.prototype.consensusType=function(){var e,t,r,n=this.hardfork();try{for(var a=c(l.hardforks),i=a.next();!i.done;i=a.next()){var o=i.value;if("consensus"in o[1]&&(r=o[1].consensus.type),o[0]===n)break}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return r||this._chainParams.consensus.type},a.prototype.consensusAlgorithm=function(){var e,t,r,n=this.hardfork();try{for(var a=c(l.hardforks),i=a.next();!i.done;i=a.next()){var o=i.value;if("consensus"in o[1]&&(r=o[1].consensus.algorithm),o[0]===n)break}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return r||this._chainParams.consensus.algorithm},a.prototype.consensusConfig=function(){var e,t,r,n=this.hardfork();try{for(var a=c(l.hardforks),i=a.next();!i.done;i=a.next()){var o=i.value;if("consensus"in o[1]&&(r=o[1].consensus[o[1].consensus.algorithm]),o[0]===n)break}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}if(r)return r;var f=this.consensusAlgorithm();return this._chainParams.consensus[f]},a.prototype.copy=function(){var e=Object.assign(Object.create(Object.getPrototypeOf(this)),this);return e.removeAllListeners(),e},a}(s.EventEmitter);t.default=m}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160FromArray=t.ripemd160FromString=t.ripemd160=t.sha256FromArray=t.sha256FromString=t.sha256=t.keccakFromArray=t.keccakFromHexString=t.keccakFromString=t.keccak256=t.keccak=void 0;var n=r(38),a=r(19),i=r(42),o=r(56),c=r(116);t.keccak=function(e,t){switch(void 0===t&&(t=256),(0,c.assertIsBuffer)(e),t){case 224:return(0,n.keccak224)(e);case 256:return(0,n.keccak256)(e);case 384:return(0,n.keccak384)(e);case 512:return(0,n.keccak512)(e);default:throw new Error("Invald algorithm: keccak".concat(t))}};t.keccak256=function(e){return(0,t.keccak)(e)};t.keccakFromString=function(r,n){void 0===n&&(n=256),(0,c.assertIsString)(r);var a=e.from(r,"utf8");return(0,t.keccak)(a,n)};t.keccakFromHexString=function(e,r){return void 0===r&&(r=256),(0,c.assertIsHexString)(e),(0,t.keccak)((0,o.toBuffer)(e),r)};t.keccakFromArray=function(e,r){return void 0===r&&(r=256),(0,c.assertIsArray)(e),(0,t.keccak)((0,o.toBuffer)(e),r)};var f=function(e){return e=(0,o.toBuffer)(e),a("sha256").update(e).digest()};t.sha256=function(e){return(0,c.assertIsBuffer)(e),f(e)};t.sha256FromString=function(e){return(0,c.assertIsString)(e),f(e)};t.sha256FromArray=function(e){return(0,c.assertIsArray)(e),f(e)};var d=function(e,t){e=(0,o.toBuffer)(e);var r=a("rmd160").update(e).digest();return!0===t?(0,o.setLengthLeft)(r,32):r};t.ripemd160=function(e,t){return(0,c.assertIsBuffer)(e),d(e,t)};t.ripemd160FromString=function(e,t){return(0,c.assertIsString)(e),d(e,t)};t.ripemd160FromArray=function(e,t){return(0,c.assertIsArray)(e),d(e,t)};t.rlphash=function(e){return(0,t.keccak)(i.rlp.encode(e))}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0;var n,a=r(42),i=r(73),o=r(56);function c(t){return(0,o.unpadBuffer)(t.toArrayLike(e))}t.bnToHex=function(e){return"0x".concat(e.toString(16))},t.bnToUnpaddedBuffer=c,t.bnToRlp=function(e){return c(e)},function(e){e[e.Number=0]="Number",e[e.BN=1]="BN",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(n=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0!==e){if("string"==typeof e&&!(0,i.isHexString)(e))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(e));if("number"==typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var r=(0,o.toBuffer)(e);if(t===n.Buffer)return r;if(t===n.BN)return new a.BN(r);if(t===n.Number){var c=new a.BN(r),f=new a.BN(Number.MAX_SAFE_INTEGER.toString());if(c.gt(f))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return c.toNumber()}return"0x".concat(r.toString("hex"))}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccessLists=t.checkMaxInitCodeSize=void 0;var n=r(54),a=r(72);t.checkMaxInitCodeSize=function(e,t){if(t>e.param("vm","maxInitCodeSize"))throw new Error("the initcode size of this transaction is too large: it is ".concat(t," while the max is ").concat(e.param("vm","maxInitCodeSize")))};var i=function(){function e(){}return e.getAccessListData=function(e){var t,r;if(e&&(0,a.isAccessList)(e)){t=e;for(var i=[],o=0;o-1};function b(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function h(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function x(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function y(e){var t=new FileReader,r=x(t);return t.readAsArrayBuffer(e),r}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:c&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:f&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():d&&c&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):d&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=m(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(y)}),this.text=function(){var e,t,r,n=m(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=x(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(a),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function M(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),a=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(a))}})),t}function k(e,t){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},g.call(_.prototype),g.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},k.error=function(){var e=new k(null,{status:0,statusText:""});return e.type="error",e};var S=[301,302,303,307,308];k.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new k(null,{status:t,headers:{location:e}})};var A=a.DOMException;try{new A}catch(e){(A=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),A.prototype.constructor=A}function E(e,t){return new Promise((function(r,i){var o=new _(e,t);if(o.signal&&o.signal.aborted)return i(new A("Aborted","AbortError"));var f=new XMLHttpRequest;function s(){f.abort()}f.onload=function(){var e,t,n={status:f.status,statusText:f.statusText,headers:(e=f.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var a=r.join(":").trim();t.append(n,a)}})),t)};n.url="responseURL"in f?f.responseURL:n.headers.get("X-Request-URL");var a="response"in f?f.response:f.responseText;setTimeout((function(){r(new k(a,n))}),0)},f.onerror=function(){setTimeout((function(){console.log("http request error1"),i(new TypeError("Network request failed"))}),0)},f.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},f.onabort=function(){setTimeout((function(){i(new A("Aborted","AbortError"))}),0)},f.open(o.method,function(e){try{return""===e&&a.location.href?a.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?f.withCredentials=!0:"omit"===o.credentials&&(f.withCredentials=!1),"responseType"in f&&(c?f.responseType="blob":d&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(f.responseType="arraybuffer")),!t||"object"!==n(t.headers)||t.headers instanceof p?o.headers.forEach((function(e,t){f.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){f.setRequestHeader(e,h(t.headers[e]))})),o.signal&&(o.signal.addEventListener("abort",s),f.onreadystatechange=function(){4===f.readyState&&o.signal.removeEventListener("abort",s)}),f.send(void 0===o._bodyInit?null:o._bodyInit)}))}E.polyfill=!0,a.fetch||(a.fetch=E,a.Headers=p,a.Request=_,a.Response=k)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n(t,e,r);return a(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.fallbackRipemd160=t.fallbackSha512=t.fallbackSha256=t.fallbackHmacSha512Sign=t.fallbackHmacSha256Sign=t.fallbackAesDecrypt=t.fallbackAesEncrypt=void 0;var c=o(r(300)),f=r(7),d=i(r(26)),s=r(301),u=r(174);t.fallbackAesEncrypt=function(e,t,r){var n=new c.default.ModeOfOperation.cbc(t,e),a=u.pkcs7.pad(r),i=n.encrypt(a);return new Uint8Array(i)},t.fallbackAesDecrypt=function(e,t,r){var n=new c.default.ModeOfOperation.cbc(t,e).decrypt(r),a=new Uint8Array(n);return u.pkcs7.unpad(a)},t.fallbackHmacSha256Sign=function(e,t){var r=d.hmac(d[s.SHA256_NODE_ALGO],e).update(t).digest(s.HEX_ENC);return f.hexToArray(r)},t.fallbackHmacSha512Sign=function(e,t){var r=d.hmac(d[s.SHA512_NODE_ALGO],e).update(t).digest(s.HEX_ENC);return f.hexToArray(r)},t.fallbackSha256=function(e){var t=d.sha256().update(e).digest(s.HEX_ENC);return f.hexToArray(t)},t.fallbackSha512=function(e){var t=d.sha512().update(e).digest(s.HEX_ENC);return f.hexToArray(t)},t.fallbackRipemd160=function(e){var t=d.ripemd160().update(e).digest(s.HEX_ENC);return f.hexToArray(t)}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(720),t),a(r(721),t),a(r(722),t),a(r(723),t)},function(e,t,r){var n=r(306),a=r(738),i=r(739),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){if(null!==e){var t=e;e=null,t.apply(this,arguments)}}},e.exports=t.default},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!=e&&"object"==r(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null,t.apply(this,arguments)}},e.exports=t.default},function(e,t,r){var n=r(770),a=r(86);e.exports=function(e){return a({id:n(),jsonrpc:"2.0",params:[]},e)}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r1?n-1:0),i=1;i0&&(o=a[0]),o instanceof Error)throw o;var c=new Error("Unhandled error.".concat(o?" (".concat(o.message,")"):""));throw c.context=o,c}var f=r[e];if(void 0===f)return!1;if("function"==typeof f)s(f,this,a);else for(var d=f.length,b=u(f),h=0;h=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');return t.call(this,e,n,i)}return o(r)}(m);function y(e,t){if("[Circular]"!==t)return t}t.EthereumProviderError=x},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorValues=t.errorCodes=void 0,t.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}},t.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,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",f=i.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var a=t&&t.prototype instanceof h?t:h,i=Object.create(a.prototype),o=new S(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(a,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw i;return E()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var c=_(o,r);if(c){if(c===b)continue;return c}}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 f=u(e,t,r);if("normal"===f.type){if(n=r.done?"completed":"suspendedYield",f.arg===b)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(n="completed",r.method="throw",r.arg=f.arg)}}}(e,r,o),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var b={};function h(){}function l(){}function p(){}var m={};d(m,o,(function(){return this}));var x=Object.getPrototypeOf,y=x&&x(x(A([])));y&&y!==t&&r.call(y,o)&&(m=y);var v=p.prototype=h.prototype=Object.create(m);function g(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var a;this._invoke=function(i,o){function c(){return new t((function(a,c){!function a(i,o,c,f){var d=u(e[i],e,o);if("throw"!==d.type){var s=d.arg,b=s.value;return b&&"object"==n(b)&&r.call(b,"__await")?t.resolve(b.__await).then((function(e){a("next",e,c,f)}),(function(e){a("throw",e,c,f)})):t.resolve(b).then((function(e){s.value=e,c(s)}),(function(e){return a("throw",e,c,f)}))}f(d.arg)}(i,o,a,c)}))}return a=a?a.then(c,c):c()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return b;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,b;var a=n.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,b):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function A(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),f=r.call(i,"finallyLoc");if(c&&f){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;k(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),b}},e}function i(e,t,r,n,a,i,o){try{var c=e[i](o),f=c.value}catch(e){return void r(e)}c.done?t(f):Promise.resolve(f).then(n,a)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function c(e){i(o,n,a,c,f,"next",e)}function f(e){i(o,n,a,c,f,"throw",e)}c(void 0)}))}}function c(e,t){for(var r=0;r=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),f=a.call(i,"finallyLoc");if(c&&f){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;k(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),b}},e}function a(e,t,r,n,a,i,o){try{var c=e[i](o),f=c.value}catch(e){return void r(e)}c.done?t(f):Promise.resolve(f).then(n,a)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function c(e){a(o,n,i,c,f,"next",e)}function f(e){a(o,n,i,c,f,"throw",e)}c(void 0)}))}}function o(){return(o=i(n().mark((function e(t){var r,a,i,o,s,u,b;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.provider,a=t.fromBlock,i=t.toBlock,a||(a=i),o=c(a),s=c(i),u=Array(s-o+1).fill().map((function(e,t){return o+t})).map(f),e.next=8,Promise.all(u.map((function(e){return d(r,"eth_getBlockByNumber",[e,!1])})));case 8:return b=e.sent,e.abrupt("return",b);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function c(e){return null==e?e:Number.parseInt(e,16)}function f(e){return null==e?e:"0x"+e.toString(16)}function d(e,t,r){return new Promise((function(n,a){e.sendAsync({id:1,jsonrpc:"2.0",method:t,params:r},(function(e,t){if(e)return a(e);n(t.result)}))}))}e.exports=function(e){return o.apply(this,arguments)}},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.ecdhUnsafe=t.ecdh=t.recover=t.verify=t.sign=t.signatureImportLax=t.signatureImport=t.signatureExport=t.signatureNormalize=t.publicKeyCombine=t.publicKeyTweakMul=t.publicKeyTweakAdd=t.publicKeyVerify=t.publicKeyConvert=t.publicKeyCreate=t.privateKeyTweakMul=t.privateKeyTweakAdd=t.privateKeyModInverse=t.privateKeyNegate=t.privateKeyImport=t.privateKeyExport=t.privateKeyVerify=void 0;var n=r(22),a=r(798),i=r(799);t.privateKeyVerify=function(e){return 32===e.length&&n.privateKeyVerify(Uint8Array.from(e))},t.privateKeyExport=function(e,t){if(32!==e.length)throw new RangeError("private key length is invalid");var r=a.privateKeyExport(e,t);return i.privateKeyExport(e,r,t)},t.privateKeyImport=function(e){if(null!==(e=i.privateKeyImport(e))&&32===e.length&&t.privateKeyVerify(e))return e;throw new Error("couldn't import from DER format")},t.privateKeyNegate=function(t){return e.from(n.privateKeyNegate(Uint8Array.from(t)))},t.privateKeyModInverse=function(t){if(32!==t.length)throw new Error("private key length is invalid");return e.from(a.privateKeyModInverse(Uint8Array.from(t)))},t.privateKeyTweakAdd=function(t,r){return e.from(n.privateKeyTweakAdd(Uint8Array.from(t),r))},t.privateKeyTweakMul=function(t,r){return e.from(n.privateKeyTweakMul(Uint8Array.from(t),Uint8Array.from(r)))},t.publicKeyCreate=function(t,r){return e.from(n.publicKeyCreate(Uint8Array.from(t),r))},t.publicKeyConvert=function(t,r){return e.from(n.publicKeyConvert(Uint8Array.from(t),r))},t.publicKeyVerify=function(e){return(33===e.length||65===e.length)&&n.publicKeyVerify(Uint8Array.from(e))},t.publicKeyTweakAdd=function(t,r,a){return e.from(n.publicKeyTweakAdd(Uint8Array.from(t),Uint8Array.from(r),a))},t.publicKeyTweakMul=function(t,r,a){return e.from(n.publicKeyTweakMul(Uint8Array.from(t),Uint8Array.from(r),a))},t.publicKeyCombine=function(t,r){var a=[];return t.forEach((function(e){a.push(Uint8Array.from(e))})),e.from(n.publicKeyCombine(a,r))},t.signatureNormalize=function(t){return e.from(n.signatureNormalize(Uint8Array.from(t)))},t.signatureExport=function(t){return e.from(n.signatureExport(Uint8Array.from(t)))},t.signatureImport=function(t){return e.from(n.signatureImport(Uint8Array.from(t)))},t.signatureImportLax=function(e){if(0===e.length)throw new RangeError("signature length is invalid");var t=i.signatureImportLax(e);if(null===t)throw new Error("couldn't parse DER signature");return a.signatureImport(t)},t.sign=function(t,r,a){if(null===a)throw new TypeError("options should be an Object");var i=void 0;if(a){if(i={},null===a.data)throw new TypeError("options.data should be a Buffer");if(a.data){if(32!=a.data.length)throw new RangeError("options.data length is invalid");i.data=new Uint8Array(a.data)}if(null===a.noncefn)throw new TypeError("options.noncefn should be a Function");a.noncefn&&(i.noncefn=function(t,r,n,i,o){var c=null!=n?e.from(n):null,f=null!=i?e.from(i):null,d=e.from("");return a.noncefn&&(d=a.noncefn(e.from(t),e.from(r),c,f,o)),new Uint8Array(d)})}var o=n.ecdsaSign(Uint8Array.from(t),Uint8Array.from(r),i);return{signature:e.from(o.signature),recovery:o.recid}},t.verify=function(e,t,r){return n.ecdsaVerify(Uint8Array.from(t),Uint8Array.from(e),r)},t.recover=function(t,r,a,i){return e.from(n.ecdsaRecover(Uint8Array.from(r),a,Uint8Array.from(t),i))},t.ecdh=function(t,r){return e.from(n.ecdh(Uint8Array.from(t),Uint8Array.from(r),{}))},t.ecdhUnsafe=function(t,r,n){if(33!==t.length&&65!==t.length)throw new RangeError("public key length is invalid");if(32!==r.length)throw new RangeError("private key length is invalid");return e.from(a.ecdhUnsafe(Uint8Array.from(t),Uint8Array.from(r),n))}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160=t.sha256=t.keccak256=t.keccak=void 0;var n=r(38),a=n.keccak224,i=n.keccak384,o=n.keccak256,c=n.keccak512,f=r(19),d=r(18),s=r(21),u=r(94);t.keccak=function(t,r){switch(void 0===r&&(r=256),t="string"!=typeof t||d.isHexString(t)?u.toBuffer(t):e.from(t,"utf8"),r||(r=256),r){case 224:return a(t);case 256:return o(t);case 384:return i(t);case 512:return c(t);default:throw new Error("Invald algorithm: keccak"+r)}},t.keccak256=function(e){return t.keccak(e)},t.sha256=function(e){return e=u.toBuffer(e),f("sha256").update(e).digest()},t.ripemd160=function(e,t){e=u.toBuffer(e);var r=f("rmd160").update(e).digest();return!0===t?u.setLength(r,32):r},t.rlphash=function(e){return t.keccak(s.encode(e))}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},i=this&&this.__spread||function(){for(var e=[],t=0;t0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=0;f--)(i=e[f])&&(c=(o<3?i(c):o>3?i(t,r,c):i(t,r))||c);return o>3&&c&&Object.defineProperty(t,r,c),c};Object.defineProperty(t,"__esModule",{value:!0}),t.NativeSvr=void 0;var i=r(5),o=r(188),c=r(47),f=function(){function e(){this._event=o.createWalletEvents()}return e.prototype._subscribeToResponse=function(e,t){this._event.on("response:"+e,t)},e.prototype._subscribeToCallResponse=function(e){var t=this;return new Promise((function(r,n){t._subscribeToResponse(e,(function(e){e.errcode?n(e.errmessage||e.errcode):r(e.data)}))}))},e.prototype.handleNativeCallback=function(){for(var e=[],t=0;t=10?e.substring(0,6)+"..."+e.substring(e.length-4):e.length>0&&e.length<10?e:""},t.formatMoney=function(e,t){return"-"===e?"- "+t:n.renderFromTokenMinimalUnit(e,18,4)+" "+t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(488));var n=r(147);t.XMLHttpRequestEventTarget=n.XMLHttpRequestEventTarget},function(e,t){e.exports=a,a.strict=i,a.loose=o;var r=Object.prototype.toString,n={"[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 a(e){return i(e)||o(e)}function i(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function o(e){return n[r.call(e)]}},function(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,a,i=[],o=!0,c=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(c)throw a}}return i}(e,t)||o(e,t)||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.")}()}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r-1?r.split(e.arrayFormatSeparator).map((function(t){return h(t,e)})):null===r?r:h(r,e);n[t]=a};default:return function(e,t,r){void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),i=Object.create(null);if("string"!=typeof e)return i;if(!(e=e.trim().replace(/^[?#&]/,"")))return i;var c,f=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,c=!0,f=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return c=e.done,e},e:function(e){f=!0,i=e},f:function(){try{c||null==r.return||r.return()}finally{if(f)throw i}}}}(e.split("&"));try{for(f.s();!(c=f.n()).done;){var d=c.value,b=n(s(t.decode?d.replace(/\+/g," "):d,"="),2),l=b[0],p=b[1];p=void 0===p?null:["comma","separator"].includes(t.arrayFormat)?p:h(p,t),r(h(l,t),p,i)}}catch(e){f.e(e)}finally{f.f()}for(var x=0,y=Object.keys(i);x0})).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var r=n(s(e,"#"),2),a=r[0],i=r[1];return Object.assign({url:a.split("?")[0]||"",query:x(p(e),t)},t&&t.parseFragmentIdentifier&&i?{fragmentIdentifier:h(i,t)}:{})},t.stringifyUrl=function(e,r){r=Object.assign({encode:!0,strict:!0},r);var n=l(e.url).split("?")[0]||"",a=t.extract(e.url),i=t.parse(a,{sort:!1}),o=Object.assign(i,e.query),c=t.stringify(o,r);c&&(c="?".concat(c));var f=function(e){var t="",r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(f="#".concat(b(e.fragmentIdentifier,r))),"".concat(n).concat(c).concat(f)}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=t.concatSig=void 0,a(r(375),t),a(r(444),t),a(r(454),t);var i=r(105);Object.defineProperty(t,"concatSig",{enumerable:!0,get:function(){return i.concatSig}}),Object.defineProperty(t,"normalize",{enumerable:!0,get:function(){return i.normalize}})},function(e,t,r){"use strict";var n=t;function a(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r>8,o=255&a;i?r.push(i,o):r.push(o)}return r},n.zero2=a,n.toHex=i,n.encode=function(e,t){return"hex"===t?i(e):e}},function(e,t,r){"use strict";var n=t;n.base=r(101),n.short=r(381),n.mont=r(382),n.edwards=r(383)},function(e,t,r){"use strict";var n=r(36).rotr32;function a(e,t,r){return e&t^~e&r}function i(e,t,r){return e&t^e&r^t&r}function o(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?a(t,r,n):1===e||3===e?o(t,r,n):2===e?i(t,r,n):void 0},t.ch32=a,t.maj32=i,t.p32=o,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(36),a=r(80),i=r(31),o=n.rotr64_hi,c=n.rotr64_lo,f=n.shr64_hi,d=n.shr64_lo,s=n.sum64,u=n.sum64_hi,b=n.sum64_lo,h=n.sum64_4_hi,l=n.sum64_4_lo,p=n.sum64_5_hi,m=n.sum64_5_lo,x=a.BlockHash,y=[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];function v(){if(!(this instanceof v))return new v;x.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function g(e,t,r,n,a){var i=e&r^~e&a;return i<0&&(i+=4294967296),i}function w(e,t,r,n,a,i){var o=t&n^~t&i;return o<0&&(o+=4294967296),o}function _(e,t,r,n,a){var i=e&r^e&a^r&a;return i<0&&(i+=4294967296),i}function M(e,t,r,n,a,i){var o=t&n^t&i^n&i;return o<0&&(o+=4294967296),o}function k(e,t){var r=o(e,t,28)^o(t,e,2)^o(t,e,7);return r<0&&(r+=4294967296),r}function S(e,t){var r=c(e,t,28)^c(t,e,2)^c(t,e,7);return r<0&&(r+=4294967296),r}function A(e,t){var r=o(e,t,14)^o(e,t,18)^o(t,e,9);return r<0&&(r+=4294967296),r}function E(e,t){var r=c(e,t,14)^c(e,t,18)^c(t,e,9);return r<0&&(r+=4294967296),r}function T(e,t){var r=o(e,t,1)^o(e,t,8)^f(e,t,7);return r<0&&(r+=4294967296),r}function O(e,t){var r=c(e,t,1)^c(e,t,8)^d(e,t,7);return r<0&&(r+=4294967296),r}function P(e,t){var r=o(e,t,19)^o(t,e,29)^f(e,t,6);return r<0&&(r+=4294967296),r}function j(e,t){var r=c(e,t,19)^c(t,e,29)^d(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(v,x),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n)o.endEmitted?_(e,new w):E(e,o,t,!0);else if(o.ended)_(e,new v);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?E(e,o,t,!1):j(e,o)):E(e,o,t,!1)}else n||(o.reading=!1,j(e,o));return!o.ended&&(o.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e){var t=e._readableState;d("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(P,e))}function P(e){var t=e._readableState;d("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function j(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(B,e,t))}function B(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function C(e){d("readable nexttick read 0"),e.read(0)}function I(e,t){d("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function U(e){var t=e._readableState;d("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(z,t,e))}function z(e,t){if(d("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function F(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):O(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&U(this),null;var n,a=t.needReadable;return d("need readable",a),(0===t.length||t.length-e0?N(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&U(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(e){_(this,new g("_read()"))},S.prototype.pipe=function(e,t){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,d("pipe count=%d opts=%j",a.pipesCount,t);var o=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?f:m;function c(t,n){d("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),e.removeListener("close",l),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",h),e.removeListener("unpipe",c),r.removeListener("end",f),r.removeListener("end",m),r.removeListener("data",b),u=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||s())}function f(){d("onend"),e.end()}a.endEmitted?n.nextTick(o):r.once("end",o),e.on("unpipe",c);var s=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,L(e))}}(r);e.on("drain",s);var u=!1;function b(t){d("ondata");var n=e.write(t);d("dest.write",n),!1===n&&((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==F(a.pipes,e))&&!u&&(d("false write response, pause",a.awaitDrain),a.awaitDrain++),r.pause())}function h(t){d("onerror",t),m(),e.removeListener("error",h),0===i(e,"error")&&_(e,t)}function l(){e.removeListener("finish",p),m()}function p(){d("onfinish"),e.removeListener("close",l),m()}function m(){d("unpipe"),r.unpipe(e)}return r.on("data",b),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",l),e.once("finish",p),e.emit("pipe",r),a.flowing||(d("pipe resume"),r.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0,!1!==a.flowing&&this.resume()):"readable"===e&&(a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,d("on readable",a.length,a.reading),a.length?O(this):a.reading||n.nextTick(C,this))),r},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var r=o.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(R,this),r},S.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(R,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(I,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var a in e.on("end",(function(){if(d("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(a){(d("wrapped data"),r.decoder&&(a=r.decoder.write(a)),r.objectMode&&null==a)||(r.objectMode||a&&a.length)&&(t.push(a)||(n=!0,e.pause()))})),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var i=0;i-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,r){r(new p("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,r){var a=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),a.corked&&(a.corked=1,this.uncork()),a.ending||function(e,t,r){t.ending=!0,j(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,a,r),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=u.destroy,S.prototype._undestroy=u.undestroy,S.prototype._destroy=function(e,t){t(e)}}).call(this,r(13),r(11))},function(e,t,r){"use strict";e.exports=s;var n=r(63).codes,a=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=n.ERR_TRANSFORM_WITH_LENGTH_0,f=r(64);function d(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length=this._blockSize;){for(var i=this._blockOffset;i0;++o)this._length[o]+=c,(c=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*c);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},i.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=i},function(e,t,r){"use strict";(function(t,n){var a;e.exports=S,S.ReadableState=k;r(23).EventEmitter;var i=function(e,t){return e.listeners(t).length},o=r(215),c=r(0).Buffer,f=t.Uint8Array||function(){};var d,s=r(420);d=s&&s.debuglog?s.debuglog("stream"):function(){};var u,b,h,l=r(421),p=r(216),m=r(217).getHighWaterMark,x=r(65).codes,y=x.ERR_INVALID_ARG_TYPE,v=x.ERR_STREAM_PUSH_AFTER_EOF,g=x.ERR_METHOD_NOT_IMPLEMENTED,w=x.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(4)(S,o);var _=p.errorOrDestroy,M=["error","close","destroy","pause","resume"];function k(e,t,n){a=a||r(66),e=e||{},"boolean"!=typeof n&&(n=t instanceof a),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",n),this.buffer=new l,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!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(u||(u=r(39).StringDecoder),this.decoder=new u(e.encoding),this.encoding=e.encoding)}function S(e){if(a=a||r(66),!(this instanceof S))return new S(e);var t=this instanceof a;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function A(e,t,r,n,a){d("readableAddChunk",t);var i,o=e._readableState;if(null===t)o.reading=!1,function(e,t){if(d("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?O(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,P(e)))}(e,o);else if(a||(i=function(e,t){var r;n=t,c.isBuffer(n)||n instanceof f||"string"==typeof t||void 0===t||e.objectMode||(r=new y("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(o,t)),i)_(e,i);else if(o.objectMode||t&&t.length>0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n)o.endEmitted?_(e,new w):E(e,o,t,!0);else if(o.ended)_(e,new v);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?E(e,o,t,!1):j(e,o)):E(e,o,t,!1)}else n||(o.reading=!1,j(e,o));return!o.ended&&(o.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e){var t=e._readableState;d("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(P,e))}function P(e){var t=e._readableState;d("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function j(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(B,e,t))}function B(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function C(e){d("readable nexttick read 0"),e.read(0)}function I(e,t){d("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function U(e){var t=e._readableState;d("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(z,t,e))}function z(e,t){if(d("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function F(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):O(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&U(this),null;var n,a=t.needReadable;return d("need readable",a),(0===t.length||t.length-e0?N(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&U(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(e){_(this,new g("_read()"))},S.prototype.pipe=function(e,t){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,d("pipe count=%d opts=%j",a.pipesCount,t);var o=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?f:m;function c(t,n){d("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),e.removeListener("close",l),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",h),e.removeListener("unpipe",c),r.removeListener("end",f),r.removeListener("end",m),r.removeListener("data",b),u=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||s())}function f(){d("onend"),e.end()}a.endEmitted?n.nextTick(o):r.once("end",o),e.on("unpipe",c);var s=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,L(e))}}(r);e.on("drain",s);var u=!1;function b(t){d("ondata");var n=e.write(t);d("dest.write",n),!1===n&&((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==F(a.pipes,e))&&!u&&(d("false write response, pause",a.awaitDrain),a.awaitDrain++),r.pause())}function h(t){d("onerror",t),m(),e.removeListener("error",h),0===i(e,"error")&&_(e,t)}function l(){e.removeListener("finish",p),m()}function p(){d("onfinish"),e.removeListener("close",l),m()}function m(){d("unpipe"),r.unpipe(e)}return r.on("data",b),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",l),e.once("finish",p),e.emit("pipe",r),a.flowing||(d("pipe resume"),r.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0,!1!==a.flowing&&this.resume()):"readable"===e&&(a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,d("on readable",a.length,a.reading),a.length?O(this):a.reading||n.nextTick(C,this))),r},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var r=o.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(R,this),r},S.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(R,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(I,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var a in e.on("end",(function(){if(d("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(a){(d("wrapped data"),r.decoder&&(a=r.decoder.write(a)),r.objectMode&&null==a)||(r.objectMode||a&&a.length)&&(t.push(a)||(n=!0,e.pause()))})),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var i=0;i-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,r){r(new p("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,r){var a=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),a.corked&&(a.corked=1,this.uncork()),a.ending||function(e,t,r){t.ending=!0,j(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,a,r),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=u.destroy,S.prototype._undestroy=u.undestroy,S.prototype._destroy=function(e,t){t(e)}}).call(this,r(13),r(11))},function(e,t,r){"use strict";e.exports=s;var n=r(65).codes,a=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=n.ERR_TRANSFORM_WITH_LENGTH_0,f=r(66);function d(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function b(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(f,a),f.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},f.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,a=0|this._b,i=0|this._c,c=0|this._d,f=0|this._e,l=0|this._f,p=0|this._g,m=0|this._h,x=0;x<16;++x)r[x]=e.readInt32BE(4*x);for(;x<64;++x)r[x]=0|(((t=r[x-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[x-7]+h(r[x-15])+r[x-16];for(var y=0;y<64;++y){var v=m+b(f)+d(f,l,p)+o[y]+r[y]|0,g=u(n)+s(n,a,i)|0;m=p,p=l,l=f,f=c+v|0,c=i,i=a,a=n,n=v+g|0}this._a=n+this._a|0,this._b=a+this._b|0,this._c=i+this._c|0,this._d=c+this._d|0,this._e=f+this._e|0,this._f=l+this._f|0,this._g=p+this._g|0,this._h=m+this._h|0},f.prototype._hash=function(){var e=i.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=f},function(e,t,r){var n=r(4),a=r(67),i=r(6).Buffer,o=[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],c=new Array(160);function f(){this.init(),this._w=c,a.call(this,128,112)}function d(e,t,r){return r^e&(t^r)}function s(e,t,r){return e&t|r&(e|t)}function u(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function b(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function p(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function x(e,t){return e>>>0>>0?1:0}n(f,a),f.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},f.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,a=0|this._ch,i=0|this._dh,c=0|this._eh,f=0|this._fh,y=0|this._gh,v=0|this._hh,g=0|this._al,w=0|this._bl,_=0|this._cl,M=0|this._dl,k=0|this._el,S=0|this._fl,A=0|this._gl,E=0|this._hl,T=0;T<32;T+=2)t[T]=e.readInt32BE(4*T),t[T+1]=e.readInt32BE(4*T+4);for(;T<160;T+=2){var O=t[T-30],P=t[T-30+1],j=h(O,P),B=l(P,O),R=p(O=t[T-4],P=t[T-4+1]),C=m(P,O),I=t[T-14],L=t[T-14+1],N=t[T-32],U=t[T-32+1],z=B+L|0,F=j+I+x(z,B)|0;F=(F=F+R+x(z=z+C|0,C)|0)+N+x(z=z+U|0,U)|0,t[T]=F,t[T+1]=z}for(var q=0;q<160;q+=2){F=t[q],z=t[q+1];var H=s(r,n,a),D=s(g,w,_),K=u(r,g),G=u(g,r),W=b(c,k),V=b(k,c),Z=o[q],J=o[q+1],X=d(c,f,y),Y=d(k,S,A),$=E+V|0,Q=v+W+x($,E)|0;Q=(Q=(Q=Q+X+x($=$+Y|0,Y)|0)+Z+x($=$+J|0,J)|0)+F+x($=$+z|0,z)|0;var ee=G+D|0,te=K+H+x(ee,G)|0;v=y,E=A,y=f,A=S,f=c,S=k,c=i+Q+x(k=M+$|0,M)|0,i=a,M=_,a=n,_=w,n=r,w=g,r=Q+te+x(g=$+ee|0,$)|0}this._al=this._al+g|0,this._bl=this._bl+w|0,this._cl=this._cl+_|0,this._dl=this._dl+M|0,this._el=this._el+k|0,this._fl=this._fl+S|0,this._gl=this._gl+A|0,this._hl=this._hl+E|0,this._ah=this._ah+r+x(this._al,g)|0,this._bh=this._bh+n+x(this._bl,w)|0,this._ch=this._ch+a+x(this._cl,_)|0,this._dh=this._dh+i+x(this._dl,M)|0,this._eh=this._eh+c+x(this._el,k)|0,this._fh=this._fh+f+x(this._fl,S)|0,this._gh=this._gh+y+x(this._gl,A)|0,this._hh=this._hh+v+x(this._hl,E)|0},f.prototype._hash=function(){var e=i.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=f},function(e,t,r){"use strict";(function(t,n){var a=r(103);e.exports=v;var i,o=r(197);v.ReadableState=y;r(23).EventEmitter;var c=function(e,t){return e.listeners(t).length},f=r(223),d=r(138).Buffer,s=t.Uint8Array||function(){};var u=Object.create(r(83));u.inherits=r(4);var b=r(433),h=void 0;h=b&&b.debuglog?b.debuglog("stream"):function(){};var l,p=r(434),m=r(224);u.inherits(v,f);var x=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var n=t instanceof(i=i||r(50));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var a=e.highWaterMark,o=e.readableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:n&&(o||0===o)?o:c,this.highWaterMark=Math.floor(this.highWaterMark),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.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=r(39).StringDecoder),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function v(e){if(i=i||r(50),!(this instanceof v))return new v(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function g(e,t,r,n,a){var i,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,M(e)}(e,o)):(a||(i=function(e,t){var r;n=t,d.isBuffer(n)||n instanceof s||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(o,t)),i?e.emit("error",i):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===d.prototype||(t=function(e){return d.from(e)}(t)),n?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?w(e,o,t,!1):S(e,o)):w(e,o,t,!1))):n||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?a.nextTick(k,e):k(e))}function k(e){h("emit readable"),e.emit("readable"),O(e)}function S(e,t){t.readingMore||(t.readingMore=!0,a.nextTick(A,e,t))}function A(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;ei.length?i.length:e;if(o===i.length?a+=i:a+=i.slice(0,e),0===(e-=o)){o===i.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(o));break}++n}return t.length-=n,a}(e,t):function(e,t){var r=d.allocUnsafe(e),n=t.head,a=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(r,r.length-e,0,o),0===(e-=o)){o===i.length?(++a,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(o));break}++a}return t.length-=a,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function j(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,a.nextTick(B,t,e))}function B(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function R(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):M(this),null;if(0===(e=_(e,t))&&t.ended)return 0===t.length&&j(this),null;var n,a=t.needReadable;return h("need readable",a),(0===t.length||t.length-e0?P(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit("data",n),n},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,t);var f=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?s:v;function d(t,n){h("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,h("cleanup"),e.removeListener("close",x),e.removeListener("finish",y),e.removeListener("drain",u),e.removeListener("error",m),e.removeListener("unpipe",d),r.removeListener("end",s),r.removeListener("end",v),r.removeListener("data",p),b=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function s(){h("onend"),e.end()}i.endEmitted?a.nextTick(f):r.once("end",f),e.on("unpipe",d);var u=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,O(e))}}(r);e.on("drain",u);var b=!1;var l=!1;function p(t){h("ondata"),l=!1,!1!==e.write(t)||l||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==R(i.pipes,e))&&!b&&(h("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,l=!0),r.pause())}function m(t){h("onerror",t),v(),e.removeListener("error",m),0===c(e,"error")&&e.emit("error",t)}function x(){e.removeListener("finish",y),v()}function y(){h("onfinish"),e.removeListener("close",x),v()}function v(){h("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",m),e.once("close",x),e.once("finish",y),e.emit("pipe",r),i.flowing||(h("pipe resume"),r.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;ie.length)&&(t=e.length);for(var r=0,n=new Array(t);r7&&e[r].toUpperCase()!==e[r]||parseInt(t[r],16)<=7&&e[r].toLowerCase()!==e[r])return!1;return!0},m=function(e){var t="";e=(e=(e=(e=(e=f.encode(e)).replace(/^(?:\u0000)*/,"")).split("").reverse().join("")).replace(/^(?:\u0000)*/,"")).split("").reverse().join("");for(var r=0;r>>4).toString(16)),t.push((15&e[r]).toString(16));return"0x"+t.join("")},isHex:w,isHexStrict:g,stripHexPrefix:function(e){return 0!==e&&w(e)?e.replace(/^(-)?0x/i,"$1"):e},leftPad:function(e,t,r){var n=/^0x/i.test(e)||"number"==typeof e,a=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0;return(n?"0x":"")+new Array(a).join(r||"0")+e},rightPad:function(e,t,r){var n=/^0x/i.test(e)||"number"==typeof e,a=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0;return(n?"0x":"")+e+new Array(a).join(r||"0")},toTwosComplement:function(e){return"0x"+h(e).toTwos(256).toString(16,64)},sha3:M,sha3Raw:function(e){return null===(e=M(e))?_:e},toNumber:function(e){return"number"==typeof e?e:x(v(e))}}}).call(this,r(0).Buffer)},function(e,t,r){!function(e){var t,r,n,a=String.fromCharCode;function i(e){for(var t,r,n=[],a=0,i=e.length;a=55296&&t<=56319&&a=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function c(e,t){return a(e>>t&63|128)}function f(e){if(0==(4294967168&e))return a(e);var t="";return 0==(4294965248&e)?t=a(e>>6&31|192):0==(4294901760&e)?(o(e),t=a(e>>12&15|224),t+=c(e,6)):0==(4292870144&e)&&(t=a(e>>18&7|240),t+=c(e,12),t+=c(e,6)),t+=a(63&e|128)}function d(){if(n>=r)throw Error("Invalid byte index");var e=255&t[n];if(n++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function s(){var e,a;if(n>r)throw Error("Invalid byte index");if(n==r)return!1;if(e=255&t[n],n++,0==(128&e))return e;if(192==(224&e)){if((a=(31&e)<<6|d())>=128)return a;throw Error("Invalid continuation byte")}if(224==(240&e)){if((a=(15&e)<<12|d()<<6|d())>=2048)return o(a),a;throw Error("Invalid continuation byte")}if(240==(248&e)&&(a=(7&e)<<18|d()<<12|d()<<6|d())>=65536&&a<=1114111)return a;throw Error("Invalid UTF-8 detected")}e.version="3.0.0",e.encode=function(e){for(var t=i(e),r=t.length,n=-1,a="";++n65535&&(i+=a((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=a(t);return i}(c)}}(t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=t.MAX_UINT64=void 0;var n=r(0),a=r(40);t.MAX_UINT64=new a.BN("ffffffffffffffff",16),t.MAX_INTEGER=new a.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new a.BN("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=n.Buffer.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=n.Buffer.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=n.Buffer.from(t.KECCAK256_RLP_S,"hex")},function(e,t,r){"use strict";(function(e){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;var i=a(r(14)),o=r(40),c=r(22),f=r(68),d=r(230),s=r(52),u=r(142),b=r(107),h=r(143),l=function(){function e(e,t,r,n){void 0===e&&(e=new o.BN(0)),void 0===t&&(t=new o.BN(0)),void 0===r&&(r=d.KECCAK256_RLP),void 0===n&&(n=d.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=r,this.codeHash=n,this._validate()}return e.fromAccountData=function(t){var r=t.nonce,n=t.balance,a=t.stateRoot,i=t.codeHash;return new e(r?new o.BN((0,s.toBuffer)(r)):void 0,n?new o.BN((0,s.toBuffer)(n)):void 0,a?(0,s.toBuffer)(a):void 0,i?(0,s.toBuffer)(i):void 0)},e.fromRlpSerializedAccount=function(e){var t=o.rlp.decode(e);if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},e.fromValuesArray=function(t){var r=n(t,4),a=r[0],i=r[1],c=r[2],f=r[3];return new e(new o.BN(a),new o.BN(i),c,f)},e.prototype._validate=function(){if(this.nonce.lt(new o.BN(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new o.BN(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")},e.prototype.raw=function(){return[(0,h.bnToUnpaddedBuffer)(this.nonce),(0,h.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return o.rlp.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(d.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(d.KECCAK256_NULL)},e}();t.Account=l;t.isValidAddress=function(e){try{(0,b.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)};t.toChecksumAddress=function(e,t){(0,b.assertIsHexString)(e);var r=(0,f.stripHexPrefix)(e).toLowerCase(),n="";t&&(n=(0,h.toType)(t,h.TypeOutput.BN).toString()+"0x");for(var a=(0,u.keccakFromString)(n+r).toString("hex"),i="0x",o=0;o=8?i+=r[o].toUpperCase():i+=r[o];return i};t.isValidChecksumAddress=function(e,r){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,r)===e};t.generateAddress=function(t,r){(0,b.assertIsBuffer)(t),(0,b.assertIsBuffer)(r);var n=new o.BN(r);return n.isZero()?(0,u.rlphash)([t,null]).slice(-20):(0,u.rlphash)([t,e.from(n.toArray())]).slice(-20)};t.generateAddress2=function(t,r,n){return(0,b.assertIsBuffer)(t),(0,b.assertIsBuffer)(r),(0,b.assertIsBuffer)(n),(0,i.default)(20===t.length),(0,i.default)(32===r.length),(0,u.keccak256)(e.concat([e.from("ff","hex"),t,r,(0,u.keccak256)(n)])).slice(-20)};t.isValidPrivate=function(e){return(0,c.privateKeyVerify)(e)};t.isValidPublic=function(t,r){return void 0===r&&(r=!1),(0,b.assertIsBuffer)(t),64===t.length?(0,c.publicKeyVerify)(e.concat([e.from([4]),t])):!!r&&(0,c.publicKeyVerify)(t)};t.pubToAddress=function(t,r){return void 0===r&&(r=!1),(0,b.assertIsBuffer)(t),r&&64!==t.length&&(t=e.from((0,c.publicKeyConvert)(t,!1).slice(1))),(0,i.default)(64===t.length),(0,u.keccak)(t).slice(-20)},t.publicToAddress=t.pubToAddress;t.privateToPublic=function(t){return(0,b.assertIsBuffer)(t),e.from((0,c.publicKeyCreate)(t,!1)).slice(1)};t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))};t.importPublic=function(t){return(0,b.assertIsBuffer)(t),64!==t.length&&(t=e.from((0,c.publicKeyConvert)(t,!1).slice(1))),t};t.zeroAddress=function(){var e=(0,s.zeros)(20);return(0,s.bufferToHex)(e)};t.isZeroAddress=function(e){try{(0,b.assertIsString)(e)}catch(e){return!1}return(0,t.zeroAddress)()===e}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";function n(e,t){for(var r=0;r=t&&n<=r?n-t+10:e})).join("")},c=function(e){for(var t,r=e;r.length>2;)t=r.slice(0,9),r=parseInt(t,10)%97+r.slice(t.length);return parseInt(r,10)%97},f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._iban=t}var t,r,f;return t=e,f=[{key:"toAddress",value:function(t){if(!(t=new e(t)).isDirect())throw new Error("IBAN is indirect and can't be converted");return t.toAddress()}},{key:"toIban",value:function(t){return e.fromAddress(t).toString()}},{key:"fromAddress",value:function(t){if(!a.isAddress(t))throw new Error("Provided address is not a valid address: "+t);t=t.replace("0x","").replace("0X","");var r=function(e,t){for(var r=e;r.length<2*t;)r="0"+r;return r}(new i(t,16).toString(36),15);return e.fromBban(r.toUpperCase())}},{key:"fromBban",value:function(t){return new e("XE"+("0"+(98-c(o("XE00"+t)))).slice(-2)+t)}},{key:"createIndirect",value:function(t){return e.fromBban("ETH"+t.institution+t.identifier)}},{key:"isValid",value:function(t){return new e(t).isValid()}}],(r=[{key:"isValid",value:function(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&1===c(o(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.slice(2,4)}},{key:"institution",value:function(){return this.isIndirect()?this._iban.slice(7,11):""}},{key:"client",value:function(){return this.isIndirect()?this._iban.slice(11):""}},{key:"toAddress",value:function(){if(this.isDirect()){var e=this._iban.slice(4),t=new i(e,36);return a.toChecksumAddress(t.toString(16,20))}return""}},{key:"toString",value:function(){return this._iban}}])&&n(t.prototype,r),f&&n(t,f),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=f},function(e,t,r){"use strict";var n={messageId:0,toPayload:function(e,t){if(!e)throw new Error('JSONRPC method should be specified for params: "'+JSON.stringify(t)+'"!');return n.messageId++,{jsonrpc:"2.0",id:n.messageId,method:e,params:t||[]}},isValidResponse:function(e){return Array.isArray(e)?e.every(t):t(e);function t(e){return!(!e||e.error||"2.0"!==e.jsonrpc||"number"!=typeof e.id&&"string"!=typeof e.id||void 0===e.result)}},toBatchPayload:function(e){return e.map((function(e){return n.toPayload(e.method,e.params)}))}};e.exports=n},function(e,t,r){(function(e,n){var a;function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)} +*/var n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,c,f=o(e),d=1;d>>32-t}function d(e,t,r,n,a,i,o){return f(e+(t&r|~t&n)+a+i|0,o)+t|0}function s(e,t,r,n,a,i,o){return f(e+(t&n|r&~n)+a+i|0,o)+t|0}function u(e,t,r,n,a,i,o){return f(e+(t^r^n)+a+i|0,o)+t|0}function b(e,t,r,n,a,i,o){return f(e+(r^(t|~n))+a+i|0,o)+t|0}n(c,a),c.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,a=this._c,i=this._d;r=d(r,n,a,i,e[0],3614090360,7),i=d(i,r,n,a,e[1],3905402710,12),a=d(a,i,r,n,e[2],606105819,17),n=d(n,a,i,r,e[3],3250441966,22),r=d(r,n,a,i,e[4],4118548399,7),i=d(i,r,n,a,e[5],1200080426,12),a=d(a,i,r,n,e[6],2821735955,17),n=d(n,a,i,r,e[7],4249261313,22),r=d(r,n,a,i,e[8],1770035416,7),i=d(i,r,n,a,e[9],2336552879,12),a=d(a,i,r,n,e[10],4294925233,17),n=d(n,a,i,r,e[11],2304563134,22),r=d(r,n,a,i,e[12],1804603682,7),i=d(i,r,n,a,e[13],4254626195,12),a=d(a,i,r,n,e[14],2792965006,17),r=s(r,n=d(n,a,i,r,e[15],1236535329,22),a,i,e[1],4129170786,5),i=s(i,r,n,a,e[6],3225465664,9),a=s(a,i,r,n,e[11],643717713,14),n=s(n,a,i,r,e[0],3921069994,20),r=s(r,n,a,i,e[5],3593408605,5),i=s(i,r,n,a,e[10],38016083,9),a=s(a,i,r,n,e[15],3634488961,14),n=s(n,a,i,r,e[4],3889429448,20),r=s(r,n,a,i,e[9],568446438,5),i=s(i,r,n,a,e[14],3275163606,9),a=s(a,i,r,n,e[3],4107603335,14),n=s(n,a,i,r,e[8],1163531501,20),r=s(r,n,a,i,e[13],2850285829,5),i=s(i,r,n,a,e[2],4243563512,9),a=s(a,i,r,n,e[7],1735328473,14),r=u(r,n=s(n,a,i,r,e[12],2368359562,20),a,i,e[5],4294588738,4),i=u(i,r,n,a,e[8],2272392833,11),a=u(a,i,r,n,e[11],1839030562,16),n=u(n,a,i,r,e[14],4259657740,23),r=u(r,n,a,i,e[1],2763975236,4),i=u(i,r,n,a,e[4],1272893353,11),a=u(a,i,r,n,e[7],4139469664,16),n=u(n,a,i,r,e[10],3200236656,23),r=u(r,n,a,i,e[13],681279174,4),i=u(i,r,n,a,e[0],3936430074,11),a=u(a,i,r,n,e[3],3572445317,16),n=u(n,a,i,r,e[6],76029189,23),r=u(r,n,a,i,e[9],3654602809,4),i=u(i,r,n,a,e[12],3873151461,11),a=u(a,i,r,n,e[15],530742520,16),r=b(r,n=u(n,a,i,r,e[2],3299628645,23),a,i,e[0],4096336452,6),i=b(i,r,n,a,e[7],1126891415,10),a=b(a,i,r,n,e[14],2878612391,15),n=b(n,a,i,r,e[5],4237533241,21),r=b(r,n,a,i,e[12],1700485571,6),i=b(i,r,n,a,e[3],2399980690,10),a=b(a,i,r,n,e[10],4293915773,15),n=b(n,a,i,r,e[1],2240044497,21),r=b(r,n,a,i,e[8],1873313359,6),i=b(i,r,n,a,e[15],4264355552,10),a=b(a,i,r,n,e[6],2734768916,15),n=b(n,a,i,r,e[13],1309151649,21),r=b(r,n,a,i,e[4],4149444226,6),i=b(i,r,n,a,e[11],3174756917,10),a=b(a,i,r,n,e[2],718787259,15),n=b(n,a,i,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+a|0,this._d=this._d+i|0},c.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 e=i.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=c},function(e,t,r){"use strict";var n=r(65).codes.ERR_STREAM_PREMATURE_CLOSE;function a(){}e.exports=function e(t,r,i){if("function"==typeof r)return e(t,null,r);r||(r={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),a=0;a>>32-t}function p(e,t,r,n,a,i,o,c){return l(e+(t^r^n)+i+o|0,c)+a|0}function m(e,t,r,n,a,i,o,c){return l(e+(t&r|~t&n)+i+o|0,c)+a|0}function x(e,t,r,n,a,i,o,c){return l(e+((t|~r)^n)+i+o|0,c)+a|0}function y(e,t,r,n,a,i,o,c){return l(e+(t&n|r&~n)+i+o|0,c)+a|0}function v(e,t,r,n,a,i,o,c){return l(e+(t^(r|~n))+i+o|0,c)+a|0}a(h,i),h.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,a=0|this._c,i=0|this._d,h=0|this._e,g=0|this._a,w=0|this._b,_=0|this._c,M=0|this._d,k=0|this._e,S=0;S<80;S+=1){var A,E;S<16?(A=p(r,n,a,i,h,e[c[S]],u[0],d[S]),E=v(g,w,_,M,k,e[f[S]],b[0],s[S])):S<32?(A=m(r,n,a,i,h,e[c[S]],u[1],d[S]),E=y(g,w,_,M,k,e[f[S]],b[1],s[S])):S<48?(A=x(r,n,a,i,h,e[c[S]],u[2],d[S]),E=x(g,w,_,M,k,e[f[S]],b[2],s[S])):S<64?(A=y(r,n,a,i,h,e[c[S]],u[3],d[S]),E=m(g,w,_,M,k,e[f[S]],b[3],s[S])):(A=v(r,n,a,i,h,e[c[S]],u[4],d[S]),E=p(g,w,_,M,k,e[f[S]],b[4],s[S])),r=h,h=i,i=l(a,10),a=n,n=A,g=k,k=M,M=l(_,10),_=w,w=E}var T=this._b+a+M|0;this._b=this._c+i+k|0,this._c=this._d+h+g|0,this._d=this._e+r+w|0,this._e=this._a+n+_|0,this._a=T},h.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 e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(427),t.sha1=r(428),t.sha224=r(429),t.sha256=r(220),t.sha384=r(430),t.sha512=r(221)},function(e,t,r){var n=r(0),a=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return a(e,t,r)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=o),i(a,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t,n,a){var i=r(103);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var a=n.callback;t.pendingcb--,a(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var c,f=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:i.nextTick;y.WritableState=x;var d=Object.create(r(83));d.inherits=r(4);var s={deprecate:r(102)},u=r(223),b=r(138).Buffer,h=a.Uint8Array||function(){};var l,p=r(224);function m(){}function x(e,t){c=c||r(50),e=e||{};var n=t instanceof c;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var a=e.highWaterMark,d=e.writableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:n&&(d||0===d)?d:s,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 u=!1===e.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,a=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,a){--t.pendingcb,r?(i.nextTick(a,n),i.nextTick(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(a(n),e._writableState.errorEmitted=!0,e.emit("error",n),k(e,t))}(e,r,n,t,a);else{var o=_(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||w(e,r),n?f(g,e,r,o,a):g(e,r,o,a)}}(t,e)},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 o(this)}function y(e){if(c=c||r(50),!(l.call(y,this)||this instanceof c))return new y(e);this._writableState=new x(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function v(e,t,r,n,a,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(a,t.onwrite):e._write(a,i,t.onwrite),t.sync=!1}function g(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),k(e,t)}function w(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,a=new Array(n),i=t.corkedRequestsFree;i.entry=r;for(var c=0,f=!0;r;)a[c]=r,r.isBuf||(f=!1),r=r.next,c+=1;a.allBuffers=f,v(e,t,!0,t.length,a,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var d=r.chunk,s=r.encoding,u=r.callback;if(v(e,t,!1,t.objectMode?1:d.length,d,s,u),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),k(e,t)}))}function k(e,t){var r=_(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(M,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}d.inherits(y,u),x.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(x.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===y&&(e&&e._writableState instanceof x)}})):l=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,r){var n,a=this._writableState,o=!1,c=!a.objectMode&&(n=e,b.isBuffer(n)||n instanceof h);return c&&!b.isBuffer(e)&&(e=function(e){return b.from(e)}(e)),"function"==typeof t&&(r=t,t=null),c?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof r&&(r=m),a.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),i.nextTick(t,r)}(this,r):(c||function(e,t,r,n){var a=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),i.nextTick(n,o),a=!1),a}(this,a,e,r))&&(a.pendingcb++,o=function(e,t,r,n,a,i){if(!r){var o=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=b.from(t,r));return t}(t,n,a);n!==o&&(r=!0,a="buffer",n=o)}var c=t.objectMode?1:n.length;t.length+=c;var f=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,k(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=p.destroy,y.prototype._undestroy=p.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(11),r(104).setImmediate,r(13))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.ecdhUnsafe=t.ecdh=t.recover=t.verify=t.sign=t.signatureImportLax=t.signatureImport=t.signatureExport=t.signatureNormalize=t.publicKeyCombine=t.publicKeyTweakMul=t.publicKeyTweakAdd=t.publicKeyVerify=t.publicKeyConvert=t.publicKeyCreate=t.privateKeyTweakMul=t.privateKeyTweakAdd=t.privateKeyModInverse=t.privateKeyNegate=t.privateKeyImport=t.privateKeyExport=t.privateKeyVerify=void 0;var n=r(22),a=r(448),i=r(449);t.privateKeyVerify=function(e){return 32===e.length&&n.privateKeyVerify(Uint8Array.from(e))},t.privateKeyExport=function(e,t){if(32!==e.length)throw new RangeError("private key length is invalid");var r=a.privateKeyExport(e,t);return i.privateKeyExport(e,r,t)},t.privateKeyImport=function(e){if(null!==(e=i.privateKeyImport(e))&&32===e.length&&t.privateKeyVerify(e))return e;throw new Error("couldn't import from DER format")},t.privateKeyNegate=function(t){return e.from(n.privateKeyNegate(Uint8Array.from(t)))},t.privateKeyModInverse=function(t){if(32!==t.length)throw new Error("private key length is invalid");return e.from(a.privateKeyModInverse(Uint8Array.from(t)))},t.privateKeyTweakAdd=function(t,r){return e.from(n.privateKeyTweakAdd(Uint8Array.from(t),r))},t.privateKeyTweakMul=function(t,r){return e.from(n.privateKeyTweakMul(Uint8Array.from(t),Uint8Array.from(r)))},t.publicKeyCreate=function(t,r){return e.from(n.publicKeyCreate(Uint8Array.from(t),r))},t.publicKeyConvert=function(t,r){return e.from(n.publicKeyConvert(Uint8Array.from(t),r))},t.publicKeyVerify=function(e){return(33===e.length||65===e.length)&&n.publicKeyVerify(Uint8Array.from(e))},t.publicKeyTweakAdd=function(t,r,a){return e.from(n.publicKeyTweakAdd(Uint8Array.from(t),Uint8Array.from(r),a))},t.publicKeyTweakMul=function(t,r,a){return e.from(n.publicKeyTweakMul(Uint8Array.from(t),Uint8Array.from(r),a))},t.publicKeyCombine=function(t,r){var a=[];return t.forEach((function(e){a.push(Uint8Array.from(e))})),e.from(n.publicKeyCombine(a,r))},t.signatureNormalize=function(t){return e.from(n.signatureNormalize(Uint8Array.from(t)))},t.signatureExport=function(t){return e.from(n.signatureExport(Uint8Array.from(t)))},t.signatureImport=function(t){return e.from(n.signatureImport(Uint8Array.from(t)))},t.signatureImportLax=function(e){if(0===e.length)throw new RangeError("signature length is invalid");var t=i.signatureImportLax(e);if(null===t)throw new Error("couldn't parse DER signature");return a.signatureImport(t)},t.sign=function(t,r,a){if(null===a)throw new TypeError("options should be an Object");var i=void 0;if(a){if(i={},null===a.data)throw new TypeError("options.data should be a Buffer");if(a.data){if(32!=a.data.length)throw new RangeError("options.data length is invalid");i.data=new Uint8Array(a.data)}if(null===a.noncefn)throw new TypeError("options.noncefn should be a Function");a.noncefn&&(i.noncefn=function(t,r,n,i,o){var c=null!=n?e.from(n):null,f=null!=i?e.from(i):null,d=e.from("");return a.noncefn&&(d=a.noncefn(e.from(t),e.from(r),c,f,o)),new Uint8Array(d)})}var o=n.ecdsaSign(Uint8Array.from(t),Uint8Array.from(r),i);return{signature:e.from(o.signature),recovery:o.recid}},t.verify=function(e,t,r){return n.ecdsaVerify(Uint8Array.from(t),Uint8Array.from(e),r)},t.recover=function(t,r,a,i){return e.from(n.ecdsaRecover(Uint8Array.from(r),a,Uint8Array.from(t),i))},t.ecdh=function(t,r){return e.from(n.ecdh(Uint8Array.from(t),Uint8Array.from(r),{}))},t.ecdhUnsafe=function(t,r,n){if(33!==t.length&&65!==t.length)throw new RangeError("public key length is invalid");if(32!==r.length)throw new RangeError("private key length is invalid");return e.from(a.ecdhUnsafe(Uint8Array.from(t),Uint8Array.from(r),n))}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160=t.sha256=t.keccak256=t.keccak=void 0;var n=r(38),a=n.keccak224,i=n.keccak384,o=n.keccak256,c=n.keccak512,f=r(19),d=r(18),s=r(21),u=r(84);t.keccak=function(t,r){switch(void 0===r&&(r=256),t="string"!=typeof t||d.isHexString(t)?u.toBuffer(t):e.from(t,"utf8"),r||(r=256),r){case 224:return a(t);case 256:return o(t);case 384:return i(t);case 512:return c(t);default:throw new Error("Invald algorithm: keccak"+r)}},t.keccak256=function(e){return t.keccak(e)},t.sha256=function(e){return e=u.toBuffer(e),f("sha256").update(e).digest()},t.ripemd160=function(e,t){e=u.toBuffer(e);var r=f("rmd160").update(e).digest();return!0===t?u.setLength(r,32):r},t.rlphash=function(e){return t.keccak(s.encode(e))}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160FromArray=t.ripemd160FromString=t.ripemd160=t.sha256FromArray=t.sha256FromString=t.sha256=t.keccakFromArray=t.keccakFromHexString=t.keccakFromString=t.keccak256=t.keccak=void 0;var n=r(38),a=r(19),i=r(40),o=r(52),c=r(107);t.keccak=function(e,t){switch(void 0===t&&(t=256),(0,c.assertIsBuffer)(e),t){case 224:return(0,n.keccak224)(e);case 256:return(0,n.keccak256)(e);case 384:return(0,n.keccak384)(e);case 512:return(0,n.keccak512)(e);default:throw new Error("Invald algorithm: keccak".concat(t))}};t.keccak256=function(e){return(0,t.keccak)(e)};t.keccakFromString=function(r,n){void 0===n&&(n=256),(0,c.assertIsString)(r);var a=e.from(r,"utf8");return(0,t.keccak)(a,n)};t.keccakFromHexString=function(e,r){return void 0===r&&(r=256),(0,c.assertIsHexString)(e),(0,t.keccak)((0,o.toBuffer)(e),r)};t.keccakFromArray=function(e,r){return void 0===r&&(r=256),(0,c.assertIsArray)(e),(0,t.keccak)((0,o.toBuffer)(e),r)};var f=function(e){return e=(0,o.toBuffer)(e),a("sha256").update(e).digest()};t.sha256=function(e){return(0,c.assertIsBuffer)(e),f(e)};t.sha256FromString=function(e){return(0,c.assertIsString)(e),f(e)};t.sha256FromArray=function(e){return(0,c.assertIsArray)(e),f(e)};var d=function(e,t){e=(0,o.toBuffer)(e);var r=a("rmd160").update(e).digest();return!0===t?(0,o.setLengthLeft)(r,32):r};t.ripemd160=function(e,t){return(0,c.assertIsBuffer)(e),d(e,t)};t.ripemd160FromString=function(e,t){return(0,c.assertIsString)(e),d(e,t)};t.ripemd160FromArray=function(e,t){return(0,c.assertIsArray)(e),d(e,t)};t.rlphash=function(e){return(0,t.keccak)(i.rlp.encode(e))}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0;var n,a=r(40),i=r(68),o=r(52);function c(t){return(0,o.unpadBuffer)(t.toArrayLike(e))}t.bnToHex=function(e){return"0x".concat(e.toString(16))},t.bnToUnpaddedBuffer=c,t.bnToRlp=function(e){return c(e)},function(e){e[e.Number=0]="Number",e[e.BN=1]="BN",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(n=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0!==e){if("string"==typeof e&&!(0,i.isHexString)(e))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(e));if("number"==typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var r=(0,o.toBuffer)(e);if(t===n.Buffer)return r;if(t===n.BN)return new a.BN(r);if(t===n.Number){var c=new a.BN(r),f=new a.BN(Number.MAX_SAFE_INTEGER.toString());if(c.gt(f))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return c.toNumber()}return"0x".concat(r.toString("hex"))}}}).call(this,r(0).Buffer)},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,a="~";function i(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function c(e,t,r,n,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var c=new o(r,n||e,i),f=a?a+t:t;return e._events[f]?e._events[f].fn?e._events[f]=[e._events[f],c]:e._events[f].push(c):(e._events[f]=c,e._eventsCount++),e}function f(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function d(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(a=!1)),d.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(a?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},d.prototype.listeners=function(e){var t=a?a+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,i=r.length,o=new Array(i);n 2 bytes.");var r=i.decode(e);if(!t.isValidCode(r))throw new Error("multihash unknown function code: 0x".concat(r.toString(16)));e=e.slice(i.decode.bytes);var a=i.decode(e);if(a<0)throw new Error("multihash invalid length: ".concat(a));if((e=e.slice(i.decode.bytes)).length!==a)throw new Error("multihash length inconsistent: 0x".concat(e.toString("hex")));return{code:r,name:o.codes[r],length:a,digest:e}},t.encode=function(e,r,a){if(!e||void 0===r)throw new Error("multihash encode requires at least two args: digest, code");var o=t.coerceCode(r);if(!n.isBuffer(e))throw new Error("digest should be a Buffer");if(null==a&&(a=e.length),a&&e.length!==a)throw new Error("digest length should be equal to specified length.");return n.concat([n.from(i.encode(o)),n.from(i.encode(a)),e])},t.coerceCode=function(e){var r=e;if("string"==typeof e){if(void 0===o.names[e])throw new Error("Unrecognized hash function named: ".concat(e));r=o.names[e]}if("number"!=typeof r)throw new Error("Hash function code should be a number. Got: ".concat(r));if(void 0===o.codes[r]&&!t.isAppCode(r))throw new Error("Unrecognized function code: ".concat(r));return r},t.isAppCode=function(e){return e>0&&e<16},t.isValidCode=function(e){return!!t.isAppCode(e)||!!o.codes[e]},t.validate=c,t.prefix=function(e){return c(e),e.slice(0,2)}},function(e,t,r){"use strict";var n=r(6).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r>>0,s=new Uint8Array(o);e[r];){var u=t[e.charCodeAt(r)];if(255===u)return;for(var b=0,h=o-1;(0!==u||b>>0,s[h]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");i=b,r++}for(var l=o-i;l!==o&&0===s[l];)l++;var p=n.allocUnsafe(a+(o-l));p.fill(0,0,a);for(var m=a;l!==o;)p[m++]=s[l++];return p}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=n.from(t)),!n.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,a=0,i=0,o=t.length;i!==o&&0===t[i];)i++,r++;for(var d=(o-i)*s+1>>>0,u=new Uint8Array(d);i!==o;){for(var b=t[i],h=0,l=d-1;(0!==b||h>>0,u[l]=b%c>>>0,b=b/c>>>0;if(0!==b)throw new Error("Non-zero carry");a=h,i++}for(var p=d-a;p!==d&&0===u[p];)p++;for(var m=f.repeat(r);pr)?t=("rmd160"===e?new f:d(e)).update(t).digest():t.length0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(a,r);return t+=this._buffer(e,t),a},a.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},a.prototype._pad=function(e,t){if(0===t)return!1;for(;t=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function o(e,r){var a=function(e){var t=i(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(r),o=r.modulus.byteLength(),c=new n(e).mul(a.blinder).umod(r.modulus),f=c.toRed(n.mont(r.prime1)),d=c.toRed(n.mont(r.prime2)),s=r.coefficient,u=r.prime1,b=r.prime2,h=f.redPow(r.exponent1).fromRed(),l=d.redPow(r.exponent2).fromRed(),p=h.isub(l).imul(s).umod(u).imul(b);return l.iadd(p).imul(a.unblinder).umod(r.modulus).toArrayLike(t,"be",o)}o.getr=i,e.exports=o}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a,i=r(0),o=i.Buffer,c={};for(a in i)i.hasOwnProperty(a)&&"SlowBuffer"!==a&&"Buffer"!==a&&(c[a]=i[a]);var f=c.Buffer={};for(a in o)o.hasOwnProperty(a)&&"allocUnsafe"!==a&&"allocUnsafeSlow"!==a&&(f[a]=o[a]);if(c.Buffer.prototype=o.prototype,f.from&&f.from!==Uint8Array.from||(f.from=function(e,t,r){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+n(e));if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+n(e));return o(e,t,r)}),f.alloc||(f.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+n(e));if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var a=o(e);return t&&0!==t.length?"string"==typeof r?a.fill(t,r):a.fill(t):a.fill(0),a}),!c.kStringMaxLength)try{c.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(e){}c.constants||(c.constants={MAX_LENGTH:c.kMaxLength},c.kStringMaxLength&&(c.constants.MAX_STRING_LENGTH=c.kStringMaxLength)),e.exports=c}).call(this,r(11))},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=r(159).Reporter,i=r(91).EncoderBuffer,o=r(91).DecoderBuffer,c=r(31),f=["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"],d=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(f);function s(e,t,r){var n={};this._baseState=n,n.name=r,n.enc=e,n.parent=t||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())}e.exports=s;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];s.prototype.clone=function(){var e=this._baseState,t={};u.forEach((function(r){t[r]=e[r]}));var r=new this.constructor(t.parent);return r._baseState=t,r},s.prototype._wrap=function(){var e=this._baseState;d.forEach((function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}}),this)},s.prototype._init=function(e){var t=this._baseState;c(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),c.equal(t.children.length,1,"Root node can have only one child")},s.prototype._useArgs=function(e){var t=this._baseState,r=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==r.length&&(c(null===t.children),t.children=r,r.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(c(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!==n(e)||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(r){r==(0|r)&&(r|=0);var n=e[r];t[n]=r})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){s.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),f.forEach((function(e){s.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return c(null===t.tag),t.tag=e,this._useArgs(r),this}})),s.prototype.use=function(e){c(e);var t=this._baseState;return c(null===t.use),t.use=e,this},s.prototype.optional=function(){return this._baseState.optional=!0,this},s.prototype.def=function(e){var t=this._baseState;return c(null===t.default),t.default=e,t.optional=!0,this},s.prototype.explicit=function(e){var t=this._baseState;return c(null===t.explicit&&null===t.implicit),t.explicit=e,this},s.prototype.implicit=function(e){var t=this._baseState;return c(null===t.explicit&&null===t.implicit),t.implicit=e,this},s.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},s.prototype.key=function(e){var t=this._baseState;return c(null===t.key),t.key=e,this},s.prototype.any=function(){return this._baseState.any=!0,this},s.prototype.choice=function(e){var t=this._baseState;return c(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},s.prototype.contains=function(e){var t=this._baseState;return c(null===t.use),t.contains=e,this},s.prototype._decode=function(e,t){var r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));var n,a=r.default,i=!0,c=null;if(null!==r.key&&(c=e.enterKey(r.key)),r.optional){var f=null;if(null!==r.explicit?f=r.explicit:null!==r.implicit?f=r.implicit:null!==r.tag&&(f=r.tag),null!==f||r.any){if(i=this._peekTag(e,f,r.any),e.isError(i))return i}else{var d=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),i=!0}catch(e){i=!1}e.restore(d)}}if(r.obj&&i&&(n=e.enterObject()),i){if(null!==r.explicit){var s=this._decodeTag(e,r.explicit);if(e.isError(s))return s;e=s}var u=e.offset;if(null===r.use&&null===r.choice){var b;r.any&&(b=e.save());var h=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(h))return h;r.any?a=e.raw(b):e=h}if(t&&t.track&&null!==r.tag&&t.track(e.path(),u,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),r.any||(a=null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t)),e.isError(a))return a;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(e,t)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var l=new o(a);a=this._getUse(r.contains,e._reporterState.obj)._decode(l,t)}}return r.obj&&i&&(a=e.leaveObject(n)),null===r.key||null===a&&!0!==i?null!==c&&e.exitKey(c):e.leaveKey(c,r.key,a),a},s.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},s.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),c(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},s.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,a=!1;return Object.keys(r.choice).some((function(i){var o=e.save(),c=r.choice[i];try{var f=c._decode(e,t);if(e.isError(f))return!1;n={type:i,value:f},a=!0}catch(t){return e.restore(o),!1}return!0}),this),a?n:e.error("Choice not matched")},s.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},s.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var a=this._encodeValue(e,t,r);if(void 0!==a&&!this._skipDefault(a,t,r))return a}},s.prototype._encodeValue=function(e,t,r){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new a);var o=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}var c=null,f=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)c=this._getUse(i.contains,r)._encode(e,t),f=!0;else if(i.children)c=i.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var a=t.enterKey(r._baseState.key);if("object"!==n(e))return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(a),i}),this).filter((function(e){return e})),c=this._createEncoderBuffer(c);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var d=this.clone();d._baseState.implicit=null,c=this._createEncoderBuffer(e.map((function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)}),d))}else null!==i.use?o=this._getUse(i.use,r)._encode(e,t):(c=this._encodePrimitive(i.tag,e),f=!0);if(!i.any&&null===i.choice){var s=null!==i.implicit?i.implicit:i.tag,u=null===i.implicit?"universal":"context";null===s?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(s,f,u,c))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},s.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||c(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},s.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},s.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},s.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},function(e,t,r){"use strict";var n=r(4);function a(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function i(e,t){this.path=e,this.rethrow(t)}t.Reporter=a,a.prototype.isError=function(e){return e instanceof i},a.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},a.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},a.prototype.enterKey=function(e){return this._reporterState.path.push(e)},a.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},a.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},a.prototype.path=function(){return this._reporterState.path.join("/")},a.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},a.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},a.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof i;if(t=n?e:new i(r.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},a.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(i,Error),i.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,i),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,r){"use strict";function n(e){var t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);var n=e[r];t[n]=r})),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n(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=n(t.tag)},function(e,t,r){"use strict";(function(t){!function(r){function n(e){var t=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]),r=1779033703,n=3144134277,a=1013904242,i=2773480762,o=1359893119,c=2600822924,f=528734635,d=1541459225,s=new Uint32Array(64);function u(e){for(var u=0,b=e.length;b>=64;){var h=r,l=n,p=a,m=i,x=o,y=c,v=f,g=d,w=void 0,_=void 0,M=void 0,k=void 0,S=void 0;for(_=0;_<16;_++)M=u+4*_,s[_]=(255&e[M])<<24|(255&e[M+1])<<16|(255&e[M+2])<<8|255&e[M+3];for(_=16;_<64;_++)k=((w=s[_-2])>>>17|w<<15)^(w>>>19|w<<13)^w>>>10,S=((w=s[_-15])>>>7|w<<25)^(w>>>18|w<<14)^w>>>3,s[_]=(k+s[_-7]|0)+(S+s[_-16]|0)|0;for(_=0;_<64;_++)k=(((x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7))+(x&y^~x&v)|0)+(g+(t[_]+s[_]|0)|0)|0,S=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&l^h&p^l&p)|0,g=v,v=y,y=x,x=m+k|0,m=p,p=l,l=h,h=k+S|0;r=r+h|0,n=n+l|0,a=a+p|0,i=i+m|0,o=o+x|0,c=c+y|0,f=f+v|0,d=d+g|0,u+=64,b-=64}}u(e);var b,h=e.length%64,l=e.length/536870912|0,p=e.length<<3,m=h<56?56:120,x=e.slice(e.length-h,e.length);for(x.push(128),b=h+1;b>>24&255),x.push(l>>>16&255),x.push(l>>>8&255),x.push(l>>>0&255),x.push(p>>>24&255),x.push(p>>>16&255),x.push(p>>>8&255),x.push(p>>>0&255),u(x),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>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,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255,f>>>24&255,f>>>16&255,f>>>8&255,f>>>0&255,d>>>24&255,d>>>16&255,d>>>8&255,d>>>0&255]}function a(e,t,r){e=e.length<=64?e:n(e);var a,i=64+t.length+4,o=new Array(i),c=new Array(64),f=[];for(a=0;a<64;a++)o[a]=54;for(a=0;a=i-4;e--){if(o[e]++,o[e]<=255)return;o[e]=0}}for(;r>=32;)d(),f=f.concat(n(c.concat(n(o)))),r-=32;return r>0&&(d(),f=f.concat(n(c.concat(n(o))).slice(0,r))),f}function i(e,t,r,n,a){var i;for(d(e,16*(2*r-1),a,0,16),i=0;i<2*r;i++)f(e,16*i,a,16),c(a,n),d(a,0,e,t+16*i,16);for(i=0;i>>32-t}function c(e,t){d(e,0,t,0,16);for(var r=8;r>0;r-=2)t[4]^=o(t[0]+t[12],7),t[8]^=o(t[4]+t[0],9),t[12]^=o(t[8]+t[4],13),t[0]^=o(t[12]+t[8],18),t[9]^=o(t[5]+t[1],7),t[13]^=o(t[9]+t[5],9),t[1]^=o(t[13]+t[9],13),t[5]^=o(t[1]+t[13],18),t[14]^=o(t[10]+t[6],7),t[2]^=o(t[14]+t[10],9),t[6]^=o(t[2]+t[14],13),t[10]^=o(t[6]+t[2],18),t[3]^=o(t[15]+t[11],7),t[7]^=o(t[3]+t[15],9),t[11]^=o(t[7]+t[3],13),t[15]^=o(t[11]+t[7],18),t[1]^=o(t[0]+t[3],7),t[2]^=o(t[1]+t[0],9),t[3]^=o(t[2]+t[1],13),t[0]^=o(t[3]+t[2],18),t[6]^=o(t[5]+t[4],7),t[7]^=o(t[6]+t[5],9),t[4]^=o(t[7]+t[6],13),t[5]^=o(t[4]+t[7],18),t[11]^=o(t[10]+t[9],7),t[8]^=o(t[11]+t[10],9),t[9]^=o(t[8]+t[11],13),t[10]^=o(t[9]+t[8],18),t[12]^=o(t[15]+t[14],7),t[13]^=o(t[12]+t[15],9),t[14]^=o(t[13]+t[12],13),t[15]^=o(t[14]+t[13],18);for(var n=0;n<16;++n)e[n]+=t[n]}function f(e,t,r,n){for(var a=0;a=256)return!1}return!0}function u(e,t){if("number"!=typeof e||e%1)throw new Error("invalid "+t);return e}function b(e,r,n,o,c,b,h){if(n=u(n,"N"),o=u(o,"r"),c=u(c,"p"),b=u(b,"dkLen"),0===n||0!=(n&n-1))throw new Error("N must be power of 2");if(n>2147483647/128/o)throw new Error("N too large");if(o>2147483647/128/c)throw new Error("r too large");if(!s(e))throw new Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!s(r))throw new Error("salt must be an array or buffer");r=Array.prototype.slice.call(r);for(var l=a(e,r,128*c*o),p=new Uint32Array(32*c*o),m=0;mj&&(r=j);for(var s=0;sj&&(r=j);for(var m=0;m>0&255),l.push(p[C]>>8&255),l.push(p[C]>>16&255),l.push(p[C]>>24&255);var I=a(e,l,b);return h&&h(null,1,I),I}h&&B(t)};if(!h)for(;;){var C=R();if(null!=C)return C}R()}var h={scrypt:function(e,t,r,n,a,i,o){return new Promise((function(c,f){var d=0;o&&o(0),b(e,t,r,n,a,i,(function(e,t,r){if(e)f(e);else if(r)o&&1!==d&&o(1),c(new Uint8Array(r));else if(o&&t!==d)return d=t,o(t)}))}))},syncScrypt:function(e,t,r,n,a,i){return new Uint8Array(b(e,t,r,n,a,i))}};e.exports=h}()}).call(this,r(104).setImmediate)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeeMarketEIP1559Transaction=t.TransactionFactory=t.AccessListEIP2930Transaction=t.Transaction=void 0;var o=r(603);Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return i(o).default}});var c=r(670);Object.defineProperty(t,"AccessListEIP2930Transaction",{enumerable:!0,get:function(){return i(c).default}});var f=r(671);Object.defineProperty(t,"TransactionFactory",{enumerable:!0,get:function(){return i(f).default}});var d=r(672);Object.defineProperty(t,"FeeMarketEIP1559Transaction",{enumerable:!0,get:function(){return i(d).default}}),a(r(72),t)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160FromArray=t.ripemd160FromString=t.ripemd160=t.sha256FromArray=t.sha256FromString=t.sha256=t.keccakFromArray=t.keccakFromHexString=t.keccakFromString=t.keccak256=t.keccak=void 0;var n=r(38),a=r(19),i=r(41),o=r(55),c=r(115);t.keccak=function(e,t){switch(void 0===t&&(t=256),(0,c.assertIsBuffer)(e),t){case 224:return(0,n.keccak224)(e);case 256:return(0,n.keccak256)(e);case 384:return(0,n.keccak384)(e);case 512:return(0,n.keccak512)(e);default:throw new Error("Invald algorithm: keccak".concat(t))}};t.keccak256=function(e){return(0,t.keccak)(e)};t.keccakFromString=function(r,n){void 0===n&&(n=256),(0,c.assertIsString)(r);var a=e.from(r,"utf8");return(0,t.keccak)(a,n)};t.keccakFromHexString=function(e,r){return void 0===r&&(r=256),(0,c.assertIsHexString)(e),(0,t.keccak)((0,o.toBuffer)(e),r)};t.keccakFromArray=function(e,r){return void 0===r&&(r=256),(0,c.assertIsArray)(e),(0,t.keccak)((0,o.toBuffer)(e),r)};var f=function(e){return e=(0,o.toBuffer)(e),a("sha256").update(e).digest()};t.sha256=function(e){return(0,c.assertIsBuffer)(e),f(e)};t.sha256FromString=function(e){return(0,c.assertIsString)(e),f(e)};t.sha256FromArray=function(e){return(0,c.assertIsArray)(e),f(e)};var d=function(e,t){e=(0,o.toBuffer)(e);var r=a("rmd160").update(e).digest();return!0===t?(0,o.setLengthLeft)(r,32):r};t.ripemd160=function(e,t){return(0,c.assertIsBuffer)(e),d(e,t)};t.ripemd160FromString=function(e,t){return(0,c.assertIsString)(e),d(e,t)};t.ripemd160FromArray=function(e,t){return(0,c.assertIsArray)(e),d(e,t)};t.rlphash=function(e){return(0,t.keccak)(i.rlp.encode(e))}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0;var n,a=r(41),i=r(71),o=r(55);function c(t){return(0,o.unpadBuffer)(t.toArrayLike(e))}t.bnToHex=function(e){return"0x".concat(e.toString(16))},t.bnToUnpaddedBuffer=c,t.bnToRlp=function(e){return c(e)},function(e){e[e.Number=0]="Number",e[e.BN=1]="BN",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(n=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0!==e){if("string"==typeof e&&!(0,i.isHexString)(e))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(e));if("number"==typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var r=(0,o.toBuffer)(e);if(t===n.Buffer)return r;if(t===n.BN)return new a.BN(r);if(t===n.Number){var c=new a.BN(r),f=new a.BN(Number.MAX_SAFE_INTEGER.toString());if(c.gt(f))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return c.toNumber()}return"0x".concat(r.toString("hex"))}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return a(t,e),t},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseTransaction=void 0;var f=i(r(166)),d=r(54),s=r(72),u=function(){function e(e,t){this.cache={hash:void 0,dataFee:void 0},this.activeCapabilities=[],this.DEFAULT_CHAIN=f.Chain.Mainnet,this.DEFAULT_HARDFORK=f.Hardfork.Istanbul;var r=e.nonce,n=e.gasLimit,a=e.to,i=e.value,o=e.data,c=e.v,s=e.r,u=e.s,b=e.type;this._type=new d.BN((0,d.toBuffer)(b)).toNumber(),this.txOptions=t;var h=(0,d.toBuffer)(""===a?"0x":a),l=(0,d.toBuffer)(""===c?"0x":c),p=(0,d.toBuffer)(""===s?"0x":s),m=(0,d.toBuffer)(""===u?"0x":u);this.nonce=new d.BN((0,d.toBuffer)(""===r?"0x":r)),this.gasLimit=new d.BN((0,d.toBuffer)(""===n?"0x":n)),this.to=h.length>0?new d.Address(h):void 0,this.value=new d.BN((0,d.toBuffer)(""===i?"0x":i)),this.data=(0,d.toBuffer)(""===o?"0x":o),this.v=l.length>0?new d.BN(l):void 0,this.r=p.length>0?new d.BN(p):void 0,this.s=m.length>0?new d.BN(m):void 0,this._validateCannotExceedMaxInteger({value:this.value,r:this.r,s:this.s}),this._validateCannotExceedMaxInteger({gasLimit:this.gasLimit},64),this._validateCannotExceedMaxInteger({nonce:this.nonce},64,!0)}return Object.defineProperty(e.prototype,"transactionType",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),e.prototype.supports=function(e){return this.activeCapabilities.includes(e)},e.prototype.validate=function(e){void 0===e&&(e=!1);var t=[];return this.getBaseFee().gt(this.gasLimit)&&t.push("gasLimit is too low. given ".concat(this.gasLimit,", need at least ").concat(this.getBaseFee())),this.isSigned()&&!this.verifySignature()&&t.push("Invalid Signature"),e?t:0===t.length},e.prototype.getBaseFee=function(){var e=this.getDataFee().addn(this.common.param("gasPrices","tx"));return this.common.gteHardfork("homestead")&&this.toCreationAddress()&&e.iaddn(this.common.param("gasPrices","txCreation")),e},e.prototype.getDataFee=function(){for(var e=this.common.param("gasPrices","txDataZero"),t=this.common.param("gasPrices","txDataNonZero"),r=0,n=0;n-1&&this.activeCapabilities.splice(u,1)}return f},e.prototype._getCommon=function(e,t){var r;if(t){var n=new d.BN((0,d.toBuffer)(t));if(e){if(!e.chainIdBN().eq(n)){var a=this._errorMsg("The chain ID does not match the chain ID of Common");throw new Error(a)}return e.copy()}return f.default.isSupportedChainId(n)?new f.default({chain:n,hardfork:this.DEFAULT_HARDFORK}):f.default.forCustomChain(this.DEFAULT_CHAIN,{name:"custom-chain",networkId:n,chainId:n},this.DEFAULT_HARDFORK)}return null!==(r=null==e?void 0:e.copy())&&void 0!==r?r:new f.default({chain:this.DEFAULT_CHAIN,hardfork:this.DEFAULT_HARDFORK})},e.prototype._validateCannotExceedMaxInteger=function(e,t,r){var n,a;void 0===t&&(t=256),void 0===r&&(r=!1);try{for(var i=o(Object.entries(e)),f=i.next();!f.done;f=i.next()){var s=c(f.value,2),u=s[0],b=s[1];switch(t){case 64:if(r){if(null==b?void 0:b.gte(d.MAX_UINT64)){var h=this._errorMsg("".concat(u," cannot equal or exceed MAX_UINT64 (2^64-1), given ").concat(b));throw new Error(h)}}else if(null==b?void 0:b.gt(d.MAX_UINT64)){h=this._errorMsg("".concat(u," cannot exceed MAX_UINT64 (2^64-1), given ").concat(b));throw new Error(h)}break;case 256:if(r){if(null==b?void 0:b.gte(d.MAX_INTEGER)){h=this._errorMsg("".concat(u," cannot equal or exceed MAX_INTEGER (2^256-1), given ").concat(b));throw new Error(h)}}else if(null==b?void 0:b.gt(d.MAX_INTEGER)){h=this._errorMsg("".concat(u," cannot exceed MAX_INTEGER (2^256-1), given ").concat(b));throw new Error(h)}break;default:h=this._errorMsg("unimplemented bits value");throw new Error(h)}}}catch(e){n={error:e}}finally{try{f&&!f.done&&(a=i.return)&&a.call(i)}finally{if(n)throw n.error}}},e.prototype._getSharedErrorPostfix=function(){var e="";try{e=this.isSigned()?(0,d.bufferToHex)(this.hash()):"not available (unsigned)"}catch(t){e="error"}var t="";try{t=this.isSigned().toString()}catch(t){e="error"}var r="";try{r=this.common.hardfork()}catch(e){r="error"}var n="tx type=".concat(this.type," hash=").concat(e," nonce=").concat(this.nonce," value=").concat(this.value," ");return n+="signed=".concat(t," hf=").concat(r)},e}();t.BaseTransaction=u},function(e,t,r){"use strict";(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a,i=this&&this.__extends||(a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsensusAlgorithm=t.ConsensusType=t.Hardfork=t.Chain=t.CustomChain=void 0;var f,d,s=r(23),u=r(609),b=r(610),h=r(616),l=r(623),p=r(641);!function(e){e.PolygonMainnet="polygon-mainnet",e.PolygonMumbai="polygon-mumbai",e.ArbitrumRinkebyTestnet="arbitrum-rinkeby-testnet",e.xDaiChain="x-dai-chain",e.OptimisticKovan="optimistic-kovan",e.OptimisticEthereum="optimistic-ethereum"}(f=t.CustomChain||(t.CustomChain={})),function(e){e[e.Mainnet=1]="Mainnet",e[e.Ropsten=3]="Ropsten",e[e.Rinkeby=4]="Rinkeby",e[e.Kovan=42]="Kovan",e[e.Goerli=5]="Goerli",e[e.Sepolia=11155111]="Sepolia"}(t.Chain||(t.Chain={})),function(e){e.Chainstart="chainstart",e.Homestead="homestead",e.Dao="dao",e.TangerineWhistle="tangerineWhistle",e.SpuriousDragon="spuriousDragon",e.Byzantium="byzantium",e.Constantinople="constantinople",e.Petersburg="petersburg",e.Istanbul="istanbul",e.MuirGlacier="muirGlacier",e.Berlin="berlin",e.London="london",e.ArrowGlacier="arrowGlacier",e.GrayGlacier="grayGlacier",e.MergeForkIdTransition="mergeForkIdTransition",e.Merge="merge",e.Shanghai="shanghai"}(d=t.Hardfork||(t.Hardfork={})),function(e){e.ProofOfStake="pos",e.ProofOfWork="pow",e.ProofOfAuthority="poa"}(t.ConsensusType||(t.ConsensusType={})),function(e){e.Ethash="ethash",e.Clique="clique",e.Casper="casper"}(t.ConsensusAlgorithm||(t.ConsensusAlgorithm={}));var m=function(t){function a(e){var r,n,a,i,o=this;(o=t.call(this)||this)._supportedHardforks=[],o._eips=[],o._customChains=null!==(a=e.customChains)&&void 0!==a?a:[],o._chainParams=o.setChain(e.chain),o.DEFAULT_HARDFORK=null!==(i=o._chainParams.defaultHardfork)&&void 0!==i?i:d.Istanbul;try{for(var f=c(o._chainParams.hardforks),s=f.next();!s.done;s=f.next()){var u=s.value;u.forkHash||(u.forkHash=o._calcForkHash(u.name))}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}return o._hardfork=o.DEFAULT_HARDFORK,e.supportedHardforks&&(o._supportedHardforks=e.supportedHardforks),e.hardfork&&o.setHardfork(e.hardfork),e.eips&&o.setEIPs(e.eips),o}return i(a,t),a.custom=function(e,t){var r;void 0===t&&(t={});var n=null!==(r=t.baseChain)&&void 0!==r?r:"mainnet",i=o({},a._getChainParams(n));if(i.name="custom-chain","string"!=typeof e)return new a(o({chain:o(o({},i),e)},t));if(e===f.PolygonMainnet)return a.custom({name:f.PolygonMainnet,chainId:137,networkId:137},t);if(e===f.PolygonMumbai)return a.custom({name:f.PolygonMumbai,chainId:80001,networkId:80001},t);if(e===f.ArbitrumRinkebyTestnet)return a.custom({name:f.ArbitrumRinkebyTestnet,chainId:421611,networkId:421611},t);if(e===f.xDaiChain)return a.custom({name:f.xDaiChain,chainId:100,networkId:100},t);if(e===f.OptimisticKovan)return a.custom({name:f.OptimisticKovan,chainId:69,networkId:69},o({hardfork:d.Berlin},t));if(e===f.OptimisticEthereum)return a.custom({name:f.OptimisticEthereum,chainId:10,networkId:10},o({hardfork:d.Berlin},t));throw new Error("Custom chain ".concat(e," not supported"))},a.forCustomChain=function(e,t,r,n){var i=a._getChainParams(e);return new a({chain:o(o({},i),t),hardfork:r,supportedHardforks:n})},a.isSupportedChainId=function(e){var t=(0,h._getInitializedChains)();return Boolean(t.names[e.toString()])},a._getChainParams=function(e,t){var r=(0,h._getInitializedChains)(t);if("number"==typeof e||b.BN.isBN(e)){if(e=e.toString(),r.names[e])return r[r.names[e]];throw new Error("Chain with ID ".concat(e," not supported"))}if(r[e])return r[e];throw new Error("Chain with name ".concat(e," not supported"))},a.prototype.setChain=function(e){var t,r;if("number"==typeof e||"string"==typeof e||b.BN.isBN(e)){var i=void 0;i=this._customChains&&this._customChains.length>0&&Array.isArray(this._customChains[0])?this._customChains.map((function(e){return e[0]})):this._customChains,this._chainParams=a._getChainParams(e,i)}else{if("object"!==n(e))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=c(["networkId","genesis","hardforks","bootstrapNodes"]),f=o.next();!f.done;f=o.next()){var d=f.value;if(void 0===e[d])throw new Error("Missing required chain parameter: ".concat(d))}}catch(e){t={error:e}}finally{try{f&&!f.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}this._chainParams=e}return this._chainParams},a.prototype.setHardfork=function(e){var t,r;if(!this._isSupportedHardfork(e))throw new Error("Hardfork ".concat(e," not set as supported in supportedHardforks"));var n=!1;try{for(var a=c(l.hardforks),i=a.next();!i.done;i=a.next()){i.value[0]===e&&(this._hardfork!==e&&(this._hardfork=e,this.emit("hardforkChanged",e)),n=!0)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}if(!n)throw new Error("Hardfork with name ".concat(e," not supported"))},a.prototype.getHardforkByBlockNumber=function(e,t){var r,n;e=(0,b.toType)(e,b.TypeOutput.BN),t=(0,b.toType)(t,b.TypeOutput.BN);var a,i,o,f=d.Chainstart;try{for(var s=c(this.hardforks()),u=s.next();!u.done;u=s.next()){var h=u.value;if(null!==h.block)e.gte(new b.BN(h.block))&&(f=h.name),t&&h.td&&(t.gte(new b.BN(h.td))?a=h.name:i=o),o=h.name;else if(null!=t&&void 0!==h.td&&null!==h.td&&t.gte(new b.BN(h.td)))return h.name}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}if(t){var l="block number: ".concat(e," (-> ").concat(f,"), ");if(a&&!this.hardforkGteHardfork(f,a)){var p="HF determined by block number is lower than the minimum total difficulty HF";throw l+="total difficulty: ".concat(t," (-> ").concat(a,")"),new Error("".concat(p,": ").concat(l))}if(i&&!this.hardforkGteHardfork(i,f)){p="Maximum HF determined by total difficulty is lower than the block number HF";throw l+="total difficulty: ".concat(t," (-> ").concat(i,")"),new Error("".concat(p,": ").concat(l))}}return f},a.prototype.setHardforkByBlockNumber=function(e,t){var r=this.getHardforkByBlockNumber(e,t);return this.setHardfork(r),r},a.prototype._chooseHardfork=function(e,t){if(void 0===t&&(t=!0),e){if(t&&!this._isSupportedHardfork(e))throw new Error("Hardfork ".concat(e," not set as supported in supportedHardforks"))}else e=this._hardfork;return e},a.prototype._getHardfork=function(e){var t,r,n=this.hardforks();try{for(var a=c(n),i=a.next();!i.done;i=a.next()){var o=i.value;if(o.name===e)return o}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}throw new Error("Hardfork ".concat(e," not defined for chain ").concat(this.chainName()))},a.prototype._isSupportedHardfork=function(e){var t,r;if(!(this._supportedHardforks.length>0))return!0;try{for(var n=c(this._supportedHardforks),a=n.next();!a.done;a=n.next()){if(e===a.value)return!0}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return!1},a.prototype.setEIPs=function(e){var t,r,n=this;void 0===e&&(e=[]);var a=function(t){if(!(t in p.EIPs))throw new Error("".concat(t," not supported"));var r=i.gteHardfork(p.EIPs[t].minimumHardfork);if(!r)throw new Error("".concat(t," cannot be activated on hardfork ").concat(i.hardfork(),", minimumHardfork: ").concat(r));p.EIPs[t].requiredEIPs&&p.EIPs[t].requiredEIPs.forEach((function(r){if(!e.includes(r)&&!n.isActivatedEIP(r))throw new Error("".concat(t," requires EIP ").concat(r,", but is not included in the EIP list"))}))},i=this;try{for(var o=c(e),f=o.next();!f.done;f=o.next()){a(f.value)}}catch(e){t={error:e}}finally{try{f&&!f.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}this._eips=e},a.prototype.param=function(e,t){var r,n,a=null;try{for(var i=c(this._eips),o=i.next();!o.done;o=i.next()){var f=o.value;if(null!==(a=this.paramByEIP(e,t,f)))return a}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return this.paramByHardfork(e,t,this._hardfork)},a.prototype.paramByHardfork=function(e,t,r){var n,a,i,o;r=this._chooseHardfork(r);var f=null;try{for(var d=c(l.hardforks),s=d.next();!s.done;s=d.next()){var u=s.value;if("eips"in u[1]){var b=u[1].eips;try{for(var h=(i=void 0,c(b)),p=h.next();!p.done;p=h.next()){var m=p.value,x=this.paramByEIP(e,t,m);f=null!==x?x:f}}catch(e){i={error:e}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}}else{if(!u[1][e])throw new Error("Topic ".concat(e," not defined"));void 0!==u[1][e][t]&&(f=u[1][e][t].v)}if(u[0]===r)break}}catch(e){n={error:e}}finally{try{s&&!s.done&&(a=d.return)&&a.call(d)}finally{if(n)throw n.error}}return f},a.prototype.paramByEIP=function(e,t,r){if(!(r in p.EIPs))throw new Error("".concat(r," not supported"));var n=p.EIPs[r];if(!(e in n))throw new Error("Topic ".concat(e," not defined"));return void 0===n[e][t]?null:n[e][t].v},a.prototype.paramByBlock=function(e,t,r){var n=this.activeHardforks(r),a=n[n.length-1].name;return this.paramByHardfork(e,t,a)},a.prototype.isActivatedEIP=function(e){var t,r;if(this.eips().includes(e))return!0;try{for(var n=c(l.hardforks),a=n.next();!a.done;a=n.next()){var i=a.value[1];if(this.gteHardfork(i.name)&&"eips"in i&&i.eips.includes(e))return!0}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return!1},a.prototype.hardforkIsActiveOnBlock=function(e,t,r){var n;void 0===r&&(r={}),t=(0,b.toType)(t,b.TypeOutput.BN);var a=null!==(n=r.onlySupported)&&void 0!==n&&n;e=this._chooseHardfork(e,a);var i=this.hardforkBlockBN(e);return!(!i||!t.gte(i))},a.prototype.activeOnBlock=function(e,t){return this.hardforkIsActiveOnBlock(null,e,t)},a.prototype.hardforkGteHardfork=function(e,t,r){var n,a;void 0===r&&(r={});var i,o=void 0!==r.onlyActive&&r.onlyActive;e=this._chooseHardfork(e,r.onlySupported),i=o?this.activeHardforks(null,r):this.hardforks();var f=-1,d=-1,s=0;try{for(var u=c(i),b=u.next();!b.done;b=u.next()){var h=b.value;h.name===e&&(f=s),h.name===t&&(d=s),s+=1}}catch(e){n={error:e}}finally{try{b&&!b.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}return f>=d&&-1!==d},a.prototype.gteHardfork=function(e,t){return this.hardforkGteHardfork(null,e,t)},a.prototype.hardforkIsActiveOnChain=function(e,t){var r,n,a;void 0===t&&(t={});var i=null!==(a=t.onlySupported)&&void 0!==a&&a;e=this._chooseHardfork(e,i);try{for(var o=c(this.hardforks()),f=o.next();!f.done;f=o.next()){var d=f.value;if(d.name===e&&null!==d.block)return!0}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1},a.prototype.activeHardforks=function(e,t){var r,n;void 0===t&&(t={});var a=[],i=this.hardforks();try{for(var o=c(i),f=o.next();!f.done;f=o.next()){var d=f.value;if(null!==d.block){if(null!=e&&e0)return r[r.length-1].name;throw new Error("No (supported) active hardfork found")},a.prototype.hardforkBlock=function(e){var t=this.hardforkBlockBN(e);return(0,b.toType)(t,b.TypeOutput.Number)},a.prototype.hardforkBlockBN=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e).block;return null==t?null:new b.BN(t)},a.prototype.hardforkTD=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e).td;return null==t?null:new b.BN(t)},a.prototype.isHardforkBlock=function(e,t){e=(0,b.toType)(e,b.TypeOutput.BN),t=this._chooseHardfork(t,!1);var r=this.hardforkBlockBN(t);return!!r&&r.eq(e)},a.prototype.nextHardforkBlock=function(e){var t=this.nextHardforkBlockBN(e);return(0,b.toType)(t,b.TypeOutput.Number)},a.prototype.nextHardforkBlockBN=function(e){e=this._chooseHardfork(e,!1);var t=this.hardforkBlockBN(e);return null===t?null:this.hardforks().reduce((function(e,r){var n=new b.BN(r.block);return n.gt(t)&&null===e?n:e}),null)},a.prototype.isNextHardforkBlock=function(e,t){e=(0,b.toType)(e,b.TypeOutput.BN),t=this._chooseHardfork(t,!1);var r=this.nextHardforkBlockBN(t);return null!==r&&r.eq(e)},a.prototype._calcForkHash=function(t){var r,n,a=e.from(this.genesis().hash.substr(2),"hex"),i=e.alloc(0),o=0;try{for(var f=c(this.hardforks()),d=f.next();!d.done;d=f.next()){var s=d.value,h=s.block;if(0!==h&&null!==h&&h!==o){var l=e.from(h.toString(16).padStart(16,"0"),"hex");i=e.concat([i,l])}if(s.name===t)break;null!==h&&(o=h)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}var p=e.concat([a,i]),m=(0,b.intToBuffer)((0,u.buf)(p)>>>0).toString("hex");return"0x".concat(m)},a.prototype.forkHash=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e);if(null===t.block&&void 0===t.td){throw new Error("No fork hash calculation possible for future hardfork")}return void 0!==t.forkHash?t.forkHash:this._calcForkHash(e)},a.prototype.hardforkForForkHash=function(e){var t=this.hardforks().filter((function(t){return t.forkHash===e}));return t.length>=1?t[t.length-1]:null},a.prototype.genesis=function(){return this._chainParams.genesis},a.prototype.genesisState=function(){var e,t;switch(this.chainName()){case"mainnet":return r(664);case"ropsten":return r(665);case"rinkeby":return r(666);case"kovan":return r(667);case"goerli":return r(668);case"sepolia":return r(669)}if(this._customChains&&this._customChains.length>0&&Array.isArray(this._customChains[0]))try{for(var n=c(this._customChains),a=n.next();!a.done;a=n.next()){var i=a.value;if(i[0].name===this.chainName())return i[1]}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return{}},a.prototype.hardforks=function(){return this._chainParams.hardforks},a.prototype.bootstrapNodes=function(){return this._chainParams.bootstrapNodes},a.prototype.dnsNetworks=function(){return this._chainParams.dnsNetworks},a.prototype.hardfork=function(){return this._hardfork},a.prototype.chainId=function(){return(0,b.toType)(this.chainIdBN(),b.TypeOutput.Number)},a.prototype.chainIdBN=function(){return new b.BN(this._chainParams.chainId)},a.prototype.chainName=function(){return this._chainParams.name},a.prototype.networkId=function(){return(0,b.toType)(this.networkIdBN(),b.TypeOutput.Number)},a.prototype.networkIdBN=function(){return new b.BN(this._chainParams.networkId)},a.prototype.eips=function(){return this._eips},a.prototype.consensusType=function(){var e,t,r,n=this.hardfork();try{for(var a=c(l.hardforks),i=a.next();!i.done;i=a.next()){var o=i.value;if("consensus"in o[1]&&(r=o[1].consensus.type),o[0]===n)break}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return r||this._chainParams.consensus.type},a.prototype.consensusAlgorithm=function(){var e,t,r,n=this.hardfork();try{for(var a=c(l.hardforks),i=a.next();!i.done;i=a.next()){var o=i.value;if("consensus"in o[1]&&(r=o[1].consensus.algorithm),o[0]===n)break}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return r||this._chainParams.consensus.algorithm},a.prototype.consensusConfig=function(){var e,t,r,n=this.hardfork();try{for(var a=c(l.hardforks),i=a.next();!i.done;i=a.next()){var o=i.value;if("consensus"in o[1]&&(r=o[1].consensus[o[1].consensus.algorithm]),o[0]===n)break}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}if(r)return r;var f=this.consensusAlgorithm();return this._chainParams.consensus[f]},a.prototype.copy=function(){var e=Object.assign(Object.create(Object.getPrototypeOf(this)),this);return e.removeAllListeners(),e},a}(s.EventEmitter);t.default=m}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160FromArray=t.ripemd160FromString=t.ripemd160=t.sha256FromArray=t.sha256FromString=t.sha256=t.keccakFromArray=t.keccakFromHexString=t.keccakFromString=t.keccak256=t.keccak=void 0;var n=r(38),a=r(19),i=r(42),o=r(56),c=r(116);t.keccak=function(e,t){switch(void 0===t&&(t=256),(0,c.assertIsBuffer)(e),t){case 224:return(0,n.keccak224)(e);case 256:return(0,n.keccak256)(e);case 384:return(0,n.keccak384)(e);case 512:return(0,n.keccak512)(e);default:throw new Error("Invald algorithm: keccak".concat(t))}};t.keccak256=function(e){return(0,t.keccak)(e)};t.keccakFromString=function(r,n){void 0===n&&(n=256),(0,c.assertIsString)(r);var a=e.from(r,"utf8");return(0,t.keccak)(a,n)};t.keccakFromHexString=function(e,r){return void 0===r&&(r=256),(0,c.assertIsHexString)(e),(0,t.keccak)((0,o.toBuffer)(e),r)};t.keccakFromArray=function(e,r){return void 0===r&&(r=256),(0,c.assertIsArray)(e),(0,t.keccak)((0,o.toBuffer)(e),r)};var f=function(e){return e=(0,o.toBuffer)(e),a("sha256").update(e).digest()};t.sha256=function(e){return(0,c.assertIsBuffer)(e),f(e)};t.sha256FromString=function(e){return(0,c.assertIsString)(e),f(e)};t.sha256FromArray=function(e){return(0,c.assertIsArray)(e),f(e)};var d=function(e,t){e=(0,o.toBuffer)(e);var r=a("rmd160").update(e).digest();return!0===t?(0,o.setLengthLeft)(r,32):r};t.ripemd160=function(e,t){return(0,c.assertIsBuffer)(e),d(e,t)};t.ripemd160FromString=function(e,t){return(0,c.assertIsString)(e),d(e,t)};t.ripemd160FromArray=function(e,t){return(0,c.assertIsArray)(e),d(e,t)};t.rlphash=function(e){return(0,t.keccak)(i.rlp.encode(e))}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0;var n,a=r(42),i=r(73),o=r(56);function c(t){return(0,o.unpadBuffer)(t.toArrayLike(e))}t.bnToHex=function(e){return"0x".concat(e.toString(16))},t.bnToUnpaddedBuffer=c,t.bnToRlp=function(e){return c(e)},function(e){e[e.Number=0]="Number",e[e.BN=1]="BN",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(n=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0!==e){if("string"==typeof e&&!(0,i.isHexString)(e))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(e));if("number"==typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var r=(0,o.toBuffer)(e);if(t===n.Buffer)return r;if(t===n.BN)return new a.BN(r);if(t===n.Number){var c=new a.BN(r),f=new a.BN(Number.MAX_SAFE_INTEGER.toString());if(c.gt(f))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return c.toNumber()}return"0x".concat(r.toString("hex"))}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccessLists=t.checkMaxInitCodeSize=void 0;var n=r(54),a=r(72);t.checkMaxInitCodeSize=function(e,t){if(t>e.param("vm","maxInitCodeSize"))throw new Error("the initcode size of this transaction is too large: it is ".concat(t," while the max is ").concat(e.param("vm","maxInitCodeSize")))};var i=function(){function e(){}return e.getAccessListData=function(e){var t,r;if(e&&(0,a.isAccessList)(e)){t=e;for(var i=[],o=0;o-1};function b(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function h(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function x(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function y(e){var t=new FileReader,r=x(t);return t.readAsArrayBuffer(e),r}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:c&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:f&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():d&&c&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):d&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=m(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(y)}),this.text=function(){var e,t,r,n=m(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=x(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(a),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function M(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),a=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(a))}})),t}function k(e,t){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},g.call(_.prototype),g.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},k.error=function(){var e=new k(null,{status:0,statusText:""});return e.type="error",e};var S=[301,302,303,307,308];k.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new k(null,{status:t,headers:{location:e}})};var A=a.DOMException;try{new A}catch(e){(A=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),A.prototype.constructor=A}function E(e,t){return new Promise((function(r,i){var o=new _(e,t);if(o.signal&&o.signal.aborted)return i(new A("Aborted","AbortError"));var f=new XMLHttpRequest;function s(){f.abort()}f.onload=function(){var e,t,n={status:f.status,statusText:f.statusText,headers:(e=f.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var a=r.join(":").trim();t.append(n,a)}})),t)};n.url="responseURL"in f?f.responseURL:n.headers.get("X-Request-URL");var a="response"in f?f.response:f.responseText;setTimeout((function(){r(new k(a,n))}),0)},f.onerror=function(){setTimeout((function(){console.log("http request error1"),i(new TypeError("Network request failed"))}),0)},f.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},f.onabort=function(){setTimeout((function(){i(new A("Aborted","AbortError"))}),0)},f.open(o.method,function(e){try{return""===e&&a.location.href?a.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?f.withCredentials=!0:"omit"===o.credentials&&(f.withCredentials=!1),"responseType"in f&&(c?f.responseType="blob":d&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(f.responseType="arraybuffer")),!t||"object"!==n(t.headers)||t.headers instanceof p?o.headers.forEach((function(e,t){f.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){f.setRequestHeader(e,h(t.headers[e]))})),o.signal&&(o.signal.addEventListener("abort",s),f.onreadystatechange=function(){4===f.readyState&&o.signal.removeEventListener("abort",s)}),f.send(void 0===o._bodyInit?null:o._bodyInit)}))}E.polyfill=!0,a.fetch||(a.fetch=E,a.Headers=p,a.Request=_,a.Response=k)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n(t,e,r);return a(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.fallbackRipemd160=t.fallbackSha512=t.fallbackSha256=t.fallbackHmacSha512Sign=t.fallbackHmacSha256Sign=t.fallbackAesDecrypt=t.fallbackAesEncrypt=void 0;var c=o(r(300)),f=r(7),d=i(r(26)),s=r(301),u=r(174);t.fallbackAesEncrypt=function(e,t,r){var n=new c.default.ModeOfOperation.cbc(t,e),a=u.pkcs7.pad(r),i=n.encrypt(a);return new Uint8Array(i)},t.fallbackAesDecrypt=function(e,t,r){var n=new c.default.ModeOfOperation.cbc(t,e).decrypt(r),a=new Uint8Array(n);return u.pkcs7.unpad(a)},t.fallbackHmacSha256Sign=function(e,t){var r=d.hmac(d[s.SHA256_NODE_ALGO],e).update(t).digest(s.HEX_ENC);return f.hexToArray(r)},t.fallbackHmacSha512Sign=function(e,t){var r=d.hmac(d[s.SHA512_NODE_ALGO],e).update(t).digest(s.HEX_ENC);return f.hexToArray(r)},t.fallbackSha256=function(e){var t=d.sha256().update(e).digest(s.HEX_ENC);return f.hexToArray(t)},t.fallbackSha512=function(e){var t=d.sha512().update(e).digest(s.HEX_ENC);return f.hexToArray(t)},t.fallbackRipemd160=function(e){var t=d.ripemd160().update(e).digest(s.HEX_ENC);return f.hexToArray(t)}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(720),t),a(r(721),t),a(r(722),t),a(r(723),t)},function(e,t,r){var n=r(306),a=r(738),i=r(739),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){if(null!==e){var t=e;e=null,t.apply(this,arguments)}}},e.exports=t.default},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!=e&&"object"==r(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null,t.apply(this,arguments)}},e.exports=t.default},function(e,t,r){var n=r(770),a=r(86);e.exports=function(e){return a({id:n(),jsonrpc:"2.0",params:[]},e)}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r1?n-1:0),i=1;i0&&(o=a[0]),o instanceof Error)throw o;var c=new Error("Unhandled error.".concat(o?" (".concat(o.message,")"):""));throw c.context=o,c}var f=r[e];if(void 0===f)return!1;if("function"==typeof f)s(f,this,a);else for(var d=f.length,b=u(f),h=0;h=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');return t.call(this,e,n,i)}return o(r)}(m);function y(e,t){if("[Circular]"!==t)return t}t.EthereumProviderError=x},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorValues=t.errorCodes=void 0,t.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}},t.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,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",f=i.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var a=t&&t.prototype instanceof h?t:h,i=Object.create(a.prototype),o=new S(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(a,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw i;return E()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var c=_(o,r);if(c){if(c===b)continue;return c}}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 f=u(e,t,r);if("normal"===f.type){if(n=r.done?"completed":"suspendedYield",f.arg===b)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(n="completed",r.method="throw",r.arg=f.arg)}}}(e,r,o),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var b={};function h(){}function l(){}function p(){}var m={};d(m,o,(function(){return this}));var x=Object.getPrototypeOf,y=x&&x(x(A([])));y&&y!==t&&r.call(y,o)&&(m=y);var v=p.prototype=h.prototype=Object.create(m);function g(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var a;this._invoke=function(i,o){function c(){return new t((function(a,c){!function a(i,o,c,f){var d=u(e[i],e,o);if("throw"!==d.type){var s=d.arg,b=s.value;return b&&"object"==n(b)&&r.call(b,"__await")?t.resolve(b.__await).then((function(e){a("next",e,c,f)}),(function(e){a("throw",e,c,f)})):t.resolve(b).then((function(e){s.value=e,c(s)}),(function(e){return a("throw",e,c,f)}))}f(d.arg)}(i,o,a,c)}))}return a=a?a.then(c,c):c()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return b;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,b;var a=n.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,b):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function A(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),f=r.call(i,"finallyLoc");if(c&&f){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;k(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),b}},e}function i(e,t,r,n,a,i,o){try{var c=e[i](o),f=c.value}catch(e){return void r(e)}c.done?t(f):Promise.resolve(f).then(n,a)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function c(e){i(o,n,a,c,f,"next",e)}function f(e){i(o,n,a,c,f,"throw",e)}c(void 0)}))}}function c(e,t){for(var r=0;r=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),f=a.call(i,"finallyLoc");if(c&&f){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;k(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),b}},e}function a(e,t,r,n,a,i,o){try{var c=e[i](o),f=c.value}catch(e){return void r(e)}c.done?t(f):Promise.resolve(f).then(n,a)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function c(e){a(o,n,i,c,f,"next",e)}function f(e){a(o,n,i,c,f,"throw",e)}c(void 0)}))}}function o(){return(o=i(n().mark((function e(t){var r,a,i,o,s,u,b;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.provider,a=t.fromBlock,i=t.toBlock,a||(a=i),o=c(a),s=c(i),u=Array(s-o+1).fill().map((function(e,t){return o+t})).map(f),e.next=8,Promise.all(u.map((function(e){return d(r,"eth_getBlockByNumber",[e,!1])})));case 8:return b=e.sent,e.abrupt("return",b);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function c(e){return null==e?e:Number.parseInt(e,16)}function f(e){return null==e?e:"0x"+e.toString(16)}function d(e,t,r){return new Promise((function(n,a){e.sendAsync({id:1,jsonrpc:"2.0",method:t,params:r},(function(e,t){if(e)return a(e);n(t.result)}))}))}e.exports=function(e){return o.apply(this,arguments)}},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.ecdhUnsafe=t.ecdh=t.recover=t.verify=t.sign=t.signatureImportLax=t.signatureImport=t.signatureExport=t.signatureNormalize=t.publicKeyCombine=t.publicKeyTweakMul=t.publicKeyTweakAdd=t.publicKeyVerify=t.publicKeyConvert=t.publicKeyCreate=t.privateKeyTweakMul=t.privateKeyTweakAdd=t.privateKeyModInverse=t.privateKeyNegate=t.privateKeyImport=t.privateKeyExport=t.privateKeyVerify=void 0;var n=r(22),a=r(798),i=r(799);t.privateKeyVerify=function(e){return 32===e.length&&n.privateKeyVerify(Uint8Array.from(e))},t.privateKeyExport=function(e,t){if(32!==e.length)throw new RangeError("private key length is invalid");var r=a.privateKeyExport(e,t);return i.privateKeyExport(e,r,t)},t.privateKeyImport=function(e){if(null!==(e=i.privateKeyImport(e))&&32===e.length&&t.privateKeyVerify(e))return e;throw new Error("couldn't import from DER format")},t.privateKeyNegate=function(t){return e.from(n.privateKeyNegate(Uint8Array.from(t)))},t.privateKeyModInverse=function(t){if(32!==t.length)throw new Error("private key length is invalid");return e.from(a.privateKeyModInverse(Uint8Array.from(t)))},t.privateKeyTweakAdd=function(t,r){return e.from(n.privateKeyTweakAdd(Uint8Array.from(t),r))},t.privateKeyTweakMul=function(t,r){return e.from(n.privateKeyTweakMul(Uint8Array.from(t),Uint8Array.from(r)))},t.publicKeyCreate=function(t,r){return e.from(n.publicKeyCreate(Uint8Array.from(t),r))},t.publicKeyConvert=function(t,r){return e.from(n.publicKeyConvert(Uint8Array.from(t),r))},t.publicKeyVerify=function(e){return(33===e.length||65===e.length)&&n.publicKeyVerify(Uint8Array.from(e))},t.publicKeyTweakAdd=function(t,r,a){return e.from(n.publicKeyTweakAdd(Uint8Array.from(t),Uint8Array.from(r),a))},t.publicKeyTweakMul=function(t,r,a){return e.from(n.publicKeyTweakMul(Uint8Array.from(t),Uint8Array.from(r),a))},t.publicKeyCombine=function(t,r){var a=[];return t.forEach((function(e){a.push(Uint8Array.from(e))})),e.from(n.publicKeyCombine(a,r))},t.signatureNormalize=function(t){return e.from(n.signatureNormalize(Uint8Array.from(t)))},t.signatureExport=function(t){return e.from(n.signatureExport(Uint8Array.from(t)))},t.signatureImport=function(t){return e.from(n.signatureImport(Uint8Array.from(t)))},t.signatureImportLax=function(e){if(0===e.length)throw new RangeError("signature length is invalid");var t=i.signatureImportLax(e);if(null===t)throw new Error("couldn't parse DER signature");return a.signatureImport(t)},t.sign=function(t,r,a){if(null===a)throw new TypeError("options should be an Object");var i=void 0;if(a){if(i={},null===a.data)throw new TypeError("options.data should be a Buffer");if(a.data){if(32!=a.data.length)throw new RangeError("options.data length is invalid");i.data=new Uint8Array(a.data)}if(null===a.noncefn)throw new TypeError("options.noncefn should be a Function");a.noncefn&&(i.noncefn=function(t,r,n,i,o){var c=null!=n?e.from(n):null,f=null!=i?e.from(i):null,d=e.from("");return a.noncefn&&(d=a.noncefn(e.from(t),e.from(r),c,f,o)),new Uint8Array(d)})}var o=n.ecdsaSign(Uint8Array.from(t),Uint8Array.from(r),i);return{signature:e.from(o.signature),recovery:o.recid}},t.verify=function(e,t,r){return n.ecdsaVerify(Uint8Array.from(t),Uint8Array.from(e),r)},t.recover=function(t,r,a,i){return e.from(n.ecdsaRecover(Uint8Array.from(r),a,Uint8Array.from(t),i))},t.ecdh=function(t,r){return e.from(n.ecdh(Uint8Array.from(t),Uint8Array.from(r),{}))},t.ecdhUnsafe=function(t,r,n){if(33!==t.length&&65!==t.length)throw new RangeError("public key length is invalid");if(32!==r.length)throw new RangeError("private key length is invalid");return e.from(a.ecdhUnsafe(Uint8Array.from(t),Uint8Array.from(r),n))}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160=t.sha256=t.keccak256=t.keccak=void 0;var n=r(38),a=n.keccak224,i=n.keccak384,o=n.keccak256,c=n.keccak512,f=r(19),d=r(18),s=r(21),u=r(94);t.keccak=function(t,r){switch(void 0===r&&(r=256),t="string"!=typeof t||d.isHexString(t)?u.toBuffer(t):e.from(t,"utf8"),r||(r=256),r){case 224:return a(t);case 256:return o(t);case 384:return i(t);case 512:return c(t);default:throw new Error("Invald algorithm: keccak"+r)}},t.keccak256=function(e){return t.keccak(e)},t.sha256=function(e){return e=u.toBuffer(e),f("sha256").update(e).digest()},t.ripemd160=function(e,t){e=u.toBuffer(e);var r=f("rmd160").update(e).digest();return!0===t?u.setLength(r,32):r},t.rlphash=function(e){return t.keccak(s.encode(e))}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},i=this&&this.__spread||function(){for(var e=[],t=0;t0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=0;f--)(i=e[f])&&(c=(o<3?i(c):o>3?i(t,r,c):i(t,r))||c);return o>3&&c&&Object.defineProperty(t,r,c),c};Object.defineProperty(t,"__esModule",{value:!0}),t.NativeSvr=void 0;var i=r(5),o=r(188),c=r(47),f=function(){function e(){this._event=o.createWalletEvents()}return e.prototype._subscribeToResponse=function(e,t){this._event.on("response:"+e,t)},e.prototype._subscribeToCallResponse=function(e){var t=this;return new Promise((function(r,n){t._subscribeToResponse(e,(function(e){e.errcode?n(e.errmessage||e.errcode):r(e.data)}))}))},e.prototype.handleNativeCallback=function(){for(var e=[],t=0;t=10?e.substring(0,6)+"..."+e.substring(e.length-4):e.length>0&&e.length<10?e:""},t.formatMoney=function(e,t){return"-"===e?"- "+t:n.renderFromTokenMinimalUnit(e,18,4)+" "+t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(488));var n=r(147);t.XMLHttpRequestEventTarget=n.XMLHttpRequestEventTarget},function(e,t){e.exports=a,a.strict=i,a.loose=o;var r=Object.prototype.toString,n={"[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 a(e){return i(e)||o(e)}function i(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function o(e){return n[r.call(e)]}},function(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,a,i=[],o=!0,c=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(c)throw a}}return i}(e,t)||o(e,t)||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.")}()}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r-1?r.split(e.arrayFormatSeparator).map((function(t){return h(t,e)})):null===r?r:h(r,e);n[t]=a};default:return function(e,t,r){void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),i=Object.create(null);if("string"!=typeof e)return i;if(!(e=e.trim().replace(/^[?#&]/,"")))return i;var c,f=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,c=!0,f=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return c=e.done,e},e:function(e){f=!0,i=e},f:function(){try{c||null==r.return||r.return()}finally{if(f)throw i}}}}(e.split("&"));try{for(f.s();!(c=f.n()).done;){var d=c.value,b=n(s(t.decode?d.replace(/\+/g," "):d,"="),2),l=b[0],p=b[1];p=void 0===p?null:["comma","separator"].includes(t.arrayFormat)?p:h(p,t),r(h(l,t),p,i)}}catch(e){f.e(e)}finally{f.f()}for(var x=0,y=Object.keys(i);x0})).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var r=n(s(e,"#"),2),a=r[0],i=r[1];return Object.assign({url:a.split("?")[0]||"",query:x(p(e),t)},t&&t.parseFragmentIdentifier&&i?{fragmentIdentifier:h(i,t)}:{})},t.stringifyUrl=function(e,r){r=Object.assign({encode:!0,strict:!0},r);var n=l(e.url).split("?")[0]||"",a=t.extract(e.url),i=t.parse(a,{sort:!1}),o=Object.assign(i,e.query),c=t.stringify(o,r);c&&(c="?".concat(c));var f=function(e){var t="",r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(f="#".concat(b(e.fragmentIdentifier,r))),"".concat(n).concat(c).concat(f)}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=t.concatSig=void 0,a(r(375),t),a(r(444),t),a(r(454),t);var i=r(105);Object.defineProperty(t,"concatSig",{enumerable:!0,get:function(){return i.concatSig}}),Object.defineProperty(t,"normalize",{enumerable:!0,get:function(){return i.normalize}})},function(e,t,r){"use strict";var n=t;function a(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r>8,o=255&a;i?r.push(i,o):r.push(o)}return r},n.zero2=a,n.toHex=i,n.encode=function(e,t){return"hex"===t?i(e):e}},function(e,t,r){"use strict";var n=t;n.base=r(101),n.short=r(381),n.mont=r(382),n.edwards=r(383)},function(e,t,r){"use strict";var n=r(36).rotr32;function a(e,t,r){return e&t^~e&r}function i(e,t,r){return e&t^e&r^t&r}function o(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?a(t,r,n):1===e||3===e?o(t,r,n):2===e?i(t,r,n):void 0},t.ch32=a,t.maj32=i,t.p32=o,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(36),a=r(80),i=r(31),o=n.rotr64_hi,c=n.rotr64_lo,f=n.shr64_hi,d=n.shr64_lo,s=n.sum64,u=n.sum64_hi,b=n.sum64_lo,h=n.sum64_4_hi,l=n.sum64_4_lo,p=n.sum64_5_hi,m=n.sum64_5_lo,x=a.BlockHash,y=[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];function v(){if(!(this instanceof v))return new v;x.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function g(e,t,r,n,a){var i=e&r^~e&a;return i<0&&(i+=4294967296),i}function w(e,t,r,n,a,i){var o=t&n^~t&i;return o<0&&(o+=4294967296),o}function _(e,t,r,n,a){var i=e&r^e&a^r&a;return i<0&&(i+=4294967296),i}function M(e,t,r,n,a,i){var o=t&n^t&i^n&i;return o<0&&(o+=4294967296),o}function k(e,t){var r=o(e,t,28)^o(t,e,2)^o(t,e,7);return r<0&&(r+=4294967296),r}function S(e,t){var r=c(e,t,28)^c(t,e,2)^c(t,e,7);return r<0&&(r+=4294967296),r}function A(e,t){var r=o(e,t,14)^o(e,t,18)^o(t,e,9);return r<0&&(r+=4294967296),r}function E(e,t){var r=c(e,t,14)^c(e,t,18)^c(t,e,9);return r<0&&(r+=4294967296),r}function T(e,t){var r=o(e,t,1)^o(e,t,8)^f(e,t,7);return r<0&&(r+=4294967296),r}function O(e,t){var r=c(e,t,1)^c(e,t,8)^d(e,t,7);return r<0&&(r+=4294967296),r}function P(e,t){var r=o(e,t,19)^o(t,e,29)^f(e,t,6);return r<0&&(r+=4294967296),r}function j(e,t){var r=c(e,t,19)^c(t,e,29)^d(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(v,x),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n)o.endEmitted?_(e,new w):E(e,o,t,!0);else if(o.ended)_(e,new v);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?E(e,o,t,!1):j(e,o)):E(e,o,t,!1)}else n||(o.reading=!1,j(e,o));return!o.ended&&(o.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e){var t=e._readableState;d("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(P,e))}function P(e){var t=e._readableState;d("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function j(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(B,e,t))}function B(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function C(e){d("readable nexttick read 0"),e.read(0)}function I(e,t){d("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function U(e){var t=e._readableState;d("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(z,t,e))}function z(e,t){if(d("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function F(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):O(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&U(this),null;var n,a=t.needReadable;return d("need readable",a),(0===t.length||t.length-e0?N(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&U(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(e){_(this,new g("_read()"))},S.prototype.pipe=function(e,t){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,d("pipe count=%d opts=%j",a.pipesCount,t);var o=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?f:m;function c(t,n){d("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),e.removeListener("close",l),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",h),e.removeListener("unpipe",c),r.removeListener("end",f),r.removeListener("end",m),r.removeListener("data",b),u=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||s())}function f(){d("onend"),e.end()}a.endEmitted?n.nextTick(o):r.once("end",o),e.on("unpipe",c);var s=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,L(e))}}(r);e.on("drain",s);var u=!1;function b(t){d("ondata");var n=e.write(t);d("dest.write",n),!1===n&&((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==F(a.pipes,e))&&!u&&(d("false write response, pause",a.awaitDrain),a.awaitDrain++),r.pause())}function h(t){d("onerror",t),m(),e.removeListener("error",h),0===i(e,"error")&&_(e,t)}function l(){e.removeListener("finish",p),m()}function p(){d("onfinish"),e.removeListener("close",l),m()}function m(){d("unpipe"),r.unpipe(e)}return r.on("data",b),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",l),e.once("finish",p),e.emit("pipe",r),a.flowing||(d("pipe resume"),r.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0,!1!==a.flowing&&this.resume()):"readable"===e&&(a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,d("on readable",a.length,a.reading),a.length?O(this):a.reading||n.nextTick(C,this))),r},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var r=o.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(R,this),r},S.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(R,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(I,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var a in e.on("end",(function(){if(d("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(a){(d("wrapped data"),r.decoder&&(a=r.decoder.write(a)),r.objectMode&&null==a)||(r.objectMode||a&&a.length)&&(t.push(a)||(n=!0,e.pause()))})),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var i=0;i-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,r){r(new p("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,r){var a=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),a.corked&&(a.corked=1,this.uncork()),a.ending||function(e,t,r){t.ending=!0,j(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,a,r),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=u.destroy,S.prototype._undestroy=u.undestroy,S.prototype._destroy=function(e,t){t(e)}}).call(this,r(13),r(11))},function(e,t,r){"use strict";e.exports=s;var n=r(63).codes,a=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=n.ERR_TRANSFORM_WITH_LENGTH_0,f=r(64);function d(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length=this._blockSize;){for(var i=this._blockOffset;i0;++o)this._length[o]+=c,(c=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*c);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},i.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=i},function(e,t,r){"use strict";(function(t,n){var a;e.exports=S,S.ReadableState=k;r(23).EventEmitter;var i=function(e,t){return e.listeners(t).length},o=r(215),c=r(0).Buffer,f=t.Uint8Array||function(){};var d,s=r(420);d=s&&s.debuglog?s.debuglog("stream"):function(){};var u,b,h,l=r(421),p=r(216),m=r(217).getHighWaterMark,x=r(65).codes,y=x.ERR_INVALID_ARG_TYPE,v=x.ERR_STREAM_PUSH_AFTER_EOF,g=x.ERR_METHOD_NOT_IMPLEMENTED,w=x.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(4)(S,o);var _=p.errorOrDestroy,M=["error","close","destroy","pause","resume"];function k(e,t,n){a=a||r(66),e=e||{},"boolean"!=typeof n&&(n=t instanceof a),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",n),this.buffer=new l,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!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(u||(u=r(39).StringDecoder),this.decoder=new u(e.encoding),this.encoding=e.encoding)}function S(e){if(a=a||r(66),!(this instanceof S))return new S(e);var t=this instanceof a;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function A(e,t,r,n,a){d("readableAddChunk",t);var i,o=e._readableState;if(null===t)o.reading=!1,function(e,t){if(d("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?O(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,P(e)))}(e,o);else if(a||(i=function(e,t){var r;n=t,c.isBuffer(n)||n instanceof f||"string"==typeof t||void 0===t||e.objectMode||(r=new y("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(o,t)),i)_(e,i);else if(o.objectMode||t&&t.length>0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n)o.endEmitted?_(e,new w):E(e,o,t,!0);else if(o.ended)_(e,new v);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?E(e,o,t,!1):j(e,o)):E(e,o,t,!1)}else n||(o.reading=!1,j(e,o));return!o.ended&&(o.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e){var t=e._readableState;d("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(P,e))}function P(e){var t=e._readableState;d("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function j(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(B,e,t))}function B(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function C(e){d("readable nexttick read 0"),e.read(0)}function I(e,t){d("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function U(e){var t=e._readableState;d("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(z,t,e))}function z(e,t){if(d("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function F(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):O(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&U(this),null;var n,a=t.needReadable;return d("need readable",a),(0===t.length||t.length-e0?N(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&U(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(e){_(this,new g("_read()"))},S.prototype.pipe=function(e,t){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,d("pipe count=%d opts=%j",a.pipesCount,t);var o=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?f:m;function c(t,n){d("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),e.removeListener("close",l),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",h),e.removeListener("unpipe",c),r.removeListener("end",f),r.removeListener("end",m),r.removeListener("data",b),u=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||s())}function f(){d("onend"),e.end()}a.endEmitted?n.nextTick(o):r.once("end",o),e.on("unpipe",c);var s=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,L(e))}}(r);e.on("drain",s);var u=!1;function b(t){d("ondata");var n=e.write(t);d("dest.write",n),!1===n&&((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==F(a.pipes,e))&&!u&&(d("false write response, pause",a.awaitDrain),a.awaitDrain++),r.pause())}function h(t){d("onerror",t),m(),e.removeListener("error",h),0===i(e,"error")&&_(e,t)}function l(){e.removeListener("finish",p),m()}function p(){d("onfinish"),e.removeListener("close",l),m()}function m(){d("unpipe"),r.unpipe(e)}return r.on("data",b),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",l),e.once("finish",p),e.emit("pipe",r),a.flowing||(d("pipe resume"),r.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0,!1!==a.flowing&&this.resume()):"readable"===e&&(a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,d("on readable",a.length,a.reading),a.length?O(this):a.reading||n.nextTick(C,this))),r},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var r=o.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(R,this),r},S.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(R,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(I,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var a in e.on("end",(function(){if(d("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(a){(d("wrapped data"),r.decoder&&(a=r.decoder.write(a)),r.objectMode&&null==a)||(r.objectMode||a&&a.length)&&(t.push(a)||(n=!0,e.pause()))})),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var i=0;i-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,r){r(new p("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,r){var a=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),a.corked&&(a.corked=1,this.uncork()),a.ending||function(e,t,r){t.ending=!0,j(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,a,r),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=u.destroy,S.prototype._undestroy=u.undestroy,S.prototype._destroy=function(e,t){t(e)}}).call(this,r(13),r(11))},function(e,t,r){"use strict";e.exports=s;var n=r(65).codes,a=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=n.ERR_TRANSFORM_WITH_LENGTH_0,f=r(66);function d(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function b(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(f,a),f.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},f.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,a=0|this._b,i=0|this._c,c=0|this._d,f=0|this._e,l=0|this._f,p=0|this._g,m=0|this._h,x=0;x<16;++x)r[x]=e.readInt32BE(4*x);for(;x<64;++x)r[x]=0|(((t=r[x-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[x-7]+h(r[x-15])+r[x-16];for(var y=0;y<64;++y){var v=m+b(f)+d(f,l,p)+o[y]+r[y]|0,g=u(n)+s(n,a,i)|0;m=p,p=l,l=f,f=c+v|0,c=i,i=a,a=n,n=v+g|0}this._a=n+this._a|0,this._b=a+this._b|0,this._c=i+this._c|0,this._d=c+this._d|0,this._e=f+this._e|0,this._f=l+this._f|0,this._g=p+this._g|0,this._h=m+this._h|0},f.prototype._hash=function(){var e=i.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=f},function(e,t,r){var n=r(4),a=r(67),i=r(6).Buffer,o=[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],c=new Array(160);function f(){this.init(),this._w=c,a.call(this,128,112)}function d(e,t,r){return r^e&(t^r)}function s(e,t,r){return e&t|r&(e|t)}function u(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function b(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function p(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function x(e,t){return e>>>0>>0?1:0}n(f,a),f.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},f.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,a=0|this._ch,i=0|this._dh,c=0|this._eh,f=0|this._fh,y=0|this._gh,v=0|this._hh,g=0|this._al,w=0|this._bl,_=0|this._cl,M=0|this._dl,k=0|this._el,S=0|this._fl,A=0|this._gl,E=0|this._hl,T=0;T<32;T+=2)t[T]=e.readInt32BE(4*T),t[T+1]=e.readInt32BE(4*T+4);for(;T<160;T+=2){var O=t[T-30],P=t[T-30+1],j=h(O,P),B=l(P,O),R=p(O=t[T-4],P=t[T-4+1]),C=m(P,O),I=t[T-14],L=t[T-14+1],N=t[T-32],U=t[T-32+1],z=B+L|0,F=j+I+x(z,B)|0;F=(F=F+R+x(z=z+C|0,C)|0)+N+x(z=z+U|0,U)|0,t[T]=F,t[T+1]=z}for(var q=0;q<160;q+=2){F=t[q],z=t[q+1];var H=s(r,n,a),D=s(g,w,_),K=u(r,g),G=u(g,r),W=b(c,k),V=b(k,c),Z=o[q],J=o[q+1],X=d(c,f,y),Y=d(k,S,A),$=E+V|0,Q=v+W+x($,E)|0;Q=(Q=(Q=Q+X+x($=$+Y|0,Y)|0)+Z+x($=$+J|0,J)|0)+F+x($=$+z|0,z)|0;var ee=G+D|0,te=K+H+x(ee,G)|0;v=y,E=A,y=f,A=S,f=c,S=k,c=i+Q+x(k=M+$|0,M)|0,i=a,M=_,a=n,_=w,n=r,w=g,r=Q+te+x(g=$+ee|0,$)|0}this._al=this._al+g|0,this._bl=this._bl+w|0,this._cl=this._cl+_|0,this._dl=this._dl+M|0,this._el=this._el+k|0,this._fl=this._fl+S|0,this._gl=this._gl+A|0,this._hl=this._hl+E|0,this._ah=this._ah+r+x(this._al,g)|0,this._bh=this._bh+n+x(this._bl,w)|0,this._ch=this._ch+a+x(this._cl,_)|0,this._dh=this._dh+i+x(this._dl,M)|0,this._eh=this._eh+c+x(this._el,k)|0,this._fh=this._fh+f+x(this._fl,S)|0,this._gh=this._gh+y+x(this._gl,A)|0,this._hh=this._hh+v+x(this._hl,E)|0},f.prototype._hash=function(){var e=i.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=f},function(e,t,r){"use strict";(function(t,n){var a=r(103);e.exports=v;var i,o=r(197);v.ReadableState=y;r(23).EventEmitter;var c=function(e,t){return e.listeners(t).length},f=r(223),d=r(138).Buffer,s=t.Uint8Array||function(){};var u=Object.create(r(83));u.inherits=r(4);var b=r(433),h=void 0;h=b&&b.debuglog?b.debuglog("stream"):function(){};var l,p=r(434),m=r(224);u.inherits(v,f);var x=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var n=t instanceof(i=i||r(50));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var a=e.highWaterMark,o=e.readableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:n&&(o||0===o)?o:c,this.highWaterMark=Math.floor(this.highWaterMark),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.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=r(39).StringDecoder),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function v(e){if(i=i||r(50),!(this instanceof v))return new v(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function g(e,t,r,n,a){var i,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,M(e)}(e,o)):(a||(i=function(e,t){var r;n=t,d.isBuffer(n)||n instanceof s||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(o,t)),i?e.emit("error",i):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===d.prototype||(t=function(e){return d.from(e)}(t)),n?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?w(e,o,t,!1):S(e,o)):w(e,o,t,!1))):n||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?a.nextTick(k,e):k(e))}function k(e){h("emit readable"),e.emit("readable"),O(e)}function S(e,t){t.readingMore||(t.readingMore=!0,a.nextTick(A,e,t))}function A(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;ei.length?i.length:e;if(o===i.length?a+=i:a+=i.slice(0,e),0===(e-=o)){o===i.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(o));break}++n}return t.length-=n,a}(e,t):function(e,t){var r=d.allocUnsafe(e),n=t.head,a=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(r,r.length-e,0,o),0===(e-=o)){o===i.length?(++a,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(o));break}++a}return t.length-=a,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function j(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,a.nextTick(B,t,e))}function B(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function R(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):M(this),null;if(0===(e=_(e,t))&&t.ended)return 0===t.length&&j(this),null;var n,a=t.needReadable;return h("need readable",a),(0===t.length||t.length-e0?P(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit("data",n),n},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,t);var f=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?s:v;function d(t,n){h("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,h("cleanup"),e.removeListener("close",x),e.removeListener("finish",y),e.removeListener("drain",u),e.removeListener("error",m),e.removeListener("unpipe",d),r.removeListener("end",s),r.removeListener("end",v),r.removeListener("data",p),b=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function s(){h("onend"),e.end()}i.endEmitted?a.nextTick(f):r.once("end",f),e.on("unpipe",d);var u=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,O(e))}}(r);e.on("drain",u);var b=!1;var l=!1;function p(t){h("ondata"),l=!1,!1!==e.write(t)||l||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==R(i.pipes,e))&&!b&&(h("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,l=!0),r.pause())}function m(t){h("onerror",t),v(),e.removeListener("error",m),0===c(e,"error")&&e.emit("error",t)}function x(){e.removeListener("finish",y),v()}function y(){h("onfinish"),e.removeListener("close",x),v()}function v(){h("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",m),e.once("close",x),e.once("finish",y),e.emit("pipe",r),i.flowing||(h("pipe resume"),r.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;ie.length)&&(t=e.length);for(var r=0,n=new Array(t);r7&&e[r].toUpperCase()!==e[r]||parseInt(t[r],16)<=7&&e[r].toLowerCase()!==e[r])return!1;return!0},m=function(e){var t="";e=(e=(e=(e=(e=f.encode(e)).replace(/^(?:\u0000)*/,"")).split("").reverse().join("")).replace(/^(?:\u0000)*/,"")).split("").reverse().join("");for(var r=0;r>>4).toString(16)),t.push((15&e[r]).toString(16));return"0x"+t.join("")},isHex:w,isHexStrict:g,stripHexPrefix:function(e){return 0!==e&&w(e)?e.replace(/^(-)?0x/i,"$1"):e},leftPad:function(e,t,r){var n=/^0x/i.test(e)||"number"==typeof e,a=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0;return(n?"0x":"")+new Array(a).join(r||"0")+e},rightPad:function(e,t,r){var n=/^0x/i.test(e)||"number"==typeof e,a=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0;return(n?"0x":"")+e+new Array(a).join(r||"0")},toTwosComplement:function(e){return"0x"+h(e).toTwos(256).toString(16,64)},sha3:M,sha3Raw:function(e){return null===(e=M(e))?_:e},toNumber:function(e){return"number"==typeof e?e:x(v(e))}}}).call(this,r(0).Buffer)},function(e,t,r){!function(e){var t,r,n,a=String.fromCharCode;function i(e){for(var t,r,n=[],a=0,i=e.length;a=55296&&t<=56319&&a=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function c(e,t){return a(e>>t&63|128)}function f(e){if(0==(4294967168&e))return a(e);var t="";return 0==(4294965248&e)?t=a(e>>6&31|192):0==(4294901760&e)?(o(e),t=a(e>>12&15|224),t+=c(e,6)):0==(4292870144&e)&&(t=a(e>>18&7|240),t+=c(e,12),t+=c(e,6)),t+=a(63&e|128)}function d(){if(n>=r)throw Error("Invalid byte index");var e=255&t[n];if(n++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function s(){var e,a;if(n>r)throw Error("Invalid byte index");if(n==r)return!1;if(e=255&t[n],n++,0==(128&e))return e;if(192==(224&e)){if((a=(31&e)<<6|d())>=128)return a;throw Error("Invalid continuation byte")}if(224==(240&e)){if((a=(15&e)<<12|d()<<6|d())>=2048)return o(a),a;throw Error("Invalid continuation byte")}if(240==(248&e)&&(a=(7&e)<<18|d()<<12|d()<<6|d())>=65536&&a<=1114111)return a;throw Error("Invalid UTF-8 detected")}e.version="3.0.0",e.encode=function(e){for(var t=i(e),r=t.length,n=-1,a="";++n65535&&(i+=a((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=a(t);return i}(c)}}(t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=t.MAX_UINT64=void 0;var n=r(0),a=r(40);t.MAX_UINT64=new a.BN("ffffffffffffffff",16),t.MAX_INTEGER=new a.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new a.BN("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=n.Buffer.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=n.Buffer.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=n.Buffer.from(t.KECCAK256_RLP_S,"hex")},function(e,t,r){"use strict";(function(e){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;var i=a(r(14)),o=r(40),c=r(22),f=r(68),d=r(230),s=r(52),u=r(142),b=r(107),h=r(143),l=function(){function e(e,t,r,n){void 0===e&&(e=new o.BN(0)),void 0===t&&(t=new o.BN(0)),void 0===r&&(r=d.KECCAK256_RLP),void 0===n&&(n=d.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=r,this.codeHash=n,this._validate()}return e.fromAccountData=function(t){var r=t.nonce,n=t.balance,a=t.stateRoot,i=t.codeHash;return new e(r?new o.BN((0,s.toBuffer)(r)):void 0,n?new o.BN((0,s.toBuffer)(n)):void 0,a?(0,s.toBuffer)(a):void 0,i?(0,s.toBuffer)(i):void 0)},e.fromRlpSerializedAccount=function(e){var t=o.rlp.decode(e);if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},e.fromValuesArray=function(t){var r=n(t,4),a=r[0],i=r[1],c=r[2],f=r[3];return new e(new o.BN(a),new o.BN(i),c,f)},e.prototype._validate=function(){if(this.nonce.lt(new o.BN(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new o.BN(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")},e.prototype.raw=function(){return[(0,h.bnToUnpaddedBuffer)(this.nonce),(0,h.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return o.rlp.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(d.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(d.KECCAK256_NULL)},e}();t.Account=l;t.isValidAddress=function(e){try{(0,b.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)};t.toChecksumAddress=function(e,t){(0,b.assertIsHexString)(e);var r=(0,f.stripHexPrefix)(e).toLowerCase(),n="";t&&(n=(0,h.toType)(t,h.TypeOutput.BN).toString()+"0x");for(var a=(0,u.keccakFromString)(n+r).toString("hex"),i="0x",o=0;o=8?i+=r[o].toUpperCase():i+=r[o];return i};t.isValidChecksumAddress=function(e,r){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,r)===e};t.generateAddress=function(t,r){(0,b.assertIsBuffer)(t),(0,b.assertIsBuffer)(r);var n=new o.BN(r);return n.isZero()?(0,u.rlphash)([t,null]).slice(-20):(0,u.rlphash)([t,e.from(n.toArray())]).slice(-20)};t.generateAddress2=function(t,r,n){return(0,b.assertIsBuffer)(t),(0,b.assertIsBuffer)(r),(0,b.assertIsBuffer)(n),(0,i.default)(20===t.length),(0,i.default)(32===r.length),(0,u.keccak256)(e.concat([e.from("ff","hex"),t,r,(0,u.keccak256)(n)])).slice(-20)};t.isValidPrivate=function(e){return(0,c.privateKeyVerify)(e)};t.isValidPublic=function(t,r){return void 0===r&&(r=!1),(0,b.assertIsBuffer)(t),64===t.length?(0,c.publicKeyVerify)(e.concat([e.from([4]),t])):!!r&&(0,c.publicKeyVerify)(t)};t.pubToAddress=function(t,r){return void 0===r&&(r=!1),(0,b.assertIsBuffer)(t),r&&64!==t.length&&(t=e.from((0,c.publicKeyConvert)(t,!1).slice(1))),(0,i.default)(64===t.length),(0,u.keccak)(t).slice(-20)},t.publicToAddress=t.pubToAddress;t.privateToPublic=function(t){return(0,b.assertIsBuffer)(t),e.from((0,c.publicKeyCreate)(t,!1)).slice(1)};t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))};t.importPublic=function(t){return(0,b.assertIsBuffer)(t),64!==t.length&&(t=e.from((0,c.publicKeyConvert)(t,!1).slice(1))),t};t.zeroAddress=function(){var e=(0,s.zeros)(20);return(0,s.bufferToHex)(e)};t.isZeroAddress=function(e){try{(0,b.assertIsString)(e)}catch(e){return!1}return(0,t.zeroAddress)()===e}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";function n(e,t){for(var r=0;r=t&&n<=r?n-t+10:e})).join("")},c=function(e){for(var t,r=e;r.length>2;)t=r.slice(0,9),r=parseInt(t,10)%97+r.slice(t.length);return parseInt(r,10)%97},f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._iban=t}var t,r,f;return t=e,f=[{key:"toAddress",value:function(t){if(!(t=new e(t)).isDirect())throw new Error("IBAN is indirect and can't be converted");return t.toAddress()}},{key:"toIban",value:function(t){return e.fromAddress(t).toString()}},{key:"fromAddress",value:function(t){if(!a.isAddress(t))throw new Error("Provided address is not a valid address: "+t);t=t.replace("0x","").replace("0X","");var r=function(e,t){for(var r=e;r.length<2*t;)r="0"+r;return r}(new i(t,16).toString(36),15);return e.fromBban(r.toUpperCase())}},{key:"fromBban",value:function(t){return new e("XE"+("0"+(98-c(o("XE00"+t)))).slice(-2)+t)}},{key:"createIndirect",value:function(t){return e.fromBban("ETH"+t.institution+t.identifier)}},{key:"isValid",value:function(t){return new e(t).isValid()}}],(r=[{key:"isValid",value:function(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&1===c(o(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.slice(2,4)}},{key:"institution",value:function(){return this.isIndirect()?this._iban.slice(7,11):""}},{key:"client",value:function(){return this.isIndirect()?this._iban.slice(11):""}},{key:"toAddress",value:function(){if(this.isDirect()){var e=this._iban.slice(4),t=new i(e,36);return a.toChecksumAddress(t.toString(16,20))}return""}},{key:"toString",value:function(){return this._iban}}])&&n(t.prototype,r),f&&n(t,f),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=f},function(e,t,r){"use strict";var n={messageId:0,toPayload:function(e,t){if(!e)throw new Error('JSONRPC method should be specified for params: "'+JSON.stringify(t)+'"!');return n.messageId++,{jsonrpc:"2.0",id:n.messageId,method:e,params:t||[]}},isValidResponse:function(e){return Array.isArray(e)?e.every(t):t(e);function t(e){return!(!e||e.error||"2.0"!==e.jsonrpc||"number"!=typeof e.id&&"string"!=typeof e.id||void 0===e.result)}},toBatchPayload:function(e){return e.map((function(e){return n.toPayload(e.method,e.params)}))}};e.exports=n},function(e,t,r){(function(e,n){var a;function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)} /*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){var c="object"==i(t)&&t&&!t.nodeType&&t,f="object"==i(e)&&e&&!e.nodeType&&e,d="object"==(void 0===n?"undefined":i(n))&&n;d.global!==d&&d.window!==d&&d.self!==d||(o=d);var s,u,b=2147483647,h=/^xn--/,l=/[^\x20-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=Math.floor,y=String.fromCharCode;function v(e){throw new RangeError(m[e])}function g(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function w(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+g((e=e.replace(p,".")).split("."),t).join(".")}function _(e){for(var t,r,n=[],a=0,i=e.length;a=55296&&t<=56319&&a65535&&(t+=y((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=y(e)})).join("")}function k(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,r){var n=0;for(e=r?x(e/700):e>>1,e+=x(e/t);e>455;n+=36)e=x(e/35);return x(n+36*e/(e+38))}function A(e){var t,r,n,a,i,o,c,f,d,s,u,h=[],l=e.length,p=0,m=128,y=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n=128&&v("not-basic"),h.push(e.charCodeAt(n));for(a=r>0?r+1:0;a=l&&v("invalid-input"),((f=(u=e.charCodeAt(a++))-48<10?u-22:u-65<26?u-65:u-97<26?u-97:36)>=36||f>x((b-p)/o))&&v("overflow"),p+=f*o,!(f<(d=c<=y?1:c>=y+26?26:c-y));c+=36)o>x(b/(s=36-d))&&v("overflow"),o*=s;y=S(p-i,t=h.length+1,0==i),x(p/t)>b-m&&v("overflow"),m+=x(p/t),p%=t,h.splice(p++,0,m)}return M(h)}function E(e){var t,r,n,a,i,o,c,f,d,s,u,h,l,p,m,g=[];for(h=(e=_(e)).length,t=128,r=0,i=72,o=0;o=t&&ux((b-r)/(l=n+1))&&v("overflow"),r+=(c-t)*l,t=c,o=0;ob&&v("overflow"),u==t){for(f=r,d=36;!(f<(s=d<=i?1:d>=i+26?26:d-i));d+=36)m=f-s,p=36-s,g.push(y(k(s+m%p,0))),f=x(m/p);g.push(y(k(f,0))),i=S(r,l,n==a),r=0,++n}++r,++t}return g.join("")}if(s={version:"1.4.1",ucs2:{decode:_,encode:M},decode:A,encode:E,toASCII:function(e){return w(e,(function(e){return l.test(e)?"xn--"+E(e):e}))},toUnicode:function(e){return w(e,(function(e){return h.test(e)?A(e.slice(4).toLowerCase()):e}))}},"object"==i(r(144))&&r(144))void 0===(a=function(){return s}.call(t,r,t,e))||(e.exports=a);else if(c&&f)if(e.exports==c)f.exports=s;else for(u in s)s.hasOwnProperty(u)&&(c[u]=s[u]);else o.punycode=s}(this)}).call(this,r(15)(e),r(13))},function(e,t,r){(function(e){t.fetch=i(e.fetch)&&i(e.ReadableStream),t.writableStream=i(e.WritableStream),t.abortController=i(e.AbortController),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(e){}var r;function n(){if(void 0!==r)return r;if(e.XMLHttpRequest){r=new e.XMLHttpRequest;try{r.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){r=null}}else r=null;return r}var a=void 0!==e.ArrayBuffer;a&&i(e.ArrayBuffer.prototype.slice);function i(e){return"function"==typeof e}t.arraybuffer=t.fetch||a&&function(e){var t=n();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}("arraybuffer"),t.msstream=!1,t.mozchunkedarraybuffer=!1,t.overrideMimeType=t.fetch||!!n()&&i(n().overrideMimeType),t.vbArray=i(e.VBArray),r=null}).call(this,r(13))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){(function(e,n,a){var i=r(235),o=r(236),c=r(82),f=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},d=t.IncomingMessage=function(t,r,o,f){var d=this;if(c.Readable.call(d),d._mode=o,d.headers={},d.rawHeaders=[],d.trailers={},d.rawTrailers=[],d.on("end",(function(){e.nextTick((function(){d.emit("close")}))})),"fetch"===o){if(d._fetchResponse=r,d.url=r.url,d.statusCode=r.status,d.statusMessage=r.statusText,r.headers.forEach((function(e,t){d.headers[t.toLowerCase()]=e,d.rawHeaders.push(t,e)})),i.writableStream){var s=new WritableStream({write:function(e){return new Promise((function(t,r){d._destroyed?r():d.push(new a(e))?t():d._resumeFetch=t}))},close:function(){n.clearTimeout(f),d._destroyed||d.push(null)},abort:function(e){d._destroyed||d.emit("error",e)}});try{return void r.body.pipeTo(s).catch((function(e){n.clearTimeout(f),d._destroyed||d.emit("error",e)}))}catch(e){}}var u=r.body.getReader();!function e(){u.read().then((function(t){if(!d._destroyed){if(t.done)return n.clearTimeout(f),void d.push(null);d.push(new a(t.value)),e()}})).catch((function(e){n.clearTimeout(f),d._destroyed||d.emit("error",e)}))}()}else{if(d._xhr=t,d._pos=0,d.url=t.responseURL,d.statusCode=t.status,d.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===d.headers[r]&&(d.headers[r]=[]),d.headers[r].push(t[2])):void 0!==d.headers[r]?d.headers[r]+=", "+t[2]:d.headers[r]=t[2],d.rawHeaders.push(t[1],t[2])}})),d._charset="x-user-defined",!i.overrideMimeType){var b=d.rawHeaders["mime-type"];if(b){var h=b.match(/;\s*charset=([^;])(;|$)/);h&&(d._charset=h[1].toLowerCase())}d._charset||(d._charset="utf-8")}}};o(d,c.Readable),d.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},d.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==f.DONE)break;try{r=new n.VBArray(t.responseBody).toArray()}catch(e){}if(null!==r){e.push(new a(r));break}case"text":try{r=t.responseText}catch(t){e._mode="text:vbarray";break}if(r.length>e._pos){var i=r.substr(e._pos);if("x-user-defined"===e._charset){for(var o=new a(i.length),c=0;ce._pos&&(e.push(new a(new Uint8Array(d.result.slice(e._pos)))),e._pos=d.result.byteLength)},d.onload=function(){e.push(null)},d.readAsArrayBuffer(r)}e._xhr.readyState===f.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,r(11),r(13),r(0).Buffer)},function(e,t,r){var n=r(146),a=r(85),i=e.exports;for(var o in n)n.hasOwnProperty(o)&&(i[o]=n[o]);function c(e){if("string"==typeof e&&(e=a.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}i.request=function(e,t){return e=c(e),n.request.call(this,e,t)},i.get=function(e,t){return e=c(e),n.get.call(this,e,t)}},function(e,t,r){"use strict";e.exports={addresses:{main:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",ropsten:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",rinkeby:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",goerli:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},interfaceIds:{addr:"0x3b3b57de",setAddr:"0x3b3b57de",pubkey:"0xc8690233",setPubkey:"0xc8690233",contenthash:"0xbc1c58d1",setContenthash:"0xbc1c58d1",content:"0xd8389dc5",setContent:"0xd8389dc5"}}},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t0&&e.topics.length!==n+1&&(t={anonymous:!0,inputs:[]})}var a=t.anonymous?e.topics:e.topics.slice(1);return r.returnValues=l.decodeLog(t.inputs,e.data,a),delete r.returnValues.__length__,r.event=t.name,r.signature=t.anonymous||!e.topics[0]?null:e.topics[0],r.raw={data:r.data,topics:r.topics},delete r.data,delete r.topics,r},p.prototype._encodeMethodABI=function(){var e=this._method.signature,t=this.arguments||[],r=!1,n=this._parent.options.jsonInterface.filter((function(t){return"constructor"===e&&t.type===e||(t.signature===e||t.signature===e.replace("0x","")||t.name===e)&&"function"===t.type})).map((function(e){var n=Array.isArray(e.inputs)?e.inputs.length:0;if(n!==t.length)throw new Error("The number of arguments is not matching the methods required number. You need to pass "+n+" arguments.");return"function"===e.type&&(r=e.signature),Array.isArray(e.inputs)?e.inputs:[]})).map((function(e){return l.encodeParameters(e,t).replace("0x","")}))[0]||"";if("constructor"===e){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 a=r?r+n:n;if(!a)throw new Error("Couldn't find a matching contract method named \""+this._method.name+'".');return a},p.prototype._decodeMethodReturn=function(e,t){if(!t)return null;t=t.length>=2?t.slice(2):t;var r=l.decodeParameters(e,t);return 1===r.__length__?r[0]:(delete r.__length__,r)},p.prototype.deploy=function(e,t){if((e=e||{}).arguments=e.arguments||[],!(e=this._getOrSetDefaultOptions(e)).data){if("function"==typeof t)return t(b.ContractMissingDeployDataError());throw b.ContractMissingDeployDataError()}var r=this.options.jsonInterface.find((function(e){return"constructor"===e.type}))||{};return r.signature="constructor",this._createTxObject.apply({method:r,parent:this,deployData:e.data,_ethAccounts:this.constructor._ethAccounts},e.arguments)},p.prototype._generateEventOptions=function(){var e=Array.prototype.slice.call(arguments),t=this._getCallback(e),r="object"===(!!e[e.length-1]&&o(e[e.length-1]))?e.pop():{},n="string"==typeof e[0]?e[0]:"allevents",a="allevents"===n.toLowerCase()?{name:"ALLEVENTS",jsonInterface:this.options.jsonInterface}:this.options.jsonInterface.find((function(e){return"event"===e.type&&(e.name===n||e.signature==="0x"+n.replace("0x",""))}));if(!a)throw b.ContractEventDoesNotExistError(n);if(!d.isAddress(this.options.address))throw b.ContractNoAddressDefinedError();return{params:this._encodeEventABI(a,r),event:a,callback:t}},p.prototype.clone=function(){return new this.constructor(this.options.jsonInterface,this.options.address,this.options)},p.prototype.once=function(e,t,r){var n=Array.prototype.slice.call(arguments);if(!(r=this._getCallback(n)))throw b.ContractOnceRequiresCallbackError();t&&delete t.fromBlock,this._on(e,t,(function(e,t,n){n.unsubscribe(),"function"==typeof r&&r(e,t,n)}))},p.prototype._on=function(){var e=this._generateEventOptions.apply(this,arguments);e.params&&e.params.toBlock&&(delete e.params.toBlock,console.warn("Invalid option: toBlock. Use getPastEvents for specific range.")),this._checkListener("newListener",e.event.name),this._checkListener("removeListener",e.event.name);var t=new s({subscription:{params:1,inputFormatter:[u.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(e.event),subscriptionHandler:function(e){e.removed?this.emit("changed",e):this.emit("data",e),"function"==typeof this.callback&&this.callback(null,e,this)}},type:"eth",requestManager:this._requestManager});return t.subscribe("logs",e.params,e.callback||function(){}),t},p.prototype.getPastEvents=function(){var e=this._generateEventOptions.apply(this,arguments),t=new f({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[u.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(e.event)});t.setRequestManager(this._requestManager);var r=t.buildCall();return t=null,r(e.params,e.callback)},p.prototype._createTxObject=function(){var e=Array.prototype.slice.call(arguments),t={};if("function"===this.method.type&&(t.call=this.parent._executeMethod.bind(t,"call"),t.call.request=this.parent._executeMethod.bind(t,"call",!0)),t.send=this.parent._executeMethod.bind(t,"send"),t.send.request=this.parent._executeMethod.bind(t,"send",!0),t.encodeABI=this.parent._encodeMethodABI.bind(t),t.estimateGas=this.parent._executeMethod.bind(t,"estimate"),t.createAccessList=this.parent._executeMethod.bind(t,"createAccessList"),e&&this.method.inputs&&e.length!==this.method.inputs.length){if(this.nextMethod)return this.nextMethod.apply(null,e);throw b.InvalidNumberOfParams(e.length,this.method.inputs.length,this.method.name)}return t.arguments=e||[],t._method=this.method,t._parent=this.parent,t._ethAccounts=this.parent.constructor._ethAccounts||this._ethAccounts,this.deployData&&(t._deployData=this.deployData),t},p.prototype._processExecuteArguments=function(e,t){var r={};if(r.type=e.shift(),r.callback=this._parent._getCallback(e),"call"!==r.type||!0===e[e.length-1]||"string"!=typeof e[e.length-1]&&!isFinite(e[e.length-1])||(r.defaultBlock=e.pop()),r.options="object"===(!!e[e.length-1]&&o(e[e.length-1]))?e.pop():{},r.generateRequest=!0===e[e.length-1]&&e.pop(),r.options=this._parent._getOrSetDefaultOptions(r.options),r.options.data=this.encodeABI(),!this._deployData&&!d.isAddress(this._parent.options.address))throw b.ContractNoAddressDefinedError();return this._deployData||(r.options.to=this._parent.options.address),r.options.data?r:d._fireError(new Error("Couldn't find a matching contract method, or the number of parameters is wrong."),t.eventEmitter,t.reject,r.callback)},p.prototype._executeMethod=function(){var e=this,t=this._parent._processExecuteArguments.call(this,Array.prototype.slice.call(arguments),r),r=h("send"!==t.type),n=e.constructor._ethAccounts||e._ethAccounts;if(t.generateRequest){var a={params:[u.inputCallFormatter.call(this._parent,t.options)],callback:t.callback};return"call"===t.type?(a.params.push(u.inputDefaultBlockNumberFormatter.call(this._parent,t.defaultBlock)),a.method="eth_call",a.format=this._parent._decodeMethodReturn.bind(null,this._method.outputs)):a.method="eth_sendTransaction",a}switch(t.type){case"createAccessList":if(!d.isAddress(t.options.from))return d._fireError(b.ContractNoFromAddressDefinedError(),r.eventEmitter,r.reject,t.callback);var i=new f({name:"createAccessList",call:"eth_createAccessList",params:2,inputFormatter:[u.inputTransactionFormatter,u.inputDefaultBlockNumberFormatter],requestManager:e._parent._requestManager,accounts:n,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock}).createFunction();return i(t.options,t.callback);case"estimate":var o=new f({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[u.inputCallFormatter],outputFormatter:d.hexToNumber,requestManager:e._parent._requestManager,accounts:n,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock}).createFunction();return o(t.options,t.callback);case"call":var c=new f({name:"call",call:"eth_call",params:2,inputFormatter:[u.inputCallFormatter,u.inputDefaultBlockNumberFormatter],outputFormatter:function(t){return e._parent._decodeMethodReturn(e._method.outputs,t)},requestManager:e._parent._requestManager,accounts:n,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock,handleRevert:e._parent.handleRevert,abiCoder:l}).createFunction();return c(t.options,t.defaultBlock,t.callback);case"send":if(!d.isAddress(t.options.from))return d._fireError(b.ContractNoFromAddressDefinedError(),r.eventEmitter,r.reject,t.callback);if("boolean"==typeof this._method.payable&&!this._method.payable&&t.options.value&&t.options.value>0)return d._fireError(new Error("Can not send value to non-payable contract method or constructor"),r.eventEmitter,r.reject,t.callback);var s={receiptFormatter:function(t){if(Array.isArray(t.logs)){var r=t.logs.map((function(t){return e._parent._decodeEventABI.call({name:"ALLEVENTS",jsonInterface:e._parent.options.jsonInterface},t)}));t.events={};var n=0;r.forEach((function(e){e.event?t.events[e.event]?Array.isArray(t.events[e.event])?t.events[e.event].push(e):t.events[e.event]=[t.events[e.event],e]:t.events[e.event]=e:(t.events[n]=e,n++)})),delete t.logs}return t},contractDeployFormatter:function(t){var r=e._parent.clone();return r.options.address=t.contractAddress,r}},p=new f({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[u.inputTransactionFormatter],requestManager:e._parent._requestManager,accounts:e.constructor._ethAccounts||e._ethAccounts,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock,transactionBlockTimeout:e._parent.transactionBlockTimeout,transactionConfirmationBlocks:e._parent.transactionConfirmationBlocks,transactionPollingTimeout:e._parent.transactionPollingTimeout,transactionPollingInterval:e._parent.transactionPollingInterval,defaultCommon:e._parent.defaultCommon,defaultChain:e._parent.defaultChain,defaultHardfork:e._parent.defaultHardfork,handleRevert:e._parent.handleRevert,extraFormatters:s,abiCoder:l}).createFunction();return p(t.options,t.callback);default:throw new Error('Method "'+t.type+'" not implemented.')}},e.exports=p},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=r(0).Buffer,i=r(24),o=r(360).AbiCoder,c=r(360).ParamType,f=new o((function(e,t){return!e.match(/^u?int/)||Array.isArray(t)||t&&"object"===n(t)&&"BN"===t.constructor.name?t:t.toString()}));function d(){}var s=function(){};s.prototype.encodeFunctionSignature=function(e){return("function"==typeof e||"object"===n(e)&&e)&&(e=i._jsonInterfaceMethodToString(e)),i.sha3(e).slice(0,10)},s.prototype.encodeEventSignature=function(e){return("function"==typeof e||"object"===n(e)&&e)&&(e=i._jsonInterfaceMethodToString(e)),i.sha3(e)},s.prototype.encodeParameter=function(e,t){return this.encodeParameters([e],[t])},s.prototype.encodeParameters=function(e,t){var r=this;return e=r.mapTypes(e),t=t.map((function(t,a){var i=e[a];if("object"===n(i)&&i.type&&(i=i.type),t=r.formatParam(i,t),"string"==typeof i&&i.includes("tuple")){!function e(t,n){if("array"===t.name){if(!t.type.match(/\[(\d+)\]/))return n.map((function(r){return e(f._getCoder(c.from(t.type.replace("[]",""))),r)}));var a=parseInt(t.type.match(/\[(\d+)\]/)[1]);if(n.length!==a)throw new Error("Array length does not matches with the given input");return n.map((function(r){return e(f._getCoder(c.from(t.type.replace(/\[\d+\]/,""))),r)}))}t.coders.forEach((function(t,a){"tuple"===t.name?e(t,n[a]):n[a]=r.formatParam(t.name,n[a])}))}(f._getCoder(c.from(i)),t)}return t})),f.encode(e,t)},s.prototype.mapTypes=function(e){var t=this,r=[];return e.forEach((function(e){if("object"===n(e)&&"function"===e.type&&(e=Object.assign({},e,{type:"bytes24"})),t.isSimplifiedStructFormat(e)){var a=Object.keys(e)[0];r.push(Object.assign(t.mapStructNameAndType(a),{components:t.mapStructToCoderFormat(e[a])}))}else r.push(e)})),r},s.prototype.isSimplifiedStructFormat=function(e){return"object"===n(e)&&void 0===e.components&&void 0===e.name},s.prototype.mapStructNameAndType=function(e){var t="tuple";return e.indexOf("[]")>-1&&(t="tuple[]",e=e.slice(0,-2)),{type:t,name:e}},s.prototype.mapStructToCoderFormat=function(e){var t=this,r=[];return Object.keys(e).forEach((function(a){"object"!==n(e[a])?r.push({name:a,type:e[a]}):r.push(Object.assign(t.mapStructNameAndType(a),{components:t.mapStructToCoderFormat(e[a])}))})),r},s.prototype.formatParam=function(e,t){var r=this,n=new RegExp(/^bytes([0-9]*)$/),o=new RegExp(/^bytes([0-9]*)\[\]$/),c=new RegExp(/^(u?int)([0-9]*)$/),f=new RegExp(/^(u?int)([0-9]*)\[\]$/);if(i.isBN(t)||i.isBigNumber(t))return t.toString(10);if(e.match(o)||e.match(f))return t.map((function(t){return r.formatParam(e.replace("[]",""),t)}));var d=e.match(c);if(d){var s=parseInt(d[2]||"256");s/80&&(!t||"0x"===t||"0X"===t))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 a=f.decode(this.mapTypes(e),"0x"+t.replace(/0x/i,""),r),i=new d;return i.__length__=0,e.forEach((function(e,t){var r=a[i.__length__],o="object"===n(e)&&e.type&&"string"===e.type;r="0x"!==r||o||"string"==typeof e&&"string"===e?r:null,i[t]=r,("function"==typeof e||e&&"object"===n(e))&&e.name&&(i[e.name]=r),i.__length__++})),i},s.prototype.decodeLog=function(e,t,r){var n=this;r=Array.isArray(r)?r:[r],t=t||"";var a=[],i=[],o=0;e.forEach((function(e,t){e.indexed?(i[t]=["bool","int","uint","address","fixed","ufixed"].find((function(t){return-1!==e.type.indexOf(t)}))?n.decodeParameter(e.type,r[o]):r[o],o++):a[t]=e}));var c=t,f=c?this.decodeParametersWith(a,c,!0):[],s=new d;return s.__length__=0,e.forEach((function(e,t){s[t]="string"===e.type?"":null,void 0!==f[t]&&(s[t]=f[t]),void 0!==i[t]&&(s[t]=i[t]),e.name&&(s[e.name]=s[t]),s.__length__++})),s};var u=new s;e.exports=u},function(e,t,r){(function(e){var n=r(507).keccak_256,a=r(508);function i(e){return e?a.toUnicode(e,{useStd3ASCII:!0,transitional:!1}):e}t.hash=function(t){for(var r="",a=0;a<32;a++)r+="00";if(name=i(t),name){var o=name.split(".");for(a=o.length-1;a>=0;a--){var c=n(o[a]);r=n(new e(r+c,"hex"))}}return"0x"+r},t.normalize=i}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var n=r(87);function a(e){return parseInt(e.toString("hex"),16)}function i(e){var r=e.toString(16);return r.length%2==1&&(r="0"+r),t.from(r,"hex")}e.exports={numberToBuffer:i,bufferToNumber:a,varintBufferEncode:function(e){return t.from(n.encode(a(e)))},varintBufferDecode:function(e){return i(n.decode(e))},varintEncode:function(e){return t.from(n.encode(e))}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";function n(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:this.multibaseName;if(this.string&&e===this.multibaseName)return this.string;var t=null;if(0===this.version){if("base58btc"!==e)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");t=i.toB58String(this.multihash)}else{if(1!==this.version)throw new Error("unsupported version");t=o.encode(e,this.buffer).toString()}return e===this.multibaseName&&Object.defineProperty(this,"string",{value:t}),t}},{key:e,value:function(){return"CID("+this.toString()+")"}},{key:"toString",value:function(e){return this.toBaseEncodedString(e)}},{key:"toJSON",value:function(){return{codec:this.codec,version:this.version,hash:this.multihash}}},{key:"equals",value:function(e){return this.codec===e.codec&&this.version===e.version&&this.multihash.equals(e.multihash)}}])&&n(r.prototype,f),u&&n(r,u),Object.defineProperty(r,"prototype",{writable:!1}),t}(Symbol.for("nodejs.util.inspect.custom")),{className:"CID",symbolName:"@ipld/js-cid/CID"});s.codecs=f,e.exports=s},function(e,t,r){"use strict";var n=r(87),a=r(0).Buffer;function i(e){return parseInt(e.toString("hex"),16)}function o(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),a.from(t,"hex")}e.exports={numberToBuffer:o,bufferToNumber:i,varintBufferEncode:function(e){return a.from(n.encode(i(e)))},varintBufferDecode:function(e){return o(n.decode(e))},varintEncode:function(e){return a.from(n.encode(e))}}},function(e,t,r){"use strict";var n=r(51),a=r(53),i=r(24),o=r(110),c=r(16).formatters,f=function(){var e=this;n.packageInit(this,arguments),this.net=new o(this);var t=null,r="latest";Object.defineProperty(this,"defaultAccount",{get:function(){return t},set:function(e){return e&&(t=i.toChecksumAddress(c.inputAddressFormatter(e))),f.forEach((function(e){e.defaultAccount=t})),e},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return r},set:function(e){return r=e,f.forEach((function(e){e.defaultBlock=r})),e},enumerable:!0});var f=[new a({name:"getAccounts",call:"personal_listAccounts",params:0,outputFormatter:i.toChecksumAddress}),new a({name:"newAccount",call:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:i.toChecksumAddress}),new a({name:"unlockAccount",call:"personal_unlockAccount",params:3,inputFormatter:[c.inputAddressFormatter,null,null]}),new a({name:"lockAccount",call:"personal_lockAccount",params:1,inputFormatter:[c.inputAddressFormatter]}),new a({name:"importRawKey",call:"personal_importRawKey",params:2}),new a({name:"sendTransaction",call:"personal_sendTransaction",params:2,inputFormatter:[c.inputTransactionFormatter,null]}),new a({name:"signTransaction",call:"personal_signTransaction",params:2,inputFormatter:[c.inputTransactionFormatter,null]}),new a({name:"sign",call:"personal_sign",params:3,inputFormatter:[c.inputSignFormatter,c.inputAddressFormatter,null]}),new a({name:"ecRecover",call:"personal_ecRecover",params:2,inputFormatter:[c.inputSignFormatter,null]})];f.forEach((function(t){t.attachToObject(e),t.setRequestManager(e._requestManager),t.defaultBlock=e.defaultBlock,t.defaultAccount=e.defaultAccount}))};n.addProviders(f),e.exports=f},function(e,t,r){r(547);var n=function(e,t){return parseInt(e.slice(2*t+2,2*t+4),16)},a=function(e){return(e.length-2)/2},i=function(e){for(var t=[],r=2,n=e.length;r>6|192);else{if(a>55295&&a<56320){if(++n==e.length)return null;var i=e.charCodeAt(n);if(i<56320||i>57343)return null;r+=t((a=65536+((1023&a)<<10)+(1023&i))>>18|240),r+=t(a>>12&63|128)}else r+=t(a>>12|224);r+=t(a>>6&63|128)}r+=t(63&a|128)}}return r},toString:function(e){for(var t="",r=0,i=a(e);r127){if(o>191&&o<224){if(r>=i)return null;o=(31&o)<<6|63&n(e,r)}else if(o>223&&o<240){if(r+1>=i)return null;o=(15&o)<<12|(63&n(e,r))<<6|63&n(e,++r)}else{if(!(o>239&&o<248))return null;if(r+2>=i)return null;o=(7&o)<<18|(63&n(e,r))<<12|(63&n(e,++r))<<6|63&n(e,++r)}++r}if(o<=65535)t+=String.fromCharCode(o);else{if(!(o<=1114111))return null;o-=65536,t+=String.fromCharCode(o>>10|55296),t+=String.fromCharCode(1023&o|56320)}}return t},fromNumber:function(e){var t=e.toString(16);return t.length%2==0?"0x"+t:"0x0"+t},toNumber:function(e){return parseInt(e.slice(2),16)},fromNat:function(e){return"0x0"===e?"0x":e.length%2==0?e:"0x0"+e.slice(2)},toNat:function(e){return"0"===e[2]?"0x"+e.slice(3):e},fromArray:o,toArray:i,fromUint8Array:function(e){return o([].slice.call(e,0))},toUint8Array:function(e){return new Uint8Array(i(e))}}},function(e,t,r){var n=r(134);e.exports=function(e){return(new n).update(e).digest()}},function(e){e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},function(e,t){var r=Math.pow(2,30)-1;e.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>r||t!=t)throw new TypeError("Bad key length")}},function(e,t,r){(function(t,r){var n;if(t.process&&t.process.browser)n="utf-8";else if(t.process&&t.process.version){n=parseInt(r.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else n="utf-8";e.exports=n}).call(this,r(13),r(11))},function(e,t,r){var n=r(248),a=r(136),i=r(137),o=r(6).Buffer,c=r(250),f=r(251),d=r(253),s=o.alloc(128),u={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function b(e,t,r){var c=function(e){function t(t){return i(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?function(e){return(new a).update(e).digest()}:"md5"===e?n:t}(e),f="sha512"===e||"sha384"===e?128:64;t.length>f?t=c(t):t.length>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var a=0,i=0,o=6;o>=0;o-=2){for(var c=0;c<=24;c+=8)a<<=1,a|=t>>>c+o&1;for(c=0;c<=24;c+=8)a<<=1,a|=e>>>c+o&1}for(o=6;o>=0;o-=2){for(c=1;c<=25;c+=8)i<<=1,i|=t>>>c+o&1;for(c=1;c<=25;c+=8)i<<=1,i|=e>>>c+o&1}r[n+0]=a>>>0,r[n+1]=i>>>0},t.rip=function(e,t,r,n){for(var a=0,i=0,o=0;o<4;o++)for(var c=24;c>=0;c-=8)a<<=1,a|=t>>>c+o&1,a<<=1,a|=e>>>c+o&1;for(o=4;o<8;o++)for(c=24;c>=0;c-=8)i<<=1,i|=t>>>c+o&1,i<<=1,i|=e>>>c+o&1;r[n+0]=a>>>0,r[n+1]=i>>>0},t.pc1=function(e,t,r,n){for(var a=0,i=0,o=7;o>=5;o--){for(var c=0;c<=24;c+=8)a<<=1,a|=t>>c+o&1;for(c=0;c<=24;c+=8)a<<=1,a|=e>>c+o&1}for(c=0;c<=24;c+=8)a<<=1,a|=t>>c+o&1;for(o=1;o<=3;o++){for(c=0;c<=24;c+=8)i<<=1,i|=t>>c+o&1;for(c=0;c<=24;c+=8)i<<=1,i|=e>>c+o&1}for(c=0;c<=24;c+=8)i<<=1,i|=e>>c+o&1;r[n+0]=a>>>0,r[n+1]=i>>>0},t.r28shl=function(e,t){return e<>>28-t};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];t.pc2=function(e,t,r,a){for(var i=0,o=0,c=n.length>>>1,f=0;f>>n[f]&1;for(f=c;f>>n[f]&1;r[a+0]=i>>>0,r[a+1]=o>>>0},t.expand=function(e,t,r){var n=0,a=0;n=(1&e)<<5|e>>>27;for(var i=23;i>=15;i-=4)n<<=6,n|=e>>>i&63;for(i=11;i>=3;i-=4)a|=e>>>i&63,a<<=6;a|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=a>>>0};var a=[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];t.substitute=function(e,t){for(var r=0,n=0;n<4;n++){r<<=4,r|=a[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=a[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var i=[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];t.permute=function(e){for(var t=0,r=0;r>>i[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length>>1];r=i.r28shl(r,c),a=i.r28shl(a,c),i.pc2(r,a,e.keys,o)}},f.prototype._update=function(e,t,r,n){var a=this._desState,o=i.readUInt32BE(e,t),c=i.readUInt32BE(e,t+4);i.ip(o,c,a.tmp,0),o=a.tmp[0],c=a.tmp[1],"encrypt"===this.type?this._encrypt(a,o,c,a.tmp,0):this._decrypt(a,o,c,a.tmp,0),o=a.tmp[0],c=a.tmp[1],i.writeUInt32BE(r,o,n),i.writeUInt32BE(r,c,n+4)},f.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n>>0,o=b}i.rip(c,o,n,a)},f.prototype._decrypt=function(e,t,r,n,a){for(var o=r,c=t,f=e.keys.length-2;f>=0;f-=2){var d=e.keys[f],s=e.keys[f+1];i.expand(o,e.tmp,0),d^=e.tmp[0],s^=e.tmp[1];var u=i.substitute(d,s),b=o;o=(c^i.permute(u))>>>0,c=b}i.rip(o,c,n,a)}},function(e,t,r){var n=r(90),a=r(6).Buffer,i=r(257);function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return i(e._prev),t}t.encrypt=function(e,t){var r=Math.ceil(t.length/16),i=e._cache.length;e._cache=a.concat([e._cache,a.allocUnsafe(16*r)]);for(var c=0;ce;)r.ishrn(1);if(r.isEven()&&r.iadd(c),r.testn(1)||r.iadd(f),t.cmp(f)){if(!t.cmp(d))for(;r.mod(s).cmp(u);)r.iadd(h)}else for(;r.mod(i).cmp(b);)r.iadd(h);if(m(l=r.shrn(1))&&m(r)&&x(l)&&x(r)&&o.test(l)&&o.test(r))return r}}},function(e,t,r){var n=r(9),a=r(127);function i(e){this.rand=e||new a.Rand}e.exports=i,i.create=function(e){return new i(e)},i.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var a=new n(this.rand.generate(r))}while(a.cmp(e)>=0);return a},i.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},i.prototype.test=function(e,t,r){var a=e.bitLength(),i=n.mont(e),o=new n(1).toRed(i);t||(t=Math.max(1,a/48|0));for(var c=e.subn(1),f=0;!c.testn(f);f++);for(var d=e.shrn(f),s=c.toRed(i);t>0;t--){var u=this._randrange(new n(2),c);r&&r(u);var b=u.toRed(i).redPow(d);if(0!==b.cmp(o)&&0!==b.cmp(s)){for(var h=1;h0;t--){var s=this._randrange(new n(2),o),u=e.gcd(s);if(0!==u.cmpn(1))return u;var b=s.toRed(a).redPow(f);if(0!==b.cmp(i)&&0!==b.cmp(d)){for(var h=1;h0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n)o.endEmitted?_(e,new w):E(e,o,t,!0);else if(o.ended)_(e,new v);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?E(e,o,t,!1):j(e,o)):E(e,o,t,!1)}else n||(o.reading=!1,j(e,o));return!o.ended&&(o.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e){var t=e._readableState;d("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(P,e))}function P(e){var t=e._readableState;d("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function j(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(B,e,t))}function B(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function C(e){d("readable nexttick read 0"),e.read(0)}function I(e,t){d("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function U(e){var t=e._readableState;d("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(z,t,e))}function z(e,t){if(d("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function F(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):O(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&U(this),null;var n,a=t.needReadable;return d("need readable",a),(0===t.length||t.length-e0?N(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&U(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(e){_(this,new g("_read()"))},S.prototype.pipe=function(e,t){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,d("pipe count=%d opts=%j",a.pipesCount,t);var o=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?f:m;function c(t,n){d("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),e.removeListener("close",l),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",h),e.removeListener("unpipe",c),r.removeListener("end",f),r.removeListener("end",m),r.removeListener("data",b),u=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||s())}function f(){d("onend"),e.end()}a.endEmitted?n.nextTick(o):r.once("end",o),e.on("unpipe",c);var s=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,L(e))}}(r);e.on("drain",s);var u=!1;function b(t){d("ondata");var n=e.write(t);d("dest.write",n),!1===n&&((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==F(a.pipes,e))&&!u&&(d("false write response, pause",a.awaitDrain),a.awaitDrain++),r.pause())}function h(t){d("onerror",t),m(),e.removeListener("error",h),0===i(e,"error")&&_(e,t)}function l(){e.removeListener("finish",p),m()}function p(){d("onfinish"),e.removeListener("close",l),m()}function m(){d("unpipe"),r.unpipe(e)}return r.on("data",b),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",l),e.once("finish",p),e.emit("pipe",r),a.flowing||(d("pipe resume"),r.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0,!1!==a.flowing&&this.resume()):"readable"===e&&(a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,d("on readable",a.length,a.reading),a.length?O(this):a.reading||n.nextTick(C,this))),r},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var r=o.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(R,this),r},S.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(R,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(I,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var a in e.on("end",(function(){if(d("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(a){(d("wrapped data"),r.decoder&&(a=r.decoder.write(a)),r.objectMode&&null==a)||(r.objectMode||a&&a.length)&&(t.push(a)||(n=!0,e.pause()))})),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var i=0;i-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,r){r(new p("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,r){var a=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),a.corked&&(a.corked=1,this.uncork()),a.ending||function(e,t,r){t.ending=!0,j(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,a,r),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=u.destroy,S.prototype._undestroy=u.undestroy,S.prototype._destroy=function(e,t){t(e)}}).call(this,r(13),r(11))},function(e,t,r){"use strict";e.exports=s;var n=r(69).codes,a=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=n.ERR_TRANSFORM_WITH_LENGTH_0,f=r(70);function d(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void a(!1,"Invalid character in "+e)}function d(e,t,r){var n=f(e,r);return r-1>=t&&(n|=f(e,r-1)<<4),n}function s(e,t,r,n){for(var i=0,o=0,c=Math.min(e.length,r),f=t;f=49?d-49+10:d>=17?d-17+10:d,a(d>=0&&o0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n);if("object"===t(e))return this._initArray(e,r,n);"hex"===r&&(r=16),a(r===(0|r)&&r>=2&&r<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[i]|=o<>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);else if("le"===r)for(n=0,i=0;n>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)a=d(e,t,n)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,a=1;a<=67108863;a*=t)n++;n--,a=a/t|0;for(var i=e.length-r,o=i%n,c=Math.min(i,i-o)+r,f=0,d=r;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=b}catch(e){o.prototype.inspect=b}else o.prototype.inspect=b;function b(){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],p=[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];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,i=0,o=0;o>>24-n&16777215,(n+=2)>=26&&(n-=26,o--),r=0!==i||o!==this.length-1?h[6-f.length]+f+r:f+r}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=l[e],s=p[e];r="";var u=this.clone();for(u.negative=0;!u.isZero();){var b=u.modrn(s).toString(e);r=(u=u.idivn(s)).isZero()?b+r:h[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}a(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},c&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(c,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,c=67108863&o,f=o/67108864|0;r.words[0]=c;for(var d=1;d>>26,u=67108863&f,b=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=b;h++){var l=d-h|0;s+=(o=(a=0|e.words[l])*(i=0|t.words[h])+u)/67108864|0,u=67108863&o}r.words[d]=0|u,f=0|s}return 0!==f?r.words[d]=0|f:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var n=this.byteLength(),i=r||Math.max(1,n);a(n<=i,"byte array longer than desired length"),a(i>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,i);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,n),o},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,a=0,i=0;a>8&255),r>16&255),6===i?(r>24&255),n=0,i=0):(n=o>>>24,i+=2)}if(r=0&&(e[r--]=o>>8&255),r>=0&&(e[r--]=o>>16&255),6===i?(r>=0&&(e[r--]=o>>24&255),n=0,i=0):(n=o>>>24,i+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=r.length,0!==a)this.words[this.length]=a,this.length++;else if(r!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,h=0|o[1],l=8191&h,p=h>>>13,m=0|o[2],x=8191&m,y=m>>>13,v=0|o[3],g=8191&v,w=v>>>13,_=0|o[4],M=8191&_,k=_>>>13,S=0|o[5],A=8191&S,E=S>>>13,T=0|o[6],O=8191&T,P=T>>>13,j=0|o[7],B=8191&j,R=j>>>13,C=0|o[8],I=8191&C,L=C>>>13,N=0|o[9],U=8191&N,z=N>>>13,F=0|c[0],q=8191&F,H=F>>>13,D=0|c[1],K=8191&D,G=D>>>13,W=0|c[2],V=8191&W,Z=W>>>13,J=0|c[3],X=8191&J,Y=J>>>13,$=0|c[4],Q=8191&$,ee=$>>>13,te=0|c[5],re=8191&te,ne=te>>>13,ae=0|c[6],ie=8191&ae,oe=ae>>>13,ce=0|c[7],fe=8191&ce,de=ce>>>13,se=0|c[8],ue=8191&se,be=se>>>13,he=0|c[9],le=8191&he,pe=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(d+(n=Math.imul(u,q))|0)+((8191&(a=(a=Math.imul(u,H))+Math.imul(b,q)|0))<<13)|0;d=((i=Math.imul(b,H))+(a>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(l,q),a=(a=Math.imul(l,H))+Math.imul(p,q)|0,i=Math.imul(p,H);var xe=(d+(n=n+Math.imul(u,K)|0)|0)+((8191&(a=(a=a+Math.imul(u,G)|0)+Math.imul(b,K)|0))<<13)|0;d=((i=i+Math.imul(b,G)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(x,q),a=(a=Math.imul(x,H))+Math.imul(y,q)|0,i=Math.imul(y,H),n=n+Math.imul(l,K)|0,a=(a=a+Math.imul(l,G)|0)+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0;var ye=(d+(n=n+Math.imul(u,V)|0)|0)+((8191&(a=(a=a+Math.imul(u,Z)|0)+Math.imul(b,V)|0))<<13)|0;d=((i=i+Math.imul(b,Z)|0)+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(g,q),a=(a=Math.imul(g,H))+Math.imul(w,q)|0,i=Math.imul(w,H),n=n+Math.imul(x,K)|0,a=(a=a+Math.imul(x,G)|0)+Math.imul(y,K)|0,i=i+Math.imul(y,G)|0,n=n+Math.imul(l,V)|0,a=(a=a+Math.imul(l,Z)|0)+Math.imul(p,V)|0,i=i+Math.imul(p,Z)|0;var ve=(d+(n=n+Math.imul(u,X)|0)|0)+((8191&(a=(a=a+Math.imul(u,Y)|0)+Math.imul(b,X)|0))<<13)|0;d=((i=i+Math.imul(b,Y)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(M,q),a=(a=Math.imul(M,H))+Math.imul(k,q)|0,i=Math.imul(k,H),n=n+Math.imul(g,K)|0,a=(a=a+Math.imul(g,G)|0)+Math.imul(w,K)|0,i=i+Math.imul(w,G)|0,n=n+Math.imul(x,V)|0,a=(a=a+Math.imul(x,Z)|0)+Math.imul(y,V)|0,i=i+Math.imul(y,Z)|0,n=n+Math.imul(l,X)|0,a=(a=a+Math.imul(l,Y)|0)+Math.imul(p,X)|0,i=i+Math.imul(p,Y)|0;var ge=(d+(n=n+Math.imul(u,Q)|0)|0)+((8191&(a=(a=a+Math.imul(u,ee)|0)+Math.imul(b,Q)|0))<<13)|0;d=((i=i+Math.imul(b,ee)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(A,q),a=(a=Math.imul(A,H))+Math.imul(E,q)|0,i=Math.imul(E,H),n=n+Math.imul(M,K)|0,a=(a=a+Math.imul(M,G)|0)+Math.imul(k,K)|0,i=i+Math.imul(k,G)|0,n=n+Math.imul(g,V)|0,a=(a=a+Math.imul(g,Z)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,Z)|0,n=n+Math.imul(x,X)|0,a=(a=a+Math.imul(x,Y)|0)+Math.imul(y,X)|0,i=i+Math.imul(y,Y)|0,n=n+Math.imul(l,Q)|0,a=(a=a+Math.imul(l,ee)|0)+Math.imul(p,Q)|0,i=i+Math.imul(p,ee)|0;var we=(d+(n=n+Math.imul(u,re)|0)|0)+((8191&(a=(a=a+Math.imul(u,ne)|0)+Math.imul(b,re)|0))<<13)|0;d=((i=i+Math.imul(b,ne)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(O,q),a=(a=Math.imul(O,H))+Math.imul(P,q)|0,i=Math.imul(P,H),n=n+Math.imul(A,K)|0,a=(a=a+Math.imul(A,G)|0)+Math.imul(E,K)|0,i=i+Math.imul(E,G)|0,n=n+Math.imul(M,V)|0,a=(a=a+Math.imul(M,Z)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,Z)|0,n=n+Math.imul(g,X)|0,a=(a=a+Math.imul(g,Y)|0)+Math.imul(w,X)|0,i=i+Math.imul(w,Y)|0,n=n+Math.imul(x,Q)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(y,Q)|0,i=i+Math.imul(y,ee)|0,n=n+Math.imul(l,re)|0,a=(a=a+Math.imul(l,ne)|0)+Math.imul(p,re)|0,i=i+Math.imul(p,ne)|0;var _e=(d+(n=n+Math.imul(u,ie)|0)|0)+((8191&(a=(a=a+Math.imul(u,oe)|0)+Math.imul(b,ie)|0))<<13)|0;d=((i=i+Math.imul(b,oe)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(B,q),a=(a=Math.imul(B,H))+Math.imul(R,q)|0,i=Math.imul(R,H),n=n+Math.imul(O,K)|0,a=(a=a+Math.imul(O,G)|0)+Math.imul(P,K)|0,i=i+Math.imul(P,G)|0,n=n+Math.imul(A,V)|0,a=(a=a+Math.imul(A,Z)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,Z)|0,n=n+Math.imul(M,X)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,Y)|0,n=n+Math.imul(g,Q)|0,a=(a=a+Math.imul(g,ee)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,n=n+Math.imul(x,re)|0,a=(a=a+Math.imul(x,ne)|0)+Math.imul(y,re)|0,i=i+Math.imul(y,ne)|0,n=n+Math.imul(l,ie)|0,a=(a=a+Math.imul(l,oe)|0)+Math.imul(p,ie)|0,i=i+Math.imul(p,oe)|0;var Me=(d+(n=n+Math.imul(u,fe)|0)|0)+((8191&(a=(a=a+Math.imul(u,de)|0)+Math.imul(b,fe)|0))<<13)|0;d=((i=i+Math.imul(b,de)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(I,q),a=(a=Math.imul(I,H))+Math.imul(L,q)|0,i=Math.imul(L,H),n=n+Math.imul(B,K)|0,a=(a=a+Math.imul(B,G)|0)+Math.imul(R,K)|0,i=i+Math.imul(R,G)|0,n=n+Math.imul(O,V)|0,a=(a=a+Math.imul(O,Z)|0)+Math.imul(P,V)|0,i=i+Math.imul(P,Z)|0,n=n+Math.imul(A,X)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(E,X)|0,i=i+Math.imul(E,Y)|0,n=n+Math.imul(M,Q)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,ee)|0,n=n+Math.imul(g,re)|0,a=(a=a+Math.imul(g,ne)|0)+Math.imul(w,re)|0,i=i+Math.imul(w,ne)|0,n=n+Math.imul(x,ie)|0,a=(a=a+Math.imul(x,oe)|0)+Math.imul(y,ie)|0,i=i+Math.imul(y,oe)|0,n=n+Math.imul(l,fe)|0,a=(a=a+Math.imul(l,de)|0)+Math.imul(p,fe)|0,i=i+Math.imul(p,de)|0;var ke=(d+(n=n+Math.imul(u,ue)|0)|0)+((8191&(a=(a=a+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((i=i+Math.imul(b,be)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,q),a=(a=Math.imul(U,H))+Math.imul(z,q)|0,i=Math.imul(z,H),n=n+Math.imul(I,K)|0,a=(a=a+Math.imul(I,G)|0)+Math.imul(L,K)|0,i=i+Math.imul(L,G)|0,n=n+Math.imul(B,V)|0,a=(a=a+Math.imul(B,Z)|0)+Math.imul(R,V)|0,i=i+Math.imul(R,Z)|0,n=n+Math.imul(O,X)|0,a=(a=a+Math.imul(O,Y)|0)+Math.imul(P,X)|0,i=i+Math.imul(P,Y)|0,n=n+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,ee)|0,n=n+Math.imul(M,re)|0,a=(a=a+Math.imul(M,ne)|0)+Math.imul(k,re)|0,i=i+Math.imul(k,ne)|0,n=n+Math.imul(g,ie)|0,a=(a=a+Math.imul(g,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,n=n+Math.imul(x,fe)|0,a=(a=a+Math.imul(x,de)|0)+Math.imul(y,fe)|0,i=i+Math.imul(y,de)|0,n=n+Math.imul(l,ue)|0,a=(a=a+Math.imul(l,be)|0)+Math.imul(p,ue)|0,i=i+Math.imul(p,be)|0;var Se=(d+(n=n+Math.imul(u,le)|0)|0)+((8191&(a=(a=a+Math.imul(u,pe)|0)+Math.imul(b,le)|0))<<13)|0;d=((i=i+Math.imul(b,pe)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(U,K),a=(a=Math.imul(U,G))+Math.imul(z,K)|0,i=Math.imul(z,G),n=n+Math.imul(I,V)|0,a=(a=a+Math.imul(I,Z)|0)+Math.imul(L,V)|0,i=i+Math.imul(L,Z)|0,n=n+Math.imul(B,X)|0,a=(a=a+Math.imul(B,Y)|0)+Math.imul(R,X)|0,i=i+Math.imul(R,Y)|0,n=n+Math.imul(O,Q)|0,a=(a=a+Math.imul(O,ee)|0)+Math.imul(P,Q)|0,i=i+Math.imul(P,ee)|0,n=n+Math.imul(A,re)|0,a=(a=a+Math.imul(A,ne)|0)+Math.imul(E,re)|0,i=i+Math.imul(E,ne)|0,n=n+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,n=n+Math.imul(g,fe)|0,a=(a=a+Math.imul(g,de)|0)+Math.imul(w,fe)|0,i=i+Math.imul(w,de)|0,n=n+Math.imul(x,ue)|0,a=(a=a+Math.imul(x,be)|0)+Math.imul(y,ue)|0,i=i+Math.imul(y,be)|0;var Ae=(d+(n=n+Math.imul(l,le)|0)|0)+((8191&(a=(a=a+Math.imul(l,pe)|0)+Math.imul(p,le)|0))<<13)|0;d=((i=i+Math.imul(p,pe)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,V),a=(a=Math.imul(U,Z))+Math.imul(z,V)|0,i=Math.imul(z,Z),n=n+Math.imul(I,X)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(L,X)|0,i=i+Math.imul(L,Y)|0,n=n+Math.imul(B,Q)|0,a=(a=a+Math.imul(B,ee)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,ee)|0,n=n+Math.imul(O,re)|0,a=(a=a+Math.imul(O,ne)|0)+Math.imul(P,re)|0,i=i+Math.imul(P,ne)|0,n=n+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,n=n+Math.imul(M,fe)|0,a=(a=a+Math.imul(M,de)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,de)|0,n=n+Math.imul(g,ue)|0,a=(a=a+Math.imul(g,be)|0)+Math.imul(w,ue)|0,i=i+Math.imul(w,be)|0;var Ee=(d+(n=n+Math.imul(x,le)|0)|0)+((8191&(a=(a=a+Math.imul(x,pe)|0)+Math.imul(y,le)|0))<<13)|0;d=((i=i+Math.imul(y,pe)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,X),a=(a=Math.imul(U,Y))+Math.imul(z,X)|0,i=Math.imul(z,Y),n=n+Math.imul(I,Q)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(L,Q)|0,i=i+Math.imul(L,ee)|0,n=n+Math.imul(B,re)|0,a=(a=a+Math.imul(B,ne)|0)+Math.imul(R,re)|0,i=i+Math.imul(R,ne)|0,n=n+Math.imul(O,ie)|0,a=(a=a+Math.imul(O,oe)|0)+Math.imul(P,ie)|0,i=i+Math.imul(P,oe)|0,n=n+Math.imul(A,fe)|0,a=(a=a+Math.imul(A,de)|0)+Math.imul(E,fe)|0,i=i+Math.imul(E,de)|0,n=n+Math.imul(M,ue)|0,a=(a=a+Math.imul(M,be)|0)+Math.imul(k,ue)|0,i=i+Math.imul(k,be)|0;var Te=(d+(n=n+Math.imul(g,le)|0)|0)+((8191&(a=(a=a+Math.imul(g,pe)|0)+Math.imul(w,le)|0))<<13)|0;d=((i=i+Math.imul(w,pe)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,Q),a=(a=Math.imul(U,ee))+Math.imul(z,Q)|0,i=Math.imul(z,ee),n=n+Math.imul(I,re)|0,a=(a=a+Math.imul(I,ne)|0)+Math.imul(L,re)|0,i=i+Math.imul(L,ne)|0,n=n+Math.imul(B,ie)|0,a=(a=a+Math.imul(B,oe)|0)+Math.imul(R,ie)|0,i=i+Math.imul(R,oe)|0,n=n+Math.imul(O,fe)|0,a=(a=a+Math.imul(O,de)|0)+Math.imul(P,fe)|0,i=i+Math.imul(P,de)|0,n=n+Math.imul(A,ue)|0,a=(a=a+Math.imul(A,be)|0)+Math.imul(E,ue)|0,i=i+Math.imul(E,be)|0;var Oe=(d+(n=n+Math.imul(M,le)|0)|0)+((8191&(a=(a=a+Math.imul(M,pe)|0)+Math.imul(k,le)|0))<<13)|0;d=((i=i+Math.imul(k,pe)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,re),a=(a=Math.imul(U,ne))+Math.imul(z,re)|0,i=Math.imul(z,ne),n=n+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(L,ie)|0,i=i+Math.imul(L,oe)|0,n=n+Math.imul(B,fe)|0,a=(a=a+Math.imul(B,de)|0)+Math.imul(R,fe)|0,i=i+Math.imul(R,de)|0,n=n+Math.imul(O,ue)|0,a=(a=a+Math.imul(O,be)|0)+Math.imul(P,ue)|0,i=i+Math.imul(P,be)|0;var Pe=(d+(n=n+Math.imul(A,le)|0)|0)+((8191&(a=(a=a+Math.imul(A,pe)|0)+Math.imul(E,le)|0))<<13)|0;d=((i=i+Math.imul(E,pe)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(z,ie)|0,i=Math.imul(z,oe),n=n+Math.imul(I,fe)|0,a=(a=a+Math.imul(I,de)|0)+Math.imul(L,fe)|0,i=i+Math.imul(L,de)|0,n=n+Math.imul(B,ue)|0,a=(a=a+Math.imul(B,be)|0)+Math.imul(R,ue)|0,i=i+Math.imul(R,be)|0;var je=(d+(n=n+Math.imul(O,le)|0)|0)+((8191&(a=(a=a+Math.imul(O,pe)|0)+Math.imul(P,le)|0))<<13)|0;d=((i=i+Math.imul(P,pe)|0)+(a>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(U,fe),a=(a=Math.imul(U,de))+Math.imul(z,fe)|0,i=Math.imul(z,de),n=n+Math.imul(I,ue)|0,a=(a=a+Math.imul(I,be)|0)+Math.imul(L,ue)|0,i=i+Math.imul(L,be)|0;var Be=(d+(n=n+Math.imul(B,le)|0)|0)+((8191&(a=(a=a+Math.imul(B,pe)|0)+Math.imul(R,le)|0))<<13)|0;d=((i=i+Math.imul(R,pe)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,ue),a=(a=Math.imul(U,be))+Math.imul(z,ue)|0,i=Math.imul(z,be);var Re=(d+(n=n+Math.imul(I,le)|0)|0)+((8191&(a=(a=a+Math.imul(I,pe)|0)+Math.imul(L,le)|0))<<13)|0;d=((i=i+Math.imul(L,pe)|0)+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Ce=(d+(n=Math.imul(U,le))|0)+((8191&(a=(a=Math.imul(U,pe))+Math.imul(z,le)|0))<<13)|0;return d=((i=Math.imul(z,pe))+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=xe,f[2]=ye,f[3]=ve,f[4]=ge,f[5]=we,f[6]=_e,f[7]=Me,f[8]=ke,f[9]=Se,f[10]=Ae,f[11]=Ee,f[12]=Te,f[13]=Oe,f[14]=Pe,f[15]=je,f[16]=Be,f[17]=Re,f[18]=Ce,0!==d&&(f[19]=d,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}r.words[i]=c,n=o,o=a}return 0!==n?r.words[i]=n:r.length--,r._strip()}function v(e,t,r){return y(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(x=m),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?x(this,e,t):r<63?m(this,e,t):r<1024?y(this,e,t):v(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},g.prototype.permute=function(e,t,r,n,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,r[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,r+=i/67108864|0,r+=o>>>26,this.words[n]=67108863&o}return 0!==r&&(this.words[n]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>a&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,n=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),c=67108863^67108863>>>i<o)for(this.length-=o,d=0;d=0&&(0!==s||d>=n);d--){var u=0|this.words[d];this.words[d]=s<<26-i|u>>>i,s=u&c}return f&&0!==s&&(f.words[f.length++]=s),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return a(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(a("number"==typeof e),a(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(f/67108864|0),this.words[n+r]=67108863&i}for(;n>26,this.words[n+r]=67108863&i;if(0===c)return this._strip();for(a(-1===c),c=0,n=0;n>26,this.words[n]=67108863&i;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),a=e,i=0|a.words[a.length-1];0!==(r=26-this._countBits(i))&&(a=a.ushln(r),n.iushln(r),i=0|a.words[a.length-1]);var c,f=n.length-a.length;if("mod"!==t){(c=new o(null)).length=f+1,c.words=new Array(c.length);for(var d=0;d=0;u--){var b=67108864*(0|n.words[a.length+u])+(0|n.words[a.length+u-1]);for(b=Math.min(b/i|0,67108863),n._ishlnsubmul(a,b,u);0!==n.negative;)b--,n.negative=0,n._ishlnsubmul(a,1,u),n.isZero()||(n.negative^=1);c&&(c.words[u]=b)}return c&&c._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:c||null,mod:n}},o.prototype.divmod=function(e,t,r){return a(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(c=this.neg().divmod(e,t),"mod"!==t&&(n=c.div.neg()),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(c=this.divmod(e.neg(),t),"mod"!==t&&(n=c.div.neg()),{div:n,mod:c.mod}):0!=(this.negative&e.negative)?(c=this.neg().divmod(e.neg(),t),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.isub(e)),{div:c.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,i,c},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),i=r.cmp(n);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),a(e<=67108863);for(var r=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(r*n+(0|this.words[i]))%e;return t?-n:n},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),a(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*r;this.words[n]=i/e|0,r=i%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),i=new o(0),c=new o(0),f=new o(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var s=r.clone(),u=t.clone();!t.isZero();){for(var b=0,h=1;0==(t.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(s),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var l=0,p=1;0==(r.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(r.iushrn(l);l-- >0;)(c.isOdd()||f.isOdd())&&(c.iadd(s),f.isub(u)),c.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(c),i.isub(f)):(r.isub(t),c.isub(n),f.isub(i))}return{a:c,b:f,gcd:r.iushln(d)}},o.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new o(1),c=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var d=0,s=1;0==(t.words[0]&s)&&d<26;++d,s<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(f),i.iushrn(1);for(var u=0,b=1;0==(r.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(r.iushrn(u);u-- >0;)c.isOdd()&&c.iadd(f),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(c)):(r.isub(t),c.isub(i))}return(n=0===t.cmpn(1)?i:c).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var a=t.cmp(r);if(a<0){var i=t;t=r,r=i}else if(0===a||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,c&=67108863,this.words[o]=c}return 0!==i&&(this.words[o]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var n=0|this.words[r],a=0|e.words[r];if(n!==a){na&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new E(e)},o.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}_.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},i(M,_),M.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,a=i}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},M.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new M;else if("p224"===e)t=new k;else if("p192"===e)t=new S;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return w[e]=t,t},E.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);a(!n.isZero());var c=new o(1).toRed(this),f=c.redNeg(),d=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new o(2*s*s).toRed(this);0!==this.pow(s,d).cmp(f);)s.redIAdd(f);for(var u=this.pow(s,n),b=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),l=i;0!==h.cmp(c);){for(var p=h,m=0;0!==p.cmp(c);m++)p=p.redSqr();a(m=0;n--){for(var d=t.words[n],s=f-1;s>=0;s--){var u=d>>s&1;a!==r[0]&&(a=this.sqr(a)),0!==u||0!==i?(i<<=1,i|=u,(4===++c||0===n&&0===s)&&(a=this.mul(a,r[i]),c=0,i=0)):c=0}f=26}return a},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new T(e)},i(T,E),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(15)(e))},function(e,t,r){"use strict";var n=t;n.bignum=r(9),n.define=r(583).define,n.base=r(586),n.constants=r(587),n.decoders=r(273),n.encoders=r(271)},function(e,t,r){"use strict";var n=t;n.der=r(272),n.pem=r(584)},function(e,t,r){"use strict";var n=r(4),a=r(157).Buffer,i=r(158),o=r(160);function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new f,this.tree._init(e.body)}function f(e){i.call(this,"der",e)}function d(e){return e<10?"0"+e:e}e.exports=c,c.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(f,i),f.prototype._encodeComposite=function(e,t,r,n){var i=function(e,t,r,n){var a;"seqof"===e?e="seq":"setof"===e&&(e="set");if(o.tagByName.hasOwnProperty(e))a=o.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);a=e}if(a>=31)return n.error("Multi-octet tag encoding unsupported");t||(a|=32);return a|=o.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(n.length<128){var c=a.alloc(2);return c[0]=i,c[1]=n.length,this._createEncoderBuffer([c,n])}for(var f=1,d=n.length;d>=256;d>>=8)f++;var s=a.alloc(2+f);s[0]=i,s[1]=128|f;for(var u=1+f,b=n.length;b>0;u--,b>>=8)s[u]=255&b;return this._createEncoderBuffer([s,n])},f.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=a.alloc(2*e.length),n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var o=0,c=0;c=128;f>>=7)o++}for(var d=a.alloc(o),s=d.length-1,u=e.length-1;u>=0;u--){var b=e[u];for(d[s--]=127&b;(b>>=7)>0;)d[s--]=128|127&b}return this._createEncoderBuffer(d)},f.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[d(n.getUTCFullYear()),d(n.getUTCMonth()+1),d(n.getUTCDate()),d(n.getUTCHours()),d(n.getUTCMinutes()),d(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[d(n.getUTCFullYear()%100),d(n.getUTCMonth()+1),d(n.getUTCDate()),d(n.getUTCHours()),d(n.getUTCMinutes()),d(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},f.prototype._encodeNull=function(){return this._createEncoderBuffer("")},f.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!a.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=a.from(r)}if(a.isBuffer(e)){var n=e.length;0===e.length&&n++;var i=a.alloc(n);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var o=1,c=e;c>=256;c>>=8)o++;for(var f=new Array(o),d=f.length-1;d>=0;d--)f[d]=255&e,e>>=8;return 128&f[0]&&f.unshift(0),this._createEncoderBuffer(a.from(f))},f.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},f.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},f.prototype._skipDefault=function(e,t,r){var n,a=this._baseState;if(null===a.default)return!1;var i=e.join();if(void 0===a.defaultBuffer&&(a.defaultBuffer=this._encodeValue(a.default,t,r).join()),i.length!==a.defaultBuffer.length)return!1;for(n=0;n>6],a=0==(32&r);if(31==(31&r)){var i=r;for(r=0;128==(128&i);){if(i=e.readUInt8(t),e.isError(i))return i;r<<=7,r|=127&i}}else r&=31;return{cls:n,primitive:a,tag:r,tagStr:c.tag[r]}}function u(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var a=127&n;if(a>4)return e.error("length octect is too long");n=0;for(var i=0;i>>((3&t)<<3)&255;return a}}},function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,a=r;return[a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]]].join("")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=t.MAX_UINT64=void 0;var n=r(0),a=r(41);t.MAX_UINT64=new a.BN("ffffffffffffffff",16),t.MAX_INTEGER=new a.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new a.BN("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=n.Buffer.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=n.Buffer.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=n.Buffer.from(t.KECCAK256_RLP_S,"hex")},function(e,t,r){"use strict";(function(e){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;var i=a(r(14)),o=r(41),c=r(22),f=r(71),d=r(281),s=r(55),u=r(163),b=r(115),h=r(164),l=function(){function e(e,t,r,n){void 0===e&&(e=new o.BN(0)),void 0===t&&(t=new o.BN(0)),void 0===r&&(r=d.KECCAK256_RLP),void 0===n&&(n=d.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=r,this.codeHash=n,this._validate()}return e.fromAccountData=function(t){var r=t.nonce,n=t.balance,a=t.stateRoot,i=t.codeHash;return new e(r?new o.BN((0,s.toBuffer)(r)):void 0,n?new o.BN((0,s.toBuffer)(n)):void 0,a?(0,s.toBuffer)(a):void 0,i?(0,s.toBuffer)(i):void 0)},e.fromRlpSerializedAccount=function(e){var t=o.rlp.decode(e);if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},e.fromValuesArray=function(t){var r=n(t,4),a=r[0],i=r[1],c=r[2],f=r[3];return new e(new o.BN(a),new o.BN(i),c,f)},e.prototype._validate=function(){if(this.nonce.lt(new o.BN(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new o.BN(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")},e.prototype.raw=function(){return[(0,h.bnToUnpaddedBuffer)(this.nonce),(0,h.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return o.rlp.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(d.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(d.KECCAK256_NULL)},e}();t.Account=l;t.isValidAddress=function(e){try{(0,b.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)};t.toChecksumAddress=function(e,t){(0,b.assertIsHexString)(e);var r=(0,f.stripHexPrefix)(e).toLowerCase(),n="";t&&(n=(0,h.toType)(t,h.TypeOutput.BN).toString()+"0x");for(var a=(0,u.keccakFromString)(n+r).toString("hex"),i="0x",o=0;o=8?i+=r[o].toUpperCase():i+=r[o];return i};t.isValidChecksumAddress=function(e,r){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,r)===e};t.generateAddress=function(t,r){(0,b.assertIsBuffer)(t),(0,b.assertIsBuffer)(r);var n=new o.BN(r);return n.isZero()?(0,u.rlphash)([t,null]).slice(-20):(0,u.rlphash)([t,e.from(n.toArray())]).slice(-20)};t.generateAddress2=function(t,r,n){return(0,b.assertIsBuffer)(t),(0,b.assertIsBuffer)(r),(0,b.assertIsBuffer)(n),(0,i.default)(20===t.length),(0,i.default)(32===r.length),(0,u.keccak256)(e.concat([e.from("ff","hex"),t,r,(0,u.keccak256)(n)])).slice(-20)};t.isValidPrivate=function(e){return(0,c.privateKeyVerify)(e)};t.isValidPublic=function(t,r){return void 0===r&&(r=!1),(0,b.assertIsBuffer)(t),64===t.length?(0,c.publicKeyVerify)(e.concat([e.from([4]),t])):!!r&&(0,c.publicKeyVerify)(t)};t.pubToAddress=function(t,r){return void 0===r&&(r=!1),(0,b.assertIsBuffer)(t),r&&64!==t.length&&(t=e.from((0,c.publicKeyConvert)(t,!1).slice(1))),(0,i.default)(64===t.length),(0,u.keccak)(t).slice(-20)},t.publicToAddress=t.pubToAddress;t.privateToPublic=function(t){return(0,b.assertIsBuffer)(t),e.from((0,c.publicKeyCreate)(t,!1)).slice(1)};t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))};t.importPublic=function(t){return(0,b.assertIsBuffer)(t),64!==t.length&&(t=e.from((0,c.publicKeyConvert)(t,!1).slice(1))),t};t.zeroAddress=function(){var e=(0,s.zeros)(20);return(0,s.bufferToHex)(e)};t.isZeroAddress=function(e){try{(0,b.assertIsString)(e)}catch(e){return!1}return(0,t.zeroAddress)()===e}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=t.MAX_UINT64=void 0;var n=r(0),a=r(42);t.MAX_UINT64=new a.BN("ffffffffffffffff",16),t.MAX_INTEGER=new a.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new a.BN("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=n.Buffer.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=n.Buffer.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=n.Buffer.from(t.KECCAK256_RLP_S,"hex")},function(e,t,r){"use strict";(function(e){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;var i=a(r(14)),o=r(42),c=r(22),f=r(73),d=r(283),s=r(56),u=r(167),b=r(116),h=r(168),l=function(){function e(e,t,r,n){void 0===e&&(e=new o.BN(0)),void 0===t&&(t=new o.BN(0)),void 0===r&&(r=d.KECCAK256_RLP),void 0===n&&(n=d.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=r,this.codeHash=n,this._validate()}return e.fromAccountData=function(t){var r=t.nonce,n=t.balance,a=t.stateRoot,i=t.codeHash;return new e(r?new o.BN((0,s.toBuffer)(r)):void 0,n?new o.BN((0,s.toBuffer)(n)):void 0,a?(0,s.toBuffer)(a):void 0,i?(0,s.toBuffer)(i):void 0)},e.fromRlpSerializedAccount=function(e){var t=o.rlp.decode(e);if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},e.fromValuesArray=function(t){var r=n(t,4),a=r[0],i=r[1],c=r[2],f=r[3];return new e(new o.BN(a),new o.BN(i),c,f)},e.prototype._validate=function(){if(this.nonce.lt(new o.BN(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new o.BN(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")},e.prototype.raw=function(){return[(0,h.bnToUnpaddedBuffer)(this.nonce),(0,h.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return o.rlp.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(d.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(d.KECCAK256_NULL)},e}();t.Account=l;t.isValidAddress=function(e){try{(0,b.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)};t.toChecksumAddress=function(e,t){(0,b.assertIsHexString)(e);var r=(0,f.stripHexPrefix)(e).toLowerCase(),n="";t&&(n=(0,h.toType)(t,h.TypeOutput.BN).toString()+"0x");for(var a=(0,u.keccakFromString)(n+r).toString("hex"),i="0x",o=0;o=8?i+=r[o].toUpperCase():i+=r[o];return i};t.isValidChecksumAddress=function(e,r){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,r)===e};t.generateAddress=function(t,r){(0,b.assertIsBuffer)(t),(0,b.assertIsBuffer)(r);var n=new o.BN(r);return n.isZero()?(0,u.rlphash)([t,null]).slice(-20):(0,u.rlphash)([t,e.from(n.toArray())]).slice(-20)};t.generateAddress2=function(t,r,n){return(0,b.assertIsBuffer)(t),(0,b.assertIsBuffer)(r),(0,b.assertIsBuffer)(n),(0,i.default)(20===t.length),(0,i.default)(32===r.length),(0,u.keccak256)(e.concat([e.from("ff","hex"),t,r,(0,u.keccak256)(n)])).slice(-20)};t.isValidPrivate=function(e){return(0,c.privateKeyVerify)(e)};t.isValidPublic=function(t,r){return void 0===r&&(r=!1),(0,b.assertIsBuffer)(t),64===t.length?(0,c.publicKeyVerify)(e.concat([e.from([4]),t])):!!r&&(0,c.publicKeyVerify)(t)};t.pubToAddress=function(t,r){return void 0===r&&(r=!1),(0,b.assertIsBuffer)(t),r&&64!==t.length&&(t=e.from((0,c.publicKeyConvert)(t,!1).slice(1))),(0,i.default)(64===t.length),(0,u.keccak)(t).slice(-20)},t.publicToAddress=t.pubToAddress;t.privateToPublic=function(t){return(0,b.assertIsBuffer)(t),e.from((0,c.publicKeyCreate)(t,!1)).slice(1)};t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))};t.importPublic=function(t){return(0,b.assertIsBuffer)(t),64!==t.length&&(t=e.from((0,c.publicKeyConvert)(t,!1).slice(1))),t};t.zeroAddress=function(){var e=(0,s.zeros)(20);return(0,s.bufferToHex)(e)};t.isZeroAddress=function(e){try{(0,b.assertIsString)(e)}catch(e){return!1}return(0,t.zeroAddress)()===e}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=t.MAX_UINT64=void 0;var n=r(0),a=r(43);t.MAX_UINT64=new a.BN("ffffffffffffffff",16),t.MAX_INTEGER=new a.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new a.BN("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=n.Buffer.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=n.Buffer.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=n.Buffer.from(t.KECCAK256_RLP_S,"hex")},function(e,t,r){"use strict";(function(e){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;var i=a(r(14)),o=r(43),c=r(22),f=r(74),d=r(285),s=r(57),u=r(170),b=r(117),h=r(171),l=function(){function e(e,t,r,n){void 0===e&&(e=new o.BN(0)),void 0===t&&(t=new o.BN(0)),void 0===r&&(r=d.KECCAK256_RLP),void 0===n&&(n=d.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=r,this.codeHash=n,this._validate()}return e.fromAccountData=function(t){var r=t.nonce,n=t.balance,a=t.stateRoot,i=t.codeHash;return new e(r?new o.BN((0,s.toBuffer)(r)):void 0,n?new o.BN((0,s.toBuffer)(n)):void 0,a?(0,s.toBuffer)(a):void 0,i?(0,s.toBuffer)(i):void 0)},e.fromRlpSerializedAccount=function(e){var t=o.rlp.decode(e);if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},e.fromValuesArray=function(t){var r=n(t,4),a=r[0],i=r[1],c=r[2],f=r[3];return new e(new o.BN(a),new o.BN(i),c,f)},e.prototype._validate=function(){if(this.nonce.lt(new o.BN(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new o.BN(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")},e.prototype.raw=function(){return[(0,h.bnToUnpaddedBuffer)(this.nonce),(0,h.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return o.rlp.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(d.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(d.KECCAK256_NULL)},e}();t.Account=l;t.isValidAddress=function(e){try{(0,b.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)};t.toChecksumAddress=function(e,t){(0,b.assertIsHexString)(e);var r=(0,f.stripHexPrefix)(e).toLowerCase(),n="";t&&(n=(0,h.toType)(t,h.TypeOutput.BN).toString()+"0x");for(var a=(0,u.keccakFromString)(n+r).toString("hex"),i="0x",o=0;o=8?i+=r[o].toUpperCase():i+=r[o];return i};t.isValidChecksumAddress=function(e,r){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,r)===e};t.generateAddress=function(t,r){(0,b.assertIsBuffer)(t),(0,b.assertIsBuffer)(r);var n=new o.BN(r);return n.isZero()?(0,u.rlphash)([t,null]).slice(-20):(0,u.rlphash)([t,e.from(n.toArray())]).slice(-20)};t.generateAddress2=function(t,r,n){return(0,b.assertIsBuffer)(t),(0,b.assertIsBuffer)(r),(0,b.assertIsBuffer)(n),(0,i.default)(20===t.length),(0,i.default)(32===r.length),(0,u.keccak256)(e.concat([e.from("ff","hex"),t,r,(0,u.keccak256)(n)])).slice(-20)};t.isValidPrivate=function(e){return(0,c.privateKeyVerify)(e)};t.isValidPublic=function(t,r){return void 0===r&&(r=!1),(0,b.assertIsBuffer)(t),64===t.length?(0,c.publicKeyVerify)(e.concat([e.from([4]),t])):!!r&&(0,c.publicKeyVerify)(t)};t.pubToAddress=function(t,r){return void 0===r&&(r=!1),(0,b.assertIsBuffer)(t),r&&64!==t.length&&(t=e.from((0,c.publicKeyConvert)(t,!1).slice(1))),(0,i.default)(64===t.length),(0,u.keccak)(t).slice(-20)},t.publicToAddress=t.pubToAddress;t.privateToPublic=function(t){return(0,b.assertIsBuffer)(t),e.from((0,c.publicKeyCreate)(t,!1)).slice(1)};t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))};t.importPublic=function(t){return(0,b.assertIsBuffer)(t),64!==t.length&&(t=e.from((0,c.publicKeyConvert)(t,!1).slice(1))),t};t.zeroAddress=function(){var e=(0,s.zeros)(20);return(0,s.bufferToHex)(e)};t.isZeroAddress=function(e){try{(0,b.assertIsString)(e)}catch(e){return!1}return(0,t.zeroAddress)()===e}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=new RegExp("%[a-f0-9]{2}","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function o(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],o(r),o(n))}function c(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(a),r=1;r>6|192);else{if(a>55295&&a<56320){if(++n==e.length)return null;var i=e.charCodeAt(n);if(i<56320||i>57343)return null;r+=t((a=65536+((1023&a)<<10)+(1023&i))>>18|240),r+=t(a>>12&63|128)}else r+=t(a>>12|224);r+=t(a>>6&63|128)}r+=t(63&a|128)}}return r},toString:function(e){for(var t="",r=0,i=a(e);r127){if(o>191&&o<224){if(r>=i)return null;o=(31&o)<<6|63&n(e,r)}else if(o>223&&o<240){if(r+1>=i)return null;o=(15&o)<<12|(63&n(e,r))<<6|63&n(e,++r)}else{if(!(o>239&&o<248))return null;if(r+2>=i)return null;o=(7&o)<<18|(63&n(e,r))<<12|(63&n(e,++r))<<6|63&n(e,++r)}++r}if(o<=65535)t+=String.fromCharCode(o);else{if(!(o<=1114111))return null;o-=65536,t+=String.fromCharCode(o>>10|55296),t+=String.fromCharCode(1023&o|56320)}}return t},fromNumber:function(e){var t=e.toString(16);return t.length%2==0?"0x"+t:"0x0"+t},toNumber:function(e){return parseInt(e.slice(2),16)},fromNat:function(e){return"0x0"===e?"0x":e.length%2==0?e:"0x0"+e.slice(2)},toNat:function(e){return"0"===e[2]?"0x"+e.slice(3):e},fromArray:o,toArray:i,fromUint8Array:function(e){return o([].slice.call(e,0))},toUint8Array:function(e){return new Uint8Array(i(e))}}},function(e,t,r){"use strict";var n,a=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WalletConnect=void 0;var o=i(r(871)),c=r(713),f=function(e){function t(t,r){return e.call(this,{cryptoLib:c,connectorOpts:t,pushServerOpts:r})||this}return a(t,e),t.getInstance=function(e,r){return this._instance||(this._instance=new t(e,r)),this._instance},t}(o.default);t.WalletConnect=f},function(e,t,r){"use strict";var n=r(97);r.o(n,"payloadId")&&r.d(t,"payloadId",(function(){return n.payloadId}));n.isNode},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r(61),r(17);function n(){return Date.now()*Math.pow(10,3)+Math.floor(Math.random()*Math.pow(10,3))}},function(e,t,r){"use strict"},function(e,t,r){"use strict";r(294)},function(e,t,r){"use strict";r(295),r(99),r(296),r(297)},function(e,t){},function(e,t,r){"use strict";var n=r(99);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r. See LICENSE.txt. */ -!function(t){"use strict";function r(e){return parseInt(e)===e}function n(e){if(!r(e.length))return!1;for(var t=0;t255)return!1;return!0}function a(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!n(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(r(e.length)&&n(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function i(e){return new Uint8Array(e)}function o(e,t,r,n,a){null==n&&null==a||(e=e.slice?e.slice(n,a):Array.prototype.slice.call(e,n,a)),t.set(e,r)}var c,f={toBytes:function(e){var t=[],r=0;for(e=encodeURI(e);r191&&n<224?(t.push(String.fromCharCode((31&n)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&n)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}},d=(c="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r>4]+c[15&n])}return t.join("")}}),s={16:10,24:12,32:14},u=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],b=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],h=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],l=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],p=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],m=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],x=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],y=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],v=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],g=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],_=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],M=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],k=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],S=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function A(e){for(var t=[],r=0;r>2,this._Ke[r][t%4]=i[t],this._Kd[e-r][t%4]=i[t];for(var o,c=0,f=a;f>16&255]<<24^b[o>>8&255]<<16^b[255&o]<<8^b[o>>24&255]^u[c]<<24,c+=1,8!=a)for(t=1;t>8&255]<<8^b[o>>16&255]<<16^b[o>>24&255]<<24;for(t=a/2+1;t>2,h=f%4,this._Ke[d][h]=i[t],this._Kd[e-d][h]=i[t++],f++}for(var d=1;d>24&255]^M[o>>16&255]^k[o>>8&255]^S[255&o]},E.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],n=A(e),a=0;a<4;a++)n[a]^=this._Ke[0][a];for(var o=1;o>24&255]^p[n[(a+1)%4]>>16&255]^m[n[(a+2)%4]>>8&255]^x[255&n[(a+3)%4]]^this._Ke[o][a];n=r.slice()}var c,f=i(16);for(a=0;a<4;a++)c=this._Ke[t][a],f[4*a]=255&(b[n[a]>>24&255]^c>>24),f[4*a+1]=255&(b[n[(a+1)%4]>>16&255]^c>>16),f[4*a+2]=255&(b[n[(a+2)%4]>>8&255]^c>>8),f[4*a+3]=255&(b[255&n[(a+3)%4]]^c);return f},E.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,r=[0,0,0,0],n=A(e),a=0;a<4;a++)n[a]^=this._Kd[0][a];for(var o=1;o>24&255]^v[n[(a+3)%4]>>16&255]^g[n[(a+2)%4]>>8&255]^w[255&n[(a+1)%4]]^this._Kd[o][a];n=r.slice()}var c,f=i(16);for(a=0;a<4;a++)c=this._Kd[t][a],f[4*a]=255&(h[n[a]>>24&255]^c>>24),f[4*a+1]=255&(h[n[(a+3)%4]>>16&255]^c>>16),f[4*a+2]=255&(h[n[(a+2)%4]>>8&255]^c>>8),f[4*a+3]=255&(h[255&n[(a+1)%4]]^c);return f};var T=function e(t){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new E(t)};T.prototype.encrypt=function(e){if((e=a(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=i(e.length),r=i(16),n=0;nNumber.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var t=15;t>=0;--t)this._counter[t]=e%256,e=parseInt(e/256)},B.prototype.setBytes=function(e){if(16!=(e=a(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},B.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var R=function e(t,r){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",r instanceof B||(r=new B(r)),this._counter=r,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new E(t)};R.prototype.encrypt=function(e){for(var t=a(e,!0),r=0;r16)throw new Error("PKCS#7 padding byte out of range");for(var r=e.length-t,n=0;n-1&&e%1==0&&e<=9007199254740991}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,r,f){if(f=(0,a.default)(f||n.default),e<=0||!t)return f(null);var d=(0,i.default)(t),s=!1,u=0,b=!1;function h(e,t){if(u-=1,e)s=!0,f(e);else{if(t===c.default||s&&u<=0)return s=!0,f(null);b||l()}}function l(){for(b=!0;u=e.params.length?e.params:"eth_getBlockByNumber"===e.method?e.params.slice(1):e.params.slice(0,t)}function o(e){switch(e.method){case"eth_getStorageAt":return 2;case"eth_getBalance":case"eth_getCode":case"eth_getTransactionCount":case"eth_call":case"eth_estimateGas":return 1;case"eth_getBlockByNumber":return 0;default:return}}function c(e){switch(e.method){case"web3_clientVersion":case"web3_sha3":case"eth_protocolVersion":case"eth_getBlockTransactionCountByHash":case"eth_getUncleCountByBlockHash":case"eth_getCode":case"eth_getBlockByHash":case"eth_getTransactionByHash":case"eth_getTransactionByBlockHashAndIndex":case"eth_getTransactionReceipt":case"eth_getUncleByBlockHashAndIndex":case"eth_getCompilers":case"eth_compileLLL":case"eth_compileSolidity":case"eth_compileSerpent":case"shh_version":return"perma";case"eth_getBlockByNumber":case"eth_getBlockTransactionCountByNumber":case"eth_getUncleCountByBlockNumber":case"eth_getTransactionByBlockNumberAndIndex":case"eth_getUncleByBlockNumberAndIndex":return"fork";case"eth_gasPrice":case"eth_getBalance":case"eth_getStorageAt":case"eth_getTransactionCount":case"eth_call":case"eth_estimateGas":case"eth_getFilterLogs":case"eth_getLogs":case"eth_blockNumber":return"block";case"net_version":case"net_peerCount":case"net_listening":case"eth_syncing":case"eth_sign":case"eth_coinbase":case"eth_mining":case"eth_hashrate":case"eth_accounts":case"eth_sendTransaction":case"eth_sendRawTransaction":case"eth_newFilter":case"eth_newBlockFilter":case"eth_newPendingTransactionFilter":case"eth_uninstallFilter":case"eth_getFilterChanges":case"eth_getWork":case"eth_submitWork":case"eth_submitHashrate":case"db_putString":case"db_getString":case"db_putHex":case"db_getHex":case"shh_post":case"shh_newIdentity":case"shh_hasIdentity":case"shh_newGroup":case"shh_addToGroup":case"shh_newFilter":case"shh_uninstallFilter":case"shh_getFilterChanges":case"shh_getMessages":return"never"}}e.exports={cacheIdentifierForPayload:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!a(e))return null;var r=t.includeBlockRef,o=r?e.params:i(e);return e.method+":"+n(o)},canCache:a,blockTagForPayload:function(e){var t=o(e);if(t>=e.params.length)return null;return e.params[t]},paramsWithoutBlockTag:i,blockTagParamIndex:o,cacheTypeForPayload:c}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a="undefined"!=typeof JSON?JSON:r(767);e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r=t.space||"";"number"==typeof r&&(r=Array(r+1).join(" "));var c,f="boolean"==typeof t.cycles&&t.cycles,d=t.replacer||function(e,t){return t},s=t.cmp&&(c=t.cmp,function(e){return function(t,r){var n={key:t,value:e[t]},a={key:r,value:e[r]};return c(n,a)}}),u=[];return function e(t,c,b,h){var l=r?"\n"+new Array(h+1).join(r):"",p=r?": ":":";if(b&&b.toJSON&&"function"==typeof b.toJSON&&(b=b.toJSON()),void 0!==(b=d.call(t,c,b))){if("object"!==n(b)||null===b)return a.stringify(b);if(i(b)){for(var m=[],x=0;x=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),f=r.call(i,"finallyLoc");if(c&&f){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;k(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),b}},e}function i(e,t,r,n,a,i,o){try{var c=e[i](o),f=c.value}catch(e){return void r(e)}c.done?t(f):Promise.resolve(f).then(n,a)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function c(e){i(o,n,a,c,f,"next",e)}function f(e){i(o,n,a,c,f,"throw",e)}c(void 0)}))}}var c=r(872).Mutex,f=r(318).createAsyncMiddleware,d=r(322),s=r(785),u=r(788),b=r(789),h=r(93),l=h.intToHex,p=h.hexToInt;function m(e){return x(o(a().mark((function t(){var r,n,i=arguments;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.apply(void 0,i);case 2:return r=t.sent,n=l(r.id),t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)}))))}function x(e){return f(function(){var t=o(a().mark((function t(r,n){var i;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.apply(null,r.params);case 2:i=t.sent,n.result=i;case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}())}function y(e,t){var r=[];for(var n in e)r.push(e[n]);return r}e.exports=function(e){var t=e.blockTracker,r=e.provider,n=0,i={},f=new c,h=function(e){var t=e.mutex;return function(e){return function(){var r=o(a().mark((function r(n,i,o,c){return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.acquire();case 2:(0,r.sent)(),e(n,i,o,c);case 5:case"end":return r.stop()}}),r)})));return function(e,t,n,a){return r.apply(this,arguments)}}()}}({mutex:f}),v=d({eth_newFilter:h(m(w)),eth_newBlockFilter:h(m(M)),eth_newPendingTransactionFilter:h(m(S)),eth_uninstallFilter:h(x(j)),eth_getFilterChanges:h(x(E)),eth_getFilterLogs:h(x(O))}),g=function(){var e=o(a().mark((function e(t){var r,n,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.oldBlock,n=t.newBlock,0!==i.length){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,f.acquire();case 5:return c=e.sent,e.prev=6,e.next=9,Promise.all(y(i).map(function(){var e=o(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.update({oldBlock:r,newBlock:n});case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error(e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t){return e.apply(this,arguments)}}()));case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(6),console.error(e.t0);case 14:c();case 15:case"end":return e.stop()}}),e,null,[[6,11]])})));return function(t){return e.apply(this,arguments)}}();return v.newLogFilter=w,v.newBlockFilter=M,v.newPendingTransactionFilter=S,v.uninstallFilter=j,v.getFilterChanges=E,v.getFilterLogs=O,v.destroy=function(){!function(){N.apply(this,arguments)}()},v;function w(e){return _.apply(this,arguments)}function _(){return(_=o(a().mark((function e(t){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new s({provider:r,params:t}),e.next=3,R(n);case 3:return e.sent,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function M(){return k.apply(this,arguments)}function k(){return(k=o(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new u({provider:r}),e.next=3,R(t);case 3:return e.sent,e.abrupt("return",t);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S(){return A.apply(this,arguments)}function A(){return(A=o(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new b({provider:r}),e.next=3,R(t);case 3:return e.sent,e.abrupt("return",t);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e){return T.apply(this,arguments)}function T(){return(T=o(a().mark((function e(t){var r,n,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=p(t),n=i[r]){e.next=4;break}throw new Error('No filter for index "'.concat(r,'"'));case 4:return o=n.getChangesAndClear(),e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return P.apply(this,arguments)}function P(){return(P=o(a().mark((function e(t){var r,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=p(t),n=i[r]){e.next=4;break}throw new Error('No filter for index "'.concat(r,'"'));case 4:return"log"===n.type?results=n.getAllResults():results=[],e.abrupt("return",results);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e){return B.apply(this,arguments)}function B(){return(B=o(a().mark((function e(t){var r,n,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=p(t),n=i[r],!(o=Boolean(n))){e.next=6;break}return e.next=6,I(r);case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(e){return C.apply(this,arguments)}function C(){return(C=o(a().mark((function e(r){var o,c,f;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=y(i).length,e.next=3,t.getLatestBlock();case 3:return c=e.sent,e.next=6,r.initialize({currentBlock:c});case 6:return n++,i[n]=r,r.id=n,r.idHex=l(n),f=y(i).length,U({prevFilterCount:o,newFilterCount:f}),e.abrupt("return",n);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(e){return L.apply(this,arguments)}function L(){return(L=o(a().mark((function e(t){var r,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=y(i).length,delete i[t],n=y(i).length,U({prevFilterCount:r,newFilterCount:n});case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(){return(N=o(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=y(i).length,i={},U({prevFilterCount:t,newFilterCount:0});case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function U(e){var r=e.prevFilterCount,n=e.newFilterCount;0===r&&n>0?t.on("sync",g):r>0&&0===n&&t.removeListener("sync",g)}}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(777),t),a(r(778),t),a(r(779),t),a(r(319),t),a(r(320),t),a(r(783),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUniqueId=void 0;var n=Math.floor(4294967295*Math.random());t.getUniqueId=function(){return n=(n+1)%4294967295}},function(e,t,r){"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=c(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,f=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){f=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(f)throw i}}}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",c=n.asyncIterator||"@@asyncIterator",f=n.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var a=t&&t.prototype instanceof h?t:h,i=Object.create(a.prototype),o=new S(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(a,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw i;return E()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var c=_(o,r);if(c){if(c===b)continue;return c}}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 f=u(e,t,r);if("normal"===f.type){if(n=r.done?"completed":"suspendedYield",f.arg===b)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(n="completed",r.method="throw",r.arg=f.arg)}}}(e,r,o),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var b={};function h(){}function l(){}function p(){}var m={};d(m,o,(function(){return this}));var x=Object.getPrototypeOf,y=x&&x(x(A([])));y&&y!==t&&r.call(y,o)&&(m=y);var v=p.prototype=h.prototype=Object.create(m);function g(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var n;this._invoke=function(i,o){function c(){return new t((function(n,c){!function n(i,o,c,f){var d=u(e[i],e,o);if("throw"!==d.type){var s=d.arg,b=s.value;return b&&"object"==a(b)&&r.call(b,"__await")?t.resolve(b.__await).then((function(e){n("next",e,c,f)}),(function(e){n("throw",e,c,f)})):t.resolve(b).then((function(e){s.value=e,c(s)}),(function(e){return n("throw",e,c,f)}))}f(d.arg)}(i,o,n,c)}))}return n=n?n.then(c,c):c()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return b;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,b;var a=n.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,b):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function A(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),f=r.call(i,"finallyLoc");if(c&&f){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;k(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),b}},e}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,a,i=[],o=!0,c=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(c)throw a}}return i}(e,t)||c(e,t)||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.")}()}function c(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:c;if(Number.isInteger(e)){var n=e.toString();if(h(a.errorValues,n))return a.errorValues[n].message;if(u(e))return t.JSON_RPC_SERVER_ERROR_MESSAGE}return r}function s(e){if(!Number.isInteger(e))return!1;var t=e.toString();return!!a.errorValues[t]||!!u(e)}function u(e){return e>=-32099&&e<=-32e3}function b(e){return e&&"object"===n(e)&&!Array.isArray(e)?Object.assign({},e):e}function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",t.getMessageFromCode=d,t.isValidCode=s,t.serializeError=function(e){var t,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=a.fallbackError,c=void 0===o?f:o,u=a.shouldIncludeStack,l=void 0!==u&&u;if(!c||!Number.isInteger(c.code)||"string"!=typeof c.message)throw new Error("Must provide fallback error with integer number code and string message.");if(e instanceof i.EthereumRpcError)return e.serialize();var p={};if(e&&"object"===n(e)&&!Array.isArray(e)&&h(e,"code")&&s(e.code)){var m=e;p.code=m.code,m.message&&"string"==typeof m.message?(p.message=m.message,h(m,"data")&&(p.data=m.data)):(p.message=d(p.code),p.data={originalError:b(e)})}else{p.code=c.code;var x=null===(t=e)||void 0===t?void 0:t.message;p.message=x&&"string"==typeof x?x:c.message,p.data={originalError:b(e)}}var y=null===(r=e)||void 0===r?void 0:r.stack;return l&&e&&y&&"string"==typeof y&&(p.stack=y),p}},function(e,t,r){e.exports=r(784)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeRecord=t.records=t.saveRecord=void 0;var n=r(28),a=r(121);t.saveRecord=function(e){var t=n.WALLET_API_HOST+"/trans/record";return a.POST_JSON(t,e)},t.records=function(e){var t=n.WALLET_API_HOST+"/trans/records";return a.POST_JSON(t,e)},t.removeRecord=function(e){var t=n.WALLET_API_HOST+"/trans/record";return a.DELETE_JSON(t,e)}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=this&&this.__decorate||function(e,t,r,a){var i,o=arguments.length,c=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,r):a;if("object"===("undefined"==typeof Reflect?"undefined":n(Reflect))&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,a);else for(var f=e.length-1;f>=0;f--)(i=e[f])&&(c=(o<3?i(c):o>3?i(t,r,c):i(t,r))||c);return o>3&&c&&Object.defineProperty(t,r,c),c};Object.defineProperty(t,"__esModule",{value:!0}),t.WalletEnv=void 0;var i=r(188),o=r(47),c=function(){function e(){this.handler=i.createWalletEvents()}return Object.defineProperty(e.prototype,"tokenData",{get:function(){if(!this.token)return{};var e=this.token.split(".");return e.length<2?{}:JSON.parse(window.atob(e[1]))},enumerable:!1,configurable:!0}),e=a([o.singleton],e)}();t.WalletEnv=c},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{f(n.next(e))}catch(e){i(e)}}function c(e){try{f(n.throw(e))}catch(e){i(e)}}function f(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,c)}f((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(a=2&i[0]?n.return:i[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,i[1])).done)return a;switch(n=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;var i=a(r(14)),o=r(44),c=r(22),f=r(77),d=r(327),s=r(59),u=r(190),b=r(122),h=r(191),l=function(){function e(e,t,r,n){void 0===e&&(e=new o.BN(0)),void 0===t&&(t=new o.BN(0)),void 0===r&&(r=d.KECCAK256_RLP),void 0===n&&(n=d.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=r,this.codeHash=n,this._validate()}return e.fromAccountData=function(t){var r=t.nonce,n=t.balance,a=t.stateRoot,i=t.codeHash;return new e(r?new o.BN((0,s.toBuffer)(r)):void 0,n?new o.BN((0,s.toBuffer)(n)):void 0,a?(0,s.toBuffer)(a):void 0,i?(0,s.toBuffer)(i):void 0)},e.fromRlpSerializedAccount=function(e){var t=o.rlp.decode(e);if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},e.fromValuesArray=function(t){var r=n(t,4),a=r[0],i=r[1],c=r[2],f=r[3];return new e(new o.BN(a),new o.BN(i),c,f)},e.prototype._validate=function(){if(this.nonce.lt(new o.BN(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new o.BN(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")},e.prototype.raw=function(){return[(0,h.bnToUnpaddedBuffer)(this.nonce),(0,h.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return o.rlp.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(d.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(d.KECCAK256_NULL)},e}();t.Account=l;t.isValidAddress=function(e){try{(0,b.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)};t.toChecksumAddress=function(e,t){(0,b.assertIsHexString)(e);var r=(0,f.stripHexPrefix)(e).toLowerCase(),n="";t&&(n=(0,h.toType)(t,h.TypeOutput.BN).toString()+"0x");for(var a=(0,u.keccakFromString)(n+r).toString("hex"),i="0x",o=0;o=8?i+=r[o].toUpperCase():i+=r[o];return i};t.isValidChecksumAddress=function(e,r){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,r)===e};t.generateAddress=function(t,r){(0,b.assertIsBuffer)(t),(0,b.assertIsBuffer)(r);var n=new o.BN(r);return n.isZero()?(0,u.rlphash)([t,null]).slice(-20):(0,u.rlphash)([t,e.from(n.toArray())]).slice(-20)};t.generateAddress2=function(t,r,n){return(0,b.assertIsBuffer)(t),(0,b.assertIsBuffer)(r),(0,b.assertIsBuffer)(n),(0,i.default)(20===t.length),(0,i.default)(32===r.length),(0,u.keccak256)(e.concat([e.from("ff","hex"),t,r,(0,u.keccak256)(n)])).slice(-20)};t.isValidPrivate=function(e){return(0,c.privateKeyVerify)(e)};t.isValidPublic=function(t,r){return void 0===r&&(r=!1),(0,b.assertIsBuffer)(t),64===t.length?(0,c.publicKeyVerify)(e.concat([e.from([4]),t])):!!r&&(0,c.publicKeyVerify)(t)};t.pubToAddress=function(t,r){return void 0===r&&(r=!1),(0,b.assertIsBuffer)(t),r&&64!==t.length&&(t=e.from((0,c.publicKeyConvert)(t,!1).slice(1))),(0,i.default)(64===t.length),(0,u.keccak)(t).slice(-20)},t.publicToAddress=t.pubToAddress;t.privateToPublic=function(t){return(0,b.assertIsBuffer)(t),e.from((0,c.publicKeyCreate)(t,!1)).slice(1)};t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))};t.importPublic=function(t){return(0,b.assertIsBuffer)(t),64!==t.length&&(t=e.from((0,c.publicKeyConvert)(t,!1).slice(1))),t};t.zeroAddress=function(){var e=(0,s.zeros)(20);return(0,s.bufferToHex)(e)};t.isZeroAddress=function(e){try{(0,b.assertIsString)(e)}catch(e){return!1}return(0,t.zeroAddress)()===e}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var n=r(19),a=r(822);e.exports=a((function(e){var t=n("sha256").update(e).digest();return n("sha256").update(t).digest()}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a={};t.wordlists=a,t._default=n;try{t._default=n=r(831),a.czech=n}catch(e){}try{t._default=n=r(832),a.chinese_simplified=n}catch(e){}try{t._default=n=r(833),a.chinese_traditional=n}catch(e){}try{t._default=n=r(834),a.korean=n}catch(e){}try{t._default=n=r(835),a.french=n}catch(e){}try{t._default=n=r(836),a.italian=n}catch(e){}try{t._default=n=r(837),a.spanish=n}catch(e){}try{t._default=n=r(838),a.japanese=n,a.JA=n}catch(e){}try{t._default=n=r(839),a.portuguese=n}catch(e){}try{t._default=n=r(840),a.english=n,a.EN=n}catch(e){}},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,r=t.init;(t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],a=0;a>>2]|=e[a]<<24-a%4*8;r.call(this,n,t)}else r.apply(this,arguments)}).prototype=t}}(),e.lib.WordArray},"object"===c(t)?e.exports=t=o(r(2)):(a=[r(2)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return function(){var t=e,r=t.lib.WordArray,n=t.enc;function a(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],a=0;a>>2]>>>16-a%4*8&65535;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a>>1]|=e.charCodeAt(a)<<16-a%2*16;return r.create(n,2*t)}},n.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>16-i%4*8&65535);n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>1]|=a(e.charCodeAt(i)<<16-i%2*16);return r.create(n,2*t)}}}(),e.enc.Utf16},"object"===c(t)?e.exports=t=o(r(2)):(a=[r(2)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return function(){var t=e,r=t.lib.WordArray;function n(e,t,n){for(var a=[],i=0,o=0;o>>6-o%4*2;a[i>>>2]|=c<<24-i%4*8,i++}return r.create(a,i)}t.enc.Base64url={stringify:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.words,n=e.sigBytes,a=t?this._safe_map:this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255,f=r[o+1>>>2]>>>24-(o+1)%4*8&255,d=r[o+2>>>2]>>>24-(o+2)%4*8&255,s=c<<16|f<<8|d,u=0;u<4&&o+.75*u>>6*(3-u)&63));var b=a.charAt(64);if(b)for(;i.length%4;)i.push(b);return i.join("")},parse:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.length,a=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o>>24)|4278255360&(i<<24|i>>>8),o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),(T=r[a]).high^=o,T.low^=i}for(var c=0;c<24;c++){for(var b=0;b<5;b++){for(var h=0,l=0,p=0;p<5;p++)h^=(T=r[b+5*p]).high,l^=T.low;var m=u[b];m.high=h,m.low=l}for(b=0;b<5;b++){var x=u[(b+4)%5],y=u[(b+1)%5],v=y.high,g=y.low;for(h=x.high^(v<<1|g>>>31),l=x.low^(g<<1|v>>>31),p=0;p<5;p++)(T=r[b+5*p]).high^=h,T.low^=l}for(var w=1;w<25;w++){var _=(T=r[w]).high,M=T.low,k=f[w];k<32?(h=_<>>32-k,l=M<>>32-k):(h=M<>>64-k,l=_<>>64-k);var S=u[d[w]];S.high=h,S.low=l}var A=u[0],E=r[0];for(A.high=E.high,A.low=E.low,b=0;b<5;b++)for(p=0;p<5;p++){var T=r[w=b+5*p],O=u[w],P=u[(b+1)%5+5*p],j=u[(b+2)%5+5*p];T.high=O.high^~P.high&j.high,T.low=O.low^~P.low&j.low}T=r[0];var B=s[c];T.high^=B.high,T.low^=B.low}},_doFinalize:function(){var e=this._data,r=e.words,n=(this._nDataBytes,8*e.sigBytes),i=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(t.ceil((n+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*r.length,this._process();for(var o=this._state,c=this.cfg.outputLength/8,f=c/8,d=[],s=0;s>>24)|4278255360&(b<<24|b>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),d.push(h),d.push(b)}return new a.init(d,c)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});r.SHA3=i._createHelper(b),r.HmacSHA3=i._createHmacHelper(b)}(Math),e.SHA3},"object"===c(t)?e.exports=t=o(r(2),r(48)):(a=[r(2),r(48)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){ +!function(t){"use strict";function r(e){return parseInt(e)===e}function n(e){if(!r(e.length))return!1;for(var t=0;t255)return!1;return!0}function a(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!n(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(r(e.length)&&n(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function i(e){return new Uint8Array(e)}function o(e,t,r,n,a){null==n&&null==a||(e=e.slice?e.slice(n,a):Array.prototype.slice.call(e,n,a)),t.set(e,r)}var c,f={toBytes:function(e){var t=[],r=0;for(e=encodeURI(e);r191&&n<224?(t.push(String.fromCharCode((31&n)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&n)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}},d=(c="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r>4]+c[15&n])}return t.join("")}}),s={16:10,24:12,32:14},u=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],b=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],h=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],l=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],p=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],m=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],x=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],y=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],v=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],g=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],_=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],M=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],k=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],S=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function A(e){for(var t=[],r=0;r>2,this._Ke[r][t%4]=i[t],this._Kd[e-r][t%4]=i[t];for(var o,c=0,f=a;f>16&255]<<24^b[o>>8&255]<<16^b[255&o]<<8^b[o>>24&255]^u[c]<<24,c+=1,8!=a)for(t=1;t>8&255]<<8^b[o>>16&255]<<16^b[o>>24&255]<<24;for(t=a/2+1;t>2,h=f%4,this._Ke[d][h]=i[t],this._Kd[e-d][h]=i[t++],f++}for(var d=1;d>24&255]^M[o>>16&255]^k[o>>8&255]^S[255&o]},E.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],n=A(e),a=0;a<4;a++)n[a]^=this._Ke[0][a];for(var o=1;o>24&255]^p[n[(a+1)%4]>>16&255]^m[n[(a+2)%4]>>8&255]^x[255&n[(a+3)%4]]^this._Ke[o][a];n=r.slice()}var c,f=i(16);for(a=0;a<4;a++)c=this._Ke[t][a],f[4*a]=255&(b[n[a]>>24&255]^c>>24),f[4*a+1]=255&(b[n[(a+1)%4]>>16&255]^c>>16),f[4*a+2]=255&(b[n[(a+2)%4]>>8&255]^c>>8),f[4*a+3]=255&(b[255&n[(a+3)%4]]^c);return f},E.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,r=[0,0,0,0],n=A(e),a=0;a<4;a++)n[a]^=this._Kd[0][a];for(var o=1;o>24&255]^v[n[(a+3)%4]>>16&255]^g[n[(a+2)%4]>>8&255]^w[255&n[(a+1)%4]]^this._Kd[o][a];n=r.slice()}var c,f=i(16);for(a=0;a<4;a++)c=this._Kd[t][a],f[4*a]=255&(h[n[a]>>24&255]^c>>24),f[4*a+1]=255&(h[n[(a+3)%4]>>16&255]^c>>16),f[4*a+2]=255&(h[n[(a+2)%4]>>8&255]^c>>8),f[4*a+3]=255&(h[255&n[(a+1)%4]]^c);return f};var T=function e(t){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new E(t)};T.prototype.encrypt=function(e){if((e=a(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=i(e.length),r=i(16),n=0;nNumber.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var t=15;t>=0;--t)this._counter[t]=e%256,e=parseInt(e/256)},B.prototype.setBytes=function(e){if(16!=(e=a(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},B.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var R=function e(t,r){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",r instanceof B||(r=new B(r)),this._counter=r,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new E(t)};R.prototype.encrypt=function(e){for(var t=a(e,!0),r=0;r16)throw new Error("PKCS#7 padding byte out of range");for(var r=e.length-t,n=0;n-1&&e%1==0&&e<=9007199254740991}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,r,f){if(f=(0,a.default)(f||n.default),e<=0||!t)return f(null);var d=(0,i.default)(t),s=!1,u=0,b=!1;function h(e,t){if(u-=1,e)s=!0,f(e);else{if(t===c.default||s&&u<=0)return s=!0,f(null);b||l()}}function l(){for(b=!0;u=e.params.length?e.params:"eth_getBlockByNumber"===e.method?e.params.slice(1):e.params.slice(0,t)}function o(e){switch(e.method){case"eth_getStorageAt":return 2;case"eth_getBalance":case"eth_getCode":case"eth_getTransactionCount":case"eth_call":case"eth_estimateGas":return 1;case"eth_getBlockByNumber":return 0;default:return}}function c(e){switch(e.method){case"web3_clientVersion":case"web3_sha3":case"eth_protocolVersion":case"eth_getBlockTransactionCountByHash":case"eth_getUncleCountByBlockHash":case"eth_getCode":case"eth_getBlockByHash":case"eth_getTransactionByHash":case"eth_getTransactionByBlockHashAndIndex":case"eth_getTransactionReceipt":case"eth_getUncleByBlockHashAndIndex":case"eth_getCompilers":case"eth_compileLLL":case"eth_compileSolidity":case"eth_compileSerpent":case"shh_version":return"perma";case"eth_getBlockByNumber":case"eth_getBlockTransactionCountByNumber":case"eth_getUncleCountByBlockNumber":case"eth_getTransactionByBlockNumberAndIndex":case"eth_getUncleByBlockNumberAndIndex":return"fork";case"eth_gasPrice":case"eth_getBalance":case"eth_getStorageAt":case"eth_getTransactionCount":case"eth_call":case"eth_estimateGas":case"eth_getFilterLogs":case"eth_getLogs":case"eth_blockNumber":return"block";case"net_version":case"net_peerCount":case"net_listening":case"eth_syncing":case"eth_sign":case"eth_coinbase":case"eth_mining":case"eth_hashrate":case"eth_accounts":case"eth_sendTransaction":case"eth_sendRawTransaction":case"eth_newFilter":case"eth_newBlockFilter":case"eth_newPendingTransactionFilter":case"eth_uninstallFilter":case"eth_getFilterChanges":case"eth_getWork":case"eth_submitWork":case"eth_submitHashrate":case"db_putString":case"db_getString":case"db_putHex":case"db_getHex":case"shh_post":case"shh_newIdentity":case"shh_hasIdentity":case"shh_newGroup":case"shh_addToGroup":case"shh_newFilter":case"shh_uninstallFilter":case"shh_getFilterChanges":case"shh_getMessages":return"never"}}e.exports={cacheIdentifierForPayload:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!a(e))return null;var r=t.includeBlockRef,o=r?e.params:i(e);return e.method+":"+n(o)},canCache:a,blockTagForPayload:function(e){var t=o(e);if(t>=e.params.length)return null;return e.params[t]},paramsWithoutBlockTag:i,blockTagParamIndex:o,cacheTypeForPayload:c}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a="undefined"!=typeof JSON?JSON:r(767);e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r=t.space||"";"number"==typeof r&&(r=Array(r+1).join(" "));var c,f="boolean"==typeof t.cycles&&t.cycles,d=t.replacer||function(e,t){return t},s=t.cmp&&(c=t.cmp,function(e){return function(t,r){var n={key:t,value:e[t]},a={key:r,value:e[r]};return c(n,a)}}),u=[];return function e(t,c,b,h){var l=r?"\n"+new Array(h+1).join(r):"",p=r?": ":":";if(b&&b.toJSON&&"function"==typeof b.toJSON&&(b=b.toJSON()),void 0!==(b=d.call(t,c,b))){if("object"!==n(b)||null===b)return a.stringify(b);if(i(b)){for(var m=[],x=0;x=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),f=r.call(i,"finallyLoc");if(c&&f){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;k(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),b}},e}function i(e,t,r,n,a,i,o){try{var c=e[i](o),f=c.value}catch(e){return void r(e)}c.done?t(f):Promise.resolve(f).then(n,a)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function c(e){i(o,n,a,c,f,"next",e)}function f(e){i(o,n,a,c,f,"throw",e)}c(void 0)}))}}var c=r(872).Mutex,f=r(318).createAsyncMiddleware,d=r(322),s=r(785),u=r(788),b=r(789),h=r(93),l=h.intToHex,p=h.hexToInt;function m(e){return x(o(a().mark((function t(){var r,n,i=arguments;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.apply(void 0,i);case 2:return r=t.sent,n=l(r.id),t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)}))))}function x(e){return f(function(){var t=o(a().mark((function t(r,n){var i;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.apply(null,r.params);case 2:i=t.sent,n.result=i;case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}())}function y(e,t){var r=[];for(var n in e)r.push(e[n]);return r}e.exports=function(e){var t=e.blockTracker,r=e.provider,n=0,i={},f=new c,h=function(e){var t=e.mutex;return function(e){return function(){var r=o(a().mark((function r(n,i,o,c){return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.acquire();case 2:(0,r.sent)(),e(n,i,o,c);case 5:case"end":return r.stop()}}),r)})));return function(e,t,n,a){return r.apply(this,arguments)}}()}}({mutex:f}),v=d({eth_newFilter:h(m(w)),eth_newBlockFilter:h(m(M)),eth_newPendingTransactionFilter:h(m(S)),eth_uninstallFilter:h(x(j)),eth_getFilterChanges:h(x(E)),eth_getFilterLogs:h(x(O))}),g=function(){var e=o(a().mark((function e(t){var r,n,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.oldBlock,n=t.newBlock,0!==i.length){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,f.acquire();case 5:return c=e.sent,e.prev=6,e.next=9,Promise.all(y(i).map(function(){var e=o(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.update({oldBlock:r,newBlock:n});case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error(e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t){return e.apply(this,arguments)}}()));case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(6),console.error(e.t0);case 14:c();case 15:case"end":return e.stop()}}),e,null,[[6,11]])})));return function(t){return e.apply(this,arguments)}}();return v.newLogFilter=w,v.newBlockFilter=M,v.newPendingTransactionFilter=S,v.uninstallFilter=j,v.getFilterChanges=E,v.getFilterLogs=O,v.destroy=function(){!function(){N.apply(this,arguments)}()},v;function w(e){return _.apply(this,arguments)}function _(){return(_=o(a().mark((function e(t){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new s({provider:r,params:t}),e.next=3,R(n);case 3:return e.sent,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function M(){return k.apply(this,arguments)}function k(){return(k=o(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new u({provider:r}),e.next=3,R(t);case 3:return e.sent,e.abrupt("return",t);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S(){return A.apply(this,arguments)}function A(){return(A=o(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new b({provider:r}),e.next=3,R(t);case 3:return e.sent,e.abrupt("return",t);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e){return T.apply(this,arguments)}function T(){return(T=o(a().mark((function e(t){var r,n,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=p(t),n=i[r]){e.next=4;break}throw new Error('No filter for index "'.concat(r,'"'));case 4:return o=n.getChangesAndClear(),e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return P.apply(this,arguments)}function P(){return(P=o(a().mark((function e(t){var r,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=p(t),n=i[r]){e.next=4;break}throw new Error('No filter for index "'.concat(r,'"'));case 4:return"log"===n.type?results=n.getAllResults():results=[],e.abrupt("return",results);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e){return B.apply(this,arguments)}function B(){return(B=o(a().mark((function e(t){var r,n,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=p(t),n=i[r],!(o=Boolean(n))){e.next=6;break}return e.next=6,I(r);case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(e){return C.apply(this,arguments)}function C(){return(C=o(a().mark((function e(r){var o,c,f;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=y(i).length,e.next=3,t.getLatestBlock();case 3:return c=e.sent,e.next=6,r.initialize({currentBlock:c});case 6:return n++,i[n]=r,r.id=n,r.idHex=l(n),f=y(i).length,U({prevFilterCount:o,newFilterCount:f}),e.abrupt("return",n);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(e){return L.apply(this,arguments)}function L(){return(L=o(a().mark((function e(t){var r,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=y(i).length,delete i[t],n=y(i).length,U({prevFilterCount:r,newFilterCount:n});case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(){return(N=o(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=y(i).length,i={},U({prevFilterCount:t,newFilterCount:0});case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function U(e){var r=e.prevFilterCount,n=e.newFilterCount;0===r&&n>0?t.on("sync",g):r>0&&0===n&&t.removeListener("sync",g)}}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(777),t),a(r(778),t),a(r(779),t),a(r(319),t),a(r(320),t),a(r(783),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUniqueId=void 0;var n=Math.floor(4294967295*Math.random());t.getUniqueId=function(){return n=(n+1)%4294967295}},function(e,t,r){"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=c(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,f=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){f=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(f)throw i}}}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",c=n.asyncIterator||"@@asyncIterator",f=n.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var a=t&&t.prototype instanceof h?t:h,i=Object.create(a.prototype),o=new S(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(a,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw i;return E()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var c=_(o,r);if(c){if(c===b)continue;return c}}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 f=u(e,t,r);if("normal"===f.type){if(n=r.done?"completed":"suspendedYield",f.arg===b)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(n="completed",r.method="throw",r.arg=f.arg)}}}(e,r,o),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var b={};function h(){}function l(){}function p(){}var m={};d(m,o,(function(){return this}));var x=Object.getPrototypeOf,y=x&&x(x(A([])));y&&y!==t&&r.call(y,o)&&(m=y);var v=p.prototype=h.prototype=Object.create(m);function g(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var n;this._invoke=function(i,o){function c(){return new t((function(n,c){!function n(i,o,c,f){var d=u(e[i],e,o);if("throw"!==d.type){var s=d.arg,b=s.value;return b&&"object"==a(b)&&r.call(b,"__await")?t.resolve(b.__await).then((function(e){n("next",e,c,f)}),(function(e){n("throw",e,c,f)})):t.resolve(b).then((function(e){s.value=e,c(s)}),(function(e){return n("throw",e,c,f)}))}f(d.arg)}(i,o,n,c)}))}return n=n?n.then(c,c):c()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return b;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,b;var a=n.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,b):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function A(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),f=r.call(i,"finallyLoc");if(c&&f){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;k(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),b}},e}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,a,i=[],o=!0,c=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(c)throw a}}return i}(e,t)||c(e,t)||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.")}()}function c(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:c;if(Number.isInteger(e)){var n=e.toString();if(h(a.errorValues,n))return a.errorValues[n].message;if(u(e))return t.JSON_RPC_SERVER_ERROR_MESSAGE}return r}function s(e){if(!Number.isInteger(e))return!1;var t=e.toString();return!!a.errorValues[t]||!!u(e)}function u(e){return e>=-32099&&e<=-32e3}function b(e){return e&&"object"===n(e)&&!Array.isArray(e)?Object.assign({},e):e}function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",t.getMessageFromCode=d,t.isValidCode=s,t.serializeError=function(e){var t,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=a.fallbackError,c=void 0===o?f:o,u=a.shouldIncludeStack,l=void 0!==u&&u;if(!c||!Number.isInteger(c.code)||"string"!=typeof c.message)throw new Error("Must provide fallback error with integer number code and string message.");if(e instanceof i.EthereumRpcError)return e.serialize();var p={};if(e&&"object"===n(e)&&!Array.isArray(e)&&h(e,"code")&&s(e.code)){var m=e;p.code=m.code,m.message&&"string"==typeof m.message?(p.message=m.message,h(m,"data")&&(p.data=m.data)):(p.message=d(p.code),p.data={originalError:b(e)})}else{p.code=c.code;var x=null===(t=e)||void 0===t?void 0:t.message;p.message=x&&"string"==typeof x?x:c.message,p.data={originalError:b(e)}}var y=null===(r=e)||void 0===r?void 0:r.stack;return l&&e&&y&&"string"==typeof y&&(p.stack=y),p}},function(e,t,r){e.exports=r(784)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeRecord=t.records=t.saveRecord=void 0;var n=r(28),a=r(121);t.saveRecord=function(e){var t=n.WALLET_API_HOST+"/trans/record";return a.POST_JSON(t,e)},t.records=function(e){var t=n.WALLET_API_HOST+"/trans/records";return a.POST_JSON(t,e)},t.removeRecord=function(e){var t=n.WALLET_API_HOST+"/trans/record";return a.DELETE_JSON(t,e)}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=this&&this.__decorate||function(e,t,r,a){var i,o=arguments.length,c=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,r):a;if("object"===("undefined"==typeof Reflect?"undefined":n(Reflect))&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,a);else for(var f=e.length-1;f>=0;f--)(i=e[f])&&(c=(o<3?i(c):o>3?i(t,r,c):i(t,r))||c);return o>3&&c&&Object.defineProperty(t,r,c),c};Object.defineProperty(t,"__esModule",{value:!0}),t.WalletEnv=void 0;var i=r(188),o=r(47),c=function(){function e(){this.handler=i.createWalletEvents()}return Object.defineProperty(e.prototype,"tokenData",{get:function(){if(!this.token)return{};var e=this.token.split(".");return e.length<2?{}:JSON.parse(window.atob(e[1]))},enumerable:!1,configurable:!0}),e=a([o.singleton],e)}();t.WalletEnv=c},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{f(n.next(e))}catch(e){i(e)}}function c(e){try{f(n.throw(e))}catch(e){i(e)}}function f(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,c)}f((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(a=2&i[0]?n.return:i[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,i[1])).done)return a;switch(n=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;var i=a(r(14)),o=r(44),c=r(22),f=r(77),d=r(327),s=r(59),u=r(190),b=r(122),h=r(191),l=function(){function e(e,t,r,n){void 0===e&&(e=new o.BN(0)),void 0===t&&(t=new o.BN(0)),void 0===r&&(r=d.KECCAK256_RLP),void 0===n&&(n=d.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=r,this.codeHash=n,this._validate()}return e.fromAccountData=function(t){var r=t.nonce,n=t.balance,a=t.stateRoot,i=t.codeHash;return new e(r?new o.BN((0,s.toBuffer)(r)):void 0,n?new o.BN((0,s.toBuffer)(n)):void 0,a?(0,s.toBuffer)(a):void 0,i?(0,s.toBuffer)(i):void 0)},e.fromRlpSerializedAccount=function(e){var t=o.rlp.decode(e);if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},e.fromValuesArray=function(t){var r=n(t,4),a=r[0],i=r[1],c=r[2],f=r[3];return new e(new o.BN(a),new o.BN(i),c,f)},e.prototype._validate=function(){if(this.nonce.lt(new o.BN(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new o.BN(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")},e.prototype.raw=function(){return[(0,h.bnToUnpaddedBuffer)(this.nonce),(0,h.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return o.rlp.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(d.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(d.KECCAK256_NULL)},e}();t.Account=l;t.isValidAddress=function(e){try{(0,b.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)};t.toChecksumAddress=function(e,t){(0,b.assertIsHexString)(e);var r=(0,f.stripHexPrefix)(e).toLowerCase(),n="";t&&(n=(0,h.toType)(t,h.TypeOutput.BN).toString()+"0x");for(var a=(0,u.keccakFromString)(n+r).toString("hex"),i="0x",o=0;o=8?i+=r[o].toUpperCase():i+=r[o];return i};t.isValidChecksumAddress=function(e,r){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,r)===e};t.generateAddress=function(t,r){(0,b.assertIsBuffer)(t),(0,b.assertIsBuffer)(r);var n=new o.BN(r);return n.isZero()?(0,u.rlphash)([t,null]).slice(-20):(0,u.rlphash)([t,e.from(n.toArray())]).slice(-20)};t.generateAddress2=function(t,r,n){return(0,b.assertIsBuffer)(t),(0,b.assertIsBuffer)(r),(0,b.assertIsBuffer)(n),(0,i.default)(20===t.length),(0,i.default)(32===r.length),(0,u.keccak256)(e.concat([e.from("ff","hex"),t,r,(0,u.keccak256)(n)])).slice(-20)};t.isValidPrivate=function(e){return(0,c.privateKeyVerify)(e)};t.isValidPublic=function(t,r){return void 0===r&&(r=!1),(0,b.assertIsBuffer)(t),64===t.length?(0,c.publicKeyVerify)(e.concat([e.from([4]),t])):!!r&&(0,c.publicKeyVerify)(t)};t.pubToAddress=function(t,r){return void 0===r&&(r=!1),(0,b.assertIsBuffer)(t),r&&64!==t.length&&(t=e.from((0,c.publicKeyConvert)(t,!1).slice(1))),(0,i.default)(64===t.length),(0,u.keccak)(t).slice(-20)},t.publicToAddress=t.pubToAddress;t.privateToPublic=function(t){return(0,b.assertIsBuffer)(t),e.from((0,c.publicKeyCreate)(t,!1)).slice(1)};t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))};t.importPublic=function(t){return(0,b.assertIsBuffer)(t),64!==t.length&&(t=e.from((0,c.publicKeyConvert)(t,!1).slice(1))),t};t.zeroAddress=function(){var e=(0,s.zeros)(20);return(0,s.bufferToHex)(e)};t.isZeroAddress=function(e){try{(0,b.assertIsString)(e)}catch(e){return!1}return(0,t.zeroAddress)()===e}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var n=r(19),a=r(822);e.exports=a((function(e){var t=n("sha256").update(e).digest();return n("sha256").update(t).digest()}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a={};t.wordlists=a,t._default=n;try{t._default=n=r(831),a.czech=n}catch(e){}try{t._default=n=r(832),a.chinese_simplified=n}catch(e){}try{t._default=n=r(833),a.chinese_traditional=n}catch(e){}try{t._default=n=r(834),a.korean=n}catch(e){}try{t._default=n=r(835),a.french=n}catch(e){}try{t._default=n=r(836),a.italian=n}catch(e){}try{t._default=n=r(837),a.spanish=n}catch(e){}try{t._default=n=r(838),a.japanese=n,a.JA=n}catch(e){}try{t._default=n=r(839),a.portuguese=n}catch(e){}try{t._default=n=r(840),a.english=n,a.EN=n}catch(e){}},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,r=t.init;(t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],a=0;a>>2]|=e[a]<<24-a%4*8;r.call(this,n,t)}else r.apply(this,arguments)}).prototype=t}}(),e.lib.WordArray},"object"===c(t)?e.exports=t=o(r(2)):(a=[r(2)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return function(){var t=e,r=t.lib.WordArray,n=t.enc;function a(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],a=0;a>>2]>>>16-a%4*8&65535;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a>>1]|=e.charCodeAt(a)<<16-a%2*16;return r.create(n,2*t)}},n.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>16-i%4*8&65535);n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>1]|=a(e.charCodeAt(i)<<16-i%2*16);return r.create(n,2*t)}}}(),e.enc.Utf16},"object"===c(t)?e.exports=t=o(r(2)):(a=[r(2)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return function(){var t=e,r=t.lib.WordArray;function n(e,t,n){for(var a=[],i=0,o=0;o>>6-o%4*2;a[i>>>2]|=c<<24-i%4*8,i++}return r.create(a,i)}t.enc.Base64url={stringify:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.words,n=e.sigBytes,a=t?this._safe_map:this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255,f=r[o+1>>>2]>>>24-(o+1)%4*8&255,d=r[o+2>>>2]>>>24-(o+2)%4*8&255,s=c<<16|f<<8|d,u=0;u<4&&o+.75*u>>6*(3-u)&63));var b=a.charAt(64);if(b)for(;i.length%4;)i.push(b);return i.join("")},parse:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.length,a=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o>>24)|4278255360&(i<<24|i>>>8),o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),(T=r[a]).high^=o,T.low^=i}for(var c=0;c<24;c++){for(var b=0;b<5;b++){for(var h=0,l=0,p=0;p<5;p++)h^=(T=r[b+5*p]).high,l^=T.low;var m=u[b];m.high=h,m.low=l}for(b=0;b<5;b++){var x=u[(b+4)%5],y=u[(b+1)%5],v=y.high,g=y.low;for(h=x.high^(v<<1|g>>>31),l=x.low^(g<<1|v>>>31),p=0;p<5;p++)(T=r[b+5*p]).high^=h,T.low^=l}for(var w=1;w<25;w++){var _=(T=r[w]).high,M=T.low,k=f[w];k<32?(h=_<>>32-k,l=M<>>32-k):(h=M<>>64-k,l=_<>>64-k);var S=u[d[w]];S.high=h,S.low=l}var A=u[0],E=r[0];for(A.high=E.high,A.low=E.low,b=0;b<5;b++)for(p=0;p<5;p++){var T=r[w=b+5*p],O=u[w],P=u[(b+1)%5+5*p],j=u[(b+2)%5+5*p];T.high=O.high^~P.high&j.high,T.low=O.low^~P.low&j.low}T=r[0];var B=s[c];T.high^=B.high,T.low^=B.low}},_doFinalize:function(){var e=this._data,r=e.words,n=(this._nDataBytes,8*e.sigBytes),i=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(t.ceil((n+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*r.length,this._process();for(var o=this._state,c=this.cfg.outputLength/8,f=c/8,d=[],s=0;s>>24)|4278255360&(b<<24|b>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),d.push(h),d.push(b)}return new a.init(d,c)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});r.SHA3=i._createHelper(b),r.HmacSHA3=i._createHmacHelper(b)}(Math),e.SHA3},"object"===c(t)?e.exports=t=o(r(2),r(48)):(a=[r(2),r(48)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){ /** @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: @@ -43,7 +43,7 @@ return function(t){var r=e,n=r.lib,a=n.WordArray,i=n.Hasher,o=r.algo,c=a.create( * derived from CryptoJS.mode.CTR * Jan Hruby jhruby.web@gmail.com */ -return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(e){if(255==(e>>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}var n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,a=n.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0),function(e){0===(e[0]=r(e[0]))&&(e[1]=r(e[1]))}(o);var c=o.slice(0);n.encryptBlock(c,0);for(var f=0;f>>2]|=a<<24-i%4*8,e.sigBytes+=a},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923},"object"===c(t)?e.exports=t=o(r(2),r(12)):(a=[r(2),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return e.pad.Iso10126={pad:function(t,r){var n=4*r,a=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(a-1)).concat(e.lib.WordArray.create([a<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126},"object"===c(t)?e.exports=t=o(r(2),r(12)):(a=[r(2),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971},"object"===c(t)?e.exports=t=o(r(2),r(12)):(a=[r(2),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding},"object"===c(t)?e.exports=t=o(r(2),r(12)):(a=[r(2),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding},"object"===c(t)?e.exports=t=o(r(2),r(12)):(a=[r(2),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){var t,r,n;return r=(t=e).lib.CipherParams,n=t.enc.Hex,t.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var t=n.parse(e);return r.create({ciphertext:t})}},e.format.Hex},"object"===c(t)?e.exports=t=o(r(2),r(12)):(a=[r(2),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return function(){var t=e,r=t.lib.BlockCipher,n=t.algo,a=[],i=[],o=[],c=[],f=[],d=[],s=[],u=[],b=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var l=n^n<<1^n<<2^n<<3^n<<4;l=l>>>8^255&l^99,a[r]=l,i[l]=r;var p=e[r],m=e[p],x=e[m],y=257*e[l]^16843008*l;o[r]=y<<24|y>>>8,c[r]=y<<16|y>>>16,f[r]=y<<8|y>>>24,d[r]=y,y=16843009*x^65537*m^257*p^16843008*r,s[l]=y<<24|y>>>8,u[l]=y<<16|y>>>16,b[l]=y<<8|y>>>24,h[l]=y,r?(r=p^e[e[e[x^p]]],n^=e[e[n]]):r=n=1}}();var l=[0,1,2,4,8,16,32,64,128,27,54],p=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),i=this._keySchedule=[],o=0;o6&&o%r==4&&(d=a[d>>>24]<<24|a[d>>>16&255]<<16|a[d>>>8&255]<<8|a[255&d]):(d=a[(d=d<<8|d>>>24)>>>24]<<24|a[d>>>16&255]<<16|a[d>>>8&255]<<8|a[255&d],d^=l[o/r|0]<<24),i[o]=i[o-r]^d);for(var c=this._invKeySchedule=[],f=0;f>>24]]^u[a[d>>>16&255]]^b[a[d>>>8&255]]^h[a[255&d]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,c,f,d,a)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,s,u,b,h,i),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,a,i,o,c){for(var f=this._nRounds,d=e[t]^r[0],s=e[t+1]^r[1],u=e[t+2]^r[2],b=e[t+3]^r[3],h=4,l=1;l>>24]^a[s>>>16&255]^i[u>>>8&255]^o[255&b]^r[h++],m=n[s>>>24]^a[u>>>16&255]^i[b>>>8&255]^o[255&d]^r[h++],x=n[u>>>24]^a[b>>>16&255]^i[d>>>8&255]^o[255&s]^r[h++],y=n[b>>>24]^a[d>>>16&255]^i[s>>>8&255]^o[255&u]^r[h++];d=p,s=m,u=x,b=y}p=(c[d>>>24]<<24|c[s>>>16&255]<<16|c[u>>>8&255]<<8|c[255&b])^r[h++],m=(c[s>>>24]<<24|c[u>>>16&255]<<16|c[b>>>8&255]<<8|c[255&d])^r[h++],x=(c[u>>>24]<<24|c[b>>>16&255]<<16|c[d>>>8&255]<<8|c[255&s])^r[h++],y=(c[b>>>24]<<24|c[d>>>16&255]<<16|c[s>>>8&255]<<8|c[255&u])^r[h++],e[t]=p,e[t+1]=m,e[t+2]=x,e[t+3]=y},keySize:8});t.AES=r._createHelper(p)}(),e.AES},"object"===c(t)?e.exports=t=o(r(2),r(32),r(29),r(25),r(12)):(a=[r(2),r(32),r(29),r(25),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return function(){var t=e,r=t.lib,n=r.WordArray,a=r.BlockCipher,i=t.algo,o=[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],c=[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],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d=[{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}],s=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=i.DES=a.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=o[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var a=this._subKeys=[],i=0;i<16;i++){var d=a[i]=[],s=f[i];for(r=0;r<24;r++)d[r/6|0]|=t[(c[r]-1+s)%28]<<31-r%6,d[4+(r/6|0)]|=t[28+(c[r+24]-1+s)%28]<<31-r%6;for(d[0]=d[0]<<1|d[0]>>>31,r=1;r<7;r++)d[r]=d[r]>>>4*(r-1)+3;d[7]=d[7]<<5|d[7]>>>27}var u=this._invSubKeys=[];for(r=0;r<16;r++)u[r]=a[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],b.call(this,4,252645135),b.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),b.call(this,1,1431655765);for(var n=0;n<16;n++){for(var a=r[n],i=this._lBlock,o=this._rBlock,c=0,f=0;f<8;f++)c|=d[f][((o^a[f])&s[f])>>>0];this._lBlock=o,this._rBlock=i^c}var u=this._lBlock;this._lBlock=this._rBlock,this._rBlock=u,b.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),b.call(this,16,65535),b.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function b(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),a=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=u.createEncryptor(n.create(t)),this._des2=u.createEncryptor(n.create(r)),this._des3=u.createEncryptor(n.create(a))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=a._createHelper(l)}(),e.TripleDES},"object"===c(t)?e.exports=t=o(r(2),r(32),r(29),r(25),r(12)):(a=[r(2),r(32),r(29),r(25),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return function(){var t=e,r=t.lib.StreamCipher,n=t.algo,a=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],a=0;a<256;a++)n[a]=a;a=0;for(var i=0;a<256;a++){var o=a%r,c=t[o>>>2]>>>24-o%4*8&255;i=(i+n[a]+c)%256;var f=n[a];n[a]=n[i],n[i]=f}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,r=this._j,n=0,a=0;a<4;a++){r=(r+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[r],e[r]=i,n|=e[(e[t]+e[r])%256]<<24-8*a}return this._i=t,this._j=r,n}t.RC4=r._createHelper(a);var o=n.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=r._createHelper(o)}(),e.RC4},"object"===c(t)?e.exports=t=o(r(2),r(32),r(29),r(25),r(12)):(a=[r(2),r(32),r(29),r(25),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return function(){var t=e,r=t.lib.StreamCipher,n=t.algo,a=[],i=[],o=[],c=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)f.call(this);for(r=0;r<8;r++)a[r]^=n[r+4&7];if(t){var i=t.words,o=i[0],c=i[1],d=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),u=d>>>16|4294901760&s,b=s<<16|65535&d;for(a[0]^=d,a[1]^=u,a[2]^=s,a[3]^=b,a[4]^=d,a[5]^=u,a[6]^=s,a[7]^=b,r=0;r<4;r++)f.call(this)}},_doProcessBlock:function(e,t){var r=this._X;f.call(this),a[0]=r[0]^r[5]>>>16^r[3]<<16,a[1]=r[2]^r[7]>>>16^r[5]<<16,a[2]=r[4]^r[1]>>>16^r[7]<<16,a[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)a[n]=16711935&(a[n]<<8|a[n]>>>24)|4278255360&(a[n]<<24|a[n]>>>8),e[t+n]^=a[n]},blockSize:4,ivSize:2});function f(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(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,r=0;r<8;r++){var n=e[r]+t[r],a=65535&n,c=n>>>16,f=((a*a>>>17)+a*c>>>15)+c*c,d=((4294901760&n)*n|0)+((65535&n)*n|0);o[r]=f^d}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.Rabbit=r._createHelper(c)}(),e.Rabbit},"object"===c(t)?e.exports=t=o(r(2),r(32),r(29),r(25),r(12)):(a=[r(2),r(32),r(29),r(25),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return function(){var t=e,r=t.lib.StreamCipher,n=t.algo,a=[],i=[],o=[],c=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var a=0;a<4;a++)f.call(this);for(a=0;a<8;a++)n[a]^=r[a+4&7];if(t){var i=t.words,o=i[0],c=i[1],d=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),u=d>>>16|4294901760&s,b=s<<16|65535&d;for(n[0]^=d,n[1]^=u,n[2]^=s,n[3]^=b,n[4]^=d,n[5]^=u,n[6]^=s,n[7]^=b,a=0;a<4;a++)f.call(this)}},_doProcessBlock:function(e,t){var r=this._X;f.call(this),a[0]=r[0]^r[5]>>>16^r[3]<<16,a[1]=r[2]^r[7]>>>16^r[5]<<16,a[2]=r[4]^r[1]>>>16^r[7]<<16,a[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)a[n]=16711935&(a[n]<<8|a[n]>>>24)|4278255360&(a[n]<<24|a[n]>>>8),e[t+n]^=a[n]},blockSize:4,ivSize:2});function f(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(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,r=0;r<8;r++){var n=e[r]+t[r],a=65535&n,c=n>>>16,f=((a*a>>>17)+a*c>>>15)+c*c,d=((4294901760&n)*n|0)+((65535&n)*n|0);o[r]=f^d}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.RabbitLegacy=r._createHelper(c)}(),e.RabbitLegacy},"object"===c(t)?e.exports=t=o(r(2),r(32),r(29),r(25),r(12)):(a=[r(2),r(32),r(29),r(25),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetAccount=t.resetWallet=t.uploadInfoForWebLogin=t.uploadUserCollection=t.fetchUserCollection=t.uploadWalletInfo=t.getWalletInfo=t.twitterAuth=t.facebookAuth=t.tikTokAuth=t.appleAuth=t.googleAuth=void 0;var n=r(28),a=r(121);t.googleAuth=function(e){var t=n.WALLET_API_HOST+"/wallet/login/google";return a.POST_JSON(t,{token:e})},t.appleAuth=function(e){var t=n.WALLET_API_HOST+"/wallet/login/apple";return a.POST_JSON(t,{token:e})},t.tikTokAuth=function(e){var t=n.WALLET_API_HOST+"/wallet/login/tiktok";return a.POST_JSON(t,{code:e})},t.facebookAuth=function(e){var t=n.WALLET_API_HOST+"/wallet/login/facebook";return a.POST_JSON(t,{code:e})},t.twitterAuth=function(e){var t=n.WALLET_API_HOST+"/wallet/login/twitter";return a.POST_JSON(t,{code:e})},t.getWalletInfo=function(){var e=n.WALLET_API_HOST+"/wallet/info";return a.GET_JSON(e)},t.uploadWalletInfo=function(e){var t=n.WALLET_API_HOST+"/wallet/info";return a.POST_JSON(t,e)},t.fetchUserCollection=function(){var e=n.WALLET_API_HOST+"/wallet/collection";return a.GET_JSON(e)},t.uploadUserCollection=function(e){var t=n.WALLET_API_HOST+"/wallet/collection";return a.POST_JSON(t,e)},t.uploadInfoForWebLogin=function(e){var t=n.WALLET_API_HOST+"/bridge/upload";return a.POST_JSON(t,e)},t.resetWallet=function(){var e=n.WALLET_API_HOST+"/wallet/reset";return a.POST_JSON(e,{})},t.resetAccount=function(){var e=n.WALLET_API_HOST+"/wallet/account/reset";return a.POST_JSON(e,{})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.emailLogin=t.emailRegister=t.checkEmailRegister=t.verifyEmailByCode=t.sendCode=t.isEmailVerified=void 0;var n=r(28),a=r(121);t.isEmailVerified=function(){var e=n.WALLET_API_HOST+"/wallet/info/email";return a.GET_JSON(e)},t.sendCode=function(e){var t=n.WALLET_API_HOST+"/email/send_code";return a.POST_JSON(t,e)},t.verifyEmailByCode=function(e){var t=n.WALLET_API_HOST+"/email/verify_by_code";return a.POST_JSON(t,e)},t.checkEmailRegister=function(e){var t=n.WALLET_API_HOST+"/email/check";return a.POST_JSON(t,e)},t.emailRegister=function(e){var t=n.WALLET_API_HOST+"/email/regist";return a.POST_JSON(t,e)},t.emailLogin=function(e){var t=n.WALLET_API_HOST+"/wallet/login/email";return a.POST_JSON(t,e)}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{f(n.next(e))}catch(e){i(e)}}function c(e){try{f(n.throw(e))}catch(e){i(e)}}function f(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,c)}f((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(a=2&i[0]?n.return:i[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,i[1])).done)return a;switch(n=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=0||"tuple"===e)&&y[t])return!0;return(x[t]||"payable"===t)&&p.throwArgumentError("invalid modifier","name",t),!1}function g(e,t){for(var r in t)Object(a.c)(e,r,t[r])}var w=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),_=new RegExp(/^(.*)\[([0-9]*)\]$/),M=function(){function e(t,r){b(this,e),t!==m&&p.throwError("use fromString",i.a.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),g(this,r);var n=this.type.match(_);g(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:e.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 l(e,[{key:"format",value:function(e){if(e||(e=w.sighash),w[e]||p.throwArgumentError("invalid format type","format",e),e===w.json){var t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((function(t){return JSON.parse(t.format(e))}))),JSON.stringify(t)}var r="";return"array"===this.baseType?(r+=this.arrayChildren.format(e),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==w.sighash&&(r+=this.type),r+="("+this.components.map((function(t){return t.format(e)})).join(e===w.full?", ":",")+")"):r+=this.type,e!==w.sighash&&(!0===this.indexed&&(r+=" indexed"),e===w.full&&this.name&&(r+=" "+this.name)),r}}],[{key:"from",value:function(t,r){return"string"==typeof t?e.fromString(t,r):e.fromObject(t)}},{key:"fromObject",value:function(t){return e.isParamType(t)?t:new e(m,{name:t.name||null,type:C(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(e.fromObject):null})}},{key:"fromString",value:function(t,r){return function(t){return e.fromObject({name:t.name,type:t.type,indexed:t.indexed,components:t.components})}(function(e,t){var r=e;function n(t){p.throwArgumentError("unexpected character at position ".concat(t),"param",e)}function a(e){var r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ");for(var i={type:"",name:"",state:{allowType:!0}},o=i,c=0;c2&&p.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||p.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=n.a.from(r[1]),r[0]):e}function T(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((function(e){switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}}))}function O(e){var t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&p.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&p.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||p.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&p.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&p.throwArgumentError("unable to determine stateMutability","value",e),t}var P=function(e){c(r,e);var t=d(r);function r(){return b(this,r),t.apply(this,arguments)}return l(r,[{key:"format",value:function(e){if(e||(e=w.sighash),w[e]||p.throwArgumentError("invalid format type","format",e),e===w.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});e===w.sighash&&p.throwError("cannot format a constructor for sighash",i.a.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var t="constructor("+this.inputs.map((function(t){return t.format(e)})).join(e===w.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isConstructorFragment(e))return e;"constructor"!==e.type&&p.throwArgumentError("invalid constructor object","value",e);var t=O(e);t.constant&&p.throwArgumentError("constructor cannot be constant","value",e);var a={name:null,type:e.type,inputs:e.inputs?e.inputs.map(M.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?n.a.from(e.gas):null};return new r(m,a)}},{key:"fromString",value:function(e){var t={type:"constructor"},n=(e=E(e,t)).match(N);return n&&"constructor"===n[1].trim()||p.throwArgumentError("invalid constructor string","value",e),t.inputs=k(n[2].trim(),!1),T(n[3].trim(),t),r.fromObject(t)}},{key:"isConstructorFragment",value:function(e){return e&&e._isFragment&&"constructor"===e.type}}]),r}(S),j=function(e){c(r,e);var t=d(r);function r(){return b(this,r),t.apply(this,arguments)}return l(r,[{key:"format",value:function(e){if(e||(e=w.sighash),w[e]||p.throwArgumentError("invalid format type","format",e),e===w.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))})),outputs:this.outputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==w.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===w.full?", ":",")+") ",e!==w.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((function(t){return t.format(e)})).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isFunctionFragment(e))return e;"function"!==e.type&&p.throwArgumentError("invalid function object","value",e);var t=O(e),a={type:e.type,name:L(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(M.fromObject):[],outputs:e.outputs?e.outputs.map(M.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?n.a.from(e.gas):null};return new r(m,a)}},{key:"fromString",value:function(e){var t={type:"function"},n=(e=E(e,t)).split(" returns ");n.length>2&&p.throwArgumentError("invalid function string","value",e);var a=n[0].match(N);if(a||p.throwArgumentError("invalid function signature","value",e),t.name=a[1].trim(),t.name&&L(t.name),t.inputs=k(a[2],!1),T(a[3].trim(),t),n.length>1){var i=n[1].match(N);""==i[1].trim()&&""==i[3].trim()||p.throwArgumentError("unexpected tokens","value",e),t.outputs=k(i[2],!1)}else t.outputs=[];return r.fromObject(t)}},{key:"isFunctionFragment",value:function(e){return e&&e._isFragment&&"function"===e.type}}]),r}(P);function B(e){var t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||p.throwArgumentError("cannot specify user defined ".concat(t," error"),"fragment",e),e}var R=function(e){c(r,e);var t=d(r);function r(){return b(this,r),t.apply(this,arguments)}return l(r,[{key:"format",value:function(e){if(e||(e=w.sighash),w[e]||p.throwArgumentError("invalid format type","format",e),e===w.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==w.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===w.full?", ":",")+") ").trim()}}],[{key:"from",value:function(e){return"string"==typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isErrorFragment(e))return e;"error"!==e.type&&p.throwArgumentError("invalid error object","value",e);var t={type:e.type,name:L(e.name),inputs:e.inputs?e.inputs.map(M.fromObject):[]};return B(new r(m,t))}},{key:"fromString",value:function(e){var t={type:"error"},n=e.match(N);return n||p.throwArgumentError("invalid error signature","value",e),t.name=n[1].trim(),t.name&&L(t.name),t.inputs=k(n[2],!1),B(r.fromObject(t))}},{key:"isErrorFragment",value:function(e){return e&&e._isFragment&&"error"===e.type}}]),r}(S);function C(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}var I=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function L(e){return e&&e.match(I)||p.throwArgumentError('invalid identifier "'.concat(e,'"'),"value",e),e}var N=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");var U=r(1);function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e,t){for(var r=0;rthis.wordSize&&H.throwError("value out-of-bounds",i.a.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=Object(U.b)([this._padding.slice(t.length%this.wordSize),t])),t}},{key:"writeValue",value:function(e){return this._writeData(this._getValue(e))}},{key:"writeUpdatableValue",value:function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(r){e._data[t]=e._getValue(r)}}}]),e}(),W=function(){function e(t,r,n,i){z(this,e),Object(a.c)(this,"_data",Object(U.a)(t)),Object(a.c)(this,"wordSize",r||32),Object(a.c)(this,"_coerceFunc",n),Object(a.c)(this,"allowLoose",i),this._offset=0}return q(e,[{key:"data",get:function(){return Object(U.g)(this._data)}},{key:"consumed",get:function(){return this._offset}},{key:"coerce",value:function(t,r){return this._coerceFunc?this._coerceFunc(t,r):e.coerce(t,r)}},{key:"_peekBytes",value:function(e,t,r){var n=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:H.throwError("data out-of-bounds",i.a.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}},{key:"subReader",value:function(t){return new e(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}},{key:"readBytes",value:function(e,t){var r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}},{key:"readValue",value:function(){return n.a.from(this.readBytes(this.wordSize))}}],[{key:"coerce",value:function(e,t){var r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t}}]),e}(),V=r(34);function Z(e){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function J(e,t){for(var r=0;r=0?t:"")+"]",c=-1===t||e.dynamic;return(n=a.call(this,"array",i,r,c)).coder=e,n.length=t,n}return t=o,(r=[{key:"defaultValue",value:function(){for(var e=this.coder.defaultValue(),t=[],r=0;re._data.length&&le.throwError("insufficient data length",i.a.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});for(var r=[],n=0;n>6==2;o++)i++;return i}return e===ot.OVERRUN?r.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(it||(it={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(ot||(ot={}));var st=Object.freeze({error:function(e,t,r,n,a){return ft.throwArgumentError("invalid codepoint at offset ".concat(t,"; ").concat(e),"bytes",r)},ignore:dt,replace:function(e,t,r,n,a){return e===ot.OVERLONG?(n.push(a),0):(n.push(65533),dt(e,t,r))}});function ut(e,t){null==t&&(t=st.error),e=Object(U.a)(e);for(var r=[],n=0;n>7!=0){var i=null,o=null;if(192==(224&a))i=1,o=127;else if(224==(240&a))i=2,o=2047;else{if(240!=(248&a)){n+=t(128==(192&a)?ot.UNEXPECTED_CONTINUE:ot.BAD_PREFIX,n-1,e,r);continue}i=3,o=65535}if(n-1+i>=e.length)n+=t(ot.OVERRUN,n-1,e,r);else{for(var c=a&(1<<8-i-1)-1,f=0;f1114111?n+=t(ot.OUT_OF_RANGE,n-1-i,e,r,c):c>=55296&&c<=57343?n+=t(ot.UTF16_SURROGATE,n-1-i,e,r,c):c<=o?n+=t(ot.OVERLONG,n-1-i,e,r,c):r.push(c))}}else r.push(a)}return r}function bt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:it.current;t!=it.current&&(ft.checkNormalize(),e=e.normalize(t));for(var r=[],n=0;n>6|192),r.push(63&a|128);else if(55296==(64512&a)){n++;var i=e.charCodeAt(n);if(n>=e.length||56320!=(64512&i))throw new Error("invalid utf-8 string");var o=65536+((1023&a)<<10)+(1023&i);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)}return Object(U.a)(r)}function ht(e,t){return ut(e,t).map((function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))})).join("")}function lt(e){return(lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pt(e,t){for(var r=0;r256||n%8!=0)&&jt.throwArgumentError("invalid "+r[1]+" bit length","param",e),new ct(n/8,"int"===r[1],e.name)}if(r=e.type.match(Bt)){var a=parseInt(r[1]);return(0===a||a>32)&&jt.throwArgumentError("invalid bytes length","param",e),new Ke(a,e.name)}return jt.throwArgumentError("invalid type","type",e.type)}},{key:"_getWordSize",value:function(){return 32}},{key:"_getReader",value:function(e,t){return new W(e,this._getWordSize(),this.coerceFunc,t)}},{key:"_getWriter",value:function(){return new G(this._getWordSize())}},{key:"getDefaultValue",value:function(e){var t=this,r=e.map((function(e){return t._getCoder(M.from(e))}));return new Ot(r,"_").defaultValue()}},{key:"encode",value:function(e,t){var r=this;e.length!==t.length&&jt.throwError("types/values length mismatch",i.a.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var n=e.map((function(e){return r._getCoder(M.from(e))})),a=new Ot(n,"_"),o=this._getWriter();return a.encode(o,t),o.data}},{key:"decode",value:function(e,t,r){var n=this,a=e.map((function(e){return n._getCoder(M.from(e))}));return new Ot(a,"_").decode(this._getReader(Object(U.a)(t),r))}}])&&Pt(t.prototype,r),n&&Pt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),It=new Ct,Lt=r(20);function Nt(e){return Object(Lt.a)(bt(e))}function Ut(e){return(Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zt(e,t){for(var r=0;r1&&Vt.throwArgumentError("multiple matching functions","name",r),this.functions[n[0]]}var a=this.functions[j.fromString(e).format()];return a||Vt.throwArgumentError("no matching function","signature",e),a}},{key:"getEvent",value:function(e){if(Object(U.j)(e)){var t=e.toLowerCase();for(var r in this.events)if(t===this.getEventTopic(r))return this.events[r];Vt.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){var n=e.trim(),a=Object.keys(this.events).filter((function(e){return e.split("(")[0]===n}));return 0===a.length?Vt.throwArgumentError("no matching event","name",n):a.length>1&&Vt.throwArgumentError("multiple matching events","name",n),this.events[a[0]]}var i=this.events[A.fromString(e).format()];return i||Vt.throwArgumentError("no matching event","signature",e),i}},{key:"getError",value:function(e){if(Object(U.j)(e)){var t=Object(a.d)(this.constructor,"getSighash");for(var r in this.errors){if(e===t(this.errors[r]))return this.errors[r]}Vt.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){var n=e.trim(),i=Object.keys(this.errors).filter((function(e){return e.split("(")[0]===n}));return 0===i.length?Vt.throwArgumentError("no matching error","name",n):i.length>1&&Vt.throwArgumentError("multiple matching errors","name",n),this.errors[i[0]]}var o=this.errors[j.fromString(e).format()];return o||Vt.throwArgumentError("no matching error","signature",e),o}},{key:"getSighash",value:function(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return Object(a.d)(this.constructor,"getSighash")(e)}},{key:"getEventTopic",value:function(e){return"string"==typeof e&&(e=this.getEvent(e)),Object(a.d)(this.constructor,"getEventTopic")(e)}},{key:"_decodeParams",value:function(e,t){return this._abiCoder.decode(e,t)}},{key:"_encodeParams",value:function(e,t){return this._abiCoder.encode(e,t)}},{key:"encodeDeploy",value:function(e){return this._encodeParams(this.deploy.inputs,e||[])}},{key:"decodeErrorResult",value:function(e,t){"string"==typeof e&&(e=this.getError(e));var r=Object(U.a)(t);return Object(U.g)(r.slice(0,4))!==this.getSighash(e)&&Vt.throwArgumentError("data signature does not match error ".concat(e.name,"."),"data",Object(U.g)(r)),this._decodeParams(e.inputs,r.slice(4))}},{key:"encodeErrorResult",value:function(e,t){return"string"==typeof e&&(e=this.getError(e)),Object(U.g)(Object(U.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionData",value:function(e,t){"string"==typeof e&&(e=this.getFunction(e));var r=Object(U.a)(t);return Object(U.g)(r.slice(0,4))!==this.getSighash(e)&&Vt.throwArgumentError("data signature does not match function ".concat(e.name,"."),"data",Object(U.g)(r)),this._decodeParams(e.inputs,r.slice(4))}},{key:"encodeFunctionData",value:function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(U.g)(Object(U.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionResult",value:function(e,t){"string"==typeof e&&(e=this.getFunction(e));var r=Object(U.a)(t),n=null,a="",o=null,c=null,f=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(u){}break;case 4:var d=Object(U.g)(r.slice(0,4)),s=$t[d];if(s)o=this._abiCoder.decode(s.inputs,r.slice(4)),c=s.name,f=s.signature,s.reason&&(n=o[0]),"Error"===c?a="; VM Exception while processing transaction: reverted with reason string ".concat(JSON.stringify(o[0])):"Panic"===c&&(a="; VM Exception while processing transaction: reverted with panic code ".concat(o[0]));else try{var u=this.getError(d);o=this._abiCoder.decode(u.inputs,r.slice(4)),c=u.name,f=u.format()}catch(u){}}return Vt.throwError("call revert exception"+a,i.a.errors.CALL_EXCEPTION,{method:e.format(),data:Object(U.g)(t),errorArgs:o,errorName:c,errorSignature:f,reason:n})}},{key:"encodeFunctionResult",value:function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(U.g)(this._abiCoder.encode(e.outputs,t||[]))}},{key:"encodeFilterTopics",value:function(e,t){var r=this;"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&Vt.throwError("too many arguments for "+e.format(),i.a.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var a=[];e.anonymous||a.push(this.getEventTopic(e));var o=function(e,t){return"string"===e.type?Nt(t):"bytes"===e.type?Object(Lt.a)(Object(U.g)(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=n.a.from(t).toHexString()),"address"===e.type&&r._abiCoder.encode(["address"],[t]),Object(U.f)(Object(U.g)(t),32))};for(t.forEach((function(t,r){var n=e.inputs[r];n.indexed?null==t?a.push(null):"array"===n.baseType||"tuple"===n.baseType?Vt.throwArgumentError("filtering with tuples or arrays not supported","contract."+n.name,t):Array.isArray(t)?a.push(t.map((function(e){return o(n,e)}))):a.push(o(n,t)):null!=t&&Vt.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+n.name,t)}));a.length&&null===a[a.length-1];)a.pop();return a}},{key:"encodeEventLog",value:function(e,t){var r=this;"string"==typeof e&&(e=this.getEvent(e));var n=[],a=[],i=[];return e.anonymous||n.push(this.getEventTopic(e)),t.length!==e.inputs.length&&Vt.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((function(e,o){var c=t[o];if(e.indexed)if("string"===e.type)n.push(Nt(c));else if("bytes"===e.type)n.push(Object(Lt.a)(c));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");n.push(r._abiCoder.encode([e.type],[c]))}else a.push(e),i.push(c)})),{data:this._abiCoder.encode(a,i),topics:n}}},{key:"decodeEventLog",value:function(e,t,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){var n=this.getEventTopic(e);Object(U.j)(r[0],32)&&r[0].toLowerCase()===n||Vt.throwError("fragment/topic mismatch",i.a.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:n,value:r[0]}),r=r.slice(1)}var a=[],o=[],c=[];e.inputs.forEach((function(e,t){e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(a.push(M.fromObject({type:"bytes32",name:e.name})),c.push(!0)):(a.push(e),c.push(!1)):(o.push(e),c.push(!1))}));var f=null!=r?this._abiCoder.decode(a,Object(U.b)(r)):null,d=this._abiCoder.decode(o,t,!0),s=[],u=0,b=0;e.inputs.forEach((function(e,t){if(e.indexed)if(null==f)s[t]=new Yt({_isIndexed:!0,hash:null});else if(c[t])s[t]=new Yt({_isIndexed:!0,hash:f[b++]});else try{s[t]=f[b++]}catch(e){s[t]=e}else try{s[t]=d[u++]}catch(e){s[t]=e}if(e.name&&null==s[e.name]){var r=s[t];r instanceof Error?Object.defineProperty(s,e.name,{enumerable:!0,get:function(){throw Qt("property ".concat(JSON.stringify(e.name)),r)}}):s[e.name]=r}}));for(var h=function(e){var t=s[e];t instanceof Error&&Object.defineProperty(s,e,{enumerable:!0,get:function(){throw Qt("index ".concat(e),t)}})},l=0;l=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void a(!1,"Invalid character in "+e)}function d(e,t,r){var n=f(e,r);return r-1>=t&&(n|=f(e,r-1)<<4),n}function s(e,t,r,n){for(var i=0,o=0,c=Math.min(e.length,r),f=t;f=49?d-49+10:d>=17?d-17+10:d,a(d>=0&&o0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n);if("object"===t(e))return this._initArray(e,r,n);"hex"===r&&(r=16),a(r===(0|r)&&r>=2&&r<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[i]|=o<>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);else if("le"===r)for(n=0,i=0;n>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)a=d(e,t,n)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,a=1;a<=67108863;a*=t)n++;n--,a=a/t|0;for(var i=e.length-r,o=i%n,c=Math.min(i,i-o)+r,f=0,d=r;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=b}catch(e){o.prototype.inspect=b}else o.prototype.inspect=b;function b(){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],p=[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];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,i=0,o=0;o>>24-n&16777215,(n+=2)>=26&&(n-=26,o--),r=0!==i||o!==this.length-1?h[6-f.length]+f+r:f+r}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=l[e],s=p[e];r="";var u=this.clone();for(u.negative=0;!u.isZero();){var b=u.modrn(s).toString(e);r=(u=u.idivn(s)).isZero()?b+r:h[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}a(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},c&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(c,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,c=67108863&o,f=o/67108864|0;r.words[0]=c;for(var d=1;d>>26,u=67108863&f,b=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=b;h++){var l=d-h|0;s+=(o=(a=0|e.words[l])*(i=0|t.words[h])+u)/67108864|0,u=67108863&o}r.words[d]=0|u,f=0|s}return 0!==f?r.words[d]=0|f:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var n=this.byteLength(),i=r||Math.max(1,n);a(n<=i,"byte array longer than desired length"),a(i>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,i);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,n),o},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,a=0,i=0;a>8&255),r>16&255),6===i?(r>24&255),n=0,i=0):(n=o>>>24,i+=2)}if(r=0&&(e[r--]=o>>8&255),r>=0&&(e[r--]=o>>16&255),6===i?(r>=0&&(e[r--]=o>>24&255),n=0,i=0):(n=o>>>24,i+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=r.length,0!==a)this.words[this.length]=a,this.length++;else if(r!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,h=0|o[1],l=8191&h,p=h>>>13,m=0|o[2],x=8191&m,y=m>>>13,v=0|o[3],g=8191&v,w=v>>>13,_=0|o[4],M=8191&_,k=_>>>13,S=0|o[5],A=8191&S,E=S>>>13,T=0|o[6],O=8191&T,P=T>>>13,j=0|o[7],B=8191&j,R=j>>>13,C=0|o[8],I=8191&C,L=C>>>13,N=0|o[9],U=8191&N,z=N>>>13,F=0|c[0],q=8191&F,H=F>>>13,D=0|c[1],K=8191&D,G=D>>>13,W=0|c[2],V=8191&W,Z=W>>>13,J=0|c[3],X=8191&J,Y=J>>>13,$=0|c[4],Q=8191&$,ee=$>>>13,te=0|c[5],re=8191&te,ne=te>>>13,ae=0|c[6],ie=8191&ae,oe=ae>>>13,ce=0|c[7],fe=8191&ce,de=ce>>>13,se=0|c[8],ue=8191&se,be=se>>>13,he=0|c[9],le=8191&he,pe=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(d+(n=Math.imul(u,q))|0)+((8191&(a=(a=Math.imul(u,H))+Math.imul(b,q)|0))<<13)|0;d=((i=Math.imul(b,H))+(a>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(l,q),a=(a=Math.imul(l,H))+Math.imul(p,q)|0,i=Math.imul(p,H);var xe=(d+(n=n+Math.imul(u,K)|0)|0)+((8191&(a=(a=a+Math.imul(u,G)|0)+Math.imul(b,K)|0))<<13)|0;d=((i=i+Math.imul(b,G)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(x,q),a=(a=Math.imul(x,H))+Math.imul(y,q)|0,i=Math.imul(y,H),n=n+Math.imul(l,K)|0,a=(a=a+Math.imul(l,G)|0)+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0;var ye=(d+(n=n+Math.imul(u,V)|0)|0)+((8191&(a=(a=a+Math.imul(u,Z)|0)+Math.imul(b,V)|0))<<13)|0;d=((i=i+Math.imul(b,Z)|0)+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(g,q),a=(a=Math.imul(g,H))+Math.imul(w,q)|0,i=Math.imul(w,H),n=n+Math.imul(x,K)|0,a=(a=a+Math.imul(x,G)|0)+Math.imul(y,K)|0,i=i+Math.imul(y,G)|0,n=n+Math.imul(l,V)|0,a=(a=a+Math.imul(l,Z)|0)+Math.imul(p,V)|0,i=i+Math.imul(p,Z)|0;var ve=(d+(n=n+Math.imul(u,X)|0)|0)+((8191&(a=(a=a+Math.imul(u,Y)|0)+Math.imul(b,X)|0))<<13)|0;d=((i=i+Math.imul(b,Y)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(M,q),a=(a=Math.imul(M,H))+Math.imul(k,q)|0,i=Math.imul(k,H),n=n+Math.imul(g,K)|0,a=(a=a+Math.imul(g,G)|0)+Math.imul(w,K)|0,i=i+Math.imul(w,G)|0,n=n+Math.imul(x,V)|0,a=(a=a+Math.imul(x,Z)|0)+Math.imul(y,V)|0,i=i+Math.imul(y,Z)|0,n=n+Math.imul(l,X)|0,a=(a=a+Math.imul(l,Y)|0)+Math.imul(p,X)|0,i=i+Math.imul(p,Y)|0;var ge=(d+(n=n+Math.imul(u,Q)|0)|0)+((8191&(a=(a=a+Math.imul(u,ee)|0)+Math.imul(b,Q)|0))<<13)|0;d=((i=i+Math.imul(b,ee)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(A,q),a=(a=Math.imul(A,H))+Math.imul(E,q)|0,i=Math.imul(E,H),n=n+Math.imul(M,K)|0,a=(a=a+Math.imul(M,G)|0)+Math.imul(k,K)|0,i=i+Math.imul(k,G)|0,n=n+Math.imul(g,V)|0,a=(a=a+Math.imul(g,Z)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,Z)|0,n=n+Math.imul(x,X)|0,a=(a=a+Math.imul(x,Y)|0)+Math.imul(y,X)|0,i=i+Math.imul(y,Y)|0,n=n+Math.imul(l,Q)|0,a=(a=a+Math.imul(l,ee)|0)+Math.imul(p,Q)|0,i=i+Math.imul(p,ee)|0;var we=(d+(n=n+Math.imul(u,re)|0)|0)+((8191&(a=(a=a+Math.imul(u,ne)|0)+Math.imul(b,re)|0))<<13)|0;d=((i=i+Math.imul(b,ne)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(O,q),a=(a=Math.imul(O,H))+Math.imul(P,q)|0,i=Math.imul(P,H),n=n+Math.imul(A,K)|0,a=(a=a+Math.imul(A,G)|0)+Math.imul(E,K)|0,i=i+Math.imul(E,G)|0,n=n+Math.imul(M,V)|0,a=(a=a+Math.imul(M,Z)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,Z)|0,n=n+Math.imul(g,X)|0,a=(a=a+Math.imul(g,Y)|0)+Math.imul(w,X)|0,i=i+Math.imul(w,Y)|0,n=n+Math.imul(x,Q)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(y,Q)|0,i=i+Math.imul(y,ee)|0,n=n+Math.imul(l,re)|0,a=(a=a+Math.imul(l,ne)|0)+Math.imul(p,re)|0,i=i+Math.imul(p,ne)|0;var _e=(d+(n=n+Math.imul(u,ie)|0)|0)+((8191&(a=(a=a+Math.imul(u,oe)|0)+Math.imul(b,ie)|0))<<13)|0;d=((i=i+Math.imul(b,oe)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(B,q),a=(a=Math.imul(B,H))+Math.imul(R,q)|0,i=Math.imul(R,H),n=n+Math.imul(O,K)|0,a=(a=a+Math.imul(O,G)|0)+Math.imul(P,K)|0,i=i+Math.imul(P,G)|0,n=n+Math.imul(A,V)|0,a=(a=a+Math.imul(A,Z)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,Z)|0,n=n+Math.imul(M,X)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,Y)|0,n=n+Math.imul(g,Q)|0,a=(a=a+Math.imul(g,ee)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,n=n+Math.imul(x,re)|0,a=(a=a+Math.imul(x,ne)|0)+Math.imul(y,re)|0,i=i+Math.imul(y,ne)|0,n=n+Math.imul(l,ie)|0,a=(a=a+Math.imul(l,oe)|0)+Math.imul(p,ie)|0,i=i+Math.imul(p,oe)|0;var Me=(d+(n=n+Math.imul(u,fe)|0)|0)+((8191&(a=(a=a+Math.imul(u,de)|0)+Math.imul(b,fe)|0))<<13)|0;d=((i=i+Math.imul(b,de)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(I,q),a=(a=Math.imul(I,H))+Math.imul(L,q)|0,i=Math.imul(L,H),n=n+Math.imul(B,K)|0,a=(a=a+Math.imul(B,G)|0)+Math.imul(R,K)|0,i=i+Math.imul(R,G)|0,n=n+Math.imul(O,V)|0,a=(a=a+Math.imul(O,Z)|0)+Math.imul(P,V)|0,i=i+Math.imul(P,Z)|0,n=n+Math.imul(A,X)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(E,X)|0,i=i+Math.imul(E,Y)|0,n=n+Math.imul(M,Q)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,ee)|0,n=n+Math.imul(g,re)|0,a=(a=a+Math.imul(g,ne)|0)+Math.imul(w,re)|0,i=i+Math.imul(w,ne)|0,n=n+Math.imul(x,ie)|0,a=(a=a+Math.imul(x,oe)|0)+Math.imul(y,ie)|0,i=i+Math.imul(y,oe)|0,n=n+Math.imul(l,fe)|0,a=(a=a+Math.imul(l,de)|0)+Math.imul(p,fe)|0,i=i+Math.imul(p,de)|0;var ke=(d+(n=n+Math.imul(u,ue)|0)|0)+((8191&(a=(a=a+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((i=i+Math.imul(b,be)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,q),a=(a=Math.imul(U,H))+Math.imul(z,q)|0,i=Math.imul(z,H),n=n+Math.imul(I,K)|0,a=(a=a+Math.imul(I,G)|0)+Math.imul(L,K)|0,i=i+Math.imul(L,G)|0,n=n+Math.imul(B,V)|0,a=(a=a+Math.imul(B,Z)|0)+Math.imul(R,V)|0,i=i+Math.imul(R,Z)|0,n=n+Math.imul(O,X)|0,a=(a=a+Math.imul(O,Y)|0)+Math.imul(P,X)|0,i=i+Math.imul(P,Y)|0,n=n+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,ee)|0,n=n+Math.imul(M,re)|0,a=(a=a+Math.imul(M,ne)|0)+Math.imul(k,re)|0,i=i+Math.imul(k,ne)|0,n=n+Math.imul(g,ie)|0,a=(a=a+Math.imul(g,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,n=n+Math.imul(x,fe)|0,a=(a=a+Math.imul(x,de)|0)+Math.imul(y,fe)|0,i=i+Math.imul(y,de)|0,n=n+Math.imul(l,ue)|0,a=(a=a+Math.imul(l,be)|0)+Math.imul(p,ue)|0,i=i+Math.imul(p,be)|0;var Se=(d+(n=n+Math.imul(u,le)|0)|0)+((8191&(a=(a=a+Math.imul(u,pe)|0)+Math.imul(b,le)|0))<<13)|0;d=((i=i+Math.imul(b,pe)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(U,K),a=(a=Math.imul(U,G))+Math.imul(z,K)|0,i=Math.imul(z,G),n=n+Math.imul(I,V)|0,a=(a=a+Math.imul(I,Z)|0)+Math.imul(L,V)|0,i=i+Math.imul(L,Z)|0,n=n+Math.imul(B,X)|0,a=(a=a+Math.imul(B,Y)|0)+Math.imul(R,X)|0,i=i+Math.imul(R,Y)|0,n=n+Math.imul(O,Q)|0,a=(a=a+Math.imul(O,ee)|0)+Math.imul(P,Q)|0,i=i+Math.imul(P,ee)|0,n=n+Math.imul(A,re)|0,a=(a=a+Math.imul(A,ne)|0)+Math.imul(E,re)|0,i=i+Math.imul(E,ne)|0,n=n+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,n=n+Math.imul(g,fe)|0,a=(a=a+Math.imul(g,de)|0)+Math.imul(w,fe)|0,i=i+Math.imul(w,de)|0,n=n+Math.imul(x,ue)|0,a=(a=a+Math.imul(x,be)|0)+Math.imul(y,ue)|0,i=i+Math.imul(y,be)|0;var Ae=(d+(n=n+Math.imul(l,le)|0)|0)+((8191&(a=(a=a+Math.imul(l,pe)|0)+Math.imul(p,le)|0))<<13)|0;d=((i=i+Math.imul(p,pe)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,V),a=(a=Math.imul(U,Z))+Math.imul(z,V)|0,i=Math.imul(z,Z),n=n+Math.imul(I,X)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(L,X)|0,i=i+Math.imul(L,Y)|0,n=n+Math.imul(B,Q)|0,a=(a=a+Math.imul(B,ee)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,ee)|0,n=n+Math.imul(O,re)|0,a=(a=a+Math.imul(O,ne)|0)+Math.imul(P,re)|0,i=i+Math.imul(P,ne)|0,n=n+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,n=n+Math.imul(M,fe)|0,a=(a=a+Math.imul(M,de)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,de)|0,n=n+Math.imul(g,ue)|0,a=(a=a+Math.imul(g,be)|0)+Math.imul(w,ue)|0,i=i+Math.imul(w,be)|0;var Ee=(d+(n=n+Math.imul(x,le)|0)|0)+((8191&(a=(a=a+Math.imul(x,pe)|0)+Math.imul(y,le)|0))<<13)|0;d=((i=i+Math.imul(y,pe)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,X),a=(a=Math.imul(U,Y))+Math.imul(z,X)|0,i=Math.imul(z,Y),n=n+Math.imul(I,Q)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(L,Q)|0,i=i+Math.imul(L,ee)|0,n=n+Math.imul(B,re)|0,a=(a=a+Math.imul(B,ne)|0)+Math.imul(R,re)|0,i=i+Math.imul(R,ne)|0,n=n+Math.imul(O,ie)|0,a=(a=a+Math.imul(O,oe)|0)+Math.imul(P,ie)|0,i=i+Math.imul(P,oe)|0,n=n+Math.imul(A,fe)|0,a=(a=a+Math.imul(A,de)|0)+Math.imul(E,fe)|0,i=i+Math.imul(E,de)|0,n=n+Math.imul(M,ue)|0,a=(a=a+Math.imul(M,be)|0)+Math.imul(k,ue)|0,i=i+Math.imul(k,be)|0;var Te=(d+(n=n+Math.imul(g,le)|0)|0)+((8191&(a=(a=a+Math.imul(g,pe)|0)+Math.imul(w,le)|0))<<13)|0;d=((i=i+Math.imul(w,pe)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,Q),a=(a=Math.imul(U,ee))+Math.imul(z,Q)|0,i=Math.imul(z,ee),n=n+Math.imul(I,re)|0,a=(a=a+Math.imul(I,ne)|0)+Math.imul(L,re)|0,i=i+Math.imul(L,ne)|0,n=n+Math.imul(B,ie)|0,a=(a=a+Math.imul(B,oe)|0)+Math.imul(R,ie)|0,i=i+Math.imul(R,oe)|0,n=n+Math.imul(O,fe)|0,a=(a=a+Math.imul(O,de)|0)+Math.imul(P,fe)|0,i=i+Math.imul(P,de)|0,n=n+Math.imul(A,ue)|0,a=(a=a+Math.imul(A,be)|0)+Math.imul(E,ue)|0,i=i+Math.imul(E,be)|0;var Oe=(d+(n=n+Math.imul(M,le)|0)|0)+((8191&(a=(a=a+Math.imul(M,pe)|0)+Math.imul(k,le)|0))<<13)|0;d=((i=i+Math.imul(k,pe)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,re),a=(a=Math.imul(U,ne))+Math.imul(z,re)|0,i=Math.imul(z,ne),n=n+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(L,ie)|0,i=i+Math.imul(L,oe)|0,n=n+Math.imul(B,fe)|0,a=(a=a+Math.imul(B,de)|0)+Math.imul(R,fe)|0,i=i+Math.imul(R,de)|0,n=n+Math.imul(O,ue)|0,a=(a=a+Math.imul(O,be)|0)+Math.imul(P,ue)|0,i=i+Math.imul(P,be)|0;var Pe=(d+(n=n+Math.imul(A,le)|0)|0)+((8191&(a=(a=a+Math.imul(A,pe)|0)+Math.imul(E,le)|0))<<13)|0;d=((i=i+Math.imul(E,pe)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(z,ie)|0,i=Math.imul(z,oe),n=n+Math.imul(I,fe)|0,a=(a=a+Math.imul(I,de)|0)+Math.imul(L,fe)|0,i=i+Math.imul(L,de)|0,n=n+Math.imul(B,ue)|0,a=(a=a+Math.imul(B,be)|0)+Math.imul(R,ue)|0,i=i+Math.imul(R,be)|0;var je=(d+(n=n+Math.imul(O,le)|0)|0)+((8191&(a=(a=a+Math.imul(O,pe)|0)+Math.imul(P,le)|0))<<13)|0;d=((i=i+Math.imul(P,pe)|0)+(a>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(U,fe),a=(a=Math.imul(U,de))+Math.imul(z,fe)|0,i=Math.imul(z,de),n=n+Math.imul(I,ue)|0,a=(a=a+Math.imul(I,be)|0)+Math.imul(L,ue)|0,i=i+Math.imul(L,be)|0;var Be=(d+(n=n+Math.imul(B,le)|0)|0)+((8191&(a=(a=a+Math.imul(B,pe)|0)+Math.imul(R,le)|0))<<13)|0;d=((i=i+Math.imul(R,pe)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,ue),a=(a=Math.imul(U,be))+Math.imul(z,ue)|0,i=Math.imul(z,be);var Re=(d+(n=n+Math.imul(I,le)|0)|0)+((8191&(a=(a=a+Math.imul(I,pe)|0)+Math.imul(L,le)|0))<<13)|0;d=((i=i+Math.imul(L,pe)|0)+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Ce=(d+(n=Math.imul(U,le))|0)+((8191&(a=(a=Math.imul(U,pe))+Math.imul(z,le)|0))<<13)|0;return d=((i=Math.imul(z,pe))+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=xe,f[2]=ye,f[3]=ve,f[4]=ge,f[5]=we,f[6]=_e,f[7]=Me,f[8]=ke,f[9]=Se,f[10]=Ae,f[11]=Ee,f[12]=Te,f[13]=Oe,f[14]=Pe,f[15]=je,f[16]=Be,f[17]=Re,f[18]=Ce,0!==d&&(f[19]=d,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}r.words[i]=c,n=o,o=a}return 0!==n?r.words[i]=n:r.length--,r._strip()}function v(e,t,r){return y(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(x=m),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?x(this,e,t):r<63?m(this,e,t):r<1024?y(this,e,t):v(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},g.prototype.permute=function(e,t,r,n,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,r[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,r+=i/67108864|0,r+=o>>>26,this.words[n]=67108863&o}return 0!==r&&(this.words[n]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>a&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,n=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),c=67108863^67108863>>>i<o)for(this.length-=o,d=0;d=0&&(0!==s||d>=n);d--){var u=0|this.words[d];this.words[d]=s<<26-i|u>>>i,s=u&c}return f&&0!==s&&(f.words[f.length++]=s),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return a(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(a("number"==typeof e),a(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(f/67108864|0),this.words[n+r]=67108863&i}for(;n>26,this.words[n+r]=67108863&i;if(0===c)return this._strip();for(a(-1===c),c=0,n=0;n>26,this.words[n]=67108863&i;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),a=e,i=0|a.words[a.length-1];0!==(r=26-this._countBits(i))&&(a=a.ushln(r),n.iushln(r),i=0|a.words[a.length-1]);var c,f=n.length-a.length;if("mod"!==t){(c=new o(null)).length=f+1,c.words=new Array(c.length);for(var d=0;d=0;u--){var b=67108864*(0|n.words[a.length+u])+(0|n.words[a.length+u-1]);for(b=Math.min(b/i|0,67108863),n._ishlnsubmul(a,b,u);0!==n.negative;)b--,n.negative=0,n._ishlnsubmul(a,1,u),n.isZero()||(n.negative^=1);c&&(c.words[u]=b)}return c&&c._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:c||null,mod:n}},o.prototype.divmod=function(e,t,r){return a(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(c=this.neg().divmod(e,t),"mod"!==t&&(n=c.div.neg()),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(c=this.divmod(e.neg(),t),"mod"!==t&&(n=c.div.neg()),{div:n,mod:c.mod}):0!=(this.negative&e.negative)?(c=this.neg().divmod(e.neg(),t),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.isub(e)),{div:c.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,i,c},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),i=r.cmp(n);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),a(e<=67108863);for(var r=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(r*n+(0|this.words[i]))%e;return t?-n:n},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),a(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*r;this.words[n]=i/e|0,r=i%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),i=new o(0),c=new o(0),f=new o(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var s=r.clone(),u=t.clone();!t.isZero();){for(var b=0,h=1;0==(t.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(s),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var l=0,p=1;0==(r.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(r.iushrn(l);l-- >0;)(c.isOdd()||f.isOdd())&&(c.iadd(s),f.isub(u)),c.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(c),i.isub(f)):(r.isub(t),c.isub(n),f.isub(i))}return{a:c,b:f,gcd:r.iushln(d)}},o.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new o(1),c=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var d=0,s=1;0==(t.words[0]&s)&&d<26;++d,s<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(f),i.iushrn(1);for(var u=0,b=1;0==(r.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(r.iushrn(u);u-- >0;)c.isOdd()&&c.iadd(f),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(c)):(r.isub(t),c.isub(i))}return(n=0===t.cmpn(1)?i:c).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var a=t.cmp(r);if(a<0){var i=t;t=r,r=i}else if(0===a||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,c&=67108863,this.words[o]=c}return 0!==i&&(this.words[o]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var n=0|this.words[r],a=0|e.words[r];if(n!==a){na&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new E(e)},o.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}_.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},i(M,_),M.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,a=i}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},M.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new M;else if("p224"===e)t=new k;else if("p192"===e)t=new S;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return w[e]=t,t},E.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);a(!n.isZero());var c=new o(1).toRed(this),f=c.redNeg(),d=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new o(2*s*s).toRed(this);0!==this.pow(s,d).cmp(f);)s.redIAdd(f);for(var u=this.pow(s,n),b=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),l=i;0!==h.cmp(c);){for(var p=h,m=0;0!==p.cmp(c);m++)p=p.redSqr();a(m=0;n--){for(var d=t.words[n],s=f-1;s>=0;s--){var u=d>>s&1;a!==r[0]&&(a=this.sqr(a)),0!==u||0!==i?(i<<=1,i|=u,(4===++c||0===n&&0===s)&&(a=this.mul(a,r[i]),c=0,i=0)):c=0}f=26}return a},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new T(e)},i(T,E),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(15)(e))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return D}));var n=r(8),a=r.n(n),i=r(26),o=r.n(i);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self;function f(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}var d=s;function s(e,t){if(!e)throw new Error(t||"Assertion failed")}s.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var u=f((function(e,t){var r=t;function n(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",r=0;r>8,o=255&a;i?r.push(i,o):r.push(o)}return r},r.zero2=n,r.toHex=a,r.encode=function(e,t){return"hex"===t?a(e):e}})),b=f((function(e,t){var r=t;r.assert=d,r.toArray=u.toArray,r.zero2=u.zero2,r.toHex=u.toHex,r.encode=u.encode,r.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var a=1<(a>>1)-1?(a>>1)-f:f,i.isubn(c)):c=0,n[o]=c,i.iushrn(1)}return n},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,a=0,i=0;e.cmpn(-a)>0||t.cmpn(-i)>0;){var o,c,f=e.andln(3)+a&3,d=t.andln(3)+i&3;3===f&&(f=-1),3===d&&(d=-1),o=0==(1&f)?0:3!==(n=e.andln(7)+a&7)&&5!==n||2!==d?f:-f,r[0].push(o),c=0==(1&d)?0:3!==(n=t.andln(7)+i&7)&&5!==n||2!==f?d:-d,r[1].push(c),2*a===o+1&&(a=1-a),2*i===c+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new a.a(e,"hex","le")}})),h=b.getNAF,l=b.getJSF,p=b.assert;function m(e,t){this.type=e,this.p=new a.a(t.p,16),this.red=t.prime?a.a.red(t.prime):a.a.mont(this.p),this.zero=new a.a(0).toRed(this.red),this.one=new a.a(1).toRed(this.red),this.two=new a.a(2).toRed(this.red),this.n=t.n&&new a.a(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 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 x=m;function y(e,t){this.curve=e,this.type=t,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(e,t){p(e.precomputed);var r=e._getDoubles(),n=h(t,1,this._bitLength),a=(1<=i;f--)o=(o<<1)+n[f];c.push(o)}for(var d=this.jpoint(null,null,null),s=this.jpoint(null,null,null),u=a;u>0;u--){for(i=0;i=0;c--){for(var f=0;c>=0&&0===i[c];c--)f++;if(c>=0&&f++,o=o.dblp(f),c<0)break;var d=i[c];p(0!==d),o="affine"===e.type?d>0?o.mixedAdd(a[d-1>>1]):o.mixedAdd(a[-d-1>>1].neg()):d>0?o.add(a[d-1>>1]):o.add(a[-d-1>>1].neg())}return"affine"===e.type?o.toP():o},m.prototype._wnafMulAdd=function(e,t,r,n,a){var i,o,c,f=this._wnafT1,d=this._wnafT2,s=this._wnafT3,u=0;for(i=0;i=1;i-=2){var p=i-1,m=i;if(1===f[p]&&1===f[m]){var x=[t[p],null,null,t[m]];0===t[p].y.cmp(t[m].y)?(x[1]=t[p].add(t[m]),x[2]=t[p].toJ().mixedAdd(t[m].neg())):0===t[p].y.cmp(t[m].y.redNeg())?(x[1]=t[p].toJ().mixedAdd(t[m]),x[2]=t[p].add(t[m].neg())):(x[1]=t[p].toJ().mixedAdd(t[m]),x[2]=t[p].toJ().mixedAdd(t[m].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=l(r[p],r[m]);for(u=Math.max(v[0].length,u),s[p]=new Array(u),s[m]=new Array(u),o=0;o=0;i--){for(var k=0;i>=0;){var S=!0;for(o=0;o=0&&k++,_=_.dblp(k),i<0)break;for(o=0;o0?c=d[o][A-1>>1]:A<0&&(c=d[o][-A-1>>1].neg()),_="affine"===c.type?_.mixedAdd(c):_.add(c))}}for(i=0;i=Math.ceil((e.bitLength()+1)/t.step)},y.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,a=0;a=0&&(o=t,c=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),c=c.neg()),[{a:n,b:i},{a:o,b:c}]},w.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],a=n.b.mul(e).divRound(this.n),i=r.b.neg().mul(e).divRound(this.n),o=a.mul(r.a),c=i.mul(n.a),f=a.mul(r.b),d=i.mul(n.b);return{k1:e.sub(o).sub(c),k2:f.add(d).neg()}},w.prototype.pointFromX=function(e,t){(e=new a.a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.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(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},w.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),a=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(a).cmpn(0)},w.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,a=this._endoWnafT2,i=0;i":""},M.prototype.isInfinity=function(){return this.inf},M.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(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},M.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),a=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),i=a.redSqr().redISub(this.x.redAdd(this.x)),o=a.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,o)},M.prototype.getX=function(){return this.x.fromRed()},M.prototype.getY=function(){return this.y.fromRed()},M.prototype.mul=function(e){return e=new a.a(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)},M.prototype.mulAdd=function(e,t,r){var n=[this,t],a=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,a):this.curve._wnafMulAdd(1,n,a,2)},M.prototype.jmulAdd=function(e,t,r){var n=[this,t],a=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,a,!0):this.curve._wnafMulAdd(1,n,a,2,!0)},M.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},M.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.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 t},M.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},v(k,x.BasePoint),w.prototype.jpoint=function(e,t,r){return new k(this,e,t,r)},k.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},k.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},k.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),a=e.x.redMul(r),i=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(r.redMul(this.z)),c=n.redSub(a),f=i.redSub(o);if(0===c.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=c.redSqr(),s=d.redMul(c),u=n.redMul(d),b=f.redSqr().redIAdd(s).redISub(u).redISub(u),h=f.redMul(u.redISub(b)).redISub(i.redMul(s)),l=this.z.redMul(e.z).redMul(c);return this.curve.jpoint(b,h,l)},k.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),a=this.y,i=e.y.redMul(t).redMul(this.z),o=r.redSub(n),c=a.redSub(i);if(0===o.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=o.redSqr(),d=f.redMul(o),s=r.redMul(f),u=c.redSqr().redIAdd(d).redISub(s).redISub(s),b=c.redMul(s.redISub(u)).redISub(a.redMul(d)),h=this.z.redMul(o);return this.curve.jpoint(u,b,h)},k.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t=0)return!1;if(r.redIAdd(a),0===this.x.cmp(r))return!0}},k.prototype.inspect=function(){return this.isInfinity()?"":""},k.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var S=f((function(e,t){var r=t;r.base=x,r.short=_,r.mont=null,r.edwards=null})),A=f((function(e,t){var r,n=t,a=b.assert;function i(e){"short"===e.type?this.curve=new S.short(e):"edwards"===e.type?this.curve=new S.edwards(e):this.curve=new S.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new i(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=i,c("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.a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("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.a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("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.a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("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.a.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"]}),c("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.a.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"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.a.sha256,gRed:!1,g:["9"]}),c("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.a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(e){r=void 0}c("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.a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function E(e){if(!(this instanceof E))return new E(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=u.toArray(e.entropy,e.entropyEnc||"hex"),r=u.toArray(e.nonce,e.nonceEnc||"hex"),n=u.toArray(e.pers,e.persEnc||"hex");d(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var T=E;E.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},E.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=u.toArray(r,n||"hex"),this._update(r));for(var a=[];a.length"};var B=b.assert;function R(e,t){if(e instanceof R)return e;this._importDER(e,t)||(B(e.r&&e.s,"Signature without r or s"),this.r=new a.a(e.r,16),this.s=new a.a(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var C=R;function I(){this.place=0}function L(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var a=0,i=0,o=t.place;i>>=0;return!(a<=127)&&(t.place=o,a)}function N(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}R.prototype._importDER=function(e,t){e=b.toArray(e,t);var r=new I;if(48!==e[r.place++])return!1;var n=L(e,r);if(!1===n)return!1;if(n+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var i=L(e,r);if(!1===i)return!1;var o=e.slice(r.place,i+r.place);if(r.place+=i,2!==e[r.place++])return!1;var c=L(e,r);if(!1===c)return!1;if(e.length!==c+r.place)return!1;var f=e.slice(r.place,c+r.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new a.a(o),this.s=new a.a(f),this.recoveryParam=null,!0},R.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=N(t),r=N(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];U(n,t.length),(n=n.concat(t)).push(2),U(n,r.length);var a=n.concat(r),i=[48];return U(i,a.length),i=i.concat(a),b.encode(i,e)};var z=function(){throw new Error("unsupported")},F=b.assert;function q(e){if(!(this instanceof q))return new q(e);"string"==typeof e&&(F(Object.prototype.hasOwnProperty.call(A,e),"Unknown curve "+e),e=A[e]),e instanceof A.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var H=q;q.prototype.keyPair=function(e){return new j(this,e)},q.prototype.keyFromPrivate=function(e,t){return j.fromPrivate(this,e,t)},q.prototype.keyFromPublic=function(e,t){return j.fromPublic(this,e,t)},q.prototype.genKeyPair=function(e){e||(e={});for(var t=new T({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||z(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new a.a(2));;){var i=new a.a(t.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},q.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},q.prototype.sign=function(e,t,r,n){"object"===c(r)&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new a.a(e,16));for(var i=this.n.byteLength(),o=t.getPrivate().toArray("be",i),f=e.toArray("be",i),d=new T({hash:this.hash,entropy:o,nonce:f,pers:n.pers,persEnc:n.persEnc||"utf8"}),s=this.n.sub(new a.a(1)),u=0;;u++){var b=n.k?n.k(u):new a.a(d.generate(this.n.byteLength()));if(!((b=this._truncateToN(b,!0)).cmpn(1)<=0||b.cmp(s)>=0)){var h=this.g.mul(b);if(!h.isInfinity()){var l=h.getX(),p=l.umod(this.n);if(0!==p.cmpn(0)){var m=b.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var x=(h.getY().isOdd()?1:0)|(0!==l.cmp(p)?2:0);return n.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),x^=1),new C({r:p,s:m,recoveryParam:x})}}}}}},q.prototype.verify=function(e,t,r,n){e=this._truncateToN(new a.a(e,16)),r=this.keyFromPublic(r,n);var i=(t=new C(t,"hex")).r,o=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var c,f=o.invm(this.n),d=f.mul(e).umod(this.n),s=f.mul(i).umod(this.n);return this.curve._maxwellTrick?!(c=this.g.jmulAdd(d,r.getPublic(),s)).isInfinity()&&c.eqXToP(i):!(c=this.g.mulAdd(d,r.getPublic(),s)).isInfinity()&&0===c.getX().umod(this.n).cmp(i)},q.prototype.recoverPubKey=function(e,t,r,n){F((3&r)===r,"The recovery param is more than two bits"),t=new C(t,n);var i=this.n,o=new a.a(e),c=t.r,f=t.s,d=1&r,s=r>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&s)throw new Error("Unable to find sencond key candinate");c=s?this.curve.pointFromX(c.add(this.curve.n),d):this.curve.pointFromX(c,d);var u=t.r.invm(i),b=i.sub(o).mul(u).umod(i),h=f.mul(u).umod(i);return this.g.mulAdd(b,c,h)},q.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new C(t,n)).recoveryParam)return t.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(e,t,a)}catch(e){continue}if(i.eq(r))return a}throw new Error("Unable to find valid recovery factor")};var D=f((function(e,t){var r=t;r.version="6.5.4",r.utils=b,r.rand=function(){throw new Error("unsupported")},r.curve=S,r.curves=A,r.ec=H,r.eddsa=null})).ec}).call(this,r(13))},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getWindowMetadata=void 0;var a=r(27);t.getWindowMetadata=function(){var e,t;try{e=a.getDocumentOrThrow(),t=a.getLocationOrThrow()}catch(e){return null}function r(){for(var t=arguments.length,r=new Array(t),a=0;a-1){var c=i.getAttribute("href");if(c)if(-1===c.toLowerCase().indexOf("https:")&&-1===c.toLowerCase().indexOf("http:")&&0!==c.indexOf("//")){var f=t.protocol+"//"+t.host;if(0===c.indexOf("/"))f+=c;else{var d=t.pathname.split("/");d.pop(),f+=d.join("/")+"/"+c}n.push(f)}else if(0===c.indexOf("//")){var s=t.protocol+c;n.push(s)}else n.push(c)}}return n}(),name:i}}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return b}));var n=function(){for(var e=0,t=0,r=arguments.length;t=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),f=r.call(i,"finallyLoc");if(c&&f){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;k(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),b}},e}function c(e,t,r,n,a,i,o){try{var c=e[i](o),f=c.value}catch(e){return void r(e)}c.done?t(f):Promise.resolve(f).then(n,a)}function f(e,t){for(var r=0;r=0;f--)(i=e[f])&&(c=(o<3?i(c):o>3?i(t,r,c):i(t,r))||c);return o>3&&c&&Object.defineProperty(t,r,c),c},o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||a(t,e,r)},c=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{f(n.next(e))}catch(e){i(e)}}function c(e){try{f(n.throw(e))}catch(e){i(e)}}function f(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,c)}f((n=n.apply(e,t||[])).next())}))},f=this&&this.__generator||function(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(a=2&i[0]?n.return:i[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,i[1])).done)return a;switch(n=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},u=this&&this.__spread||function(){for(var e=[],t=0;t=0&&g.parseUrl(t),[2,t]}}))}))},t.prototype.deleteAccount=function(){return c(this,void 0,void 0,(function(){return f(this,(function(e){switch(e.label){case 0:return[4,I.resetAccount()];case 1:return e.sent(),[2,{}]}}))}))},t.prototype.resetWalletAddress=function(){return c(this,void 0,void 0,(function(){return f(this,(function(e){switch(e.label){case 0:return[4,I.resetWallet()];case 1:return e.sent(),[4,w.syncWalletEnv()];case 2:return e.sent(),[2,{}]}}))}))},t.prototype.saveLocalItem=function(e,t){jsb.saveLocalStorage(e,t)},t.prototype.loadLocalItem=function(e){var t=jsb.loadLocalStorage(e);return console.log("loadLocalItem:: "+t),t},t=i([v.singleton],t)}();t.default=N,o(r(188),t),o(r(95),t),o(r(289),t),o(r(96),t),o(r(193),t)}).call(this,r(0).Buffer)},,,function(e,t,r){"use strict";t.byteLength=function(e){var t=d(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,n=d(e),o=n[0],c=n[1],f=new i(function(e,t,r){return 3*(t+r)/4-r}(0,o,c)),s=0,u=c>0?o-4:o;for(r=0;r>16&255,f[s++]=t>>8&255,f[s++]=255&t;2===c&&(t=a[e.charCodeAt(r)]<<2|a[e.charCodeAt(r+1)]>>4,f[s++]=255&t);1===c&&(t=a[e.charCodeAt(r)]<<10|a[e.charCodeAt(r+1)]<<4|a[e.charCodeAt(r+2)]>>2,f[s++]=t>>8&255,f[s++]=255&t);return f},t.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],o=0,c=r-a;oc?c:o+16383));1===a?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],a=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,f=o.length;c0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function s(e,t,r){for(var a,i,o=[],c=t;c>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},function(e,t){ +return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(e){if(255==(e>>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}var n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,a=n.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0),function(e){0===(e[0]=r(e[0]))&&(e[1]=r(e[1]))}(o);var c=o.slice(0);n.encryptBlock(c,0);for(var f=0;f>>2]|=a<<24-i%4*8,e.sigBytes+=a},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923},"object"===c(t)?e.exports=t=o(r(2),r(12)):(a=[r(2),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return e.pad.Iso10126={pad:function(t,r){var n=4*r,a=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(a-1)).concat(e.lib.WordArray.create([a<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126},"object"===c(t)?e.exports=t=o(r(2),r(12)):(a=[r(2),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971},"object"===c(t)?e.exports=t=o(r(2),r(12)):(a=[r(2),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding},"object"===c(t)?e.exports=t=o(r(2),r(12)):(a=[r(2),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding},"object"===c(t)?e.exports=t=o(r(2),r(12)):(a=[r(2),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){var t,r,n;return r=(t=e).lib.CipherParams,n=t.enc.Hex,t.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var t=n.parse(e);return r.create({ciphertext:t})}},e.format.Hex},"object"===c(t)?e.exports=t=o(r(2),r(12)):(a=[r(2),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return function(){var t=e,r=t.lib.BlockCipher,n=t.algo,a=[],i=[],o=[],c=[],f=[],d=[],s=[],u=[],b=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var l=n^n<<1^n<<2^n<<3^n<<4;l=l>>>8^255&l^99,a[r]=l,i[l]=r;var p=e[r],m=e[p],x=e[m],y=257*e[l]^16843008*l;o[r]=y<<24|y>>>8,c[r]=y<<16|y>>>16,f[r]=y<<8|y>>>24,d[r]=y,y=16843009*x^65537*m^257*p^16843008*r,s[l]=y<<24|y>>>8,u[l]=y<<16|y>>>16,b[l]=y<<8|y>>>24,h[l]=y,r?(r=p^e[e[e[x^p]]],n^=e[e[n]]):r=n=1}}();var l=[0,1,2,4,8,16,32,64,128,27,54],p=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),i=this._keySchedule=[],o=0;o6&&o%r==4&&(d=a[d>>>24]<<24|a[d>>>16&255]<<16|a[d>>>8&255]<<8|a[255&d]):(d=a[(d=d<<8|d>>>24)>>>24]<<24|a[d>>>16&255]<<16|a[d>>>8&255]<<8|a[255&d],d^=l[o/r|0]<<24),i[o]=i[o-r]^d);for(var c=this._invKeySchedule=[],f=0;f>>24]]^u[a[d>>>16&255]]^b[a[d>>>8&255]]^h[a[255&d]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,c,f,d,a)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,s,u,b,h,i),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,a,i,o,c){for(var f=this._nRounds,d=e[t]^r[0],s=e[t+1]^r[1],u=e[t+2]^r[2],b=e[t+3]^r[3],h=4,l=1;l>>24]^a[s>>>16&255]^i[u>>>8&255]^o[255&b]^r[h++],m=n[s>>>24]^a[u>>>16&255]^i[b>>>8&255]^o[255&d]^r[h++],x=n[u>>>24]^a[b>>>16&255]^i[d>>>8&255]^o[255&s]^r[h++],y=n[b>>>24]^a[d>>>16&255]^i[s>>>8&255]^o[255&u]^r[h++];d=p,s=m,u=x,b=y}p=(c[d>>>24]<<24|c[s>>>16&255]<<16|c[u>>>8&255]<<8|c[255&b])^r[h++],m=(c[s>>>24]<<24|c[u>>>16&255]<<16|c[b>>>8&255]<<8|c[255&d])^r[h++],x=(c[u>>>24]<<24|c[b>>>16&255]<<16|c[d>>>8&255]<<8|c[255&s])^r[h++],y=(c[b>>>24]<<24|c[d>>>16&255]<<16|c[s>>>8&255]<<8|c[255&u])^r[h++],e[t]=p,e[t+1]=m,e[t+2]=x,e[t+3]=y},keySize:8});t.AES=r._createHelper(p)}(),e.AES},"object"===c(t)?e.exports=t=o(r(2),r(32),r(29),r(25),r(12)):(a=[r(2),r(32),r(29),r(25),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return function(){var t=e,r=t.lib,n=r.WordArray,a=r.BlockCipher,i=t.algo,o=[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],c=[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],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d=[{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}],s=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=i.DES=a.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=o[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var a=this._subKeys=[],i=0;i<16;i++){var d=a[i]=[],s=f[i];for(r=0;r<24;r++)d[r/6|0]|=t[(c[r]-1+s)%28]<<31-r%6,d[4+(r/6|0)]|=t[28+(c[r+24]-1+s)%28]<<31-r%6;for(d[0]=d[0]<<1|d[0]>>>31,r=1;r<7;r++)d[r]=d[r]>>>4*(r-1)+3;d[7]=d[7]<<5|d[7]>>>27}var u=this._invSubKeys=[];for(r=0;r<16;r++)u[r]=a[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],b.call(this,4,252645135),b.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),b.call(this,1,1431655765);for(var n=0;n<16;n++){for(var a=r[n],i=this._lBlock,o=this._rBlock,c=0,f=0;f<8;f++)c|=d[f][((o^a[f])&s[f])>>>0];this._lBlock=o,this._rBlock=i^c}var u=this._lBlock;this._lBlock=this._rBlock,this._rBlock=u,b.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),b.call(this,16,65535),b.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function b(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),a=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=u.createEncryptor(n.create(t)),this._des2=u.createEncryptor(n.create(r)),this._des3=u.createEncryptor(n.create(a))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=a._createHelper(l)}(),e.TripleDES},"object"===c(t)?e.exports=t=o(r(2),r(32),r(29),r(25),r(12)):(a=[r(2),r(32),r(29),r(25),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return function(){var t=e,r=t.lib.StreamCipher,n=t.algo,a=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],a=0;a<256;a++)n[a]=a;a=0;for(var i=0;a<256;a++){var o=a%r,c=t[o>>>2]>>>24-o%4*8&255;i=(i+n[a]+c)%256;var f=n[a];n[a]=n[i],n[i]=f}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,r=this._j,n=0,a=0;a<4;a++){r=(r+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[r],e[r]=i,n|=e[(e[t]+e[r])%256]<<24-8*a}return this._i=t,this._j=r,n}t.RC4=r._createHelper(a);var o=n.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=r._createHelper(o)}(),e.RC4},"object"===c(t)?e.exports=t=o(r(2),r(32),r(29),r(25),r(12)):(a=[r(2),r(32),r(29),r(25),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return function(){var t=e,r=t.lib.StreamCipher,n=t.algo,a=[],i=[],o=[],c=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)f.call(this);for(r=0;r<8;r++)a[r]^=n[r+4&7];if(t){var i=t.words,o=i[0],c=i[1],d=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),u=d>>>16|4294901760&s,b=s<<16|65535&d;for(a[0]^=d,a[1]^=u,a[2]^=s,a[3]^=b,a[4]^=d,a[5]^=u,a[6]^=s,a[7]^=b,r=0;r<4;r++)f.call(this)}},_doProcessBlock:function(e,t){var r=this._X;f.call(this),a[0]=r[0]^r[5]>>>16^r[3]<<16,a[1]=r[2]^r[7]>>>16^r[5]<<16,a[2]=r[4]^r[1]>>>16^r[7]<<16,a[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)a[n]=16711935&(a[n]<<8|a[n]>>>24)|4278255360&(a[n]<<24|a[n]>>>8),e[t+n]^=a[n]},blockSize:4,ivSize:2});function f(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(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,r=0;r<8;r++){var n=e[r]+t[r],a=65535&n,c=n>>>16,f=((a*a>>>17)+a*c>>>15)+c*c,d=((4294901760&n)*n|0)+((65535&n)*n|0);o[r]=f^d}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.Rabbit=r._createHelper(c)}(),e.Rabbit},"object"===c(t)?e.exports=t=o(r(2),r(32),r(29),r(25),r(12)):(a=[r(2),r(32),r(29),r(25),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){var n,a,i,o;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(e){return function(){var t=e,r=t.lib.StreamCipher,n=t.algo,a=[],i=[],o=[],c=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var a=0;a<4;a++)f.call(this);for(a=0;a<8;a++)n[a]^=r[a+4&7];if(t){var i=t.words,o=i[0],c=i[1],d=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),u=d>>>16|4294901760&s,b=s<<16|65535&d;for(n[0]^=d,n[1]^=u,n[2]^=s,n[3]^=b,n[4]^=d,n[5]^=u,n[6]^=s,n[7]^=b,a=0;a<4;a++)f.call(this)}},_doProcessBlock:function(e,t){var r=this._X;f.call(this),a[0]=r[0]^r[5]>>>16^r[3]<<16,a[1]=r[2]^r[7]>>>16^r[5]<<16,a[2]=r[4]^r[1]>>>16^r[7]<<16,a[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)a[n]=16711935&(a[n]<<8|a[n]>>>24)|4278255360&(a[n]<<24|a[n]>>>8),e[t+n]^=a[n]},blockSize:4,ivSize:2});function f(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(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,r=0;r<8;r++){var n=e[r]+t[r],a=65535&n,c=n>>>16,f=((a*a>>>17)+a*c>>>15)+c*c,d=((4294901760&n)*n|0)+((65535&n)*n|0);o[r]=f^d}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.RabbitLegacy=r._createHelper(c)}(),e.RabbitLegacy},"object"===c(t)?e.exports=t=o(r(2),r(32),r(29),r(25),r(12)):(a=[r(2),r(32),r(29),r(25),r(12)],void 0===(i="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=i))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetAccount=t.resetWallet=t.uploadInfoForWebLogin=t.uploadUserCollection=t.fetchUserCollection=t.uploadWalletInfo=t.getWalletInfo=t.clientAuth=t.twitterAuth=t.facebookAuth=t.tikTokAuth=t.appleAuth=t.googleAuth=void 0;var n=r(28),a=r(121);t.googleAuth=function(e){var t=n.WALLET_API_HOST+"/wallet/login/google";return a.POST_JSON(t,{token:e})},t.appleAuth=function(e){var t=n.WALLET_API_HOST+"/wallet/login/apple";return a.POST_JSON(t,{token:e})},t.tikTokAuth=function(e){var t=n.WALLET_API_HOST+"/wallet/login/tiktok";return a.POST_JSON(t,{code:e})},t.facebookAuth=function(e){var t=n.WALLET_API_HOST+"/wallet/login/facebook";return a.POST_JSON(t,{code:e})},t.twitterAuth=function(e){var t=n.WALLET_API_HOST+"/wallet/login/twitter";return a.POST_JSON(t,{code:e})},t.clientAuth=function(e){var t=n.WALLET_API_HOST+"/wallet/login/client";return a.POST_JSON(t,{code:e})},t.getWalletInfo=function(){var e=n.WALLET_API_HOST+"/wallet/info";return a.GET_JSON(e)},t.uploadWalletInfo=function(e){var t=n.WALLET_API_HOST+"/wallet/info";return a.POST_JSON(t,e)},t.fetchUserCollection=function(){var e=n.WALLET_API_HOST+"/wallet/collection";return a.GET_JSON(e)},t.uploadUserCollection=function(e){var t=n.WALLET_API_HOST+"/wallet/collection";return a.POST_JSON(t,e)},t.uploadInfoForWebLogin=function(e){var t=n.WALLET_API_HOST+"/bridge/upload";return a.POST_JSON(t,e)},t.resetWallet=function(){var e=n.WALLET_API_HOST+"/wallet/reset";return a.POST_JSON(e,{})},t.resetAccount=function(){var e=n.WALLET_API_HOST+"/wallet/account/reset";return a.POST_JSON(e,{})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.emailLogin=t.emailRegister=t.checkEmailRegister=t.verifyEmailByCode=t.sendCode=t.isEmailVerified=void 0;var n=r(28),a=r(121);t.isEmailVerified=function(){var e=n.WALLET_API_HOST+"/wallet/info/email";return a.GET_JSON(e)},t.sendCode=function(e){var t=n.WALLET_API_HOST+"/email/send_code";return a.POST_JSON(t,e)},t.verifyEmailByCode=function(e){var t=n.WALLET_API_HOST+"/email/verify_by_code";return a.POST_JSON(t,e)},t.checkEmailRegister=function(e){var t=n.WALLET_API_HOST+"/email/check";return a.POST_JSON(t,e)},t.emailRegister=function(e){var t=n.WALLET_API_HOST+"/email/regist";return a.POST_JSON(t,e)},t.emailLogin=function(e){var t=n.WALLET_API_HOST+"/wallet/login/email";return a.POST_JSON(t,e)}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{f(n.next(e))}catch(e){i(e)}}function c(e){try{f(n.throw(e))}catch(e){i(e)}}function f(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,c)}f((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(a=2&i[0]?n.return:i[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,i[1])).done)return a;switch(n=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=0||"tuple"===e)&&y[t])return!0;return(x[t]||"payable"===t)&&p.throwArgumentError("invalid modifier","name",t),!1}function g(e,t){for(var r in t)Object(a.c)(e,r,t[r])}var w=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),_=new RegExp(/^(.*)\[([0-9]*)\]$/),M=function(){function e(t,r){b(this,e),t!==m&&p.throwError("use fromString",i.a.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),g(this,r);var n=this.type.match(_);g(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:e.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 l(e,[{key:"format",value:function(e){if(e||(e=w.sighash),w[e]||p.throwArgumentError("invalid format type","format",e),e===w.json){var t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((function(t){return JSON.parse(t.format(e))}))),JSON.stringify(t)}var r="";return"array"===this.baseType?(r+=this.arrayChildren.format(e),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==w.sighash&&(r+=this.type),r+="("+this.components.map((function(t){return t.format(e)})).join(e===w.full?", ":",")+")"):r+=this.type,e!==w.sighash&&(!0===this.indexed&&(r+=" indexed"),e===w.full&&this.name&&(r+=" "+this.name)),r}}],[{key:"from",value:function(t,r){return"string"==typeof t?e.fromString(t,r):e.fromObject(t)}},{key:"fromObject",value:function(t){return e.isParamType(t)?t:new e(m,{name:t.name||null,type:C(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(e.fromObject):null})}},{key:"fromString",value:function(t,r){return function(t){return e.fromObject({name:t.name,type:t.type,indexed:t.indexed,components:t.components})}(function(e,t){var r=e;function n(t){p.throwArgumentError("unexpected character at position ".concat(t),"param",e)}function a(e){var r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ");for(var i={type:"",name:"",state:{allowType:!0}},o=i,c=0;c2&&p.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||p.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=n.a.from(r[1]),r[0]):e}function T(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((function(e){switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}}))}function O(e){var t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&p.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&p.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||p.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&p.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&p.throwArgumentError("unable to determine stateMutability","value",e),t}var P=function(e){c(r,e);var t=d(r);function r(){return b(this,r),t.apply(this,arguments)}return l(r,[{key:"format",value:function(e){if(e||(e=w.sighash),w[e]||p.throwArgumentError("invalid format type","format",e),e===w.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});e===w.sighash&&p.throwError("cannot format a constructor for sighash",i.a.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var t="constructor("+this.inputs.map((function(t){return t.format(e)})).join(e===w.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isConstructorFragment(e))return e;"constructor"!==e.type&&p.throwArgumentError("invalid constructor object","value",e);var t=O(e);t.constant&&p.throwArgumentError("constructor cannot be constant","value",e);var a={name:null,type:e.type,inputs:e.inputs?e.inputs.map(M.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?n.a.from(e.gas):null};return new r(m,a)}},{key:"fromString",value:function(e){var t={type:"constructor"},n=(e=E(e,t)).match(N);return n&&"constructor"===n[1].trim()||p.throwArgumentError("invalid constructor string","value",e),t.inputs=k(n[2].trim(),!1),T(n[3].trim(),t),r.fromObject(t)}},{key:"isConstructorFragment",value:function(e){return e&&e._isFragment&&"constructor"===e.type}}]),r}(S),j=function(e){c(r,e);var t=d(r);function r(){return b(this,r),t.apply(this,arguments)}return l(r,[{key:"format",value:function(e){if(e||(e=w.sighash),w[e]||p.throwArgumentError("invalid format type","format",e),e===w.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))})),outputs:this.outputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==w.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===w.full?", ":",")+") ",e!==w.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((function(t){return t.format(e)})).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isFunctionFragment(e))return e;"function"!==e.type&&p.throwArgumentError("invalid function object","value",e);var t=O(e),a={type:e.type,name:L(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(M.fromObject):[],outputs:e.outputs?e.outputs.map(M.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?n.a.from(e.gas):null};return new r(m,a)}},{key:"fromString",value:function(e){var t={type:"function"},n=(e=E(e,t)).split(" returns ");n.length>2&&p.throwArgumentError("invalid function string","value",e);var a=n[0].match(N);if(a||p.throwArgumentError("invalid function signature","value",e),t.name=a[1].trim(),t.name&&L(t.name),t.inputs=k(a[2],!1),T(a[3].trim(),t),n.length>1){var i=n[1].match(N);""==i[1].trim()&&""==i[3].trim()||p.throwArgumentError("unexpected tokens","value",e),t.outputs=k(i[2],!1)}else t.outputs=[];return r.fromObject(t)}},{key:"isFunctionFragment",value:function(e){return e&&e._isFragment&&"function"===e.type}}]),r}(P);function B(e){var t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||p.throwArgumentError("cannot specify user defined ".concat(t," error"),"fragment",e),e}var R=function(e){c(r,e);var t=d(r);function r(){return b(this,r),t.apply(this,arguments)}return l(r,[{key:"format",value:function(e){if(e||(e=w.sighash),w[e]||p.throwArgumentError("invalid format type","format",e),e===w.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==w.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===w.full?", ":",")+") ").trim()}}],[{key:"from",value:function(e){return"string"==typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isErrorFragment(e))return e;"error"!==e.type&&p.throwArgumentError("invalid error object","value",e);var t={type:e.type,name:L(e.name),inputs:e.inputs?e.inputs.map(M.fromObject):[]};return B(new r(m,t))}},{key:"fromString",value:function(e){var t={type:"error"},n=e.match(N);return n||p.throwArgumentError("invalid error signature","value",e),t.name=n[1].trim(),t.name&&L(t.name),t.inputs=k(n[2],!1),B(r.fromObject(t))}},{key:"isErrorFragment",value:function(e){return e&&e._isFragment&&"error"===e.type}}]),r}(S);function C(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}var I=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function L(e){return e&&e.match(I)||p.throwArgumentError('invalid identifier "'.concat(e,'"'),"value",e),e}var N=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");var U=r(1);function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e,t){for(var r=0;rthis.wordSize&&H.throwError("value out-of-bounds",i.a.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=Object(U.b)([this._padding.slice(t.length%this.wordSize),t])),t}},{key:"writeValue",value:function(e){return this._writeData(this._getValue(e))}},{key:"writeUpdatableValue",value:function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(r){e._data[t]=e._getValue(r)}}}]),e}(),W=function(){function e(t,r,n,i){z(this,e),Object(a.c)(this,"_data",Object(U.a)(t)),Object(a.c)(this,"wordSize",r||32),Object(a.c)(this,"_coerceFunc",n),Object(a.c)(this,"allowLoose",i),this._offset=0}return q(e,[{key:"data",get:function(){return Object(U.g)(this._data)}},{key:"consumed",get:function(){return this._offset}},{key:"coerce",value:function(t,r){return this._coerceFunc?this._coerceFunc(t,r):e.coerce(t,r)}},{key:"_peekBytes",value:function(e,t,r){var n=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:H.throwError("data out-of-bounds",i.a.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}},{key:"subReader",value:function(t){return new e(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}},{key:"readBytes",value:function(e,t){var r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}},{key:"readValue",value:function(){return n.a.from(this.readBytes(this.wordSize))}}],[{key:"coerce",value:function(e,t){var r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t}}]),e}(),V=r(34);function Z(e){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function J(e,t){for(var r=0;r=0?t:"")+"]",c=-1===t||e.dynamic;return(n=a.call(this,"array",i,r,c)).coder=e,n.length=t,n}return t=o,(r=[{key:"defaultValue",value:function(){for(var e=this.coder.defaultValue(),t=[],r=0;re._data.length&&le.throwError("insufficient data length",i.a.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});for(var r=[],n=0;n>6==2;o++)i++;return i}return e===ot.OVERRUN?r.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(it||(it={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(ot||(ot={}));var st=Object.freeze({error:function(e,t,r,n,a){return ft.throwArgumentError("invalid codepoint at offset ".concat(t,"; ").concat(e),"bytes",r)},ignore:dt,replace:function(e,t,r,n,a){return e===ot.OVERLONG?(n.push(a),0):(n.push(65533),dt(e,t,r))}});function ut(e,t){null==t&&(t=st.error),e=Object(U.a)(e);for(var r=[],n=0;n>7!=0){var i=null,o=null;if(192==(224&a))i=1,o=127;else if(224==(240&a))i=2,o=2047;else{if(240!=(248&a)){n+=t(128==(192&a)?ot.UNEXPECTED_CONTINUE:ot.BAD_PREFIX,n-1,e,r);continue}i=3,o=65535}if(n-1+i>=e.length)n+=t(ot.OVERRUN,n-1,e,r);else{for(var c=a&(1<<8-i-1)-1,f=0;f1114111?n+=t(ot.OUT_OF_RANGE,n-1-i,e,r,c):c>=55296&&c<=57343?n+=t(ot.UTF16_SURROGATE,n-1-i,e,r,c):c<=o?n+=t(ot.OVERLONG,n-1-i,e,r,c):r.push(c))}}else r.push(a)}return r}function bt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:it.current;t!=it.current&&(ft.checkNormalize(),e=e.normalize(t));for(var r=[],n=0;n>6|192),r.push(63&a|128);else if(55296==(64512&a)){n++;var i=e.charCodeAt(n);if(n>=e.length||56320!=(64512&i))throw new Error("invalid utf-8 string");var o=65536+((1023&a)<<10)+(1023&i);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)}return Object(U.a)(r)}function ht(e,t){return ut(e,t).map((function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))})).join("")}function lt(e){return(lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pt(e,t){for(var r=0;r256||n%8!=0)&&jt.throwArgumentError("invalid "+r[1]+" bit length","param",e),new ct(n/8,"int"===r[1],e.name)}if(r=e.type.match(Bt)){var a=parseInt(r[1]);return(0===a||a>32)&&jt.throwArgumentError("invalid bytes length","param",e),new Ke(a,e.name)}return jt.throwArgumentError("invalid type","type",e.type)}},{key:"_getWordSize",value:function(){return 32}},{key:"_getReader",value:function(e,t){return new W(e,this._getWordSize(),this.coerceFunc,t)}},{key:"_getWriter",value:function(){return new G(this._getWordSize())}},{key:"getDefaultValue",value:function(e){var t=this,r=e.map((function(e){return t._getCoder(M.from(e))}));return new Ot(r,"_").defaultValue()}},{key:"encode",value:function(e,t){var r=this;e.length!==t.length&&jt.throwError("types/values length mismatch",i.a.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var n=e.map((function(e){return r._getCoder(M.from(e))})),a=new Ot(n,"_"),o=this._getWriter();return a.encode(o,t),o.data}},{key:"decode",value:function(e,t,r){var n=this,a=e.map((function(e){return n._getCoder(M.from(e))}));return new Ot(a,"_").decode(this._getReader(Object(U.a)(t),r))}}])&&Pt(t.prototype,r),n&&Pt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),It=new Ct,Lt=r(20);function Nt(e){return Object(Lt.a)(bt(e))}function Ut(e){return(Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zt(e,t){for(var r=0;r1&&Vt.throwArgumentError("multiple matching functions","name",r),this.functions[n[0]]}var a=this.functions[j.fromString(e).format()];return a||Vt.throwArgumentError("no matching function","signature",e),a}},{key:"getEvent",value:function(e){if(Object(U.j)(e)){var t=e.toLowerCase();for(var r in this.events)if(t===this.getEventTopic(r))return this.events[r];Vt.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){var n=e.trim(),a=Object.keys(this.events).filter((function(e){return e.split("(")[0]===n}));return 0===a.length?Vt.throwArgumentError("no matching event","name",n):a.length>1&&Vt.throwArgumentError("multiple matching events","name",n),this.events[a[0]]}var i=this.events[A.fromString(e).format()];return i||Vt.throwArgumentError("no matching event","signature",e),i}},{key:"getError",value:function(e){if(Object(U.j)(e)){var t=Object(a.d)(this.constructor,"getSighash");for(var r in this.errors){if(e===t(this.errors[r]))return this.errors[r]}Vt.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){var n=e.trim(),i=Object.keys(this.errors).filter((function(e){return e.split("(")[0]===n}));return 0===i.length?Vt.throwArgumentError("no matching error","name",n):i.length>1&&Vt.throwArgumentError("multiple matching errors","name",n),this.errors[i[0]]}var o=this.errors[j.fromString(e).format()];return o||Vt.throwArgumentError("no matching error","signature",e),o}},{key:"getSighash",value:function(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return Object(a.d)(this.constructor,"getSighash")(e)}},{key:"getEventTopic",value:function(e){return"string"==typeof e&&(e=this.getEvent(e)),Object(a.d)(this.constructor,"getEventTopic")(e)}},{key:"_decodeParams",value:function(e,t){return this._abiCoder.decode(e,t)}},{key:"_encodeParams",value:function(e,t){return this._abiCoder.encode(e,t)}},{key:"encodeDeploy",value:function(e){return this._encodeParams(this.deploy.inputs,e||[])}},{key:"decodeErrorResult",value:function(e,t){"string"==typeof e&&(e=this.getError(e));var r=Object(U.a)(t);return Object(U.g)(r.slice(0,4))!==this.getSighash(e)&&Vt.throwArgumentError("data signature does not match error ".concat(e.name,"."),"data",Object(U.g)(r)),this._decodeParams(e.inputs,r.slice(4))}},{key:"encodeErrorResult",value:function(e,t){return"string"==typeof e&&(e=this.getError(e)),Object(U.g)(Object(U.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionData",value:function(e,t){"string"==typeof e&&(e=this.getFunction(e));var r=Object(U.a)(t);return Object(U.g)(r.slice(0,4))!==this.getSighash(e)&&Vt.throwArgumentError("data signature does not match function ".concat(e.name,"."),"data",Object(U.g)(r)),this._decodeParams(e.inputs,r.slice(4))}},{key:"encodeFunctionData",value:function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(U.g)(Object(U.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionResult",value:function(e,t){"string"==typeof e&&(e=this.getFunction(e));var r=Object(U.a)(t),n=null,a="",o=null,c=null,f=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(u){}break;case 4:var d=Object(U.g)(r.slice(0,4)),s=$t[d];if(s)o=this._abiCoder.decode(s.inputs,r.slice(4)),c=s.name,f=s.signature,s.reason&&(n=o[0]),"Error"===c?a="; VM Exception while processing transaction: reverted with reason string ".concat(JSON.stringify(o[0])):"Panic"===c&&(a="; VM Exception while processing transaction: reverted with panic code ".concat(o[0]));else try{var u=this.getError(d);o=this._abiCoder.decode(u.inputs,r.slice(4)),c=u.name,f=u.format()}catch(u){}}return Vt.throwError("call revert exception"+a,i.a.errors.CALL_EXCEPTION,{method:e.format(),data:Object(U.g)(t),errorArgs:o,errorName:c,errorSignature:f,reason:n})}},{key:"encodeFunctionResult",value:function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(U.g)(this._abiCoder.encode(e.outputs,t||[]))}},{key:"encodeFilterTopics",value:function(e,t){var r=this;"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&Vt.throwError("too many arguments for "+e.format(),i.a.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var a=[];e.anonymous||a.push(this.getEventTopic(e));var o=function(e,t){return"string"===e.type?Nt(t):"bytes"===e.type?Object(Lt.a)(Object(U.g)(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=n.a.from(t).toHexString()),"address"===e.type&&r._abiCoder.encode(["address"],[t]),Object(U.f)(Object(U.g)(t),32))};for(t.forEach((function(t,r){var n=e.inputs[r];n.indexed?null==t?a.push(null):"array"===n.baseType||"tuple"===n.baseType?Vt.throwArgumentError("filtering with tuples or arrays not supported","contract."+n.name,t):Array.isArray(t)?a.push(t.map((function(e){return o(n,e)}))):a.push(o(n,t)):null!=t&&Vt.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+n.name,t)}));a.length&&null===a[a.length-1];)a.pop();return a}},{key:"encodeEventLog",value:function(e,t){var r=this;"string"==typeof e&&(e=this.getEvent(e));var n=[],a=[],i=[];return e.anonymous||n.push(this.getEventTopic(e)),t.length!==e.inputs.length&&Vt.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((function(e,o){var c=t[o];if(e.indexed)if("string"===e.type)n.push(Nt(c));else if("bytes"===e.type)n.push(Object(Lt.a)(c));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");n.push(r._abiCoder.encode([e.type],[c]))}else a.push(e),i.push(c)})),{data:this._abiCoder.encode(a,i),topics:n}}},{key:"decodeEventLog",value:function(e,t,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){var n=this.getEventTopic(e);Object(U.j)(r[0],32)&&r[0].toLowerCase()===n||Vt.throwError("fragment/topic mismatch",i.a.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:n,value:r[0]}),r=r.slice(1)}var a=[],o=[],c=[];e.inputs.forEach((function(e,t){e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(a.push(M.fromObject({type:"bytes32",name:e.name})),c.push(!0)):(a.push(e),c.push(!1)):(o.push(e),c.push(!1))}));var f=null!=r?this._abiCoder.decode(a,Object(U.b)(r)):null,d=this._abiCoder.decode(o,t,!0),s=[],u=0,b=0;e.inputs.forEach((function(e,t){if(e.indexed)if(null==f)s[t]=new Yt({_isIndexed:!0,hash:null});else if(c[t])s[t]=new Yt({_isIndexed:!0,hash:f[b++]});else try{s[t]=f[b++]}catch(e){s[t]=e}else try{s[t]=d[u++]}catch(e){s[t]=e}if(e.name&&null==s[e.name]){var r=s[t];r instanceof Error?Object.defineProperty(s,e.name,{enumerable:!0,get:function(){throw Qt("property ".concat(JSON.stringify(e.name)),r)}}):s[e.name]=r}}));for(var h=function(e){var t=s[e];t instanceof Error&&Object.defineProperty(s,e,{enumerable:!0,get:function(){throw Qt("index ".concat(e),t)}})},l=0;l=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void a(!1,"Invalid character in "+e)}function d(e,t,r){var n=f(e,r);return r-1>=t&&(n|=f(e,r-1)<<4),n}function s(e,t,r,n){for(var i=0,o=0,c=Math.min(e.length,r),f=t;f=49?d-49+10:d>=17?d-17+10:d,a(d>=0&&o0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n);if("object"===t(e))return this._initArray(e,r,n);"hex"===r&&(r=16),a(r===(0|r)&&r>=2&&r<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[i]|=o<>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);else if("le"===r)for(n=0,i=0;n>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)a=d(e,t,n)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,a=1;a<=67108863;a*=t)n++;n--,a=a/t|0;for(var i=e.length-r,o=i%n,c=Math.min(i,i-o)+r,f=0,d=r;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=b}catch(e){o.prototype.inspect=b}else o.prototype.inspect=b;function b(){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],p=[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];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,i=0,o=0;o>>24-n&16777215,(n+=2)>=26&&(n-=26,o--),r=0!==i||o!==this.length-1?h[6-f.length]+f+r:f+r}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=l[e],s=p[e];r="";var u=this.clone();for(u.negative=0;!u.isZero();){var b=u.modrn(s).toString(e);r=(u=u.idivn(s)).isZero()?b+r:h[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}a(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},c&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(c,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,c=67108863&o,f=o/67108864|0;r.words[0]=c;for(var d=1;d>>26,u=67108863&f,b=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=b;h++){var l=d-h|0;s+=(o=(a=0|e.words[l])*(i=0|t.words[h])+u)/67108864|0,u=67108863&o}r.words[d]=0|u,f=0|s}return 0!==f?r.words[d]=0|f:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var n=this.byteLength(),i=r||Math.max(1,n);a(n<=i,"byte array longer than desired length"),a(i>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,i);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,n),o},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,a=0,i=0;a>8&255),r>16&255),6===i?(r>24&255),n=0,i=0):(n=o>>>24,i+=2)}if(r=0&&(e[r--]=o>>8&255),r>=0&&(e[r--]=o>>16&255),6===i?(r>=0&&(e[r--]=o>>24&255),n=0,i=0):(n=o>>>24,i+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=r.length,0!==a)this.words[this.length]=a,this.length++;else if(r!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,h=0|o[1],l=8191&h,p=h>>>13,m=0|o[2],x=8191&m,y=m>>>13,v=0|o[3],g=8191&v,w=v>>>13,_=0|o[4],M=8191&_,k=_>>>13,S=0|o[5],A=8191&S,E=S>>>13,T=0|o[6],O=8191&T,P=T>>>13,j=0|o[7],B=8191&j,R=j>>>13,C=0|o[8],I=8191&C,L=C>>>13,N=0|o[9],U=8191&N,z=N>>>13,F=0|c[0],q=8191&F,H=F>>>13,D=0|c[1],K=8191&D,G=D>>>13,W=0|c[2],V=8191&W,Z=W>>>13,J=0|c[3],X=8191&J,Y=J>>>13,$=0|c[4],Q=8191&$,ee=$>>>13,te=0|c[5],re=8191&te,ne=te>>>13,ae=0|c[6],ie=8191&ae,oe=ae>>>13,ce=0|c[7],fe=8191&ce,de=ce>>>13,se=0|c[8],ue=8191&se,be=se>>>13,he=0|c[9],le=8191&he,pe=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(d+(n=Math.imul(u,q))|0)+((8191&(a=(a=Math.imul(u,H))+Math.imul(b,q)|0))<<13)|0;d=((i=Math.imul(b,H))+(a>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(l,q),a=(a=Math.imul(l,H))+Math.imul(p,q)|0,i=Math.imul(p,H);var xe=(d+(n=n+Math.imul(u,K)|0)|0)+((8191&(a=(a=a+Math.imul(u,G)|0)+Math.imul(b,K)|0))<<13)|0;d=((i=i+Math.imul(b,G)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(x,q),a=(a=Math.imul(x,H))+Math.imul(y,q)|0,i=Math.imul(y,H),n=n+Math.imul(l,K)|0,a=(a=a+Math.imul(l,G)|0)+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0;var ye=(d+(n=n+Math.imul(u,V)|0)|0)+((8191&(a=(a=a+Math.imul(u,Z)|0)+Math.imul(b,V)|0))<<13)|0;d=((i=i+Math.imul(b,Z)|0)+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(g,q),a=(a=Math.imul(g,H))+Math.imul(w,q)|0,i=Math.imul(w,H),n=n+Math.imul(x,K)|0,a=(a=a+Math.imul(x,G)|0)+Math.imul(y,K)|0,i=i+Math.imul(y,G)|0,n=n+Math.imul(l,V)|0,a=(a=a+Math.imul(l,Z)|0)+Math.imul(p,V)|0,i=i+Math.imul(p,Z)|0;var ve=(d+(n=n+Math.imul(u,X)|0)|0)+((8191&(a=(a=a+Math.imul(u,Y)|0)+Math.imul(b,X)|0))<<13)|0;d=((i=i+Math.imul(b,Y)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(M,q),a=(a=Math.imul(M,H))+Math.imul(k,q)|0,i=Math.imul(k,H),n=n+Math.imul(g,K)|0,a=(a=a+Math.imul(g,G)|0)+Math.imul(w,K)|0,i=i+Math.imul(w,G)|0,n=n+Math.imul(x,V)|0,a=(a=a+Math.imul(x,Z)|0)+Math.imul(y,V)|0,i=i+Math.imul(y,Z)|0,n=n+Math.imul(l,X)|0,a=(a=a+Math.imul(l,Y)|0)+Math.imul(p,X)|0,i=i+Math.imul(p,Y)|0;var ge=(d+(n=n+Math.imul(u,Q)|0)|0)+((8191&(a=(a=a+Math.imul(u,ee)|0)+Math.imul(b,Q)|0))<<13)|0;d=((i=i+Math.imul(b,ee)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(A,q),a=(a=Math.imul(A,H))+Math.imul(E,q)|0,i=Math.imul(E,H),n=n+Math.imul(M,K)|0,a=(a=a+Math.imul(M,G)|0)+Math.imul(k,K)|0,i=i+Math.imul(k,G)|0,n=n+Math.imul(g,V)|0,a=(a=a+Math.imul(g,Z)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,Z)|0,n=n+Math.imul(x,X)|0,a=(a=a+Math.imul(x,Y)|0)+Math.imul(y,X)|0,i=i+Math.imul(y,Y)|0,n=n+Math.imul(l,Q)|0,a=(a=a+Math.imul(l,ee)|0)+Math.imul(p,Q)|0,i=i+Math.imul(p,ee)|0;var we=(d+(n=n+Math.imul(u,re)|0)|0)+((8191&(a=(a=a+Math.imul(u,ne)|0)+Math.imul(b,re)|0))<<13)|0;d=((i=i+Math.imul(b,ne)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(O,q),a=(a=Math.imul(O,H))+Math.imul(P,q)|0,i=Math.imul(P,H),n=n+Math.imul(A,K)|0,a=(a=a+Math.imul(A,G)|0)+Math.imul(E,K)|0,i=i+Math.imul(E,G)|0,n=n+Math.imul(M,V)|0,a=(a=a+Math.imul(M,Z)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,Z)|0,n=n+Math.imul(g,X)|0,a=(a=a+Math.imul(g,Y)|0)+Math.imul(w,X)|0,i=i+Math.imul(w,Y)|0,n=n+Math.imul(x,Q)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(y,Q)|0,i=i+Math.imul(y,ee)|0,n=n+Math.imul(l,re)|0,a=(a=a+Math.imul(l,ne)|0)+Math.imul(p,re)|0,i=i+Math.imul(p,ne)|0;var _e=(d+(n=n+Math.imul(u,ie)|0)|0)+((8191&(a=(a=a+Math.imul(u,oe)|0)+Math.imul(b,ie)|0))<<13)|0;d=((i=i+Math.imul(b,oe)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(B,q),a=(a=Math.imul(B,H))+Math.imul(R,q)|0,i=Math.imul(R,H),n=n+Math.imul(O,K)|0,a=(a=a+Math.imul(O,G)|0)+Math.imul(P,K)|0,i=i+Math.imul(P,G)|0,n=n+Math.imul(A,V)|0,a=(a=a+Math.imul(A,Z)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,Z)|0,n=n+Math.imul(M,X)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,Y)|0,n=n+Math.imul(g,Q)|0,a=(a=a+Math.imul(g,ee)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,n=n+Math.imul(x,re)|0,a=(a=a+Math.imul(x,ne)|0)+Math.imul(y,re)|0,i=i+Math.imul(y,ne)|0,n=n+Math.imul(l,ie)|0,a=(a=a+Math.imul(l,oe)|0)+Math.imul(p,ie)|0,i=i+Math.imul(p,oe)|0;var Me=(d+(n=n+Math.imul(u,fe)|0)|0)+((8191&(a=(a=a+Math.imul(u,de)|0)+Math.imul(b,fe)|0))<<13)|0;d=((i=i+Math.imul(b,de)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(I,q),a=(a=Math.imul(I,H))+Math.imul(L,q)|0,i=Math.imul(L,H),n=n+Math.imul(B,K)|0,a=(a=a+Math.imul(B,G)|0)+Math.imul(R,K)|0,i=i+Math.imul(R,G)|0,n=n+Math.imul(O,V)|0,a=(a=a+Math.imul(O,Z)|0)+Math.imul(P,V)|0,i=i+Math.imul(P,Z)|0,n=n+Math.imul(A,X)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(E,X)|0,i=i+Math.imul(E,Y)|0,n=n+Math.imul(M,Q)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,ee)|0,n=n+Math.imul(g,re)|0,a=(a=a+Math.imul(g,ne)|0)+Math.imul(w,re)|0,i=i+Math.imul(w,ne)|0,n=n+Math.imul(x,ie)|0,a=(a=a+Math.imul(x,oe)|0)+Math.imul(y,ie)|0,i=i+Math.imul(y,oe)|0,n=n+Math.imul(l,fe)|0,a=(a=a+Math.imul(l,de)|0)+Math.imul(p,fe)|0,i=i+Math.imul(p,de)|0;var ke=(d+(n=n+Math.imul(u,ue)|0)|0)+((8191&(a=(a=a+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((i=i+Math.imul(b,be)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,q),a=(a=Math.imul(U,H))+Math.imul(z,q)|0,i=Math.imul(z,H),n=n+Math.imul(I,K)|0,a=(a=a+Math.imul(I,G)|0)+Math.imul(L,K)|0,i=i+Math.imul(L,G)|0,n=n+Math.imul(B,V)|0,a=(a=a+Math.imul(B,Z)|0)+Math.imul(R,V)|0,i=i+Math.imul(R,Z)|0,n=n+Math.imul(O,X)|0,a=(a=a+Math.imul(O,Y)|0)+Math.imul(P,X)|0,i=i+Math.imul(P,Y)|0,n=n+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,ee)|0,n=n+Math.imul(M,re)|0,a=(a=a+Math.imul(M,ne)|0)+Math.imul(k,re)|0,i=i+Math.imul(k,ne)|0,n=n+Math.imul(g,ie)|0,a=(a=a+Math.imul(g,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,n=n+Math.imul(x,fe)|0,a=(a=a+Math.imul(x,de)|0)+Math.imul(y,fe)|0,i=i+Math.imul(y,de)|0,n=n+Math.imul(l,ue)|0,a=(a=a+Math.imul(l,be)|0)+Math.imul(p,ue)|0,i=i+Math.imul(p,be)|0;var Se=(d+(n=n+Math.imul(u,le)|0)|0)+((8191&(a=(a=a+Math.imul(u,pe)|0)+Math.imul(b,le)|0))<<13)|0;d=((i=i+Math.imul(b,pe)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(U,K),a=(a=Math.imul(U,G))+Math.imul(z,K)|0,i=Math.imul(z,G),n=n+Math.imul(I,V)|0,a=(a=a+Math.imul(I,Z)|0)+Math.imul(L,V)|0,i=i+Math.imul(L,Z)|0,n=n+Math.imul(B,X)|0,a=(a=a+Math.imul(B,Y)|0)+Math.imul(R,X)|0,i=i+Math.imul(R,Y)|0,n=n+Math.imul(O,Q)|0,a=(a=a+Math.imul(O,ee)|0)+Math.imul(P,Q)|0,i=i+Math.imul(P,ee)|0,n=n+Math.imul(A,re)|0,a=(a=a+Math.imul(A,ne)|0)+Math.imul(E,re)|0,i=i+Math.imul(E,ne)|0,n=n+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,n=n+Math.imul(g,fe)|0,a=(a=a+Math.imul(g,de)|0)+Math.imul(w,fe)|0,i=i+Math.imul(w,de)|0,n=n+Math.imul(x,ue)|0,a=(a=a+Math.imul(x,be)|0)+Math.imul(y,ue)|0,i=i+Math.imul(y,be)|0;var Ae=(d+(n=n+Math.imul(l,le)|0)|0)+((8191&(a=(a=a+Math.imul(l,pe)|0)+Math.imul(p,le)|0))<<13)|0;d=((i=i+Math.imul(p,pe)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,V),a=(a=Math.imul(U,Z))+Math.imul(z,V)|0,i=Math.imul(z,Z),n=n+Math.imul(I,X)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(L,X)|0,i=i+Math.imul(L,Y)|0,n=n+Math.imul(B,Q)|0,a=(a=a+Math.imul(B,ee)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,ee)|0,n=n+Math.imul(O,re)|0,a=(a=a+Math.imul(O,ne)|0)+Math.imul(P,re)|0,i=i+Math.imul(P,ne)|0,n=n+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,n=n+Math.imul(M,fe)|0,a=(a=a+Math.imul(M,de)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,de)|0,n=n+Math.imul(g,ue)|0,a=(a=a+Math.imul(g,be)|0)+Math.imul(w,ue)|0,i=i+Math.imul(w,be)|0;var Ee=(d+(n=n+Math.imul(x,le)|0)|0)+((8191&(a=(a=a+Math.imul(x,pe)|0)+Math.imul(y,le)|0))<<13)|0;d=((i=i+Math.imul(y,pe)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,X),a=(a=Math.imul(U,Y))+Math.imul(z,X)|0,i=Math.imul(z,Y),n=n+Math.imul(I,Q)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(L,Q)|0,i=i+Math.imul(L,ee)|0,n=n+Math.imul(B,re)|0,a=(a=a+Math.imul(B,ne)|0)+Math.imul(R,re)|0,i=i+Math.imul(R,ne)|0,n=n+Math.imul(O,ie)|0,a=(a=a+Math.imul(O,oe)|0)+Math.imul(P,ie)|0,i=i+Math.imul(P,oe)|0,n=n+Math.imul(A,fe)|0,a=(a=a+Math.imul(A,de)|0)+Math.imul(E,fe)|0,i=i+Math.imul(E,de)|0,n=n+Math.imul(M,ue)|0,a=(a=a+Math.imul(M,be)|0)+Math.imul(k,ue)|0,i=i+Math.imul(k,be)|0;var Te=(d+(n=n+Math.imul(g,le)|0)|0)+((8191&(a=(a=a+Math.imul(g,pe)|0)+Math.imul(w,le)|0))<<13)|0;d=((i=i+Math.imul(w,pe)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,Q),a=(a=Math.imul(U,ee))+Math.imul(z,Q)|0,i=Math.imul(z,ee),n=n+Math.imul(I,re)|0,a=(a=a+Math.imul(I,ne)|0)+Math.imul(L,re)|0,i=i+Math.imul(L,ne)|0,n=n+Math.imul(B,ie)|0,a=(a=a+Math.imul(B,oe)|0)+Math.imul(R,ie)|0,i=i+Math.imul(R,oe)|0,n=n+Math.imul(O,fe)|0,a=(a=a+Math.imul(O,de)|0)+Math.imul(P,fe)|0,i=i+Math.imul(P,de)|0,n=n+Math.imul(A,ue)|0,a=(a=a+Math.imul(A,be)|0)+Math.imul(E,ue)|0,i=i+Math.imul(E,be)|0;var Oe=(d+(n=n+Math.imul(M,le)|0)|0)+((8191&(a=(a=a+Math.imul(M,pe)|0)+Math.imul(k,le)|0))<<13)|0;d=((i=i+Math.imul(k,pe)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,re),a=(a=Math.imul(U,ne))+Math.imul(z,re)|0,i=Math.imul(z,ne),n=n+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(L,ie)|0,i=i+Math.imul(L,oe)|0,n=n+Math.imul(B,fe)|0,a=(a=a+Math.imul(B,de)|0)+Math.imul(R,fe)|0,i=i+Math.imul(R,de)|0,n=n+Math.imul(O,ue)|0,a=(a=a+Math.imul(O,be)|0)+Math.imul(P,ue)|0,i=i+Math.imul(P,be)|0;var Pe=(d+(n=n+Math.imul(A,le)|0)|0)+((8191&(a=(a=a+Math.imul(A,pe)|0)+Math.imul(E,le)|0))<<13)|0;d=((i=i+Math.imul(E,pe)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(z,ie)|0,i=Math.imul(z,oe),n=n+Math.imul(I,fe)|0,a=(a=a+Math.imul(I,de)|0)+Math.imul(L,fe)|0,i=i+Math.imul(L,de)|0,n=n+Math.imul(B,ue)|0,a=(a=a+Math.imul(B,be)|0)+Math.imul(R,ue)|0,i=i+Math.imul(R,be)|0;var je=(d+(n=n+Math.imul(O,le)|0)|0)+((8191&(a=(a=a+Math.imul(O,pe)|0)+Math.imul(P,le)|0))<<13)|0;d=((i=i+Math.imul(P,pe)|0)+(a>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(U,fe),a=(a=Math.imul(U,de))+Math.imul(z,fe)|0,i=Math.imul(z,de),n=n+Math.imul(I,ue)|0,a=(a=a+Math.imul(I,be)|0)+Math.imul(L,ue)|0,i=i+Math.imul(L,be)|0;var Be=(d+(n=n+Math.imul(B,le)|0)|0)+((8191&(a=(a=a+Math.imul(B,pe)|0)+Math.imul(R,le)|0))<<13)|0;d=((i=i+Math.imul(R,pe)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,ue),a=(a=Math.imul(U,be))+Math.imul(z,ue)|0,i=Math.imul(z,be);var Re=(d+(n=n+Math.imul(I,le)|0)|0)+((8191&(a=(a=a+Math.imul(I,pe)|0)+Math.imul(L,le)|0))<<13)|0;d=((i=i+Math.imul(L,pe)|0)+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Ce=(d+(n=Math.imul(U,le))|0)+((8191&(a=(a=Math.imul(U,pe))+Math.imul(z,le)|0))<<13)|0;return d=((i=Math.imul(z,pe))+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=xe,f[2]=ye,f[3]=ve,f[4]=ge,f[5]=we,f[6]=_e,f[7]=Me,f[8]=ke,f[9]=Se,f[10]=Ae,f[11]=Ee,f[12]=Te,f[13]=Oe,f[14]=Pe,f[15]=je,f[16]=Be,f[17]=Re,f[18]=Ce,0!==d&&(f[19]=d,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}r.words[i]=c,n=o,o=a}return 0!==n?r.words[i]=n:r.length--,r._strip()}function v(e,t,r){return y(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(x=m),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?x(this,e,t):r<63?m(this,e,t):r<1024?y(this,e,t):v(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},g.prototype.permute=function(e,t,r,n,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,r[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,r+=i/67108864|0,r+=o>>>26,this.words[n]=67108863&o}return 0!==r&&(this.words[n]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>a&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,n=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),c=67108863^67108863>>>i<o)for(this.length-=o,d=0;d=0&&(0!==s||d>=n);d--){var u=0|this.words[d];this.words[d]=s<<26-i|u>>>i,s=u&c}return f&&0!==s&&(f.words[f.length++]=s),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return a(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(a("number"==typeof e),a(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(f/67108864|0),this.words[n+r]=67108863&i}for(;n>26,this.words[n+r]=67108863&i;if(0===c)return this._strip();for(a(-1===c),c=0,n=0;n>26,this.words[n]=67108863&i;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),a=e,i=0|a.words[a.length-1];0!==(r=26-this._countBits(i))&&(a=a.ushln(r),n.iushln(r),i=0|a.words[a.length-1]);var c,f=n.length-a.length;if("mod"!==t){(c=new o(null)).length=f+1,c.words=new Array(c.length);for(var d=0;d=0;u--){var b=67108864*(0|n.words[a.length+u])+(0|n.words[a.length+u-1]);for(b=Math.min(b/i|0,67108863),n._ishlnsubmul(a,b,u);0!==n.negative;)b--,n.negative=0,n._ishlnsubmul(a,1,u),n.isZero()||(n.negative^=1);c&&(c.words[u]=b)}return c&&c._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:c||null,mod:n}},o.prototype.divmod=function(e,t,r){return a(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(c=this.neg().divmod(e,t),"mod"!==t&&(n=c.div.neg()),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(c=this.divmod(e.neg(),t),"mod"!==t&&(n=c.div.neg()),{div:n,mod:c.mod}):0!=(this.negative&e.negative)?(c=this.neg().divmod(e.neg(),t),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.isub(e)),{div:c.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,i,c},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),i=r.cmp(n);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),a(e<=67108863);for(var r=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(r*n+(0|this.words[i]))%e;return t?-n:n},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),a(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*r;this.words[n]=i/e|0,r=i%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),i=new o(0),c=new o(0),f=new o(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var s=r.clone(),u=t.clone();!t.isZero();){for(var b=0,h=1;0==(t.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(s),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var l=0,p=1;0==(r.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(r.iushrn(l);l-- >0;)(c.isOdd()||f.isOdd())&&(c.iadd(s),f.isub(u)),c.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(c),i.isub(f)):(r.isub(t),c.isub(n),f.isub(i))}return{a:c,b:f,gcd:r.iushln(d)}},o.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new o(1),c=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var d=0,s=1;0==(t.words[0]&s)&&d<26;++d,s<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(f),i.iushrn(1);for(var u=0,b=1;0==(r.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(r.iushrn(u);u-- >0;)c.isOdd()&&c.iadd(f),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(c)):(r.isub(t),c.isub(i))}return(n=0===t.cmpn(1)?i:c).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var a=t.cmp(r);if(a<0){var i=t;t=r,r=i}else if(0===a||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,c&=67108863,this.words[o]=c}return 0!==i&&(this.words[o]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var n=0|this.words[r],a=0|e.words[r];if(n!==a){na&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new E(e)},o.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}_.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},i(M,_),M.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,a=i}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},M.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new M;else if("p224"===e)t=new k;else if("p192"===e)t=new S;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return w[e]=t,t},E.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);a(!n.isZero());var c=new o(1).toRed(this),f=c.redNeg(),d=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new o(2*s*s).toRed(this);0!==this.pow(s,d).cmp(f);)s.redIAdd(f);for(var u=this.pow(s,n),b=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),l=i;0!==h.cmp(c);){for(var p=h,m=0;0!==p.cmp(c);m++)p=p.redSqr();a(m=0;n--){for(var d=t.words[n],s=f-1;s>=0;s--){var u=d>>s&1;a!==r[0]&&(a=this.sqr(a)),0!==u||0!==i?(i<<=1,i|=u,(4===++c||0===n&&0===s)&&(a=this.mul(a,r[i]),c=0,i=0)):c=0}f=26}return a},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new T(e)},i(T,E),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(15)(e))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return D}));var n=r(8),a=r.n(n),i=r(26),o=r.n(i);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self;function f(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}var d=s;function s(e,t){if(!e)throw new Error(t||"Assertion failed")}s.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var u=f((function(e,t){var r=t;function n(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",r=0;r>8,o=255&a;i?r.push(i,o):r.push(o)}return r},r.zero2=n,r.toHex=a,r.encode=function(e,t){return"hex"===t?a(e):e}})),b=f((function(e,t){var r=t;r.assert=d,r.toArray=u.toArray,r.zero2=u.zero2,r.toHex=u.toHex,r.encode=u.encode,r.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var a=1<(a>>1)-1?(a>>1)-f:f,i.isubn(c)):c=0,n[o]=c,i.iushrn(1)}return n},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,a=0,i=0;e.cmpn(-a)>0||t.cmpn(-i)>0;){var o,c,f=e.andln(3)+a&3,d=t.andln(3)+i&3;3===f&&(f=-1),3===d&&(d=-1),o=0==(1&f)?0:3!==(n=e.andln(7)+a&7)&&5!==n||2!==d?f:-f,r[0].push(o),c=0==(1&d)?0:3!==(n=t.andln(7)+i&7)&&5!==n||2!==f?d:-d,r[1].push(c),2*a===o+1&&(a=1-a),2*i===c+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new a.a(e,"hex","le")}})),h=b.getNAF,l=b.getJSF,p=b.assert;function m(e,t){this.type=e,this.p=new a.a(t.p,16),this.red=t.prime?a.a.red(t.prime):a.a.mont(this.p),this.zero=new a.a(0).toRed(this.red),this.one=new a.a(1).toRed(this.red),this.two=new a.a(2).toRed(this.red),this.n=t.n&&new a.a(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 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 x=m;function y(e,t){this.curve=e,this.type=t,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(e,t){p(e.precomputed);var r=e._getDoubles(),n=h(t,1,this._bitLength),a=(1<=i;f--)o=(o<<1)+n[f];c.push(o)}for(var d=this.jpoint(null,null,null),s=this.jpoint(null,null,null),u=a;u>0;u--){for(i=0;i=0;c--){for(var f=0;c>=0&&0===i[c];c--)f++;if(c>=0&&f++,o=o.dblp(f),c<0)break;var d=i[c];p(0!==d),o="affine"===e.type?d>0?o.mixedAdd(a[d-1>>1]):o.mixedAdd(a[-d-1>>1].neg()):d>0?o.add(a[d-1>>1]):o.add(a[-d-1>>1].neg())}return"affine"===e.type?o.toP():o},m.prototype._wnafMulAdd=function(e,t,r,n,a){var i,o,c,f=this._wnafT1,d=this._wnafT2,s=this._wnafT3,u=0;for(i=0;i=1;i-=2){var p=i-1,m=i;if(1===f[p]&&1===f[m]){var x=[t[p],null,null,t[m]];0===t[p].y.cmp(t[m].y)?(x[1]=t[p].add(t[m]),x[2]=t[p].toJ().mixedAdd(t[m].neg())):0===t[p].y.cmp(t[m].y.redNeg())?(x[1]=t[p].toJ().mixedAdd(t[m]),x[2]=t[p].add(t[m].neg())):(x[1]=t[p].toJ().mixedAdd(t[m]),x[2]=t[p].toJ().mixedAdd(t[m].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=l(r[p],r[m]);for(u=Math.max(v[0].length,u),s[p]=new Array(u),s[m]=new Array(u),o=0;o=0;i--){for(var k=0;i>=0;){var S=!0;for(o=0;o=0&&k++,_=_.dblp(k),i<0)break;for(o=0;o0?c=d[o][A-1>>1]:A<0&&(c=d[o][-A-1>>1].neg()),_="affine"===c.type?_.mixedAdd(c):_.add(c))}}for(i=0;i=Math.ceil((e.bitLength()+1)/t.step)},y.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,a=0;a=0&&(o=t,c=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),c=c.neg()),[{a:n,b:i},{a:o,b:c}]},w.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],a=n.b.mul(e).divRound(this.n),i=r.b.neg().mul(e).divRound(this.n),o=a.mul(r.a),c=i.mul(n.a),f=a.mul(r.b),d=i.mul(n.b);return{k1:e.sub(o).sub(c),k2:f.add(d).neg()}},w.prototype.pointFromX=function(e,t){(e=new a.a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.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(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},w.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),a=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(a).cmpn(0)},w.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,a=this._endoWnafT2,i=0;i":""},M.prototype.isInfinity=function(){return this.inf},M.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(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},M.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),a=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),i=a.redSqr().redISub(this.x.redAdd(this.x)),o=a.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,o)},M.prototype.getX=function(){return this.x.fromRed()},M.prototype.getY=function(){return this.y.fromRed()},M.prototype.mul=function(e){return e=new a.a(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)},M.prototype.mulAdd=function(e,t,r){var n=[this,t],a=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,a):this.curve._wnafMulAdd(1,n,a,2)},M.prototype.jmulAdd=function(e,t,r){var n=[this,t],a=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,a,!0):this.curve._wnafMulAdd(1,n,a,2,!0)},M.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},M.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.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 t},M.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},v(k,x.BasePoint),w.prototype.jpoint=function(e,t,r){return new k(this,e,t,r)},k.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},k.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},k.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),a=e.x.redMul(r),i=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(r.redMul(this.z)),c=n.redSub(a),f=i.redSub(o);if(0===c.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=c.redSqr(),s=d.redMul(c),u=n.redMul(d),b=f.redSqr().redIAdd(s).redISub(u).redISub(u),h=f.redMul(u.redISub(b)).redISub(i.redMul(s)),l=this.z.redMul(e.z).redMul(c);return this.curve.jpoint(b,h,l)},k.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),a=this.y,i=e.y.redMul(t).redMul(this.z),o=r.redSub(n),c=a.redSub(i);if(0===o.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=o.redSqr(),d=f.redMul(o),s=r.redMul(f),u=c.redSqr().redIAdd(d).redISub(s).redISub(s),b=c.redMul(s.redISub(u)).redISub(a.redMul(d)),h=this.z.redMul(o);return this.curve.jpoint(u,b,h)},k.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t=0)return!1;if(r.redIAdd(a),0===this.x.cmp(r))return!0}},k.prototype.inspect=function(){return this.isInfinity()?"":""},k.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var S=f((function(e,t){var r=t;r.base=x,r.short=_,r.mont=null,r.edwards=null})),A=f((function(e,t){var r,n=t,a=b.assert;function i(e){"short"===e.type?this.curve=new S.short(e):"edwards"===e.type?this.curve=new S.edwards(e):this.curve=new S.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new i(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=i,c("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.a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("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.a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("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.a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("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.a.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"]}),c("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.a.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"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.a.sha256,gRed:!1,g:["9"]}),c("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.a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(e){r=void 0}c("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.a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function E(e){if(!(this instanceof E))return new E(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=u.toArray(e.entropy,e.entropyEnc||"hex"),r=u.toArray(e.nonce,e.nonceEnc||"hex"),n=u.toArray(e.pers,e.persEnc||"hex");d(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var T=E;E.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},E.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=u.toArray(r,n||"hex"),this._update(r));for(var a=[];a.length"};var B=b.assert;function R(e,t){if(e instanceof R)return e;this._importDER(e,t)||(B(e.r&&e.s,"Signature without r or s"),this.r=new a.a(e.r,16),this.s=new a.a(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var C=R;function I(){this.place=0}function L(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var a=0,i=0,o=t.place;i>>=0;return!(a<=127)&&(t.place=o,a)}function N(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}R.prototype._importDER=function(e,t){e=b.toArray(e,t);var r=new I;if(48!==e[r.place++])return!1;var n=L(e,r);if(!1===n)return!1;if(n+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var i=L(e,r);if(!1===i)return!1;var o=e.slice(r.place,i+r.place);if(r.place+=i,2!==e[r.place++])return!1;var c=L(e,r);if(!1===c)return!1;if(e.length!==c+r.place)return!1;var f=e.slice(r.place,c+r.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new a.a(o),this.s=new a.a(f),this.recoveryParam=null,!0},R.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=N(t),r=N(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];U(n,t.length),(n=n.concat(t)).push(2),U(n,r.length);var a=n.concat(r),i=[48];return U(i,a.length),i=i.concat(a),b.encode(i,e)};var z=function(){throw new Error("unsupported")},F=b.assert;function q(e){if(!(this instanceof q))return new q(e);"string"==typeof e&&(F(Object.prototype.hasOwnProperty.call(A,e),"Unknown curve "+e),e=A[e]),e instanceof A.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var H=q;q.prototype.keyPair=function(e){return new j(this,e)},q.prototype.keyFromPrivate=function(e,t){return j.fromPrivate(this,e,t)},q.prototype.keyFromPublic=function(e,t){return j.fromPublic(this,e,t)},q.prototype.genKeyPair=function(e){e||(e={});for(var t=new T({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||z(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new a.a(2));;){var i=new a.a(t.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},q.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},q.prototype.sign=function(e,t,r,n){"object"===c(r)&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new a.a(e,16));for(var i=this.n.byteLength(),o=t.getPrivate().toArray("be",i),f=e.toArray("be",i),d=new T({hash:this.hash,entropy:o,nonce:f,pers:n.pers,persEnc:n.persEnc||"utf8"}),s=this.n.sub(new a.a(1)),u=0;;u++){var b=n.k?n.k(u):new a.a(d.generate(this.n.byteLength()));if(!((b=this._truncateToN(b,!0)).cmpn(1)<=0||b.cmp(s)>=0)){var h=this.g.mul(b);if(!h.isInfinity()){var l=h.getX(),p=l.umod(this.n);if(0!==p.cmpn(0)){var m=b.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var x=(h.getY().isOdd()?1:0)|(0!==l.cmp(p)?2:0);return n.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),x^=1),new C({r:p,s:m,recoveryParam:x})}}}}}},q.prototype.verify=function(e,t,r,n){e=this._truncateToN(new a.a(e,16)),r=this.keyFromPublic(r,n);var i=(t=new C(t,"hex")).r,o=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var c,f=o.invm(this.n),d=f.mul(e).umod(this.n),s=f.mul(i).umod(this.n);return this.curve._maxwellTrick?!(c=this.g.jmulAdd(d,r.getPublic(),s)).isInfinity()&&c.eqXToP(i):!(c=this.g.mulAdd(d,r.getPublic(),s)).isInfinity()&&0===c.getX().umod(this.n).cmp(i)},q.prototype.recoverPubKey=function(e,t,r,n){F((3&r)===r,"The recovery param is more than two bits"),t=new C(t,n);var i=this.n,o=new a.a(e),c=t.r,f=t.s,d=1&r,s=r>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&s)throw new Error("Unable to find sencond key candinate");c=s?this.curve.pointFromX(c.add(this.curve.n),d):this.curve.pointFromX(c,d);var u=t.r.invm(i),b=i.sub(o).mul(u).umod(i),h=f.mul(u).umod(i);return this.g.mulAdd(b,c,h)},q.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new C(t,n)).recoveryParam)return t.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(e,t,a)}catch(e){continue}if(i.eq(r))return a}throw new Error("Unable to find valid recovery factor")};var D=f((function(e,t){var r=t;r.version="6.5.4",r.utils=b,r.rand=function(){throw new Error("unsupported")},r.curve=S,r.curves=A,r.ec=H,r.eddsa=null})).ec}).call(this,r(13))},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getWindowMetadata=void 0;var a=r(27);t.getWindowMetadata=function(){var e,t;try{e=a.getDocumentOrThrow(),t=a.getLocationOrThrow()}catch(e){return null}function r(){for(var t=arguments.length,r=new Array(t),a=0;a-1){var c=i.getAttribute("href");if(c)if(-1===c.toLowerCase().indexOf("https:")&&-1===c.toLowerCase().indexOf("http:")&&0!==c.indexOf("//")){var f=t.protocol+"//"+t.host;if(0===c.indexOf("/"))f+=c;else{var d=t.pathname.split("/");d.pop(),f+=d.join("/")+"/"+c}n.push(f)}else if(0===c.indexOf("//")){var s=t.protocol+c;n.push(s)}else n.push(c)}}return n}(),name:i}}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return b}));var n=function(){for(var e=0,t=0,r=arguments.length;t=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),f=r.call(i,"finallyLoc");if(c&&f){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;k(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),b}},e}function c(e,t,r,n,a,i,o){try{var c=e[i](o),f=c.value}catch(e){return void r(e)}c.done?t(f):Promise.resolve(f).then(n,a)}function f(e,t){for(var r=0;r=0;f--)(i=e[f])&&(c=(o<3?i(c):o>3?i(t,r,c):i(t,r))||c);return o>3&&c&&Object.defineProperty(t,r,c),c},o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||a(t,e,r)},c=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{f(n.next(e))}catch(e){i(e)}}function c(e){try{f(n.throw(e))}catch(e){i(e)}}function f(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,c)}f((n=n.apply(e,t||[])).next())}))},f=this&&this.__generator||function(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(a=2&i[0]?n.return:i[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,i[1])).done)return a;switch(n=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,n=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o},u=this&&this.__spread||function(){for(var e=[],t=0;t=0&&g.parseUrl(t),[2,t]}}))}))},t.prototype.deleteAccount=function(){return c(this,void 0,void 0,(function(){return f(this,(function(e){switch(e.label){case 0:return[4,I.resetAccount()];case 1:return e.sent(),[2,{}]}}))}))},t.prototype.resetWalletAddress=function(){return c(this,void 0,void 0,(function(){return f(this,(function(e){switch(e.label){case 0:return[4,I.resetWallet()];case 1:return e.sent(),[4,w.syncWalletEnv()];case 2:return e.sent(),[2,{}]}}))}))},t.prototype.saveLocalItem=function(e,t){jsb.saveLocalStorage(e,t)},t.prototype.loadLocalItem=function(e){var t=jsb.loadLocalStorage(e);return console.log("loadLocalItem:: "+t),t},t=i([v.singleton],t)}();t.default=N,o(r(188),t),o(r(95),t),o(r(289),t),o(r(96),t),o(r(193),t)}).call(this,r(0).Buffer)},,,function(e,t,r){"use strict";t.byteLength=function(e){var t=d(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,n=d(e),o=n[0],c=n[1],f=new i(function(e,t,r){return 3*(t+r)/4-r}(0,o,c)),s=0,u=c>0?o-4:o;for(r=0;r>16&255,f[s++]=t>>8&255,f[s++]=255&t;2===c&&(t=a[e.charCodeAt(r)]<<2|a[e.charCodeAt(r+1)]>>4,f[s++]=255&t);1===c&&(t=a[e.charCodeAt(r)]<<10|a[e.charCodeAt(r+1)]<<4|a[e.charCodeAt(r+2)]>>2,f[s++]=t>>8&255,f[s++]=255&t);return f},t.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],o=0,c=r-a;oc?c:o+16383));1===a?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],a=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,f=o.length;c0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function s(e,t,r){for(var a,i,o=[],c=t;c>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},function(e,t){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ t.read=function(e,t,r,n,a){var i,o,c=8*a-n-1,f=(1<>1,s=-7,u=r?a-1:0,b=r?-1:1,h=e[t+u];for(u+=b,i=h&(1<<-s)-1,h>>=-s,s+=c;s>0;i=256*i+e[t+u],u+=b,s-=8);for(o=i&(1<<-s)-1,i>>=-s,s+=n;s>0;o=256*o+e[t+u],u+=b,s-=8);if(0===i)i=1-d;else{if(i===f)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,n),i-=d}return(h?-1:1)*o*Math.pow(2,i-n)},t.write=function(e,t,r,n,a,i){var o,c,f,d=8*i-a-1,s=(1<>1,b=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,l=n?1:-1,p=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,o=s):(o=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-o))<1&&(o--,f*=2),(t+=o+u>=1?b/f:b*Math.pow(2,1-u))*f>=2&&(o++,f/=2),o+u>=s?(c=0,o=s):o+u>=1?(c=(t*f-1)*Math.pow(2,a),o+=u):(c=t*Math.pow(2,u-1)*Math.pow(2,a),o=0));a>=8;e[r+h]=255&c,h+=l,c/=256,a-=8);for(o=o<0;e[r+h]=255&o,h+=l,o/=256,d-=8);e[r+h-l]|=128*p}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractPublicKey=t.recoverPersonalSignature=t.personalSign=void 0;var n=r(124),a=r(105);function i(e,t){var r=n.hashPersonalMessage(a.legacyToBuffer(e));return a.recoverPublicKey(r,t)}t.personalSign=function(e){var t=e.privateKey,r=e.data;if(a.isNullish(r))throw new Error("Missing data parameter");if(a.isNullish(t))throw new Error("Missing privateKey parameter");var i=a.legacyToBuffer(r),o=n.hashPersonalMessage(i),c=n.ecsign(o,t);return a.concatSig(n.toBuffer(c.v),c.r,c.s)},t.recoverPersonalSignature=function(e){var t=e.data,r=e.signature;if(a.isNullish(t))throw new Error("Missing data parameter");if(a.isNullish(r))throw new Error("Missing signature parameter");var o=i(t,r),c=n.publicToAddress(o);return n.bufferToHex(c)},t.extractPublicKey=function(e){var t=e.data,r=e.signature;if(a.isNullish(t))throw new Error("Missing data parameter");if(a.isNullish(r))throw new Error("Missing signature parameter");var n=i(t,r);return"0x".concat(n.toString("hex"))}},function(e,t){function r(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},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,c=!0,f=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return c=e.done,e},e:function(e){f=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(f)throw o}}}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:function(e){return new Uint8Array(e)},t=arguments.length>1?arguments[1]:void 0;return"function"==typeof e&&(e=e(t)),x("output",e,t),e}function g(e){return Object.prototype.toString.call(e).slice(8,-1)}e.exports=function(e){return{contextRandomize:function(t){switch(m(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&x("seed",t,32),e.contextRandomize(t)){case 1:throw new Error(c)}},privateKeyVerify:function(t){return x("private key",t,32),0===e.privateKeyVerify(t)},privateKeyNegate:function(t){switch(x("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw new Error(a)}},privateKeyTweakAdd:function(t,r){switch(x("private key",t,32),x("tweak",r,32),e.privateKeyTweakAdd(t,r)){case 0:return t;case 1:throw new Error(i)}},privateKeyTweakMul:function(t,r){switch(x("private key",t,32),x("tweak",r,32),e.privateKeyTweakMul(t,r)){case 0:return t;case 1:throw new Error(o)}},publicKeyVerify:function(t){return x("public key",t,[33,65]),0===e.publicKeyVerify(t)},publicKeyCreate:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(x("private key",t,32),y(r),n=v(n,r?33:65),e.publicKeyCreate(n,t)){case 0:return n;case 1:throw new Error(f);case 2:throw new Error(s)}},publicKeyConvert:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(x("public key",t,[33,65]),y(r),n=v(n,r?33:65),e.publicKeyConvert(n,t)){case 0:return n;case 1:throw new Error(d);case 2:throw new Error(s)}},publicKeyNegate:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(x("public key",t,[33,65]),y(r),n=v(n,r?33:65),e.publicKeyNegate(n,t)){case 0:return n;case 1:throw new Error(d);case 2:throw new Error(a);case 3:throw new Error(s)}},publicKeyCombine:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0;m(Array.isArray(t),"Expected public keys to be an Array"),m(t.length>0,"Expected public keys array will have more than zero items");var i,o=r(t);try{for(o.s();!(i=o.n()).done;){var c=i.value;x("public key",c,[33,65])}}catch(e){o.e(e)}finally{o.f()}switch(y(n),a=v(a,n?33:65),e.publicKeyCombine(a,t)){case 0:return a;case 1:throw new Error(d);case 2:throw new Error(u);case 3:throw new Error(s)}},publicKeyTweakAdd:function(t,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3?arguments[3]:void 0;switch(x("public key",t,[33,65]),x("tweak",r,32),y(n),a=v(a,n?33:65),e.publicKeyTweakAdd(a,t,r)){case 0:return a;case 1:throw new Error(d);case 2:throw new Error(i)}},publicKeyTweakMul:function(t,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3?arguments[3]:void 0;switch(x("public key",t,[33,65]),x("tweak",r,32),y(n),a=v(a,n?33:65),e.publicKeyTweakMul(a,t,r)){case 0:return a;case 1:throw new Error(d);case 2:throw new Error(o)}},signatureNormalize:function(t){switch(x("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(b)}},signatureExport:function(t,r){x("signature",t,64);var n={output:r=v(r,72),outputlen:72};switch(e.signatureExport(n,t)){case 0:return r.slice(0,n.outputlen);case 1:throw new Error(b);case 2:throw new Error(a)}},signatureImport:function(t,r){switch(x("signature",t),r=v(r,64),e.signatureImport(r,t)){case 0:return r;case 1:throw new Error(b);case 2:throw new Error(a)}},ecdsaSign:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;x("message",t,32),x("private key",r,32),m("Object"===g(n),"Expected options to be an Object"),void 0!==n.data&&x("options.data",n.data),void 0!==n.noncefn&&m("Function"===g(n.noncefn),"Expected options.noncefn to be a Function");var o={signature:i=v(i,64),recid:null};switch(e.ecdsaSign(o,t,r,n.data,n.noncefn)){case 0:return o;case 1:throw new Error(h);case 2:throw new Error(a)}},ecdsaVerify:function(t,r,n){switch(x("signature",t,64),x("message",r,32),x("public key",n,[33,65]),e.ecdsaVerify(t,r,n)){case 0:return!0;case 3:return!1;case 1:throw new Error(b);case 2:throw new Error(d)}},ecdsaRecover:function(t,r,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4?arguments[4]:void 0;switch(x("signature",t,64),m("Number"===g(r)&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),x("message",n,32),y(i),o=v(o,i?33:65),e.ecdsaRecover(o,t,r,n)){case 0:return o;case 1:throw new Error(b);case 2:throw new Error(l);case 3:throw new Error(a)}},ecdh:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;switch(x("public key",t,[33,65]),x("private key",r,32),m("Object"===g(n),"Expected options to be an Object"),void 0!==n.data&&x("options.data",n.data),void 0!==n.hashfn?(m("Function"===g(n.hashfn),"Expected options.hashfn to be a Function"),void 0!==n.xbuf&&x("options.xbuf",n.xbuf,32),void 0!==n.ybuf&&x("options.ybuf",n.ybuf,32),x("output",a)):a=v(a,32),e.ecdh(a,t,r,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return a;case 1:throw new Error(d);case 2:throw new Error(p)}}}}},function(e,t,r){var n=new(0,r(37).ec)("secp256k1"),a=n.curve,i=a.n.constructor;function o(e){var t=e[0];switch(t){case 2:case 3:return 33!==e.length?null:function(e,t){var r=new i(t);if(r.cmp(a.p)>=0)return null;var o=(r=r.toRed(a.red)).redSqr().redIMul(r).redIAdd(a.b).redSqrt();return 3===e!==o.isOdd()&&(o=o.redNeg()),n.keyPair({pub:{x:r,y:o}})}(t,e.subarray(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,r){var o=new i(t),c=new i(r);if(o.cmp(a.p)>=0||c.cmp(a.p)>=0)return null;if(o=o.toRed(a.red),c=c.toRed(a.red),(6===e||7===e)&&c.isOdd()!==(7===e))return null;var f=o.redSqr().redIMul(o);return c.redSqr().redISub(f.redIAdd(a.b)).isZero()?n.keyPair({pub:{x:o,y:c}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function c(e,t){for(var r=t.encode(null,33===e.length),n=0;n=0)return 1;if(r.iadd(new i(e)),r.cmp(a.n)>=0&&r.isub(a.n),r.isZero())return 1;var n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},privateKeyTweakMul:function(e,t){var r=new i(t);if(r.cmp(a.n)>=0||r.isZero())return 1;r.imul(new i(e)),r.cmp(a.n)>=0&&(r=r.umod(a.n));var n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},publicKeyVerify:function(e){return null===o(e)?1:0},publicKeyCreate:function(e,t){var r=new i(t);return r.cmp(a.n)>=0||r.isZero()?1:(c(e,n.keyFromPrivate(t).getPublic()),0)},publicKeyConvert:function(e,t){var r=o(t);return null===r?1:(c(e,r.getPublic()),0)},publicKeyNegate:function(e,t){var r=o(t);if(null===r)return 1;var n=r.getPublic();return n.y=n.y.redNeg(),c(e,n),0},publicKeyCombine:function(e,t){for(var r=new Array(t.length),n=0;n=0)return 2;var f=n.getPublic().add(a.g.mul(r));return f.isInfinity()?2:(c(e,f),0)},publicKeyTweakMul:function(e,t,r){var n=o(t);return null===n?1:(r=new i(r)).cmp(a.n)>=0||r.isZero()?2:(c(e,n.getPublic().mul(r)),0)},signatureNormalize:function(e){var t=new i(e.subarray(0,32)),r=new i(e.subarray(32,64));return t.cmp(a.n)>=0||r.cmp(a.n)>=0?1:(1===r.cmp(n.nh)&&e.set(a.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport:function(e,t){var r=t.subarray(0,32),n=t.subarray(32,64);if(new i(r).cmp(a.n)>=0)return 1;if(new i(n).cmp(a.n)>=0)return 1;var o=e.output,c=o.subarray(4,37);c[0]=0,c.set(r,1);for(var f=33,d=0;f>1&&0===c[d]&&!(128&c[d+1]);--f,++d);if(128&(c=c.subarray(d))[0])return 1;if(f>1&&0===c[0]&&!(128&c[1]))return 1;var s=o.subarray(39,72);s[0]=0,s.set(n,1);for(var u=33,b=0;u>1&&0===s[b]&&!(128&s[b+1]);--u,++b);return 128&(s=s.subarray(b))[0]||u>1&&0===s[0]&&!(128&s[1])?1:(e.outputlen=6+f+u,o[0]=48,o[1]=e.outputlen-2,o[2]=2,o[3]=c.length,o.set(c,4),o[4+f]=2,o[5+f]=s.length,o.set(s,6+f),0)},signatureImport:function(e,t){if(t.length<8)return 1;if(t.length>72)return 1;if(48!==t[0])return 1;if(t[1]!==t.length-2)return 1;if(2!==t[2])return 1;var r=t[3];if(0===r)return 1;if(5+r>=t.length)return 1;if(2!==t[4+r])return 1;var n=t[5+r];if(0===n)return 1;if(6+r+n!==t.length)return 1;if(128&t[4])return 1;if(r>1&&0===t[4]&&!(128&t[5]))return 1;if(128&t[r+6])return 1;if(n>1&&0===t[r+6]&&!(128&t[r+7]))return 1;var o=t.subarray(4,4+r);if(33===o.length&&0===o[0]&&(o=o.subarray(1)),o.length>32)return 1;var c=t.subarray(6+r);if(33===c.length&&0===c[0]&&(c=c.slice(1)),c.length>32)throw new Error("S length is too long");var f=new i(o);f.cmp(a.n)>=0&&(f=new i(0));var d=new i(t.subarray(6+r));return d.cmp(a.n)>=0&&(d=new i(0)),e.set(f.toArrayLike(Uint8Array,"be",32),0),e.set(d.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign:function(e,t,r,o,c){if(c){var f=c;c=function(e){var n=f(t,r,null,o,e);if(!(n instanceof Uint8Array&&32===n.length))throw new Error("This is the way");return new i(n)}}var d,s=new i(r);if(s.cmp(a.n)>=0||s.isZero())return 1;try{d=n.sign(t,r,{canonical:!0,k:c,pers:o})}catch(e){return 1}return e.signature.set(d.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(d.s.toArrayLike(Uint8Array,"be",32),32),e.recid=d.recoveryParam,0},ecdsaVerify:function(e,t,r){var c={r:e.subarray(0,32),s:e.subarray(32,64)},f=new i(c.r),d=new i(c.s);if(f.cmp(a.n)>=0||d.cmp(a.n)>=0)return 1;if(1===d.cmp(n.nh)||f.isZero()||d.isZero())return 3;var s=o(r);if(null===s)return 2;var u=s.getPublic();return n.verify(t,c,u)?0:3},ecdsaRecover:function(e,t,r,o){var f,d={r:t.slice(0,32),s:t.slice(32,64)},s=new i(d.r),u=new i(d.s);if(s.cmp(a.n)>=0||u.cmp(a.n)>=0)return 1;if(s.isZero()||u.isZero())return 2;try{f=n.recoverPubKey(o,d,r)}catch(e){return 2}return c(e,f),0},ecdh:function(e,t,r,c,f,d,s){var u=o(t);if(null===u)return 1;var b=new i(r);if(b.cmp(a.n)>=0||b.isZero())return 2;var h=u.getPublic().mul(b);if(void 0===f)for(var l=h.encode(null,!0),p=n.hash().update(l).digest(),m=0;m<32;++m)e[m]=p[m];else{d||(d=new Uint8Array(32));for(var x=h.getX().toArray("be",32),y=0;y<32;++y)d[y]=x[y];s||(s=new Uint8Array(32));for(var v=h.getY().toArray("be",32),g=0;g<32;++g)s[g]=v[g];var w=f(d,s,c);if(!(w instanceof Uint8Array&&w.length===e.length))return 2;e.set(w)}return 0}}},function(e){e.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(e,t){},function(e,t){},function(e,t,r){"use strict";var n=r(30),a=r(9),i=r(4),o=r(101),c=n.assert;function f(e){o.call(this,"short",e),this.a=new a(e.a,16).toRed(this.red),this.b=new a(e.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(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function d(e,t,r,n){o.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new a(t,16),this.y=new a(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 s(e,t,r,n){o.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new a(0)):(this.x=new a(t,16),this.y=new a(r,16),this.z=new a(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}i(f,o),e.exports=f,f.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new a(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new a(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?r=i[0]:(r=i[1],c(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new a(e.a,16),b:new a(e.b,16)}})):this._getEndoBasis(r)}}},f.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:a.mont(e),r=new a(2).toRed(t).redInvm(),n=r.redNeg(),i=new a(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},f.prototype._getEndoBasis=function(e){for(var t,r,n,i,o,c,f,d,s,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),b=e,h=this.n.clone(),l=new a(1),p=new a(0),m=new a(0),x=new a(1),y=0;0!==b.cmpn(0);){var v=h.div(b);d=h.sub(v.mul(b)),s=m.sub(v.mul(l));var g=x.sub(v.mul(p));if(!n&&d.cmp(u)<0)t=f.neg(),r=l,n=d.neg(),i=s;else if(n&&2==++y)break;f=d,h=b,b=d,m=l,l=s,x=p,p=g}o=d.neg(),c=s;var w=n.sqr().add(i.sqr());return o.sqr().add(c.sqr()).cmp(w)>=0&&(o=t,c=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),c=c.neg()),[{a:n,b:i},{a:o,b:c}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],a=n.b.mul(e).divRound(this.n),i=r.b.neg().mul(e).divRound(this.n),o=a.mul(r.a),c=i.mul(n.a),f=a.mul(r.b),d=i.mul(n.b);return{k1:e.sub(o).sub(c),k2:f.add(d).neg()}},f.prototype.pointFromX=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.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(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),a=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(a).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,a=this._endoWnafT2,i=0;i":""},d.prototype.isInfinity=function(){return this.inf},d.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(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},d.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),a=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),i=a.redSqr().redISub(this.x.redAdd(this.x)),o=a.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,o)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(e){return e=new a(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)},d.prototype.mulAdd=function(e,t,r){var n=[this,t],a=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,a):this.curve._wnafMulAdd(1,n,a,2)},d.prototype.jmulAdd=function(e,t,r){var n=[this,t],a=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,a,!0):this.curve._wnafMulAdd(1,n,a,2,!0)},d.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},d.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.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 t},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},i(s,o.BasePoint),f.prototype.jpoint=function(e,t,r){return new s(this,e,t,r)},s.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},s.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},s.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),a=e.x.redMul(r),i=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(r.redMul(this.z)),c=n.redSub(a),f=i.redSub(o);if(0===c.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=c.redSqr(),s=d.redMul(c),u=n.redMul(d),b=f.redSqr().redIAdd(s).redISub(u).redISub(u),h=f.redMul(u.redISub(b)).redISub(i.redMul(s)),l=this.z.redMul(e.z).redMul(c);return this.curve.jpoint(b,h,l)},s.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),a=this.y,i=e.y.redMul(t).redMul(this.z),o=r.redSub(n),c=a.redSub(i);if(0===o.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=o.redSqr(),d=f.redMul(o),s=r.redMul(f),u=c.redSqr().redIAdd(d).redISub(s).redISub(s),b=c.redMul(s.redISub(u)).redISub(a.redMul(d)),h=this.z.redMul(o);return this.curve.jpoint(u,b,h)},s.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t=0)return!1;if(r.redIAdd(a),0===this.x.cmp(r))return!0}},s.prototype.inspect=function(){return this.isInfinity()?"":""},s.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(9),a=r(4),i=r(101),o=r(30);function c(e){i.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.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 f(e,t,r){i.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,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)))}a(c,i),e.exports=c,c.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},a(f,i.BasePoint),c.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},c.prototype.point=function(e,t){return new f(this,e,t)},c.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),a=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,a)},f.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),a=e.x.redAdd(e.z),i=e.x.redSub(e.z).redMul(r),o=a.redMul(n),c=t.z.redMul(i.redAdd(o).redSqr()),f=t.x.redMul(i.redISub(o).redSqr());return this.curve.point(c,f)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),a=[];0!==t.cmpn(0);t.iushrn(1))a.push(t.andln(1));for(var i=a.length-1;i>=0;i--)0===a[i]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},f.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(30),a=r(9),i=r(4),o=r(101),c=n.assert;function f(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,o.call(this,"edwards",e),this.a=new a(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new a(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new a(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),c(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function d(e,t,r,n,i){o.BasePoint.call(this,e,"projective"),null===t&&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 a(t,16),this.y=new a(r,16),this.z=n?new a(n,16):this.curve.one,this.t=i&&new a(i,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()))))}i(f,o),e.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},f.prototype.pointFromX=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),o=n.redMul(i.redInvm()),c=o.redSqrt();if(0!==c.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var f=c.fromRed().isOdd();return(t&&!f||!t&&f)&&(c=c.redNeg()),this.point(e,c)},f.prototype.pointFromY=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),o=n.redMul(i.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var c=o.redSqrt();if(0!==c.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return c.fromRed().isOdd()!==t&&(c=c.redNeg()),this.point(c,e)},f.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),a=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(a)},i(d,o.BasePoint),f.prototype.pointFromJSON=function(e){return d.fromJSON(this,e)},f.prototype.point=function(e,t,r,n){return new d(this,e,t,r,n)},d.fromJSON=function(e,t){return new d(e,t[0],t[1],t[2])},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),a=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),i=n.redAdd(t),o=i.redSub(r),c=n.redSub(t),f=a.redMul(o),d=i.redMul(c),s=a.redMul(c),u=o.redMul(i);return this.curve.point(f,d,u,s)},d.prototype._projDbl=function(){var e,t,r,n,a,i,o=this.x.redAdd(this.y).redSqr(),c=this.x.redSqr(),f=this.y.redSqr();if(this.curve.twisted){var d=(n=this.curve._mulA(c)).redAdd(f);this.zOne?(e=o.redSub(c).redSub(f).redMul(d.redSub(this.curve.two)),t=d.redMul(n.redSub(f)),r=d.redSqr().redSub(d).redSub(d)):(a=this.z.redSqr(),i=d.redSub(a).redISub(a),e=o.redSub(c).redISub(f).redMul(i),t=d.redMul(n.redSub(f)),r=d.redMul(i))}else n=c.redAdd(f),a=this.curve._mulC(this.z).redSqr(),i=n.redSub(a).redSub(a),e=this.curve._mulC(o.redISub(n)).redMul(i),t=this.curve._mulC(n).redMul(c.redISub(f)),r=n.redMul(i);return this.curve.point(e,t,r)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),a=this.z.redMul(e.z.redAdd(e.z)),i=r.redSub(t),o=a.redSub(n),c=a.redAdd(n),f=r.redAdd(t),d=i.redMul(o),s=c.redMul(f),u=i.redMul(f),b=o.redMul(c);return this.curve.point(d,s,b,u)},d.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),a=n.redSqr(),i=this.x.redMul(e.x),o=this.y.redMul(e.y),c=this.curve.d.redMul(i).redMul(o),f=a.redSub(c),d=a.redAdd(c),s=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(o),u=n.redMul(f).redMul(s);return this.curve.twisted?(t=n.redMul(d).redMul(o.redSub(this.curve._mulA(i))),r=f.redMul(d)):(t=n.redMul(d).redMul(o.redSub(i)),r=this.curve._mulC(f).redMul(d)),this.curve.point(u,t,r)},d.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},d.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},d.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},d.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},d.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},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},d.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},function(e,t,r){"use strict";t.sha1=r(385),t.sha224=r(386),t.sha256=r(129),t.sha384=r(387),t.sha512=r(202)},function(e,t,r){"use strict";var n=r(36),a=r(80),i=r(201),o=n.rotl32,c=n.sum32,f=n.sum32_5,d=i.ft_1,s=a.BlockHash,u=[1518500249,1859775393,2400959708,3395469782];function b(){if(!(this instanceof b))return new b;s.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(b,s),e.exports=b,b.blockSize=512,b.outSize=160,b.hmacStrength=80,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),a(e.length<=this.blockSize);for(var t=e.length;t0))return o.iaddn(1),this.keyFromPrivate(o)}},b.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},b.prototype.sign=function(e,t,r,o){"object"===n(r)&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new a(e,16));for(var c=this.n.byteLength(),f=t.getPrivate().toArray("be",c),d=e.toArray("be",c),s=new i({hash:this.hash,entropy:f,nonce:d,pers:o.pers,persEnc:o.persEnc||"utf8"}),b=this.n.sub(new a(1)),h=0;;h++){var l=o.k?o.k(h):new a(s.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(b)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var m=p.getX(),x=m.umod(this.n);if(0!==x.cmpn(0)){var y=l.invm(this.n).mul(x.mul(t.getPrivate()).iadd(e));if(0!==(y=y.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==m.cmp(x)?2:0);return o.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),v^=1),new u({r:x,s:y,recoveryParam:v})}}}}}},b.prototype.verify=function(e,t,r,n){e=this._truncateToN(new a(e,16)),r=this.keyFromPublic(r,n);var i=(t=new u(t,"hex")).r,o=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var c,f=o.invm(this.n),d=f.mul(e).umod(this.n),s=f.mul(i).umod(this.n);return this.curve._maxwellTrick?!(c=this.g.jmulAdd(d,r.getPublic(),s)).isInfinity()&&c.eqXToP(i):!(c=this.g.mulAdd(d,r.getPublic(),s)).isInfinity()&&0===c.getX().umod(this.n).cmp(i)},b.prototype.recoverPubKey=function(e,t,r,n){d((3&r)===r,"The recovery param is more than two bits"),t=new u(t,n);var i=this.n,o=new a(e),c=t.r,f=t.s,s=1&r,b=r>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&b)throw new Error("Unable to find sencond key candinate");c=b?this.curve.pointFromX(c.add(this.curve.n),s):this.curve.pointFromX(c,s);var h=t.r.invm(i),l=i.sub(o).mul(h).umod(i),p=f.mul(h).umod(i);return this.g.mulAdd(l,c,p)},b.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(e,t,a)}catch(e){continue}if(i.eq(r))return a}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(26),a=r(199),i=r(31);function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=a.toArray(e.entropy,e.entropyEnc||"hex"),r=a.toArray(e.nonce,e.nonceEnc||"hex"),n=a.toArray(e.pers,e.persEnc||"hex");i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=o,o.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},o.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=a.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length"}},function(e,t,r){"use strict";var n=r(9),a=r(30),i=a.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(i(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function c(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var a=0,i=0,o=t.place;i>>=0;return!(a<=127)&&(t.place=o,a)}function d(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=o,o.prototype._importDER=function(e,t){e=a.toArray(e,t);var r=new c;if(48!==e[r.place++])return!1;var i=f(e,r);if(!1===i)return!1;if(i+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=f(e,r);if(!1===o)return!1;var d=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var s=f(e,r);if(!1===s)return!1;if(e.length!==s+r.place)return!1;var u=e.slice(r.place,s+r.place);if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new n(d),this.s=new n(u),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=d(t),r=d(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];s(n,t.length),(n=n.concat(t)).push(2),s(n,r.length);var i=n.concat(r),o=[48];return s(o,i.length),o=o.concat(i),a.encode(o,e)}},function(e,t,r){"use strict";var n=r(26),a=r(128),i=r(30),o=i.assert,c=i.parseBytes,f=r(395),d=r(396);function s(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof s))return new s(e);e=a[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=s,s.prototype.sign=function(e,t){e=c(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),a=this.g.mul(n),i=this.encodePoint(a),o=this.hashInt(i,r.pubBytes(),e).mul(r.priv()),f=n.add(o).umod(this.curve.n);return this.makeSignature({R:a,S:f,Rencoded:i})},s.prototype.verify=function(e,t,r){e=c(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),a=this.hashInt(t.Rencoded(),n.pubBytes(),e),i=this.g.mul(t.S());return t.R().add(n.pub().mul(a)).eq(i)},s.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=0)throw new Error("couldn't export to DER format");var c=a.g.mul(r);return o(c.getX(),c.getY(),t)},t.privateKeyModInverse=function(t){var r=new n(t);if(r.ucmp(i.n)>=0||r.isZero())throw new Error("private key range is invalid");return r.invm(i.n).toArrayLike(e,"be",32)},t.signatureImport=function(t){var r=new n(t.r);r.ucmp(i.n)>=0&&(r=new n(0));var a=new n(t.s);return a.ucmp(i.n)>=0&&(a=new n(0)),e.concat([r.toArrayLike(e,"be",32),a.toArrayLike(e,"be",32)])},t.ecdhUnsafe=function(e,t,r){void 0===r&&(r=!0);var c=a.keyFromPublic(e),f=new n(t);if(f.ucmp(i.n)>=0||f.isZero())throw new Error("scalar was invalid (zero or overflow)");var d=c.pub.mul(f);return o(d.getX(),d.getY(),r)};var o=function(t,r,n){var a;return n?((a=e.alloc(33))[0]=r.isOdd()?3:2,t.toArrayLike(e,"be",32).copy(a,1)):((a=e.alloc(65))[0]=4,t.toArrayLike(e,"be",32).copy(a,1),r.toArrayLike(e,"be",32).copy(a,33)),a}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=e.from([48,129,211,2,1,1,4,32,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,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,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,0,0,0,0,0,0,0,0,0]),n=e.from([48,130,1,19,2,1,1,4,32,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,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);t.privateKeyExport=function(t,a,i){void 0===i&&(i=!0);var o=e.from(i?r:n);return t.copy(o,i?8:9),a.copy(o,i?181:214),o},t.privateKeyImport=function(e){var t=e.length,r=0;if(t2)return null;if(t<(r+=1)+n)return null;var a=e[r+n-1]|(n>1?e[r+n-2]<<8:0);return t<(r+=n)+a||t32||ta)return null;if(2!==t[i++])return null;var c=t[i++];if(128&c){if(i+(o=c-128)>a)return null;for(;o>0&&0===t[i];i+=1,o-=1);for(c=0;o>0;i+=1,o-=1)c=(c<<8)+t[i]}if(c>a-i)return null;var f=i;if(i+=c,2!==t[i++])return null;var d=t[i++];if(128&d){if(i+(o=d-128)>a)return null;for(;o>0&&0===t[i];i+=1,o-=1);for(d=0;o>0;i+=1,o-=1)d=(d<<8)+t[i]}if(d>a-i)return null;var s=i;for(i+=d;c>0&&0===t[f];c-=1,f+=1);if(c>32)return null;var u=t.slice(f,f+c);for(u.copy(r,32-u.length);d>0&&0===t[s];d-=1,s+=1);if(d>32)return null;var b=t.slice(s,s+d);return b.copy(n,32-b.length),{r:r,s:n}}}).call(this,r(0).Buffer)},function(e,t,r){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,n){"use strict";function a(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var c;"object"===t(e)?e.exports=o:n.BN=o,o.BN=o,o.wordSize=26;try{c="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(401).Buffer}catch(e){}function f(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void a(!1,"Invalid character in "+e)}function d(e,t,r){var n=f(e,r);return r-1>=t&&(n|=f(e,r-1)<<4),n}function s(e,t,r,n){for(var i=0,o=0,c=Math.min(e.length,r),f=t;f=49?d-49+10:d>=17?d-17+10:d,a(d>=0&&o0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n);if("object"===t(e))return this._initArray(e,r,n);"hex"===r&&(r=16),a(r===(0|r)&&r>=2&&r<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[i]|=o<>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);else if("le"===r)for(n=0,i=0;n>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)a=d(e,t,n)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,a=1;a<=67108863;a*=t)n++;n--,a=a/t|0;for(var i=e.length-r,o=i%n,c=Math.min(i,i-o)+r,f=0,d=r;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=b}catch(e){o.prototype.inspect=b}else o.prototype.inspect=b;function b(){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],p=[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];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,i=0,o=0;o>>24-n&16777215,(n+=2)>=26&&(n-=26,o--),r=0!==i||o!==this.length-1?h[6-f.length]+f+r:f+r}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=l[e],s=p[e];r="";var u=this.clone();for(u.negative=0;!u.isZero();){var b=u.modrn(s).toString(e);r=(u=u.idivn(s)).isZero()?b+r:h[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}a(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},c&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(c,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,c=67108863&o,f=o/67108864|0;r.words[0]=c;for(var d=1;d>>26,u=67108863&f,b=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=b;h++){var l=d-h|0;s+=(o=(a=0|e.words[l])*(i=0|t.words[h])+u)/67108864|0,u=67108863&o}r.words[d]=0|u,f=0|s}return 0!==f?r.words[d]=0|f:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var n=this.byteLength(),i=r||Math.max(1,n);a(n<=i,"byte array longer than desired length"),a(i>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,i);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,n),o},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,a=0,i=0;a>8&255),r>16&255),6===i?(r>24&255),n=0,i=0):(n=o>>>24,i+=2)}if(r=0&&(e[r--]=o>>8&255),r>=0&&(e[r--]=o>>16&255),6===i?(r>=0&&(e[r--]=o>>24&255),n=0,i=0):(n=o>>>24,i+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=r.length,0!==a)this.words[this.length]=a,this.length++;else if(r!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,h=0|o[1],l=8191&h,p=h>>>13,m=0|o[2],x=8191&m,y=m>>>13,v=0|o[3],g=8191&v,w=v>>>13,_=0|o[4],M=8191&_,k=_>>>13,S=0|o[5],A=8191&S,E=S>>>13,T=0|o[6],O=8191&T,P=T>>>13,j=0|o[7],B=8191&j,R=j>>>13,C=0|o[8],I=8191&C,L=C>>>13,N=0|o[9],U=8191&N,z=N>>>13,F=0|c[0],q=8191&F,H=F>>>13,D=0|c[1],K=8191&D,G=D>>>13,W=0|c[2],V=8191&W,Z=W>>>13,J=0|c[3],X=8191&J,Y=J>>>13,$=0|c[4],Q=8191&$,ee=$>>>13,te=0|c[5],re=8191&te,ne=te>>>13,ae=0|c[6],ie=8191&ae,oe=ae>>>13,ce=0|c[7],fe=8191&ce,de=ce>>>13,se=0|c[8],ue=8191&se,be=se>>>13,he=0|c[9],le=8191&he,pe=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(d+(n=Math.imul(u,q))|0)+((8191&(a=(a=Math.imul(u,H))+Math.imul(b,q)|0))<<13)|0;d=((i=Math.imul(b,H))+(a>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(l,q),a=(a=Math.imul(l,H))+Math.imul(p,q)|0,i=Math.imul(p,H);var xe=(d+(n=n+Math.imul(u,K)|0)|0)+((8191&(a=(a=a+Math.imul(u,G)|0)+Math.imul(b,K)|0))<<13)|0;d=((i=i+Math.imul(b,G)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(x,q),a=(a=Math.imul(x,H))+Math.imul(y,q)|0,i=Math.imul(y,H),n=n+Math.imul(l,K)|0,a=(a=a+Math.imul(l,G)|0)+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0;var ye=(d+(n=n+Math.imul(u,V)|0)|0)+((8191&(a=(a=a+Math.imul(u,Z)|0)+Math.imul(b,V)|0))<<13)|0;d=((i=i+Math.imul(b,Z)|0)+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(g,q),a=(a=Math.imul(g,H))+Math.imul(w,q)|0,i=Math.imul(w,H),n=n+Math.imul(x,K)|0,a=(a=a+Math.imul(x,G)|0)+Math.imul(y,K)|0,i=i+Math.imul(y,G)|0,n=n+Math.imul(l,V)|0,a=(a=a+Math.imul(l,Z)|0)+Math.imul(p,V)|0,i=i+Math.imul(p,Z)|0;var ve=(d+(n=n+Math.imul(u,X)|0)|0)+((8191&(a=(a=a+Math.imul(u,Y)|0)+Math.imul(b,X)|0))<<13)|0;d=((i=i+Math.imul(b,Y)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(M,q),a=(a=Math.imul(M,H))+Math.imul(k,q)|0,i=Math.imul(k,H),n=n+Math.imul(g,K)|0,a=(a=a+Math.imul(g,G)|0)+Math.imul(w,K)|0,i=i+Math.imul(w,G)|0,n=n+Math.imul(x,V)|0,a=(a=a+Math.imul(x,Z)|0)+Math.imul(y,V)|0,i=i+Math.imul(y,Z)|0,n=n+Math.imul(l,X)|0,a=(a=a+Math.imul(l,Y)|0)+Math.imul(p,X)|0,i=i+Math.imul(p,Y)|0;var ge=(d+(n=n+Math.imul(u,Q)|0)|0)+((8191&(a=(a=a+Math.imul(u,ee)|0)+Math.imul(b,Q)|0))<<13)|0;d=((i=i+Math.imul(b,ee)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(A,q),a=(a=Math.imul(A,H))+Math.imul(E,q)|0,i=Math.imul(E,H),n=n+Math.imul(M,K)|0,a=(a=a+Math.imul(M,G)|0)+Math.imul(k,K)|0,i=i+Math.imul(k,G)|0,n=n+Math.imul(g,V)|0,a=(a=a+Math.imul(g,Z)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,Z)|0,n=n+Math.imul(x,X)|0,a=(a=a+Math.imul(x,Y)|0)+Math.imul(y,X)|0,i=i+Math.imul(y,Y)|0,n=n+Math.imul(l,Q)|0,a=(a=a+Math.imul(l,ee)|0)+Math.imul(p,Q)|0,i=i+Math.imul(p,ee)|0;var we=(d+(n=n+Math.imul(u,re)|0)|0)+((8191&(a=(a=a+Math.imul(u,ne)|0)+Math.imul(b,re)|0))<<13)|0;d=((i=i+Math.imul(b,ne)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(O,q),a=(a=Math.imul(O,H))+Math.imul(P,q)|0,i=Math.imul(P,H),n=n+Math.imul(A,K)|0,a=(a=a+Math.imul(A,G)|0)+Math.imul(E,K)|0,i=i+Math.imul(E,G)|0,n=n+Math.imul(M,V)|0,a=(a=a+Math.imul(M,Z)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,Z)|0,n=n+Math.imul(g,X)|0,a=(a=a+Math.imul(g,Y)|0)+Math.imul(w,X)|0,i=i+Math.imul(w,Y)|0,n=n+Math.imul(x,Q)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(y,Q)|0,i=i+Math.imul(y,ee)|0,n=n+Math.imul(l,re)|0,a=(a=a+Math.imul(l,ne)|0)+Math.imul(p,re)|0,i=i+Math.imul(p,ne)|0;var _e=(d+(n=n+Math.imul(u,ie)|0)|0)+((8191&(a=(a=a+Math.imul(u,oe)|0)+Math.imul(b,ie)|0))<<13)|0;d=((i=i+Math.imul(b,oe)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(B,q),a=(a=Math.imul(B,H))+Math.imul(R,q)|0,i=Math.imul(R,H),n=n+Math.imul(O,K)|0,a=(a=a+Math.imul(O,G)|0)+Math.imul(P,K)|0,i=i+Math.imul(P,G)|0,n=n+Math.imul(A,V)|0,a=(a=a+Math.imul(A,Z)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,Z)|0,n=n+Math.imul(M,X)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,Y)|0,n=n+Math.imul(g,Q)|0,a=(a=a+Math.imul(g,ee)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,n=n+Math.imul(x,re)|0,a=(a=a+Math.imul(x,ne)|0)+Math.imul(y,re)|0,i=i+Math.imul(y,ne)|0,n=n+Math.imul(l,ie)|0,a=(a=a+Math.imul(l,oe)|0)+Math.imul(p,ie)|0,i=i+Math.imul(p,oe)|0;var Me=(d+(n=n+Math.imul(u,fe)|0)|0)+((8191&(a=(a=a+Math.imul(u,de)|0)+Math.imul(b,fe)|0))<<13)|0;d=((i=i+Math.imul(b,de)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(I,q),a=(a=Math.imul(I,H))+Math.imul(L,q)|0,i=Math.imul(L,H),n=n+Math.imul(B,K)|0,a=(a=a+Math.imul(B,G)|0)+Math.imul(R,K)|0,i=i+Math.imul(R,G)|0,n=n+Math.imul(O,V)|0,a=(a=a+Math.imul(O,Z)|0)+Math.imul(P,V)|0,i=i+Math.imul(P,Z)|0,n=n+Math.imul(A,X)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(E,X)|0,i=i+Math.imul(E,Y)|0,n=n+Math.imul(M,Q)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,ee)|0,n=n+Math.imul(g,re)|0,a=(a=a+Math.imul(g,ne)|0)+Math.imul(w,re)|0,i=i+Math.imul(w,ne)|0,n=n+Math.imul(x,ie)|0,a=(a=a+Math.imul(x,oe)|0)+Math.imul(y,ie)|0,i=i+Math.imul(y,oe)|0,n=n+Math.imul(l,fe)|0,a=(a=a+Math.imul(l,de)|0)+Math.imul(p,fe)|0,i=i+Math.imul(p,de)|0;var ke=(d+(n=n+Math.imul(u,ue)|0)|0)+((8191&(a=(a=a+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((i=i+Math.imul(b,be)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,q),a=(a=Math.imul(U,H))+Math.imul(z,q)|0,i=Math.imul(z,H),n=n+Math.imul(I,K)|0,a=(a=a+Math.imul(I,G)|0)+Math.imul(L,K)|0,i=i+Math.imul(L,G)|0,n=n+Math.imul(B,V)|0,a=(a=a+Math.imul(B,Z)|0)+Math.imul(R,V)|0,i=i+Math.imul(R,Z)|0,n=n+Math.imul(O,X)|0,a=(a=a+Math.imul(O,Y)|0)+Math.imul(P,X)|0,i=i+Math.imul(P,Y)|0,n=n+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,ee)|0,n=n+Math.imul(M,re)|0,a=(a=a+Math.imul(M,ne)|0)+Math.imul(k,re)|0,i=i+Math.imul(k,ne)|0,n=n+Math.imul(g,ie)|0,a=(a=a+Math.imul(g,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,n=n+Math.imul(x,fe)|0,a=(a=a+Math.imul(x,de)|0)+Math.imul(y,fe)|0,i=i+Math.imul(y,de)|0,n=n+Math.imul(l,ue)|0,a=(a=a+Math.imul(l,be)|0)+Math.imul(p,ue)|0,i=i+Math.imul(p,be)|0;var Se=(d+(n=n+Math.imul(u,le)|0)|0)+((8191&(a=(a=a+Math.imul(u,pe)|0)+Math.imul(b,le)|0))<<13)|0;d=((i=i+Math.imul(b,pe)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(U,K),a=(a=Math.imul(U,G))+Math.imul(z,K)|0,i=Math.imul(z,G),n=n+Math.imul(I,V)|0,a=(a=a+Math.imul(I,Z)|0)+Math.imul(L,V)|0,i=i+Math.imul(L,Z)|0,n=n+Math.imul(B,X)|0,a=(a=a+Math.imul(B,Y)|0)+Math.imul(R,X)|0,i=i+Math.imul(R,Y)|0,n=n+Math.imul(O,Q)|0,a=(a=a+Math.imul(O,ee)|0)+Math.imul(P,Q)|0,i=i+Math.imul(P,ee)|0,n=n+Math.imul(A,re)|0,a=(a=a+Math.imul(A,ne)|0)+Math.imul(E,re)|0,i=i+Math.imul(E,ne)|0,n=n+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,n=n+Math.imul(g,fe)|0,a=(a=a+Math.imul(g,de)|0)+Math.imul(w,fe)|0,i=i+Math.imul(w,de)|0,n=n+Math.imul(x,ue)|0,a=(a=a+Math.imul(x,be)|0)+Math.imul(y,ue)|0,i=i+Math.imul(y,be)|0;var Ae=(d+(n=n+Math.imul(l,le)|0)|0)+((8191&(a=(a=a+Math.imul(l,pe)|0)+Math.imul(p,le)|0))<<13)|0;d=((i=i+Math.imul(p,pe)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,V),a=(a=Math.imul(U,Z))+Math.imul(z,V)|0,i=Math.imul(z,Z),n=n+Math.imul(I,X)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(L,X)|0,i=i+Math.imul(L,Y)|0,n=n+Math.imul(B,Q)|0,a=(a=a+Math.imul(B,ee)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,ee)|0,n=n+Math.imul(O,re)|0,a=(a=a+Math.imul(O,ne)|0)+Math.imul(P,re)|0,i=i+Math.imul(P,ne)|0,n=n+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,n=n+Math.imul(M,fe)|0,a=(a=a+Math.imul(M,de)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,de)|0,n=n+Math.imul(g,ue)|0,a=(a=a+Math.imul(g,be)|0)+Math.imul(w,ue)|0,i=i+Math.imul(w,be)|0;var Ee=(d+(n=n+Math.imul(x,le)|0)|0)+((8191&(a=(a=a+Math.imul(x,pe)|0)+Math.imul(y,le)|0))<<13)|0;d=((i=i+Math.imul(y,pe)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,X),a=(a=Math.imul(U,Y))+Math.imul(z,X)|0,i=Math.imul(z,Y),n=n+Math.imul(I,Q)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(L,Q)|0,i=i+Math.imul(L,ee)|0,n=n+Math.imul(B,re)|0,a=(a=a+Math.imul(B,ne)|0)+Math.imul(R,re)|0,i=i+Math.imul(R,ne)|0,n=n+Math.imul(O,ie)|0,a=(a=a+Math.imul(O,oe)|0)+Math.imul(P,ie)|0,i=i+Math.imul(P,oe)|0,n=n+Math.imul(A,fe)|0,a=(a=a+Math.imul(A,de)|0)+Math.imul(E,fe)|0,i=i+Math.imul(E,de)|0,n=n+Math.imul(M,ue)|0,a=(a=a+Math.imul(M,be)|0)+Math.imul(k,ue)|0,i=i+Math.imul(k,be)|0;var Te=(d+(n=n+Math.imul(g,le)|0)|0)+((8191&(a=(a=a+Math.imul(g,pe)|0)+Math.imul(w,le)|0))<<13)|0;d=((i=i+Math.imul(w,pe)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,Q),a=(a=Math.imul(U,ee))+Math.imul(z,Q)|0,i=Math.imul(z,ee),n=n+Math.imul(I,re)|0,a=(a=a+Math.imul(I,ne)|0)+Math.imul(L,re)|0,i=i+Math.imul(L,ne)|0,n=n+Math.imul(B,ie)|0,a=(a=a+Math.imul(B,oe)|0)+Math.imul(R,ie)|0,i=i+Math.imul(R,oe)|0,n=n+Math.imul(O,fe)|0,a=(a=a+Math.imul(O,de)|0)+Math.imul(P,fe)|0,i=i+Math.imul(P,de)|0,n=n+Math.imul(A,ue)|0,a=(a=a+Math.imul(A,be)|0)+Math.imul(E,ue)|0,i=i+Math.imul(E,be)|0;var Oe=(d+(n=n+Math.imul(M,le)|0)|0)+((8191&(a=(a=a+Math.imul(M,pe)|0)+Math.imul(k,le)|0))<<13)|0;d=((i=i+Math.imul(k,pe)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,re),a=(a=Math.imul(U,ne))+Math.imul(z,re)|0,i=Math.imul(z,ne),n=n+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(L,ie)|0,i=i+Math.imul(L,oe)|0,n=n+Math.imul(B,fe)|0,a=(a=a+Math.imul(B,de)|0)+Math.imul(R,fe)|0,i=i+Math.imul(R,de)|0,n=n+Math.imul(O,ue)|0,a=(a=a+Math.imul(O,be)|0)+Math.imul(P,ue)|0,i=i+Math.imul(P,be)|0;var Pe=(d+(n=n+Math.imul(A,le)|0)|0)+((8191&(a=(a=a+Math.imul(A,pe)|0)+Math.imul(E,le)|0))<<13)|0;d=((i=i+Math.imul(E,pe)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(z,ie)|0,i=Math.imul(z,oe),n=n+Math.imul(I,fe)|0,a=(a=a+Math.imul(I,de)|0)+Math.imul(L,fe)|0,i=i+Math.imul(L,de)|0,n=n+Math.imul(B,ue)|0,a=(a=a+Math.imul(B,be)|0)+Math.imul(R,ue)|0,i=i+Math.imul(R,be)|0;var je=(d+(n=n+Math.imul(O,le)|0)|0)+((8191&(a=(a=a+Math.imul(O,pe)|0)+Math.imul(P,le)|0))<<13)|0;d=((i=i+Math.imul(P,pe)|0)+(a>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(U,fe),a=(a=Math.imul(U,de))+Math.imul(z,fe)|0,i=Math.imul(z,de),n=n+Math.imul(I,ue)|0,a=(a=a+Math.imul(I,be)|0)+Math.imul(L,ue)|0,i=i+Math.imul(L,be)|0;var Be=(d+(n=n+Math.imul(B,le)|0)|0)+((8191&(a=(a=a+Math.imul(B,pe)|0)+Math.imul(R,le)|0))<<13)|0;d=((i=i+Math.imul(R,pe)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,ue),a=(a=Math.imul(U,be))+Math.imul(z,ue)|0,i=Math.imul(z,be);var Re=(d+(n=n+Math.imul(I,le)|0)|0)+((8191&(a=(a=a+Math.imul(I,pe)|0)+Math.imul(L,le)|0))<<13)|0;d=((i=i+Math.imul(L,pe)|0)+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Ce=(d+(n=Math.imul(U,le))|0)+((8191&(a=(a=Math.imul(U,pe))+Math.imul(z,le)|0))<<13)|0;return d=((i=Math.imul(z,pe))+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=xe,f[2]=ye,f[3]=ve,f[4]=ge,f[5]=we,f[6]=_e,f[7]=Me,f[8]=ke,f[9]=Se,f[10]=Ae,f[11]=Ee,f[12]=Te,f[13]=Oe,f[14]=Pe,f[15]=je,f[16]=Be,f[17]=Re,f[18]=Ce,0!==d&&(f[19]=d,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}r.words[i]=c,n=o,o=a}return 0!==n?r.words[i]=n:r.length--,r._strip()}function v(e,t,r){return y(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(x=m),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?x(this,e,t):r<63?m(this,e,t):r<1024?y(this,e,t):v(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},g.prototype.permute=function(e,t,r,n,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,r[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,r+=i/67108864|0,r+=o>>>26,this.words[n]=67108863&o}return 0!==r&&(this.words[n]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>a&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,n=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),c=67108863^67108863>>>i<o)for(this.length-=o,d=0;d=0&&(0!==s||d>=n);d--){var u=0|this.words[d];this.words[d]=s<<26-i|u>>>i,s=u&c}return f&&0!==s&&(f.words[f.length++]=s),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return a(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(a("number"==typeof e),a(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(f/67108864|0),this.words[n+r]=67108863&i}for(;n>26,this.words[n+r]=67108863&i;if(0===c)return this._strip();for(a(-1===c),c=0,n=0;n>26,this.words[n]=67108863&i;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),a=e,i=0|a.words[a.length-1];0!==(r=26-this._countBits(i))&&(a=a.ushln(r),n.iushln(r),i=0|a.words[a.length-1]);var c,f=n.length-a.length;if("mod"!==t){(c=new o(null)).length=f+1,c.words=new Array(c.length);for(var d=0;d=0;u--){var b=67108864*(0|n.words[a.length+u])+(0|n.words[a.length+u-1]);for(b=Math.min(b/i|0,67108863),n._ishlnsubmul(a,b,u);0!==n.negative;)b--,n.negative=0,n._ishlnsubmul(a,1,u),n.isZero()||(n.negative^=1);c&&(c.words[u]=b)}return c&&c._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:c||null,mod:n}},o.prototype.divmod=function(e,t,r){return a(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(c=this.neg().divmod(e,t),"mod"!==t&&(n=c.div.neg()),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(c=this.divmod(e.neg(),t),"mod"!==t&&(n=c.div.neg()),{div:n,mod:c.mod}):0!=(this.negative&e.negative)?(c=this.neg().divmod(e.neg(),t),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.isub(e)),{div:c.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,i,c},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),i=r.cmp(n);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),a(e<=67108863);for(var r=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(r*n+(0|this.words[i]))%e;return t?-n:n},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),a(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*r;this.words[n]=i/e|0,r=i%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),i=new o(0),c=new o(0),f=new o(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var s=r.clone(),u=t.clone();!t.isZero();){for(var b=0,h=1;0==(t.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(s),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var l=0,p=1;0==(r.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(r.iushrn(l);l-- >0;)(c.isOdd()||f.isOdd())&&(c.iadd(s),f.isub(u)),c.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(c),i.isub(f)):(r.isub(t),c.isub(n),f.isub(i))}return{a:c,b:f,gcd:r.iushln(d)}},o.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new o(1),c=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var d=0,s=1;0==(t.words[0]&s)&&d<26;++d,s<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(f),i.iushrn(1);for(var u=0,b=1;0==(r.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(r.iushrn(u);u-- >0;)c.isOdd()&&c.iadd(f),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(c)):(r.isub(t),c.isub(i))}return(n=0===t.cmpn(1)?i:c).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var a=t.cmp(r);if(a<0){var i=t;t=r,r=i}else if(0===a||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,c&=67108863,this.words[o]=c}return 0!==i&&(this.words[o]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var n=0|this.words[r],a=0|e.words[r];if(n!==a){na&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new E(e)},o.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}_.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},i(M,_),M.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,a=i}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},M.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new M;else if("p224"===e)t=new k;else if("p192"===e)t=new S;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return w[e]=t,t},E.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);a(!n.isZero());var c=new o(1).toRed(this),f=c.redNeg(),d=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new o(2*s*s).toRed(this);0!==this.pow(s,d).cmp(f);)s.redIAdd(f);for(var u=this.pow(s,n),b=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),l=i;0!==h.cmp(c);){for(var p=h,m=0;0!==p.cmp(c);m++)p=p.redSqr();a(m=0;n--){for(var d=t.words[n],s=f-1;s>=0;s--){var u=d>>s&1;a!==r[0]&&(a=this.sqr(a)),0!==u||0!==i?(i<<=1,i|=u,(4===++c||0===n&&0===s)&&(a=this.mul(a,r[i]),c=0,i=0)):c=0}f=26}return a},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new T(e)},i(T,E),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(15)(e))},function(e,t){},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=void 0;var n=r(9);t.MAX_INTEGER=new n("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new n("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=e.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=e.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=e.from(t.KECCAK256_RLP_S,"hex")}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.importPublic=t.privateToPublic=t.privateToAddress=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.isPrecompiled=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isZeroAddress=t.isValidAddress=t.zeroAddress=void 0;var n=r(14),a=r(18),i=r(125),o=r(9),c=r(81),f=r(131);t.zeroAddress=function(){var e=c.zeros(20);return c.bufferToHex(e)},t.isValidAddress=function(e){return/^0x[0-9a-fA-F]{40}$/.test(e)},t.isZeroAddress=function(e){return t.zeroAddress()===c.addHexPrefix(e)},t.toChecksumAddress=function(e,t){e=a.stripHexPrefix(e).toLowerCase();for(var r=void 0!==t?t.toString()+"0x":"",n=f.keccak(r+e).toString("hex"),i="0x",o=0;o=8?i+=e[o].toUpperCase():i+=e[o];return i},t.isValidChecksumAddress=function(e,r){return t.isValidAddress(e)&&t.toChecksumAddress(e,r)===e},t.generateAddress=function(t,r){t=c.toBuffer(t);var n=new o(r);return n.isZero()?f.rlphash([t,null]).slice(-20):f.rlphash([t,e.from(n.toArray())]).slice(-20)},t.generateAddress2=function(t,r,a){var i=c.toBuffer(t),o=c.toBuffer(r),d=c.toBuffer(a);return n(20===i.length),n(32===o.length),f.keccak256(e.concat([e.from("ff","hex"),i,o,f.keccak256(d)])).slice(-20)},t.isPrecompiled=function(e){var t=c.unpad(e);return 1===t.length&&t[0]>=1&&t[0]<=8},t.isValidPrivate=function(e){return i.privateKeyVerify(e)},t.isValidPublic=function(t,r){return void 0===r&&(r=!1),64===t.length?i.publicKeyVerify(e.concat([e.from([4]),t])):!!r&&i.publicKeyVerify(t)},t.pubToAddress=function(e,t){return void 0===t&&(t=!1),e=c.toBuffer(e),t&&64!==e.length&&(e=i.publicKeyConvert(e,!1).slice(1)),n(64===e.length),f.keccak(e).slice(-20)},t.publicToAddress=t.pubToAddress,t.privateToAddress=function(e){return t.publicToAddress(t.privateToPublic(e))},t.privateToPublic=function(e){return e=c.toBuffer(e),i.publicKeyCreate(e,!1).slice(1)},t.importPublic=function(e){return 64!==(e=c.toBuffer(e)).length&&(e=i.publicKeyConvert(e,!1).slice(1)),e}}).call(this,r(0).Buffer)},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return e&&"object"===r(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){e.exports=r(407)(r(417))},function(e,t,r){var n=r(408),a=r(416);e.exports=function(e){var t=n(e),r=a(e);return function(e,n){switch("string"==typeof e?e.toLowerCase():e){case"keccak224":return new t(1152,448,null,224,n);case"keccak256":return new t(1088,512,null,256,n);case"keccak384":return new t(832,768,null,384,n);case"keccak512":return new t(576,1024,null,512,n);case"sha3-224":return new t(1152,448,6,224,n);case"sha3-256":return new t(1088,512,6,256,n);case"sha3-384":return new t(832,768,6,384,n);case"sha3-512":return new t(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: "+e)}}}},function(e,t,r){(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,r,n,a=o.allocUnsafe(e>>>0),i=this.head,c=0;i;)t=i.data,r=a,n=c,o.prototype.copy.call(t,r,n),c+=i.data.length,i=i.next;return a}},{key:"consume",value:function(e,t){var r;return ea.length?a.length:e;if(i===a.length?n+=a:n+=a.slice(0,e),0==(e-=i)){i===a.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=a.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var a=r.data,i=e>a.length?a.length:e;if(a.copy(t,t.length-e,0,i),0==(e-=i)){i===a.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=a.slice(i));break}++n}return this.length-=n,t}},{key:f,value:function(e,t){return c(this,function(e){for(var t=1;t0,(function(e){n||(n=e),e&&o.forEach(d),i||(o.forEach(d),a(n))}))}));return t.reduce(s)}},function(e,t,r){(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0);return r},a.prototype.copy=function(e){for(var t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=a}).call(this,r(0).Buffer)},function(e,t){var r=[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];t.p1600=function(e){for(var t=0;t<24;++t){var n=e[0]^e[10]^e[20]^e[30]^e[40],a=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],c=e[4]^e[14]^e[24]^e[34]^e[44],f=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],s=e[7]^e[17]^e[27]^e[37]^e[47],u=e[8]^e[18]^e[28]^e[38]^e[48],b=e[9]^e[19]^e[29]^e[39]^e[49],h=u^(i<<1|o>>>31),l=b^(o<<1|i>>>31),p=e[0]^h,m=e[1]^l,x=e[10]^h,y=e[11]^l,v=e[20]^h,g=e[21]^l,w=e[30]^h,_=e[31]^l,M=e[40]^h,k=e[41]^l;h=n^(c<<1|f>>>31),l=a^(f<<1|c>>>31);var S=e[2]^h,A=e[3]^l,E=e[12]^h,T=e[13]^l,O=e[22]^h,P=e[23]^l,j=e[32]^h,B=e[33]^l,R=e[42]^h,C=e[43]^l;h=i^(d<<1|s>>>31),l=o^(s<<1|d>>>31);var I=e[4]^h,L=e[5]^l,N=e[14]^h,U=e[15]^l,z=e[24]^h,F=e[25]^l,q=e[34]^h,H=e[35]^l,D=e[44]^h,K=e[45]^l;h=c^(u<<1|b>>>31),l=f^(b<<1|u>>>31);var G=e[6]^h,W=e[7]^l,V=e[16]^h,Z=e[17]^l,J=e[26]^h,X=e[27]^l,Y=e[36]^h,$=e[37]^l,Q=e[46]^h,ee=e[47]^l;h=d^(n<<1|a>>>31),l=s^(a<<1|n>>>31);var te=e[8]^h,re=e[9]^l,ne=e[18]^h,ae=e[19]^l,ie=e[28]^h,oe=e[29]^l,ce=e[38]^h,fe=e[39]^l,de=e[48]^h,se=e[49]^l,ue=p,be=m,he=y<<4|x>>>28,le=x<<4|y>>>28,pe=v<<3|g>>>29,me=g<<3|v>>>29,xe=_<<9|w>>>23,ye=w<<9|_>>>23,ve=M<<18|k>>>14,ge=k<<18|M>>>14,we=S<<1|A>>>31,_e=A<<1|S>>>31,Me=T<<12|E>>>20,ke=E<<12|T>>>20,Se=O<<10|P>>>22,Ae=P<<10|O>>>22,Ee=B<<13|j>>>19,Te=j<<13|B>>>19,Oe=R<<2|C>>>30,Pe=C<<2|R>>>30,je=L<<30|I>>>2,Be=I<<30|L>>>2,Re=N<<6|U>>>26,Ce=U<<6|N>>>26,Ie=F<<11|z>>>21,Le=z<<11|F>>>21,Ne=q<<15|H>>>17,Ue=H<<15|q>>>17,ze=K<<29|D>>>3,Fe=D<<29|K>>>3,qe=G<<28|W>>>4,He=W<<28|G>>>4,De=Z<<23|V>>>9,Ke=V<<23|Z>>>9,Ge=J<<25|X>>>7,We=X<<25|J>>>7,Ve=Y<<21|$>>>11,Ze=$<<21|Y>>>11,Je=ee<<24|Q>>>8,Xe=Q<<24|ee>>>8,Ye=te<<27|re>>>5,$e=re<<27|te>>>5,Qe=ne<<20|ae>>>12,et=ae<<20|ne>>>12,tt=oe<<7|ie>>>25,rt=ie<<7|oe>>>25,nt=ce<<8|fe>>>24,at=fe<<8|ce>>>24,it=de<<14|se>>>18,ot=se<<14|de>>>18;e[0]=ue^~Me&Ie,e[1]=be^~ke&Le,e[10]=qe^~Qe&pe,e[11]=He^~et&me,e[20]=we^~Re&Ge,e[21]=_e^~Ce&We,e[30]=Ye^~he&Se,e[31]=$e^~le&Ae,e[40]=je^~De&tt,e[41]=Be^~Ke&rt,e[2]=Me^~Ie&Ve,e[3]=ke^~Le&Ze,e[12]=Qe^~pe&Ee,e[13]=et^~me&Te,e[22]=Re^~Ge&nt,e[23]=Ce^~We&at,e[32]=he^~Se&Ne,e[33]=le^~Ae&Ue,e[42]=De^~tt&xe,e[43]=Ke^~rt&ye,e[4]=Ie^~Ve&it,e[5]=Le^~Ze&ot,e[14]=pe^~Ee&ze,e[15]=me^~Te&Fe,e[24]=Ge^~nt&ve,e[25]=We^~at&ge,e[34]=Se^~Ne&Je,e[35]=Ae^~Ue&Xe,e[44]=tt^~xe&Oe,e[45]=rt^~ye&Pe,e[6]=Ve^~it&ue,e[7]=Ze^~ot&be,e[16]=Ee^~ze&qe,e[17]=Te^~Fe&He,e[26]=nt^~ve&we,e[27]=at^~ge&_e,e[36]=Ne^~Je&Ye,e[37]=Ue^~Xe&$e,e[46]=xe^~Oe&je,e[47]=ye^~Pe&Be,e[8]=it^~ue&Me,e[9]=ot^~be&ke,e[18]=ze^~qe&Qe,e[19]=Fe^~He&et,e[28]=ve^~we&Re,e[29]=ge^~_e&Ce,e[38]=Je^~Ye&he,e[39]=Xe^~$e&le,e[48]=Oe^~je&De,e[49]=Pe^~Be&Ke,e[0]^=r[2*t],e[1]^=r[2*t+1]}}},function(e,t,r){(t=e.exports=r(214)).Stream=t,t.Readable=t,t.Writable=r(218),t.Duplex=r(66),t.Transform=r(219),t.PassThrough=r(425),t.finished=r(135),t.pipeline=r(426)},function(e,t){},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){for(var r=0;r0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,r,n,a=o.allocUnsafe(e>>>0),i=this.head,c=0;i;)t=i.data,r=a,n=c,o.prototype.copy.call(t,r,n),c+=i.data.length,i=i.next;return a}},{key:"consume",value:function(e,t){var r;return ea.length?a.length:e;if(i===a.length?n+=a:n+=a.slice(0,e),0==(e-=i)){i===a.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=a.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var a=r.data,i=e>a.length?a.length:e;if(a.copy(t,t.length-e,0,i),0==(e-=i)){i===a.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=a.slice(i));break}++n}return this.length-=n,t}},{key:f,value:function(e,t){return c(this,function(e){for(var t=1;t0,(function(e){n||(n=e),e&&o.forEach(d),i||(o.forEach(d),a(n))}))}));return t.reduce(s)}},function(e,t,r){var n=r(4),a=r(67),i=r(6).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],c=new Array(80);function f(){this.init(),this._w=c,a.call(this,64,56)}function d(e){return e<<30|e>>>2}function s(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(f,a),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},f.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,a=0|this._b,i=0|this._c,c=0|this._d,f=0|this._e,u=0;u<16;++u)r[u]=e.readInt32BE(4*u);for(;u<80;++u)r[u]=r[u-3]^r[u-8]^r[u-14]^r[u-16];for(var b=0;b<80;++b){var h=~~(b/20),l=0|((t=n)<<5|t>>>27)+s(h,a,i,c)+f+r[b]+o[h];f=c,c=i,i=d(a),a=n,n=l}this._a=n+this._a|0,this._b=a+this._b|0,this._c=i+this._c|0,this._d=c+this._d|0,this._e=f+this._e|0},f.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=f},function(e,t,r){var n=r(4),a=r(67),i=r(6).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],c=new Array(80);function f(){this.init(),this._w=c,a.call(this,64,56)}function d(e){return e<<5|e>>>27}function s(e){return e<<30|e>>>2}function u(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(f,a),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},f.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,a=0|this._b,i=0|this._c,c=0|this._d,f=0|this._e,b=0;b<16;++b)r[b]=e.readInt32BE(4*b);for(;b<80;++b)r[b]=(t=r[b-3]^r[b-8]^r[b-14]^r[b-16])<<1|t>>>31;for(var h=0;h<80;++h){var l=~~(h/20),p=d(n)+u(l,a,i,c)+f+r[h]+o[l]|0;f=c,c=i,i=s(a),a=n,n=p}this._a=n+this._a|0,this._b=a+this._b|0,this._c=i+this._c|0,this._d=c+this._d|0,this._e=f+this._e|0},f.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=f},function(e,t,r){var n=r(4),a=r(220),i=r(67),o=r(6).Buffer,c=new Array(64);function f(){this.init(),this._w=c,i.call(this,64,56)}n(f,a),f.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},f.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=f},function(e,t,r){var n=r(4),a=r(221),i=r(67),o=r(6).Buffer,c=new Array(160);function f(){this.init(),this._w=c,i.call(this,128,112)}n(f,a),f.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},f.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=f},function(e,t,r){e.exports=a;var n=r(23).EventEmitter;function a(){n.call(this)}r(432)(a,n),a.Readable=r(82),a.Writable=r(438),a.Duplex=r(439),a.Transform=r(440),a.PassThrough=r(441),a.Stream=a,a.prototype.pipe=function(e,t){var r=this;function a(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",a),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",c),r.on("close",f));var o=!1;function c(){o||(o=!0,e.end())}function f(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function d(e){if(s(),0===n.listenerCount(this,"error"))throw e}function s(){r.removeListener("data",a),e.removeListener("drain",i),r.removeListener("end",c),r.removeListener("close",f),r.removeListener("error",d),e.removeListener("error",d),r.removeListener("end",s),r.removeListener("close",s),e.removeListener("close",s)}return r.on("error",d),e.on("error",d),r.on("end",s),r.on("close",s),e.on("close",s),e.emit("pipe",r),e}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t){},function(e,t,r){"use strict";var n=r(138).Buffer,a=r(435);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,a,i=n.allocUnsafe(e>>>0),o=this.head,c=0;o;)t=o.data,r=i,a=c,t.copy(r,a),c+=o.data.length,o=o.next;return i},e}(),a&&a.inspect&&a.inspect.custom&&(e.exports.prototype[a.inspect.custom]=function(){var e=a.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,a,i,o,c,f=1,d={},s=!1,u=e.document,b=Object.getPrototypeOf&&Object.getPrototypeOf(e);b=b&&b.setTimeout?b:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){l(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){l(e.data)},n=function(e){i.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(a=u.documentElement,n=function(e){var t=u.createElement("script");t.onreadystatechange=function(){l(e),t.onreadystatechange=null,a.removeChild(t),t=null},a.appendChild(t)}):n=function(e){setTimeout(l,0,e)}:(o="setImmediate$"+Math.random()+"$",c=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&l(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",c,!1):e.attachEvent("onmessage",c),n=function(t){e.postMessage(o+t,"*")}),b.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r=0){var s=d.split("|");d=s[0],c=parseInt(s[1])}var u=Uint8Array.from(e.from(d,"hex"));i=e.from(u.slice(0,32)),o=e.from(u.slice(32,64))}else{var b=n.sign(t,r);c=b.recovery,i=b.signature.slice(0,32),o=b.signature.slice(32,64)}return{r:i,s:o,v:a?c+(2*a+35):c+27}},t.ecrecover=function(t,r,a,o,d){var s=e.concat([i.setLength(a,32),i.setLength(o,32)],64),u=c(r,d);if(!f(u))throw new Error("Invalid signature v value");var b=n.recover(t,s,u);return n.publicKeyConvert(b,!1).slice(1)},t.toRpcSig=function(t,r,n,a){if(!f(c(t,a)))throw new Error("Invalid signature v value");return i.bufferToHex(e.concat([i.setLengthLeft(r,32),i.setLengthLeft(n,32),i.toBuffer(t)]))},t.fromRpcSig=function(e){var t=i.toBuffer(e);if(65!==t.length)throw new Error("Invalid signature length");var r=t[64];return r<27&&(r+=27),{v:r,r:t.slice(0,32),s:t.slice(32,64)}},t.isValidSignature=function(e,t,r,n,i){void 0===n&&(n=!0);var o=new a("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),d=new a("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==r.length)return!1;if(!f(c(e,i)))return!1;var s=new a(t),u=new a(r);return!(s.isZero()||s.gt(d)||u.isZero()||u.gt(d))&&(!n||1!==u.cmp(o))},t.hashPersonalMessage=function(t){var r=e.from("Ethereum Signed Message:\n"+t.length.toString(),"utf-8");return o.keccak(e.concat([r,t]))}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.defineProperties=void 0;var a=r(14),i=r(18),o=r(21),c=r(81);t.defineProperties=function(t,r,f){if(t.raw=[],t._fields=[],t.toJSON=function(e){if(void 0===e&&(e=!1),e){var r={};return t._fields.forEach((function(e){r[e]="0x"+t[e].toString("hex")})),r}return c.baToJSON(t.raw)},t.serialize=function(){return o.encode(t.raw)},r.forEach((function(r,n){function i(){return t.raw[n]}function o(i){"00"!==(i=c.toBuffer(i)).toString("hex")||r.allowZero||(i=e.allocUnsafe(0)),r.allowLess&&r.length?(i=c.stripZeros(i),a(r.length>=i.length,"The field "+r.name+" must not have more "+r.length+" bytes")):r.allowZero&&0===i.length||!r.length||a(r.length===i.length,"The field "+r.name+" must have byte length of "+r.length),t.raw[n]=i}t._fields.push(r.name),Object.defineProperty(t,r.name,{enumerable:!0,configurable:!0,get:i,set:o}),r.default&&(t[r.name]=r.default),r.alias&&Object.defineProperty(t,r.alias,{enumerable:!1,configurable:!0,set:o,get:i})})),f)if("string"==typeof f&&(f=e.from(i.stripHexPrefix(f),"hex")),e.isBuffer(f)&&(f=o.decode(f)),Array.isArray(f)){if(f.length>t._fields.length)throw new Error("wrong number of fields in data");f.forEach((function(e,r){t[t._fields[r]]=c.toBuffer(e)}))}else{if("object"!==n(f))throw new Error("invalid data");var d=Object.keys(f);r.forEach((function(e){-1!==d.indexOf(e.name)&&(t[e.name]=f[e.name]),-1!==d.indexOf(e.alias)&&(t[e.alias]=f[e.alias])}))}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=c(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,f=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){f=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(f)throw i}}}}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,a,i=[],o=!0,c=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){c=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(c)throw a}}return i}(e,t)||c(e,t)||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.")}()}function c(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:new Set,n=e.match(/^[0-9A-Z_a-z]*/),a=o(n,1);if(e=a[0],r.has(e)||void 0===t[e])return r;r.add(e);var c,f=i(t[e]);try{for(f.s();!(c=f.n()).done;){var d=c.value;x(d.type,t,r)}}catch(e){f.e(e)}finally{f.f()}return r}function y(e,t,r,n){return h(n,[d.V3,d.V4]),s.keccak(p(e,t,r,n))}function v(e,t){return s.keccak(m(e,t))}function g(e){var r={};for(var n in t.TYPED_MESSAGE_SCHEMA.properties)e[n]&&(r[n]=e[n]);return"types"in r&&(r.types=Object.assign({EIP712Domain:[]},r.types)),r}function w(e){var t=new Error("Expect argument to be non-empty array");if("object"!==n(e)||!("length"in e)||!e.length)throw t;var r=e.map((function(e){return"bytes"!==e.type?e.value:b.legacyToBuffer(e.value)})),a=e.map((function(e){return e.type})),i=e.map((function(e){if(!e.name)throw t;return"".concat(e.type," ").concat(e.name)}));return u.soliditySHA3(["bytes32","bytes32"],[u.soliditySHA3(new Array(e.length).fill("string"),i),u.soliditySHA3(a,r)])}!function(e){e.V1="V1",e.V3="V3",e.V4="V4"}(d=t.SignTypedDataVersion||(t.SignTypedDataVersion={})),t.TYPED_MESSAGE_SCHEMA={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},t.TypedDataUtils={encodeData:p,encodeType:m,findTypeDependencies:x,hashStruct:y,hashType:v,sanitizeData:g,eip712Hash:function(t,r){h(r,[d.V3,d.V4]);var n=g(t),a=[e.from("1901","hex")];return a.push(y("EIP712Domain",n.domain,n.types,r)),"EIP712Domain"!==n.primaryType&&a.push(y(n.primaryType,n.message,n.types,r)),s.keccak(e.concat(a))}},t.typedSignatureHash=function(e){var t=w(e);return s.bufferToHex(t)},t.signTypedData=function(e){var r=e.privateKey,n=e.data,a=e.version;if(h(a),b.isNullish(n))throw new Error("Missing data parameter");if(b.isNullish(r))throw new Error("Missing private key parameter");var i=a===d.V1?w(n):t.TypedDataUtils.eip712Hash(n,a),o=s.ecsign(i,r);return b.concatSig(s.toBuffer(o.v),o.r,o.s)},t.recoverTypedSignature=function(e){var r=e.data,n=e.signature,a=e.version;if(h(a),b.isNullish(r))throw new Error("Missing data parameter");if(b.isNullish(n))throw new Error("Missing signature parameter");var i=a===d.V1?w(r):t.TypedDataUtils.eip712Hash(r,a),o=b.recoverPublicKey(i,n),c=s.publicToAddress(o);return s.bufferToHex(c)}}).call(this,r(0).Buffer)},function(e,t,r){e.exports=r(446)},function(e,t,r){(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=r(447),i=r(9),o=function(){};function c(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e}function f(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function d(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function s(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":parseInt(t[2],10):null}function u(e){var t=n(e);if("string"===t)return a.isHexPrefixed(e)?new i(a.stripHexPrefix(e),16):new i(e,10);if("number"===t)return new i(e);if(e.toArray)return e;throw new Error("Argument is not a number")}function b(e){var t=/^(\w+)\((.*)\)$/.exec(e);if(3!==t.length)throw new Error("Invalid method signature");var r=/^(.+)\):\((.+)$/.exec(t[2]);if(null!==r&&3===r.length)return{method:t[1],args:r[1].split(","),retargs:r[2].split(",")};var n=t[2].split(",");return 1===n.length&&""===n[0]&&(n=[]),{method:t[1],args:n}}function h(e,r){var n,o,c,b;if("address"===e)return h("uint160",u(r));if("bool"===e)return h("uint8",r?1:0);if("string"===e)return h("bytes",t.from(r,"utf8"));if(x(e)){if(void 0===r.length)throw new Error("Not an array?");if("dynamic"!==(n=s(e))&&0!==n&&r.length>n)throw new Error("Elements exceed array size: "+n);for(b in c=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof r&&(r=JSON.parse(r)),r)c.push(h(e,r[b]));if("dynamic"===n){var l=h("uint256",r.length);c.unshift(l)}return t.concat(c)}if("bytes"===e)return r=t.from(r),c=t.concat([h("uint256",r.length),r]),r.length%32!=0&&(c=t.concat([c,a.zeros(32-r.length%32)])),c;if(e.startsWith("bytes")){if((n=f(e))<1||n>32)throw new Error("Invalid bytes width: "+n);return a.setLengthRight(r,32)}if(e.startsWith("uint")){if((n=f(e))%8||n<8||n>256)throw new Error("Invalid uint width: "+n);if((o=u(r)).bitLength()>n)throw new Error("Supplied uint exceeds width: "+n+" vs "+o.bitLength());if(o<0)throw new Error("Supplied uint is negative");return o.toArrayLike(t,"be",32)}if(e.startsWith("int")){if((n=f(e))%8||n<8||n>256)throw new Error("Invalid int width: "+n);if((o=u(r)).bitLength()>n)throw new Error("Supplied int exceeds width: "+n+" vs "+o.bitLength());return o.toTwos(256).toArrayLike(t,"be",32)}if(e.startsWith("ufixed")){if(n=d(e),(o=u(r))<0)throw new Error("Supplied ufixed is negative");return h("uint256",o.mul(new i(2).pow(new i(n[1]))))}if(e.startsWith("fixed"))return n=d(e),h("int256",u(r).mul(new i(2).pow(new i(n[1]))));throw new Error("Unsupported or invalid type: "+e)}function l(e,r,n){var a,o,c,f;if("string"==typeof e&&(e=p(e)),"address"===e.name)return l(e.rawType,r,n).toArrayLike(t,"be",20).toString("hex");if("bool"===e.name)return l(e.rawType,r,n).toString()===new i(1).toString();if("string"===e.name){var d=l(e.rawType,r,n);return t.from(d,"utf8").toString()}if(e.isArray){for(c=[],a=e.size,"dynamic"===e.size&&(n=l("uint256",r,n).toNumber(),a=l("uint256",r,n).toNumber(),n+=32),f=0;fe.size)throw new Error("Decoded int exceeds width: "+e.size+" vs "+o.bitLength());return o}if(e.name.startsWith("int")){if((o=new i(r.slice(n,n+32),16,"be").fromTwos(256)).bitLength()>e.size)throw new Error("Decoded uint exceeds width: "+e.size+" vs "+o.bitLength());return o}if(e.name.startsWith("ufixed")){if(a=new i(2).pow(new i(e.size[1])),!(o=l("uint256",r,n)).mod(a).isZero())throw new Error("Decimals not supported yet");return o.div(a)}if(e.name.startsWith("fixed")){if(a=new i(2).pow(new i(e.size[1])),!(o=l("int256",r,n)).mod(a).isZero())throw new Error("Decimals not supported yet");return o.div(a)}throw new Error("Unsupported or invalid type: "+e.name)}function p(e){var t,r,n;if(x(e)){t=s(e);var a=e.slice(0,e.lastIndexOf("["));return a=p(a),r={isArray:!0,name:e,size:t,memoryUsage:"dynamic"===t?32:a.memoryUsage*t,subArray:a}}switch(e){case"address":n="uint160";break;case"bool":n="uint8";break;case"string":n="bytes"}if(r={rawType:n,name:e,memoryUsage:32},e.startsWith("bytes")&&"bytes"!==e||e.startsWith("uint")||e.startsWith("int")?r.size=f(e):(e.startsWith("ufixed")||e.startsWith("fixed"))&&(r.size=d(e)),e.startsWith("bytes")&&"bytes"!==e&&(r.size<1||r.size>32))throw new Error("Invalid bytes width: "+r.size);if((e.startsWith("uint")||e.startsWith("int"))&&(r.size%8||r.size<8||r.size>256))throw new Error("Invalid int/uint width: "+r.size);return r}function m(e){return"string"===e||"bytes"===e||"dynamic"===s(e)}function x(e){return e.lastIndexOf("]")===e.length-1}function y(e,t){return e.startsWith("address")||e.startsWith("bytes")?"0x"+t.toString("hex"):t.toString()}o.eventID=function(e,r){var n=e+"("+r.map(c).join(",")+")";return a.keccak256(t.from(n))},o.methodID=function(e,t){return o.eventID(e,t).slice(0,4)},o.rawEncode=function(e,r){var n=[],a=[],i=0;e.forEach((function(e){if(x(e)){var t=s(e);i+="dynamic"!==t?32*t:32}else i+=32}));for(var o=0;ob)throw new Error("Elements exceed array size: "+b)}var h=r.map((function(e){return o.solidityHexValue(d,e,256)}));return t.concat(h)}if("bytes"===e)return r;if("string"===e)return t.from(r,"utf8");if("bool"===e){n=n||8;var l=Array(n/4).join("0");return t.from(r?l+"1":l+"0","hex")}if("address"===e){var p=20;return n&&(p=n/8),a.setLengthLeft(r,p)}if(e.startsWith("bytes")){if((i=f(e))<1||i>32)throw new Error("Invalid bytes width: "+i);return a.setLengthRight(r,i)}if(e.startsWith("uint")){if((i=f(e))%8||i<8||i>256)throw new Error("Invalid uint width: "+i);if((c=u(r)).bitLength()>i)throw new Error("Supplied uint exceeds width: "+i+" vs "+c.bitLength());return n=n||i,c.toArrayLike(t,"be",n/8)}if(e.startsWith("int")){if((i=f(e))%8||i<8||i>256)throw new Error("Invalid int width: "+i);if((c=u(r)).bitLength()>i)throw new Error("Supplied int exceeds width: "+i+" vs "+c.bitLength());return n=n||i,c.toTwos(i).toArrayLike(t,"be",n/8)}throw new Error("Unsupported or invalid type: "+e)},o.solidityPack=function(e,r){if(e.length!==r.length)throw new Error("Number of types are not matching the values");for(var n=[],a=0;a="0"&&t<="9");)i+=e[o]-"0",o++;n=o-1,r.push(i)}else if("i"===a)r.push("int256");else{if("a"!==a)throw new Error("Unsupported or invalid type: "+a);r.push("int256[]")}}return r},o.toSerpent=function(e){for(var t=[],r=0;r=0)throw new Error("couldn't export to DER format");var c=a.g.mul(r);return o(c.getX(),c.getY(),t)},t.privateKeyModInverse=function(t){var r=new n(t);if(r.ucmp(i.n)>=0||r.isZero())throw new Error("private key range is invalid");return r.invm(i.n).toArrayLike(e,"be",32)},t.signatureImport=function(t){var r=new n(t.r);r.ucmp(i.n)>=0&&(r=new n(0));var a=new n(t.s);return a.ucmp(i.n)>=0&&(a=new n(0)),e.concat([r.toArrayLike(e,"be",32),a.toArrayLike(e,"be",32)])},t.ecdhUnsafe=function(e,t,r){void 0===r&&(r=!0);var c=a.keyFromPublic(e),f=new n(t);if(f.ucmp(i.n)>=0||f.isZero())throw new Error("scalar was invalid (zero or overflow)");var d=c.pub.mul(f);return o(d.getX(),d.getY(),r)};var o=function(t,r,n){var a;return n?((a=e.alloc(33))[0]=r.isOdd()?3:2,t.toArrayLike(e,"be",32).copy(a,1)):((a=e.alloc(65))[0]=4,t.toArrayLike(e,"be",32).copy(a,1),r.toArrayLike(e,"be",32).copy(a,33)),a}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=e.from([48,129,211,2,1,1,4,32,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,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,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,0,0,0,0,0,0,0,0,0]),n=e.from([48,130,1,19,2,1,1,4,32,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,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);t.privateKeyExport=function(t,a,i){void 0===i&&(i=!0);var o=e.from(i?r:n);return t.copy(o,i?8:9),a.copy(o,i?181:214),o},t.privateKeyImport=function(e){var t=e.length,r=0;if(t2)return null;if(t<(r+=1)+n)return null;var a=e[r+n-1]|(n>1?e[r+n-2]<<8:0);return t<(r+=n)+a||t32||ta)return null;if(2!==t[i++])return null;var c=t[i++];if(128&c){if(i+(o=c-128)>a)return null;for(;o>0&&0===t[i];i+=1,o-=1);for(c=0;o>0;i+=1,o-=1)c=(c<<8)+t[i]}if(c>a-i)return null;var f=i;if(i+=c,2!==t[i++])return null;var d=t[i++];if(128&d){if(i+(o=d-128)>a)return null;for(;o>0&&0===t[i];i+=1,o-=1);for(d=0;o>0;i+=1,o-=1)d=(d<<8)+t[i]}if(d>a-i)return null;var s=i;for(i+=d;c>0&&0===t[f];c-=1,f+=1);if(c>32)return null;var u=t.slice(f,f+c);for(u.copy(r,32-u.length);d>0&&0===t[s];d-=1,s+=1);if(d>32)return null;var b=t.slice(s,s+d);return b.copy(n,32-b.length),{r:r,s:n}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=void 0;var n=r(9);t.MAX_INTEGER=new n("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new n("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=e.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=e.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=e.from(t.KECCAK256_RLP_S,"hex")}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.importPublic=t.privateToPublic=t.privateToAddress=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.isPrecompiled=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isZeroAddress=t.isValidAddress=t.zeroAddress=void 0;var n=r(14),a=r(18),i=r(140),o=r(9),c=r(84),f=r(141);t.zeroAddress=function(){var e=c.zeros(20);return c.bufferToHex(e)},t.isValidAddress=function(e){return/^0x[0-9a-fA-F]{40}$/.test(e)},t.isZeroAddress=function(e){return t.zeroAddress()===c.addHexPrefix(e)},t.toChecksumAddress=function(e,t){e=a.stripHexPrefix(e).toLowerCase();for(var r=void 0!==t?t.toString()+"0x":"",n=f.keccak(r+e).toString("hex"),i="0x",o=0;o=8?i+=e[o].toUpperCase():i+=e[o];return i},t.isValidChecksumAddress=function(e,r){return t.isValidAddress(e)&&t.toChecksumAddress(e,r)===e},t.generateAddress=function(t,r){t=c.toBuffer(t);var n=new o(r);return n.isZero()?f.rlphash([t,null]).slice(-20):f.rlphash([t,e.from(n.toArray())]).slice(-20)},t.generateAddress2=function(t,r,a){var i=c.toBuffer(t),o=c.toBuffer(r),d=c.toBuffer(a);return n(20===i.length),n(32===o.length),f.keccak256(e.concat([e.from("ff","hex"),i,o,f.keccak256(d)])).slice(-20)},t.isPrecompiled=function(e){var t=c.unpad(e);return 1===t.length&&t[0]>=1&&t[0]<=8},t.isValidPrivate=function(e){return i.privateKeyVerify(e)},t.isValidPublic=function(t,r){return void 0===r&&(r=!1),64===t.length?i.publicKeyVerify(e.concat([e.from([4]),t])):!!r&&i.publicKeyVerify(t)},t.pubToAddress=function(e,t){return void 0===t&&(t=!1),e=c.toBuffer(e),t&&64!==e.length&&(e=i.publicKeyConvert(e,!1).slice(1)),n(64===e.length),f.keccak(e).slice(-20)},t.publicToAddress=t.pubToAddress,t.privateToAddress=function(e){return t.publicToAddress(t.privateToPublic(e))},t.privateToPublic=function(e){return e=c.toBuffer(e),i.publicKeyCreate(e,!1).slice(1)},t.importPublic=function(e){return 64!==(e=c.toBuffer(e)).length&&(e=i.publicKeyConvert(e,!1).slice(1)),e}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0;var n=r(140),a=r(9),i=r(84),o=r(141);function c(e,t){return t?e-(2*t+35):e-27}function f(e){return 0===e||1===e}t.ecsign=function(t,r,n){var a,i,o;if(window.jsb&&window.jsb.walletSignTran){var c=t.toString("hex"),f=jsb.walletSignTran(c);if(f.indexOf("|")>=0){var d=f.split("|");f=d[0],o=parseInt(d[1])}var s=Uint8Array.from(e.from(f,"hex"));console.log(s),a=e.from(s.slice(0,32)),i=e.from(s.slice(32,64))}else{var u=(0,secp256k1_1.ecdsaSign)(t,r),b=u.signature;o=u.recid,a=e.from(b.slice(0,32)),i=e.from(b.slice(32,64))}return{r:a,s:i,v:n?o+(2*n+35):o+27}},t.ecrecover=function(t,r,a,o,d){var s=e.concat([i.setLength(a,32),i.setLength(o,32)],64),u=c(r,d);if(!f(u))throw new Error("Invalid signature v value");var b=n.recover(t,s,u);return n.publicKeyConvert(b,!1).slice(1)},t.toRpcSig=function(t,r,n,a){if(!f(c(t,a)))throw new Error("Invalid signature v value");return i.bufferToHex(e.concat([i.setLengthLeft(r,32),i.setLengthLeft(n,32),i.toBuffer(t)]))},t.fromRpcSig=function(e){var t=i.toBuffer(e);if(65!==t.length)throw new Error("Invalid signature length");var r=t[64];return r<27&&(r+=27),{v:r,r:t.slice(0,32),s:t.slice(32,64)}},t.isValidSignature=function(e,t,r,n,i){void 0===n&&(n=!0);var o=new a("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),d=new a("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==r.length)return!1;if(!f(c(e,i)))return!1;var s=new a(t),u=new a(r);return!(s.isZero()||s.gt(d)||u.isZero()||u.gt(d))&&(!n||1!==u.cmp(o))},t.hashPersonalMessage=function(t){var r=e.from("Ethereum Signed Message:\n"+t.length.toString(),"utf-8");return o.keccak(e.concat([r,t]))}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.defineProperties=void 0;var a=r(14),i=r(18),o=r(21),c=r(84);t.defineProperties=function(t,r,f){if(t.raw=[],t._fields=[],t.toJSON=function(e){if(void 0===e&&(e=!1),e){var r={};return t._fields.forEach((function(e){r[e]="0x"+t[e].toString("hex")})),r}return c.baToJSON(t.raw)},t.serialize=function(){return o.encode(t.raw)},r.forEach((function(r,n){function i(){return t.raw[n]}function o(i){"00"!==(i=c.toBuffer(i)).toString("hex")||r.allowZero||(i=e.allocUnsafe(0)),r.allowLess&&r.length?(i=c.stripZeros(i),a(r.length>=i.length,"The field "+r.name+" must not have more "+r.length+" bytes")):r.allowZero&&0===i.length||!r.length||a(r.length===i.length,"The field "+r.name+" must have byte length of "+r.length),t.raw[n]=i}t._fields.push(r.name),Object.defineProperty(t,r.name,{enumerable:!0,configurable:!0,get:i,set:o}),r.default&&(t[r.name]=r.default),r.alias&&Object.defineProperty(t,r.alias,{enumerable:!1,configurable:!0,set:o,get:i})})),f)if("string"==typeof f&&(f=e.from(i.stripHexPrefix(f),"hex")),e.isBuffer(f)&&(f=o.decode(f)),Array.isArray(f)){if(f.length>t._fields.length)throw new Error("wrong number of fields in data");f.forEach((function(e,r){t[t._fields[r]]=c.toBuffer(e)}))}else{if("object"!==n(f))throw new Error("invalid data");var d=Object.keys(f);r.forEach((function(e){-1!==d.indexOf(e.name)&&(t[e.name]=f[e.name]),-1!==d.indexOf(e.alias)&&(t[e.alias]=f[e.alias])}))}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getEncryptionPublicKey=t.decryptSafely=t.decrypt=t.encryptSafely=t.encrypt=void 0;var c=o(r(455)),f=o(r(457)),d=r(105);function s(e){var t=e.publicKey,r=e.data,n=e.version;if(d.isNullish(t))throw new Error("Missing publicKey parameter");if(d.isNullish(r))throw new Error("Missing data parameter");if(d.isNullish(n))throw new Error("Missing version parameter");switch(n){case"x25519-xsalsa20-poly1305":if("string"!=typeof r)throw new Error("Message data must be given as a string");var a,i=c.box.keyPair();try{a=f.decodeBase64(t)}catch(e){throw new Error("Bad public key")}var o=f.decodeUTF8(r),s=c.randomBytes(c.box.nonceLength),u=c.box(o,s,a,i.secretKey);return{version:"x25519-xsalsa20-poly1305",nonce:f.encodeBase64(s),ephemPublicKey:f.encodeBase64(i.publicKey),ciphertext:f.encodeBase64(u)};default:throw new Error("Encryption type/version not supported")}}function u(e){var t=e.encryptedData,r=e.privateKey;if(d.isNullish(t))throw new Error("Missing encryptedData parameter");if(d.isNullish(r))throw new Error("Missing privateKey parameter");switch(t.version){case"x25519-xsalsa20-poly1305":var n,a=b(r),i=c.box.keyPair.fromSecretKey(a).secretKey,o=f.decodeBase64(t.nonce),s=f.decodeBase64(t.ciphertext),u=f.decodeBase64(t.ephemPublicKey),h=c.box.open(s,o,u,i);try{n=f.encodeUTF8(h)}catch(e){throw new Error("Decryption failed.")}if(n)return n;throw new Error("Decryption failed.");default:throw new Error("Encryption type/version not supported.")}}function b(t){var r=e.from(t,"hex").toString("base64");return f.decodeBase64(r)}t.encrypt=s,t.encryptSafely=function(t){var r=t.publicKey,a=t.data,i=t.version;if(d.isNullish(r))throw new Error("Missing publicKey parameter");if(d.isNullish(a))throw new Error("Missing data parameter");if(d.isNullish(i))throw new Error("Missing version parameter");var o=Math.pow(2,11);if("object"===n(a)&&"toJSON"in a)throw new Error("Cannot encrypt with toJSON property. Please remove toJSON property");var c={data:a,padding:""},f=e.byteLength(JSON.stringify(c),"utf-8")%o,u=0;return f>0&&(u=o-f-16),c.padding="0".repeat(u),s({publicKey:r,data:JSON.stringify(c),version:i})},t.decrypt=u,t.decryptSafely=function(e){var t=e.encryptedData,r=e.privateKey;if(d.isNullish(t))throw new Error("Missing encryptedData parameter");if(d.isNullish(r))throw new Error("Missing privateKey parameter");return JSON.parse(u({encryptedData:t,privateKey:r})).data},t.getEncryptionPublicKey=function(e){var t=b(e),r=c.box.keyPair.fromSecretKey(t).publicKey;return f.encodeBase64(r)}}).call(this,r(0).Buffer)},function(e,t,r){!function(e){"use strict";var t=function(e){var t,r=new Float64Array(16);if(e)for(t=0;t>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r,e[t+4]=n>>24&255,e[t+5]=n>>16&255,e[t+6]=n>>8&255,e[t+7]=255&n}function p(e,t,r,n,a){var i,o=0;for(i=0;i>>8)-1}function m(e,t,r,n){return p(e,t,r,n,16)}function x(e,t,r,n){return p(e,t,r,n,32)}function y(e,t,r,n){!function(e,t,r,n){for(var a,i=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,c=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,f=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,d=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,u=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,b=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,l=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,p=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,m=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,x=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,y=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,v=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,g=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,w=i,_=o,M=c,k=f,S=d,A=s,E=u,T=b,O=h,P=l,j=p,B=m,R=x,C=y,I=v,L=g,N=0;N<20;N+=2)w^=(a=(R^=(a=(O^=(a=(S^=(a=w+R|0)<<7|a>>>25)+w|0)<<9|a>>>23)+S|0)<<13|a>>>19)+O|0)<<18|a>>>14,A^=(a=(_^=(a=(C^=(a=(P^=(a=A+_|0)<<7|a>>>25)+A|0)<<9|a>>>23)+P|0)<<13|a>>>19)+C|0)<<18|a>>>14,j^=(a=(E^=(a=(M^=(a=(I^=(a=j+E|0)<<7|a>>>25)+j|0)<<9|a>>>23)+I|0)<<13|a>>>19)+M|0)<<18|a>>>14,L^=(a=(B^=(a=(T^=(a=(k^=(a=L+B|0)<<7|a>>>25)+L|0)<<9|a>>>23)+k|0)<<13|a>>>19)+T|0)<<18|a>>>14,w^=(a=(k^=(a=(M^=(a=(_^=(a=w+k|0)<<7|a>>>25)+w|0)<<9|a>>>23)+_|0)<<13|a>>>19)+M|0)<<18|a>>>14,A^=(a=(S^=(a=(T^=(a=(E^=(a=A+S|0)<<7|a>>>25)+A|0)<<9|a>>>23)+E|0)<<13|a>>>19)+T|0)<<18|a>>>14,j^=(a=(P^=(a=(O^=(a=(B^=(a=j+P|0)<<7|a>>>25)+j|0)<<9|a>>>23)+B|0)<<13|a>>>19)+O|0)<<18|a>>>14,L^=(a=(I^=(a=(C^=(a=(R^=(a=L+I|0)<<7|a>>>25)+L|0)<<9|a>>>23)+R|0)<<13|a>>>19)+C|0)<<18|a>>>14;w=w+i|0,_=_+o|0,M=M+c|0,k=k+f|0,S=S+d|0,A=A+s|0,E=E+u|0,T=T+b|0,O=O+h|0,P=P+l|0,j=j+p|0,B=B+m|0,R=R+x|0,C=C+y|0,I=I+v|0,L=L+g|0,e[0]=w>>>0&255,e[1]=w>>>8&255,e[2]=w>>>16&255,e[3]=w>>>24&255,e[4]=_>>>0&255,e[5]=_>>>8&255,e[6]=_>>>16&255,e[7]=_>>>24&255,e[8]=M>>>0&255,e[9]=M>>>8&255,e[10]=M>>>16&255,e[11]=M>>>24&255,e[12]=k>>>0&255,e[13]=k>>>8&255,e[14]=k>>>16&255,e[15]=k>>>24&255,e[16]=S>>>0&255,e[17]=S>>>8&255,e[18]=S>>>16&255,e[19]=S>>>24&255,e[20]=A>>>0&255,e[21]=A>>>8&255,e[22]=A>>>16&255,e[23]=A>>>24&255,e[24]=E>>>0&255,e[25]=E>>>8&255,e[26]=E>>>16&255,e[27]=E>>>24&255,e[28]=T>>>0&255,e[29]=T>>>8&255,e[30]=T>>>16&255,e[31]=T>>>24&255,e[32]=O>>>0&255,e[33]=O>>>8&255,e[34]=O>>>16&255,e[35]=O>>>24&255,e[36]=P>>>0&255,e[37]=P>>>8&255,e[38]=P>>>16&255,e[39]=P>>>24&255,e[40]=j>>>0&255,e[41]=j>>>8&255,e[42]=j>>>16&255,e[43]=j>>>24&255,e[44]=B>>>0&255,e[45]=B>>>8&255,e[46]=B>>>16&255,e[47]=B>>>24&255,e[48]=R>>>0&255,e[49]=R>>>8&255,e[50]=R>>>16&255,e[51]=R>>>24&255,e[52]=C>>>0&255,e[53]=C>>>8&255,e[54]=C>>>16&255,e[55]=C>>>24&255,e[56]=I>>>0&255,e[57]=I>>>8&255,e[58]=I>>>16&255,e[59]=I>>>24&255,e[60]=L>>>0&255,e[61]=L>>>8&255,e[62]=L>>>16&255,e[63]=L>>>24&255}(e,t,r,n)}function v(e,t,r,n){!function(e,t,r,n){for(var a,i=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,c=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,f=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,d=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,u=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,b=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,l=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,p=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,m=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,x=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,y=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,v=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,g=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,w=0;w<20;w+=2)i^=(a=(x^=(a=(h^=(a=(d^=(a=i+x|0)<<7|a>>>25)+i|0)<<9|a>>>23)+d|0)<<13|a>>>19)+h|0)<<18|a>>>14,s^=(a=(o^=(a=(y^=(a=(l^=(a=s+o|0)<<7|a>>>25)+s|0)<<9|a>>>23)+l|0)<<13|a>>>19)+y|0)<<18|a>>>14,p^=(a=(u^=(a=(c^=(a=(v^=(a=p+u|0)<<7|a>>>25)+p|0)<<9|a>>>23)+v|0)<<13|a>>>19)+c|0)<<18|a>>>14,g^=(a=(m^=(a=(b^=(a=(f^=(a=g+m|0)<<7|a>>>25)+g|0)<<9|a>>>23)+f|0)<<13|a>>>19)+b|0)<<18|a>>>14,i^=(a=(f^=(a=(c^=(a=(o^=(a=i+f|0)<<7|a>>>25)+i|0)<<9|a>>>23)+o|0)<<13|a>>>19)+c|0)<<18|a>>>14,s^=(a=(d^=(a=(b^=(a=(u^=(a=s+d|0)<<7|a>>>25)+s|0)<<9|a>>>23)+u|0)<<13|a>>>19)+b|0)<<18|a>>>14,p^=(a=(l^=(a=(h^=(a=(m^=(a=p+l|0)<<7|a>>>25)+p|0)<<9|a>>>23)+m|0)<<13|a>>>19)+h|0)<<18|a>>>14,g^=(a=(v^=(a=(y^=(a=(x^=(a=g+v|0)<<7|a>>>25)+g|0)<<9|a>>>23)+x|0)<<13|a>>>19)+y|0)<<18|a>>>14;e[0]=i>>>0&255,e[1]=i>>>8&255,e[2]=i>>>16&255,e[3]=i>>>24&255,e[4]=s>>>0&255,e[5]=s>>>8&255,e[6]=s>>>16&255,e[7]=s>>>24&255,e[8]=p>>>0&255,e[9]=p>>>8&255,e[10]=p>>>16&255,e[11]=p>>>24&255,e[12]=g>>>0&255,e[13]=g>>>8&255,e[14]=g>>>16&255,e[15]=g>>>24&255,e[16]=u>>>0&255,e[17]=u>>>8&255,e[18]=u>>>16&255,e[19]=u>>>24&255,e[20]=b>>>0&255,e[21]=b>>>8&255,e[22]=b>>>16&255,e[23]=b>>>24&255,e[24]=h>>>0&255,e[25]=h>>>8&255,e[26]=h>>>16&255,e[27]=h>>>24&255,e[28]=l>>>0&255,e[29]=l>>>8&255,e[30]=l>>>16&255,e[31]=l>>>24&255}(e,t,r,n)}var g=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function w(e,t,r,n,a,i,o){var c,f,d=new Uint8Array(16),s=new Uint8Array(64);for(f=0;f<16;f++)d[f]=0;for(f=0;f<8;f++)d[f]=i[f];for(;a>=64;){for(y(s,d,o,g),f=0;f<64;f++)e[t+f]=r[n+f]^s[f];for(c=1,f=8;f<16;f++)c=c+(255&d[f])|0,d[f]=255&c,c>>>=8;a-=64,t+=64,n+=64}if(a>0)for(y(s,d,o,g),f=0;f=64;){for(y(f,c,a,g),o=0;o<64;o++)e[t+o]=f[o];for(i=1,o=8;o<16;o++)i=i+(255&c[o])|0,c[o]=255&i,i>>>=8;r-=64,t+=64}if(r>0)for(y(f,c,a,g),o=0;o>>13|r<<3),n=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(r>>>10|n<<6),a=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(n>>>7|a<<9),i=255&e[8]|(255&e[9])<<8,this.r[4]=255&(a>>>4|i<<12),this.r[5]=i>>>1&8190,o=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(i>>>14|o<<2),c=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(o>>>11|c<<5),f=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(c>>>8|f<<8),this.r[9]=f>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function A(e,t,r,n,a,i){var o=new S(i);return o.update(r,n,a),o.finish(e,t),0}function E(e,t,r,n,a,i){var o=new Uint8Array(16);return A(o,0,r,n,a,i),m(e,t,o,0)}function T(e,t,r,n,a){var i;if(r<32)return-1;for(k(e,0,t,0,r,n,a),A(e,16,e,32,r-32,e),i=0;i<16;i++)e[i]=0;return 0}function O(e,t,r,n,a){var i,o=new Uint8Array(32);if(r<32)return-1;if(M(o,0,32,n,a),0!==E(t,16,t,32,r-32,o))return-1;for(k(e,0,t,0,r,n,a),i=0;i<32;i++)e[i]=0;return 0}function P(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}function j(e){var t,r,n=1;for(t=0;t<16;t++)r=e[t]+n+65535,n=Math.floor(r/65536),e[t]=r-65536*n;e[0]+=n-1+37*(n-1)}function B(e,t,r){for(var n,a=~(r-1),i=0;i<16;i++)n=a&(e[i]^t[i]),e[i]^=n,t[i]^=n}function R(e,r){var n,a,i,o=t(),c=t();for(n=0;n<16;n++)c[n]=r[n];for(j(c),j(c),j(c),a=0;a<2;a++){for(o[0]=c[0]-65517,n=1;n<15;n++)o[n]=c[n]-65535-(o[n-1]>>16&1),o[n-1]&=65535;o[15]=c[15]-32767-(o[14]>>16&1),i=o[15]>>16&1,o[14]&=65535,B(c,o,1-i)}for(n=0;n<16;n++)e[2*n]=255&c[n],e[2*n+1]=c[n]>>8}function C(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return R(r,e),R(n,t),x(r,0,n,0)}function I(e){var t=new Uint8Array(32);return R(t,e),1&t[0]}function L(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function N(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]+r[n]}function U(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]-r[n]}function z(e,t,r){var n,a,i=0,o=0,c=0,f=0,d=0,s=0,u=0,b=0,h=0,l=0,p=0,m=0,x=0,y=0,v=0,g=0,w=0,_=0,M=0,k=0,S=0,A=0,E=0,T=0,O=0,P=0,j=0,B=0,R=0,C=0,I=0,L=r[0],N=r[1],U=r[2],z=r[3],F=r[4],q=r[5],H=r[6],D=r[7],K=r[8],G=r[9],W=r[10],V=r[11],Z=r[12],J=r[13],X=r[14],Y=r[15];i+=(n=t[0])*L,o+=n*N,c+=n*U,f+=n*z,d+=n*F,s+=n*q,u+=n*H,b+=n*D,h+=n*K,l+=n*G,p+=n*W,m+=n*V,x+=n*Z,y+=n*J,v+=n*X,g+=n*Y,o+=(n=t[1])*L,c+=n*N,f+=n*U,d+=n*z,s+=n*F,u+=n*q,b+=n*H,h+=n*D,l+=n*K,p+=n*G,m+=n*W,x+=n*V,y+=n*Z,v+=n*J,g+=n*X,w+=n*Y,c+=(n=t[2])*L,f+=n*N,d+=n*U,s+=n*z,u+=n*F,b+=n*q,h+=n*H,l+=n*D,p+=n*K,m+=n*G,x+=n*W,y+=n*V,v+=n*Z,g+=n*J,w+=n*X,_+=n*Y,f+=(n=t[3])*L,d+=n*N,s+=n*U,u+=n*z,b+=n*F,h+=n*q,l+=n*H,p+=n*D,m+=n*K,x+=n*G,y+=n*W,v+=n*V,g+=n*Z,w+=n*J,_+=n*X,M+=n*Y,d+=(n=t[4])*L,s+=n*N,u+=n*U,b+=n*z,h+=n*F,l+=n*q,p+=n*H,m+=n*D,x+=n*K,y+=n*G,v+=n*W,g+=n*V,w+=n*Z,_+=n*J,M+=n*X,k+=n*Y,s+=(n=t[5])*L,u+=n*N,b+=n*U,h+=n*z,l+=n*F,p+=n*q,m+=n*H,x+=n*D,y+=n*K,v+=n*G,g+=n*W,w+=n*V,_+=n*Z,M+=n*J,k+=n*X,S+=n*Y,u+=(n=t[6])*L,b+=n*N,h+=n*U,l+=n*z,p+=n*F,m+=n*q,x+=n*H,y+=n*D,v+=n*K,g+=n*G,w+=n*W,_+=n*V,M+=n*Z,k+=n*J,S+=n*X,A+=n*Y,b+=(n=t[7])*L,h+=n*N,l+=n*U,p+=n*z,m+=n*F,x+=n*q,y+=n*H,v+=n*D,g+=n*K,w+=n*G,_+=n*W,M+=n*V,k+=n*Z,S+=n*J,A+=n*X,E+=n*Y,h+=(n=t[8])*L,l+=n*N,p+=n*U,m+=n*z,x+=n*F,y+=n*q,v+=n*H,g+=n*D,w+=n*K,_+=n*G,M+=n*W,k+=n*V,S+=n*Z,A+=n*J,E+=n*X,T+=n*Y,l+=(n=t[9])*L,p+=n*N,m+=n*U,x+=n*z,y+=n*F,v+=n*q,g+=n*H,w+=n*D,_+=n*K,M+=n*G,k+=n*W,S+=n*V,A+=n*Z,E+=n*J,T+=n*X,O+=n*Y,p+=(n=t[10])*L,m+=n*N,x+=n*U,y+=n*z,v+=n*F,g+=n*q,w+=n*H,_+=n*D,M+=n*K,k+=n*G,S+=n*W,A+=n*V,E+=n*Z,T+=n*J,O+=n*X,P+=n*Y,m+=(n=t[11])*L,x+=n*N,y+=n*U,v+=n*z,g+=n*F,w+=n*q,_+=n*H,M+=n*D,k+=n*K,S+=n*G,A+=n*W,E+=n*V,T+=n*Z,O+=n*J,P+=n*X,j+=n*Y,x+=(n=t[12])*L,y+=n*N,v+=n*U,g+=n*z,w+=n*F,_+=n*q,M+=n*H,k+=n*D,S+=n*K,A+=n*G,E+=n*W,T+=n*V,O+=n*Z,P+=n*J,j+=n*X,B+=n*Y,y+=(n=t[13])*L,v+=n*N,g+=n*U,w+=n*z,_+=n*F,M+=n*q,k+=n*H,S+=n*D,A+=n*K,E+=n*G,T+=n*W,O+=n*V,P+=n*Z,j+=n*J,B+=n*X,R+=n*Y,v+=(n=t[14])*L,g+=n*N,w+=n*U,_+=n*z,M+=n*F,k+=n*q,S+=n*H,A+=n*D,E+=n*K,T+=n*G,O+=n*W,P+=n*V,j+=n*Z,B+=n*J,R+=n*X,C+=n*Y,g+=(n=t[15])*L,o+=38*(_+=n*U),c+=38*(M+=n*z),f+=38*(k+=n*F),d+=38*(S+=n*q),s+=38*(A+=n*H),u+=38*(E+=n*D),b+=38*(T+=n*K),h+=38*(O+=n*G),l+=38*(P+=n*W),p+=38*(j+=n*V),m+=38*(B+=n*Z),x+=38*(R+=n*J),y+=38*(C+=n*X),v+=38*(I+=n*Y),i=(n=(i+=38*(w+=n*N))+(a=1)+65535)-65536*(a=Math.floor(n/65536)),o=(n=o+a+65535)-65536*(a=Math.floor(n/65536)),c=(n=c+a+65535)-65536*(a=Math.floor(n/65536)),f=(n=f+a+65535)-65536*(a=Math.floor(n/65536)),d=(n=d+a+65535)-65536*(a=Math.floor(n/65536)),s=(n=s+a+65535)-65536*(a=Math.floor(n/65536)),u=(n=u+a+65535)-65536*(a=Math.floor(n/65536)),b=(n=b+a+65535)-65536*(a=Math.floor(n/65536)),h=(n=h+a+65535)-65536*(a=Math.floor(n/65536)),l=(n=l+a+65535)-65536*(a=Math.floor(n/65536)),p=(n=p+a+65535)-65536*(a=Math.floor(n/65536)),m=(n=m+a+65535)-65536*(a=Math.floor(n/65536)),x=(n=x+a+65535)-65536*(a=Math.floor(n/65536)),y=(n=y+a+65535)-65536*(a=Math.floor(n/65536)),v=(n=v+a+65535)-65536*(a=Math.floor(n/65536)),g=(n=g+a+65535)-65536*(a=Math.floor(n/65536)),i=(n=(i+=a-1+37*(a-1))+(a=1)+65535)-65536*(a=Math.floor(n/65536)),o=(n=o+a+65535)-65536*(a=Math.floor(n/65536)),c=(n=c+a+65535)-65536*(a=Math.floor(n/65536)),f=(n=f+a+65535)-65536*(a=Math.floor(n/65536)),d=(n=d+a+65535)-65536*(a=Math.floor(n/65536)),s=(n=s+a+65535)-65536*(a=Math.floor(n/65536)),u=(n=u+a+65535)-65536*(a=Math.floor(n/65536)),b=(n=b+a+65535)-65536*(a=Math.floor(n/65536)),h=(n=h+a+65535)-65536*(a=Math.floor(n/65536)),l=(n=l+a+65535)-65536*(a=Math.floor(n/65536)),p=(n=p+a+65535)-65536*(a=Math.floor(n/65536)),m=(n=m+a+65535)-65536*(a=Math.floor(n/65536)),x=(n=x+a+65535)-65536*(a=Math.floor(n/65536)),y=(n=y+a+65535)-65536*(a=Math.floor(n/65536)),v=(n=v+a+65535)-65536*(a=Math.floor(n/65536)),g=(n=g+a+65535)-65536*(a=Math.floor(n/65536)),i+=a-1+37*(a-1),e[0]=i,e[1]=o,e[2]=c,e[3]=f,e[4]=d,e[5]=s,e[6]=u,e[7]=b,e[8]=h,e[9]=l,e[10]=p,e[11]=m,e[12]=x,e[13]=y,e[14]=v,e[15]=g}function F(e,t){z(e,t,t)}function q(e,r){var n,a=t();for(n=0;n<16;n++)a[n]=r[n];for(n=253;n>=0;n--)F(a,a),2!==n&&4!==n&&z(a,a,r);for(n=0;n<16;n++)e[n]=a[n]}function H(e,r){var n,a=t();for(n=0;n<16;n++)a[n]=r[n];for(n=250;n>=0;n--)F(a,a),1!==n&&z(a,a,r);for(n=0;n<16;n++)e[n]=a[n]}function D(e,r,n){var a,i,o=new Uint8Array(32),c=new Float64Array(80),d=t(),s=t(),u=t(),b=t(),h=t(),l=t();for(i=0;i<31;i++)o[i]=r[i];for(o[31]=127&r[31]|64,o[0]&=248,L(c,n),i=0;i<16;i++)s[i]=c[i],b[i]=d[i]=u[i]=0;for(d[0]=b[0]=1,i=254;i>=0;--i)B(d,s,a=o[i>>>3]>>>(7&i)&1),B(u,b,a),N(h,d,u),U(d,d,u),N(u,s,b),U(s,s,b),F(b,h),F(l,d),z(d,u,d),z(u,s,h),N(h,d,u),U(d,d,u),F(s,d),U(u,b,l),z(d,u,f),N(d,d,b),z(u,u,d),z(d,b,l),z(b,s,c),F(s,h),B(d,s,a),B(u,b,a);for(i=0;i<16;i++)c[i+16]=d[i],c[i+32]=u[i],c[i+48]=s[i],c[i+64]=b[i];var p=c.subarray(32),m=c.subarray(16);return q(p,p),z(m,m,p),R(e,m),0}function K(e,t){return D(e,t,i)}function G(e,t){return n(t,32),K(e,t)}function W(e,t,r){var n=new Uint8Array(32);return D(n,r,t),v(e,a,n,g)}S.prototype.blocks=function(e,t,r){for(var n,a,i,o,c,f,d,s,u,b,h,l,p,m,x,y,v,g,w,_=this.fin?0:2048,M=this.h[0],k=this.h[1],S=this.h[2],A=this.h[3],E=this.h[4],T=this.h[5],O=this.h[6],P=this.h[7],j=this.h[8],B=this.h[9],R=this.r[0],C=this.r[1],I=this.r[2],L=this.r[3],N=this.r[4],U=this.r[5],z=this.r[6],F=this.r[7],q=this.r[8],H=this.r[9];r>=16;)b=u=0,b+=(M+=8191&(n=255&e[t+0]|(255&e[t+1])<<8))*R,b+=(k+=8191&(n>>>13|(a=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*H),b+=(S+=8191&(a>>>10|(i=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*q),b+=(A+=8191&(i>>>7|(o=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*F),u=(b+=(E+=8191&(o>>>4|(c=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*z))>>>13,b&=8191,b+=(T+=c>>>1&8191)*(5*U),b+=(O+=8191&(c>>>14|(f=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*N),b+=(P+=8191&(f>>>11|(d=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*L),b+=(j+=8191&(d>>>8|(s=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*I),h=u+=(b+=(B+=s>>>5|_)*(5*C))>>>13,h+=M*C,h+=k*R,h+=S*(5*H),h+=A*(5*q),u=(h+=E*(5*F))>>>13,h&=8191,h+=T*(5*z),h+=O*(5*U),h+=P*(5*N),h+=j*(5*L),u+=(h+=B*(5*I))>>>13,h&=8191,l=u,l+=M*I,l+=k*C,l+=S*R,l+=A*(5*H),u=(l+=E*(5*q))>>>13,l&=8191,l+=T*(5*F),l+=O*(5*z),l+=P*(5*U),l+=j*(5*N),p=u+=(l+=B*(5*L))>>>13,p+=M*L,p+=k*I,p+=S*C,p+=A*R,u=(p+=E*(5*H))>>>13,p&=8191,p+=T*(5*q),p+=O*(5*F),p+=P*(5*z),p+=j*(5*U),m=u+=(p+=B*(5*N))>>>13,m+=M*N,m+=k*L,m+=S*I,m+=A*C,u=(m+=E*R)>>>13,m&=8191,m+=T*(5*H),m+=O*(5*q),m+=P*(5*F),m+=j*(5*z),x=u+=(m+=B*(5*U))>>>13,x+=M*U,x+=k*N,x+=S*L,x+=A*I,u=(x+=E*C)>>>13,x&=8191,x+=T*R,x+=O*(5*H),x+=P*(5*q),x+=j*(5*F),y=u+=(x+=B*(5*z))>>>13,y+=M*z,y+=k*U,y+=S*N,y+=A*L,u=(y+=E*I)>>>13,y&=8191,y+=T*C,y+=O*R,y+=P*(5*H),y+=j*(5*q),v=u+=(y+=B*(5*F))>>>13,v+=M*F,v+=k*z,v+=S*U,v+=A*N,u=(v+=E*L)>>>13,v&=8191,v+=T*I,v+=O*C,v+=P*R,v+=j*(5*H),g=u+=(v+=B*(5*q))>>>13,g+=M*q,g+=k*F,g+=S*z,g+=A*U,u=(g+=E*N)>>>13,g&=8191,g+=T*L,g+=O*I,g+=P*C,g+=j*R,w=u+=(g+=B*(5*H))>>>13,w+=M*H,w+=k*q,w+=S*F,w+=A*z,u=(w+=E*U)>>>13,w&=8191,w+=T*N,w+=O*L,w+=P*I,w+=j*C,M=b=8191&(u=(u=((u+=(w+=B*R)>>>13)<<2)+u|0)+(b&=8191)|0),k=h+=u>>>=13,S=l&=8191,A=p&=8191,E=m&=8191,T=x&=8191,O=y&=8191,P=v&=8191,j=g&=8191,B=w&=8191,t+=16,r-=16;this.h[0]=M,this.h[1]=k,this.h[2]=S,this.h[3]=A,this.h[4]=E,this.h[5]=T,this.h[6]=O,this.h[7]=P,this.h[8]=j,this.h[9]=B},S.prototype.finish=function(e,t){var r,n,a,i,o=new Uint16Array(10);if(this.leftover){for(i=this.leftover,this.buffer[i++]=1;i<16;i++)this.buffer[i]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,i=2;i<10;i++)this.h[i]+=r,r=this.h[i]>>>13,this.h[i]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,o[0]=this.h[0]+5,r=o[0]>>>13,o[0]&=8191,i=1;i<10;i++)o[i]=this.h[i]+r,r=o[i]>>>13,o[i]&=8191;for(o[9]-=8192,n=(1^r)-1,i=0;i<10;i++)o[i]&=n;for(n=~n,i=0;i<10;i++)this.h[i]=this.h[i]&n|o[i];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),a=this.h[0]+this.pad[0],this.h[0]=65535&a,i=1;i<8;i++)a=(this.h[i]+this.pad[i]|0)+(a>>>16)|0,this.h[i]=65535&a;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},S.prototype.update=function(e,t,r){var n,a;if(this.leftover){for((a=16-this.leftover)>r&&(a=r),n=0;n=16&&(a=r-r%16,this.blocks(e,t,a),t+=a,r-=a),r){for(n=0;n=128;){for(_=0;_<16;_++)M=8*_+Z,P[_]=r[M+0]<<24|r[M+1]<<16|r[M+2]<<8|r[M+3],j[_]=r[M+4]<<24|r[M+5]<<16|r[M+6]<<8|r[M+7];for(_=0;_<80;_++)if(a=B,i=R,o=C,c=I,f=L,d=N,s=U,z,b=F,h=q,l=H,p=D,m=K,x=G,y=W,V,A=65535&(S=V),E=S>>>16,T=65535&(k=z),O=k>>>16,A+=65535&(S=(K>>>14|L<<18)^(K>>>18|L<<14)^(L>>>9|K<<23)),E+=S>>>16,T+=65535&(k=(L>>>14|K<<18)^(L>>>18|K<<14)^(K>>>9|L<<23)),O+=k>>>16,A+=65535&(S=K&G^~K&W),E+=S>>>16,T+=65535&(k=L&N^~L&U),O+=k>>>16,A+=65535&(S=J[2*_+1]),E+=S>>>16,T+=65535&(k=J[2*_]),O+=k>>>16,k=P[_%16],E+=(S=j[_%16])>>>16,T+=65535&k,O+=k>>>16,T+=(E+=(A+=65535&S)>>>16)>>>16,A=65535&(S=w=65535&A|E<<16),E=S>>>16,T=65535&(k=g=65535&T|(O+=T>>>16)<<16),O=k>>>16,A+=65535&(S=(F>>>28|B<<4)^(B>>>2|F<<30)^(B>>>7|F<<25)),E+=S>>>16,T+=65535&(k=(B>>>28|F<<4)^(F>>>2|B<<30)^(F>>>7|B<<25)),O+=k>>>16,E+=(S=F&q^F&H^q&H)>>>16,T+=65535&(k=B&R^B&C^R&C),O+=k>>>16,u=65535&(T+=(E+=(A+=65535&S)>>>16)>>>16)|(O+=T>>>16)<<16,v=65535&A|E<<16,A=65535&(S=p),E=S>>>16,T=65535&(k=c),O=k>>>16,E+=(S=w)>>>16,T+=65535&(k=g),O+=k>>>16,R=a,C=i,I=o,L=c=65535&(T+=(E+=(A+=65535&S)>>>16)>>>16)|(O+=T>>>16)<<16,N=f,U=d,z=s,B=u,q=b,H=h,D=l,K=p=65535&A|E<<16,G=m,W=x,V=y,F=v,_%16==15)for(M=0;M<16;M++)k=P[M],A=65535&(S=j[M]),E=S>>>16,T=65535&k,O=k>>>16,k=P[(M+9)%16],A+=65535&(S=j[(M+9)%16]),E+=S>>>16,T+=65535&k,O+=k>>>16,g=P[(M+1)%16],A+=65535&(S=((w=j[(M+1)%16])>>>1|g<<31)^(w>>>8|g<<24)^(w>>>7|g<<25)),E+=S>>>16,T+=65535&(k=(g>>>1|w<<31)^(g>>>8|w<<24)^g>>>7),O+=k>>>16,g=P[(M+14)%16],E+=(S=((w=j[(M+14)%16])>>>19|g<<13)^(g>>>29|w<<3)^(w>>>6|g<<26))>>>16,T+=65535&(k=(g>>>19|w<<13)^(w>>>29|g<<3)^g>>>6),O+=k>>>16,O+=(T+=(E+=(A+=65535&S)>>>16)>>>16)>>>16,P[M]=65535&T|O<<16,j[M]=65535&A|E<<16;A=65535&(S=F),E=S>>>16,T=65535&(k=B),O=k>>>16,k=e[0],E+=(S=t[0])>>>16,T+=65535&k,O+=k>>>16,O+=(T+=(E+=(A+=65535&S)>>>16)>>>16)>>>16,e[0]=B=65535&T|O<<16,t[0]=F=65535&A|E<<16,A=65535&(S=q),E=S>>>16,T=65535&(k=R),O=k>>>16,k=e[1],E+=(S=t[1])>>>16,T+=65535&k,O+=k>>>16,O+=(T+=(E+=(A+=65535&S)>>>16)>>>16)>>>16,e[1]=R=65535&T|O<<16,t[1]=q=65535&A|E<<16,A=65535&(S=H),E=S>>>16,T=65535&(k=C),O=k>>>16,k=e[2],E+=(S=t[2])>>>16,T+=65535&k,O+=k>>>16,O+=(T+=(E+=(A+=65535&S)>>>16)>>>16)>>>16,e[2]=C=65535&T|O<<16,t[2]=H=65535&A|E<<16,A=65535&(S=D),E=S>>>16,T=65535&(k=I),O=k>>>16,k=e[3],E+=(S=t[3])>>>16,T+=65535&k,O+=k>>>16,O+=(T+=(E+=(A+=65535&S)>>>16)>>>16)>>>16,e[3]=I=65535&T|O<<16,t[3]=D=65535&A|E<<16,A=65535&(S=K),E=S>>>16,T=65535&(k=L),O=k>>>16,k=e[4],E+=(S=t[4])>>>16,T+=65535&k,O+=k>>>16,O+=(T+=(E+=(A+=65535&S)>>>16)>>>16)>>>16,e[4]=L=65535&T|O<<16,t[4]=K=65535&A|E<<16,A=65535&(S=G),E=S>>>16,T=65535&(k=N),O=k>>>16,k=e[5],E+=(S=t[5])>>>16,T+=65535&k,O+=k>>>16,O+=(T+=(E+=(A+=65535&S)>>>16)>>>16)>>>16,e[5]=N=65535&T|O<<16,t[5]=G=65535&A|E<<16,A=65535&(S=W),E=S>>>16,T=65535&(k=U),O=k>>>16,k=e[6],E+=(S=t[6])>>>16,T+=65535&k,O+=k>>>16,O+=(T+=(E+=(A+=65535&S)>>>16)>>>16)>>>16,e[6]=U=65535&T|O<<16,t[6]=W=65535&A|E<<16,A=65535&(S=V),E=S>>>16,T=65535&(k=z),O=k>>>16,k=e[7],E+=(S=t[7])>>>16,T+=65535&k,O+=k>>>16,O+=(T+=(E+=(A+=65535&S)>>>16)>>>16)>>>16,e[7]=z=65535&T|O<<16,t[7]=V=65535&A|E<<16,Z+=128,n-=128}return n}function Y(e,t,r){var n,a=new Int32Array(8),i=new Int32Array(8),o=new Uint8Array(256),c=r;for(a[0]=1779033703,a[1]=3144134277,a[2]=1013904242,a[3]=2773480762,a[4]=1359893119,a[5]=2600822924,a[6]=528734635,a[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,X(a,i,t,r),r%=128,n=0;n=0;--a)Q(e,t,n=r[a/8|0]>>(7&a)&1),$(t,e),$(e,e),Q(e,t,n)}function re(e,r){var n=[t(),t(),t(),t()];P(n[0],u),P(n[1],b),P(n[2],c),z(n[3],u,b),te(e,n,r)}function ne(e,r,a){var i,o=new Uint8Array(64),c=[t(),t(),t(),t()];for(a||n(r,32),Y(o,r,32),o[0]&=248,o[31]&=127,o[31]|=64,re(c,o),ee(e,c),i=0;i<32;i++)r[i+32]=e[i];return 0}var ae=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ie(e,t){var r,n,a,i;for(n=63;n>=32;--n){for(r=0,a=n-32,i=n-12;a>4)*ae[a],r=t[a]>>8,t[a]&=255;for(a=0;a<32;a++)t[a]-=r*ae[a];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function oe(e){var t,r=new Float64Array(64);for(t=0;t<64;t++)r[t]=e[t];for(t=0;t<64;t++)e[t]=0;ie(e,r)}function ce(e,r,n,a){var i,o,c=new Uint8Array(64),f=new Uint8Array(64),d=new Uint8Array(64),s=new Float64Array(64),u=[t(),t(),t(),t()];Y(c,a,32),c[0]&=248,c[31]&=127,c[31]|=64;var b=n+64;for(i=0;i>7&&U(e[0],o,e[0]),z(e[3],e[0],e[1]),0)}(b,a))return-1;for(i=0;i=0},e.sign.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(64);return ne(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(se(e),64!==e.length)throw new Error("bad secret key size");for(var t=new Uint8Array(32),r=0;r=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.7.4","web3-core":"1.7.4","web3-eth":"1.7.4","web3-eth-personal":"1.7.4","web3-net":"1.7.4","web3-shh":"1.7.4","web3-utils":"1.7.4"},"devDependencies":{"@types/node":"^12.12.6","dtslint":"^3.4.1","typescript":"^3.9.5","web3-core-helpers":"1.7.4"},"gitHead":"77005c072a64fdd364eace821df0c39388871102"}')},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=r(45).callbackify,i=r(16).errors,o=r(233),c=r(475),f=r(476),d=function e(t,r){this.provider=null,this.providers=e.providers,this.setProvider(t,r),this.subscriptions=new Map};d.givenProvider=f,d.providers={WebsocketProvider:r(477),HttpProvider:r(487),IpcProvider:r(497)},d.prototype.setProvider=function(e,t){var r=this;if(e&&"string"==typeof e&&this.providers)if(/^http(s)?:\/\//i.test(e))e=new this.providers.HttpProvider(e);else if(/^ws(s)?:\/\//i.test(e))e=new this.providers.WebsocketProvider(e);else if(e&&"object"===n(t)&&"function"==typeof t.connect)e=new this.providers.IpcProvider(e,t);else if(e)throw new Error("Can't autodetect provider for \""+e+'"');if(this.provider&&this.provider.connected&&this.clearSubscriptions(),this.provider=e||null,this.provider&&this.provider.on){"function"==typeof e.request?this.provider.on("message",(function(e){if(e&&"eth_subscription"===e.type&&e.data){var t=e.data;t.subscription&&r.subscriptions.has(t.subscription)&&r.subscriptions.get(t.subscription).callback(null,t.result)}})):this.provider.on("data",(function(e,t){(e=e||t).method&&e.params&&e.params.subscription&&r.subscriptions.has(e.params.subscription)&&r.subscriptions.get(e.params.subscription).callback(null,e.params.result)})),this.provider.on("connect",(function(){r.subscriptions.forEach((function(e){e.subscription.resubscribe()}))})),this.provider.on("error",(function(e){r.subscriptions.forEach((function(t){t.callback(e)}))}));this.provider.on("disconnect",(function(e){r._isCleanCloseEvent(e)&&!r._isIpcCloseError(e)||(r.subscriptions.forEach((function(t){t.callback(i.ConnectionCloseError(e)),r.subscriptions.delete(t.subscription.id)})),r.provider&&r.provider.emit&&r.provider.emit("error",i.ConnectionCloseError(e))),r.provider&&r.provider.emit&&r.provider.emit("end",e)}))}},d.prototype.send=function(e,t){if(t=t||function(){},!this.provider)return t(i.InvalidProvider());var r=e.method,n=e.params,c=o.toPayload(r,n),f=this._jsonrpcResultCallback(t,c);if(this.provider.request)a(this.provider.request.bind(this.provider))({method:r,params:n},t);else if(this.provider.sendAsync)this.provider.sendAsync(c,f);else{if(!this.provider.send)throw new Error("Provider does not have a request or send method to use.");this.provider.send(c,f)}},d.prototype.sendBatch=function(e,t){if(!this.provider)return t(i.InvalidProvider());var r=o.toBatchPayload(e);this.provider[this.provider.sendAsync?"sendAsync":"send"](r,(function(e,r){return e?t(e):Array.isArray(r)?void t(null,r):t(i.InvalidResponse(r))}))},d.prototype.addSubscription=function(e,t){if(!this.provider.on)throw new Error("The provider doesn't support subscriptions: "+this.provider.constructor.name);this.subscriptions.set(e.id,{callback:t,subscription:e})},d.prototype.removeSubscription=function(e,t){if(this.subscriptions.has(e)){var r=this.subscriptions.get(e).subscription.options.type;return this.subscriptions.delete(e),void this.send({method:r+"_unsubscribe",params:[e]},t)}"function"==typeof t&&t(null)},d.prototype.clearSubscriptions=function(e){try{var t=this;return this.subscriptions.size>0&&this.subscriptions.forEach((function(r,n){e&&"syncing"===r.name||t.removeSubscription(n)})),this.provider.reset&&this.provider.reset(),!0}catch(e){throw new Error("Error while clearing subscriptions: ".concat(e))}},d.prototype._isCleanCloseEvent=function(e){return"object"===n(e)&&([1e3].includes(e.code)||!0===e.wasClean)},d.prototype._isIpcCloseError=function(e){return"boolean"==typeof e&&e},d.prototype._jsonrpcResultCallback=function(e,t){return function(r,n){return n&&n.id&&t.id!==n.id?e(new Error("Wrong response id ".concat(n.id," (expected: ").concat(t.id,") in ").concat(JSON.stringify(t)))):r?e(r):n&&n.error?e(i.ErrorResponse(n)):o.isValidResponse(n)?void e(null,n.result):e(i.InvalidResponse(n))}},e.exports={Manager:d,BatchManager:c}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports={ErrorResponse:function(e){var t=e&&e.error&&e.error.message?e.error.message:JSON.stringify(e),r=e.error&&e.error.data?e.error.data:null,n=new Error("Returned error: "+t);return n.data=r,n},InvalidNumberOfParams:function(e,t,r){return new Error('Invalid number of parameters for "'+r+'". Got '+e+" expected "+t+"!")},InvalidConnection:function(e,t){return this.ConnectionError("CONNECTION ERROR: Couldn't connect to node "+e+".",t)},InvalidProvider:function(){return new Error("Provider not set or invalid")},InvalidResponse:function(e){var t=e&&e.error&&e.error.message?e.error.message:"Invalid JSON RPC response: "+JSON.stringify(e);return new Error(t)},ConnectionTimeout:function(e){return new Error("CONNECTION TIMEOUT: timeout of "+e+" ms achived")},ConnectionNotOpenError:function(e){return this.ConnectionError("connection not open on send()",e)},ConnectionCloseError:function(e){return"object"===n(e)&&e.code&&e.reason?this.ConnectionError("CONNECTION ERROR: The connection got closed with the close code `"+e.code+"` and the following reason string `"+e.reason+"`",e):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(e,t){var r=new Error(e);return t&&(r.code=t.code,r.reason=t.reason),r},RevertInstructionError:function(e,t){var r=new Error("Your request got reverted with the following reason string: "+e);return r.reason=e,r.signature=t,r},TransactionRevertInstructionError:function(e,t,r){var n=new Error("Transaction has been reverted by the EVM:\n"+JSON.stringify(r,null,2));return n.reason=e,n.signature=t,n.receipt=r,n},TransactionError:function(e,t){var r=new Error(e);return r.receipt=t,r},NoContractAddressFoundError:function(e){return this.TransactionError("The transaction receipt didn't contain a contract address.",e)},ContractCodeNotStoredError:function(e){return this.TransactionError("The contract code couldn't be stored, please check your gas limit.",e)},TransactionRevertedWithoutReasonError:function(e){return this.TransactionError("Transaction has been reverted by the EVM:\n"+JSON.stringify(e,null,2),e)},TransactionOutOfGasError:function(e){return this.TransactionError("Transaction ran out of gas. Please provide more gas:\n"+JSON.stringify(e,null,2),e)},ResolverMethodMissingError:function(e,t){return new Error("The resolver at "+e+'does not implement requested method: "'+t+'".')},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(e){return new Error('Event "'+e+"\" doesn't exist in this contract.")},ContractReservedEventError:function(e){return new Error('The event "'+e+"\" 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(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t2)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal points");var b=u[0],h=u[1];if(b||(b="0"),h||(h="0"),h.length>i)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal places");for(;h.length=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function d(e,t,r,n){for(var a=0,i=Math.min(e.length,r),o=t;o=49?c-49+10:c>=17?c-17+10:c}return a}o.isBN=function(e){return e instanceof o||null!==e&&"object"===t(e)&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n);if("object"===t(e))return this._initArray(e,r,n);"hex"===r&&(r=16),a(r===(0|r)&&r>=2&&r<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===r?this._parseHex(e,i):this._parseBase(e,r,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),r,n)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(a(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(a("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[i]|=o<>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);else if("le"===r)for(n=0,i=0;n>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)a=f(e,r,r+6),this.words[n]|=a<>>26-i&4194303,(i+=24)>=26&&(i-=26,n++);r+6!==t&&(a=f(e,t,r+6),this.words[n]|=a<>>26-i&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,a=1;a<=67108863;a*=t)n++;n--,a=a/t|0;for(var i=e.length-r,o=i%n,c=Math.min(i,i-o)+r,f=0,s=r;s1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var s=["","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"],u=[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],b=[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 h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,c=67108863&o,f=o/67108864|0;r.words[0]=c;for(var d=1;d>>26,u=67108863&f,b=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=b;h++){var l=d-h|0;s+=(o=(a=0|e.words[l])*(i=0|t.words[h])+u)/67108864|0,u=67108863&o}r.words[d]=0|u,f=0|s}return 0!==f?r.words[d]=0|f:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,i=0,o=0;o>>24-n&16777215)||o!==this.length-1?s[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,o--)}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],h=b[e];r="";var l=this.clone();for(l.negative=0;!l.isZero();){var p=l.modn(h).toString(e);r=(l=l.idivn(h)).isZero()?p+r:s[d-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}a(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return a(void 0!==c),this.toArrayLike(c,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),i=r||Math.max(1,n);a(n<=i,"byte array longer than desired length"),a(i>0,"Requested array length <= 0"),this.strip();var o,c,f="le"===t,d=new e(i),s=this.clone();if(f){for(c=0;!s.isZero();c++)o=s.andln(255),s.iushrn(8),d[c]=o;for(;c=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=r.length,0!==a)this.words[this.length]=a,this.length++;else if(r!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,h=0|o[1],l=8191&h,p=h>>>13,m=0|o[2],x=8191&m,y=m>>>13,v=0|o[3],g=8191&v,w=v>>>13,_=0|o[4],M=8191&_,k=_>>>13,S=0|o[5],A=8191&S,E=S>>>13,T=0|o[6],O=8191&T,P=T>>>13,j=0|o[7],B=8191&j,R=j>>>13,C=0|o[8],I=8191&C,L=C>>>13,N=0|o[9],U=8191&N,z=N>>>13,F=0|c[0],q=8191&F,H=F>>>13,D=0|c[1],K=8191&D,G=D>>>13,W=0|c[2],V=8191&W,Z=W>>>13,J=0|c[3],X=8191&J,Y=J>>>13,$=0|c[4],Q=8191&$,ee=$>>>13,te=0|c[5],re=8191&te,ne=te>>>13,ae=0|c[6],ie=8191&ae,oe=ae>>>13,ce=0|c[7],fe=8191&ce,de=ce>>>13,se=0|c[8],ue=8191&se,be=se>>>13,he=0|c[9],le=8191&he,pe=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(d+(n=Math.imul(u,q))|0)+((8191&(a=(a=Math.imul(u,H))+Math.imul(b,q)|0))<<13)|0;d=((i=Math.imul(b,H))+(a>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(l,q),a=(a=Math.imul(l,H))+Math.imul(p,q)|0,i=Math.imul(p,H);var xe=(d+(n=n+Math.imul(u,K)|0)|0)+((8191&(a=(a=a+Math.imul(u,G)|0)+Math.imul(b,K)|0))<<13)|0;d=((i=i+Math.imul(b,G)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(x,q),a=(a=Math.imul(x,H))+Math.imul(y,q)|0,i=Math.imul(y,H),n=n+Math.imul(l,K)|0,a=(a=a+Math.imul(l,G)|0)+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0;var ye=(d+(n=n+Math.imul(u,V)|0)|0)+((8191&(a=(a=a+Math.imul(u,Z)|0)+Math.imul(b,V)|0))<<13)|0;d=((i=i+Math.imul(b,Z)|0)+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(g,q),a=(a=Math.imul(g,H))+Math.imul(w,q)|0,i=Math.imul(w,H),n=n+Math.imul(x,K)|0,a=(a=a+Math.imul(x,G)|0)+Math.imul(y,K)|0,i=i+Math.imul(y,G)|0,n=n+Math.imul(l,V)|0,a=(a=a+Math.imul(l,Z)|0)+Math.imul(p,V)|0,i=i+Math.imul(p,Z)|0;var ve=(d+(n=n+Math.imul(u,X)|0)|0)+((8191&(a=(a=a+Math.imul(u,Y)|0)+Math.imul(b,X)|0))<<13)|0;d=((i=i+Math.imul(b,Y)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(M,q),a=(a=Math.imul(M,H))+Math.imul(k,q)|0,i=Math.imul(k,H),n=n+Math.imul(g,K)|0,a=(a=a+Math.imul(g,G)|0)+Math.imul(w,K)|0,i=i+Math.imul(w,G)|0,n=n+Math.imul(x,V)|0,a=(a=a+Math.imul(x,Z)|0)+Math.imul(y,V)|0,i=i+Math.imul(y,Z)|0,n=n+Math.imul(l,X)|0,a=(a=a+Math.imul(l,Y)|0)+Math.imul(p,X)|0,i=i+Math.imul(p,Y)|0;var ge=(d+(n=n+Math.imul(u,Q)|0)|0)+((8191&(a=(a=a+Math.imul(u,ee)|0)+Math.imul(b,Q)|0))<<13)|0;d=((i=i+Math.imul(b,ee)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(A,q),a=(a=Math.imul(A,H))+Math.imul(E,q)|0,i=Math.imul(E,H),n=n+Math.imul(M,K)|0,a=(a=a+Math.imul(M,G)|0)+Math.imul(k,K)|0,i=i+Math.imul(k,G)|0,n=n+Math.imul(g,V)|0,a=(a=a+Math.imul(g,Z)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,Z)|0,n=n+Math.imul(x,X)|0,a=(a=a+Math.imul(x,Y)|0)+Math.imul(y,X)|0,i=i+Math.imul(y,Y)|0,n=n+Math.imul(l,Q)|0,a=(a=a+Math.imul(l,ee)|0)+Math.imul(p,Q)|0,i=i+Math.imul(p,ee)|0;var we=(d+(n=n+Math.imul(u,re)|0)|0)+((8191&(a=(a=a+Math.imul(u,ne)|0)+Math.imul(b,re)|0))<<13)|0;d=((i=i+Math.imul(b,ne)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(O,q),a=(a=Math.imul(O,H))+Math.imul(P,q)|0,i=Math.imul(P,H),n=n+Math.imul(A,K)|0,a=(a=a+Math.imul(A,G)|0)+Math.imul(E,K)|0,i=i+Math.imul(E,G)|0,n=n+Math.imul(M,V)|0,a=(a=a+Math.imul(M,Z)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,Z)|0,n=n+Math.imul(g,X)|0,a=(a=a+Math.imul(g,Y)|0)+Math.imul(w,X)|0,i=i+Math.imul(w,Y)|0,n=n+Math.imul(x,Q)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(y,Q)|0,i=i+Math.imul(y,ee)|0,n=n+Math.imul(l,re)|0,a=(a=a+Math.imul(l,ne)|0)+Math.imul(p,re)|0,i=i+Math.imul(p,ne)|0;var _e=(d+(n=n+Math.imul(u,ie)|0)|0)+((8191&(a=(a=a+Math.imul(u,oe)|0)+Math.imul(b,ie)|0))<<13)|0;d=((i=i+Math.imul(b,oe)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(B,q),a=(a=Math.imul(B,H))+Math.imul(R,q)|0,i=Math.imul(R,H),n=n+Math.imul(O,K)|0,a=(a=a+Math.imul(O,G)|0)+Math.imul(P,K)|0,i=i+Math.imul(P,G)|0,n=n+Math.imul(A,V)|0,a=(a=a+Math.imul(A,Z)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,Z)|0,n=n+Math.imul(M,X)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,Y)|0,n=n+Math.imul(g,Q)|0,a=(a=a+Math.imul(g,ee)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,n=n+Math.imul(x,re)|0,a=(a=a+Math.imul(x,ne)|0)+Math.imul(y,re)|0,i=i+Math.imul(y,ne)|0,n=n+Math.imul(l,ie)|0,a=(a=a+Math.imul(l,oe)|0)+Math.imul(p,ie)|0,i=i+Math.imul(p,oe)|0;var Me=(d+(n=n+Math.imul(u,fe)|0)|0)+((8191&(a=(a=a+Math.imul(u,de)|0)+Math.imul(b,fe)|0))<<13)|0;d=((i=i+Math.imul(b,de)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(I,q),a=(a=Math.imul(I,H))+Math.imul(L,q)|0,i=Math.imul(L,H),n=n+Math.imul(B,K)|0,a=(a=a+Math.imul(B,G)|0)+Math.imul(R,K)|0,i=i+Math.imul(R,G)|0,n=n+Math.imul(O,V)|0,a=(a=a+Math.imul(O,Z)|0)+Math.imul(P,V)|0,i=i+Math.imul(P,Z)|0,n=n+Math.imul(A,X)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(E,X)|0,i=i+Math.imul(E,Y)|0,n=n+Math.imul(M,Q)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,ee)|0,n=n+Math.imul(g,re)|0,a=(a=a+Math.imul(g,ne)|0)+Math.imul(w,re)|0,i=i+Math.imul(w,ne)|0,n=n+Math.imul(x,ie)|0,a=(a=a+Math.imul(x,oe)|0)+Math.imul(y,ie)|0,i=i+Math.imul(y,oe)|0,n=n+Math.imul(l,fe)|0,a=(a=a+Math.imul(l,de)|0)+Math.imul(p,fe)|0,i=i+Math.imul(p,de)|0;var ke=(d+(n=n+Math.imul(u,ue)|0)|0)+((8191&(a=(a=a+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((i=i+Math.imul(b,be)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,q),a=(a=Math.imul(U,H))+Math.imul(z,q)|0,i=Math.imul(z,H),n=n+Math.imul(I,K)|0,a=(a=a+Math.imul(I,G)|0)+Math.imul(L,K)|0,i=i+Math.imul(L,G)|0,n=n+Math.imul(B,V)|0,a=(a=a+Math.imul(B,Z)|0)+Math.imul(R,V)|0,i=i+Math.imul(R,Z)|0,n=n+Math.imul(O,X)|0,a=(a=a+Math.imul(O,Y)|0)+Math.imul(P,X)|0,i=i+Math.imul(P,Y)|0,n=n+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,ee)|0,n=n+Math.imul(M,re)|0,a=(a=a+Math.imul(M,ne)|0)+Math.imul(k,re)|0,i=i+Math.imul(k,ne)|0,n=n+Math.imul(g,ie)|0,a=(a=a+Math.imul(g,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,n=n+Math.imul(x,fe)|0,a=(a=a+Math.imul(x,de)|0)+Math.imul(y,fe)|0,i=i+Math.imul(y,de)|0,n=n+Math.imul(l,ue)|0,a=(a=a+Math.imul(l,be)|0)+Math.imul(p,ue)|0,i=i+Math.imul(p,be)|0;var Se=(d+(n=n+Math.imul(u,le)|0)|0)+((8191&(a=(a=a+Math.imul(u,pe)|0)+Math.imul(b,le)|0))<<13)|0;d=((i=i+Math.imul(b,pe)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(U,K),a=(a=Math.imul(U,G))+Math.imul(z,K)|0,i=Math.imul(z,G),n=n+Math.imul(I,V)|0,a=(a=a+Math.imul(I,Z)|0)+Math.imul(L,V)|0,i=i+Math.imul(L,Z)|0,n=n+Math.imul(B,X)|0,a=(a=a+Math.imul(B,Y)|0)+Math.imul(R,X)|0,i=i+Math.imul(R,Y)|0,n=n+Math.imul(O,Q)|0,a=(a=a+Math.imul(O,ee)|0)+Math.imul(P,Q)|0,i=i+Math.imul(P,ee)|0,n=n+Math.imul(A,re)|0,a=(a=a+Math.imul(A,ne)|0)+Math.imul(E,re)|0,i=i+Math.imul(E,ne)|0,n=n+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,n=n+Math.imul(g,fe)|0,a=(a=a+Math.imul(g,de)|0)+Math.imul(w,fe)|0,i=i+Math.imul(w,de)|0,n=n+Math.imul(x,ue)|0,a=(a=a+Math.imul(x,be)|0)+Math.imul(y,ue)|0,i=i+Math.imul(y,be)|0;var Ae=(d+(n=n+Math.imul(l,le)|0)|0)+((8191&(a=(a=a+Math.imul(l,pe)|0)+Math.imul(p,le)|0))<<13)|0;d=((i=i+Math.imul(p,pe)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,V),a=(a=Math.imul(U,Z))+Math.imul(z,V)|0,i=Math.imul(z,Z),n=n+Math.imul(I,X)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(L,X)|0,i=i+Math.imul(L,Y)|0,n=n+Math.imul(B,Q)|0,a=(a=a+Math.imul(B,ee)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,ee)|0,n=n+Math.imul(O,re)|0,a=(a=a+Math.imul(O,ne)|0)+Math.imul(P,re)|0,i=i+Math.imul(P,ne)|0,n=n+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,n=n+Math.imul(M,fe)|0,a=(a=a+Math.imul(M,de)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,de)|0,n=n+Math.imul(g,ue)|0,a=(a=a+Math.imul(g,be)|0)+Math.imul(w,ue)|0,i=i+Math.imul(w,be)|0;var Ee=(d+(n=n+Math.imul(x,le)|0)|0)+((8191&(a=(a=a+Math.imul(x,pe)|0)+Math.imul(y,le)|0))<<13)|0;d=((i=i+Math.imul(y,pe)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,X),a=(a=Math.imul(U,Y))+Math.imul(z,X)|0,i=Math.imul(z,Y),n=n+Math.imul(I,Q)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(L,Q)|0,i=i+Math.imul(L,ee)|0,n=n+Math.imul(B,re)|0,a=(a=a+Math.imul(B,ne)|0)+Math.imul(R,re)|0,i=i+Math.imul(R,ne)|0,n=n+Math.imul(O,ie)|0,a=(a=a+Math.imul(O,oe)|0)+Math.imul(P,ie)|0,i=i+Math.imul(P,oe)|0,n=n+Math.imul(A,fe)|0,a=(a=a+Math.imul(A,de)|0)+Math.imul(E,fe)|0,i=i+Math.imul(E,de)|0,n=n+Math.imul(M,ue)|0,a=(a=a+Math.imul(M,be)|0)+Math.imul(k,ue)|0,i=i+Math.imul(k,be)|0;var Te=(d+(n=n+Math.imul(g,le)|0)|0)+((8191&(a=(a=a+Math.imul(g,pe)|0)+Math.imul(w,le)|0))<<13)|0;d=((i=i+Math.imul(w,pe)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,Q),a=(a=Math.imul(U,ee))+Math.imul(z,Q)|0,i=Math.imul(z,ee),n=n+Math.imul(I,re)|0,a=(a=a+Math.imul(I,ne)|0)+Math.imul(L,re)|0,i=i+Math.imul(L,ne)|0,n=n+Math.imul(B,ie)|0,a=(a=a+Math.imul(B,oe)|0)+Math.imul(R,ie)|0,i=i+Math.imul(R,oe)|0,n=n+Math.imul(O,fe)|0,a=(a=a+Math.imul(O,de)|0)+Math.imul(P,fe)|0,i=i+Math.imul(P,de)|0,n=n+Math.imul(A,ue)|0,a=(a=a+Math.imul(A,be)|0)+Math.imul(E,ue)|0,i=i+Math.imul(E,be)|0;var Oe=(d+(n=n+Math.imul(M,le)|0)|0)+((8191&(a=(a=a+Math.imul(M,pe)|0)+Math.imul(k,le)|0))<<13)|0;d=((i=i+Math.imul(k,pe)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,re),a=(a=Math.imul(U,ne))+Math.imul(z,re)|0,i=Math.imul(z,ne),n=n+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(L,ie)|0,i=i+Math.imul(L,oe)|0,n=n+Math.imul(B,fe)|0,a=(a=a+Math.imul(B,de)|0)+Math.imul(R,fe)|0,i=i+Math.imul(R,de)|0,n=n+Math.imul(O,ue)|0,a=(a=a+Math.imul(O,be)|0)+Math.imul(P,ue)|0,i=i+Math.imul(P,be)|0;var Pe=(d+(n=n+Math.imul(A,le)|0)|0)+((8191&(a=(a=a+Math.imul(A,pe)|0)+Math.imul(E,le)|0))<<13)|0;d=((i=i+Math.imul(E,pe)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(z,ie)|0,i=Math.imul(z,oe),n=n+Math.imul(I,fe)|0,a=(a=a+Math.imul(I,de)|0)+Math.imul(L,fe)|0,i=i+Math.imul(L,de)|0,n=n+Math.imul(B,ue)|0,a=(a=a+Math.imul(B,be)|0)+Math.imul(R,ue)|0,i=i+Math.imul(R,be)|0;var je=(d+(n=n+Math.imul(O,le)|0)|0)+((8191&(a=(a=a+Math.imul(O,pe)|0)+Math.imul(P,le)|0))<<13)|0;d=((i=i+Math.imul(P,pe)|0)+(a>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(U,fe),a=(a=Math.imul(U,de))+Math.imul(z,fe)|0,i=Math.imul(z,de),n=n+Math.imul(I,ue)|0,a=(a=a+Math.imul(I,be)|0)+Math.imul(L,ue)|0,i=i+Math.imul(L,be)|0;var Be=(d+(n=n+Math.imul(B,le)|0)|0)+((8191&(a=(a=a+Math.imul(B,pe)|0)+Math.imul(R,le)|0))<<13)|0;d=((i=i+Math.imul(R,pe)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,ue),a=(a=Math.imul(U,be))+Math.imul(z,ue)|0,i=Math.imul(z,be);var Re=(d+(n=n+Math.imul(I,le)|0)|0)+((8191&(a=(a=a+Math.imul(I,pe)|0)+Math.imul(L,le)|0))<<13)|0;d=((i=i+Math.imul(L,pe)|0)+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Ce=(d+(n=Math.imul(U,le))|0)+((8191&(a=(a=Math.imul(U,pe))+Math.imul(z,le)|0))<<13)|0;return d=((i=Math.imul(z,pe))+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=xe,f[2]=ye,f[3]=ve,f[4]=ge,f[5]=we,f[6]=_e,f[7]=Me,f[8]=ke,f[9]=Se,f[10]=Ae,f[11]=Ee,f[12]=Te,f[13]=Oe,f[14]=Pe,f[15]=je,f[16]=Be,f[17]=Re,f[18]=Ce,0!==d&&(f[19]=d,r.length++),r};function p(e,t,r){return(new m).mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(l=h),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}r.words[i]=c,n=o,o=a}return 0!==n?r.words[i]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},m.prototype.permute=function(e,t,r,n,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,r[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=n/67108864|0,t+=i>>>26,this.words[r]=67108863&i}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>a}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,n=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),c=67108863^67108863>>>i<o)for(this.length-=o,d=0;d=0&&(0!==s||d>=n);d--){var u=0|this.words[d];this.words[d]=s<<26-i|u>>>i,s=u&c}return f&&0!==s&&(f.words[f.length++]=s),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return a(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(a("number"==typeof e),a(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(f/67108864|0),this.words[n+r]=67108863&i}for(;n>26,this.words[n+r]=67108863&i;if(0===c)return this.strip();for(a(-1===c),c=0,n=0;n>26,this.words[n]=67108863&i;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),a=e,i=0|a.words[a.length-1];0!==(r=26-this._countBits(i))&&(a=a.ushln(r),n.iushln(r),i=0|a.words[a.length-1]);var c,f=n.length-a.length;if("mod"!==t){(c=new o(null)).length=f+1,c.words=new Array(c.length);for(var d=0;d=0;u--){var b=67108864*(0|n.words[a.length+u])+(0|n.words[a.length+u-1]);for(b=Math.min(b/i|0,67108863),n._ishlnsubmul(a,b,u);0!==n.negative;)b--,n.negative=0,n._ishlnsubmul(a,1,u),n.isZero()||(n.negative^=1);c&&(c.words[u]=b)}return c&&c.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:c||null,mod:n}},o.prototype.divmod=function(e,t,r){return a(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(c=this.neg().divmod(e,t),"mod"!==t&&(n=c.div.neg()),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(c=this.divmod(e.neg(),t),"mod"!==t&&(n=c.div.neg()),{div:n,mod:c.mod}):0!=(this.negative&e.negative)?(c=this.neg().divmod(e.neg(),t),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.isub(e)),{div:c.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,i,c},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),i=r.cmp(n);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){a(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},o.prototype.idivn=function(e){a(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),i=new o(0),c=new o(0),f=new o(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var s=r.clone(),u=t.clone();!t.isZero();){for(var b=0,h=1;0==(t.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(s),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var l=0,p=1;0==(r.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(r.iushrn(l);l-- >0;)(c.isOdd()||f.isOdd())&&(c.iadd(s),f.isub(u)),c.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(c),i.isub(f)):(r.isub(t),c.isub(n),f.isub(i))}return{a:c,b:f,gcd:r.iushln(d)}},o.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new o(1),c=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var d=0,s=1;0==(t.words[0]&s)&&d<26;++d,s<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(f),i.iushrn(1);for(var u=0,b=1;0==(r.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(r.iushrn(u);u-- >0;)c.isOdd()&&c.iadd(f),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(c)):(r.isub(t),c.isub(i))}return(n=0===t.cmpn(1)?i:c).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var a=t.cmp(r);if(a<0){var i=t;t=r,r=i}else if(0===a||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,c&=67108863,this.words[o]=c}return 0!==i&&(this.words[o]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var n=0|this.words[r],a=0|e.words[r];if(n!==a){na&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new M(e)},o.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var x={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function g(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){M.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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 e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,a=i}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(x[e])return x[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new g;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return x[e]=t,t},M.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},M.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},M.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},M.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},M.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},M.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},M.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},M.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},M.prototype.isqr=function(e){return this.imul(e,e.clone())},M.prototype.sqr=function(e){return this.mul(e,e)},M.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);a(!n.isZero());var c=new o(1).toRed(this),f=c.redNeg(),d=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new o(2*s*s).toRed(this);0!==this.pow(s,d).cmp(f);)s.redIAdd(f);for(var u=this.pow(s,n),b=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),l=i;0!==h.cmp(c);){for(var p=h,m=0;0!==p.cmp(c);m++)p=p.redSqr();a(m=0;n--){for(var d=t.words[n],s=f-1;s>=0;s--){var u=d>>s&1;a!==r[0]&&(a=this.sqr(a)),0!==u||0!==i?(i<<=1,i|=u,(4===++c||0===n&&0===s)&&(a=this.mul(a,r[i]),c=0,i=0)):c=0}f=26}return a},M.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},M.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,M),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(15)(e))},function(e,t,r){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,n){"use strict";function a(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var c;"object"===t(e)?e.exports=o:n.BN=o,o.BN=o,o.wordSize=26;try{c=r(0).Buffer}catch(e){}function f(e,t,r){for(var n=0,a=Math.min(e.length,r),i=t;i=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function d(e,t,r,n){for(var a=0,i=Math.min(e.length,r),o=t;o=49?c-49+10:c>=17?c-17+10:c}return a}o.isBN=function(e){return e instanceof o||null!==e&&"object"===t(e)&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n);if("object"===t(e))return this._initArray(e,r,n);"hex"===r&&(r=16),a(r===(0|r)&&r>=2&&r<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===r?this._parseHex(e,i):this._parseBase(e,r,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),r,n)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(a(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(a("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[i]|=o<>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);else if("le"===r)for(n=0,i=0;n>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)a=f(e,r,r+6),this.words[n]|=a<>>26-i&4194303,(i+=24)>=26&&(i-=26,n++);r+6!==t&&(a=f(e,t,r+6),this.words[n]|=a<>>26-i&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,a=1;a<=67108863;a*=t)n++;n--,a=a/t|0;for(var i=e.length-r,o=i%n,c=Math.min(i,i-o)+r,f=0,s=r;s1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var s=["","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"],u=[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],b=[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 h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,c=67108863&o,f=o/67108864|0;r.words[0]=c;for(var d=1;d>>26,u=67108863&f,b=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=b;h++){var l=d-h|0;s+=(o=(a=0|e.words[l])*(i=0|t.words[h])+u)/67108864|0,u=67108863&o}r.words[d]=0|u,f=0|s}return 0!==f?r.words[d]=0|f:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,i=0,o=0;o>>24-n&16777215)||o!==this.length-1?s[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,o--)}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],h=b[e];r="";var l=this.clone();for(l.negative=0;!l.isZero();){var p=l.modn(h).toString(e);r=(l=l.idivn(h)).isZero()?p+r:s[d-p.length]+p+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}a(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return a(void 0!==c),this.toArrayLike(c,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),i=r||Math.max(1,n);a(n<=i,"byte array longer than desired length"),a(i>0,"Requested array length <= 0"),this.strip();var o,c,f="le"===t,d=new e(i),s=this.clone();if(f){for(c=0;!s.isZero();c++)o=s.andln(255),s.iushrn(8),d[c]=o;for(;c=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=r.length,0!==a)this.words[this.length]=a,this.length++;else if(r!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,h=0|o[1],l=8191&h,p=h>>>13,m=0|o[2],x=8191&m,y=m>>>13,v=0|o[3],g=8191&v,w=v>>>13,_=0|o[4],M=8191&_,k=_>>>13,S=0|o[5],A=8191&S,E=S>>>13,T=0|o[6],O=8191&T,P=T>>>13,j=0|o[7],B=8191&j,R=j>>>13,C=0|o[8],I=8191&C,L=C>>>13,N=0|o[9],U=8191&N,z=N>>>13,F=0|c[0],q=8191&F,H=F>>>13,D=0|c[1],K=8191&D,G=D>>>13,W=0|c[2],V=8191&W,Z=W>>>13,J=0|c[3],X=8191&J,Y=J>>>13,$=0|c[4],Q=8191&$,ee=$>>>13,te=0|c[5],re=8191&te,ne=te>>>13,ae=0|c[6],ie=8191&ae,oe=ae>>>13,ce=0|c[7],fe=8191&ce,de=ce>>>13,se=0|c[8],ue=8191&se,be=se>>>13,he=0|c[9],le=8191&he,pe=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(d+(n=Math.imul(u,q))|0)+((8191&(a=(a=Math.imul(u,H))+Math.imul(b,q)|0))<<13)|0;d=((i=Math.imul(b,H))+(a>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(l,q),a=(a=Math.imul(l,H))+Math.imul(p,q)|0,i=Math.imul(p,H);var xe=(d+(n=n+Math.imul(u,K)|0)|0)+((8191&(a=(a=a+Math.imul(u,G)|0)+Math.imul(b,K)|0))<<13)|0;d=((i=i+Math.imul(b,G)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(x,q),a=(a=Math.imul(x,H))+Math.imul(y,q)|0,i=Math.imul(y,H),n=n+Math.imul(l,K)|0,a=(a=a+Math.imul(l,G)|0)+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0;var ye=(d+(n=n+Math.imul(u,V)|0)|0)+((8191&(a=(a=a+Math.imul(u,Z)|0)+Math.imul(b,V)|0))<<13)|0;d=((i=i+Math.imul(b,Z)|0)+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(g,q),a=(a=Math.imul(g,H))+Math.imul(w,q)|0,i=Math.imul(w,H),n=n+Math.imul(x,K)|0,a=(a=a+Math.imul(x,G)|0)+Math.imul(y,K)|0,i=i+Math.imul(y,G)|0,n=n+Math.imul(l,V)|0,a=(a=a+Math.imul(l,Z)|0)+Math.imul(p,V)|0,i=i+Math.imul(p,Z)|0;var ve=(d+(n=n+Math.imul(u,X)|0)|0)+((8191&(a=(a=a+Math.imul(u,Y)|0)+Math.imul(b,X)|0))<<13)|0;d=((i=i+Math.imul(b,Y)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(M,q),a=(a=Math.imul(M,H))+Math.imul(k,q)|0,i=Math.imul(k,H),n=n+Math.imul(g,K)|0,a=(a=a+Math.imul(g,G)|0)+Math.imul(w,K)|0,i=i+Math.imul(w,G)|0,n=n+Math.imul(x,V)|0,a=(a=a+Math.imul(x,Z)|0)+Math.imul(y,V)|0,i=i+Math.imul(y,Z)|0,n=n+Math.imul(l,X)|0,a=(a=a+Math.imul(l,Y)|0)+Math.imul(p,X)|0,i=i+Math.imul(p,Y)|0;var ge=(d+(n=n+Math.imul(u,Q)|0)|0)+((8191&(a=(a=a+Math.imul(u,ee)|0)+Math.imul(b,Q)|0))<<13)|0;d=((i=i+Math.imul(b,ee)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(A,q),a=(a=Math.imul(A,H))+Math.imul(E,q)|0,i=Math.imul(E,H),n=n+Math.imul(M,K)|0,a=(a=a+Math.imul(M,G)|0)+Math.imul(k,K)|0,i=i+Math.imul(k,G)|0,n=n+Math.imul(g,V)|0,a=(a=a+Math.imul(g,Z)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,Z)|0,n=n+Math.imul(x,X)|0,a=(a=a+Math.imul(x,Y)|0)+Math.imul(y,X)|0,i=i+Math.imul(y,Y)|0,n=n+Math.imul(l,Q)|0,a=(a=a+Math.imul(l,ee)|0)+Math.imul(p,Q)|0,i=i+Math.imul(p,ee)|0;var we=(d+(n=n+Math.imul(u,re)|0)|0)+((8191&(a=(a=a+Math.imul(u,ne)|0)+Math.imul(b,re)|0))<<13)|0;d=((i=i+Math.imul(b,ne)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(O,q),a=(a=Math.imul(O,H))+Math.imul(P,q)|0,i=Math.imul(P,H),n=n+Math.imul(A,K)|0,a=(a=a+Math.imul(A,G)|0)+Math.imul(E,K)|0,i=i+Math.imul(E,G)|0,n=n+Math.imul(M,V)|0,a=(a=a+Math.imul(M,Z)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,Z)|0,n=n+Math.imul(g,X)|0,a=(a=a+Math.imul(g,Y)|0)+Math.imul(w,X)|0,i=i+Math.imul(w,Y)|0,n=n+Math.imul(x,Q)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(y,Q)|0,i=i+Math.imul(y,ee)|0,n=n+Math.imul(l,re)|0,a=(a=a+Math.imul(l,ne)|0)+Math.imul(p,re)|0,i=i+Math.imul(p,ne)|0;var _e=(d+(n=n+Math.imul(u,ie)|0)|0)+((8191&(a=(a=a+Math.imul(u,oe)|0)+Math.imul(b,ie)|0))<<13)|0;d=((i=i+Math.imul(b,oe)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(B,q),a=(a=Math.imul(B,H))+Math.imul(R,q)|0,i=Math.imul(R,H),n=n+Math.imul(O,K)|0,a=(a=a+Math.imul(O,G)|0)+Math.imul(P,K)|0,i=i+Math.imul(P,G)|0,n=n+Math.imul(A,V)|0,a=(a=a+Math.imul(A,Z)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,Z)|0,n=n+Math.imul(M,X)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,Y)|0,n=n+Math.imul(g,Q)|0,a=(a=a+Math.imul(g,ee)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,n=n+Math.imul(x,re)|0,a=(a=a+Math.imul(x,ne)|0)+Math.imul(y,re)|0,i=i+Math.imul(y,ne)|0,n=n+Math.imul(l,ie)|0,a=(a=a+Math.imul(l,oe)|0)+Math.imul(p,ie)|0,i=i+Math.imul(p,oe)|0;var Me=(d+(n=n+Math.imul(u,fe)|0)|0)+((8191&(a=(a=a+Math.imul(u,de)|0)+Math.imul(b,fe)|0))<<13)|0;d=((i=i+Math.imul(b,de)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(I,q),a=(a=Math.imul(I,H))+Math.imul(L,q)|0,i=Math.imul(L,H),n=n+Math.imul(B,K)|0,a=(a=a+Math.imul(B,G)|0)+Math.imul(R,K)|0,i=i+Math.imul(R,G)|0,n=n+Math.imul(O,V)|0,a=(a=a+Math.imul(O,Z)|0)+Math.imul(P,V)|0,i=i+Math.imul(P,Z)|0,n=n+Math.imul(A,X)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(E,X)|0,i=i+Math.imul(E,Y)|0,n=n+Math.imul(M,Q)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,ee)|0,n=n+Math.imul(g,re)|0,a=(a=a+Math.imul(g,ne)|0)+Math.imul(w,re)|0,i=i+Math.imul(w,ne)|0,n=n+Math.imul(x,ie)|0,a=(a=a+Math.imul(x,oe)|0)+Math.imul(y,ie)|0,i=i+Math.imul(y,oe)|0,n=n+Math.imul(l,fe)|0,a=(a=a+Math.imul(l,de)|0)+Math.imul(p,fe)|0,i=i+Math.imul(p,de)|0;var ke=(d+(n=n+Math.imul(u,ue)|0)|0)+((8191&(a=(a=a+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((i=i+Math.imul(b,be)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,q),a=(a=Math.imul(U,H))+Math.imul(z,q)|0,i=Math.imul(z,H),n=n+Math.imul(I,K)|0,a=(a=a+Math.imul(I,G)|0)+Math.imul(L,K)|0,i=i+Math.imul(L,G)|0,n=n+Math.imul(B,V)|0,a=(a=a+Math.imul(B,Z)|0)+Math.imul(R,V)|0,i=i+Math.imul(R,Z)|0,n=n+Math.imul(O,X)|0,a=(a=a+Math.imul(O,Y)|0)+Math.imul(P,X)|0,i=i+Math.imul(P,Y)|0,n=n+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,ee)|0,n=n+Math.imul(M,re)|0,a=(a=a+Math.imul(M,ne)|0)+Math.imul(k,re)|0,i=i+Math.imul(k,ne)|0,n=n+Math.imul(g,ie)|0,a=(a=a+Math.imul(g,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,n=n+Math.imul(x,fe)|0,a=(a=a+Math.imul(x,de)|0)+Math.imul(y,fe)|0,i=i+Math.imul(y,de)|0,n=n+Math.imul(l,ue)|0,a=(a=a+Math.imul(l,be)|0)+Math.imul(p,ue)|0,i=i+Math.imul(p,be)|0;var Se=(d+(n=n+Math.imul(u,le)|0)|0)+((8191&(a=(a=a+Math.imul(u,pe)|0)+Math.imul(b,le)|0))<<13)|0;d=((i=i+Math.imul(b,pe)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(U,K),a=(a=Math.imul(U,G))+Math.imul(z,K)|0,i=Math.imul(z,G),n=n+Math.imul(I,V)|0,a=(a=a+Math.imul(I,Z)|0)+Math.imul(L,V)|0,i=i+Math.imul(L,Z)|0,n=n+Math.imul(B,X)|0,a=(a=a+Math.imul(B,Y)|0)+Math.imul(R,X)|0,i=i+Math.imul(R,Y)|0,n=n+Math.imul(O,Q)|0,a=(a=a+Math.imul(O,ee)|0)+Math.imul(P,Q)|0,i=i+Math.imul(P,ee)|0,n=n+Math.imul(A,re)|0,a=(a=a+Math.imul(A,ne)|0)+Math.imul(E,re)|0,i=i+Math.imul(E,ne)|0,n=n+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,n=n+Math.imul(g,fe)|0,a=(a=a+Math.imul(g,de)|0)+Math.imul(w,fe)|0,i=i+Math.imul(w,de)|0,n=n+Math.imul(x,ue)|0,a=(a=a+Math.imul(x,be)|0)+Math.imul(y,ue)|0,i=i+Math.imul(y,be)|0;var Ae=(d+(n=n+Math.imul(l,le)|0)|0)+((8191&(a=(a=a+Math.imul(l,pe)|0)+Math.imul(p,le)|0))<<13)|0;d=((i=i+Math.imul(p,pe)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,V),a=(a=Math.imul(U,Z))+Math.imul(z,V)|0,i=Math.imul(z,Z),n=n+Math.imul(I,X)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(L,X)|0,i=i+Math.imul(L,Y)|0,n=n+Math.imul(B,Q)|0,a=(a=a+Math.imul(B,ee)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,ee)|0,n=n+Math.imul(O,re)|0,a=(a=a+Math.imul(O,ne)|0)+Math.imul(P,re)|0,i=i+Math.imul(P,ne)|0,n=n+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,n=n+Math.imul(M,fe)|0,a=(a=a+Math.imul(M,de)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,de)|0,n=n+Math.imul(g,ue)|0,a=(a=a+Math.imul(g,be)|0)+Math.imul(w,ue)|0,i=i+Math.imul(w,be)|0;var Ee=(d+(n=n+Math.imul(x,le)|0)|0)+((8191&(a=(a=a+Math.imul(x,pe)|0)+Math.imul(y,le)|0))<<13)|0;d=((i=i+Math.imul(y,pe)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,X),a=(a=Math.imul(U,Y))+Math.imul(z,X)|0,i=Math.imul(z,Y),n=n+Math.imul(I,Q)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(L,Q)|0,i=i+Math.imul(L,ee)|0,n=n+Math.imul(B,re)|0,a=(a=a+Math.imul(B,ne)|0)+Math.imul(R,re)|0,i=i+Math.imul(R,ne)|0,n=n+Math.imul(O,ie)|0,a=(a=a+Math.imul(O,oe)|0)+Math.imul(P,ie)|0,i=i+Math.imul(P,oe)|0,n=n+Math.imul(A,fe)|0,a=(a=a+Math.imul(A,de)|0)+Math.imul(E,fe)|0,i=i+Math.imul(E,de)|0,n=n+Math.imul(M,ue)|0,a=(a=a+Math.imul(M,be)|0)+Math.imul(k,ue)|0,i=i+Math.imul(k,be)|0;var Te=(d+(n=n+Math.imul(g,le)|0)|0)+((8191&(a=(a=a+Math.imul(g,pe)|0)+Math.imul(w,le)|0))<<13)|0;d=((i=i+Math.imul(w,pe)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,Q),a=(a=Math.imul(U,ee))+Math.imul(z,Q)|0,i=Math.imul(z,ee),n=n+Math.imul(I,re)|0,a=(a=a+Math.imul(I,ne)|0)+Math.imul(L,re)|0,i=i+Math.imul(L,ne)|0,n=n+Math.imul(B,ie)|0,a=(a=a+Math.imul(B,oe)|0)+Math.imul(R,ie)|0,i=i+Math.imul(R,oe)|0,n=n+Math.imul(O,fe)|0,a=(a=a+Math.imul(O,de)|0)+Math.imul(P,fe)|0,i=i+Math.imul(P,de)|0,n=n+Math.imul(A,ue)|0,a=(a=a+Math.imul(A,be)|0)+Math.imul(E,ue)|0,i=i+Math.imul(E,be)|0;var Oe=(d+(n=n+Math.imul(M,le)|0)|0)+((8191&(a=(a=a+Math.imul(M,pe)|0)+Math.imul(k,le)|0))<<13)|0;d=((i=i+Math.imul(k,pe)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,re),a=(a=Math.imul(U,ne))+Math.imul(z,re)|0,i=Math.imul(z,ne),n=n+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(L,ie)|0,i=i+Math.imul(L,oe)|0,n=n+Math.imul(B,fe)|0,a=(a=a+Math.imul(B,de)|0)+Math.imul(R,fe)|0,i=i+Math.imul(R,de)|0,n=n+Math.imul(O,ue)|0,a=(a=a+Math.imul(O,be)|0)+Math.imul(P,ue)|0,i=i+Math.imul(P,be)|0;var Pe=(d+(n=n+Math.imul(A,le)|0)|0)+((8191&(a=(a=a+Math.imul(A,pe)|0)+Math.imul(E,le)|0))<<13)|0;d=((i=i+Math.imul(E,pe)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(z,ie)|0,i=Math.imul(z,oe),n=n+Math.imul(I,fe)|0,a=(a=a+Math.imul(I,de)|0)+Math.imul(L,fe)|0,i=i+Math.imul(L,de)|0,n=n+Math.imul(B,ue)|0,a=(a=a+Math.imul(B,be)|0)+Math.imul(R,ue)|0,i=i+Math.imul(R,be)|0;var je=(d+(n=n+Math.imul(O,le)|0)|0)+((8191&(a=(a=a+Math.imul(O,pe)|0)+Math.imul(P,le)|0))<<13)|0;d=((i=i+Math.imul(P,pe)|0)+(a>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(U,fe),a=(a=Math.imul(U,de))+Math.imul(z,fe)|0,i=Math.imul(z,de),n=n+Math.imul(I,ue)|0,a=(a=a+Math.imul(I,be)|0)+Math.imul(L,ue)|0,i=i+Math.imul(L,be)|0;var Be=(d+(n=n+Math.imul(B,le)|0)|0)+((8191&(a=(a=a+Math.imul(B,pe)|0)+Math.imul(R,le)|0))<<13)|0;d=((i=i+Math.imul(R,pe)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,ue),a=(a=Math.imul(U,be))+Math.imul(z,ue)|0,i=Math.imul(z,be);var Re=(d+(n=n+Math.imul(I,le)|0)|0)+((8191&(a=(a=a+Math.imul(I,pe)|0)+Math.imul(L,le)|0))<<13)|0;d=((i=i+Math.imul(L,pe)|0)+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Ce=(d+(n=Math.imul(U,le))|0)+((8191&(a=(a=Math.imul(U,pe))+Math.imul(z,le)|0))<<13)|0;return d=((i=Math.imul(z,pe))+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=xe,f[2]=ye,f[3]=ve,f[4]=ge,f[5]=we,f[6]=_e,f[7]=Me,f[8]=ke,f[9]=Se,f[10]=Ae,f[11]=Ee,f[12]=Te,f[13]=Oe,f[14]=Pe,f[15]=je,f[16]=Be,f[17]=Re,f[18]=Ce,0!==d&&(f[19]=d,r.length++),r};function p(e,t,r){return(new m).mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(l=h),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}r.words[i]=c,n=o,o=a}return 0!==n?r.words[i]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},m.prototype.permute=function(e,t,r,n,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,r[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=n/67108864|0,t+=i>>>26,this.words[r]=67108863&i}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>a}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,n=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),c=67108863^67108863>>>i<o)for(this.length-=o,d=0;d=0&&(0!==s||d>=n);d--){var u=0|this.words[d];this.words[d]=s<<26-i|u>>>i,s=u&c}return f&&0!==s&&(f.words[f.length++]=s),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return a(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(a("number"==typeof e),a(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(f/67108864|0),this.words[n+r]=67108863&i}for(;n>26,this.words[n+r]=67108863&i;if(0===c)return this.strip();for(a(-1===c),c=0,n=0;n>26,this.words[n]=67108863&i;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),a=e,i=0|a.words[a.length-1];0!==(r=26-this._countBits(i))&&(a=a.ushln(r),n.iushln(r),i=0|a.words[a.length-1]);var c,f=n.length-a.length;if("mod"!==t){(c=new o(null)).length=f+1,c.words=new Array(c.length);for(var d=0;d=0;u--){var b=67108864*(0|n.words[a.length+u])+(0|n.words[a.length+u-1]);for(b=Math.min(b/i|0,67108863),n._ishlnsubmul(a,b,u);0!==n.negative;)b--,n.negative=0,n._ishlnsubmul(a,1,u),n.isZero()||(n.negative^=1);c&&(c.words[u]=b)}return c&&c.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:c||null,mod:n}},o.prototype.divmod=function(e,t,r){return a(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(c=this.neg().divmod(e,t),"mod"!==t&&(n=c.div.neg()),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(c=this.divmod(e.neg(),t),"mod"!==t&&(n=c.div.neg()),{div:n,mod:c.mod}):0!=(this.negative&e.negative)?(c=this.neg().divmod(e.neg(),t),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.isub(e)),{div:c.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,i,c},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),i=r.cmp(n);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){a(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},o.prototype.idivn=function(e){a(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),i=new o(0),c=new o(0),f=new o(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var s=r.clone(),u=t.clone();!t.isZero();){for(var b=0,h=1;0==(t.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(s),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var l=0,p=1;0==(r.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(r.iushrn(l);l-- >0;)(c.isOdd()||f.isOdd())&&(c.iadd(s),f.isub(u)),c.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(c),i.isub(f)):(r.isub(t),c.isub(n),f.isub(i))}return{a:c,b:f,gcd:r.iushln(d)}},o.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new o(1),c=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var d=0,s=1;0==(t.words[0]&s)&&d<26;++d,s<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(f),i.iushrn(1);for(var u=0,b=1;0==(r.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(r.iushrn(u);u-- >0;)c.isOdd()&&c.iadd(f),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(c)):(r.isub(t),c.isub(i))}return(n=0===t.cmpn(1)?i:c).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var a=t.cmp(r);if(a<0){var i=t;t=r,r=i}else if(0===a||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,c&=67108863,this.words[o]=c}return 0!==i&&(this.words[o]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var n=0|this.words[r],a=0|e.words[r];if(n!==a){na&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new M(e)},o.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var x={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function g(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){M.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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 e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,a=i}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(x[e])return x[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new g;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return x[e]=t,t},M.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},M.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},M.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},M.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},M.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},M.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},M.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},M.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},M.prototype.isqr=function(e){return this.imul(e,e.clone())},M.prototype.sqr=function(e){return this.mul(e,e)},M.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);a(!n.isZero());var c=new o(1).toRed(this),f=c.redNeg(),d=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new o(2*s*s).toRed(this);0!==this.pow(s,d).cmp(f);)s.redIAdd(f);for(var u=this.pow(s,n),b=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),l=i;0!==h.cmp(c);){for(var p=h,m=0;0!==p.cmp(c);m++)p=p.redSqr();a(m=0;n--){for(var d=t.words[n],s=f-1;s>=0;s--){var u=d>>s&1;a!==r[0]&&(a=this.sqr(a)),0!==u||0!==i?(i<<=1,i|=u,(4===++c||0===n&&0===s)&&(a=this.mul(a,r[i]),c=0,i=0)):c=0}f=26}return a},M.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},M.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,M),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(15)(e))},function(e,t){},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,a(r(230),t),a(r(231),t),a(r(467),t),a(r(142),t),a(r(468),t),a(r(52),t),a(r(469),t),a(r(40),t),a(r(143),t);var i=r(68);Object.defineProperty(t,"isHexPrefixed",{enumerable:!0,get:function(){return i.isHexPrefixed}}),Object.defineProperty(t,"stripHexPrefix",{enumerable:!0,get:function(){return i.stripHexPrefix}}),Object.defineProperty(t,"padToEven",{enumerable:!0,get:function(){return i.padToEven}}),Object.defineProperty(t,"getBinarySize",{enumerable:!0,get:function(){return i.getBinarySize}}),Object.defineProperty(t,"arrayContainsArray",{enumerable:!0,get:function(){return i.arrayContainsArray}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return i.toAscii}}),Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return i.fromUtf8}}),Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return i.fromAscii}}),Object.defineProperty(t,"getKeys",{enumerable:!0,get:function(){return i.getKeys}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return i.isHexString}})},function(e,t,r){"use strict";(function(e){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Address=void 0;var a=n(r(14)),i=r(40),o=r(52),c=r(231),f=function(){function t(e){(0,a.default)(20===e.length,"Invalid address length"),this.buf=e}return t.zero=function(){return new t((0,o.zeros)(20))},t.fromString=function(e){return(0,a.default)((0,c.isValidAddress)(e),"Invalid address"),new t((0,o.toBuffer)(e))},t.fromPublicKey=function(r){return(0,a.default)(e.isBuffer(r),"Public key should be Buffer"),new t((0,c.pubToAddress)(r))},t.fromPrivateKey=function(r){return(0,a.default)(e.isBuffer(r),"Private key should be Buffer"),new t((0,c.privateToAddress)(r))},t.generate=function(r,n){return(0,a.default)(i.BN.isBN(n)),new t((0,c.generateAddress)(r.buf,n.toArrayLike(e)))},t.generate2=function(r,n,i){return(0,a.default)(e.isBuffer(n)),(0,a.default)(e.isBuffer(i)),new t((0,c.generateAddress2)(r.buf,n,i))},t.prototype.equals=function(e){return this.buf.equals(e.buf)},t.prototype.isZero=function(){return this.equals(t.zero())},t.prototype.isPrecompileOrSystemAddress=function(){var e=new i.BN(this.buf),t=new i.BN(0),r=new i.BN("ffff","hex");return e.gte(t)&&e.lte(r)},t.prototype.toString=function(){return"0x"+this.buf.toString("hex")},t.prototype.toBuffer=function(){return e.from(this.buf)},t}();t.Address=f}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toCompactSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0;var n=r(22),a=r(40),i=r(52),o=r(142),c=r(107),f=r(143);function d(e,t){var r=(0,f.toType)(e,f.TypeOutput.BN);if(r.eqn(0)||r.eqn(1))return(0,f.toType)(e,f.TypeOutput.BN);if(!t)return r.subn(27);var n=(0,f.toType)(t,f.TypeOutput.BN);return r.sub(n.muln(2).addn(35))}function s(e){var t=new a.BN(e);return t.eqn(0)||t.eqn(1)}t.ecsign=function(t,r,a){var i,o,c;if(console.log("ehereumjs-util.signature.ecsign: "+t.toString("hex")),window.jsb&&window.jsb.walletSignTran){var d=t.toString("hex"),s=jsb.walletSignTran(d);if(s.indexOf("|")>=0){var u=s.split("|");s=u[0],c=parseInt(u[1])}var b=Uint8Array.from(e.from(s,"hex"));i=e.from(b.slice(0,32)),o=e.from(b.slice(32,64))}else{var h=(0,n.ecdsaSign)(t,r),l=h.signature;c=h.recid,i=e.from(l.slice(0,32)),o=e.from(l.slice(32,64))}if(!a||"number"==typeof a){if(a&&!Number.isSafeInteger(a))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");return{r:i,s:o,v:a?c+(2*a+35):c+27}}return{r:i,s:o,v:(0,f.toType)(a,f.TypeOutput.BN).muln(2).addn(35).addn(c).toArrayLike(e)}};t.ecrecover=function(t,r,a,o,c){var f=e.concat([(0,i.setLengthLeft)(a,32),(0,i.setLengthLeft)(o,32)],64),u=d(r,c);if(!s(u))throw new Error("Invalid signature v value");var b=(0,n.ecdsaRecover)(f,u.toNumber(),t);return e.from((0,n.publicKeyConvert)(b,!1).slice(1))};t.toRpcSig=function(t,r,n,a){if(!s(d(t,a)))throw new Error("Invalid signature v value");return(0,i.bufferToHex)(e.concat([(0,i.setLengthLeft)(r,32),(0,i.setLengthLeft)(n,32),(0,i.toBuffer)(t)]))};t.toCompactSig=function(t,r,n,a){if(!s(d(t,a)))throw new Error("Invalid signature v value");var o=(0,f.toType)(t,f.TypeOutput.Number),c=n;return(o>28&&o%2==1||1===o||28===o)&&((c=e.from(n))[0]|=128),(0,i.bufferToHex)(e.concat([(0,i.setLengthLeft)(r,32),(0,i.setLengthLeft)(c,32)]))};t.fromRpcSig=function(e){var t,r,n,a=(0,i.toBuffer)(e);if(a.length>=65)t=a.slice(0,32),r=a.slice(32,64),n=(0,i.bufferToInt)(a.slice(64));else{if(64!==a.length)throw new Error("Invalid signature length");t=a.slice(0,32),r=a.slice(32,64),n=(0,i.bufferToInt)(a.slice(32,33))>>7,r[0]&=127}return n<27&&(n+=27),{v:n,r:t,s:r}};t.isValidSignature=function(e,t,r,n,i){void 0===n&&(n=!0);var o=new a.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),c=new a.BN("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==r.length)return!1;if(!s(d(e,i)))return!1;var f=new a.BN(t),u=new a.BN(r);return!(f.isZero()||f.gt(c)||u.isZero()||u.gt(c))&&(!n||1!==u.cmp(o))};t.hashPersonalMessage=function(t){(0,c.assertIsBuffer)(t);var r=e.from("Ethereum Signed Message:\n".concat(t.length),"utf-8");return(0,o.keccak)(e.concat([r,t]))}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.defineProperties=void 0;var i=a(r(14)),o=r(68),c=r(40),f=r(52);t.defineProperties=function(t,r,a){if(t.raw=[],t._fields=[],t.toJSON=function(e){if(void 0===e&&(e=!1),e){var r={};return t._fields.forEach((function(e){r[e]="0x".concat(t[e].toString("hex"))})),r}return(0,f.baToJSON)(t.raw)},t.serialize=function(){return c.rlp.encode(t.raw)},r.forEach((function(r,n){function a(){return t.raw[n]}function o(a){"00"!==(a=(0,f.toBuffer)(a)).toString("hex")||r.allowZero||(a=e.allocUnsafe(0)),r.allowLess&&r.length?(a=(0,f.unpadBuffer)(a),(0,i.default)(r.length>=a.length,"The field ".concat(r.name," must not have more ").concat(r.length," bytes"))):r.allowZero&&0===a.length||!r.length||(0,i.default)(r.length===a.length,"The field ".concat(r.name," must have byte length of ").concat(r.length)),t.raw[n]=a}t._fields.push(r.name),Object.defineProperty(t,r.name,{enumerable:!0,configurable:!0,get:a,set:o}),r.default&&(t[r.name]=r.default),r.alias&&Object.defineProperty(t,r.alias,{enumerable:!1,configurable:!0,set:o,get:a})})),a)if("string"==typeof a&&(a=e.from((0,o.stripHexPrefix)(a),"hex")),e.isBuffer(a)&&(a=c.rlp.decode(a)),Array.isArray(a)){if(a.length>t._fields.length)throw new Error("wrong number of fields in data");a.forEach((function(e,r){t[t._fields[r]]=(0,f.toBuffer)(e)}))}else{if("object"!==n(a))throw new Error("invalid data");var d=Object.keys(a);r.forEach((function(e){-1!==d.indexOf(e.name)&&(t[e.name]=a[e.name]),-1!==d.indexOf(e.alias)&&(t[e.alias]=a[e.alias])}))}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0});var a=r(471);function i(e){return"string"==typeof e&&(!!/^(0x)?[0-9a-f]{512}$/i.test(e)&&!(!/^(0x)?[0-9a-f]{512}$/.test(e)&&!/^(0x)?[0-9A-F]{512}$/.test(e)))}function o(e,t){"object"===n(t)&&t.constructor===Uint8Array&&(t=a.bytesToHex(t));for(var r=a.keccak256(t).replace("0x",""),i=0;i<12;i+=4){var o=(parseInt(r.substr(i,2),16)<<8)+parseInt(r.substr(i+2,2),16)&2047,f=1<=48&&e<=57)return e-48;if(e>=65&&e<=70)return e-55;if(e>=97&&e<=102)return e-87;throw new Error("invalid bloom")}function f(e){return"string"==typeof e&&(!!/^(0x)?[0-9a-f]{64}$/i.test(e)&&!(!/^(0x)?[0-9a-f]{64}$/.test(e)&&!/^(0x)?[0-9A-F]{64}$/.test(e)))}function d(e){return"string"==typeof e&&(!!e.match(/^(0x)?[0-9a-fA-F]{40}$/)||!!e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/))}t.isBloom=i,t.isInBloom=o,t.isUserEthereumAddressInBloom=function(e,t){if(!i(e))throw new Error("Invalid bloom given");if(!d(t))throw new Error('Invalid ethereum address given: "'.concat(t,'"'));return o(e,a.padLeft(t,64))},t.isContractAddressInBloom=function(e,t){if(!i(e))throw new Error("Invalid bloom given");if(!d(t))throw new Error('Invalid contract address given: "'.concat(t,'"'));return o(e,t)},t.isTopicInBloom=function(e,t){if(!i(e))throw new Error("Invalid bloom given");if(!f(t))throw new Error("Invalid topic");return o(e,t)},t.isTopic=f,t.isAddress=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(98);function a(e){if(null==e)throw new Error("cannot convert null value to array");if("string"==typeof e){var t=e.match(/^(0x)?[0-9a-fA-F]*$/);if(!t)throw new Error("invalid hexidecimal string");if("0x"!==t[1])throw new Error("hex string must have 0x prefix");(e=e.substring(2)).length%2&&(e="0"+e);for(var r=[],n=0;n=256||parseInt(String(r))!=r)return!1}return!0}(e))return i(new Uint8Array(e));throw new Error("invalid arrayify value")}function i(e){var t=arguments;return void 0!==e.slice||(e.slice=function(){var r=Array.prototype.slice.call(t);return i(new Uint8Array(Array.prototype.slice.apply(e,r)))}),e}t.keccak256=function(e){return"0x"+n.keccak_256(a(e))},t.padLeft=function(e,t){var r=/^0x/i.test(e)||"number"==typeof e,n=t-(e=e.toString().replace(/^0x/i,"")).length+1>=0?t-e.length+1:0;return(r?"0x":"")+new Array(n).join("0")+e},t.bytesToHex=function(e){for(var t=[],r=0;r>>4).toString(16)),t.push((15&e[r]).toString(16));return"0x".concat(t.join("").replace(/^0+/,""))},t.toByteArray=a},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=r(106),i=r(228),o=function(e){var t=n(e);if("string"===t)return i.isHexStrict(e)?new a(e.replace(/0x/i,""),16):new a(e,10);if("number"===t)return new a(e);if(i.isBigNumber(e))return new a(e.toString(10));if(i.isBN(e))return e;throw new Error(e+" is not a number")},c=function(e,t,r){var n,c;if("bytes"===(e=function(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e}(e))){if(t.replace(/^0x/i,"").length%2!=0)throw new Error("Invalid bytes characters "+t.length);return t}if("string"===e)return i.utf8ToHex(t);if("bool"===e)return t?"01":"00";if(e.startsWith("address")){if(n=r?64:40,!i.isAddress(t))throw new Error(t+" is not a valid address, or the checksum is invalid.");return i.leftPad(t.toLowerCase(),n)}if(n=function(e){var t=/^\D+(\d+).*$/.exec(e);return t?parseInt(t[1],10):null}(e),e.startsWith("bytes")){if(!n)throw new Error("bytes[] not yet supported in solidity");if(r&&(n=32),n<1||n>32||n256)throw new Error("Invalid uint"+n+" size");if((c=o(t)).bitLength()>n)throw new Error("Supplied uint exceeds width: "+n+" vs "+c.bitLength());if(c.lt(new a(0)))throw new Error("Supplied uint "+c.toString()+" is negative");return n?i.leftPad(c.toString("hex"),n/8*2):c}if(e.startsWith("int")){if(n%8||n<8||n>256)throw new Error("Invalid int"+n+" size");if((c=o(t)).bitLength()>n)throw new Error("Supplied int exceeds width: "+n+" vs "+c.bitLength());return c.lt(new a(0))?c.toTwos(n).toString("hex"):n?i.leftPad(c.toString("hex"),n/8*2):c}throw new Error("Unsupported or invalid type: "+e)},f=function(e){if(Array.isArray(e))throw new Error("Autodetection of array types is not supported.");var t,r,o="";if(e&&"object"===n(e)&&(e.hasOwnProperty("v")||e.hasOwnProperty("t")||e.hasOwnProperty("value")||e.hasOwnProperty("type"))?(t=e.hasOwnProperty("t")?e.t:e.type,o=e.hasOwnProperty("v")?e.v:e.value):(t=i.toHex(e,!0),o=i.toHex(e),t.startsWith("int")||t.startsWith("uint")||(t="bytes")),!t.startsWith("int")&&!t.startsWith("uint")||"string"!=typeof o||/^(-)?0x/i.test(o)||(o=new a(o)),Array.isArray(o)){if((r=function(e){var t=/^\D+\d*\[(\d+)\]$/.exec(e);return t?parseInt(t[1],10):null}(t))&&o.length!==r)throw new Error(t+" is not matching the given array "+JSON.stringify(o));r=o.length}return Array.isArray(o)?o.map((function(e){return c(t,e,r).toString("hex").replace("0x","")})).join(""):c(t,o,r).toString("hex").replace("0x","")};e.exports={soliditySha3:function(){var e=Array.prototype.slice.call(arguments),t=e.map(f);return i.sha3("0x"+t.join(""))},soliditySha3Raw:function(){return i.sha3Raw("0x"+Array.prototype.slice.call(arguments).map(f).join(""))},encodePacked:function(){var e=Array.prototype.slice.call(arguments),t=e.map(f);return"0x"+t.join("").toLowerCase()}}},function(e,t,r){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,n){"use strict";function a(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var c;"object"===t(e)?e.exports=o:n.BN=o,o.BN=o,o.wordSize=26;try{c="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(474).Buffer}catch(e){}function f(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void a(!1,"Invalid character in "+e)}function d(e,t,r){var n=f(e,r);return r-1>=t&&(n|=f(e,r-1)<<4),n}function s(e,t,r,n){for(var i=0,o=0,c=Math.min(e.length,r),f=t;f=49?d-49+10:d>=17?d-17+10:d,a(d>=0&&o0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n);if("object"===t(e))return this._initArray(e,r,n);"hex"===r&&(r=16),a(r===(0|r)&&r>=2&&r<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[i]|=o<>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);else if("le"===r)for(n=0,i=0;n>>26-c&67108863,(c+=24)>=26&&(c-=26,i++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)a=d(e,t,n)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,a=1;a<=67108863;a*=t)n++;n--,a=a/t|0;for(var i=e.length-r,o=i%n,c=Math.min(i,i-o)+r,f=0,d=r;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=b}catch(e){o.prototype.inspect=b}else o.prototype.inspect=b;function b(){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],p=[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];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,i=0,o=0;o>>24-n&16777215,(n+=2)>=26&&(n-=26,o--),r=0!==i||o!==this.length-1?h[6-f.length]+f+r:f+r}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=l[e],s=p[e];r="";var u=this.clone();for(u.negative=0;!u.isZero();){var b=u.modrn(s).toString(e);r=(u=u.idivn(s)).isZero()?b+r:h[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}a(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},c&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(c,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,c=67108863&o,f=o/67108864|0;r.words[0]=c;for(var d=1;d>>26,u=67108863&f,b=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=b;h++){var l=d-h|0;s+=(o=(a=0|e.words[l])*(i=0|t.words[h])+u)/67108864|0,u=67108863&o}r.words[d]=0|u,f=0|s}return 0!==f?r.words[d]=0|f:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var n=this.byteLength(),i=r||Math.max(1,n);a(n<=i,"byte array longer than desired length"),a(i>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,i);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,n),o},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,a=0,i=0;a>8&255),r>16&255),6===i?(r>24&255),n=0,i=0):(n=o>>>24,i+=2)}if(r=0&&(e[r--]=o>>8&255),r>=0&&(e[r--]=o>>16&255),6===i?(r>=0&&(e[r--]=o>>24&255),n=0,i=0):(n=o>>>24,i+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=r.length,0!==a)this.words[this.length]=a,this.length++;else if(r!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,h=0|o[1],l=8191&h,p=h>>>13,m=0|o[2],x=8191&m,y=m>>>13,v=0|o[3],g=8191&v,w=v>>>13,_=0|o[4],M=8191&_,k=_>>>13,S=0|o[5],A=8191&S,E=S>>>13,T=0|o[6],O=8191&T,P=T>>>13,j=0|o[7],B=8191&j,R=j>>>13,C=0|o[8],I=8191&C,L=C>>>13,N=0|o[9],U=8191&N,z=N>>>13,F=0|c[0],q=8191&F,H=F>>>13,D=0|c[1],K=8191&D,G=D>>>13,W=0|c[2],V=8191&W,Z=W>>>13,J=0|c[3],X=8191&J,Y=J>>>13,$=0|c[4],Q=8191&$,ee=$>>>13,te=0|c[5],re=8191&te,ne=te>>>13,ae=0|c[6],ie=8191&ae,oe=ae>>>13,ce=0|c[7],fe=8191&ce,de=ce>>>13,se=0|c[8],ue=8191&se,be=se>>>13,he=0|c[9],le=8191&he,pe=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(d+(n=Math.imul(u,q))|0)+((8191&(a=(a=Math.imul(u,H))+Math.imul(b,q)|0))<<13)|0;d=((i=Math.imul(b,H))+(a>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(l,q),a=(a=Math.imul(l,H))+Math.imul(p,q)|0,i=Math.imul(p,H);var xe=(d+(n=n+Math.imul(u,K)|0)|0)+((8191&(a=(a=a+Math.imul(u,G)|0)+Math.imul(b,K)|0))<<13)|0;d=((i=i+Math.imul(b,G)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(x,q),a=(a=Math.imul(x,H))+Math.imul(y,q)|0,i=Math.imul(y,H),n=n+Math.imul(l,K)|0,a=(a=a+Math.imul(l,G)|0)+Math.imul(p,K)|0,i=i+Math.imul(p,G)|0;var ye=(d+(n=n+Math.imul(u,V)|0)|0)+((8191&(a=(a=a+Math.imul(u,Z)|0)+Math.imul(b,V)|0))<<13)|0;d=((i=i+Math.imul(b,Z)|0)+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(g,q),a=(a=Math.imul(g,H))+Math.imul(w,q)|0,i=Math.imul(w,H),n=n+Math.imul(x,K)|0,a=(a=a+Math.imul(x,G)|0)+Math.imul(y,K)|0,i=i+Math.imul(y,G)|0,n=n+Math.imul(l,V)|0,a=(a=a+Math.imul(l,Z)|0)+Math.imul(p,V)|0,i=i+Math.imul(p,Z)|0;var ve=(d+(n=n+Math.imul(u,X)|0)|0)+((8191&(a=(a=a+Math.imul(u,Y)|0)+Math.imul(b,X)|0))<<13)|0;d=((i=i+Math.imul(b,Y)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(M,q),a=(a=Math.imul(M,H))+Math.imul(k,q)|0,i=Math.imul(k,H),n=n+Math.imul(g,K)|0,a=(a=a+Math.imul(g,G)|0)+Math.imul(w,K)|0,i=i+Math.imul(w,G)|0,n=n+Math.imul(x,V)|0,a=(a=a+Math.imul(x,Z)|0)+Math.imul(y,V)|0,i=i+Math.imul(y,Z)|0,n=n+Math.imul(l,X)|0,a=(a=a+Math.imul(l,Y)|0)+Math.imul(p,X)|0,i=i+Math.imul(p,Y)|0;var ge=(d+(n=n+Math.imul(u,Q)|0)|0)+((8191&(a=(a=a+Math.imul(u,ee)|0)+Math.imul(b,Q)|0))<<13)|0;d=((i=i+Math.imul(b,ee)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(A,q),a=(a=Math.imul(A,H))+Math.imul(E,q)|0,i=Math.imul(E,H),n=n+Math.imul(M,K)|0,a=(a=a+Math.imul(M,G)|0)+Math.imul(k,K)|0,i=i+Math.imul(k,G)|0,n=n+Math.imul(g,V)|0,a=(a=a+Math.imul(g,Z)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,Z)|0,n=n+Math.imul(x,X)|0,a=(a=a+Math.imul(x,Y)|0)+Math.imul(y,X)|0,i=i+Math.imul(y,Y)|0,n=n+Math.imul(l,Q)|0,a=(a=a+Math.imul(l,ee)|0)+Math.imul(p,Q)|0,i=i+Math.imul(p,ee)|0;var we=(d+(n=n+Math.imul(u,re)|0)|0)+((8191&(a=(a=a+Math.imul(u,ne)|0)+Math.imul(b,re)|0))<<13)|0;d=((i=i+Math.imul(b,ne)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(O,q),a=(a=Math.imul(O,H))+Math.imul(P,q)|0,i=Math.imul(P,H),n=n+Math.imul(A,K)|0,a=(a=a+Math.imul(A,G)|0)+Math.imul(E,K)|0,i=i+Math.imul(E,G)|0,n=n+Math.imul(M,V)|0,a=(a=a+Math.imul(M,Z)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,Z)|0,n=n+Math.imul(g,X)|0,a=(a=a+Math.imul(g,Y)|0)+Math.imul(w,X)|0,i=i+Math.imul(w,Y)|0,n=n+Math.imul(x,Q)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(y,Q)|0,i=i+Math.imul(y,ee)|0,n=n+Math.imul(l,re)|0,a=(a=a+Math.imul(l,ne)|0)+Math.imul(p,re)|0,i=i+Math.imul(p,ne)|0;var _e=(d+(n=n+Math.imul(u,ie)|0)|0)+((8191&(a=(a=a+Math.imul(u,oe)|0)+Math.imul(b,ie)|0))<<13)|0;d=((i=i+Math.imul(b,oe)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(B,q),a=(a=Math.imul(B,H))+Math.imul(R,q)|0,i=Math.imul(R,H),n=n+Math.imul(O,K)|0,a=(a=a+Math.imul(O,G)|0)+Math.imul(P,K)|0,i=i+Math.imul(P,G)|0,n=n+Math.imul(A,V)|0,a=(a=a+Math.imul(A,Z)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,Z)|0,n=n+Math.imul(M,X)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,Y)|0,n=n+Math.imul(g,Q)|0,a=(a=a+Math.imul(g,ee)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,n=n+Math.imul(x,re)|0,a=(a=a+Math.imul(x,ne)|0)+Math.imul(y,re)|0,i=i+Math.imul(y,ne)|0,n=n+Math.imul(l,ie)|0,a=(a=a+Math.imul(l,oe)|0)+Math.imul(p,ie)|0,i=i+Math.imul(p,oe)|0;var Me=(d+(n=n+Math.imul(u,fe)|0)|0)+((8191&(a=(a=a+Math.imul(u,de)|0)+Math.imul(b,fe)|0))<<13)|0;d=((i=i+Math.imul(b,de)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(I,q),a=(a=Math.imul(I,H))+Math.imul(L,q)|0,i=Math.imul(L,H),n=n+Math.imul(B,K)|0,a=(a=a+Math.imul(B,G)|0)+Math.imul(R,K)|0,i=i+Math.imul(R,G)|0,n=n+Math.imul(O,V)|0,a=(a=a+Math.imul(O,Z)|0)+Math.imul(P,V)|0,i=i+Math.imul(P,Z)|0,n=n+Math.imul(A,X)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(E,X)|0,i=i+Math.imul(E,Y)|0,n=n+Math.imul(M,Q)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,ee)|0,n=n+Math.imul(g,re)|0,a=(a=a+Math.imul(g,ne)|0)+Math.imul(w,re)|0,i=i+Math.imul(w,ne)|0,n=n+Math.imul(x,ie)|0,a=(a=a+Math.imul(x,oe)|0)+Math.imul(y,ie)|0,i=i+Math.imul(y,oe)|0,n=n+Math.imul(l,fe)|0,a=(a=a+Math.imul(l,de)|0)+Math.imul(p,fe)|0,i=i+Math.imul(p,de)|0;var ke=(d+(n=n+Math.imul(u,ue)|0)|0)+((8191&(a=(a=a+Math.imul(u,be)|0)+Math.imul(b,ue)|0))<<13)|0;d=((i=i+Math.imul(b,be)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,q),a=(a=Math.imul(U,H))+Math.imul(z,q)|0,i=Math.imul(z,H),n=n+Math.imul(I,K)|0,a=(a=a+Math.imul(I,G)|0)+Math.imul(L,K)|0,i=i+Math.imul(L,G)|0,n=n+Math.imul(B,V)|0,a=(a=a+Math.imul(B,Z)|0)+Math.imul(R,V)|0,i=i+Math.imul(R,Z)|0,n=n+Math.imul(O,X)|0,a=(a=a+Math.imul(O,Y)|0)+Math.imul(P,X)|0,i=i+Math.imul(P,Y)|0,n=n+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,ee)|0,n=n+Math.imul(M,re)|0,a=(a=a+Math.imul(M,ne)|0)+Math.imul(k,re)|0,i=i+Math.imul(k,ne)|0,n=n+Math.imul(g,ie)|0,a=(a=a+Math.imul(g,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,n=n+Math.imul(x,fe)|0,a=(a=a+Math.imul(x,de)|0)+Math.imul(y,fe)|0,i=i+Math.imul(y,de)|0,n=n+Math.imul(l,ue)|0,a=(a=a+Math.imul(l,be)|0)+Math.imul(p,ue)|0,i=i+Math.imul(p,be)|0;var Se=(d+(n=n+Math.imul(u,le)|0)|0)+((8191&(a=(a=a+Math.imul(u,pe)|0)+Math.imul(b,le)|0))<<13)|0;d=((i=i+Math.imul(b,pe)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(U,K),a=(a=Math.imul(U,G))+Math.imul(z,K)|0,i=Math.imul(z,G),n=n+Math.imul(I,V)|0,a=(a=a+Math.imul(I,Z)|0)+Math.imul(L,V)|0,i=i+Math.imul(L,Z)|0,n=n+Math.imul(B,X)|0,a=(a=a+Math.imul(B,Y)|0)+Math.imul(R,X)|0,i=i+Math.imul(R,Y)|0,n=n+Math.imul(O,Q)|0,a=(a=a+Math.imul(O,ee)|0)+Math.imul(P,Q)|0,i=i+Math.imul(P,ee)|0,n=n+Math.imul(A,re)|0,a=(a=a+Math.imul(A,ne)|0)+Math.imul(E,re)|0,i=i+Math.imul(E,ne)|0,n=n+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,n=n+Math.imul(g,fe)|0,a=(a=a+Math.imul(g,de)|0)+Math.imul(w,fe)|0,i=i+Math.imul(w,de)|0,n=n+Math.imul(x,ue)|0,a=(a=a+Math.imul(x,be)|0)+Math.imul(y,ue)|0,i=i+Math.imul(y,be)|0;var Ae=(d+(n=n+Math.imul(l,le)|0)|0)+((8191&(a=(a=a+Math.imul(l,pe)|0)+Math.imul(p,le)|0))<<13)|0;d=((i=i+Math.imul(p,pe)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(U,V),a=(a=Math.imul(U,Z))+Math.imul(z,V)|0,i=Math.imul(z,Z),n=n+Math.imul(I,X)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(L,X)|0,i=i+Math.imul(L,Y)|0,n=n+Math.imul(B,Q)|0,a=(a=a+Math.imul(B,ee)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,ee)|0,n=n+Math.imul(O,re)|0,a=(a=a+Math.imul(O,ne)|0)+Math.imul(P,re)|0,i=i+Math.imul(P,ne)|0,n=n+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,n=n+Math.imul(M,fe)|0,a=(a=a+Math.imul(M,de)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,de)|0,n=n+Math.imul(g,ue)|0,a=(a=a+Math.imul(g,be)|0)+Math.imul(w,ue)|0,i=i+Math.imul(w,be)|0;var Ee=(d+(n=n+Math.imul(x,le)|0)|0)+((8191&(a=(a=a+Math.imul(x,pe)|0)+Math.imul(y,le)|0))<<13)|0;d=((i=i+Math.imul(y,pe)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(U,X),a=(a=Math.imul(U,Y))+Math.imul(z,X)|0,i=Math.imul(z,Y),n=n+Math.imul(I,Q)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(L,Q)|0,i=i+Math.imul(L,ee)|0,n=n+Math.imul(B,re)|0,a=(a=a+Math.imul(B,ne)|0)+Math.imul(R,re)|0,i=i+Math.imul(R,ne)|0,n=n+Math.imul(O,ie)|0,a=(a=a+Math.imul(O,oe)|0)+Math.imul(P,ie)|0,i=i+Math.imul(P,oe)|0,n=n+Math.imul(A,fe)|0,a=(a=a+Math.imul(A,de)|0)+Math.imul(E,fe)|0,i=i+Math.imul(E,de)|0,n=n+Math.imul(M,ue)|0,a=(a=a+Math.imul(M,be)|0)+Math.imul(k,ue)|0,i=i+Math.imul(k,be)|0;var Te=(d+(n=n+Math.imul(g,le)|0)|0)+((8191&(a=(a=a+Math.imul(g,pe)|0)+Math.imul(w,le)|0))<<13)|0;d=((i=i+Math.imul(w,pe)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(U,Q),a=(a=Math.imul(U,ee))+Math.imul(z,Q)|0,i=Math.imul(z,ee),n=n+Math.imul(I,re)|0,a=(a=a+Math.imul(I,ne)|0)+Math.imul(L,re)|0,i=i+Math.imul(L,ne)|0,n=n+Math.imul(B,ie)|0,a=(a=a+Math.imul(B,oe)|0)+Math.imul(R,ie)|0,i=i+Math.imul(R,oe)|0,n=n+Math.imul(O,fe)|0,a=(a=a+Math.imul(O,de)|0)+Math.imul(P,fe)|0,i=i+Math.imul(P,de)|0,n=n+Math.imul(A,ue)|0,a=(a=a+Math.imul(A,be)|0)+Math.imul(E,ue)|0,i=i+Math.imul(E,be)|0;var Oe=(d+(n=n+Math.imul(M,le)|0)|0)+((8191&(a=(a=a+Math.imul(M,pe)|0)+Math.imul(k,le)|0))<<13)|0;d=((i=i+Math.imul(k,pe)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(U,re),a=(a=Math.imul(U,ne))+Math.imul(z,re)|0,i=Math.imul(z,ne),n=n+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(L,ie)|0,i=i+Math.imul(L,oe)|0,n=n+Math.imul(B,fe)|0,a=(a=a+Math.imul(B,de)|0)+Math.imul(R,fe)|0,i=i+Math.imul(R,de)|0,n=n+Math.imul(O,ue)|0,a=(a=a+Math.imul(O,be)|0)+Math.imul(P,ue)|0,i=i+Math.imul(P,be)|0;var Pe=(d+(n=n+Math.imul(A,le)|0)|0)+((8191&(a=(a=a+Math.imul(A,pe)|0)+Math.imul(E,le)|0))<<13)|0;d=((i=i+Math.imul(E,pe)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(z,ie)|0,i=Math.imul(z,oe),n=n+Math.imul(I,fe)|0,a=(a=a+Math.imul(I,de)|0)+Math.imul(L,fe)|0,i=i+Math.imul(L,de)|0,n=n+Math.imul(B,ue)|0,a=(a=a+Math.imul(B,be)|0)+Math.imul(R,ue)|0,i=i+Math.imul(R,be)|0;var je=(d+(n=n+Math.imul(O,le)|0)|0)+((8191&(a=(a=a+Math.imul(O,pe)|0)+Math.imul(P,le)|0))<<13)|0;d=((i=i+Math.imul(P,pe)|0)+(a>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(U,fe),a=(a=Math.imul(U,de))+Math.imul(z,fe)|0,i=Math.imul(z,de),n=n+Math.imul(I,ue)|0,a=(a=a+Math.imul(I,be)|0)+Math.imul(L,ue)|0,i=i+Math.imul(L,be)|0;var Be=(d+(n=n+Math.imul(B,le)|0)|0)+((8191&(a=(a=a+Math.imul(B,pe)|0)+Math.imul(R,le)|0))<<13)|0;d=((i=i+Math.imul(R,pe)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(U,ue),a=(a=Math.imul(U,be))+Math.imul(z,ue)|0,i=Math.imul(z,be);var Re=(d+(n=n+Math.imul(I,le)|0)|0)+((8191&(a=(a=a+Math.imul(I,pe)|0)+Math.imul(L,le)|0))<<13)|0;d=((i=i+Math.imul(L,pe)|0)+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Ce=(d+(n=Math.imul(U,le))|0)+((8191&(a=(a=Math.imul(U,pe))+Math.imul(z,le)|0))<<13)|0;return d=((i=Math.imul(z,pe))+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,f[0]=me,f[1]=xe,f[2]=ye,f[3]=ve,f[4]=ge,f[5]=we,f[6]=_e,f[7]=Me,f[8]=ke,f[9]=Se,f[10]=Ae,f[11]=Ee,f[12]=Te,f[13]=Oe,f[14]=Pe,f[15]=je,f[16]=Be,f[17]=Re,f[18]=Ce,0!==d&&(f[19]=d,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}r.words[i]=c,n=o,o=a}return 0!==n?r.words[i]=n:r.length--,r._strip()}function v(e,t,r){return y(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(x=m),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?x(this,e,t):r<63?m(this,e,t):r<1024?y(this,e,t):v(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},g.prototype.permute=function(e,t,r,n,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,r[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,r+=i/67108864|0,r+=o>>>26,this.words[n]=67108863&o}return 0!==r&&(this.words[n]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>a&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,n=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),c=67108863^67108863>>>i<o)for(this.length-=o,d=0;d=0&&(0!==s||d>=n);d--){var u=0|this.words[d];this.words[d]=s<<26-i|u>>>i,s=u&c}return f&&0!==s&&(f.words[f.length++]=s),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return a(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<=0);var t=e%26,r=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(a("number"==typeof e),a(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(f/67108864|0),this.words[n+r]=67108863&i}for(;n>26,this.words[n+r]=67108863&i;if(0===c)return this._strip();for(a(-1===c),c=0,n=0;n>26,this.words[n]=67108863&i;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),a=e,i=0|a.words[a.length-1];0!==(r=26-this._countBits(i))&&(a=a.ushln(r),n.iushln(r),i=0|a.words[a.length-1]);var c,f=n.length-a.length;if("mod"!==t){(c=new o(null)).length=f+1,c.words=new Array(c.length);for(var d=0;d=0;u--){var b=67108864*(0|n.words[a.length+u])+(0|n.words[a.length+u-1]);for(b=Math.min(b/i|0,67108863),n._ishlnsubmul(a,b,u);0!==n.negative;)b--,n.negative=0,n._ishlnsubmul(a,1,u),n.isZero()||(n.negative^=1);c&&(c.words[u]=b)}return c&&c._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:c||null,mod:n}},o.prototype.divmod=function(e,t,r){return a(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(c=this.neg().divmod(e,t),"mod"!==t&&(n=c.div.neg()),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(c=this.divmod(e.neg(),t),"mod"!==t&&(n=c.div.neg()),{div:n,mod:c.mod}):0!=(this.negative&e.negative)?(c=this.neg().divmod(e.neg(),t),"div"!==t&&(i=c.mod.neg(),r&&0!==i.negative&&i.isub(e)),{div:c.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,i,c},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),i=r.cmp(n);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),a(e<=67108863);for(var r=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(r*n+(0|this.words[i]))%e;return t?-n:n},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),a(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*r;this.words[n]=i/e|0,r=i%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),i=new o(0),c=new o(0),f=new o(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var s=r.clone(),u=t.clone();!t.isZero();){for(var b=0,h=1;0==(t.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(n.isOdd()||i.isOdd())&&(n.iadd(s),i.isub(u)),n.iushrn(1),i.iushrn(1);for(var l=0,p=1;0==(r.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(r.iushrn(l);l-- >0;)(c.isOdd()||f.isOdd())&&(c.iadd(s),f.isub(u)),c.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(c),i.isub(f)):(r.isub(t),c.isub(n),f.isub(i))}return{a:c,b:f,gcd:r.iushln(d)}},o.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new o(1),c=new o(0),f=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var d=0,s=1;0==(t.words[0]&s)&&d<26;++d,s<<=1);if(d>0)for(t.iushrn(d);d-- >0;)i.isOdd()&&i.iadd(f),i.iushrn(1);for(var u=0,b=1;0==(r.words[0]&b)&&u<26;++u,b<<=1);if(u>0)for(r.iushrn(u);u-- >0;)c.isOdd()&&c.iadd(f),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(c)):(r.isub(t),c.isub(i))}return(n=0===t.cmpn(1)?i:c).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var a=t.cmp(r);if(a<0){var i=t;t=r,r=i}else if(0===a||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,c&=67108863,this.words[o]=c}return 0!==i&&(this.words[o]=i,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var n=0|this.words[r],a=0|e.words[r];if(n!==a){na&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new E(e)},o.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}_.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},i(M,_),M.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,a=i}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},M.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new M;else if("p224"===e)t=new k;else if("p192"===e)t=new S;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return w[e]=t,t},E.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);a(!n.isZero());var c=new o(1).toRed(this),f=c.redNeg(),d=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new o(2*s*s).toRed(this);0!==this.pow(s,d).cmp(f);)s.redIAdd(f);for(var u=this.pow(s,n),b=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),l=i;0!==h.cmp(c);){for(var p=h,m=0;0!==p.cmp(c);m++)p=p.redSqr();a(m=0;n--){for(var d=t.words[n],s=f-1;s>=0;s--){var u=d>>s&1;a!==r[0]&&(a=this.sqr(a)),0!==u||0!==i?(i<<=1,i|=u,(4===++c||0===n&&0===s)&&(a=this.mul(a,r[i]),c=0,i=0)):c=0}f=26}return a},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new T(e)},i(T,E),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(15)(e))},function(e,t){},function(e,t,r){"use strict";var n=r(233),a=r(16).errors,i=function(e){this.requestManager=e,this.requests=[]};i.prototype.add=function(e){this.requests.push(e)},i.prototype.execute=function(){var e=this.requests,t=this._sortResponses.bind(this);this.requestManager.sendBatch(e,(function(r,i){i=t(i),e.map((function(e,t){return i[t]||{}})).forEach((function(t,r){if(e[r].callback){if(t&&t.error)return e[r].callback(a.ErrorResponse(t));if(!n.isValidResponse(t))return e[r].callback(a.InvalidResponse(t));try{e[r].callback(null,e[r].format?e[r].format(t.result):t.result)}catch(t){e[r].callback(t)}}}))}))},i.prototype._sortResponses=function(e){return(e||[]).sort((function(e,t){return e.id-t.id}))},e.exports=i},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=null,i="object"===("undefined"==typeof globalThis?"undefined":n(globalThis))?globalThis:void 0;if(!i)try{i=Function("return this")()}catch(e){i=self}void 0!==i.ethereum?a=i.ethereum:void 0!==i.web3&&i.web3.currentProvider&&(i.web3.currentProvider.sendAsync&&(i.web3.currentProvider.send=i.web3.currentProvider.sendAsync,delete i.web3.currentProvider.sendAsync),!i.web3.currentProvider.on&&i.web3.currentProvider.connection&&"ipcProviderWrapper"===i.web3.currentProvider.connection.constructor.name&&(i.web3.currentProvider.on=function(e,t){if("function"!=typeof t)throw new Error("The second parameter callback must be a function.");switch(e){case"data":this.connection.on("data",(function(e){var r="";e=e.toString();try{r=JSON.parse(e)}catch(r){return t(new Error("Couldn't parse response data"+e))}r.id||-1===r.method.indexOf("_subscription")||t(null,r)}));break;default:this.connection.on(e,t)}}),a=i.web3.currentProvider),e.exports=a},function(e,t,r){"use strict";var n=r(145),a=r(478),i=r(16).errors,o=r(483).w3cwebsocket,c=function(e,t){n.call(this),t=t||{},this.url=e,this._customTimeout=t.timeout||15e3,this.headers=t.headers||{},this.protocol=t.protocol||void 0,this.reconnectOptions=Object.assign({auto:!1,delay:5e3,maxAttempts:!1,onTimeout:!1},t.reconnect),this.clientConfig=t.clientConfig||void 0,this.requestOptions=t.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=a.parseURL(e);r.username&&r.password&&(this.headers.authorization="Basic "+a.btoa(r.username+":"+r.password)),r.auth&&(this.headers.authorization="Basic "+a.btoa(r.auth)),Object.defineProperty(this,"connected",{get:function(){return this.connection&&this.connection.readyState===this.connection.OPEN},enumerable:!0}),this.connect()};(c.prototype=Object.create(n.prototype)).constructor=c,c.prototype.connect=function(){this.connection=new o(this.url,this.protocol,void 0,this.headers,this.requestOptions,this.clientConfig),this._addSocketListeners()},c.prototype._onMessage=function(e){var t=this;this._parseResponse("string"==typeof e.data?e.data:"").forEach((function(e){if(e.method&&-1!==e.method.indexOf("_subscription"))t.emit(t.DATA,e);else{var r=e.id;Array.isArray(e)&&(r=e[0].id),t.responseQueue.has(r)&&(void 0!==t.responseQueue.get(r).callback&&t.responseQueue.get(r).callback(!1,e),t.responseQueue.delete(r))}}))},c.prototype._onConnect=function(){if(this.emit(this.CONNECT),this.reconnectAttempts=0,this.reconnecting=!1,this.requestQueue.size>0){var e=this;this.requestQueue.forEach((function(t,r){e.send(t.payload,t.callback),e.requestQueue.delete(r)}))}},c.prototype._onClose=function(e){var t=this;!this.reconnectOptions.auto||[1e3,1001].includes(e.code)&&!1!==e.wasClean?(this.emit(this.CLOSE,e),this.requestQueue.size>0&&this.requestQueue.forEach((function(r,n){r.callback(i.ConnectionNotOpenError(e)),t.requestQueue.delete(n)})),this.responseQueue.size>0&&this.responseQueue.forEach((function(r,n){r.callback(i.InvalidConnection("on WS",e)),t.responseQueue.delete(n)})),this._removeSocketListeners(),this.removeAllListeners()):this.reconnect()},c.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))},c.prototype._removeSocketListeners=function(){this.connection.removeEventListener("message",this._onMessage),this.connection.removeEventListener("open",this._onConnect),this.connection.removeEventListener("close",this._onClose)},c.prototype._parseResponse=function(e){var t=this,r=[];return e.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach((function(e){t.lastChunk&&(e=t.lastChunk+e);var n=null;try{n=JSON.parse(e)}catch(r){return t.lastChunk=e,clearTimeout(t.lastChunkTimeout),void(t.lastChunkTimeout=setTimeout((function(){t.reconnectOptions.auto&&t.reconnectOptions.onTimeout?t.reconnect():(t.emit(t.ERROR,i.ConnectionTimeout(t._customTimeout)),t.requestQueue.size>0&&t.requestQueue.forEach((function(e,r){e.callback(i.ConnectionTimeout(t._customTimeout)),t.requestQueue.delete(r)})))}),t._customTimeout))}clearTimeout(t.lastChunkTimeout),t.lastChunk=null,n&&r.push(n)})),r},c.prototype.send=function(e,t){var r=e.id,n={payload:e,callback:t};if(Array.isArray(e)&&(r=e[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,i.ConnectionNotOpenError()),void n.callback(i.ConnectionNotOpenError());this.responseQueue.set(r,n),this.requestQueue.delete(r);try{this.connection.send(JSON.stringify(n.payload))}catch(e){n.callback(e),this.responseQueue.delete(r)}}},c.prototype.reset=function(){this.responseQueue.clear(),this.requestQueue.clear(),this.removeAllListeners(),this._removeSocketListeners(),this._addSocketListeners()},c.prototype.disconnect=function(e,t){this._removeSocketListeners(),this.connection.close(e||1e3,t)},c.prototype.supportsSubscriptions=function(){return!0},c.prototype.reconnect=function(){var e=this;this.reconnecting=!0,this.responseQueue.size>0&&this.responseQueue.forEach((function(t,r){t.callback(i.PendingRequestsOnReconnectingError()),e.responseQueue.delete(r)})),!this.reconnectOptions.maxAttempts||this.reconnectAttempts0&&this.requestQueue.forEach((function(t,r){t.callback(i.MaxAttemptsReachedOnReconnectingError()),e.requestQueue.delete(r)})))},e.exports=c},function(e,t,r){(function(t,n){function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i="[object process]"===Object.prototype.toString.call(void 0!==t?t:0),o="undefined"!=typeof navigator&&"ReactNative"===navigator.product,c=null,f=null;if(i||o){c=function(e){return n.from(e).toString("base64")};var d=r(85);if(d.URL){var s=d.URL;f=function(e){return new s(e)}}else f=r(85).parse}else c=btoa.bind("object"===("undefined"==typeof globalThis?"undefined":a(globalThis))?globalThis:self),f=function(e){return new URL(e)};e.exports={parseURL:f,btoa:c}}).call(this,r(11),r(0).Buffer)},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"===n(e)&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(481),t.encode=t.stringify=r(482)},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,i){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var c=/\+/g;e=e.split(t);var f=1e3;i&&"number"==typeof i.maxKeys&&(f=i.maxKeys);var d=e.length;f>0&&d>f&&(d=f);for(var s=0;s=0?(u=p.substr(0,m),b=p.substr(m+1)):(u=p,b=""),h=decodeURIComponent(u),l=decodeURIComponent(b),n(o,h)?a(o[h])?o[h].push(l):o[h]=[o[h],l]:o[h]=l}return o};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=function(e){switch(n(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,f){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"===n(e)?o(c(e),(function(n){var c=encodeURIComponent(a(n))+r;return i(e[n])?o(e[n],(function(e){return c+encodeURIComponent(a(e))})).join(t):c+encodeURIComponent(a(e[n]))})).join(t):f?encodeURIComponent(a(f))+r+encodeURIComponent(a(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);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(e,t,r){var n=r(16).errors,a=r(194).XMLHttpRequest,i=r(146),o=r(238),c=function(e,t){t=t||{},this.withCredentials=t.withCredentials||!1,this.timeout=t.timeout||15e3,this.headers=t.headers,this.agent=t.agent,this.connected=!1;var r=!1!==t.keepAlive;this.host=e||"http://localhost:8545",this.agent||("https"===this.host.substring(0,5)?this.httpsAgent=new o.Agent({keepAlive:r}):this.httpAgent=new i.Agent({keepAlive:r}))};c.prototype._prepareRequest=function(){var e;if("undefined"!=typeof XMLHttpRequest)e=new XMLHttpRequest;else{e=new a;var t={httpsAgent:this.httpsAgent,httpAgent:this.httpAgent,baseUrl:this.baseUrl};this.agent&&(t.httpsAgent=this.agent.https,t.httpAgent=this.agent.http,t.baseUrl=this.agent.baseUrl),e.nodejsSet(t)}return e.open("POST",this.host,!0),e.setRequestHeader("Content-Type","application/json"),e.timeout=this.timeout,e.withCredentials=this.withCredentials,this.headers&&this.headers.forEach((function(t){e.setRequestHeader(t.name,t.value)})),e},c.prototype.send=function(e,t){var r=this,a=this._prepareRequest();a.onreadystatechange=function(){if(4===a.readyState&&1!==a.timeout){var e=a.responseText,i=null;try{e=JSON.parse(e)}catch(e){i=n.InvalidResponse(a.responseText)}r.connected=!0,t(i,e)}},a.ontimeout=function(){r.connected=!1,t(n.ConnectionTimeout(this.timeout))},window.debug&&console.log(JSON.stringify(e));try{a.send(JSON.stringify(e))}catch(e){this.connected=!1,t(n.InvalidConnection(this.host))}},c.prototype.disconnect=function(){},c.prototype.supportsSubscriptions=function(){return!1},e.exports=c},function(e,t,r){"use strict";(function(e,n){var a,i=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0)return this._url=this._parseUrl(t.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=t,this._response.on("data",(function(e){return n._onHttpResponseData(t,e)})),this._response.on("end",(function(){return n._onHttpResponseEnd(t)})),this._response.on("close",(function(){return n._onHttpResponseClose(t)})),this.responseUrl=this._url.href.split("#")[0],this.status=t.statusCode,this.statusText=c.STATUS_CODES[this.status],this._parseResponseHeaders(t);var a=this._responseHeaders["content-length"]||"";this._totalBytes=+a,this._lengthComputable=!!a,this._setReadyState(r.HEADERS_RECEIVED)}},r.prototype._onHttpResponseData=function(e,t){this._response===e&&(this._responseParts.push(new n(t)),this._loadedBytes+=t.length,this.readyState!==r.LOADING&&this._setReadyState(r.LOADING),this._dispatchProgress("progress"))},r.prototype._onHttpResponseEnd=function(e){this._response===e&&(this._parseResponse(),this._request=null,this._response=null,this._setReadyState(r.DONE),this._dispatchProgress("load"),this._dispatchProgress("loadend"))},r.prototype._onHttpResponseClose=function(e){if(this._response===e){var t=this._request;this._setError(),t.abort(),this._setReadyState(r.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend")}},r.prototype._onHttpTimeout=function(e){this._request===e&&(this._setError(),e.abort(),this._setReadyState(r.DONE),this._dispatchProgress("timeout"),this._dispatchProgress("loadend"))},r.prototype._onHttpRequestError=function(e,t){this._request===e&&(this._setError(),e.abort(),this._setReadyState(r.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend"))},r.prototype._dispatchProgress=function(e){var t=new r.ProgressEvent(e);t.lengthComputable=this._lengthComputable,t.loaded=this._loadedBytes,t.total=this._totalBytes,this.dispatchEvent(t)},r.prototype._setError=function(){this._request=null,this._response=null,this._responseHeaders=null,this._responseParts=null},r.prototype._parseUrl=function(e,t,r){var n=null==this.nodejsBaseUrl?e:s.resolve(this.nodejsBaseUrl,e),a=s.parse(n,!1,!0);a.hash=null;var i=(a.auth||"").split(":"),o=i[0],c=i[1];return(o||c||t||r)&&(a.auth=(t||o||"")+":"+(r||c||"")),a},r.prototype._parseResponseHeaders=function(e){for(var t in this._responseHeaders={},e.headers){var r=t.toLowerCase();this._privateHeaders[r]||(this._responseHeaders[r]=e.headers[t])}null!=this._mimeOverride&&(this._responseHeaders["content-type"]=this._mimeOverride)},r.prototype._parseResponse=function(){var e=n.concat(this._responseParts);switch(this._responseParts=null,this.responseType){case"json":this.responseText=null;try{this.response=JSON.parse(e.toString("utf-8"))}catch(e){this.response=null}return;case"buffer":return this.responseText=null,void(this.response=e);case"arraybuffer":this.responseText=null;for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),a=0;a