@rcsb/rcsb-saguaro-app 6.3.7-dev-js-seqcoord.19 → 6.3.7-dev-js-seqcoord.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/app.js +1 -1
- package/build/constants.js +1 -1
- package/build/plot.js +1 -1
- package/build/worker.js +1 -1
- package/lib/RcsbAnnotationConfig/RcsbAnnotationConfig.d.ts +1 -1
- package/lib/RcsbCollectTools/AlignmentCollector/AlignmentCollector.d.ts +1 -1
- package/lib/RcsbCollectTools/AlignmentCollector/AlignmentCollectorInterface.d.ts +1 -1
- package/lib/RcsbCollectTools/AnnotationCollector/AnnotationCollector.d.ts +1 -1
- package/lib/RcsbCollectTools/AnnotationCollector/AnnotationCollectorInterface.d.ts +1 -1
- package/lib/RcsbCollectTools/DataCollectors/AssemblyInterfacesCollector.d.ts +1 -1
- package/lib/RcsbCollectTools/DataCollectors/EntryAssembliesCollector.d.ts +1 -1
- package/lib/RcsbCollectTools/DataCollectors/GroupMemberCollector.d.ts +1 -1
- package/lib/RcsbCollectTools/DataCollectors/GroupPropertyCollector.d.ts +1 -1
- package/lib/RcsbCollectTools/DataCollectors/InterfaceInstanceCollector.d.ts +1 -1
- package/lib/RcsbCollectTools/DataCollectors/MultipleEntityInstancesCollector.d.ts +1 -1
- package/lib/RcsbCollectTools/DataCollectors/MultipleEntryPropertyCollector.d.ts +2 -2
- package/lib/RcsbCollectTools/DataCollectors/MultiplePolymerEntityCollector.d.ts +1 -1
- package/lib/RcsbCollectTools/DataCollectors/MultiplePolymerEntityCollector.js +1 -1
- package/lib/RcsbCollectTools/DataCollectors/MultiplePolymerEntityCollector.js.map +1 -1
- package/lib/RcsbCollectTools/DataCollectors/PolymerEntityChromosomeCollector.js +1 -1
- package/lib/RcsbCollectTools/DataCollectors/PolymerEntityChromosomeCollector.js.map +1 -1
- package/lib/RcsbCollectTools/DataCollectors/PolymerEntityInstancesCollector.d.ts +2 -2
- package/lib/RcsbCollectTools/FeatureTools/ExternalTrackBuilderInterface.d.ts +1 -1
- package/lib/RcsbExport/FeatureType.d.ts +1 -1
- package/lib/RcsbExport/FeatureType.js +1 -1
- package/lib/RcsbExport/FeatureType.js.map +1 -1
- package/lib/RcsbFvExamples/ExternalDataProvider.js +1 -1
- package/lib/RcsbFvExamples/ExternalDataProvider.js.map +1 -1
- package/lib/RcsbFvExamples/GroupHistogram.js +1 -1
- package/lib/RcsbFvExamples/GroupHistogram.js.map +1 -1
- package/lib/RcsbFvExamples/InstanceSequenceFv.js +1 -1
- package/lib/RcsbFvExamples/InstanceSequenceFv.js.map +1 -1
- package/lib/RcsbFvExamples/SequenceIdentityGroupFv.js +1 -1
- package/lib/RcsbFvExamples/SequenceIdentityGroupFv.js.map +1 -1
- package/lib/RcsbFvExamples/UniprotGroupFv.js +2 -2
- package/lib/RcsbFvExamples/UniprotGroupFv.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvChromosomeBuilder.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvChromosomeBuilder.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvEntityBuilder.js +2 -2
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvEntityBuilder.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvGroupAlignmentBuilder.d.ts +2 -2
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvGroupAlignmentBuilder.js +3 -3
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvGroupAlignmentBuilder.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvGroupBuilder.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvProteinSequenceBuilder.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvProteinSequenceBuilder.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvProteinSequenceBuilder.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvUniprotBuilder.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvUniprotBuilder.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvBuilder.d.ts +2 -2
- package/lib/RcsbFvWeb/RcsbFvBuilder.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvBuilder.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/AlignmentBlockFactory.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/AnnotationsBlockFactory.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/AnnotationBlockManager.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/AnnotationTrackManager.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/AnnotationTrackManager.js +2 -2
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/AnnotationTrackManager.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/TrackManagerInterface.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/AlignmentTrackFactory.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/Helper/TrackUtils.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/Helper/TrackUtils.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/Helper/TrackUtils.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/MsaAlignmentTrackFactory.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/MsaAlignmentTrackFactory.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/MsaAlignmentTrackFactory.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/PlainAlignmentTrackFactory.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/PlainObservedAlignmentTrackFactory.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/PlainObservedAlignmentTrackFactory.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/PlainObservedAlignmentTrackFactory.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/PositionalScoreAlignmentTrackFactory.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/PositionalScoreAlignmentTrackFactory.js +2 -2
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/PositionalScoreAlignmentTrackFactory.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/SequenceTrackFactory.js +2 -2
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/SequenceTrackFactory.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/AlignmentTrackTitleFactory.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/AlignmentTrackTitleFactory.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/AlignmentTrackTitleFactory.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/ExperimentalAlignmentTrackTitleFactory.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/ExperimentalAlignmentTrackTitleFactory.js +2 -2
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/ExperimentalAlignmentTrackTitleFactory.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/ModelAlignmentTrackTitleFactory.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/SequenceTrackTitleFactory.js +2 -2
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/SequenceTrackTitleFactory.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvGroup/GroupPfvTabs.d.ts +2 -2
- package/lib/RcsbFvWeb/RcsbFvGroup/GroupPfvTabs.js +3 -3
- package/lib/RcsbFvWeb/RcsbFvGroup/GroupPfvTabs.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvGroup/GroupTabs/GroupPfvApp.d.ts +3 -3
- package/lib/RcsbFvWeb/RcsbFvGroup/GroupTabs/GroupPfvApp.js +2 -2
- package/lib/RcsbFvWeb/RcsbFvGroup/GroupTabs/GroupPfvApp.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvGroup/RcsbFvGroupTabsBuilder.d.ts +2 -2
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvAbstractModule.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvChromosome.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvChromosome.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvEntity.js +2 -2
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvEntity.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAlignment.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAlignment.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvInstance.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvInstance.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvInterface.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvInterface.js +2 -2
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvInterface.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvModuleInterface.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvProteinSequence.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvProteinSequence.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprot.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprot.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotAlignment.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotAlignment.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotEntity.js +2 -2
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotEntity.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotInstance.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotInstance.js.map +1 -1
- package/lib/RcsbFvWeb/RcsbFvWorkers/RcsbFvAlignmentCollectorQueue.d.ts +1 -1
- package/lib/RcsbGraphQL/RcsbClient.d.ts +2 -2
- package/lib/RcsbGraphQL/RcsbCoreQueryInterface.d.ts +1 -1
- package/lib/RcsbGraphQL/RcsbQueryAlignment.d.ts +2 -2
- package/lib/RcsbGraphQL/RcsbQueryAnnotations.d.ts +2 -2
- package/lib/RcsbGraphQL/RcsbQueryAssemblyInterfaces.d.ts +2 -2
- package/lib/RcsbGraphQL/RcsbQueryEntryInstances.d.ts +2 -2
- package/lib/RcsbGraphQL/RcsbQueryGroup.d.ts +2 -2
- package/lib/RcsbGraphQL/RcsbQueryInterfaceInstances.d.ts +2 -2
- package/lib/RcsbGraphQL/RcsbQueryMultipleEntityInstances.d.ts +2 -2
- package/lib/RcsbGraphQL/RcsbQueryMultipleEntriesProperties.d.ts +2 -2
- package/lib/RcsbGraphQL/RcsbQueryMultipleInstanceSequences.d.ts +2 -2
- package/lib/RcsbGroupWeb/RcsbGroupBuilder.d.ts +3 -3
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/GroupChartEvents.d.ts +1 -1
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/GroupChartEvents.js +1 -1
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/GroupChartEvents.js.map +1 -1
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/GroupChartTools.d.ts +2 -2
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/GroupChartTools.js.map +1 -1
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/RcsbGroupChartComponent.d.ts +2 -2
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/RcsbGroupChartComponent.js.map +1 -1
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/RcsbStatsChartComponent.d.ts +3 -3
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupContent/RcsbGroupContentComponent.d.ts +2 -2
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupContent/RcsbGroupContentComponent.js +1 -1
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupContent/RcsbGroupContentComponent.js.map +1 -1
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupDisplay.d.ts +3 -3
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/GroupMemberItem.d.ts +2 -2
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/GroupMemberItem.js +2 -2
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/GroupMemberItem.js.map +1 -1
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/GroupMembersGrid.d.ts +2 -2
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/GroupMembersGrid.js +4 -4
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/GroupMembersGrid.js.map +1 -1
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/RcsbGroupMembersComponent.d.ts +3 -3
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/RcsbGroupMembersComponent.js +2 -2
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/RcsbGroupMembersComponent.js.map +1 -1
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupSeacrhQuery/RcsbGroupSeacrhQueryComponent.d.ts +2 -2
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupSeacrhQuery/SearchQueryContextManager.d.ts +3 -3
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartTools/ResidueChartTools.js +1 -1
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartTools/ResidueChartTools.js.map +1 -1
- package/lib/RcsbQueries/QueryCheck.js +1 -1
- package/lib/RcsbQueries/QueryCheck.js.map +1 -1
- package/lib/RcsbRequest/RcsbRequestClient.d.ts +2 -2
- package/lib/RcsbRequest/RcsbRequestClient.js +2 -2
- package/lib/RcsbRequest/RcsbRequestClient.js.map +1 -1
- package/lib/RcsbRequest/RcsbRequestContextManager.d.ts +5 -5
- package/lib/RcsbRequest/RcsbRequestContextManager.js +3 -3
- package/lib/RcsbRequest/RcsbRequestContextManager.js.map +1 -1
- package/lib/RcsbSeacrh/FacetStore/DepositionGroupFacetStore.d.ts +1 -1
- package/lib/RcsbSeacrh/FacetStore/DepositionGroupFacetStore.js +2 -2
- package/lib/RcsbSeacrh/FacetStore/DepositionGroupFacetStore.js.map +1 -1
- package/lib/RcsbSeacrh/FacetStore/EntityGranularitySearchFacetStore.d.ts +1 -1
- package/lib/RcsbSeacrh/FacetStore/EntityGranularitySearchFacetStore.js +2 -2
- package/lib/RcsbSeacrh/FacetStore/EntityGranularitySearchFacetStore.js.map +1 -1
- package/lib/RcsbSeacrh/FacetStore/FacetMemberInterface.d.ts +1 -1
- package/lib/RcsbSeacrh/FacetStore/FacetStoreInterface.d.ts +1 -1
- package/lib/RcsbSeacrh/FacetStore/SequenceGroupFacetStore.d.ts +1 -1
- package/lib/RcsbSeacrh/FacetStore/SequenceGroupFacetStore.js +2 -2
- package/lib/RcsbSeacrh/FacetStore/SequenceGroupFacetStore.js.map +1 -1
- package/lib/RcsbSeacrh/FacetStore/SingleFacets.js +2 -2
- package/lib/RcsbSeacrh/FacetStore/SingleFacets.js.map +1 -1
- package/lib/RcsbSeacrh/FacetStore/UniprotGroupFacetStore.d.ts +1 -1
- package/lib/RcsbSeacrh/FacetStore/UniprotGroupFacetStore.js +2 -2
- package/lib/RcsbSeacrh/FacetStore/UniprotGroupFacetStore.js.map +1 -1
- package/lib/RcsbSeacrh/FacetTools.d.ts +4 -4
- package/lib/RcsbSeacrh/SearchQueryTools.d.ts +5 -5
- package/lib/RcsbSeacrh/SearchQueryTools.js +3 -3
- package/lib/RcsbSeacrh/SearchQueryTools.js.map +1 -1
- package/lib/RcsbSeacrh/SearchRequestProperty.d.ts +4 -4
- package/lib/RcsbUtils/Groups/GroupGapLessTransformer.d.ts +1 -1
- package/lib/RcsbUtils/Groups/GroupProvenanceToAggregationType.d.ts +2 -2
- package/lib/RcsbUtils/Groups/GroupProvenanceToAggregationType.js +3 -2
- package/lib/RcsbUtils/Groups/GroupProvenanceToAggregationType.js.map +1 -1
- package/lib/RcsbUtils/PairwiseAlignmentTools/AlignmentReference.d.ts +1 -1
- package/lib/RcsbUtils/PairwiseAlignmentTools/PairwiseAlignmentBuilder.js +1 -1
- package/lib/RcsbUtils/PairwiseAlignmentTools/PairwiseAlignmentBuilder.js.map +1 -1
- package/lib/RcsbUtils/TrackGenerators/BurialFraction.d.ts +1 -1
- package/lib/RcsbUtils/TrackGenerators/BurialFraction.js +1 -1
- package/lib/RcsbUtils/TrackGenerators/BurialFraction.js.map +1 -1
- package/lib/RcsbUtils/TrackGenerators/BuriedResidues.d.ts +1 -1
- package/lib/RcsbUtils/TrackGenerators/BuriedResidues.js +1 -1
- package/lib/RcsbUtils/TrackGenerators/BuriedResidues.js.map +1 -1
- package/lib/RcsbUtils/TrackGenerators/Logo.d.ts +1 -1
- package/lib/RcsbUtils/TrackGenerators/UnmodeledTrackBuilder.d.ts +1 -1
- package/lib/RcsbUtils/TrackGenerators/UnmodeledTrackBuilder.js +1 -1
- package/lib/RcsbUtils/TrackGenerators/UnmodeledTrackBuilder.js.map +1 -1
- package/lib/RcsbUtils/Translators/MultipleEntityInstanceTranslate.js +1 -1
- package/lib/RcsbUtils/Translators/MultipleEntityInstanceTranslate.js.map +1 -1
- package/lib/RcsbUtils/Translators/PolymerEntityInstanceTranslate.d.ts +1 -1
- package/lib/RcsbUtils/Translators/PolymerEntityInstanceTranslate.js +2 -2
- package/lib/RcsbUtils/Translators/PolymerEntityInstanceTranslate.js.map +1 -1
- package/lib/commonjs/RcsbAnnotationConfig/RcsbAnnotationConfig.d.ts +1 -1
- package/lib/commonjs/RcsbCollectTools/AlignmentCollector/AlignmentCollector.d.ts +1 -1
- package/lib/commonjs/RcsbCollectTools/AlignmentCollector/AlignmentCollectorInterface.d.ts +1 -1
- package/lib/commonjs/RcsbCollectTools/AnnotationCollector/AnnotationCollector.d.ts +1 -1
- package/lib/commonjs/RcsbCollectTools/AnnotationCollector/AnnotationCollectorInterface.d.ts +1 -1
- package/lib/commonjs/RcsbCollectTools/DataCollectors/AssemblyInterfacesCollector.d.ts +1 -1
- package/lib/commonjs/RcsbCollectTools/DataCollectors/EntryAssembliesCollector.d.ts +1 -1
- package/lib/commonjs/RcsbCollectTools/DataCollectors/GroupMemberCollector.d.ts +1 -1
- package/lib/commonjs/RcsbCollectTools/DataCollectors/GroupPropertyCollector.d.ts +1 -1
- package/lib/commonjs/RcsbCollectTools/DataCollectors/InterfaceInstanceCollector.d.ts +1 -1
- package/lib/commonjs/RcsbCollectTools/DataCollectors/MultipleEntityInstancesCollector.d.ts +1 -1
- package/lib/commonjs/RcsbCollectTools/DataCollectors/MultipleEntryPropertyCollector.d.ts +2 -2
- package/lib/commonjs/RcsbCollectTools/DataCollectors/MultiplePolymerEntityCollector.d.ts +1 -1
- package/lib/commonjs/RcsbCollectTools/DataCollectors/MultiplePolymerEntityCollector.js +1 -1
- package/lib/commonjs/RcsbCollectTools/DataCollectors/PolymerEntityChromosomeCollector.js +1 -1
- package/lib/commonjs/RcsbCollectTools/DataCollectors/PolymerEntityInstancesCollector.d.ts +2 -2
- package/lib/commonjs/RcsbCollectTools/FeatureTools/ExternalTrackBuilderInterface.d.ts +1 -1
- package/lib/commonjs/RcsbExport/FeatureType.d.ts +1 -1
- package/lib/commonjs/RcsbExport/FeatureType.js +1 -1
- package/lib/commonjs/RcsbFvExamples/ExternalDataProvider.js +1 -1
- package/lib/commonjs/RcsbFvExamples/GroupHistogram.js +1 -1
- package/lib/commonjs/RcsbFvExamples/InstanceSequenceFv.js +1 -1
- package/lib/commonjs/RcsbFvExamples/SequenceIdentityGroupFv.js +1 -1
- package/lib/commonjs/RcsbFvExamples/UniprotGroupFv.js +2 -2
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvChromosomeBuilder.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvEntityBuilder.js +2 -2
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvGroupAlignmentBuilder.d.ts +2 -2
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvGroupAlignmentBuilder.js +3 -3
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvGroupBuilder.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvProteinSequenceBuilder.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvProteinSequenceBuilder.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvUniprotBuilder.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder.d.ts +2 -2
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/AlignmentBlockFactory.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/AnnotationsBlockFactory.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/AnnotationBlockManager.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/AnnotationTrackManager.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/AnnotationTrackManager.js +2 -2
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/TrackManagerInterface.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/AlignmentTrackFactory.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/Helper/TrackUtils.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/Helper/TrackUtils.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/MsaAlignmentTrackFactory.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/MsaAlignmentTrackFactory.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/PlainAlignmentTrackFactory.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/PlainObservedAlignmentTrackFactory.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/PlainObservedAlignmentTrackFactory.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/PositionalScoreAlignmentTrackFactory.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/PositionalScoreAlignmentTrackFactory.js +2 -2
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/SequenceTrackFactory.js +2 -2
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/AlignmentTrackTitleFactory.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/AlignmentTrackTitleFactory.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/ExperimentalAlignmentTrackTitleFactory.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/ExperimentalAlignmentTrackTitleFactory.js +2 -2
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/ModelAlignmentTrackTitleFactory.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/SequenceTrackTitleFactory.js +2 -2
- package/lib/commonjs/RcsbFvWeb/RcsbFvGroup/GroupPfvTabs.d.ts +2 -2
- package/lib/commonjs/RcsbFvWeb/RcsbFvGroup/GroupPfvTabs.js +3 -3
- package/lib/commonjs/RcsbFvWeb/RcsbFvGroup/GroupTabs/GroupPfvApp.d.ts +3 -3
- package/lib/commonjs/RcsbFvWeb/RcsbFvGroup/GroupTabs/GroupPfvApp.js +2 -2
- package/lib/commonjs/RcsbFvWeb/RcsbFvGroup/RcsbFvGroupTabsBuilder.d.ts +2 -2
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvAbstractModule.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvChromosome.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvEntity.js +2 -2
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAlignment.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvInstance.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvInterface.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvInterface.js +2 -2
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvModuleInterface.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvProteinSequence.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprot.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotAlignment.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotEntity.js +2 -2
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotInstance.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvWorkers/RcsbFvAlignmentCollectorQueue.d.ts +1 -1
- package/lib/commonjs/RcsbGraphQL/RcsbClient.d.ts +2 -2
- package/lib/commonjs/RcsbGraphQL/RcsbCoreQueryInterface.d.ts +1 -1
- package/lib/commonjs/RcsbGraphQL/RcsbQueryAlignment.d.ts +2 -2
- package/lib/commonjs/RcsbGraphQL/RcsbQueryAnnotations.d.ts +2 -2
- package/lib/commonjs/RcsbGraphQL/RcsbQueryAssemblyInterfaces.d.ts +2 -2
- package/lib/commonjs/RcsbGraphQL/RcsbQueryEntryInstances.d.ts +2 -2
- package/lib/commonjs/RcsbGraphQL/RcsbQueryGroup.d.ts +2 -2
- package/lib/commonjs/RcsbGraphQL/RcsbQueryInterfaceInstances.d.ts +2 -2
- package/lib/commonjs/RcsbGraphQL/RcsbQueryMultipleEntityInstances.d.ts +2 -2
- package/lib/commonjs/RcsbGraphQL/RcsbQueryMultipleEntriesProperties.d.ts +2 -2
- package/lib/commonjs/RcsbGraphQL/RcsbQueryMultipleInstanceSequences.d.ts +2 -2
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupBuilder.d.ts +3 -3
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/GroupChartEvents.d.ts +1 -1
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/GroupChartEvents.js +1 -1
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/GroupChartTools.d.ts +2 -2
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/RcsbGroupChartComponent.d.ts +2 -2
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/RcsbStatsChartComponent.d.ts +3 -3
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupContent/RcsbGroupContentComponent.d.ts +2 -2
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupContent/RcsbGroupContentComponent.js +1 -1
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupDisplay.d.ts +3 -3
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/GroupMemberItem.d.ts +2 -2
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/GroupMemberItem.js +2 -2
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/GroupMembersGrid.d.ts +2 -2
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/GroupMembersGrid.js +4 -4
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/RcsbGroupMembersComponent.d.ts +3 -3
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/RcsbGroupMembersComponent.js +2 -2
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupSeacrhQuery/RcsbGroupSeacrhQueryComponent.d.ts +2 -2
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupSeacrhQuery/SearchQueryContextManager.d.ts +3 -3
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartTools/ResidueChartTools.js +1 -1
- package/lib/commonjs/RcsbQueries/QueryCheck.js +1 -1
- package/lib/commonjs/RcsbRequest/RcsbRequestClient.d.ts +2 -2
- package/lib/commonjs/RcsbRequest/RcsbRequestClient.js +2 -2
- package/lib/commonjs/RcsbRequest/RcsbRequestContextManager.d.ts +5 -5
- package/lib/commonjs/RcsbRequest/RcsbRequestContextManager.js +3 -3
- package/lib/commonjs/RcsbSeacrh/FacetStore/DepositionGroupFacetStore.d.ts +1 -1
- package/lib/commonjs/RcsbSeacrh/FacetStore/DepositionGroupFacetStore.js +2 -2
- package/lib/commonjs/RcsbSeacrh/FacetStore/EntityGranularitySearchFacetStore.d.ts +1 -1
- package/lib/commonjs/RcsbSeacrh/FacetStore/EntityGranularitySearchFacetStore.js +2 -2
- package/lib/commonjs/RcsbSeacrh/FacetStore/FacetMemberInterface.d.ts +1 -1
- package/lib/commonjs/RcsbSeacrh/FacetStore/FacetStoreInterface.d.ts +1 -1
- package/lib/commonjs/RcsbSeacrh/FacetStore/SequenceGroupFacetStore.d.ts +1 -1
- package/lib/commonjs/RcsbSeacrh/FacetStore/SequenceGroupFacetStore.js +2 -2
- package/lib/commonjs/RcsbSeacrh/FacetStore/SingleFacets.js +2 -2
- package/lib/commonjs/RcsbSeacrh/FacetStore/UniprotGroupFacetStore.d.ts +1 -1
- package/lib/commonjs/RcsbSeacrh/FacetStore/UniprotGroupFacetStore.js +2 -2
- package/lib/commonjs/RcsbSeacrh/FacetTools.d.ts +4 -4
- package/lib/commonjs/RcsbSeacrh/SearchQueryTools.d.ts +5 -5
- package/lib/commonjs/RcsbSeacrh/SearchQueryTools.js +3 -3
- package/lib/commonjs/RcsbSeacrh/SearchRequestProperty.d.ts +4 -4
- package/lib/commonjs/RcsbUtils/Groups/GroupGapLessTransformer.d.ts +1 -1
- package/lib/commonjs/RcsbUtils/Groups/GroupProvenanceToAggregationType.d.ts +2 -2
- package/lib/commonjs/RcsbUtils/Groups/GroupProvenanceToAggregationType.js +3 -2
- package/lib/commonjs/RcsbUtils/PairwiseAlignmentTools/AlignmentReference.d.ts +1 -1
- package/lib/commonjs/RcsbUtils/PairwiseAlignmentTools/PairwiseAlignmentBuilder.js +1 -1
- package/lib/commonjs/RcsbUtils/TrackGenerators/BurialFraction.d.ts +1 -1
- package/lib/commonjs/RcsbUtils/TrackGenerators/BurialFraction.js +1 -1
- package/lib/commonjs/RcsbUtils/TrackGenerators/BuriedResidues.d.ts +1 -1
- package/lib/commonjs/RcsbUtils/TrackGenerators/BuriedResidues.js +1 -1
- package/lib/commonjs/RcsbUtils/TrackGenerators/Logo.d.ts +1 -1
- package/lib/commonjs/RcsbUtils/TrackGenerators/UnmodeledTrackBuilder.d.ts +1 -1
- package/lib/commonjs/RcsbUtils/TrackGenerators/UnmodeledTrackBuilder.js +1 -1
- package/lib/commonjs/RcsbUtils/Translators/MultipleEntityInstanceTranslate.js +1 -1
- package/lib/commonjs/RcsbUtils/Translators/PolymerEntityInstanceTranslate.d.ts +1 -1
- package/lib/commonjs/RcsbUtils/Translators/PolymerEntityInstanceTranslate.js +2 -2
- package/package.json +3 -3
package/build/worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see worker.js.LICENSE.txt */
|
|
2
|
-
(()=>{var e={7:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}y(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&y(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,s,c;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=u(e))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function y(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,l=h(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},10:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeadersInstanceToPlainObject=t.uppercase=void 0,t.uppercase=e=>e.toUpperCase(),t.HeadersInstanceToPlainObject=e=>{const t={};return e.forEach(((e,n)=>{t[n]=e})),t}},65:(e,t,n)=>{"use strict";const{ObjectSetPrototypeOf:r}=n(475);e.exports=o;const i=n(307);function o(e){if(!(this instanceof o))return new o(e);i.call(this,e)}r(o.prototype,i.prototype),r(o,i),o.prototype._transform=function(e,t,n){n(null,e)}},141:(e,t,n)=>{"use strict";var r=n(861).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=s(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=s(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=s(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},170:(e,t,n)=>{"use strict";const r=globalThis.AbortController||n(568).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:s,ERR_OUT_OF_RANGE:a},AbortError:u}=n(760),{validateAbortSignal:c,validateInteger:l,validateObject:f}=n(974),d=n(475).Symbol("kWeak"),{finished:p}=n(627),h=n(515),{addAbortSignalNoValidate:y}=n(792),{isWritable:m,isNodeStream:g}=n(734),{ArrayPrototypePush:b,MathFloor:v,Number:E,NumberIsNaN:_,Promise:w,PromiseReject:T,PromisePrototypeThen:I,Symbol:S}=n(475),N=S("kEmpty"),A=S("kEof");function O(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal");let n=1;return null!=(null==t?void 0:t.concurrency)&&(n=v(t.concurrency)),l(n,"concurrency",1),async function*(){var i,o;const s=new r,a=this,c=[],l=s.signal,f={signal:l},d=()=>s.abort();let p,h;null!=t&&null!==(i=t.signal)&&void 0!==i&&i.aborted&&d(),null==t||null===(o=t.signal)||void 0===o||o.addEventListener("abort",d);let y=!1;function m(){y=!0}!async function(){try{for await(let t of a){var r;if(y)return;if(l.aborted)throw new u;try{t=e(t,f)}catch(e){t=T(e)}t!==N&&("function"==typeof(null===(r=t)||void 0===r?void 0:r.catch)&&t.catch(m),c.push(t),p&&(p(),p=null),!y&&c.length&&c.length>=n&&await new w((e=>{h=e})))}c.push(A)}catch(e){const t=T(e);I(t,void 0,m),c.push(t)}finally{var i;y=!0,p&&(p(),p=null),null==t||null===(i=t.signal)||void 0===i||i.removeEventListener("abort",d)}}();try{for(;;){for(;c.length>0;){const e=await c[0];if(e===A)return;if(l.aborted)throw new u;e!==N&&(yield e),c.shift(),h&&(h(),h=null)}await new w((e=>{p=e}))}}finally{s.abort(),y=!0,h&&(h(),h=null)}}.call(this)}async function R(e,t=void 0){for await(const n of D.call(this,e,t))return!0;return!1}function D(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return O.call(this,(async function(t,n){return await e(t,n)?t:N}),t)}class x extends s{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function L(e){if(e=E(e),_(e))return 0;if(e<0)throw new a("number",">= 0",e);return e}e.exports.streamReturningOperators={asIndexedPairs:function(e=void 0){return null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&c(e.signal,"options.signal"),async function*(){let t=0;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new u({cause:e.signal.reason});yield[t++,r]}}.call(this)},drop:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal"),e=L(e),async function*(){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new u;for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new u;e--<=0&&(yield n)}}.call(this)},filter:D,flatMap:function(e,t){const n=O.call(this,e,t);return async function*(){for await(const e of n)yield*e}.call(this)},map:O,take:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal"),e=L(e),async function*(){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new u;for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new u;if(!(e-- >0))return;yield n}}.call(this)},compose:function(e,t){if(null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&c(t.signal,"options.signal"),g(e)&&!m(e))throw new i("stream",e,"must be writable");const n=h(this,e);return null!=t&&t.signal&&y(t.signal,n),n}},e.exports.promiseReturningOperators={every:async function(e,t=void 0){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return!await R.call(this,(async(...t)=>!await e(...t)),t)},forEach:async function(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);for await(const n of O.call(this,(async function(t,n){return await e(t,n),N}),t));},reduce:async function(e,t,n){var i;if("function"!=typeof e)throw new o("reducer",["Function","AsyncFunction"],e);null!=n&&f(n,"options"),null!=(null==n?void 0:n.signal)&&c(n.signal,"options.signal");let s=arguments.length>1;if(null!=n&&null!==(i=n.signal)&&void 0!==i&&i.aborted){const e=new u(void 0,{cause:n.signal.reason});throw this.once("error",(()=>{})),await p(this.destroy(e)),e}const a=new r,l=a.signal;if(null!=n&&n.signal){const e={once:!0,[d]:this};n.signal.addEventListener("abort",(()=>a.abort()),e)}let h=!1;try{for await(const r of this){var y;if(h=!0,null!=n&&null!==(y=n.signal)&&void 0!==y&&y.aborted)throw new u;s?t=await e(t,r,{signal:l}):(t=r,s=!0)}if(!h&&!s)throw new x}finally{a.abort()}return t},toArray:async function(e){null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&c(e.signal,"options.signal");const t=[];for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new u(void 0,{cause:e.signal.reason});b(t,r)}return t},some:R,find:async function(e,t){for await(const n of D.call(this,e,t))return n}}},207:(e,t,n)=>{"use strict";const r=n(606),{PromisePrototypeThen:i,SymbolAsyncIterator:o,SymbolIterator:s}=n(475),{Buffer:a}=n(287),{ERR_INVALID_ARG_TYPE:u,ERR_STREAM_NULL_VALUES:c}=n(760).codes;e.exports=function(e,t,n){let l,f;if("string"==typeof t||t instanceof a)return new e({objectMode:!0,...n,read(){this.push(t),this.push(null)}});if(t&&t[o])f=!0,l=t[o]();else{if(!t||!t[s])throw new u("iterable",["Iterable"],t);f=!1,l=t[s]()}const d=new e({objectMode:!0,highWaterMark:1,...n});let p=!1;return d._read=function(){p||(p=!0,async function(){for(;;){try{const{value:e,done:t}=f?await l.next():l.next();if(t)d.push(null);else{const t=e&&"function"==typeof e.then?await e:e;if(null===t)throw p=!1,new c;if(d.push(t))continue;p=!1}}catch(e){d.destroy(e)}break}}())},d._destroy=function(e,t){i(async function(e){const t=null!=e,n="function"==typeof l.throw;if(t&&n){const{value:t,done:n}=await l.throw(e);if(await t,n)return}if("function"==typeof l.return){const{value:e}=await l.return();await e}}(e),(()=>r.nextTick(t,e)),(n=>r.nextTick(t,n||e)))},d}},211:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveRequestDocument=void 0;const r=n(942),i=e=>{let t;const n=e.definitions.filter((e=>"OperationDefinition"===e.kind));return 1===n.length&&(t=n[0]?.name?.value),t};t.resolveRequestDocument=e=>{if("string"==typeof e){let t;try{const n=(0,r.parse)(e);t=i(n)}catch(e){}return{query:e,operationName:t}}const t=i(e);return{query:(0,r.print)(e),operationName:t}}},220:(e,t,n)=>{"use strict";const{StringPrototypeSlice:r,SymbolIterator:i,TypedArrayPrototypeSet:o,Uint8Array:s}=n(475),{Buffer:a}=n(287),{inspect:u}=n(351);e.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){const t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){const t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0===this.length)return;const e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";let t=this.head,n=""+t.data;for(;null!==(t=t.next);)n+=e+t.data;return n}concat(e){if(0===this.length)return a.alloc(0);const t=a.allocUnsafe(e>>>0);let n=this.head,r=0;for(;n;)o(t,n.data,r),r+=n.data.length,n=n.next;return t}consume(e,t){const n=this.head.data;if(e<n.length){const t=n.slice(0,e);return this.head.data=n.slice(e),t}return e===n.length?this.shift():t?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[i](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let t="",n=this.head,i=0;do{const o=n.data;if(!(e>o.length)){e===o.length?(t+=o,++i,n.next?this.head=n.next:this.head=this.tail=null):(t+=r(o,0,e),this.head=n,n.data=r(o,e));break}t+=o,e-=o.length,++i}while(null!==(n=n.next));return this.length-=i,t}_getBuffer(e){const t=a.allocUnsafe(e),n=e;let r=this.head,i=0;do{const a=r.data;if(!(e>a.length)){e===a.length?(o(t,a,n-e),++i,r.next?this.head=r.next:this.head=this.tail=null):(o(t,new s(a.buffer,a.byteOffset,e),n-e),this.head=r,r.data=a.slice(e));break}o(t,a,n-e),e-=a.length,++i}while(null!==(r=r.next));return this.length-=i,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return u(this,{...t,depth:0,customInspect:!1})}}},225:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLWebSocketClient=void 0;const r=n(211),i=n(946),o="ping",s="pong",a="complete";class u{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(e,t,n){this._type=e,this._payload=t,this._id=n}get text(){const e={type:this.type};return null!=this.id&&null!=this.id&&(e.id=this.id),null!=this.payload&&null!=this.payload&&(e.payload=this.payload),JSON.stringify(e)}static parse(e,t){const{type:n,payload:r,id:i}=JSON.parse(e);return new u(n,t(r),i)}}class c{constructor(e,{onInit:t,onAcknowledged:n,onPing:r,onPong:c}){this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=e,e.addEventListener("open",(async n=>{var r;this.socketState.acknowledged=!1,this.socketState.subscriptions={},e.send((r=t?await t():null,new u("connection_init",r)).text)})),e.addEventListener("close",(e=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={}})),e.addEventListener("error",(e=>{console.error(e)})),e.addEventListener("message",(t=>{try{const f=function(e,t=e=>e){return u.parse(e,t)}(t.data);switch(f.type){case"connection_ack":return void(this.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(this.socketState.acknowledged=!0,n&&n(f.payload)));case o:return void(r?r(f.payload).then((t=>e.send(l(t).text))):e.send(l(null).text));case s:return void(c&&c(f.payload))}if(!this.socketState.acknowledged)return;if(void 0===f.id||null===f.id||!this.socketState.subscriptions[f.id])return;const{query:d,variables:p,subscriber:h}=this.socketState.subscriptions[f.id];switch(f.type){case"next":return!f.payload.errors&&f.payload.data&&h.next&&h.next(f.payload.data),void(f.payload.errors&&h.error&&h.error(new i.ClientError({...f.payload,status:200},{query:d,variables:p})));case"error":return void(h.error&&h.error(new i.ClientError({errors:f.payload,status:200},{query:d,variables:p})));case a:return h.complete&&h.complete(),void delete this.socketState.subscriptions[f.id]}}catch(t){console.error(t),e.close(1006)}e.close(4400,"Unknown graphql-ws message.")}))}makeSubscribe(e,t,n,r){const i=(this.socketState.lastRequestId++).toString();var o,s;return this.socketState.subscriptions[i]={query:e,variables:r,subscriber:n},this.socket.send((o=i,s={query:e,operationName:t,variables:r},new u("subscribe",s,o)).text),()=>{this.socket.send(function(e){return new u(a,void 0,e)}(i).text),delete this.socketState.subscriptions[i]}}rawRequest(e,t){return new Promise(((n,r)=>{let i;this.rawSubscribe(e,{next:(e,t)=>i={data:e,extensions:t},error:r,complete:()=>n(i)},t)}))}request(e,t){return new Promise(((n,r)=>{let i;this.subscribe(e,{next:e=>i=e,error:r,complete:()=>n(i)},t)}))}subscribe(e,t,n){const{query:i,operationName:o}=(0,r.resolveRequestDocument)(e);return this.makeSubscribe(i,o,t,n)}rawSubscribe(e,t,n){return this.makeSubscribe(e,void 0,t,n)}ping(e){this.socket.send(function(e){return new u(o,e,void 0)}(e).text)}close(){this.socket.close(1e3)}}function l(e){return new u(s,e,void 0)}c.PROTOCOL="graphql-transport-ws",t.GraphQLWebSocketClient=c},236:(e,t,n)=>{"use strict";const{ArrayIsArray:r,ObjectSetPrototypeOf:i}=n(475),{EventEmitter:o}=n(7);function s(e){o.call(this,e)}function a(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?r(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}i(s.prototype,o.prototype),i(s,o),s.prototype.pipe=function(e,t){const n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",u),n.on("close",c));let s=!1;function u(){s||(s=!0,e.end())}function c(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){f(),0===o.listenerCount(this,"error")&&this.emit("error",e)}function f(){n.removeListener("data",r),e.removeListener("drain",i),n.removeListener("end",u),n.removeListener("close",c),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",f),n.removeListener("close",f),e.removeListener("close",f)}return a(n,"error",l),a(e,"error",l),n.on("end",f),n.on("close",f),e.on("close",f),e.emit("pipe",n),e},e.exports={Stream:s,prependListener:a}},239:e=>{"use strict";e.exports=JSON.parse('{"uri":"https://search.rcsb.org/rcsbsearch/v2/query","schema":"https://search.rcsb.org/rcsbsearch/v2/metadata/schema"}')},251:(e,t)=>{t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,c=u>>1,l=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+e[t+f],f+=d,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+f],f+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),o-=c}return(p?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*u-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[n+p]=255&a,p+=h,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[n+p]=255&s,p+=h,s/=256,c-=8);e[n+p-h]|=128*y}},261:(e,t,n)=>{"use strict";const r=n(606),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:o},AbortError:s}=n(760),{Symbol:a}=n(475),{kDestroyed:u,isDestroyed:c,isFinished:l,isServerRequest:f}=n(734),d=a("kDestroy"),p=a("kConstruct");function h(e,t,n){e&&(e.stack,t&&!t.errored&&(t.errored=e),n&&!n.errored&&(n.errored=e))}function y(e,t,n){let i=!1;function o(t){if(i)return;i=!0;const o=e._readableState,s=e._writableState;h(t,s,o),s&&(s.closed=!0),o&&(o.closed=!0),"function"==typeof n&&n(t),t?r.nextTick(m,e,t):r.nextTick(g,e)}try{e._destroy(t||null,o)}catch(t){o(t)}}function m(e,t){b(e,t),g(e)}function g(e){const t=e._readableState,n=e._writableState;n&&(n.closeEmitted=!0),t&&(t.closeEmitted=!0),(null!=n&&n.emitClose||null!=t&&t.emitClose)&&e.emit("close")}function b(e,t){const n=e._readableState,r=e._writableState;null!=r&&r.errorEmitted||null!=n&&n.errorEmitted||(r&&(r.errorEmitted=!0),n&&(n.errorEmitted=!0),e.emit("error",t))}function v(e,t,n){const i=e._readableState,o=e._writableState;if(null!=o&&o.destroyed||null!=i&&i.destroyed)return this;null!=i&&i.autoDestroy||null!=o&&o.autoDestroy?e.destroy(t):t&&(t.stack,o&&!o.errored&&(o.errored=t),i&&!i.errored&&(i.errored=t),n?r.nextTick(b,e,t):b(e,t))}function E(e){let t=!1;function n(n){if(t)return void v(e,null!=n?n:new o);t=!0;const i=e._readableState,s=e._writableState,a=s||i;i&&(i.constructed=!0),s&&(s.constructed=!0),a.destroyed?e.emit(d,n):n?v(e,n,!0):r.nextTick(_,e)}try{e._construct((e=>{r.nextTick(n,e)}))}catch(e){r.nextTick(n,e)}}function _(e){e.emit(p)}function w(e){return(null==e?void 0:e.setHeader)&&"function"==typeof e.abort}function T(e){e.emit("close")}function I(e,t){e.emit("error",t),r.nextTick(T,e)}e.exports={construct:function(e,t){if("function"!=typeof e._construct)return;const n=e._readableState,i=e._writableState;n&&(n.constructed=!1),i&&(i.constructed=!1),e.once(p,t),e.listenerCount(p)>1||r.nextTick(E,e)},destroyer:function(e,t){e&&!c(e)&&(t||l(e)||(t=new s),f(e)?(e.socket=null,e.destroy(t)):w(e)?e.abort():w(e.req)?e.req.abort():"function"==typeof e.destroy?e.destroy(t):"function"==typeof e.close?e.close():t?r.nextTick(I,e,t):r.nextTick(T,e),e.destroyed||(e[u]=!0))},destroy:function(e,t){const n=this._readableState,r=this._writableState,o=r||n;return null!=r&&r.destroyed||null!=n&&n.destroyed?("function"==typeof t&&t(),this):(h(e,r,n),r&&(r.destroyed=!0),n&&(n.destroyed=!0),o.constructed?y(this,e,t):this.once(d,(function(n){y(this,i(n,e),t)})),this)},undestroy:function(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=!1===e.readable,e.endEmitted=!1===e.readable),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=!1===t.writable,t.ending=!1===t.writable,t.finished=!1===t.writable)},errorOrDestroy:v}},287:(e,t,n)=>{"use strict";const r=n(526),i=n(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50;const s=2147483647;function a(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|y(e,t);let r=a(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(H(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(H(e,ArrayBuffer)||e&&H(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(H(e,SharedArrayBuffer)||e&&H(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);const i=function(e){if(u.isBuffer(e)){const t=0|h(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||z(e.length)?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return l(e),a(e<0?0:0|h(e))}function d(e){const t=e.length<0?0:0|h(e.length),n=a(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,u.prototype),r}function h(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function y(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||H(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(i)return r?-1:Q(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return D(this,t,n);case"utf8":case"utf-8":return N(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),z(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){let o,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let r=-1;for(o=n;o<a;o++)if(c(e,o)===c(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===u)return r*s}else-1!==r&&(o-=o-r),r=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){let n=!0;for(let r=0;r<u;r++)if(c(e,o+r)!==c(t,r)){n=!1;break}if(n)return o}return-1}function E(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let s;for(r>o/2&&(r=o/2),s=0;s<r;++s){const r=parseInt(t.substr(2*s,2),16);if(z(r))return s;e[n+s]=r}return s}function _(e,t,n,r){return J(Q(t,e.length-n),e,n,r)}function w(e,t,n,r){return J(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function T(e,t,n,r){return J(Y(t),e,n,r)}function I(e,t,n,r){return J(function(e,t){let n,r,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function N(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=n){let n,r,a,u;switch(s){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(u=(31&t)<<6|63&n,u>127&&(o=u));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(u=(15&t)<<12|(63&n)<<6|63&r,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:n=e[i+1],r=e[i+2],a=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(u=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(e){const t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=A));return n}(r)}t.kMaxLength=s,u.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,n){return function(e,t,n){return l(e),e<=0?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)}(e,t,n)},u.allocUnsafe=function(e){return f(e)},u.allocUnsafeSlow=function(e){return f(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(H(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),H(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=u.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(H(t,Uint8Array))i+t.length>r.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},u.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},u.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},u.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?N(this,0,e):m.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(H(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0);const a=Math.min(o,s),c=this.slice(r,i),l=e.slice(t,n);for(let e=0;e<a;++e)if(c[e]!==l[e]){o=c[e],s=l[e];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":case"latin1":case"binary":return w(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const A=4096;function O(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function R(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function D(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=K[e[r]];return i}function x(e,t,n){const r=e.slice(t,n);let i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function L(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function C(e,t,n,r,i){V(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function B(e,t,n,r,i){V(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function $(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,o){return t=+t,n>>>=0,o||$(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function U(e,t,n,r,o){return t=+t,n>>>=0,o||$(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=X((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),u.prototype.readBigUInt64BE=X((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||L(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||L(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=X((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),u.prototype.readBigInt64BE=X((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||L(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||k(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||k(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=X((function(e,t=0){return C(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=X((function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);k(this,e,t,n,r-1,-r)}let i=0,o=1,s=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);k(this,e,t,n,r-1,-r)}let i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=X((function(e,t=0){return C(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=X((function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=u.isBuffer(e)?e:u.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%s]}return this};const M={};function j(e,t,n){M[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function P(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function V(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new M.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){q(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||G(t,e.length-(n+1))}(r,i,o)}function q(e,t){if("number"!=typeof e)throw new M.ERR_INVALID_ARG_TYPE(t,"number",e)}function G(e,t,n){if(Math.floor(e)!==e)throw q(e,n),new M.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new M.ERR_BUFFER_OUT_OF_BOUNDS;throw new M.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}j("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),j("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),j("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=P(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=P(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const W=/[^+/0-9A-Za-z-_]/g;function Q(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Y(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function J(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function H(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function z(e){return e!=e}const K=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function X(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},307:(e,t,n)=>{"use strict";const{ObjectSetPrototypeOf:r,Symbol:i}=n(475);e.exports=c;const{ERR_METHOD_NOT_IMPLEMENTED:o}=n(760).codes,s=n(749),{getHighWaterMark:a}=n(646);r(c.prototype,s.prototype),r(c,s);const u=i("kCallback");function c(e){if(!(this instanceof c))return new c(e);const t=e?a(this,e,"readableHighWaterMark",!0):null;0===t&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),s.call(this,e),this._readableState.sync=!1,this[u]=null,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function l(e){"function"!=typeof this._flush||this.destroyed?(this.push(null),e&&e()):this._flush(((t,n)=>{t?e?e(t):this.destroy(t):(null!=n&&this.push(n),this.push(null),e&&e())}))}function f(){this._final!==l&&l.call(this)}c.prototype._final=l,c.prototype._transform=function(e,t,n){throw new o("_transform()")},c.prototype._write=function(e,t,n){const r=this._readableState,i=this._writableState,o=r.length;this._transform(e,t,((e,t)=>{e?n(e):(null!=t&&this.push(t),i.ended||o===r.length||r.length<r.highWaterMark?n():this[u]=n)}))},c.prototype._read=function(){if(this[u]){const e=this[u];this[u]=null,e()}}},325:e=>{"use strict";e.exports=JSON.parse('{"schema":"https://data.rcsb.org/graphql","documents":"test/Queries/DataApi/*.graphql","interfaceOutputFile":"src/RcsbGraphQL/Types/Yosemite/GqlTypes.ts","pluginFile":[{"pluginFile":"src/RcsbGraphQL/Plugins/fullpath_schema_keys.js","outputFile":"src/RcsbGraphQL/Types/Yosemite/CorePaths.ts"},{"pluginFile":"src/RcsbGraphQL/Plugins/enumerate_schema_keys.js","outputFile":"src/RcsbGraphQL/Types/Yosemite/CoreConstants.ts"}]}')},348:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStorageTools=void 0;const i=n(802),o=n(474);class s{static getItem(e){if(!s.storage)return null;const t=s.collect(e);return t?Date.now()-t.timestamp>s.EXPIRATION_TIME?null:t.data:null}static setItem(e,t){if(s.storage)try{s.store(e,t)}catch(n){console.warn("Local storage failed: Cleaning and trying again.");try{s.storage.clear(),s.store(e,t)}catch(e){console.error("Local storage second failed: No more attempts.")}}}static store(e,t){var n;const r=s.objToKey(e),i=(0,o.compress)(JSON.stringify({data:t,timestamp:Date.now()}),{inputEncoding:"String",outputEncoding:"StorageBinaryString"});null===(n=s.storage)||void 0===n||n.setItem(r,i)}static collect(e){var t;const n=s.objToKey(e),r=null===(t=s.storage)||void 0===t?void 0:t.getItem(n);return r?JSON.parse((0,o.decompress)(r,{inputEncoding:"StorageBinaryString",outputEncoding:"String"})):null}static objToKey(e){if(!e)throw new Error("Object is undefined");return(0,i.sha1)(e)}}t.LocalStorageTools=s,s.storage=null!==(r=globalThis.localStorage)&&void 0!==r?r:null,s.EXPIRATION_TIME=36e5},351:(e,t,n)=>{"use strict";const r=n(287),i=Object.getPrototypeOf((async function(){})).constructor,o=globalThis.Blob||r.Blob,s=void 0!==o?function(e){return e instanceof o}:function(e){return!1};class a extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t="";for(let n=0;n<e.length;n++)t+=` ${e[n].stack}\n`;super(t),this.name="AggregateError",this.errors=e}}e.exports={AggregateError:a,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...n){t||(t=!0,e.apply(this,n))}},createDeferredPromise:function(){let e,t;return{promise:new Promise(((n,r)=>{e=n,t=r})),resolve:e,reject:t}},promisify:e=>new Promise(((t,n)=>{e(((e,...r)=>e?n(e):t(...r)))})),debuglog:()=>function(){},format:(e,...t)=>e.replace(/%([sdifj])/g,(function(...[e,n]){const r=t.shift();return"f"===n?r.toFixed(6):"j"===n?JSON.stringify(r):"s"===n&&"object"==typeof r?`${r.constructor!==Object?r.constructor.name:""} {}`.trim():r.toString()})),inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":return isNaN(e)?"NaN":Object.is(e,-0)?String(e):e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}},types:{isAsyncFunction:e=>e instanceof i,isArrayBufferView:e=>ArrayBuffer.isView(e)},isBlob:s},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},378:(e,t,n)=>{"use strict";function r(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;class i{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request(e,"query QueryAnnotations(\n $queryId: String!,\n $reference: SequenceReference!,\n $sources:[AnnotationReference!]!,\n $range:[Int!],\n $filters: [AnnotationFilterInput!]\n){\n annotations(\n queryId:$queryId\n reference:$reference\n sources:$sources\n range:$range\n filters:$filters\n ){\n source\n target_id\n target_identifiers{\n target_id\n entry_id\n assembly_id\n entity_id\n asym_id\n interface_id\n interface_partner_index\n }\n features {\n type\n provenance_source\n description\n feature_id\n name\n value\n feature_positions {\n beg_seq_id\n end_seq_id\n beg_ori_id\n end_ori_id\n range_id\n open_begin\n open_end\n value\n values\n }\n }\n }\n}")).annotations}catch(e){throw console.error(e),e}}))}}class o{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request(e,"query QueryGroupAnnotationsSummary(\n $group: GroupReference!,\n $groupId: String!,\n $sources: [AnnotationReference!]!,\n $filters: [AnnotationFilterInput!]\n){\n group_annotations_summary(\n group:$group\n groupId:$groupId\n sources:$sources\n filters:$filters\n ){\n source\n target_id\n features {\n type\n provenance_source\n description\n feature_id\n name\n value\n feature_positions {\n beg_seq_id\n end_seq_id\n beg_ori_id\n end_ori_id\n range_id\n open_begin\n open_end\n value\n values\n }\n }\n }\n}")).group_annotations_summary}catch(e){throw console.error(e),e}}))}}class s{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request(e,"query QueryGroupAnnotations(\n $group: GroupReference!,\n $groupId: String!,\n $sources: [AnnotationReference!]!,\n $filters: [AnnotationFilterInput!]\n){\n group_annotations(\n group:$group\n groupId:$groupId\n sources:$sources\n filters:$filters\n ){\n source\n target_id\n features {\n type\n provenance_source\n description\n feature_id\n name\n value\n feature_positions {\n beg_seq_id\n end_seq_id\n beg_ori_id\n end_ori_id\n range_id\n open_begin\n open_end\n value\n values\n }\n }\n }\n}")).group_annotations}catch(e){throw console.error(e),e}}))}}class a{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request({queryId:e.queryId,from:e.from,to:e.to,range:e.range},"query QueryAlignment($queryId: String!, $from: SequenceReference!, $to:SequenceReference!, $range:[Int!]){\n alignments(\n queryId:$queryId\n from:$from\n to:$to\n range:$range\n ){\n query_sequence\n target_alignments {\n target_id\n orientation\n target_sequence\n coverage {\n query_coverage\n query_length\n target_coverage\n target_length\n }\n aligned_regions {\n query_begin\n query_end\n target_begin\n target_end\n exon_shift\n }\n }\n\n }\n}")).alignments}catch(e){throw console.error(e),e}}))}}class u{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request({group:e.group,groupId:e.groupId,filter:e.filter,first:e.page.first,after:e.page.after},e.excludeLogo?"query QueryGroupAlignmentNoLogo(\n $group: GroupReference!,\n $groupId: String!,\n $filter: [String!],\n $first: Int!,\n $after: Int!){\n group_alignments(\n group: $group\n groupId: $groupId\n filter: $filter\n ){\n alignment_length\n query_sequence\n target_alignments(first: $first, offset: $after) {\n target_id\n orientation\n target_sequence\n coverage {\n query_coverage\n query_length\n target_coverage\n target_length\n }\n aligned_regions {\n query_begin\n query_end\n target_begin\n target_end\n exon_shift\n }\n }\n }\n}":"query QueryGroupAlignment(\n $group: GroupReference!,\n $groupId: String!,\n $filter: [String!],\n $first: Int,\n $after: Int\n){\n group_alignments(\n group: $group\n groupId: $groupId\n filter: $filter\n ){\n alignment_length\n alignment_logo {\n symbol\n value\n }\n query_sequence\n target_alignments(first: $first, offset: $after) {\n target_id\n orientation\n target_sequence\n coverage {\n query_coverage\n query_length\n target_coverage\n target_length\n }\n aligned_regions {\n query_begin\n query_end\n target_begin\n target_end\n exon_shift\n }\n }\n }\n}")).group_alignments}catch(e){throw console.error(e),e}}))}}class c{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request({entry_id:e.entry_id},"query QueryEntryInstance($entry_id: String!){\n entry(\n entry_id:$entry_id\n ){\n polymer_entities {\n polymer_entity_instances{\n rcsb_id\n polymer_entity{\n rcsb_polymer_entity{\n pdbx_description\n rcsb_polymer_name_combined{\n names\n }\n formula_weight\n }\n entity_poly{\n rcsb_entity_polymer_type\n rcsb_sample_sequence_length\n }\n rcsb_entity_source_organism {\n ncbi_scientific_name\n }\n entry {\n rcsb_entry_info{\n experimental_method\n resolution_combined\n molecular_weight\n structure_determination_methodology\n }\n }\n }\n rcsb_polymer_entity_instance_container_identifiers{\n asym_id\n auth_asym_id\n entry_id\n entity_id\n auth_to_entity_poly_seq_mapping\n }\n }\n }\n assemblies {\n rcsb_assembly_container_identifiers {\n assembly_id\n }\n pdbx_struct_assembly_gen{\n asym_id_list\n }\n\n }\n }\n}")).entry}catch(e){throw console.error(e),e}}))}}class l{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request({entity_ids:e.entity_ids},"query QueryMultipleEntityInstances($entity_ids: [String!]!){\n polymer_entities(\n entity_ids:$entity_ids\n ){\n polymer_entity_instances{\n rcsb_id\n polymer_entity{\n rcsb_polymer_entity{\n pdbx_description\n rcsb_polymer_name_combined{\n names\n }\n formula_weight\n }\n entity_poly{\n rcsb_entity_polymer_type\n rcsb_sample_sequence_length\n }\n rcsb_entity_source_organism {\n ncbi_scientific_name\n }\n entry {\n rcsb_entry_info{\n experimental_method\n resolution_combined\n structure_determination_methodology\n }\n }\n }\n rcsb_polymer_entity_instance_container_identifiers{\n asym_id\n auth_asym_id\n entry_id\n entity_id\n auth_to_entity_poly_seq_mapping\n }\n }\n }\n}")).polymer_entities}catch(e){throw console.error(e),e}}))}}class f{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request({group_id:e.group_id},"query QueryGroup($group_id: String!){\n polymer_entity_group(\n group_id:$group_id\n ){\n rcsb_id\n rcsb_group_info{\n group_name\n group_description\n group_members_granularity\n }\n rcsb_group_container_identifiers{\n group_member_ids\n }\n }\n}")).group}catch(e){throw console.error(e),e}}))}}class d{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request({entry_ids:e.entry_ids},"query multiple_entries_properties($entry_ids: [String!]!){\n entries(entry_ids:$entry_ids){\n rcsb_id\n polymer_entities {\n rcsb_id\n rcsb_entity_source_organism {\n ncbi_scientific_name\n }\n rcsb_polymer_entity_container_identifiers {\n entity_id\n rcsb_id\n }\n polymer_entity_instances {\n rcsb_polymer_entity_instance_container_identifiers {\n asym_id\n }\n rcsb_id\n }\n entity_poly {\n rcsb_prd_id\n }\n }\n nonpolymer_entities {\n rcsb_id\n rcsb_nonpolymer_entity_container_identifiers {\n entity_id\n rcsb_id\n }\n nonpolymer_entity_instances {\n rcsb_nonpolymer_entity_instance_container_identifiers {\n asym_id\n }\n rcsb_id\n }\n }\n rcsb_entry_info{\n experimental_method\n resolution_combined\n molecular_weight\n structure_determination_methodology\n }\n struct {\n title\n }\n assemblies {\n rcsb_id\n pdbx_struct_assembly_gen {\n oper_expression\n asym_id_list\n }\n }\n }\n}")).entries}catch(e){throw console.error(e),e}}))}}class p{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request(e,"query QueryInterfaceInstance($interface_ids: [String!]!){\n interfaces(\n interface_ids:$interface_ids\n ){\n rcsb_interface_container_identifiers{\n rcsb_id\n interface_id\n assembly_id\n entry_id\n }\n rcsb_interface_partner{\n interface_partner_identifier{\n asym_id\n }\n }\n rcsb_interface_operator\n }\n}")).interfaces}catch(e){throw console.error(e),e}}))}}class h{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request(e,"query QueryAssemblyInterfaces($assembly_ids: [String!]!){\n assemblies(\n assembly_ids: $assembly_ids\n ){\n rcsb_id\n interfaces{\n rcsb_id\n }\n }\n}\n")).assemblies}catch(e){throw console.error(e),e}}))}}var y=n(692),m=n(822);const g={borrego:new y.GraphQLRequest("1d-coordinates"),yosemite:new y.GraphQLRequest("data-api"),arches:new m.SearchRequest};class b{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request({instance_ids:e.instance_ids},"\nquery multiple_instance_sequences($instance_ids: [String!]!){\n polymer_entity_instances(instance_ids:$instance_ids){\n rcsb_id\n polymer_entity{\n entity_poly{\n pdbx_seq_one_letter_code_can\n }\n }\n }\n}")).polymer_entity_instances}catch(e){throw console.error(e),new Error(e)}}))}}const v=new class{constructor(e){this.rcsbQueryAnnotations=new i(e.borrego),this.rcsbQueryGroupAnnotationsSummary=new o(e.borrego),this.rcsbQueryGroupAnnotations=new s(e.borrego),this.rcsbQueryAlignment=new a(e.borrego),this.rcsbQueryGroupAlignment=new u(e.borrego),this.rcsbQueryEntityInstances=new c(e.yosemite),this.rcsbQueryMutipleEntityInstances=new l(e.yosemite),this.rcsbQueryEntryProperties=new d(e.yosemite),this.rcsbQueryInterfaceInstances=new p(e.yosemite),this.rcsbQueryAssemblyInterfaces=new h(e.yosemite),this.rcsbQueryGroup=new f(e.yosemite),this.rcsbQueryMultipleInstanceSequences=new b(e.yosemite)}requestRcsbPdbAnnotations(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryAnnotations.request(e)}))}requestRcsbPdbGroupAnnotationsSummary(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryGroupAnnotationsSummary.request(e)}))}requestRcsbPdbGroupAnnotations(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryGroupAnnotations.request(e)}))}requestAlignment(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryAlignment.request(e)}))}requestGroupAlignment(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryGroupAlignment.request(e)}))}requestEntityInstances(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryEntityInstances.request(e)}))}requestMultipleEntityInstances(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryMutipleEntityInstances.request(e)}))}requestGroupInfo(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryGroup.request(e)}))}requestMultipleEntriesProperties(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryEntryProperties.request(e)}))}requestInterfaceInstances(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryInterfaceInstances.request(e)}))}requestAssemblyInterfaces(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryAssemblyInterfaces.request(e)}))}requestMultipleInstanceSequences(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryMultipleInstanceSequences.request(e)}))}}({borrego:()=>g.borrego,yosemite:()=>g.yosemite});self.onmessage=function(e){const t=e.data;v.requestAlignment(t).then((e=>{postMessage(e)}))}},445:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawRequestExtendedArgs=t.parseRequestExtendedArgs=t.parseBatchRequestArgs=t.parseRawRequestArgs=t.parseRequestArgs=void 0,t.parseRequestArgs=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0},t.parseRawRequestArgs=(e,t,n)=>e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0},t.parseBatchRequestArgs=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},t.parseRequestExtendedArgs=(e,t,...n)=>{const[r,i]=n;return e.document?e:{url:e,document:t,variables:r,requestHeaders:i,signal:void 0}},t.parseRawRequestExtendedArgs=(e,t,...n)=>{const[r,i]=n;return e.query?e:{url:e,query:t,variables:r,requestHeaders:i,signal:void 0}}},474:(e,t,n)=>{var r,i;e=n.nmd(e),function(t){t.runningInNodeJS=function(){return"object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node},t.runningInMainNodeJSModule=function(){return t.runningInNodeJS()&&n.c[n.s]===e},t.commonJSAvailable=function(){return"object"==typeof e.exports},t.runningInWebWorker=function(){return"undefined"==typeof window&&"object"==typeof self&&"function"==typeof self.addEventListener&&"function"==typeof self.close},t.runningInNodeChildProcess=function(){return t.runningInNodeJS()&&"function"==typeof process.send},t.runningInNullOrigin=function(){return"object"==typeof window&&"object"==typeof window.location&&"object"==typeof document&&"http:"!==document.location.protocol&&"https:"!==document.location.protocol},t.webWorkersAvailable=function(){return!("function"!=typeof Worker||t.runningInNullOrigin()||t.runningInNodeJS()||navigator&&navigator.userAgent&&navigator.userAgent.indexOf("Android 4.3")>=0)},t.log=function(e,t){void 0===t&&(t=!1),"object"==typeof console&&(console.log(e),t&&"object"==typeof document&&(document.body.innerHTML+=e+"<br/>"))},t.createErrorMessage=function(e,n){if(void 0===n&&(n="Unhandled exception"),null==e)return n;if(n+=": ","object"==typeof e.content){if(t.runningInNodeJS())return n+e.content.stack;var r=JSON.stringify(e.content);return"{}"!==r?n+r:n+e.content}return"string"==typeof e.content?n+e.content:n+e},t.printExceptionAndStackTraceToConsole=function(e,n){void 0===n&&(n="Unhandled exception"),t.log(t.createErrorMessage(e,n))},t.getGlobalObject=function(){return"object"==typeof n.g?n.g:"object"==typeof window?window:"object"==typeof self?self:{}},t.toString=Object.prototype.toString,t.commonJSAvailable()&&(e.exports=t)}(i||(i={})),function(){if("function"==typeof Uint8Array&&0!==new Uint8Array(1).subarray(1).byteLength){var e=function(e,t){var n=function(e,t,n){return e<t?t:e>n?n:e};e|=0,t|=0,arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e=n(e,0,this.length);var r=(t=n(t,0,this.length))-e;return r<0&&(r=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,r)},t=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"],n=void 0;if("object"==typeof window?n=window:"object"==typeof self&&(n=self),void 0!==n)for(var r=0;r<t.length;r++)n[t[r]]&&(n[t[r]].prototype.subarray=e)}}(r||(r={})),function(e){var t=function(){function t(){}return t.compressAsync=function(t,n,r){var i=new e.Timer,o=new e.Compressor;if(!r)throw new TypeError("compressAsync: No callback argument given");if("string"==typeof t)t=e.encodeUTF8(t);else if(null==t||!(t instanceof Uint8Array))return void r(void 0,new TypeError("compressAsync: Invalid input argument, only 'string' and 'Uint8Array' are supported"));var s=e.ArrayTools.splitByteArray(t,n.blockSize),a=[],u=function(t){if(t<s.length){var c=void 0;try{c=o.compressBlock(s[t])}catch(e){return void r(void 0,e)}a.push(c),i.getElapsedTime()<=20?u(t+1):(e.enqueueImmediate((function(){return u(t+1)})),i.restart())}else{var l=e.ArrayTools.concatUint8Arrays(a);e.enqueueImmediate((function(){var t;try{t=e.CompressionCommon.encodeCompressedBytes(l,n.outputEncoding)}catch(e){return void r(void 0,e)}e.enqueueImmediate((function(){return r(t)}))}))}};e.enqueueImmediate((function(){return u(0)}))},t.createCompressionStream=function(){var t=new e.Compressor,r=new(n(499).Transform)({decodeStrings:!0,highWaterMark:65536});return r._transform=function(n,i,o){var s;try{s=e.BufferTools.uint8ArrayToBuffer(t.compressBlock(e.BufferTools.bufferToUint8Array(n)))}catch(e){return void r.emit("error",e)}r.push(s),o()},r},t}();e.AsyncCompressor=t}(i||(i={})),function(e){var t=function(){function t(){}return t.decompressAsync=function(t,n,r){if(!r)throw new TypeError("decompressAsync: No callback argument given");var i=new e.Timer;try{t=e.CompressionCommon.decodeCompressedBytes(t,n.inputEncoding)}catch(e){return void r(void 0,e)}var o=new e.Decompressor,s=e.ArrayTools.splitByteArray(t,n.blockSize),a=[],u=function(t){if(t<s.length){var c=void 0;try{c=o.decompressBlock(s[t])}catch(e){return void r(void 0,e)}a.push(c),i.getElapsedTime()<=20?u(t+1):(e.enqueueImmediate((function(){return u(t+1)})),i.restart())}else{var l=e.ArrayTools.concatUint8Arrays(a);e.enqueueImmediate((function(){var t;try{t=e.CompressionCommon.encodeDecompressedBytes(l,n.outputEncoding)}catch(e){return void r(void 0,e)}e.enqueueImmediate((function(){return r(t)}))}))}};e.enqueueImmediate((function(){return u(0)}))},t.createDecompressionStream=function(){var t=new e.Decompressor,r=new(n(499).Transform)({decodeStrings:!0,highWaterMark:65536});return r._transform=function(n,i,o){var s;try{s=e.BufferTools.uint8ArrayToBuffer(t.decompressBlock(e.BufferTools.bufferToUint8Array(n)))}catch(e){return void r.emit("error",e)}r.push(s),o()},r},t}();e.AsyncDecompressor=t}(i||(i={})),function(e){var t;!function(t){t.compressAsync=function(e,n,r){if("ByteArray"!=n.inputEncoding||e instanceof Uint8Array){var i={token:Math.random().toString(),type:"compress",data:e,inputEncoding:n.inputEncoding,outputEncoding:n.outputEncoding},o=function(e){var n=e.data;n&&n.token==i.token&&(t.globalWorker.removeEventListener("message",o),"error"==n.type?r(void 0,new Error(n.error)):r(n.data))};t.globalWorker.addEventListener("message",o),t.globalWorker.postMessage(i,[])}else r(void 0,new TypeError("compressAsync: input is not a Uint8Array"))},t.decompressAsync=function(e,n,r){var i={token:Math.random().toString(),type:"decompress",data:e,inputEncoding:n.inputEncoding,outputEncoding:n.outputEncoding},o=function(e){var n=e.data;n&&n.token==i.token&&(t.globalWorker.removeEventListener("message",o),"error"==n.type?r(void 0,new Error(n.error)):r(n.data))};t.globalWorker.addEventListener("message",o),t.globalWorker.postMessage(i,[])},t.installWebWorkerIfNeeded=function(){"object"==typeof self&&void 0===self.document&&null!=self.addEventListener&&(self.addEventListener("message",(function(t){var n=t.data;if("compress"==n.type){var r=void 0;try{r=e.compress(n.data,{outputEncoding:n.outputEncoding})}catch(t){return void self.postMessage({token:n.token,type:"error",error:e.createErrorMessage(t)},[])}(i={token:n.token,type:"compressionResult",data:r,encoding:n.outputEncoding}).data instanceof Uint8Array&&-1===navigator.appVersion.indexOf("MSIE 10")?self.postMessage(i,[i.data.buffer]):self.postMessage(i,[])}else if("decompress"==n.type){var i,o=void 0;try{o=e.decompress(n.data,{inputEncoding:n.inputEncoding,outputEncoding:n.outputEncoding})}catch(t){return void self.postMessage({token:n.token,type:"error",error:e.createErrorMessage(t)},[])}(i={token:n.token,type:"decompressionResult",data:o,encoding:n.outputEncoding}).data instanceof Uint8Array&&-1===navigator.appVersion.indexOf("MSIE 10")?self.postMessage(i,[i.data.buffer]):self.postMessage(i,[])}})),self.addEventListener("error",(function(t){e.log(e.createErrorMessage(t.error,"Unexpected LZUTF8 WebWorker exception"))})))},t.createGlobalWorkerIfNeeded=function(){if(t.globalWorker)return!0;if(!e.webWorkersAvailable())return!1;if(!t.scriptURI&&"object"==typeof document){var n=document.getElementById("lzutf8");null!=n&&(t.scriptURI=n.getAttribute("src")||void 0)}return!!t.scriptURI&&(t.globalWorker=new Worker(t.scriptURI),!0)},t.terminate=function(){t.globalWorker&&(t.globalWorker.terminate(),t.globalWorker=void 0)}}(t=e.WebWorker||(e.WebWorker={})),t.installWebWorkerIfNeeded()}(i||(i={})),function(e){var t=function(){function e(e,t,n){this.container=e,this.startPosition=t,this.length=n}return e.prototype.get=function(e){return this.container[this.startPosition+e]},e.prototype.getInReversedOrder=function(e){return this.container[this.startPosition+this.length-1-e]},e.prototype.set=function(e,t){this.container[this.startPosition+e]=t},e}();e.ArraySegment=t}(i||(i={})),function(e){var t;(t=e.ArrayTools||(e.ArrayTools={})).copyElements=function(e,t,n,r,i){for(;i--;)n[r++]=e[t++]},t.zeroElements=function(e,t,n){for(;n--;)e[t++]=0},t.countNonzeroValuesInArray=function(e){for(var t=0,n=0;n<e.length;n++)e[n]&&t++;return t},t.truncateStartingElements=function(e,t){if(e.length<=t)throw new RangeError("truncateStartingElements: Requested length should be smaller than array length");for(var n=e.length-t,r=0;r<t;r++)e[r]=e[n+r];e.length=t},t.doubleByteArrayCapacity=function(e){var t=new Uint8Array(2*e.length);return t.set(e),t},t.concatUint8Arrays=function(e){for(var t=0,n=0,r=e;n<r.length;n++)t+=(u=r[n]).length;for(var i=new Uint8Array(t),o=0,s=0,a=e;s<a.length;s++){var u=a[s];i.set(u,o),o+=u.length}return i},t.splitByteArray=function(e,t){for(var n=[],r=0;r<e.length;){var i=Math.min(t,e.length-r);n.push(e.subarray(r,r+i)),r+=i}return n}}(i||(i={})),function(e){var t;(t=e.BufferTools||(e.BufferTools={})).convertToUint8ArrayIfNeeded=function(e){return"function"==typeof Buffer&&Buffer.isBuffer(e)?t.bufferToUint8Array(e):e},t.uint8ArrayToBuffer=function(e){if(Buffer.prototype instanceof Uint8Array){var t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return Object.setPrototypeOf(t,Buffer.prototype),t}for(var n=e.length,r=new Buffer(n),i=0;i<n;i++)r[i]=e[i];return r},t.bufferToUint8Array=function(e){if(Buffer.prototype instanceof Uint8Array)return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e[r];return n}}(i||(i={})),function(e){var t;(t=e.CompressionCommon||(e.CompressionCommon={})).getCroppedBuffer=function(e,t,n,r){void 0===r&&(r=0);var i=new Uint8Array(n+r);return i.set(e.subarray(t,t+n)),i},t.getCroppedAndAppendedByteArray=function(t,n,r,i){return e.ArrayTools.concatUint8Arrays([t.subarray(n,n+r),i])},t.detectCompressionSourceEncoding=function(e){if(null==e)throw new TypeError("detectCompressionSourceEncoding: input is null or undefined");if("string"==typeof e)return"String";if(e instanceof Uint8Array||"function"==typeof Buffer&&Buffer.isBuffer(e))return"ByteArray";throw new TypeError("detectCompressionSourceEncoding: input must be of type 'string', 'Uint8Array' or 'Buffer'")},t.encodeCompressedBytes=function(t,n){switch(n){case"ByteArray":return t;case"Buffer":return e.BufferTools.uint8ArrayToBuffer(t);case"Base64":return e.encodeBase64(t);case"BinaryString":return e.encodeBinaryString(t);case"StorageBinaryString":return e.encodeStorageBinaryString(t);default:throw new TypeError("encodeCompressedBytes: invalid output encoding requested")}},t.decodeCompressedBytes=function(t,n){if(null==n)throw new TypeError("decodeCompressedData: Input is null or undefined");switch(n){case"ByteArray":case"Buffer":var r=e.BufferTools.convertToUint8ArrayIfNeeded(t);if(!(r instanceof Uint8Array))throw new TypeError("decodeCompressedData: 'ByteArray' or 'Buffer' input type was specified but input is not a Uint8Array or Buffer");return r;case"Base64":if("string"!=typeof t)throw new TypeError("decodeCompressedData: 'Base64' input type was specified but input is not a string");return e.decodeBase64(t);case"BinaryString":if("string"!=typeof t)throw new TypeError("decodeCompressedData: 'BinaryString' input type was specified but input is not a string");return e.decodeBinaryString(t);case"StorageBinaryString":if("string"!=typeof t)throw new TypeError("decodeCompressedData: 'StorageBinaryString' input type was specified but input is not a string");return e.decodeStorageBinaryString(t);default:throw new TypeError("decodeCompressedData: invalid input encoding requested: '".concat(n,"'"))}},t.encodeDecompressedBytes=function(t,n){switch(n){case"String":return e.decodeUTF8(t);case"ByteArray":return t;case"Buffer":if("function"!=typeof Buffer)throw new TypeError("encodeDecompressedBytes: a 'Buffer' type was specified but is not supported at the current envirnment");return e.BufferTools.uint8ArrayToBuffer(t);default:throw new TypeError("encodeDecompressedBytes: invalid output encoding requested")}}}(i||(i={})),function(e){var t;!function(t){var n,r=[];t.enqueueImmediate=function(e){r.push(e),1===r.length&&n()},t.initializeScheduler=function(){var t=function(){for(var t=0,n=r;t<n.length;t++){var i=n[t];try{i.call(void 0)}catch(t){e.printExceptionAndStackTraceToConsole(t,"enqueueImmediate exception")}}r.length=0};if(e.runningInNodeJS())n=function(){return setImmediate((function(){return t()}))};else if("object"==typeof window&&"function"==typeof window.addEventListener&&"function"==typeof window.postMessage){var i,o="enqueueImmediate-"+Math.random().toString();window.addEventListener("message",(function(e){e.data===o&&t()})),i=e.runningInNullOrigin()?"*":window.location.href,n=function(){return window.postMessage(o,i)}}else if("function"==typeof MessageChannel&&"function"==typeof MessagePort){var s=new MessageChannel;s.port1.onmessage=function(){return t()},n=function(){return s.port2.postMessage(0)}}else n=function(){return setTimeout((function(){return t()}),0)}},t.initializeScheduler()}(t=e.EventLoop||(e.EventLoop={})),e.enqueueImmediate=function(e){return t.enqueueImmediate(e)}}(i||(i={})),function(e){var t;(t=e.ObjectTools||(e.ObjectTools={})).override=function(e,n){return t.extend(e,n)},t.extend=function(e,t){if(null==e)throw new TypeError("obj is null or undefined");if("object"!=typeof e)throw new TypeError("obj is not an object");if(null==t&&(t={}),"object"!=typeof t)throw new TypeError("newProperties is not an object");if(null!=t)for(var n in t)e[n]=t[n];return e}}(i||(i={})),function(e){e.getRandomIntegerInRange=function(e,t){return e+Math.floor(Math.random()*(t-e))},e.getRandomUTF16StringOfLength=function(t){for(var n="",r=0;r<t;r++){var i=void 0;do{i=e.getRandomIntegerInRange(0,1114112)}while(i>=55296&&i<=57343);n+=e.Encoding.CodePoint.decodeToString(i)}return n}}(i||(i={})),function(e){var t=function(){function e(e){void 0===e&&(e=1024),this.outputBufferCapacity=e,this.outputPosition=0,this.outputString="",this.outputBuffer=new Uint16Array(this.outputBufferCapacity)}return e.prototype.appendCharCode=function(e){this.outputBuffer[this.outputPosition++]=e,this.outputPosition===this.outputBufferCapacity&&this.flushBufferToOutputString()},e.prototype.appendCharCodes=function(e){for(var t=0,n=e.length;t<n;t++)this.appendCharCode(e[t])},e.prototype.appendString=function(e){for(var t=0,n=e.length;t<n;t++)this.appendCharCode(e.charCodeAt(t))},e.prototype.appendCodePoint=function(e){if(e<=65535)this.appendCharCode(e);else{if(!(e<=1114111))throw new Error("appendCodePoint: A code point of ".concat(e," cannot be encoded in UTF-16"));this.appendCharCode(55296+(e-65536>>>10)),this.appendCharCode(56320+(e-65536&1023))}},e.prototype.getOutputString=function(){return this.flushBufferToOutputString(),this.outputString},e.prototype.flushBufferToOutputString=function(){this.outputPosition===this.outputBufferCapacity?this.outputString+=String.fromCharCode.apply(null,this.outputBuffer):this.outputString+=String.fromCharCode.apply(null,this.outputBuffer.subarray(0,this.outputPosition)),this.outputPosition=0},e}();e.StringBuilder=t}(i||(i={})),function(e){var t=function(){function t(){this.restart()}return t.prototype.restart=function(){this.startTime=t.getTimestamp()},t.prototype.getElapsedTime=function(){return t.getTimestamp()-this.startTime},t.prototype.getElapsedTimeAndRestart=function(){var e=this.getElapsedTime();return this.restart(),e},t.prototype.logAndRestart=function(t,n){void 0===n&&(n=!0);var r=this.getElapsedTime(),i="".concat(t,": ").concat(r.toFixed(3),"ms");return e.log(i,n),this.restart(),r},t.getTimestamp=function(){return this.timestampFunc||this.createGlobalTimestampFunction(),this.timestampFunc()},t.getMicrosecondTimestamp=function(){return Math.floor(1e3*t.getTimestamp())},t.createGlobalTimestampFunction=function(){if("object"==typeof process&&"function"==typeof process.hrtime){var e=0;this.timestampFunc=function(){var t=process.hrtime(),n=1e3*t[0]+t[1]/1e6;return e+n},e=Date.now()-this.timestampFunc()}else if("object"==typeof chrome&&chrome.Interval){var t=Date.now(),n=new chrome.Interval;n.start(),this.timestampFunc=function(){return t+n.microseconds()/1e3}}else if("object"==typeof performance&&performance.now){var r=Date.now()-performance.now();this.timestampFunc=function(){return r+performance.now()}}else Date.now?this.timestampFunc=function(){return Date.now()}:this.timestampFunc=function(){return(new Date).getTime()}},t}();e.Timer=t}(i||(i={})),function(e){var t=function(){function t(t){void 0===t&&(t=!0),this.MinimumSequenceLength=4,this.MaximumSequenceLength=31,this.MaximumMatchDistance=32767,this.PrefixHashTableSize=65537,this.inputBufferStreamOffset=1,t&&"function"==typeof Uint32Array?this.prefixHashTable=new e.CompressorCustomHashTable(this.PrefixHashTableSize):this.prefixHashTable=new e.CompressorSimpleHashTable(this.PrefixHashTableSize)}return t.prototype.compressBlock=function(t){if(null==t)throw new TypeError("compressBlock: undefined or null input received");return"string"==typeof t&&(t=e.encodeUTF8(t)),t=e.BufferTools.convertToUint8ArrayIfNeeded(t),this.compressUtf8Block(t)},t.prototype.compressUtf8Block=function(e){if(!e||0==e.length)return new Uint8Array(0);var t=this.cropAndAddNewBytesToInputBuffer(e),n=this.inputBuffer,r=this.inputBuffer.length;this.outputBuffer=new Uint8Array(e.length),this.outputBufferPosition=0;for(var i=0,o=t;o<r;o++){var s=n[o],a=o<i;if(o>r-this.MinimumSequenceLength)a||this.outputRawByte(s);else{var u=this.getBucketIndexForPrefix(o);if(!a){var c=this.findLongestMatch(o,u);null!=c&&(this.outputPointerBytes(c.length,c.distance),i=o+c.length,a=!0)}a||this.outputRawByte(s);var l=this.inputBufferStreamOffset+o;this.prefixHashTable.addValueToBucket(u,l)}}return this.outputBuffer.subarray(0,this.outputBufferPosition)},t.prototype.findLongestMatch=function(e,t){var n=this.prefixHashTable.getArraySegmentForBucketIndex(t,this.reusableArraySegmentObject);if(null==n)return null;for(var r,i=this.inputBuffer,o=0,s=0;s<n.length;s++){var a,u=n.getInReversedOrder(s)-this.inputBufferStreamOffset,c=e-u;if(a=void 0===r?this.MinimumSequenceLength-1:r<128&&c>=128?o+(o>>>1):o,c>this.MaximumMatchDistance||a>=this.MaximumSequenceLength||e+a>=i.length)break;if(i[u+a]===i[e+a])for(var l=0;;l++){if(e+l===i.length||i[u+l]!==i[e+l]){l>a&&(r=c,o=l);break}if(l===this.MaximumSequenceLength)return{distance:c,length:this.MaximumSequenceLength}}}return void 0!==r?{distance:r,length:o}:null},t.prototype.getBucketIndexForPrefix=function(e){return(7880599*this.inputBuffer[e]+39601*this.inputBuffer[e+1]+199*this.inputBuffer[e+2]+this.inputBuffer[e+3])%this.PrefixHashTableSize},t.prototype.outputPointerBytes=function(e,t){t<128?(this.outputRawByte(192|e),this.outputRawByte(t)):(this.outputRawByte(224|e),this.outputRawByte(t>>>8),this.outputRawByte(255&t))},t.prototype.outputRawByte=function(e){this.outputBuffer[this.outputBufferPosition++]=e},t.prototype.cropAndAddNewBytesToInputBuffer=function(t){if(void 0===this.inputBuffer)return this.inputBuffer=t,0;var n=Math.min(this.inputBuffer.length,this.MaximumMatchDistance),r=this.inputBuffer.length-n;return this.inputBuffer=e.CompressionCommon.getCroppedAndAppendedByteArray(this.inputBuffer,r,n,t),this.inputBufferStreamOffset+=r,n},t}();e.Compressor=t}(i||(i={})),function(e){var t=function(){function t(e){this.minimumBucketCapacity=4,this.maximumBucketCapacity=64,this.bucketLocators=new Uint32Array(2*e),this.storage=new Uint32Array(2*e),this.storageIndex=1}return t.prototype.addValueToBucket=function(t,n){t<<=1,this.storageIndex>=this.storage.length>>>1&&this.compact();var r,i=this.bucketLocators[t];if(0===i)i=this.storageIndex,r=1,this.storage[this.storageIndex]=n,this.storageIndex+=this.minimumBucketCapacity;else{(r=this.bucketLocators[t+1])===this.maximumBucketCapacity-1&&(r=this.truncateBucketToNewerElements(i,r,this.maximumBucketCapacity/2));var o=i+r;0===this.storage[o]?(this.storage[o]=n,o===this.storageIndex&&(this.storageIndex+=r)):(e.ArrayTools.copyElements(this.storage,i,this.storage,this.storageIndex,r),i=this.storageIndex,this.storageIndex+=r,this.storage[this.storageIndex++]=n,this.storageIndex+=r),r++}this.bucketLocators[t]=i,this.bucketLocators[t+1]=r},t.prototype.truncateBucketToNewerElements=function(t,n,r){var i=t+n-r;return e.ArrayTools.copyElements(this.storage,i,this.storage,t,r),e.ArrayTools.zeroElements(this.storage,t+r,n-r),r},t.prototype.compact=function(){var t=this.bucketLocators,n=this.storage;this.bucketLocators=new Uint32Array(this.bucketLocators.length),this.storageIndex=1;for(var r=0;r<t.length;r+=2){var i=t[r+1];0!==i&&(this.bucketLocators[r]=this.storageIndex,this.bucketLocators[r+1]=i,this.storageIndex+=Math.max(Math.min(2*i,this.maximumBucketCapacity),this.minimumBucketCapacity))}for(this.storage=new Uint32Array(8*this.storageIndex),r=0;r<t.length;r+=2){var o=t[r];if(0!==o){var s=this.bucketLocators[r],a=this.bucketLocators[r+1];e.ArrayTools.copyElements(n,o,this.storage,s,a)}}},t.prototype.getArraySegmentForBucketIndex=function(t,n){t<<=1;var r=this.bucketLocators[t];return 0===r?null:(void 0===n&&(n=new e.ArraySegment(this.storage,r,this.bucketLocators[t+1])),n)},t.prototype.getUsedBucketCount=function(){return Math.floor(e.ArrayTools.countNonzeroValuesInArray(this.bucketLocators)/2)},t.prototype.getTotalElementCount=function(){for(var e=0,t=0;t<this.bucketLocators.length;t+=2)e+=this.bucketLocators[t+1];return e},t}();e.CompressorCustomHashTable=t}(i||(i={})),function(e){var t=function(){function t(e){this.maximumBucketCapacity=64,this.buckets=new Array(e)}return t.prototype.addValueToBucket=function(t,n){var r=this.buckets[t];void 0===r?this.buckets[t]=[n]:(r.length===this.maximumBucketCapacity-1&&e.ArrayTools.truncateStartingElements(r,this.maximumBucketCapacity/2),r.push(n))},t.prototype.getArraySegmentForBucketIndex=function(t,n){var r=this.buckets[t];return void 0===r?null:(void 0===n&&(n=new e.ArraySegment(r,0,r.length)),n)},t.prototype.getUsedBucketCount=function(){return e.ArrayTools.countNonzeroValuesInArray(this.buckets)},t.prototype.getTotalElementCount=function(){for(var e=0,t=0;t<this.buckets.length;t++)void 0!==this.buckets[t]&&(e+=this.buckets[t].length);return e},t}();e.CompressorSimpleHashTable=t}(i||(i={})),function(e){var t=function(){function t(){this.MaximumMatchDistance=32767,this.outputPosition=0}return t.prototype.decompressBlockToString=function(t){return t=e.BufferTools.convertToUint8ArrayIfNeeded(t),e.decodeUTF8(this.decompressBlock(t))},t.prototype.decompressBlock=function(t){this.inputBufferRemainder&&(t=e.ArrayTools.concatUint8Arrays([this.inputBufferRemainder,t]),this.inputBufferRemainder=void 0);for(var n=this.cropOutputBufferToWindowAndInitialize(Math.max(4*t.length,1024)),r=0,i=t.length;r<i;r++){var o=t[r];if(o>>>6==3){var s=o>>>5;if(r==i-1||r==i-2&&7==s){this.inputBufferRemainder=t.subarray(r);break}if(t[r+1]>>>7==1)this.outputByte(o);else{var a=31&o,u=void 0;6==s?(u=t[r+1],r+=1):(u=t[r+1]<<8|t[r+2],r+=2);for(var c=this.outputPosition-u,l=0;l<a;l++)this.outputByte(this.outputBuffer[c+l])}}else this.outputByte(o)}return this.rollBackIfOutputBufferEndsWithATruncatedMultibyteSequence(),e.CompressionCommon.getCroppedBuffer(this.outputBuffer,n,this.outputPosition-n)},t.prototype.outputByte=function(t){this.outputPosition===this.outputBuffer.length&&(this.outputBuffer=e.ArrayTools.doubleByteArrayCapacity(this.outputBuffer)),this.outputBuffer[this.outputPosition++]=t},t.prototype.cropOutputBufferToWindowAndInitialize=function(t){if(!this.outputBuffer)return this.outputBuffer=new Uint8Array(t),0;var n=Math.min(this.outputPosition,this.MaximumMatchDistance);if(this.outputBuffer=e.CompressionCommon.getCroppedBuffer(this.outputBuffer,this.outputPosition-n,n,t),this.outputPosition=n,this.outputBufferRemainder){for(var r=0;r<this.outputBufferRemainder.length;r++)this.outputByte(this.outputBufferRemainder[r]);this.outputBufferRemainder=void 0}return n},t.prototype.rollBackIfOutputBufferEndsWithATruncatedMultibyteSequence=function(){for(var e=1;e<=4&&this.outputPosition-e>=0;e++){var t=this.outputBuffer[this.outputPosition-e];if(e<4&&t>>>3==30||e<3&&t>>>4==14||e<2&&t>>>5==6)return this.outputBufferRemainder=this.outputBuffer.subarray(this.outputPosition-e,this.outputPosition),void(this.outputPosition-=e)}},t}();e.Decompressor=t}(i||(i={})),function(e){var t,n,r,i;t=e.Encoding||(e.Encoding={}),n=t.Base64||(t.Base64={}),r=new Uint8Array([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57,43,47]),i=new Uint8Array([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,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,62,255,255,255,63,52,53,54,55,56,57,58,59,60,61,255,255,255,0,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,255,255,255,255]),n.encode=function(t){return t&&0!=t.length?e.runningInNodeJS()?e.BufferTools.uint8ArrayToBuffer(t).toString("base64"):n.encodeWithJS(t):""},n.decode=function(t){return t?e.runningInNodeJS()?e.BufferTools.bufferToUint8Array(Buffer.from(t,"base64")):n.decodeWithJS(t):new Uint8Array(0)},n.encodeWithJS=function(t,n){if(void 0===n&&(n=!0),!t||0==t.length)return"";for(var i,o=r,s=new e.StringBuilder,a=0,u=t.length;a<u;a+=3)a<=u-3?(i=t[a]<<16|t[a+1]<<8|t[a+2],s.appendCharCode(o[i>>>18&63]),s.appendCharCode(o[i>>>12&63]),s.appendCharCode(o[i>>>6&63]),s.appendCharCode(o[63&i]),i=0):a===u-2?(i=t[a]<<16|t[a+1]<<8,s.appendCharCode(o[i>>>18&63]),s.appendCharCode(o[i>>>12&63]),s.appendCharCode(o[i>>>6&63]),n&&s.appendCharCode(61)):a===u-1&&(i=t[a]<<16,s.appendCharCode(o[i>>>18&63]),s.appendCharCode(o[i>>>12&63]),n&&(s.appendCharCode(61),s.appendCharCode(61)));return s.getOutputString()},n.decodeWithJS=function(e,t){if(!e||0==e.length)return new Uint8Array(0);var n=e.length%4;if(1===n)throw new Error("Invalid Base64 string: length % 4 == 1");2===n?e+="==":3===n&&(e+="="),t||(t=new Uint8Array(e.length));for(var r=0,o=e.length,s=0;s<o;s+=4){var a=i[e.charCodeAt(s)]<<18|i[e.charCodeAt(s+1)]<<12|i[e.charCodeAt(s+2)]<<6|i[e.charCodeAt(s+3)];t[r++]=a>>>16&255,t[r++]=a>>>8&255,t[r++]=255&a}return 61==e.charCodeAt(o-1)&&r--,61==e.charCodeAt(o-2)&&r--,t.subarray(0,r)}}(i||(i={})),function(e){var t,n;t=e.Encoding||(e.Encoding={}),(n=t.BinaryString||(t.BinaryString={})).encode=function(t){if(null==t)throw new TypeError("BinaryString.encode: undefined or null input received");if(0===t.length)return"";for(var n=t.length,r=new e.StringBuilder,i=0,o=1,s=0;s<n;s+=2){var a;a=s==n-1?t[s]<<8:t[s]<<8|t[s+1],r.appendCharCode(i<<16-o|a>>>o),i=a&(1<<o)-1,15===o?(r.appendCharCode(i),i=0,o=1):o+=1,s>=n-2&&r.appendCharCode(i<<16-o)}return r.appendCharCode(32768|n%2),r.getOutputString()},n.decode=function(e){if("string"!=typeof e)throw new TypeError("BinaryString.decode: invalid input type");if(""==e)return new Uint8Array(0);for(var t=new Uint8Array(3*e.length),n=0,r=function(e){t[n++]=e>>>8,t[n++]=255&e},i=0,o=0,s=0;s<e.length;s++){var a=e.charCodeAt(s);a>=32768?(32769==a&&n--,o=0):(0==o?i=a:(r(i<<o|a>>>15-o),i=a&(1<<15-o)-1),15==o?o=0:o+=1)}return t.subarray(0,n)}}(i||(i={})),function(e){var t,n;t=e.Encoding||(e.Encoding={}),(n=t.CodePoint||(t.CodePoint={})).encodeFromString=function(e,t){var n=e.charCodeAt(t);if(n<55296||n>56319)return n;var r=e.charCodeAt(t+1);if(r>=56320&&r<=57343)return r-56320+(n-55296<<10)+65536;throw new Error("getUnicodeCodePoint: Received a lead surrogate character, char code ".concat(n,", followed by ").concat(r,", which is not a trailing surrogate character code."))},n.decodeToString=function(e){if(e<=65535)return String.fromCharCode(e);if(e<=1114111)return String.fromCharCode(55296+(e-65536>>>10),56320+(e-65536&1023));throw new Error("getStringFromUnicodeCodePoint: A code point of ".concat(e," cannot be encoded in UTF-16"))}}(i||(i={})),function(e){var t,n,r;t=e.Encoding||(e.Encoding={}),n=t.DecimalString||(t.DecimalString={}),r=["000","001","002","003","004","005","006","007","008","009","010","011","012","013","014","015","016","017","018","019","020","021","022","023","024","025","026","027","028","029","030","031","032","033","034","035","036","037","038","039","040","041","042","043","044","045","046","047","048","049","050","051","052","053","054","055","056","057","058","059","060","061","062","063","064","065","066","067","068","069","070","071","072","073","074","075","076","077","078","079","080","081","082","083","084","085","086","087","088","089","090","091","092","093","094","095","096","097","098","099","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255"],n.encode=function(e){for(var t=[],n=0;n<e.length;n++)t.push(r[e[n]]);return t.join(" ")}}(i||(i={})),function(e){var t,n;t=e.Encoding||(e.Encoding={}),(n=t.StorageBinaryString||(t.StorageBinaryString={})).encode=function(e){return t.BinaryString.encode(e).replace(/\0/g,"耂")},n.decode=function(e){return t.BinaryString.decode(e.replace(/\u8002/g,"\0"))}}(i||(i={})),function(e){var t,n,r,i;t=e.Encoding||(e.Encoding={}),(n=t.UTF8||(t.UTF8={})).encode=function(t){return t&&0!=t.length?e.runningInNodeJS()?e.BufferTools.bufferToUint8Array(Buffer.from(t,"utf8")):n.createNativeTextEncoderAndDecoderIfAvailable()?r.encode(t):n.encodeWithJS(t):new Uint8Array(0)},n.decode=function(t){return t&&0!=t.length?e.runningInNodeJS()?e.BufferTools.uint8ArrayToBuffer(t).toString("utf8"):n.createNativeTextEncoderAndDecoderIfAvailable()?i.decode(t):n.decodeWithJS(t):""},n.encodeWithJS=function(e,n){if(!e||0==e.length)return new Uint8Array(0);n||(n=new Uint8Array(4*e.length));for(var r=0,i=0;i<e.length;i++){var o=t.CodePoint.encodeFromString(e,i);if(o<=127)n[r++]=o;else if(o<=2047)n[r++]=192|o>>>6,n[r++]=128|63&o;else if(o<=65535)n[r++]=224|o>>>12,n[r++]=128|o>>>6&63,n[r++]=128|63&o;else{if(!(o<=1114111))throw new Error("Invalid UTF-16 string: Encountered a character unsupported by UTF-8/16 (RFC 3629)");n[r++]=240|o>>>18,n[r++]=128|o>>>12&63,n[r++]=128|o>>>6&63,n[r++]=128|63&o,i++}}return n.subarray(0,r)},n.decodeWithJS=function(t,n,r){if(void 0===n&&(n=0),!t||0==t.length)return"";void 0===r&&(r=t.length);for(var i,o,s=new e.StringBuilder,a=n,u=r;a<u;){if((o=t[a])>>>7==0)i=o,a+=1;else if(o>>>5==6){if(a+1>=r)throw new Error("Invalid UTF-8 stream: Truncated codepoint sequence encountered at position "+a);i=(31&o)<<6|63&t[a+1],a+=2}else if(o>>>4==14){if(a+2>=r)throw new Error("Invalid UTF-8 stream: Truncated codepoint sequence encountered at position "+a);i=(15&o)<<12|(63&t[a+1])<<6|63&t[a+2],a+=3}else{if(o>>>3!=30)throw new Error("Invalid UTF-8 stream: An invalid lead byte value encountered at position "+a);if(a+3>=r)throw new Error("Invalid UTF-8 stream: Truncated codepoint sequence encountered at position "+a);i=(7&o)<<18|(63&t[a+1])<<12|(63&t[a+2])<<6|63&t[a+3],a+=4}s.appendCodePoint(i)}return s.getOutputString()},n.createNativeTextEncoderAndDecoderIfAvailable=function(){return!!r||"function"==typeof TextEncoder&&(r=new TextEncoder("utf-8"),i=new TextDecoder("utf-8"),!0)}}(i||(i={})),function(e){e.compress=function(t,n){if(void 0===n&&(n={}),null==t)throw new TypeError("compress: undefined or null input received");var r=e.CompressionCommon.detectCompressionSourceEncoding(t);n=e.ObjectTools.override({inputEncoding:r,outputEncoding:"ByteArray"},n);var i=(new e.Compressor).compressBlock(t);return e.CompressionCommon.encodeCompressedBytes(i,n.outputEncoding)},e.decompress=function(t,n){if(void 0===n&&(n={}),null==t)throw new TypeError("decompress: undefined or null input received");n=e.ObjectTools.override({inputEncoding:"ByteArray",outputEncoding:"String"},n);var r=e.CompressionCommon.decodeCompressedBytes(t,n.inputEncoding),i=(new e.Decompressor).decompressBlock(r);return e.CompressionCommon.encodeDecompressedBytes(i,n.outputEncoding)},e.compressAsync=function(t,n,r){var i;null==r&&(r=function(){});try{i=e.CompressionCommon.detectCompressionSourceEncoding(t)}catch(e){return void r(void 0,e)}n=e.ObjectTools.override({inputEncoding:i,outputEncoding:"ByteArray",useWebWorker:!0,blockSize:65536},n),e.enqueueImmediate((function(){n.useWebWorker&&e.WebWorker.createGlobalWorkerIfNeeded()?e.WebWorker.compressAsync(t,n,r):e.AsyncCompressor.compressAsync(t,n,r)}))},e.decompressAsync=function(t,n,r){if(null==r&&(r=function(){}),null!=t){n=e.ObjectTools.override({inputEncoding:"ByteArray",outputEncoding:"String",useWebWorker:!0,blockSize:65536},n);var i=e.BufferTools.convertToUint8ArrayIfNeeded(t);e.EventLoop.enqueueImmediate((function(){n.useWebWorker&&e.WebWorker.createGlobalWorkerIfNeeded()?e.WebWorker.decompressAsync(i,n,r):e.AsyncDecompressor.decompressAsync(t,n,r)}))}else r(void 0,new TypeError("decompressAsync: undefined or null input received"))},e.createCompressionStream=function(){return e.AsyncCompressor.createCompressionStream()},e.createDecompressionStream=function(){return e.AsyncDecompressor.createDecompressionStream()},e.encodeUTF8=function(t){return e.Encoding.UTF8.encode(t)},e.decodeUTF8=function(t){return e.Encoding.UTF8.decode(t)},e.encodeBase64=function(t){return e.Encoding.Base64.encode(t)},e.decodeBase64=function(t){return e.Encoding.Base64.decode(t)},e.encodeBinaryString=function(t){return e.Encoding.BinaryString.encode(t)},e.decodeBinaryString=function(t){return e.Encoding.BinaryString.decode(t)},e.encodeStorageBinaryString=function(t){return e.Encoding.StorageBinaryString.encode(t)},e.decodeStorageBinaryString=function(t){return e.Encoding.StorageBinaryString.decode(t)}}(i||(i={}))},475:e=>{"use strict";e.exports={ArrayIsArray:e=>Array.isArray(e),ArrayPrototypeIncludes:(e,t)=>e.includes(t),ArrayPrototypeIndexOf:(e,t)=>e.indexOf(t),ArrayPrototypeJoin:(e,t)=>e.join(t),ArrayPrototypeMap:(e,t)=>e.map(t),ArrayPrototypePop:(e,t)=>e.pop(t),ArrayPrototypePush:(e,t)=>e.push(t),ArrayPrototypeSlice:(e,t,n)=>e.slice(t,n),Error,FunctionPrototypeCall:(e,t,...n)=>e.call(t,...n),FunctionPrototypeSymbolHasInstance:(e,t)=>Function.prototype[Symbol.hasInstance].call(e,t),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(e,t)=>Object.defineProperties(e,t),ObjectDefineProperty:(e,t,n)=>Object.defineProperty(e,t,n),ObjectGetOwnPropertyDescriptor:(e,t)=>Object.getOwnPropertyDescriptor(e,t),ObjectKeys:e=>Object.keys(e),ObjectSetPrototypeOf:(e,t)=>Object.setPrototypeOf(e,t),Promise,PromisePrototypeCatch:(e,t)=>e.catch(t),PromisePrototypeThen:(e,t,n)=>e.then(t,n),PromiseReject:e=>Promise.reject(e),ReflectApply:Reflect.apply,RegExpPrototypeTest:(e,t)=>e.test(t),SafeSet:Set,String,StringPrototypeSlice:(e,t,n)=>e.slice(t,n),StringPrototypeToLowerCase:e=>e.toLowerCase(),StringPrototypeToUpperCase:e=>e.toUpperCase(),StringPrototypeTrim:e=>e.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet:(e,t,n)=>e.set(t,n),Uint8Array}},499:(e,t,n)=>{"use strict";const r=n(507),i=n(724),o=r.Readable.destroy;e.exports=r.Readable,e.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,e.exports._isUint8Array=r._isUint8Array,e.exports.isDisturbed=r.isDisturbed,e.exports.isErrored=r.isErrored,e.exports.isReadable=r.isReadable,e.exports.Readable=r.Readable,e.exports.Writable=r.Writable,e.exports.Duplex=r.Duplex,e.exports.Transform=r.Transform,e.exports.PassThrough=r.PassThrough,e.exports.addAbortSignal=r.addAbortSignal,e.exports.finished=r.finished,e.exports.destroy=r.destroy,e.exports.destroy=o,e.exports.pipeline=r.pipeline,e.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get:()=>i}),e.exports.Stream=r.Stream,e.exports.default=e.exports},507:(e,t,n)=>{const{Buffer:r}=n(287),{ObjectDefineProperty:i,ObjectKeys:o,ReflectApply:s}=n(475),{promisify:{custom:a}}=n(351),{streamReturningOperators:u,promiseReturningOperators:c}=n(170),{codes:{ERR_ILLEGAL_CONSTRUCTOR:l}}=n(760),f=n(515),{pipeline:d}=n(545),{destroyer:p}=n(261),h=n(627),y=n(724),m=n(734),g=e.exports=n(236).Stream;g.isDisturbed=m.isDisturbed,g.isErrored=m.isErrored,g.isReadable=m.isReadable,g.Readable=n(747);for(const E of o(u)){const _=u[E];function b(...e){if(new.target)throw l();return g.Readable.from(s(_,this,e))}i(b,"name",{__proto__:null,value:_.name}),i(b,"length",{__proto__:null,value:_.length}),i(g.Readable.prototype,E,{__proto__:null,value:b,enumerable:!1,configurable:!0,writable:!0})}for(const w of o(c)){const T=c[w];function b(...e){if(new.target)throw l();return s(T,this,e)}i(b,"name",{__proto__:null,value:T.name}),i(b,"length",{__proto__:null,value:T.length}),i(g.Readable.prototype,w,{__proto__:null,value:b,enumerable:!1,configurable:!0,writable:!0})}g.Writable=n(588),g.Duplex=n(749),g.Transform=n(307),g.PassThrough=n(65),g.pipeline=d;const{addAbortSignal:v}=n(792);g.addAbortSignal=v,g.finished=h,g.destroy=p,g.compose=f,i(g,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>y}),i(d,a,{__proto__:null,enumerable:!0,get:()=>y.pipeline}),i(h,a,{__proto__:null,enumerable:!0,get:()=>y.finished}),g.Stream=g,g._isUint8Array=function(e){return e instanceof Uint8Array},g._uint8ArrayToBuffer=function(e){return r.from(e.buffer,e.byteOffset,e.byteLength)}},515:(e,t,n)=>{"use strict";const{pipeline:r}=n(545),i=n(749),{destroyer:o}=n(261),{isNodeStream:s,isReadable:a,isWritable:u,isWebStream:c,isTransformStream:l,isWritableStream:f,isReadableStream:d}=n(734),{AbortError:p,codes:{ERR_INVALID_ARG_VALUE:h,ERR_MISSING_ARGS:y}}=n(760),m=n(627);e.exports=function(...e){if(0===e.length)throw new y("streams");if(1===e.length)return i.from(e[0]);const t=[...e];if("function"==typeof e[0]&&(e[0]=i.from(e[0])),"function"==typeof e[e.length-1]){const t=e.length-1;e[t]=i.from(e[t])}for(let n=0;n<e.length;++n)if(s(e[n])||c(e[n])){if(n<e.length-1&&!(a(e[n])||d(e[n])||l(e[n])))throw new h(`streams[${n}]`,t[n],"must be readable");if(n>0&&!(u(e[n])||f(e[n])||l(e[n])))throw new h(`streams[${n}]`,t[n],"must be writable")}let n,g,b,v,E;const _=e[0],w=r(e,(function(e){const t=v;v=null,t?t(e):e?E.destroy(e):I||T||E.destroy()})),T=!!(u(_)||f(_)||l(_)),I=!!(a(w)||d(w)||l(w));if(E=new i({writableObjectMode:!(null==_||!_.writableObjectMode),readableObjectMode:!(null==w||!w.writableObjectMode),writable:T,readable:I}),T){if(s(_))E._write=function(e,t,r){_.write(e,t)?r():n=r},E._final=function(e){_.end(),g=e},_.on("drain",(function(){if(n){const e=n;n=null,e()}}));else if(c(_)){const e=(l(_)?_.writable:_).getWriter();E._write=async function(t,n,r){try{await e.ready,e.write(t).catch((()=>{})),r()}catch(e){r(e)}},E._final=async function(t){try{await e.ready,e.close().catch((()=>{})),g=t}catch(e){t(e)}}}const e=l(w)?w.readable:w;m(e,(()=>{if(g){const e=g;g=null,e()}}))}if(I)if(s(w))w.on("readable",(function(){if(b){const e=b;b=null,e()}})),w.on("end",(function(){E.push(null)})),E._read=function(){for(;;){const e=w.read();if(null===e)return void(b=E._read);if(!E.push(e))return}};else if(c(w)){const e=(l(w)?w.readable:w).getReader();E._read=async function(){for(;;)try{const{value:t,done:n}=await e.read();if(!E.push(t))return;if(n)return void E.push(null)}catch{return}}}return E._destroy=function(e,t){e||null===v||(e=new p),b=null,n=null,g=null,null===v?t(e):(v=t,s(w)&&o(w,e))},E}},526:(e,t)=>{"use strict";t.byteLength=function(e){var t=a(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=a(e),s=o[0],u=o[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,s,u)),l=0,f=u>0?s-4:s;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===u&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[l++]=255&t),1===u&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=16383,a=0,c=r-i;a<c;a+=s)o.push(u(e,a,a+s>c?c:a+s));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=o[s],r[o.charCodeAt(s)]=s;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var i,o,s=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},545:(e,t,n)=>{const r=n(606),{ArrayIsArray:i,Promise:o,SymbolAsyncIterator:s}=n(475),a=n(627),{once:u}=n(351),c=n(261),l=n(749),{aggregateTwoErrors:f,codes:{ERR_INVALID_ARG_TYPE:d,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:h,ERR_STREAM_DESTROYED:y,ERR_STREAM_PREMATURE_CLOSE:m},AbortError:g}=n(760),{validateFunction:b,validateAbortSignal:v}=n(974),{isIterable:E,isReadable:_,isReadableNodeStream:w,isNodeStream:T,isTransformStream:I,isWebStream:S,isReadableStream:N,isReadableEnded:A}=n(734),O=globalThis.AbortController||n(568).AbortController;let R,D;function x(e,t,n){let r=!1;return e.on("close",(()=>{r=!0})),{destroy:t=>{r||(r=!0,c.destroyer(e,t||new y("pipe")))},cleanup:a(e,{readable:t,writable:n},(e=>{r=!e}))}}function L(e){if(E(e))return e;if(w(e))return async function*(e){D||(D=n(747)),yield*D.prototype[s].call(e)}(e);throw new d("val",["Readable","Iterable","AsyncIterable"],e)}async function k(e,t,n,{end:r}){let i,s=null;const u=e=>{if(e&&(i=e),s){const e=s;s=null,e()}},c=()=>new o(((e,t)=>{i?t(i):s=()=>{i?t(i):e()}}));t.on("drain",u);const l=a(t,{readable:!1},u);try{t.writableNeedDrain&&await c();for await(const n of e)t.write(n)||await c();r&&t.end(),await c(),n()}catch(e){n(i!==e?f(i,e):e)}finally{l(),t.off("drain",u)}}async function C(e,t,n,{end:r}){I(t)&&(t=t.writable);const i=t.getWriter();try{for await(const t of e)await i.ready,i.write(t).catch((()=>{}));await i.ready,r&&await i.close(),n()}catch(e){try{await i.abort(e),n(e)}catch(e){n(e)}}}function B(e,t,o){if(1===e.length&&i(e[0])&&(e=e[0]),e.length<2)throw new h("streams");const s=new O,a=s.signal,u=null==o?void 0:o.signal,c=[];function f(){F(new g)}let y,m;v(u,"options.signal"),null==u||u.addEventListener("abort",f);const b=[];let A,D=0;function B(e){F(e,0==--D)}function F(e,n){if(!e||y&&"ERR_STREAM_PREMATURE_CLOSE"!==y.code||(y=e),y||n){for(;b.length;)b.shift()(y);null==u||u.removeEventListener("abort",f),s.abort(),n&&(y||c.forEach((e=>e())),r.nextTick(t,y,m))}}for(let P=0;P<e.length;P++){const V=e[P],q=P<e.length-1,G=P>0,W=q||!1!==(null==o?void 0:o.end),Q=P===e.length-1;if(T(V)){if(W){const{destroy:Y,cleanup:J}=x(V,q,G);b.push(Y),_(V)&&Q&&c.push(J)}function U(e){e&&"AbortError"!==e.name&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code&&B(e)}V.on("error",U),_(V)&&Q&&c.push((()=>{V.removeListener("error",U)}))}if(0===P)if("function"==typeof V){if(A=V({signal:a}),!E(A))throw new p("Iterable, AsyncIterable or Stream","source",A)}else A=E(V)||w(V)||I(V)?V:l.from(V);else if("function"==typeof V){var M;if(A=I(A)?L(null===(M=A)||void 0===M?void 0:M.readable):L(A),A=V(A,{signal:a}),q){if(!E(A,!0))throw new p("AsyncIterable",`transform[${P-1}]`,A)}else{var j;R||(R=n(65));const H=new R({objectMode:!0}),z=null===(j=A)||void 0===j?void 0:j.then;if("function"==typeof z)D++,z.call(A,(e=>{m=e,null!=e&&H.write(e),W&&H.end(),r.nextTick(B)}),(e=>{H.destroy(e),r.nextTick(B,e)}));else if(E(A,!0))D++,k(A,H,B,{end:W});else{if(!N(A)&&!I(A))throw new p("AsyncIterable or Promise","destination",A);{const Z=A.readable||A;D++,k(Z,H,B,{end:W})}}A=H;const{destroy:K,cleanup:X}=x(A,!1,!0);b.push(K),Q&&c.push(X)}}else if(T(V)){if(w(A)){D+=2;const ee=$(A,V,B,{end:W});_(V)&&Q&&c.push(ee)}else if(I(A)||N(A)){const te=A.readable||A;D++,k(te,V,B,{end:W})}else{if(!E(A))throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],A);D++,k(A,V,B,{end:W})}A=V}else if(S(V)){if(w(A))D++,C(L(A),V,B,{end:W});else if(N(A)||E(A))D++,C(A,V,B,{end:W});else{if(!I(A))throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],A);D++,C(A.readable,V,B,{end:W})}A=V}else A=l.from(V)}return(null!=a&&a.aborted||null!=u&&u.aborted)&&r.nextTick(f),A}function $(e,t,n,{end:i}){let o=!1;if(t.on("close",(()=>{o||n(new m)})),e.pipe(t,{end:!1}),i){function s(){o=!0,t.end()}A(e)?r.nextTick(s):e.once("end",s)}else n();return a(e,{readable:!0,writable:!1},(t=>{const r=e._readableState;t&&"ERR_STREAM_PREMATURE_CLOSE"===t.code&&r&&r.ended&&!r.errored&&!r.errorEmitted?e.once("end",n).once("error",n):n(t)})),a(t,{readable:!1,writable:!0},n)}e.exports={pipelineImpl:B,pipeline:function(...e){return B(e,u(function(e){return b(e[e.length-1],"streams[stream.length - 1]"),e.pop()}(e)))}}},568:e=>{"use strict";const{AbortController:t,AbortSignal:n}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=t,e.exports.AbortSignal=n,e.exports.default=t},588:(e,t,n)=>{const r=n(606),{ArrayPrototypeSlice:i,Error:o,FunctionPrototypeSymbolHasInstance:s,ObjectDefineProperty:a,ObjectDefineProperties:u,ObjectSetPrototypeOf:c,StringPrototypeToLowerCase:l,Symbol:f,SymbolHasInstance:d}=n(475);e.exports=C,C.WritableState=L;const{EventEmitter:p}=n(7),h=n(236).Stream,{Buffer:y}=n(287),m=n(261),{addAbortSignal:g}=n(792),{getHighWaterMark:b,getDefaultHighWaterMark:v}=n(646),{ERR_INVALID_ARG_TYPE:E,ERR_METHOD_NOT_IMPLEMENTED:_,ERR_MULTIPLE_CALLBACK:w,ERR_STREAM_CANNOT_PIPE:T,ERR_STREAM_DESTROYED:I,ERR_STREAM_ALREADY_FINISHED:S,ERR_STREAM_NULL_VALUES:N,ERR_STREAM_WRITE_AFTER_END:A,ERR_UNKNOWN_ENCODING:O}=n(760).codes,{errorOrDestroy:R}=m;function D(){}c(C.prototype,h.prototype),c(C,h);const x=f("kOnFinished");function L(e,t,r){"boolean"!=typeof r&&(r=t instanceof n(749)),this.objectMode=!(!e||!e.objectMode),r&&(this.objectMode=this.objectMode||!(!e||!e.writableObjectMode)),this.highWaterMark=e?b(this,e,"writableHighWaterMark",r):v(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const i=!(!e||!1!==e.decodeStrings);this.decodeStrings=!i,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=U.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,k(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[x]=[]}function k(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function C(e){const t=this instanceof n(749);if(!t&&!s(C,this))return new C(e);this._writableState=new L(e,this,t),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),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&g(e.signal,this)),h.call(this,e),m.construct(this,(()=>{const e=this._writableState;e.writing||V(this,e),G(this,e)}))}function B(e,t,n,i){const o=e._writableState;if("function"==typeof n)i=n,n=o.defaultEncoding;else{if(n){if("buffer"!==n&&!y.isEncoding(n))throw new O(n)}else n=o.defaultEncoding;"function"!=typeof i&&(i=D)}if(null===t)throw new N;if(!o.objectMode)if("string"==typeof t)!1!==o.decodeStrings&&(t=y.from(t,n),n="buffer");else if(t instanceof y)n="buffer";else{if(!h._isUint8Array(t))throw new E("chunk",["string","Buffer","Uint8Array"],t);t=h._uint8ArrayToBuffer(t),n="buffer"}let s;return o.ending?s=new A:o.destroyed&&(s=new I("write")),s?(r.nextTick(i,s),R(e,s,!0),s):(o.pendingcb++,function(e,t,n,r,i){const o=t.objectMode?1:n.length;t.length+=o;const s=t.length<t.highWaterMark;return s||(t.needDrain=!0),t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:n,encoding:r,callback:i}),t.allBuffers&&"buffer"!==r&&(t.allBuffers=!1),t.allNoop&&i!==D&&(t.allNoop=!1)):(t.writelen=o,t.writecb=i,t.writing=!0,t.sync=!0,e._write(n,r,t.onwrite),t.sync=!1),s&&!t.errored&&!t.destroyed}(e,o,t,n,i))}function $(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new I("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function F(e,t,n,r){--t.pendingcb,r(n),P(t),R(e,n)}function U(e,t){const n=e._writableState,i=n.sync,o=n.writecb;"function"==typeof o?(n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,t?(t.stack,n.errored||(n.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),i?r.nextTick(F,e,n,t,o):F(e,n,t,o)):(n.buffered.length>n.bufferedIndex&&V(e,n),i?null!==n.afterWriteTickInfo&&n.afterWriteTickInfo.cb===o?n.afterWriteTickInfo.count++:(n.afterWriteTickInfo={count:1,cb:o,stream:e,state:n},r.nextTick(M,n.afterWriteTickInfo)):j(e,n,1,o))):R(e,new w)}function M({stream:e,state:t,count:n,cb:r}){return t.afterWriteTickInfo=null,j(e,t,n,r)}function j(e,t,n,r){for(!t.ending&&!e.destroyed&&0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));n-- >0;)t.pendingcb--,r();t.destroyed&&P(t),G(e,t)}function P(e){if(e.writing)return;for(let n=e.bufferedIndex;n<e.buffered.length;++n){var t;const{chunk:r,callback:i}=e.buffered[n],o=e.objectMode?1:r.length;e.length-=o,i(null!==(t=e.errored)&&void 0!==t?t:new I("write"))}const n=e[x].splice(0);for(let t=0;t<n.length;t++){var r;n[t](null!==(r=e.errored)&&void 0!==r?r:new I("end"))}k(e)}function V(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;const{buffered:n,bufferedIndex:r,objectMode:o}=t,s=n.length-r;if(!s)return;let a=r;if(t.bufferProcessing=!0,s>1&&e._writev){t.pendingcb-=s-1;const r=t.allNoop?D:e=>{for(let t=a;t<n.length;++t)n[t].callback(e)},o=t.allNoop&&0===a?n:i(n,a);o.allBuffers=t.allBuffers,$(e,t,!0,t.length,o,"",r),k(t)}else{do{const{chunk:r,encoding:i,callback:s}=n[a];n[a++]=null,$(e,t,!1,o?1:r.length,r,i,s)}while(a<n.length&&!t.writing);a===n.length?k(t):a>256?(n.splice(0,a),t.bufferedIndex=0):t.bufferedIndex=a}t.bufferProcessing=!1}function q(e){return e.ending&&!e.destroyed&&e.constructed&&0===e.length&&!e.errored&&0===e.buffered.length&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function G(e,t,n){q(t)&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,function(e,t){let n=!1;function i(i){if(n)R(e,null!=i?i:w());else if(n=!0,t.pendingcb--,i){const n=t[x].splice(0);for(let e=0;e<n.length;e++)n[e](i);R(e,i,t.sync)}else q(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,r.nextTick(W,e,t))}t.sync=!0,t.pendingcb++;try{e._final(i)}catch(e){i(e)}t.sync=!1}(e,t)))}(e,t),0===t.pendingcb&&(n?(t.pendingcb++,r.nextTick(((e,t)=>{q(t)?W(e,t):t.pendingcb--}),e,t)):q(t)&&(t.pendingcb++,W(e,t))))}function W(e,t){t.pendingcb--,t.finished=!0;const n=t[x].splice(0);for(let e=0;e<n.length;e++)n[e]();if(e.emit("finish"),t.autoDestroy){const t=e._readableState;(!t||t.autoDestroy&&(t.endEmitted||!1===t.readable))&&e.destroy()}}L.prototype.getBuffer=function(){return i(this.buffered,this.bufferedIndex)},a(L.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),a(C,d,{__proto__:null,value:function(e){return!!s(this,e)||this===C&&e&&e._writableState instanceof L}}),C.prototype.pipe=function(){R(this,new T)},C.prototype.write=function(e,t,n){return!0===B(this,e,t,n)},C.prototype.cork=function(){this._writableState.corked++},C.prototype.uncork=function(){const e=this._writableState;e.corked&&(e.corked--,e.writing||V(this,e))},C.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=l(e)),!y.isEncoding(e))throw new O(e);return this._writableState.defaultEncoding=e,this},C.prototype._write=function(e,t,n){if(!this._writev)throw new _("_write()");this._writev([{chunk:e,encoding:t}],n)},C.prototype._writev=null,C.prototype.end=function(e,t,n){const i=this._writableState;let s;if("function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e){const n=B(this,e,t);n instanceof o&&(s=n)}return i.corked&&(i.corked=1,this.uncork()),s||(i.errored||i.ending?i.finished?s=new S("end"):i.destroyed&&(s=new I("end")):(i.ending=!0,G(this,i,!0),i.ended=!0)),"function"==typeof n&&(s||i.finished?r.nextTick(n,s):i[x].push(n)),this},u(C.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){const e=this._writableState;return!(!e||!1===e.writable||e.destroyed||e.errored||e.ending||e.ended)},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){const e=this._writableState;return!!e&&!e.destroyed&&!e.ending&&e.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._writableState.writable||!this._writableState.destroyed&&!this._writableState.errored||this._writableState.finished)}}});const Q=m.destroy;let Y;function J(){return void 0===Y&&(Y={}),Y}C.prototype.destroy=function(e,t){const n=this._writableState;return!n.destroyed&&(n.bufferedIndex<n.buffered.length||n[x].length)&&r.nextTick(P,n),Q.call(this,e,t),this},C.prototype._undestroy=m.undestroy,C.prototype._destroy=function(e,t){t(e)},C.prototype[p.captureRejectionSymbol]=function(e){this.destroy(e)},C.fromWeb=function(e,t){return J().newStreamWritableFromWritableStream(e,t)},C.toWeb=function(e){return J().newWritableStreamFromStreamWritable(e)}},603:(e,t,n)=>{const r=n(606),i=n(287),{isReadable:o,isWritable:s,isIterable:a,isNodeStream:u,isReadableNodeStream:c,isWritableNodeStream:l,isDuplexNodeStream:f}=n(734),d=n(627),{AbortError:p,codes:{ERR_INVALID_ARG_TYPE:h,ERR_INVALID_RETURN_VALUE:y}}=n(760),{destroyer:m}=n(261),g=n(749),b=n(747),{createDeferredPromise:v}=n(351),E=n(207),_=globalThis.Blob||i.Blob,w=void 0!==_?function(e){return e instanceof _}:function(e){return!1},T=globalThis.AbortController||n(568).AbortController,{FunctionPrototypeCall:I}=n(475);class S extends g{constructor(e){super(e),!1===(null==e?void 0:e.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null==e?void 0:e.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function N(e){const t=e.readable&&"function"!=typeof e.readable.read?b.wrap(e.readable):e.readable,n=e.writable;let r,i,a,u,c,l=!!o(t),f=!!s(n);function h(e){const t=u;u=null,t?t(e):e&&c.destroy(e)}return c=new S({readableObjectMode:!(null==t||!t.readableObjectMode),writableObjectMode:!(null==n||!n.writableObjectMode),readable:l,writable:f}),f&&(d(n,(e=>{f=!1,e&&m(t,e),h(e)})),c._write=function(e,t,i){n.write(e,t)?i():r=i},c._final=function(e){n.end(),i=e},n.on("drain",(function(){if(r){const e=r;r=null,e()}})),n.on("finish",(function(){if(i){const e=i;i=null,e()}}))),l&&(d(t,(e=>{l=!1,e&&m(t,e),h(e)})),t.on("readable",(function(){if(a){const e=a;a=null,e()}})),t.on("end",(function(){c.push(null)})),c._read=function(){for(;;){const e=t.read();if(null===e)return void(a=c._read);if(!c.push(e))return}}),c._destroy=function(e,o){e||null===u||(e=new p),a=null,r=null,i=null,null===u?o(e):(u=o,m(n,e),m(t,e))},c}e.exports=function e(t,n){if(f(t))return t;if(c(t))return N({readable:t});if(l(t))return N({writable:t});if(u(t))return N({writable:!1,readable:!1});if("function"==typeof t){const{value:e,write:i,final:o,destroy:s}=function(e){let{promise:t,resolve:n}=v();const i=new T,o=i.signal;return{value:e(async function*(){for(;;){const e=t;t=null;const{chunk:i,done:s,cb:a}=await e;if(r.nextTick(a),s)return;if(o.aborted)throw new p(void 0,{cause:o.reason});({promise:t,resolve:n}=v()),yield i}}(),{signal:o}),write(e,t,r){const i=n;n=null,i({chunk:e,done:!1,cb:r})},final(e){const t=n;n=null,t({done:!0,cb:e})},destroy(e,t){i.abort(),t(e)}}}(t);if(a(e))return E(S,e,{objectMode:!0,write:i,final:o,destroy:s});const u=null==e?void 0:e.then;if("function"==typeof u){let t;const n=I(u,e,(e=>{if(null!=e)throw new y("nully","body",e)}),(e=>{m(t,e)}));return t=new S({objectMode:!0,readable:!1,write:i,final(e){o((async()=>{try{await n,r.nextTick(e,null)}catch(t){r.nextTick(e,t)}}))},destroy:s})}throw new y("Iterable, AsyncIterable or AsyncFunction",n,e)}if(w(t))return e(t.arrayBuffer());if(a(t))return E(S,t,{objectMode:!0,writable:!1});if("object"==typeof(null==t?void 0:t.writable)||"object"==typeof(null==t?void 0:t.readable))return N({readable:null!=t&&t.readable?c(null==t?void 0:t.readable)?null==t?void 0:t.readable:e(t.readable):void 0,writable:null!=t&&t.writable?l(null==t?void 0:t.writable)?null==t?void 0:t.writable:e(t.writable):void 0});const i=null==t?void 0:t.then;if("function"==typeof i){let e;return I(i,t,(t=>{null!=t&&e.push(t),e.push(null)}),(t=>{m(e,t)})),e=new S({objectMode:!0,writable:!1,read(){}})}throw new h(n,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)}},606:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var a,u=[],c=!1,l=-1;function f(){c&&a&&(c=!1,a.length?u=a.concat(u):l=-1,u.length&&d())}function d(){if(!c){var e=s(f);c=!0;for(var t=u.length;t;){for(a=u,u=[];++l<t;)a&&a[l].run();l=-1,t=u.length}a=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||c||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},627:(e,t,n)=>{const r=n(606),{AbortError:i,codes:o}=n(760),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_PREMATURE_CLOSE:a}=o,{kEmptyObject:u,once:c}=n(351),{validateAbortSignal:l,validateFunction:f,validateObject:d,validateBoolean:p}=n(974),{Promise:h,PromisePrototypeThen:y}=n(475),{isClosed:m,isReadable:g,isReadableNodeStream:b,isReadableStream:v,isReadableFinished:E,isReadableErrored:_,isWritable:w,isWritableNodeStream:T,isWritableStream:I,isWritableFinished:S,isWritableErrored:N,isNodeStream:A,willEmitClose:O,kIsClosedPromise:R}=n(734),D=()=>{};function x(e,t,n){var o,p;if(2===arguments.length?(n=t,t=u):null==t?t=u:d(t,"options"),f(n,"callback"),l(t.signal,"options.signal"),n=c(n),v(e)||I(e))return function(e,t,n){let o=!1,s=D;if(t.signal)if(s=()=>{o=!0,n.call(e,new i(void 0,{cause:t.signal.reason}))},t.signal.aborted)r.nextTick(s);else{const r=n;n=c(((...n)=>{t.signal.removeEventListener("abort",s),r.apply(e,n)})),t.signal.addEventListener("abort",s)}const a=(...t)=>{o||r.nextTick((()=>n.apply(e,t)))};return y(e[R].promise,a,a),D}(e,t,n);if(!A(e))throw new s("stream",["ReadableStream","WritableStream","Stream"],e);const h=null!==(o=t.readable)&&void 0!==o?o:b(e),x=null!==(p=t.writable)&&void 0!==p?p:T(e),L=e._writableState,k=e._readableState,C=()=>{e.writable||F()};let B=O(e)&&b(e)===h&&T(e)===x,$=S(e,!1);const F=()=>{$=!0,e.destroyed&&(B=!1),(!B||e.readable&&!h)&&(h&&!U||n.call(e))};let U=E(e,!1);const M=()=>{U=!0,e.destroyed&&(B=!1),(!B||e.writable&&!x)&&(x&&!$||n.call(e))},j=t=>{n.call(e,t)};let P=m(e);const V=()=>{P=!0;const t=N(e)||_(e);return t&&"boolean"!=typeof t?n.call(e,t):h&&!U&&b(e,!0)&&!E(e,!1)?n.call(e,new a):!x||$||S(e,!1)?void n.call(e):n.call(e,new a)},q=()=>{P=!0;const t=N(e)||_(e);if(t&&"boolean"!=typeof t)return n.call(e,t);n.call(e)},G=()=>{e.req.on("finish",F)};!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?x&&!L&&(e.on("end",C),e.on("close",C)):(e.on("complete",F),B||e.on("abort",V),e.req?G():e.on("request",G)),B||"boolean"!=typeof e.aborted||e.on("aborted",V),e.on("end",M),e.on("finish",F),!1!==t.error&&e.on("error",j),e.on("close",V),P?r.nextTick(V):null!=L&&L.errorEmitted||null!=k&&k.errorEmitted?B||r.nextTick(q):(h||B&&!g(e)||!$&&!1!==w(e))&&(x||B&&!w(e)||!U&&!1!==g(e))?k&&e.req&&e.aborted&&r.nextTick(q):r.nextTick(q);const W=()=>{n=D,e.removeListener("aborted",V),e.removeListener("complete",F),e.removeListener("abort",V),e.removeListener("request",G),e.req&&e.req.removeListener("finish",F),e.removeListener("end",C),e.removeListener("close",C),e.removeListener("finish",F),e.removeListener("end",M),e.removeListener("error",j),e.removeListener("close",V)};if(t.signal&&!P){const o=()=>{const r=n;W(),r.call(e,new i(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)r.nextTick(o);else{const r=n;n=c(((...n)=>{t.signal.removeEventListener("abort",o),r.apply(e,n)})),t.signal.addEventListener("abort",o)}}return W}e.exports=x,e.exports.finished=function(e,t){var n;let r=!1;return null===t&&(t=u),null!==(n=t)&&void 0!==n&&n.cleanup&&(p(t.cleanup,"cleanup"),r=t.cleanup),new h(((n,i)=>{const o=x(e,t,(e=>{r&&o(),e?i(e):n()}))}))}},646:(e,t,n)=>{"use strict";const{MathFloor:r,NumberIsInteger:i}=n(475),{ERR_INVALID_ARG_VALUE:o}=n(760).codes;function s(e){return e?16:16384}e.exports={getHighWaterMark:function(e,t,n,a){const u=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,a,n);if(null!=u){if(!i(u)||u<0)throw new o(a?`options.${n}`:"options.highWaterMark",u);return r(u)}return s(e.objectMode)},getDefaultHighWaterMark:s}},692:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLRequest=void 0;const a=n(875),u=o(n(884)),c=o(n(325)),l=n(348);t.GraphQLRequest=class{constructor(e,t){switch(e){case"data-api":this.client=new a.GraphQLClient(c.schema,t);break;case"sequence-coordinates":case"1d-coordinates":this.client=new a.GraphQLClient(u.schema,t);break;default:this.client=new a.GraphQLClient(e,t)}}request(e,t,n){return s(this,void 0,void 0,(function*(){const r=l.LocalStorageTools.getItem({query:t,requestConfig:e});if(r)return r;try{const r=yield this.client.request(t,e,n);return l.LocalStorageTools.setItem({query:t,requestConfig:e},r),r}catch(e){throw console.error(e),e}}))}}},724:(e,t,n)=>{"use strict";const{ArrayPrototypePop:r,Promise:i}=n(475),{isIterable:o,isNodeStream:s,isWebStream:a}=n(734),{pipelineImpl:u}=n(545),{finished:c}=n(627);n(507),e.exports={finished:c,pipeline:function(...e){return new i(((t,n)=>{let i,c;const l=e[e.length-1];if(l&&"object"==typeof l&&!s(l)&&!o(l)&&!a(l)){const t=r(e);i=t.signal,c=t.end}u(e,((e,r)=>{e?n(e):t(r)}),{signal:i,end:c})}))}}},734:(e,t,n)=>{"use strict";const{Symbol:r,SymbolAsyncIterator:i,SymbolIterator:o,SymbolFor:s}=n(475),a=r("kDestroyed"),u=r("kIsErrored"),c=r("kIsReadable"),l=r("kIsDisturbed"),f=s("nodejs.webstream.isClosedPromise"),d=s("nodejs.webstream.controllerErrorFunction");function p(e,t=!1){var n;return!(!e||"function"!=typeof e.pipe||"function"!=typeof e.on||t&&("function"!=typeof e.pause||"function"!=typeof e.resume)||e._writableState&&!1===(null===(n=e._readableState)||void 0===n?void 0:n.readable)||e._writableState&&!e._readableState)}function h(e){var t;return!(!e||"function"!=typeof e.write||"function"!=typeof e.on||e._readableState&&!1===(null===(t=e._writableState)||void 0===t?void 0:t.writable))}function y(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function m(e){return!(!e||y(e)||"function"!=typeof e.pipeThrough||"function"!=typeof e.getReader||"function"!=typeof e.cancel)}function g(e){return!(!e||y(e)||"function"!=typeof e.getWriter||"function"!=typeof e.abort)}function b(e){return!(!e||y(e)||"object"!=typeof e.readable||"object"!=typeof e.writable)}function v(e){if(!y(e))return null;const t=e._writableState,n=e._readableState,r=t||n;return!!(e.destroyed||e[a]||null!=r&&r.destroyed)}function E(e){if(!h(e))return null;if(!0===e.writableEnded)return!0;const t=e._writableState;return(null==t||!t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)}function _(e,t){if(!p(e))return null;const n=e._readableState;return(null==n||!n.errored)&&("boolean"!=typeof(null==n?void 0:n.endEmitted)?null:!!(n.endEmitted||!1===t&&!0===n.ended&&0===n.length))}function w(e){return e&&null!=e[c]?e[c]:"boolean"!=typeof(null==e?void 0:e.readable)?null:!v(e)&&p(e)&&e.readable&&!_(e)}function T(e){return"boolean"!=typeof(null==e?void 0:e.writable)?null:!v(e)&&h(e)&&e.writable&&!E(e)}function I(e){return"boolean"==typeof e._closed&&"boolean"==typeof e._defaultKeepAlive&&"boolean"==typeof e._removedConnection&&"boolean"==typeof e._removedContLen}function S(e){return"boolean"==typeof e._sent100&&I(e)}e.exports={kDestroyed:a,isDisturbed:function(e){var t;return!(!e||!(null!==(t=e[l])&&void 0!==t?t:e.readableDidRead||e.readableAborted))},kIsDisturbed:l,isErrored:function(e){var t,n,r,i,o,s,a,c,l,f;return!(!e||!(null!==(t=null!==(n=null!==(r=null!==(i=null!==(o=null!==(s=e[u])&&void 0!==s?s:e.readableErrored)&&void 0!==o?o:e.writableErrored)&&void 0!==i?i:null===(a=e._readableState)||void 0===a?void 0:a.errorEmitted)&&void 0!==r?r:null===(c=e._writableState)||void 0===c?void 0:c.errorEmitted)&&void 0!==n?n:null===(l=e._readableState)||void 0===l?void 0:l.errored)&&void 0!==t?t:null===(f=e._writableState)||void 0===f?void 0:f.errored))},kIsErrored:u,isReadable:w,kIsReadable:c,kIsClosedPromise:f,kControllerErrorFunction:d,isClosed:function(e){if(!y(e))return null;if("boolean"==typeof e.closed)return e.closed;const t=e._writableState,n=e._readableState;return"boolean"==typeof(null==t?void 0:t.closed)||"boolean"==typeof(null==n?void 0:n.closed)?(null==t?void 0:t.closed)||(null==n?void 0:n.closed):"boolean"==typeof e._closed&&I(e)?e._closed:null},isDestroyed:v,isDuplexNodeStream:function(e){return!(!e||"function"!=typeof e.pipe||!e._readableState||"function"!=typeof e.on||"function"!=typeof e.write)},isFinished:function(e,t){return y(e)?!(!v(e)&&(!1!==(null==t?void 0:t.readable)&&w(e)||!1!==(null==t?void 0:t.writable)&&T(e))):null},isIterable:function(e,t){return null!=e&&(!0===t?"function"==typeof e[i]:!1===t?"function"==typeof e[o]:"function"==typeof e[i]||"function"==typeof e[o])},isReadableNodeStream:p,isReadableStream:m,isReadableEnded:function(e){if(!p(e))return null;if(!0===e.readableEnded)return!0;const t=e._readableState;return!(!t||t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)},isReadableFinished:_,isReadableErrored:function(e){var t,n;return y(e)?e.readableErrored?e.readableErrored:null!==(t=null===(n=e._readableState)||void 0===n?void 0:n.errored)&&void 0!==t?t:null:null},isNodeStream:y,isWebStream:function(e){return m(e)||g(e)||b(e)},isWritable:T,isWritableNodeStream:h,isWritableStream:g,isWritableEnded:E,isWritableFinished:function(e,t){if(!h(e))return null;if(!0===e.writableFinished)return!0;const n=e._writableState;return(null==n||!n.errored)&&("boolean"!=typeof(null==n?void 0:n.finished)?null:!!(n.finished||!1===t&&!0===n.ended&&0===n.length))},isWritableErrored:function(e){var t,n;return y(e)?e.writableErrored?e.writableErrored:null!==(t=null===(n=e._writableState)||void 0===n?void 0:n.errored)&&void 0!==t?t:null:null},isServerRequest:function(e){var t;return"boolean"==typeof e._consuming&&"boolean"==typeof e._dumped&&void 0===(null===(t=e.req)||void 0===t?void 0:t.upgradeOrConnect)},isServerResponse:S,willEmitClose:function(e){if(!y(e))return null;const t=e._writableState,n=e._readableState,r=t||n;return!r&&S(e)||!!(r&&r.autoDestroy&&r.emitClose&&!1===r.closed)},isTransformStream:b}},747:(e,t,n)=>{const r=n(606),{ArrayPrototypeIndexOf:i,NumberIsInteger:o,NumberIsNaN:s,NumberParseInt:a,ObjectDefineProperties:u,ObjectKeys:c,ObjectSetPrototypeOf:l,Promise:f,SafeSet:d,SymbolAsyncIterator:p,Symbol:h}=n(475);e.exports=M,M.ReadableState=U;const{EventEmitter:y}=n(7),{Stream:m,prependListener:g}=n(236),{Buffer:b}=n(287),{addAbortSignal:v}=n(792),E=n(627);let _=n(351).debuglog("stream",(e=>{_=e}));const w=n(220),T=n(261),{getHighWaterMark:I,getDefaultHighWaterMark:S}=n(646),{aggregateTwoErrors:N,codes:{ERR_INVALID_ARG_TYPE:A,ERR_METHOD_NOT_IMPLEMENTED:O,ERR_OUT_OF_RANGE:R,ERR_STREAM_PUSH_AFTER_EOF:D,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:x}}=n(760),{validateObject:L}=n(974),k=h("kPaused"),{StringDecoder:C}=n(141),B=n(207);l(M.prototype,m.prototype),l(M,m);const $=()=>{},{errorOrDestroy:F}=T;function U(e,t,r){"boolean"!=typeof r&&(r=t instanceof n(749)),this.objectMode=!(!e||!e.objectMode),r&&(this.objectMode=this.objectMode||!(!e||!e.readableObjectMode)),this.highWaterMark=e?I(this,e,"readableHighWaterMark",r):S(!1),this.buffer=new w,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[k]=null,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new C(e.encoding),this.encoding=e.encoding)}function M(e){if(!(this instanceof M))return new M(e);const t=this instanceof n(749);this._readableState=new U(e,this,t),e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&!t&&v(e.signal,this)),m.call(this,e),T.construct(this,(()=>{this._readableState.needReadable&&W(this,this._readableState)}))}function j(e,t,n,r){_("readableAddChunk",t);const i=e._readableState;let o;if(i.objectMode||("string"==typeof t?(n=n||i.defaultEncoding,i.encoding!==n&&(r&&i.encoding?t=b.from(t,n).toString(i.encoding):(t=b.from(t,n),n=""))):t instanceof b?n="":m._isUint8Array(t)?(t=m._uint8ArrayToBuffer(t),n=""):null!=t&&(o=new A("chunk",["string","Buffer","Uint8Array"],t))),o)F(e,o);else if(null===t)i.reading=!1,function(e,t){if(_("onEofChunk"),!t.ended){if(t.decoder){const e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?q(e):(t.needReadable=!1,t.emittedReadable=!0,G(e))}}(e,i);else if(i.objectMode||t&&t.length>0)if(r)if(i.endEmitted)F(e,new x);else{if(i.destroyed||i.errored)return!1;P(e,i,t,!0)}else if(i.ended)F(e,new D);else{if(i.destroyed||i.errored)return!1;i.reading=!1,i.decoder&&!n?(t=i.decoder.write(t),i.objectMode||0!==t.length?P(e,i,t,!1):W(e,i)):P(e,i,t,!1)}else r||(i.reading=!1,W(e,i));return!i.ended&&(i.length<i.highWaterMark||0===i.length)}function P(e,t,n,r){t.flowing&&0===t.length&&!t.sync&&e.listenerCount("data")>0?(t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&q(e)),W(e,t)}function V(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:s(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}function q(e){const t=e._readableState;_("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(_("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(G,e))}function G(e){const t=e._readableState;_("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||t.errored||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,z(e)}function W(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,r.nextTick(Q,e,t))}function Q(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){const n=t.length;if(_("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function Y(e){const t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!1===t[k]?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function J(e){_("readable nexttick read 0"),e.read(0)}function H(e,t){_("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),z(e),t.flowing&&!t.reading&&e.read(0)}function z(e){const t=e._readableState;for(_("flow",t.flowing);t.flowing&&null!==e.read(););}function K(e,t){"function"!=typeof e.read&&(e=M.wrap(e,{objectMode:!0}));const n=async function*(e,t){let n,r=$;function i(t){this===e?(r(),r=$):r=t}e.on("readable",i);const o=E(e,{writable:!1},(e=>{n=e?N(n,e):null,r(),r=$}));try{for(;;){const t=e.destroyed?null:e.read();if(null!==t)yield t;else{if(n)throw n;if(null===n)return;await new f(i)}}}catch(e){throw n=N(n,e),n}finally{!n&&!1===(null==t?void 0:t.destroyOnReturn)||void 0!==n&&!e._readableState.autoDestroy?(e.off("readable",i),o()):T.destroyer(e,null)}}(e,t);return n.stream=e,n}function X(e,t){if(0===t.length)return null;let n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function Z(e){const t=e._readableState;_("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(ee,t,e))}function ee(e,t){if(_("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&0===e.length)if(e.endEmitted=!0,t.emit("end"),t.writable&&!1===t.allowHalfOpen)r.nextTick(te,t);else if(e.autoDestroy){const e=t._writableState;(!e||e.autoDestroy&&(e.finished||!1===e.writable))&&t.destroy()}}function te(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}let ne;function re(){return void 0===ne&&(ne={}),ne}M.prototype.destroy=T.destroy,M.prototype._undestroy=T.undestroy,M.prototype._destroy=function(e,t){t(e)},M.prototype[y.captureRejectionSymbol]=function(e){this.destroy(e)},M.prototype.push=function(e,t){return j(this,e,t,!1)},M.prototype.unshift=function(e,t){return j(this,e,t,!0)},M.prototype.isPaused=function(){const e=this._readableState;return!0===e[k]||!1===e.flowing},M.prototype.setEncoding=function(e){const t=new C(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;const n=this._readableState.buffer;let r="";for(const e of n)r+=t.write(e);return n.clear(),""!==r&&n.push(r),this._readableState.length=r.length,this},M.prototype.read=function(e){_("read",e),void 0===e?e=NaN:o(e)||(e=a(e,10));const t=this._readableState,n=e;if(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>1073741824)throw new R("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,++e}(e)),0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return _("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?Z(this):q(this),null;if(0===(e=V(e,t))&&t.ended)return 0===t.length&&Z(this),null;let r,i=t.needReadable;if(_("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&(i=!0,_("length less than watermark",i)),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)i=!1,_("reading, ended or constructing",i);else if(i){_("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0);try{this._read(t.highWaterMark)}catch(e){F(this,e)}t.sync=!1,t.reading||(e=V(n,t))}return r=e>0?X(e,t):null,null===r?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&Z(this)),null===r||t.errorEmitted||t.closeEmitted||(t.dataEmitted=!0,this.emit("data",r)),r},M.prototype._read=function(e){throw new O("_read()")},M.prototype.pipe=function(e,t){const n=this,i=this._readableState;1===i.pipes.length&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new d(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(e),_("pipe count=%d opts=%j",i.pipes.length,t);const o=t&&!1===t.end||e===r.stdout||e===r.stderr?y:s;function s(){_("onend"),e.end()}let a;i.endEmitted?r.nextTick(o):n.once("end",o),e.on("unpipe",(function t(r,o){_("onunpipe"),r===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,_("cleanup"),e.removeListener("close",p),e.removeListener("finish",h),a&&e.removeListener("drain",a),e.removeListener("error",f),e.removeListener("unpipe",t),n.removeListener("end",s),n.removeListener("end",y),n.removeListener("data",l),u=!0,a&&i.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&a())}));let u=!1;function c(){u||(1===i.pipes.length&&i.pipes[0]===e?(_("false write response, pause",0),i.awaitDrainWriters=e,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(e)&&(_("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(e)),n.pause()),a||(a=function(e,t){return function(){const n=e._readableState;n.awaitDrainWriters===t?(_("pipeOnDrain",1),n.awaitDrainWriters=null):n.multiAwaitDrain&&(_("pipeOnDrain",n.awaitDrainWriters.size),n.awaitDrainWriters.delete(t)),n.awaitDrainWriters&&0!==n.awaitDrainWriters.size||!e.listenerCount("data")||e.resume()}}(n,e),e.on("drain",a))}function l(t){_("ondata");const n=e.write(t);_("dest.write",n),!1===n&&c()}function f(t){if(_("onerror",t),y(),e.removeListener("error",f),0===e.listenerCount("error")){const n=e._writableState||e._readableState;n&&!n.errorEmitted?F(e,t):e.emit("error",t)}}function p(){e.removeListener("finish",h),y()}function h(){_("onfinish"),e.removeListener("close",p),y()}function y(){_("unpipe"),n.unpipe(e)}return n.on("data",l),g(e,"error",f),e.once("close",p),e.once("finish",h),e.emit("pipe",n),!0===e.writableNeedDrain?i.flowing&&c():i.flowing||(_("pipe resume"),n.resume()),e},M.prototype.unpipe=function(e){const t=this._readableState;if(0===t.pipes.length)return this;if(!e){const e=t.pipes;t.pipes=[],this.pause();for(let t=0;t<e.length;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}const n=i(t.pipes,e);return-1===n||(t.pipes.splice(n,1),0===t.pipes.length&&this.pause(),e.emit("unpipe",this,{hasUnpiped:!1})),this},M.prototype.on=function(e,t){const n=m.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,_("on readable",i.length,i.reading),i.length?q(this):i.reading||r.nextTick(J,this))),n},M.prototype.addListener=M.prototype.on,M.prototype.removeListener=function(e,t){const n=m.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(Y,this),n},M.prototype.off=M.prototype.removeListener,M.prototype.removeAllListeners=function(e){const t=m.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(Y,this),t},M.prototype.resume=function(){const e=this._readableState;return e.flowing||(_("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(H,e,t))}(this,e)),e[k]=!1,this},M.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[k]=!0,this},M.prototype.wrap=function(e){let t=!1;e.on("data",(n=>{!this.push(n)&&e.pause&&(t=!0,e.pause())})),e.on("end",(()=>{this.push(null)})),e.on("error",(e=>{F(this,e)})),e.on("close",(()=>{this.destroy()})),e.on("destroy",(()=>{this.destroy()})),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};const n=c(e);for(let t=1;t<n.length;t++){const r=n[t];void 0===this[r]&&"function"==typeof e[r]&&(this[r]=e[r].bind(e))}return this},M.prototype[p]=function(){return K(this)},M.prototype.iterator=function(e){return void 0!==e&&L(e,"options"),K(this,e)},u(M.prototype,{readable:{__proto__:null,get(){const e=this._readableState;return!(!e||!1===e.readable||e.destroyed||e.errorEmitted||e.endEmitted)},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._readableState.readable||!this._readableState.destroyed&&!this._readableState.errored||this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),u(U.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[k]},set(e){this[k]=!!e}}}),M._fromList=X,M.from=function(e,t){return B(M,e,t)},M.fromWeb=function(e,t){return re().newStreamReadableFromReadableStream(e,t)},M.toWeb=function(e,t){return re().newReadableStreamFromStreamReadable(e,t)},M.wrap=function(e,t){var n,r;return new M({objectMode:null===(n=null!==(r=e.readableObjectMode)&&void 0!==r?r:e.objectMode)||void 0===n||n,...t,destroy(t,n){T.destroyer(e,t),n(t)}}).wrap(e)}},749:(e,t,n)=>{"use strict";const{ObjectDefineProperties:r,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:o,ObjectSetPrototypeOf:s}=n(475);e.exports=c;const a=n(747),u=n(588);s(c.prototype,a.prototype),s(c,a);{const e=o(u.prototype);for(let t=0;t<e.length;t++){const n=e[t];c.prototype[n]||(c.prototype[n]=u.prototype[n])}}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),u.call(this,e),e?(this.allowHalfOpen=!1!==e.allowHalfOpen,!1===e.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===e.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}let l,f;function d(){return void 0===l&&(l={}),l}r(c.prototype,{writable:{__proto__:null,...i(u.prototype,"writable")},writableHighWaterMark:{__proto__:null,...i(u.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...i(u.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...i(u.prototype,"writableBuffer")},writableLength:{__proto__:null,...i(u.prototype,"writableLength")},writableFinished:{__proto__:null,...i(u.prototype,"writableFinished")},writableCorked:{__proto__:null,...i(u.prototype,"writableCorked")},writableEnded:{__proto__:null,...i(u.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...i(u.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}}),c.fromWeb=function(e,t){return d().newStreamDuplexFromReadableWritablePair(e,t)},c.toWeb=function(e){return d().newReadableWritablePairFromDuplex(e)},c.from=function(e){return f||(f=n(603)),f(e,"body")}},760:(e,t,n)=>{"use strict";const{format:r,inspect:i,AggregateError:o}=n(351),s=globalThis.AggregateError||o,a=Symbol("kIsNodeError"),u=["string","function","number","object","Function","Object","boolean","bigint","symbol"],c=/^([A-Z][a-z0-9]*)+$/,l={};function f(e,t){if(!e)throw new l.ERR_INTERNAL_ASSERTION(t)}function d(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function p(e,t,n){n||(n=Error);class i extends n{constructor(...n){super(function(e,t,n){if("function"==typeof t)return f(t.length<=n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${t.length}).`),t(...n);const i=(t.match(/%[dfijoOs]/g)||[]).length;return f(i===n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${i}).`),0===n.length?t:r(t,...n)}(e,t,n))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:n.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=e,i.prototype[a]=!0,l[e]=i}function h(e){const t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}class y extends Error{constructor(e="The operation was aborted",t=void 0){if(void 0!==t&&"object"!=typeof t)throw new l.ERR_INVALID_ARG_TYPE("options","Object",t);super(e,t),this.code="ABORT_ERR",this.name="AbortError"}}p("ERR_ASSERTION","%s",Error),p("ERR_INVALID_ARG_TYPE",((e,t,n)=>{f("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let r="The ";e.endsWith(" argument")?r+=`${e} `:r+=`"${e}" ${e.includes(".")?"property":"argument"} `,r+="must be ";const o=[],s=[],a=[];for(const e of t)f("string"==typeof e,"All expected entries have to be of type string"),u.includes(e)?o.push(e.toLowerCase()):c.test(e)?s.push(e):(f("object"!==e,'The value "object" should be written as "Object"'),a.push(e));if(s.length>0){const e=o.indexOf("object");-1!==e&&(o.splice(o,e,1),s.push("Object"))}if(o.length>0){switch(o.length){case 1:r+=`of type ${o[0]}`;break;case 2:r+=`one of type ${o[0]} or ${o[1]}`;break;default:{const e=o.pop();r+=`one of type ${o.join(", ")}, or ${e}`}}(s.length>0||a.length>0)&&(r+=" or ")}if(s.length>0){switch(s.length){case 1:r+=`an instance of ${s[0]}`;break;case 2:r+=`an instance of ${s[0]} or ${s[1]}`;break;default:{const e=s.pop();r+=`an instance of ${s.join(", ")}, or ${e}`}}a.length>0&&(r+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(r+="an "),r+=`${a[0]}`;break;case 2:r+=`one of ${a[0]} or ${a[1]}`;break;default:{const e=a.pop();r+=`one of ${a.join(", ")}, or ${e}`}}if(null==n)r+=`. Received ${n}`;else if("function"==typeof n&&n.name)r+=`. Received function ${n.name}`;else if("object"==typeof n){var l;null!==(l=n.constructor)&&void 0!==l&&l.name?r+=`. Received an instance of ${n.constructor.name}`:r+=`. Received ${i(n,{depth:-1})}`}else{let e=i(n,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),r+=`. Received type ${typeof n} (${e})`}return r}),TypeError),p("ERR_INVALID_ARG_VALUE",((e,t,n="is invalid")=>{let r=i(t);return r.length>128&&(r=r.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${n}. Received ${r}`}),TypeError),p("ERR_INVALID_RETURN_VALUE",((e,t,n)=>{var r;return`Expected ${e} to be returned from the "${t}" function but got ${null!=n&&null!==(r=n.constructor)&&void 0!==r&&r.name?`instance of ${n.constructor.name}`:"type "+typeof n}.`}),TypeError),p("ERR_MISSING_ARGS",((...e)=>{let t;f(e.length>0,"At least one arg needs to be specified");const n=e.length;switch(e=(Array.isArray(e)?e:[e]).map((e=>`"${e}"`)).join(" or "),n){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const n=e.pop();t+=`The ${e.join(", ")}, and ${n} arguments`}}return`${t} must be specified`}),TypeError),p("ERR_OUT_OF_RANGE",((e,t,n)=>{let r;return f(t,'Missing "range" argument'),Number.isInteger(n)&&Math.abs(n)>2**32?r=d(String(n)):"bigint"==typeof n?(r=String(n),(n>2n**32n||n<-(2n**32n))&&(r=d(r)),r+="n"):r=i(n),`The value of "${e}" is out of range. It must be ${t}. Received ${r}`}),RangeError),p("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),p("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),p("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),p("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),p("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),p("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),p("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),p("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),p("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),p("ERR_STREAM_WRITE_AFTER_END","write after end",Error),p("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),e.exports={AbortError:y,aggregateTwoErrors:h((function(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const n=new s([t,e],t.message);return n.code=t.code,n}return e||t})),hideStackFrames:h,codes:l}},780:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultJsonSerializer=void 0,t.defaultJsonSerializer=JSON},792:(e,t,n)=>{"use strict";const{AbortError:r,codes:i}=n(760),{isNodeStream:o,isWebStream:s,kControllerErrorFunction:a}=n(734),u=n(627),{ERR_INVALID_ARG_TYPE:c}=i;e.exports.addAbortSignal=function(t,n){if((e=>{if("object"!=typeof e||!("aborted"in e))throw new c("signal","AbortSignal",e)})(t),!o(n)&&!s(n))throw new c("stream",["ReadableStream","WritableStream","Stream"],n);return e.exports.addAbortSignalNoValidate(t,n)},e.exports.addAbortSignalNoValidate=function(e,t){if("object"!=typeof e||!("aborted"in e))return t;const n=o(t)?()=>{t.destroy(new r(void 0,{cause:e.reason}))}:()=>{t[a](new r(void 0,{cause:e.reason}))};return e.aborted?n():(e.addEventListener("abort",n),u(t,(()=>e.removeEventListener("abort",n)))),t}},802:e=>{e.exports=function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){if(o)return o(s,!0);throw new Error("Cannot find module '"+s+"'")}a=n[s]={exports:{}},t[s][0].call(a.exports,(function(e){return i(t[s][1][e]||e)}),a,a.exports,e,t,n,r)}return n[s].exports}for(var o=void 0,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){(function(r,i,o,s,a,u,c,l,f){"use strict";var d=e("crypto");function p(e,t){var n;return void 0===(n="passthrough"!==(t=m(e,t)).algorithm?d.createHash(t.algorithm):new v).write&&(n.write=n.update,n.end=n.update),b(t,n).dispatch(e),n.update||n.end(""),n.digest?n.digest("buffer"===t.encoding?void 0:t.encoding):(e=n.read(),"buffer"!==t.encoding?e.toString(t.encoding):e)}(n=t.exports=p).sha1=function(e){return p(e)},n.keys=function(e){return p(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},n.MD5=function(e){return p(e,{algorithm:"md5",encoding:"hex"})},n.keysMD5=function(e){return p(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var h=d.getHashes?d.getHashes().slice():["sha1","md5"],y=(h.push("passthrough"),["buffer","hex","binary","base64"]);function m(e,t){var n={};if(n.algorithm=(t=t||{}).algorithm||"sha1",n.encoding=t.encoding||"hex",n.excludeValues=!!t.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=!0===t.ignoreUnknown,n.respectType=!1!==t.respectType,n.respectFunctionNames=!1!==t.respectFunctionNames,n.respectFunctionProperties=!1!==t.respectFunctionProperties,n.unorderedArrays=!0===t.unorderedArrays,n.unorderedSets=!1!==t.unorderedSets,n.unorderedObjects=!1!==t.unorderedObjects,n.replacer=t.replacer||void 0,n.excludeKeys=t.excludeKeys||void 0,void 0===e)throw new Error("Object argument required.");for(var r=0;r<h.length;++r)h[r].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=h[r]);if(-1===h.indexOf(n.algorithm))throw new Error('Algorithm "'+n.algorithm+'" not supported. supported values: '+h.join(", "));if(-1===y.indexOf(n.encoding)&&"passthrough"!==n.algorithm)throw new Error('Encoding "'+n.encoding+'" not supported. supported values: '+y.join(", "));return n}function g(e){if("function"==typeof e)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function b(e,t,n){function r(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return n=n||[],{dispatch:function(t){return this["_"+(null===(t=e.replacer?e.replacer(t):t)?"null":typeof t)](t)},_object:function(t){var i,s=Object.prototype.toString.call(t),a=/\[object (.*)\]/i.exec(s);if(a=(a=a?a[1]:"unknown:["+s+"]").toLowerCase(),0<=(s=n.indexOf(t)))return this.dispatch("[CIRCULAR:"+s+"]");if(n.push(t),void 0!==o&&o.isBuffer&&o.isBuffer(t))return r("buffer:"),r(t);if("object"===a||"function"===a||"asyncfunction"===a)return s=Object.keys(t),e.unorderedObjects&&(s=s.sort()),!1===e.respectType||g(t)||s.splice(0,0,"prototype","__proto__","constructor"),e.excludeKeys&&(s=s.filter((function(t){return!e.excludeKeys(t)}))),r("object:"+s.length+":"),i=this,s.forEach((function(n){i.dispatch(n),r(":"),e.excludeValues||i.dispatch(t[n]),r(",")}));if(!this["_"+a]){if(e.ignoreUnknown)return r("["+a+"]");throw new Error('Unknown object type "'+a+'"')}this["_"+a](t)},_array:function(t,i){i=void 0!==i?i:!1!==e.unorderedArrays;var o=this;if(r("array:"+t.length+":"),!i||t.length<=1)return t.forEach((function(e){return o.dispatch(e)}));var s=[];return i=t.map((function(t){var r=new v,i=n.slice();return b(e,r,i).dispatch(t),s=s.concat(i.slice(n.length)),r.read().toString()})),n=n.concat(s),i.sort(),this._array(i,!1)},_date:function(e){return r("date:"+e.toJSON())},_symbol:function(e){return r("symbol:"+e.toString())},_error:function(e){return r("error:"+e.toString())},_boolean:function(e){return r("bool:"+e.toString())},_string:function(e){r("string:"+e.length+":"),r(e.toString())},_function:function(t){r("fn:"),g(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return r("number:"+e.toString())},_xml:function(e){return r("xml:"+e.toString())},_null:function(){return r("Null")},_undefined:function(){return r("Undefined")},_regexp:function(e){return r("regex:"+e.toString())},_uint8array:function(e){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return r("int8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return r("int16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return r("int32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return r("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return r("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return r("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return r("url:"+e.toString())},_map:function(t){return r("map:"),t=Array.from(t),this._array(t,!1!==e.unorderedSets)},_set:function(t){return r("set:"),t=Array.from(t),this._array(t,!1!==e.unorderedSets)},_file:function(e){return r("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return r("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return r("domwindow")},_bigint:function(e){return r("bigint:"+e.toString())},_process:function(){return r("process")},_timer:function(){return r("timer")},_pipe:function(){return r("pipe")},_tcp:function(){return r("tcp")},_udp:function(){return r("udp")},_tty:function(){return r("tty")},_statwatcher:function(){return r("statwatcher")},_securecontext:function(){return r("securecontext")},_connection:function(){return r("connection")},_zlib:function(){return r("zlib")},_context:function(){return r("context")},_nodescript:function(){return r("nodescript")},_httpparser:function(){return r("httpparser")},_dataview:function(){return r("dataview")},_signal:function(){return r("signal")},_fsevent:function(){return r("fsevent")},_tlswrap:function(){return r("tlswrap")}}}function v(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}n.writeToStream=function(e,t,n){return void 0===n&&(n=t,t={}),b(t=m(e,t),n).dispatch(e)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(e,t,n){(function(e,t,r,i,o,s,a,u,c){!function(e){"use strict";var t="undefined"!=typeof Uint8Array?Uint8Array:Array,n="+".charCodeAt(0),r="/".charCodeAt(0),i="0".charCodeAt(0),o="a".charCodeAt(0),s="A".charCodeAt(0),a="-".charCodeAt(0),u="_".charCodeAt(0);function c(e){return(e=e.charCodeAt(0))===n||e===a?62:e===r||e===u?63:e<i?-1:e<i+10?e-i+26+26:e<s+26?e-s:e<o+26?e-o+26:void 0}e.toByteArray=function(e){var n,r;if(0<e.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.length,o=(i="="===e.charAt(i-2)?2:"="===e.charAt(i-1)?1:0,new t(3*e.length/4-i)),s=0<i?e.length-4:e.length,a=0;function u(e){o[a++]=e}for(n=0;n<s;n+=4,0)u((16711680&(r=c(e.charAt(n))<<18|c(e.charAt(n+1))<<12|c(e.charAt(n+2))<<6|c(e.charAt(n+3))))>>16),u((65280&r)>>8),u(255&r);return 2==i?u(255&(r=c(e.charAt(n))<<2|c(e.charAt(n+1))>>4)):1==i&&(u((r=c(e.charAt(n))<<10|c(e.charAt(n+1))<<4|c(e.charAt(n+2))>>2)>>8&255),u(255&r)),o},e.fromByteArray=function(e){var t,n,r,i,o=e.length%3,s="";function a(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.length-o;t<r;t+=3)s+=a((i=n=(e[t]<<16)+(e[t+1]<<8)+e[t+2])>>18&63)+a(i>>12&63)+a(i>>6&63)+a(63&i);switch(o){case 1:s=(s+=a((n=e[e.length-1])>>2))+a(n<<4&63)+"==";break;case 2:s=(s=(s+=a((n=(e[e.length-2]<<8)+e[e.length-1])>>10))+a(n>>4&63))+a(n<<2&63)+"="}return s}}(void 0===n?this.base64js={}:n)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(e,t,n){(function(t,r,i,o,s,a,u,c,l){var f=e("base64-js"),d=e("ieee754");function i(e,t,n){if(!(this instanceof i))return new i(e,t,n);var r,o,s,a,u=typeof e;if("base64"===t&&"string"==u)for(e=(a=e).trim?a.trim():a.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==u)r=A(e);else if("string"==u)r=i.byteLength(e,t);else{if("object"!=u)throw new Error("First argument needs to be a number, array or string.");r=A(e.length)}if(i._useTypedArrays?o=i._augment(new Uint8Array(r)):((o=this).length=r,o._isBuffer=!0),i._useTypedArrays&&"number"==typeof e.byteLength)o._set(e);else if(O(a=e)||i.isBuffer(a)||a&&"object"==typeof a&&"number"==typeof a.length)for(s=0;s<r;s++)i.isBuffer(e)?o[s]=e.readUInt8(s):o[s]=e[s];else if("string"==u)o.write(e,0,t);else if("number"==u&&!i._useTypedArrays&&!n)for(s=0;s<r;s++)o[s]=0;return o}function p(e,t,n,r){var i;if(r||(F("boolean"==typeof n,"missing or invalid endian"),F(null!=t,"missing offset"),F(t+1<e.length,"Trying to read beyond buffer length")),!((r=e.length)<=t))return n?(i=e[t],t+1<r&&(i|=e[t+1]<<8)):(i=e[t]<<8,t+1<r&&(i|=e[t+1])),i}function h(e,t,n,r){var i;if(r||(F("boolean"==typeof n,"missing or invalid endian"),F(null!=t,"missing offset"),F(t+3<e.length,"Trying to read beyond buffer length")),!((r=e.length)<=t))return n?(t+2<r&&(i=e[t+2]<<16),t+1<r&&(i|=e[t+1]<<8),i|=e[t],t+3<r&&(i+=e[t+3]<<24>>>0)):(t+1<r&&(i=e[t+1]<<16),t+2<r&&(i|=e[t+2]<<8),t+3<r&&(i|=e[t+3]),i+=e[t]<<24>>>0),i}function y(e,t,n,r){if(r||(F("boolean"==typeof n,"missing or invalid endian"),F(null!=t,"missing offset"),F(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t))return 32768&(r=p(e,t,n,!0))?-1*(65535-r+1):r}function m(e,t,n,r){if(r||(F("boolean"==typeof n,"missing or invalid endian"),F(null!=t,"missing offset"),F(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t))return 2147483648&(r=h(e,t,n,!0))?-1*(4294967295-r+1):r}function g(e,t,n,r){return r||(F("boolean"==typeof n,"missing or invalid endian"),F(t+3<e.length,"Trying to read beyond buffer length")),d.read(e,t,n,23,4)}function b(e,t,n,r){return r||(F("boolean"==typeof n,"missing or invalid endian"),F(t+7<e.length,"Trying to read beyond buffer length")),d.read(e,t,n,52,8)}function v(e,t,n,r,i){if(i||(F(null!=t,"missing value"),F("boolean"==typeof r,"missing or invalid endian"),F(null!=n,"missing offset"),F(n+1<e.length,"trying to write beyond buffer length"),C(t,65535)),!((i=e.length)<=n))for(var o=0,s=Math.min(i-n,2);o<s;o++)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function E(e,t,n,r,i){if(i||(F(null!=t,"missing value"),F("boolean"==typeof r,"missing or invalid endian"),F(null!=n,"missing offset"),F(n+3<e.length,"trying to write beyond buffer length"),C(t,4294967295)),!((i=e.length)<=n))for(var o=0,s=Math.min(i-n,4);o<s;o++)e[n+o]=t>>>8*(r?o:3-o)&255}function _(e,t,n,r,i){i||(F(null!=t,"missing value"),F("boolean"==typeof r,"missing or invalid endian"),F(null!=n,"missing offset"),F(n+1<e.length,"Trying to write beyond buffer length"),B(t,32767,-32768)),e.length<=n||v(e,0<=t?t:65535+t+1,n,r,i)}function w(e,t,n,r,i){i||(F(null!=t,"missing value"),F("boolean"==typeof r,"missing or invalid endian"),F(null!=n,"missing offset"),F(n+3<e.length,"Trying to write beyond buffer length"),B(t,2147483647,-2147483648)),e.length<=n||E(e,0<=t?t:4294967295+t+1,n,r,i)}function T(e,t,n,r,i){i||(F(null!=t,"missing value"),F("boolean"==typeof r,"missing or invalid endian"),F(null!=n,"missing offset"),F(n+3<e.length,"Trying to write beyond buffer length"),$(t,34028234663852886e22,-34028234663852886e22)),e.length<=n||d.write(e,t,n,r,23,4)}function I(e,t,n,r,i){i||(F(null!=t,"missing value"),F("boolean"==typeof r,"missing or invalid endian"),F(null!=n,"missing offset"),F(n+7<e.length,"Trying to write beyond buffer length"),$(t,17976931348623157e292,-17976931348623157e292)),e.length<=n||d.write(e,t,n,r,52,8)}n.Buffer=i,n.SlowBuffer=i,n.INSPECT_MAX_BYTES=50,i.poolSize=8192,i._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return!1}}(),i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=D(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=x(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw new Error("Unknown encoding")}return n},i.concat=function(e,t){if(F(O(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new i(0);if(1===e.length)return e[0];if("number"!=typeof t)for(o=t=0;o<e.length;o++)t+=e[o].length;for(var n=new i(t),r=0,o=0;o<e.length;o++){var s=e[o];s.copy(n,r),r+=s.length}return n},i.prototype.write=function(e,t,n,r){isFinite(t)?isFinite(n)||(r=n,n=void 0):(c=r,r=t,t=n,n=c),t=Number(t)||0;var o,s,a,u,c=this.length-t;switch((!n||c<(n=Number(n)))&&(n=c),r=String(r||"utf8").toLowerCase()){case"hex":o=function(e,t,n,r){n=Number(n)||0;var o=e.length-n;(!r||o<(r=Number(r)))&&(r=o),F((o=t.length)%2==0,"Invalid hex string"),o/2<r&&(r=o/2);for(var s=0;s<r;s++){var a=parseInt(t.substr(2*s,2),16);F(!isNaN(a),"Invalid hex string"),e[n+s]=a}return i._charsWritten=2*s,s}(this,e,t,n);break;case"utf8":case"utf-8":s=this,a=t,u=n,o=i._charsWritten=L(D(e),s,a,u);break;case"ascii":case"binary":o=function(e,t,n,r){return i._charsWritten=L(function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}(this,e,t,n);break;case"base64":s=this,a=t,u=n,o=i._charsWritten=L(x(e),s,a,u);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":o=function(e,t,n,r){return i._charsWritten=L(function(e){for(var t,n,r=[],i=0;i<e.length;i++)t=(n=e.charCodeAt(i))>>8,n%=256,r.push(n),r.push(t);return r}(t),e,n,r)}(this,e,t,n);break;default:throw new Error("Unknown encoding")}return o},i.prototype.toString=function(e,t,n){var r,i,o,s,a=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):a.length)===t)return"";switch(e){case"hex":r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||r<n)&&(n=r);for(var i="",o=t;o<n;o++)i+=R(e[o]);return i}(a,t,n);break;case"utf8":case"utf-8":r=function(e,t,n){var r="",i="";n=Math.min(e.length,n);for(var o=t;o<n;o++)e[o]<=127?(r+=k(i)+String.fromCharCode(e[o]),i=""):i+="%"+e[o].toString(16);return r+k(i)}(a,t,n);break;case"ascii":case"binary":r=function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;i++)r+=String.fromCharCode(e[i]);return r}(a,t,n);break;case"base64":i=a,s=n,r=0===(o=t)&&s===i.length?f.fromByteArray(i):f.fromByteArray(i.slice(o,s));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=function(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}(a,t,n);break;default:throw new Error("Unknown encoding")}return r},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.copy=function(e,t,n,r){if(t=t||0,(r=r||0===r?r:this.length)!==(n=n||0)&&0!==e.length&&0!==this.length){F(n<=r,"sourceEnd < sourceStart"),F(0<=t&&t<e.length,"targetStart out of bounds"),F(0<=n&&n<this.length,"sourceStart out of bounds"),F(0<=r&&r<=this.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length);var o=(r=e.length-t<r-n?e.length-t+n:r)-n;if(o<100||!i._useTypedArrays)for(var s=0;s<o;s++)e[s+t]=this[s+n];else e._set(this.subarray(n,n+o),t)}},i.prototype.slice=function(e,t){var n=this.length;if(e=N(e,n,0),t=N(t,n,n),i._useTypedArrays)return i._augment(this.subarray(e,t));for(var r=t-e,o=new i(r,void 0,!0),s=0;s<r;s++)o[s]=this[s+e];return o},i.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},i.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},i.prototype.readUInt8=function(e,t){if(t||(F(null!=e,"missing offset"),F(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},i.prototype.readUInt16LE=function(e,t){return p(this,e,!0,t)},i.prototype.readUInt16BE=function(e,t){return p(this,e,!1,t)},i.prototype.readUInt32LE=function(e,t){return h(this,e,!0,t)},i.prototype.readUInt32BE=function(e,t){return h(this,e,!1,t)},i.prototype.readInt8=function(e,t){if(t||(F(null!=e,"missing offset"),F(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){return y(this,e,!0,t)},i.prototype.readInt16BE=function(e,t){return y(this,e,!1,t)},i.prototype.readInt32LE=function(e,t){return m(this,e,!0,t)},i.prototype.readInt32BE=function(e,t){return m(this,e,!1,t)},i.prototype.readFloatLE=function(e,t){return g(this,e,!0,t)},i.prototype.readFloatBE=function(e,t){return g(this,e,!1,t)},i.prototype.readDoubleLE=function(e,t){return b(this,e,!0,t)},i.prototype.readDoubleBE=function(e,t){return b(this,e,!1,t)},i.prototype.writeUInt8=function(e,t,n){n||(F(null!=e,"missing value"),F(null!=t,"missing offset"),F(t<this.length,"trying to write beyond buffer length"),C(e,255)),t>=this.length||(this[t]=e)},i.prototype.writeUInt16LE=function(e,t,n){v(this,e,t,!0,n)},i.prototype.writeUInt16BE=function(e,t,n){v(this,e,t,!1,n)},i.prototype.writeUInt32LE=function(e,t,n){E(this,e,t,!0,n)},i.prototype.writeUInt32BE=function(e,t,n){E(this,e,t,!1,n)},i.prototype.writeInt8=function(e,t,n){n||(F(null!=e,"missing value"),F(null!=t,"missing offset"),F(t<this.length,"Trying to write beyond buffer length"),B(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},i.prototype.writeInt16LE=function(e,t,n){_(this,e,t,!0,n)},i.prototype.writeInt16BE=function(e,t,n){_(this,e,t,!1,n)},i.prototype.writeInt32LE=function(e,t,n){w(this,e,t,!0,n)},i.prototype.writeInt32BE=function(e,t,n){w(this,e,t,!1,n)},i.prototype.writeFloatLE=function(e,t,n){T(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){T(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){I(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){I(this,e,t,!1,n)},i.prototype.fill=function(e,t,n){if(t=t||0,n=n||this.length,F("number"==typeof(e="string"==typeof(e=e||0)?e.charCodeAt(0):e)&&!isNaN(e),"value is not a number"),F(t<=n,"end < start"),n!==t&&0!==this.length){F(0<=t&&t<this.length,"start out of bounds"),F(0<=n&&n<=this.length,"end out of bounds");for(var r=t;r<n;r++)this[r]=e}},i.prototype.inspect=function(){for(var e=[],t=this.length,r=0;r<t;r++)if(e[r]=R(this[r]),r===n.INSPECT_MAX_BYTES){e[r+1]="...";break}return"<Buffer "+e.join(" ")+">"},i.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(i._useTypedArrays)return new i(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t<n;t+=1)e[t]=this[t];return e.buffer};var S=i.prototype;function N(e,t,n){return"number"!=typeof e?n:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function A(e){return(e=~~Math.ceil(+e))<0?0:e}function O(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function R(e){return e<16?"0"+e.toString(16):e.toString(16)}function D(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(e.charCodeAt(n));else for(var i=n,o=(55296<=r&&r<=57343&&n++,encodeURIComponent(e.slice(i,n+1)).substr(1).split("%")),s=0;s<o.length;s++)t.push(parseInt(o[s],16))}return t}function x(e){return f.toByteArray(e)}function L(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);i++)t[i+n]=e[i];return i}function k(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function C(e,t){F("number"==typeof e,"cannot write a non-number as a number"),F(0<=e,"specified a negative value for writing an unsigned value"),F(e<=t,"value is larger than maximum value for type"),F(Math.floor(e)===e,"value has a fractional component")}function B(e,t,n){F("number"==typeof e,"cannot write a non-number as a number"),F(e<=t,"value larger than maximum allowed value"),F(n<=e,"value smaller than minimum allowed value"),F(Math.floor(e)===e,"value has a fractional component")}function $(e,t,n){F("number"==typeof e,"cannot write a non-number as a number"),F(e<=t,"value larger than maximum allowed value"),F(n<=e,"value smaller than minimum allowed value")}function F(e,t){if(!e)throw new Error(t||"Failed assertion")}i._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=S.get,e.set=S.set,e.write=S.write,e.toString=S.toString,e.toLocaleString=S.toString,e.toJSON=S.toJSON,e.copy=S.copy,e.slice=S.slice,e.readUInt8=S.readUInt8,e.readUInt16LE=S.readUInt16LE,e.readUInt16BE=S.readUInt16BE,e.readUInt32LE=S.readUInt32LE,e.readUInt32BE=S.readUInt32BE,e.readInt8=S.readInt8,e.readInt16LE=S.readInt16LE,e.readInt16BE=S.readInt16BE,e.readInt32LE=S.readInt32LE,e.readInt32BE=S.readInt32BE,e.readFloatLE=S.readFloatLE,e.readFloatBE=S.readFloatBE,e.readDoubleLE=S.readDoubleLE,e.readDoubleBE=S.readDoubleBE,e.writeUInt8=S.writeUInt8,e.writeUInt16LE=S.writeUInt16LE,e.writeUInt16BE=S.writeUInt16BE,e.writeUInt32LE=S.writeUInt32LE,e.writeUInt32BE=S.writeUInt32BE,e.writeInt8=S.writeInt8,e.writeInt16LE=S.writeInt16LE,e.writeInt16BE=S.writeInt16BE,e.writeInt32LE=S.writeInt32LE,e.writeInt32BE=S.writeInt32BE,e.writeFloatLE=S.writeFloatLE,e.writeFloatBE=S.writeFloatBE,e.writeDoubleLE=S.writeDoubleLE,e.writeDoubleBE=S.writeDoubleBE,e.fill=S.fill,e.inspect=S.inspect,e.toArrayBuffer=S.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(e,t,n){(function(n,r,i,o,s,a,u,c,l){i=e("buffer").Buffer;var f=new i(4);f.fill(0),t.exports={hash:function(e,t,n,r){for(var o=t(function(e,t){e.length%4!=0&&(n=e.length+(4-e.length%4),e=i.concat([e,f],n));for(var n,r=[],o=t?e.readInt32BE:e.readInt32LE,s=0;s<e.length;s+=4)r.push(o.call(e,s));return r}(e=i.isBuffer(e)?e:new i(e),r),8*e.length),s=(t=r,new i(n)),a=t?s.writeInt32BE:s.writeInt32LE,u=0;u<o.length;u++)a.call(s,o[u],4*u,!0);return s}}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(e,t,n){(function(t,r,i,o,s,a,u,c,l){i=e("buffer").Buffer;var f=e("./sha"),d=e("./sha256"),p=e("./rng"),h={sha1:f,sha256:d,md5:e("./md5")},y=64,m=new i(y);function g(e,t){var n=h[e=e||"sha1"],r=[];return n||b("algorithm:",e,"is not yet supported"),{update:function(e){return i.isBuffer(e)||(e=new i(e)),r.push(e),e.length,this},digest:function(e){var o=i.concat(r);return o=t?function(e,t,n){i.isBuffer(t)||(t=new i(t)),i.isBuffer(n)||(n=new i(n)),t.length>y?t=e(t):t.length<y&&(t=i.concat([t,m],y));for(var r=new i(y),o=new i(y),s=0;s<y;s++)r[s]=54^t[s],o[s]=92^t[s];return n=e(i.concat([r,n])),e(i.concat([o,n]))}(n,t,o):n(o),r=null,e?o.toString(e):o}}}function b(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}m.fill(0),n.createHash=function(e){return g(e)},n.createHmac=g,n.randomBytes=function(e,t){if(!t||!t.call)return new i(p(e));try{t.call(this,void 0,new i(p(e)))}catch(e){t(e)}};var v,E=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],_=function(e){n[e]=function(){b("sorry,",e,"is not implemented yet")}};for(v in E)_(E[v])}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(e,t,n){(function(n,r,i,o,s,a,u,c,l){var f=e("./helpers");function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=n,u=r,c=i,l=o;n=h(n,r,i,o,e[s+0],7,-680876936),o=h(o,n,r,i,e[s+1],12,-389564586),i=h(i,o,n,r,e[s+2],17,606105819),r=h(r,i,o,n,e[s+3],22,-1044525330),n=h(n,r,i,o,e[s+4],7,-176418897),o=h(o,n,r,i,e[s+5],12,1200080426),i=h(i,o,n,r,e[s+6],17,-1473231341),r=h(r,i,o,n,e[s+7],22,-45705983),n=h(n,r,i,o,e[s+8],7,1770035416),o=h(o,n,r,i,e[s+9],12,-1958414417),i=h(i,o,n,r,e[s+10],17,-42063),r=h(r,i,o,n,e[s+11],22,-1990404162),n=h(n,r,i,o,e[s+12],7,1804603682),o=h(o,n,r,i,e[s+13],12,-40341101),i=h(i,o,n,r,e[s+14],17,-1502002290),n=y(n,r=h(r,i,o,n,e[s+15],22,1236535329),i,o,e[s+1],5,-165796510),o=y(o,n,r,i,e[s+6],9,-1069501632),i=y(i,o,n,r,e[s+11],14,643717713),r=y(r,i,o,n,e[s+0],20,-373897302),n=y(n,r,i,o,e[s+5],5,-701558691),o=y(o,n,r,i,e[s+10],9,38016083),i=y(i,o,n,r,e[s+15],14,-660478335),r=y(r,i,o,n,e[s+4],20,-405537848),n=y(n,r,i,o,e[s+9],5,568446438),o=y(o,n,r,i,e[s+14],9,-1019803690),i=y(i,o,n,r,e[s+3],14,-187363961),r=y(r,i,o,n,e[s+8],20,1163531501),n=y(n,r,i,o,e[s+13],5,-1444681467),o=y(o,n,r,i,e[s+2],9,-51403784),i=y(i,o,n,r,e[s+7],14,1735328473),n=m(n,r=y(r,i,o,n,e[s+12],20,-1926607734),i,o,e[s+5],4,-378558),o=m(o,n,r,i,e[s+8],11,-2022574463),i=m(i,o,n,r,e[s+11],16,1839030562),r=m(r,i,o,n,e[s+14],23,-35309556),n=m(n,r,i,o,e[s+1],4,-1530992060),o=m(o,n,r,i,e[s+4],11,1272893353),i=m(i,o,n,r,e[s+7],16,-155497632),r=m(r,i,o,n,e[s+10],23,-1094730640),n=m(n,r,i,o,e[s+13],4,681279174),o=m(o,n,r,i,e[s+0],11,-358537222),i=m(i,o,n,r,e[s+3],16,-722521979),r=m(r,i,o,n,e[s+6],23,76029189),n=m(n,r,i,o,e[s+9],4,-640364487),o=m(o,n,r,i,e[s+12],11,-421815835),i=m(i,o,n,r,e[s+15],16,530742520),n=g(n,r=m(r,i,o,n,e[s+2],23,-995338651),i,o,e[s+0],6,-198630844),o=g(o,n,r,i,e[s+7],10,1126891415),i=g(i,o,n,r,e[s+14],15,-1416354905),r=g(r,i,o,n,e[s+5],21,-57434055),n=g(n,r,i,o,e[s+12],6,1700485571),o=g(o,n,r,i,e[s+3],10,-1894986606),i=g(i,o,n,r,e[s+10],15,-1051523),r=g(r,i,o,n,e[s+1],21,-2054922799),n=g(n,r,i,o,e[s+8],6,1873313359),o=g(o,n,r,i,e[s+15],10,-30611744),i=g(i,o,n,r,e[s+6],15,-1560198380),r=g(r,i,o,n,e[s+13],21,1309151649),n=g(n,r,i,o,e[s+4],6,-145523070),o=g(o,n,r,i,e[s+11],10,-1120210379),i=g(i,o,n,r,e[s+2],15,718787259),r=g(r,i,o,n,e[s+9],21,-343485551),n=b(n,a),r=b(r,u),i=b(i,c),o=b(o,l)}return Array(n,r,i,o)}function p(e,t,n,r,i,o){return b((t=b(b(t,e),b(r,o)))<<i|t>>>32-i,n)}function h(e,t,n,r,i,o,s){return p(t&n|~t&r,e,t,i,o,s)}function y(e,t,n,r,i,o,s){return p(t&r|n&~r,e,t,i,o,s)}function m(e,t,n,r,i,o,s){return p(t^n^r,e,t,i,o,s)}function g(e,t,n,r,i,o,s){return p(n^(t|~r),e,t,i,o,s)}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.exports=function(e){return f.hash(e,d,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,n){(function(e,n,r,i,o,s,a,u,c){t.exports=function(e){for(var t,n=new Array(e),r=0;r<e;r++)!(3&r)&&(t=4294967296*Math.random()),n[r]=t>>>((3&r)<<3)&255;return n}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(e,t,n){(function(n,r,i,o,s,a,u,c,l){var f=e("./helpers");function d(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,r,i,o=Array(80),s=1732584193,a=-271733879,u=-1732584194,c=271733878,l=-1009589776,f=0;f<e.length;f+=16){for(var d=s,y=a,m=u,g=c,b=l,v=0;v<80;v++){o[v]=v<16?e[f+v]:h(o[v-3]^o[v-8]^o[v-14]^o[v-16],1);var E=p(p(h(s,5),(E=a,r=u,i=c,(n=v)<20?E&r|~E&i:!(n<40)&&n<60?E&r|E&i|r&i:E^r^i)),p(p(l,o[v]),(n=v)<20?1518500249:n<40?1859775393:n<60?-1894007588:-899497514));l=c,c=u,u=h(a,30),a=s,s=E}s=p(s,d),a=p(a,y),u=p(u,m),c=p(c,g),l=p(l,b)}return Array(s,a,u,c,l)}function p(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function h(e,t){return e<<t|e>>>32-t}t.exports=function(e){return f.hash(e,d,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(e,t,n){(function(n,r,i,o,s,a,u,c,l){function f(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function d(e,t){var n,r=new Array(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),i=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),o=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var s,a,u=0;u<e.length;u+=16){for(var c=i[0],l=i[1],d=i[2],p=i[3],m=i[4],g=i[5],b=i[6],v=i[7],E=0;E<64;E++)o[E]=E<16?e[E+u]:f(f(f((a=o[E-2],h(a,17)^h(a,19)^y(a,10)),o[E-7]),(a=o[E-15],h(a,7)^h(a,18)^y(a,3))),o[E-16]),n=f(f(f(f(v,h(a=m,6)^h(a,11)^h(a,25)),m&g^~m&b),r[E]),o[E]),s=f(h(s=c,2)^h(s,13)^h(s,22),c&l^c&d^l&d),v=b,b=g,g=m,m=f(p,n),p=d,d=l,l=c,c=f(n,s);i[0]=f(c,i[0]),i[1]=f(l,i[1]),i[2]=f(d,i[2]),i[3]=f(p,i[3]),i[4]=f(m,i[4]),i[5]=f(g,i[5]),i[6]=f(b,i[6]),i[7]=f(v,i[7])}return i}var p=e("./helpers"),h=function(e,t){return e>>>t|e<<32-t},y=function(e,t){return e>>>t};t.exports=function(e){return p.hash(e,d,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,n){(function(e,t,r,i,o,s,a,u,c){n.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,c=u>>1,l=-7,f=n?i-1:0,d=n?-1:1;for(i=e[t+f],f+=d,o=i&(1<<-l)-1,i>>=-l,l+=a;0<l;o=256*o+e[t+f],f+=d,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;0<l;s=256*s+e[t+f],f+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(i?-1:1);s+=Math.pow(2,r),o-=c}return(i?-1:1)*s*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var s,a,u=8*o-i-1,c=(1<<u)-1,l=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1;for(o=t<0||0===t&&1/t<0?1:0,t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(r=Math.pow(2,-s))<1&&(s--,r*=2),2<=(t+=1<=s+l?f/r:f*Math.pow(2,1-l))*r&&(s++,r/=2),c<=s+l?(a=0,s=c):1<=s+l?(a=(t*r-1)*Math.pow(2,i),s+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,i),s=0));8<=i;e[n+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;0<u;e[n+d]=255&s,d+=p,s/=256,u-=8);e[n+d-p]|=128*o}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(e,t,n){(function(e,n,r,i,o,s,a,u,c){var l,f,d;function p(){}(e=t.exports={}).nextTick=(f="undefined"!=typeof window&&window.setImmediate,d="undefined"!=typeof window&&window.postMessage&&window.addEventListener,f?function(e){return window.setImmediate(e)}:d?(l=[],window.addEventListener("message",(function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<l.length&&l.shift()())}),!0),function(e){l.push(e),window.postMessage("process-tick","*")}):function(e){setTimeout(e,0)}),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=p,e.addListener=p,e.once=p,e.off=p,e.removeListener=p,e.removeAllListeners=p,e.emit=p,e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)},822:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.SearchRequest=void 0;const a=o(n(239)),u=n(348);t.SearchRequest=class{constructor(e,t,n){var r,i;if(this.uri=null!=e?e:a.uri,this.requestConfig=null!=n?n:{},this.fetch="function"==typeof t?t:null!==(i=null===(r=globalThis.window)||void 0===r?void 0:r.fetch)&&void 0!==i?i:fetch,!this.fetch)throw"ERROR: fetch function was not provided"}request(e){return s(this,arguments,void 0,(function*(e,t={}){var n,r;const i=u.LocalStorageTools.getItem(e);if(i)return i;const o=yield(null!==(r=null===(n=globalThis.window)||void 0===n?void 0:n.fetch)&&void 0!==r?r:this.fetch)(this.uri,Object.assign(Object.assign({},this.requestConfig),{method:"POST",body:JSON.stringify(e),headers:Object.assign(Object.assign(Object.assign({},this.requestConfig.headers),t),{"Content-Type":"application/json"})}));try{const t=yield o.json();return u.LocalStorageTools.setItem(e,t),t}catch(e){return console.error(e),console.error(o),null}}))}}},861:(e,t,n)=>{var r=n(287),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},875:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.request=t.rawRequest=t.GraphQLClient=t.ClientError=t.batchRequests=t.resolveRequestDocument=t.GraphQLWebSocketClient=t.gql=void 0;const s=n(780),a=n(10),u=n(445),c=n(211),l=n(946);Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return l.ClientError}});const f=o(n(945)),d=f,p=e=>{let t={};return e&&("undefined"!=typeof Headers&&e instanceof Headers||d&&d.Headers&&e instanceof d.Headers?t=(0,a.HeadersInstanceToPlainObject)(e):Array.isArray(e)?e.forEach((([e,n])=>{e&&void 0!==n&&(t[e]=n)})):t=e),t},h=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim();class y{constructor(e,t={}){this.url=e,this.requestConfig=t,this.rawRequest=async(...e)=>{const[t,n,r]=e,i=(0,u.parseRawRequestArgs)(t,n,r),{headers:o,fetch:s=f.default,method:a="POST",requestMiddleware:l,responseMiddleware:d,...h}=this.requestConfig,{url:y}=this;void 0!==i.signal&&(h.signal=i.signal);const{operationName:g}=(0,c.resolveRequestDocument)(i.query);return m({url:y,query:i.query,variables:i.variables,headers:{...p(_(o)),...p(i.requestHeaders)},operationName:g,fetch:s,method:a,fetchOptions:h,middleware:l}).then((e=>(d&&d(e),e))).catch((e=>{throw d&&d(e),e}))}}async request(e,...t){const[n,r]=t,i=(0,u.parseRequestArgs)(e,n,r),{headers:o,fetch:s=f.default,method:a="POST",requestMiddleware:l,responseMiddleware:d,...h}=this.requestConfig,{url:y}=this;void 0!==i.signal&&(h.signal=i.signal);const{query:g,operationName:b}=(0,c.resolveRequestDocument)(i.document);return m({url:y,query:g,variables:i.variables,headers:{...p(_(o)),...p(i.requestHeaders)},operationName:b,fetch:s,method:a,fetchOptions:h,middleware:l}).then((e=>(d&&d(e),e.data))).catch((e=>{throw d&&d(e),e}))}batchRequests(e,t){const n=(0,u.parseBatchRequestArgs)(e,t),{headers:r,...i}=this.requestConfig;void 0!==n.signal&&(i.signal=n.signal);const o=n.documents.map((({document:e})=>(0,c.resolveRequestDocument)(e).query)),s=n.documents.map((({variables:e})=>e));return m({url:this.url,query:o,variables:s,headers:{...p(_(r)),...p(n.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??f.default,method:this.requestConfig.method||"POST",fetchOptions:i,middleware:this.requestConfig.requestMiddleware}).then((e=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(e),e.data))).catch((e=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(e),e}))}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,t){const{headers:n}=this.requestConfig;return n?n[e]=t:this.requestConfig.headers={[e]:t},this}setEndpoint(e){return this.url=e,this}}t.GraphQLClient=y;const m=async e=>{const{query:t,variables:n,fetchOptions:r}=e,i=(p=(0,a.uppercase)(e.method??"post"),async e=>{const{url:t,query:n,variables:r,operationName:i,fetch:o,fetchOptions:a,middleware:u}=e,c={...e.headers};let l,f="";"POST"===p?(l=v(n,r,i,a.jsonSerializer),"string"==typeof l&&(c["Content-Type"]="application/json")):f=(e=>{if(!Array.isArray(e.query)){const t=e,n=[`query=${encodeURIComponent(h(t.query))}`];return e.variables&&n.push(`variables=${encodeURIComponent(t.jsonSerializer.stringify(t.variables))}`),t.operationName&&n.push(`operationName=${encodeURIComponent(t.operationName)}`),n.join("&")}if(void 0!==e.variables&&!Array.isArray(e.variables))throw new Error("Cannot create query with given variable type, array expected");const t=e,n=e.query.reduce(((e,n,r)=>(e.push({query:h(n),variables:t.variables?t.jsonSerializer.stringify(t.variables[r]):void 0}),e)),[]);return`query=${encodeURIComponent(t.jsonSerializer.stringify(n))}`})({query:n,variables:r,operationName:i,jsonSerializer:a.jsonSerializer??s.defaultJsonSerializer});const d={method:p,headers:c,body:l,...a};let y=t,m=d;if(u){const e=await Promise.resolve(u({...d,url:t,operationName:i,variables:r})),{url:n,...o}=e;y=n,m=o}return f&&(y=`${y}?${f}`),await o(y,m)}),o=Array.isArray(e.query),u=await i(e),c=await E(u,r.jsonSerializer??s.defaultJsonSerializer),f=Array.isArray(c)?!c.some((({data:e})=>!e)):Boolean(c.data),d=Array.isArray(c)||!c.errors||Array.isArray(c.errors)&&!c.errors.length||"all"===r.errorPolicy||"ignore"===r.errorPolicy;var p;if(u.ok&&d&&f){const{errors:e,...t}=(Array.isArray(c),c),n="ignore"===r.errorPolicy?t:c;return{...o?{data:n}:n,headers:u.headers,status:u.status}}{const e="string"==typeof c?{error:c}:c;throw new l.ClientError({...e,status:u.status,headers:u.headers},{query:t,variables:n})}};async function g(e,t,...n){const r=(0,u.parseRequestExtendedArgs)(e,t,...n);return new y(r.url).request({...r})}t.rawRequest=async(...e)=>{const[t,n,...r]=e,i=(0,u.parseRawRequestExtendedArgs)(t,n,...r);return new y(i.url).rawRequest({...i})},t.request=g,t.batchRequests=async(...e)=>{const t=b(e);return new y(t.url).batchRequests(t)};const b=e=>1===e.length?e[0]:{url:e[0],documents:e[1],requestHeaders:e[2],signal:void 0},v=(e,t,n,r)=>{const i=r??s.defaultJsonSerializer;if(!Array.isArray(e))return i.stringify({query:e,variables:t,operationName:n});if(void 0!==t&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");const o=e.reduce(((e,n,r)=>(e.push({query:n,variables:t?t[r]:void 0}),e)),[]);return i.stringify(o)},E=async(e,t)=>{let n;return e.headers.forEach(((e,t)=>{"content-type"===t.toLowerCase()&&(n=e)})),n&&(n.toLowerCase().startsWith("application/json")||n.toLowerCase().startsWith("application/graphql+json")||n.toLowerCase().startsWith("application/graphql-response+json"))?t.parse(await e.text()):e.text()},_=e=>"function"==typeof e?e():e;t.gql=(e,...t)=>e.reduce(((e,n,r)=>`${e}${n}${r in t?String(t[r]):""}`),"");var w=n(225);Object.defineProperty(t,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return w.GraphQLWebSocketClient}});var T=n(211);Object.defineProperty(t,"resolveRequestDocument",{enumerable:!0,get:function(){return T.resolveRequestDocument}}),t.default=g},884:e=>{"use strict";e.exports=JSON.parse('{"schema":"https://sequence-coordinates.rcsb.org/graphql","documents":"test/Queries/SequenceCoordinates/*.graphql","interfaceOutputFile":"src/RcsbGraphQL/Types/Borrego/GqlTypes.ts"}')},942:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BREAK:()=>Ce,BreakingChangeType:()=>os,DEFAULT_DEPRECATION_REASON:()=>bn,DangerousChangeType:()=>ss,DirectiveLocation:()=>S,ExecutableDefinitionsRule:()=>_r,FieldsOnCorrectTypeRule:()=>wr,FragmentsOnCompositeTypesRule:()=>Tr,GRAPHQL_MAX_INT:()=>nn,GRAPHQL_MIN_INT:()=>rn,GraphQLBoolean:()=>un,GraphQLDeprecatedDirective:()=>vn,GraphQLDirective:()=>yn,GraphQLEnumType:()=>Yt,GraphQLError:()=>h,GraphQLFloat:()=>sn,GraphQLID:()=>cn,GraphQLIncludeDirective:()=>mn,GraphQLInputObjectType:()=>zt,GraphQLInt:()=>on,GraphQLInterfaceType:()=>Gt,GraphQLList:()=>Tt,GraphQLNonNull:()=>It,GraphQLObjectType:()=>$t,GraphQLOneOfDirective:()=>_n,GraphQLScalarType:()=>Bt,GraphQLSchema:()=>qn,GraphQLSkipDirective:()=>gn,GraphQLSpecifiedByDirective:()=>En,GraphQLString:()=>an,GraphQLUnionType:()=>Wt,Kind:()=>N,KnownArgumentNamesRule:()=>Ir,KnownDirectivesRule:()=>Nr,KnownFragmentNamesRule:()=>Ar,KnownTypeNamesRule:()=>Or,Lexer:()=>F,Location:()=>v,LoneAnonymousOperationRule:()=>Dr,LoneSchemaDefinitionRule:()=>xr,MaxIntrospectionDepthRule:()=>kr,NoDeprecatedCustomRule:()=>_o,NoFragmentCyclesRule:()=>Cr,NoSchemaIntrospectionCustomRule:()=>wo,NoUndefinedVariablesRule:()=>Br,NoUnusedFragmentsRule:()=>$r,NoUnusedVariablesRule:()=>Fr,OperationTypeNode:()=>I,OverlappingFieldsCanBeMergedRule:()=>jr,PossibleFragmentSpreadsRule:()=>Kr,PossibleTypeExtensionsRule:()=>Xr,ProvidedRequiredArgumentsRule:()=>ei,ScalarLeafsRule:()=>ri,SchemaMetaFieldDef:()=>$n,SingleFieldSubscriptionsRule:()=>Ei,Source:()=>ue,Token:()=>E,TokenKind:()=>A,TypeInfo:()=>ur,TypeKind:()=>Cn,TypeMetaFieldDef:()=>Fn,TypeNameMetaFieldDef:()=>Un,UniqueArgumentDefinitionNamesRule:()=>wi,UniqueArgumentNamesRule:()=>Ti,UniqueDirectiveNamesRule:()=>Ii,UniqueDirectivesPerLocationRule:()=>Si,UniqueEnumValueNamesRule:()=>Ni,UniqueFieldDefinitionNamesRule:()=>Ai,UniqueFragmentNamesRule:()=>Ri,UniqueInputFieldNamesRule:()=>Di,UniqueOperationNamesRule:()=>xi,UniqueOperationTypesRule:()=>Li,UniqueTypeNamesRule:()=>ki,UniqueVariableNamesRule:()=>Ci,ValidationContext:()=>Wi,ValuesOfCorrectTypeRule:()=>Bi,VariablesAreInputTypesRule:()=>Fi,VariablesInAllowedPositionRule:()=>Ui,__Directive:()=>On,__DirectiveLocation:()=>Rn,__EnumValue:()=>kn,__Field:()=>xn,__InputValue:()=>Ln,__Schema:()=>An,__Type:()=>Dn,__TypeKind:()=>Bn,assertAbstractType:()=>wt,assertCompositeType:()=>Et,assertDirective:()=>hn,assertEnumType:()=>st,assertEnumValueName:()=>Je,assertInputObjectType:()=>ut,assertInputType:()=>ht,assertInterfaceType:()=>nt,assertLeafType:()=>bt,assertListType:()=>lt,assertName:()=>Ye,assertNamedType:()=>xt,assertNonNullType:()=>dt,assertNullableType:()=>Ot,assertObjectType:()=>et,assertOutputType:()=>mt,assertScalarType:()=>Xe,assertSchema:()=>Vn,assertType:()=>ze,assertUnionType:()=>it,assertValidName:()=>rs,assertValidSchema:()=>Qn,assertWrappingType:()=>Nt,astFromValue:()=>Sn,buildASTSchema:()=>ko,buildClientSchema:()=>Ao,buildSchema:()=>Co,coerceInputValue:()=>ai,concatAST:()=>Xo,createSourceEventStream:()=>Eo,defaultFieldResolver:()=>po,defaultTypeResolver:()=>fo,doTypesOverlap:()=>tn,execute:()=>Xi,executeSync:()=>Zi,extendSchema:()=>Oo,findBreakingChanges:()=>as,findDangerousChanges:()=>us,formatError:()=>g,getArgumentValues:()=>pi,getDirectiveValues:()=>hi,getEnterLeaveForKind:()=>Fe,getIntrospectionQuery:()=>To,getLocation:()=>l,getNamedType:()=>Lt,getNullableType:()=>Rt,getOperationAST:()=>Io,getOperationRootType:()=>So,getVariableValues:()=>di,getVisitFn:()=>Ue,graphql:()=>yo,graphqlSync:()=>mo,introspectionFromSchema:()=>No,introspectionTypes:()=>Mn,isAbstractType:()=>_t,isCompositeType:()=>vt,isConstValueNode:()=>yr,isDefinitionNode:()=>fr,isDirective:()=>pn,isEnumType:()=>ot,isEqualType:()=>Zt,isExecutableDefinitionNode:()=>dr,isInputObjectType:()=>at,isInputType:()=>pt,isInterfaceType:()=>tt,isIntrospectionType:()=>jn,isLeafType:()=>gt,isListType:()=>ct,isNamedType:()=>Dt,isNonNullType:()=>ft,isNullableType:()=>At,isObjectType:()=>Ze,isOutputType:()=>yt,isRequiredArgument:()=>qt,isRequiredInputField:()=>Xt,isScalarType:()=>Ke,isSchema:()=>Pn,isSelectionNode:()=>pr,isSpecifiedDirective:()=>Tn,isSpecifiedScalarType:()=>fn,isType:()=>He,isTypeDefinitionNode:()=>br,isTypeExtensionNode:()=>Er,isTypeNode:()=>mr,isTypeSubTypeOf:()=>en,isTypeSystemDefinitionNode:()=>gr,isTypeSystemExtensionNode:()=>vr,isUnionType:()=>rt,isValidNameError:()=>is,isValueNode:()=>hr,isWrappingType:()=>St,lexicographicSortSchema:()=>Bo,locatedError:()=>zi,parse:()=>le,parseConstValue:()=>de,parseType:()=>pe,parseValue:()=>fe,print:()=>Me,printError:()=>m,printIntrospectionSchema:()=>jo,printLocation:()=>f,printSchema:()=>Mo,printSourceLocation:()=>d,printType:()=>Go,recommendedRules:()=>ji,resolveObjMapThunk:()=>Ct,resolveReadonlyArrayThunk:()=>kt,responsePathAsArray:()=>si,separateOperations:()=>Zo,specifiedDirectives:()=>wn,specifiedRules:()=>Pi,specifiedScalarTypes:()=>ln,stripIgnoredCharacters:()=>ns,subscribe:()=>vo,syntaxError:()=>b,typeFromAST:()=>ar,validate:()=>Qi,validateSchema:()=>Wn,valueFromAST:()=>li,valueFromASTUntyped:()=>Qe,version:()=>r,versionInfo:()=>i,visit:()=>Be,visitInParallel:()=>$e,visitWithTypeInfo:()=>lr});const r="16.9.0",i=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});function o(e,t){if(!Boolean(e))throw new Error(t)}function s(e){return"function"==typeof(null==e?void 0:e.then)}function a(e){return"object"==typeof e&&null!==e}function u(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const c=/\r\n|[\n\r]/g;function l(e,t){let n=0,r=1;for(const i of e.body.matchAll(c)){if("number"==typeof i.index||u(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function f(e){return d(e.source,l(e.source,e.start))}function d(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=1===t.line?n:0,u=t.column+a,c=`${e.name}:${s}:${u}\n`,l=r.split(/\r\n|[\n\r]/g),f=l[i];if(f.length>120){const e=Math.floor(u/80),t=u%80,n=[];for(let e=0;e<f.length;e+=80)n.push(f.slice(e,e+80));return c+p([[`${s} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return c+p([[s-1+" |",l[i-1]],[`${s} |`,f],["|","^".padStart(u)],[`${s+1} |`,l[i+1]]])}function p(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class h extends Error{constructor(e,...t){var n,r,i;const{nodes:o,source:s,positions:u,path:c,originalError:f,extensions:d}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=c?c:void 0,this.originalError=null!=f?f:void 0,this.nodes=y(Array.isArray(o)?o:o?[o]:void 0);const p=y(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=s?s:null==p||null===(r=p[0])||void 0===r?void 0:r.source,this.positions=null!=u?u:null==p?void 0:p.map((e=>e.start)),this.locations=u&&s?u.map((e=>l(s,e))):null==p?void 0:p.map((e=>l(e.source,e.start)));const m=a(null==f?void 0:f.extensions)?null==f?void 0:f.extensions:void 0;this.extensions=null!==(i=null!=d?d:m)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,h):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+f(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+d(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function y(e){return void 0===e||0===e.length?void 0:e}function m(e){return e.toString()}function g(e){return e.toJSON()}function b(e,t,n){return new h(`Syntax Error: ${n}`,{source:e,positions:[t]})}class v{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class E{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const _={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},w=new Set(Object.keys(_));function T(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&w.has(t)}var I,S,N,A;function O(e){return 9===e||32===e}function R(e){return e>=48&&e<=57}function D(e){return e>=97&&e<=122||e>=65&&e<=90}function x(e){return D(e)||95===e}function L(e){return D(e)||R(e)||95===e}function k(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let t=0;t<e.length;++t){var o;const s=e[t],a=C(s);a!==s.length&&(r=null!==(o=r)&&void 0!==o?o:t,i=t,0!==t&&a<n&&(n=a))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function C(e){let t=0;for(;t<e.length&&O(e.charCodeAt(t));)++t;return t}function B(e){if(""===e)return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!(t||r&&i)}function $(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every((e=>0===e.length||O(e.charCodeAt(0)))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,u=e.endsWith("\\"),c=a||u,l=!(null!=t&&t.minimize)&&(!i||e.length>70||c||o||s);let f="";const d=i&&O(e.charCodeAt(0));return(l&&!d||o)&&(f+="\n"),f+=n,(l||c)&&(f+="\n"),'"""'+f+'"""'}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(I||(I={})),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(S||(S={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(N||(N={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(A||(A={}));class F{constructor(e){const t=new E(A.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==A.EOF)do{if(e.next)e=e.next;else{const t=W(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===A.COMMENT);return e}}function U(e){return e===A.BANG||e===A.DOLLAR||e===A.AMP||e===A.PAREN_L||e===A.PAREN_R||e===A.SPREAD||e===A.COLON||e===A.EQUALS||e===A.AT||e===A.BRACKET_L||e===A.BRACKET_R||e===A.BRACE_L||e===A.PIPE||e===A.BRACE_R}function M(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function j(e,t){return P(e.charCodeAt(t))&&V(e.charCodeAt(t+1))}function P(e){return e>=55296&&e<=56319}function V(e){return e>=56320&&e<=57343}function q(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return A.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function G(e,t,n,r,i){const o=e.line,s=1+n-e.lineStart;return new E(t,n,r,o,s,i)}function W(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return Q(e,i);case 33:return G(e,A.BANG,i,i+1);case 36:return G(e,A.DOLLAR,i,i+1);case 38:return G(e,A.AMP,i,i+1);case 40:return G(e,A.PAREN_L,i,i+1);case 41:return G(e,A.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return G(e,A.SPREAD,i,i+3);break;case 58:return G(e,A.COLON,i,i+1);case 61:return G(e,A.EQUALS,i,i+1);case 64:return G(e,A.AT,i,i+1);case 91:return G(e,A.BRACKET_L,i,i+1);case 93:return G(e,A.BRACKET_R,i,i+1);case 123:return G(e,A.BRACE_L,i,i+1);case 124:return G(e,A.PIPE,i,i+1);case 125:return G(e,A.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?te(e,i):H(e,i)}if(R(t)||45===t)return Y(e,i,t);if(x(t))return ne(e,i);throw b(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":M(t)||j(n,i)?`Unexpected character: ${q(e,i)}.`:`Invalid character: ${q(e,i)}.`)}return G(e,A.EOF,r,r)}function Q(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(M(e))++i;else{if(!j(n,i))break;i+=2}}return G(e,A.COMMENT,t,i,n.slice(t+1,i))}function Y(e,t,n){const r=e.source.body;let i=t,o=n,s=!1;if(45===o&&(o=r.charCodeAt(++i)),48===o){if(o=r.charCodeAt(++i),R(o))throw b(e.source,i,`Invalid number, unexpected digit after 0: ${q(e,i)}.`)}else i=J(e,i,o),o=r.charCodeAt(i);if(46===o&&(s=!0,o=r.charCodeAt(++i),i=J(e,i,o),o=r.charCodeAt(i)),69!==o&&101!==o||(s=!0,o=r.charCodeAt(++i),43!==o&&45!==o||(o=r.charCodeAt(++i)),i=J(e,i,o),o=r.charCodeAt(i)),46===o||x(o))throw b(e.source,i,`Invalid number, expected digit but got: ${q(e,i)}.`);return G(e,s?A.FLOAT:A.INT,t,i,r.slice(t,i))}function J(e,t,n){if(!R(n))throw b(e.source,t,`Invalid number, expected digit but got: ${q(e,t)}.`);const r=e.source.body;let i=t+1;for(;R(r.charCodeAt(i));)++i;return i}function H(e,t){const n=e.source.body,r=n.length;let i=t+1,o=i,s="";for(;i<r;){const r=n.charCodeAt(i);if(34===r)return s+=n.slice(o,i),G(e,A.STRING,t,i+1,s);if(92!==r){if(10===r||13===r)break;if(M(r))++i;else{if(!j(n,i))throw b(e.source,i,`Invalid character within String: ${q(e,i)}.`);i+=2}}else{s+=n.slice(o,i);const t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?z(e,i):K(e,i):ee(e,i);s+=t.value,i+=t.size,o=i}}throw b(e.source,i,"Unterminated string.")}function z(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const e=n.charCodeAt(t+i++);if(125===e){if(i<5||!M(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|Z(e),r<0)break}throw b(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function K(e,t){const n=e.source.body,r=X(n,t+2);if(M(r))return{value:String.fromCodePoint(r),size:6};if(P(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=X(n,t+8);if(V(e))return{value:String.fromCodePoint(r,e),size:12}}throw b(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function X(e,t){return Z(e.charCodeAt(t))<<12|Z(e.charCodeAt(t+1))<<8|Z(e.charCodeAt(t+2))<<4|Z(e.charCodeAt(t+3))}function Z(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function ee(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw b(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function te(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,s=o,a="";const u=[];for(;o<r;){const r=n.charCodeAt(o);if(34===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)){a+=n.slice(s,o),u.push(a);const r=G(e,A.BLOCK_STRING,t,o+3,k(u).join("\n"));return e.line+=u.length-1,e.lineStart=i,r}if(92!==r||34!==n.charCodeAt(o+1)||34!==n.charCodeAt(o+2)||34!==n.charCodeAt(o+3))if(10!==r&&13!==r)if(M(r))++o;else{if(!j(n,o))throw b(e.source,o,`Invalid character within String: ${q(e,o)}.`);o+=2}else a+=n.slice(s,o),u.push(a),13===r&&10===n.charCodeAt(o+1)?o+=2:++o,a="",s=o,i=o;else a+=n.slice(s,o),s=o+1,o+=4}throw b(e.source,o,"Unterminated string.")}function ne(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r&&L(n.charCodeAt(i));)++i;return G(e,A.NAME,t,i,n.slice(t,i))}const re=10,ie=2;function oe(e){return se(e,[])}function se(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:se(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>ie)return"[Array]";const n=Math.min(re,e.length),r=e.length-n,i=[];for(let r=0;r<n;++r)i.push(se(e[r],t));return 1===r?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>ie)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map((([e,n])=>e+": "+se(n,t)));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const ae=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=oe(e);throw new Error(`Cannot use ${r} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class ue{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||o(!1,`Body must be a string. Received: ${oe(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||o(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||o(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function ce(e){return ae(e,ue)}function le(e,t){return new he(e,t).parseDocument()}function fe(e,t){const n=new he(e,t);n.expectToken(A.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(A.EOF),r}function de(e,t){const n=new he(e,t);n.expectToken(A.SOF);const r=n.parseConstValueLiteral();return n.expectToken(A.EOF),r}function pe(e,t){const n=new he(e,t);n.expectToken(A.SOF);const r=n.parseTypeReference();return n.expectToken(A.EOF),r}class he{constructor(e,t={}){const n=ce(e)?e:new ue(e);this._lexer=new F(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(A.NAME);return this.node(e,{kind:N.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:N.DOCUMENT,definitions:this.many(A.SOF,this.parseDefinition,A.EOF)})}parseDefinition(){if(this.peek(A.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===A.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw b(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(A.BRACE_L))return this.node(e,{kind:N.OPERATION_DEFINITION,operation:I.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(A.NAME)&&(n=this.parseName()),this.node(e,{kind:N.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(A.NAME);switch(e.value){case"query":return I.QUERY;case"mutation":return I.MUTATION;case"subscription":return I.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(A.PAREN_L,this.parseVariableDefinition,A.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:N.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(A.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(A.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(A.DOLLAR),this.node(e,{kind:N.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:N.SELECTION_SET,selections:this.many(A.BRACE_L,this.parseSelection,A.BRACE_R)})}parseSelection(){return this.peek(A.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(A.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:N.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(A.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(A.PAREN_L,t,A.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(A.COLON),this.node(t,{kind:N.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(A.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(A.NAME)?this.node(e,{kind:N.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:N.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:N.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:N.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case A.BRACKET_L:return this.parseList(e);case A.BRACE_L:return this.parseObject(e);case A.INT:return this.advanceLexer(),this.node(t,{kind:N.INT,value:t.value});case A.FLOAT:return this.advanceLexer(),this.node(t,{kind:N.FLOAT,value:t.value});case A.STRING:case A.BLOCK_STRING:return this.parseStringLiteral();case A.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:N.BOOLEAN,value:!0});case"false":return this.node(t,{kind:N.BOOLEAN,value:!1});case"null":return this.node(t,{kind:N.NULL});default:return this.node(t,{kind:N.ENUM,value:t.value})}case A.DOLLAR:if(e){if(this.expectToken(A.DOLLAR),this._lexer.token.kind===A.NAME){const e=this._lexer.token.value;throw b(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:N.STRING,value:e.value,block:e.kind===A.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:N.LIST,values:this.any(A.BRACKET_L,(()=>this.parseValueLiteral(e)),A.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:N.OBJECT,fields:this.any(A.BRACE_L,(()=>this.parseObjectField(e)),A.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(A.COLON),this.node(t,{kind:N.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(A.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(A.AT),this.node(t,{kind:N.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(A.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(A.BRACKET_R),t=this.node(e,{kind:N.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(A.BANG)?this.node(e,{kind:N.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:N.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(A.STRING)||this.peek(A.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(A.BRACE_L,this.parseOperationTypeDefinition,A.BRACE_R);return this.node(e,{kind:N.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(A.COLON);const n=this.parseNamedType();return this.node(e,{kind:N.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:N.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:N.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(A.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(A.BRACE_L,this.parseFieldDefinition,A.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(A.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:N.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(A.PAREN_L,this.parseInputValueDef,A.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(A.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(A.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:N.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:N.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:N.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(A.EQUALS)?this.delimitedMany(A.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:N.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(A.BRACE_L,this.parseEnumValueDefinition,A.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:N.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw b(this._lexer.source,this._lexer.token.start,`${ye(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:N.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(A.BRACE_L,this.parseInputValueDef,A.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===A.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(A.BRACE_L,this.parseOperationTypeDefinition,A.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:N.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:N.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:N.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:N.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:N.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:N.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:N.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(A.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:N.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(A.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(S,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new v(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw b(this._lexer.source,t.start,`Expected ${me(e)}, found ${ye(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==A.NAME||t.value!==e)throw b(this._lexer.source,t.start,`Expected "${e}", found ${ye(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===A.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return b(this._lexer.source,t.start,`Unexpected ${ye(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==A.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw b(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function ye(e){const t=e.value;return me(e.kind)+(null!=t?` "${t}"`:"")}function me(e){return U(e)?`"${e}"`:e}const ge=5;function be(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const o=r.map((e=>`"${e}"`));switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const s=o.slice(0,ge),a=s.pop();return i+s.join(", ")+", or "+a+"?"}function ve(e){return e}function Ee(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}function _e(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}function we(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}function Te(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),o=t.charCodeAt(r);if(Ne(i)&&Ne(o)){let s=0;do{++n,s=10*s+i-Ie,i=e.charCodeAt(n)}while(Ne(i)&&s>0);let a=0;do{++r,a=10*a+o-Ie,o=t.charCodeAt(r)}while(Ne(o)&&a>0);if(s<a)return-1;if(s>a)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++r}}return e.length-t.length}const Ie=48,Se=57;function Ne(e){return!isNaN(e)&&Ie<=e&&e<=Se}function Ae(e,t){const n=Object.create(null),r=new Oe(e),i=Math.floor(.4*e.length)+1;for(const e of t){const t=r.measure(e,i);void 0!==t&&(n[e]=t)}return Object.keys(n).sort(((e,t)=>{const r=n[e]-n[t];return 0!==r?r:Te(e,t)}))}class Oe{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=Re(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=Re(n),i=this._inputArray;if(r.length<i.length){const e=r;r=i,i=e}const o=r.length,s=i.length;if(o-s>t)return;const a=this._rows;for(let e=0;e<=s;e++)a[0][e]=e;for(let e=1;e<=o;e++){const n=a[(e-1)%3],o=a[e%3];let u=o[0]=e;for(let t=1;t<=s;t++){const s=r[e-1]===i[t-1]?0:1;let c=Math.min(n[t]+1,o[t-1]+1,n[t-1]+s);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){const n=a[(e-2)%3][t-2];c=Math.min(c,n+1)}c<u&&(u=c),o[t]=c}if(u>t)return}const u=a[o%3][s];return u<=t?u:void 0}}function Re(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function De(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}const xe=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Le(e){return ke[e.charCodeAt(0)]}const ke=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Ce=Object.freeze({});function Be(e,t,n=_){const r=new Map;for(const e of Object.values(N))r.set(e,Fe(t,e));let i,s,a,u=Array.isArray(e),c=[e],l=-1,f=[],d=e;const p=[],h=[];do{l++;const e=l===c.length,b=e&&0!==f.length;if(e){if(s=0===h.length?void 0:p[p.length-1],d=a,a=h.pop(),b)if(u){d=d.slice();let e=0;for(const[t,n]of f){const r=t-e;null===n?(d.splice(r,1),e++):d[r]=n}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(const[e,t]of f)d[e]=t}l=i.index,c=i.keys,f=i.edits,u=i.inArray,i=i.prev}else if(a){if(s=u?l:c[l],d=a[s],null==d)continue;p.push(s)}let v;if(!Array.isArray(d)){var y,m;T(d)||o(!1,`Invalid AST Node: ${oe(d)}.`);const n=e?null===(y=r.get(d.kind))||void 0===y?void 0:y.leave:null===(m=r.get(d.kind))||void 0===m?void 0:m.enter;if(v=null==n?void 0:n.call(t,d,s,a,p,h),v===Ce)break;if(!1===v){if(!e){p.pop();continue}}else if(void 0!==v&&(f.push([s,v]),!e)){if(!T(v)){p.pop();continue}d=v}}var g;void 0===v&&b&&f.push([s,d]),e?p.pop():(i={inArray:u,index:l,keys:c,edits:f,prev:i},u=Array.isArray(d),c=u?d:null!==(g=n[d.kind])&&void 0!==g?g:[],l=-1,f=[],a&&h.push(a),a=d)}while(void 0!==i);return 0!==f.length?f[f.length-1][1]:e}function $e(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(N)){let i=!1;const o=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){const{enter:n,leave:a}=Fe(e[t],r);i||(i=null!=n||null!=a),o[t]=n,s[t]=a}if(!i)continue;const a={enter(...n){const r=n[0];for(let s=0;s<e.length;s++)if(null===t[s]){var i;const a=null===(i=o[s])||void 0===i?void 0:i.apply(e[s],n);if(!1===a)t[s]=r;else if(a===Ce)t[s]=Ce;else if(void 0!==a)return a}},leave(...n){const r=n[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;const r=null===(i=s[o])||void 0===i?void 0:i.apply(e[o],n);if(r===Ce)t[o]=Ce;else if(void 0!==r&&!1!==r)return r}else t[o]===r&&(t[o]=null)}};n[r]=a}return n}function Fe(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function Ue(e,t,n){const{enter:r,leave:i}=Fe(e,t);return n?i:r}function Me(e){return Be(e,je)}const je={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Pe(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=qe("(",Pe(e.variableDefinitions,", "),")"),n=Pe([e.operation,Pe([e.name,t]),Pe(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+qe(" = ",n)+qe(" ",Pe(r," "))},SelectionSet:{leave:({selections:e})=>Ve(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=qe("",e,": ")+t;let s=o+qe("(",Pe(n,", "),")");return s.length>80&&(s=o+qe("(\n",Ge(Pe(n,"\n")),"\n)")),Pe([s,Pe(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+qe(" ",Pe(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Pe(["...",qe("on ",e),Pe(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${qe("(",Pe(n,", "),")")} on ${t} ${qe("",Pe(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?$(e):`"${e.replace(xe,Le)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Pe(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Pe(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+qe("(",Pe(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>qe("",e,"\n")+Pe(["schema",Pe(t," "),Ve(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>qe("",e,"\n")+Pe(["scalar",t,Pe(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>qe("",e,"\n")+Pe(["type",t,qe("implements ",Pe(n," & ")),Pe(r," "),Ve(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>qe("",e,"\n")+t+(We(n)?qe("(\n",Ge(Pe(n,"\n")),"\n)"):qe("(",Pe(n,", "),")"))+": "+r+qe(" ",Pe(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>qe("",e,"\n")+Pe([t+": "+n,qe("= ",r),Pe(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>qe("",e,"\n")+Pe(["interface",t,qe("implements ",Pe(n," & ")),Pe(r," "),Ve(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>qe("",e,"\n")+Pe(["union",t,Pe(n," "),qe("= ",Pe(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>qe("",e,"\n")+Pe(["enum",t,Pe(n," "),Ve(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>qe("",e,"\n")+Pe([t,Pe(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>qe("",e,"\n")+Pe(["input",t,Pe(n," "),Ve(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>qe("",e,"\n")+"directive @"+t+(We(n)?qe("(\n",Ge(Pe(n,"\n")),"\n)"):qe("(",Pe(n,", "),")"))+(r?" repeatable":"")+" on "+Pe(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Pe(["extend schema",Pe(e," "),Ve(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Pe(["extend scalar",e,Pe(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Pe(["extend type",e,qe("implements ",Pe(t," & ")),Pe(n," "),Ve(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Pe(["extend interface",e,qe("implements ",Pe(t," & ")),Pe(n," "),Ve(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Pe(["extend union",e,Pe(t," "),qe("= ",Pe(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Pe(["extend enum",e,Pe(t," "),Ve(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Pe(["extend input",e,Pe(t," "),Ve(n)]," ")}};function Pe(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function Ve(e){return qe("{\n",Ge(Pe(e,"\n")),"\n}")}function qe(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Ge(e){return qe(" ",e.replace(/\n/g,"\n "))}function We(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}function Qe(e,t){switch(e.kind){case N.NULL:return null;case N.INT:return parseInt(e.value,10);case N.FLOAT:return parseFloat(e.value);case N.STRING:case N.ENUM:case N.BOOLEAN:return e.value;case N.LIST:return e.values.map((e=>Qe(e,t)));case N.OBJECT:return _e(e.fields,(e=>e.name.value),(e=>Qe(e.value,t)));case N.VARIABLE:return null==t?void 0:t[e.name.value]}}function Ye(e){if(null!=e||o(!1,"Must provide name."),"string"==typeof e||o(!1,"Expected name to be a string."),0===e.length)throw new h("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!L(e.charCodeAt(t)))throw new h(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!x(e.charCodeAt(0)))throw new h(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function Je(e){if("true"===e||"false"===e||"null"===e)throw new h(`Enum values cannot be named: ${e}`);return Ye(e)}function He(e){return Ke(e)||Ze(e)||tt(e)||rt(e)||ot(e)||at(e)||ct(e)||ft(e)}function ze(e){if(!He(e))throw new Error(`Expected ${oe(e)} to be a GraphQL type.`);return e}function Ke(e){return ae(e,Bt)}function Xe(e){if(!Ke(e))throw new Error(`Expected ${oe(e)} to be a GraphQL Scalar type.`);return e}function Ze(e){return ae(e,$t)}function et(e){if(!Ze(e))throw new Error(`Expected ${oe(e)} to be a GraphQL Object type.`);return e}function tt(e){return ae(e,Gt)}function nt(e){if(!tt(e))throw new Error(`Expected ${oe(e)} to be a GraphQL Interface type.`);return e}function rt(e){return ae(e,Wt)}function it(e){if(!rt(e))throw new Error(`Expected ${oe(e)} to be a GraphQL Union type.`);return e}function ot(e){return ae(e,Yt)}function st(e){if(!ot(e))throw new Error(`Expected ${oe(e)} to be a GraphQL Enum type.`);return e}function at(e){return ae(e,zt)}function ut(e){if(!at(e))throw new Error(`Expected ${oe(e)} to be a GraphQL Input Object type.`);return e}function ct(e){return ae(e,Tt)}function lt(e){if(!ct(e))throw new Error(`Expected ${oe(e)} to be a GraphQL List type.`);return e}function ft(e){return ae(e,It)}function dt(e){if(!ft(e))throw new Error(`Expected ${oe(e)} to be a GraphQL Non-Null type.`);return e}function pt(e){return Ke(e)||ot(e)||at(e)||St(e)&&pt(e.ofType)}function ht(e){if(!pt(e))throw new Error(`Expected ${oe(e)} to be a GraphQL input type.`);return e}function yt(e){return Ke(e)||Ze(e)||tt(e)||rt(e)||ot(e)||St(e)&&yt(e.ofType)}function mt(e){if(!yt(e))throw new Error(`Expected ${oe(e)} to be a GraphQL output type.`);return e}function gt(e){return Ke(e)||ot(e)}function bt(e){if(!gt(e))throw new Error(`Expected ${oe(e)} to be a GraphQL leaf type.`);return e}function vt(e){return Ze(e)||tt(e)||rt(e)}function Et(e){if(!vt(e))throw new Error(`Expected ${oe(e)} to be a GraphQL composite type.`);return e}function _t(e){return tt(e)||rt(e)}function wt(e){if(!_t(e))throw new Error(`Expected ${oe(e)} to be a GraphQL abstract type.`);return e}class Tt{constructor(e){He(e)||o(!1,`Expected ${oe(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class It{constructor(e){At(e)||o(!1,`Expected ${oe(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function St(e){return ct(e)||ft(e)}function Nt(e){if(!St(e))throw new Error(`Expected ${oe(e)} to be a GraphQL wrapping type.`);return e}function At(e){return He(e)&&!ft(e)}function Ot(e){if(!At(e))throw new Error(`Expected ${oe(e)} to be a GraphQL nullable type.`);return e}function Rt(e){if(e)return ft(e)?e.ofType:e}function Dt(e){return Ke(e)||Ze(e)||tt(e)||rt(e)||ot(e)||at(e)}function xt(e){if(!Dt(e))throw new Error(`Expected ${oe(e)} to be a GraphQL named type.`);return e}function Lt(e){if(e){let t=e;for(;St(t);)t=t.ofType;return t}}function kt(e){return"function"==typeof e?e():e}function Ct(e){return"function"==typeof e?e():e}class Bt{constructor(e){var t,n,r,i;const s=null!==(t=e.parseValue)&&void 0!==t?t:ve;this.name=Ye(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:ve,this.parseValue=s,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:(e,t)=>s(Qe(e,t)),this.extensions=De(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(i=e.extensionASTNodes)&&void 0!==i?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||o(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${oe(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||o(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||o(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class $t{constructor(e){var t;this.name=Ye(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=De(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>Ut(e),this._interfaces=()=>Ft(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||o(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${oe(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Pt(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Ft(e){var t;const n=kt(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||o(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function Ut(e){const t=Ct(e.fields);return jt(t)||o(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),we(t,((t,n)=>{var r;jt(t)||o(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||o(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${oe(t.resolve)}.`);const i=null!==(r=t.args)&&void 0!==r?r:{};return jt(i)||o(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:Ye(n),description:t.description,type:t.type,args:Mt(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:De(t.extensions),astNode:t.astNode}}))}function Mt(e){return Object.entries(e).map((([e,t])=>({name:Ye(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:De(t.extensions),astNode:t.astNode})))}function jt(e){return a(e)&&!Array.isArray(e)}function Pt(e){return we(e,(e=>({description:e.description,type:e.type,args:Vt(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function Vt(e){return _e(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function qt(e){return ft(e.type)&&void 0===e.defaultValue}class Gt{constructor(e){var t;this.name=Ye(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=De(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Ut.bind(void 0,e),this._interfaces=Ft.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||o(!1,`${this.name} must provide "resolveType" as a function, but got: ${oe(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Pt(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Wt{constructor(e){var t;this.name=Ye(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=De(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=Qt.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||o(!1,`${this.name} must provide "resolveType" as a function, but got: ${oe(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Qt(e){const t=kt(e.types);return Array.isArray(t)||o(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class Yt{constructor(e){var t;this.name=Ye(e.name),this.description=e.description,this.extensions=De(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values="function"==typeof e.values?e.values:Ht(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=Ht(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=Ee(this.getValues(),(e=>e.name))),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map((e=>[e.value,e]))));const t=this._valueLookup.get(e);if(void 0===t)throw new h(`Enum "${this.name}" cannot represent value: ${oe(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=oe(e);throw new h(`Enum "${this.name}" cannot represent non-string value: ${t}.`+Jt(this,t))}const t=this.getValue(e);if(null==t)throw new h(`Value "${e}" does not exist in "${this.name}" enum.`+Jt(this,e));return t.value}parseLiteral(e,t){if(e.kind!==N.ENUM){const t=Me(e);throw new h(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+Jt(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=Me(e);throw new h(`Value "${t}" does not exist in "${this.name}" enum.`+Jt(this,t),{nodes:e})}return n.value}toConfig(){const e=_e(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Jt(e,t){return be("the enum value",Ae(t,e.getValues().map((e=>e.name))))}function Ht(e,t){return jt(t)||o(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map((([t,n])=>(jt(n)||o(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${oe(n)}.`),{name:Je(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:De(n.extensions),astNode:n.astNode})))}class zt{constructor(e){var t,n;this.name=Ye(e.name),this.description=e.description,this.extensions=De(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this.isOneOf=null!==(n=e.isOneOf)&&void 0!==n&&n,this._fields=Kt.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=we(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function Kt(e){const t=Ct(e.fields);return jt(t)||o(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),we(t,((t,n)=>(!("resolve"in t)||o(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:Ye(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:De(t.extensions),astNode:t.astNode})))}function Xt(e){return ft(e.type)&&void 0===e.defaultValue}function Zt(e,t){return e===t||(ft(e)&&ft(t)||!(!ct(e)||!ct(t)))&&Zt(e.ofType,t.ofType)}function en(e,t,n){return t===n||(ft(n)?!!ft(t)&&en(e,t.ofType,n.ofType):ft(t)?en(e,t.ofType,n):ct(n)?!!ct(t)&&en(e,t.ofType,n.ofType):!ct(t)&&_t(n)&&(tt(t)||Ze(t))&&e.isSubType(n,t))}function tn(e,t,n){return t===n||(_t(t)?_t(n)?e.getPossibleTypes(t).some((t=>e.isSubType(n,t))):e.isSubType(t,n):!!_t(n)&&e.isSubType(n,t))}const nn=2147483647,rn=-2147483648,on=new Bt({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=dn(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new h(`Int cannot represent non-integer value: ${oe(t)}`);if(n>nn||n<rn)throw new h("Int cannot represent non 32-bit signed integer value: "+oe(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new h(`Int cannot represent non-integer value: ${oe(e)}`);if(e>nn||e<rn)throw new h(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==N.INT)throw new h(`Int cannot represent non-integer value: ${Me(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>nn||t<rn)throw new h(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),sn=new Bt({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=dn(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new h(`Float cannot represent non numeric value: ${oe(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new h(`Float cannot represent non numeric value: ${oe(e)}`);return e},parseLiteral(e){if(e.kind!==N.FLOAT&&e.kind!==N.INT)throw new h(`Float cannot represent non numeric value: ${Me(e)}`,e);return parseFloat(e.value)}}),an=new Bt({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=dn(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new h(`String cannot represent value: ${oe(e)}`)},parseValue(e){if("string"!=typeof e)throw new h(`String cannot represent a non string value: ${oe(e)}`);return e},parseLiteral(e){if(e.kind!==N.STRING)throw new h(`String cannot represent a non string value: ${Me(e)}`,{nodes:e});return e.value}}),un=new Bt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=dn(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new h(`Boolean cannot represent a non boolean value: ${oe(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new h(`Boolean cannot represent a non boolean value: ${oe(e)}`);return e},parseLiteral(e){if(e.kind!==N.BOOLEAN)throw new h(`Boolean cannot represent a non boolean value: ${Me(e)}`,{nodes:e});return e.value}}),cn=new Bt({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=dn(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new h(`ID cannot represent value: ${oe(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new h(`ID cannot represent value: ${oe(e)}`)},parseLiteral(e){if(e.kind!==N.STRING&&e.kind!==N.INT)throw new h("ID cannot represent a non-string and non-integer value: "+Me(e),{nodes:e});return e.value}}),ln=Object.freeze([an,on,sn,un,cn]);function fn(e){return ln.some((({name:t})=>e.name===t))}function dn(e){if(a(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!a(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function pn(e){return ae(e,yn)}function hn(e){if(!pn(e))throw new Error(`Expected ${oe(e)} to be a GraphQL directive.`);return e}class yn{constructor(e){var t,n;this.name=Ye(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=De(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||o(!1,`@${e.name} locations must be an Array.`);const r=null!==(n=e.args)&&void 0!==n?n:{};a(r)&&!Array.isArray(r)||o(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=Mt(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:Vt(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const mn=new yn({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[S.FIELD,S.FRAGMENT_SPREAD,S.INLINE_FRAGMENT],args:{if:{type:new It(un),description:"Included when true."}}}),gn=new yn({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[S.FIELD,S.FRAGMENT_SPREAD,S.INLINE_FRAGMENT],args:{if:{type:new It(un),description:"Skipped when true."}}}),bn="No longer supported",vn=new yn({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[S.FIELD_DEFINITION,S.ARGUMENT_DEFINITION,S.INPUT_FIELD_DEFINITION,S.ENUM_VALUE],args:{reason:{type:an,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:bn}}}),En=new yn({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[S.SCALAR],args:{url:{type:new It(an),description:"The URL that specifies the behavior of this scalar."}}}),_n=new yn({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[S.INPUT_OBJECT],args:{}}),wn=Object.freeze([mn,gn,vn,En,_n]);function Tn(e){return wn.some((({name:t})=>t===e.name))}function In(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function Sn(e,t){if(ft(t)){const n=Sn(e,t.ofType);return(null==n?void 0:n.kind)===N.NULL?null:n}if(null===e)return{kind:N.NULL};if(void 0===e)return null;if(ct(t)){const n=t.ofType;if(In(e)){const t=[];for(const r of e){const e=Sn(r,n);null!=e&&t.push(e)}return{kind:N.LIST,values:t}}return Sn(e,n)}if(at(t)){if(!a(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=Sn(e[r.name],r.type);t&&n.push({kind:N.OBJECT_FIELD,name:{kind:N.NAME,value:r.name},value:t})}return{kind:N.OBJECT,fields:n}}if(gt(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:N.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return Nn.test(e)?{kind:N.INT,value:e}:{kind:N.FLOAT,value:e}}if("string"==typeof n)return ot(t)?{kind:N.ENUM,value:n}:t===cn&&Nn.test(n)?{kind:N.INT,value:n}:{kind:N.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${oe(n)}.`)}u(!1,"Unexpected input type: "+oe(t))}const Nn=/^-?(?:0|[1-9][0-9]*)$/,An=new $t({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:an,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new It(new Tt(new It(Dn))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new It(Dn),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Dn,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Dn,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new It(new Tt(new It(On))),resolve:e=>e.getDirectives()}})}),On=new $t({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new It(an),resolve:e=>e.name},description:{type:an,resolve:e=>e.description},isRepeatable:{type:new It(un),resolve:e=>e.isRepeatable},locations:{type:new It(new Tt(new It(Rn))),resolve:e=>e.locations},args:{type:new It(new Tt(new It(Ln))),args:{includeDeprecated:{type:un,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))}})}),Rn=new Yt({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:S.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:S.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:S.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:S.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:S.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:S.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:S.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:S.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:S.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:S.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:S.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:S.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:S.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:S.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:S.UNION,description:"Location adjacent to a union definition."},ENUM:{value:S.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:S.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:S.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:S.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Dn=new $t({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new It(Bn),resolve:e=>Ke(e)?Cn.SCALAR:Ze(e)?Cn.OBJECT:tt(e)?Cn.INTERFACE:rt(e)?Cn.UNION:ot(e)?Cn.ENUM:at(e)?Cn.INPUT_OBJECT:ct(e)?Cn.LIST:ft(e)?Cn.NON_NULL:void u(!1,`Unexpected type: "${oe(e)}".`)},name:{type:an,resolve:e=>"name"in e?e.name:void 0},description:{type:an,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:an,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Tt(new It(xn)),args:{includeDeprecated:{type:un,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Ze(e)||tt(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new Tt(new It(Dn)),resolve(e){if(Ze(e)||tt(e))return e.getInterfaces()}},possibleTypes:{type:new Tt(new It(Dn)),resolve(e,t,n,{schema:r}){if(_t(e))return r.getPossibleTypes(e)}},enumValues:{type:new Tt(new It(kn)),args:{includeDeprecated:{type:un,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(ot(e)){const n=e.getValues();return t?n:n.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new Tt(new It(Ln)),args:{includeDeprecated:{type:un,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(at(e)){const n=Object.values(e.getFields());return t?n:n.filter((e=>null==e.deprecationReason))}}},ofType:{type:Dn,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:un,resolve:e=>{if(at(e))return e.isOneOf}}})}),xn=new $t({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new It(an),resolve:e=>e.name},description:{type:an,resolve:e=>e.description},args:{type:new It(new Tt(new It(Ln))),args:{includeDeprecated:{type:un,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))},type:{type:new It(Dn),resolve:e=>e.type},isDeprecated:{type:new It(un),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:an,resolve:e=>e.deprecationReason}})}),Ln=new $t({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new It(an),resolve:e=>e.name},description:{type:an,resolve:e=>e.description},type:{type:new It(Dn),resolve:e=>e.type},defaultValue:{type:an,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=Sn(n,t);return r?Me(r):null}},isDeprecated:{type:new It(un),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:an,resolve:e=>e.deprecationReason}})}),kn=new $t({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new It(an),resolve:e=>e.name},description:{type:an,resolve:e=>e.description},isDeprecated:{type:new It(un),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:an,resolve:e=>e.deprecationReason}})});var Cn;!function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(Cn||(Cn={}));const Bn=new Yt({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Cn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Cn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Cn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Cn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Cn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Cn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Cn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Cn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),$n={name:"__schema",type:new It(An),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Fn={name:"__type",type:Dn,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new It(an),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Un={name:"__typename",type:new It(an),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Mn=Object.freeze([An,On,Rn,Dn,xn,Ln,kn,Bn]);function jn(e){return Mn.some((({name:t})=>e.name===t))}function Pn(e){return ae(e,qn)}function Vn(e){if(!Pn(e))throw new Error(`Expected ${oe(e)} to be a GraphQL schema.`);return e}class qn{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,a(e)||o(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||o(!1,`"types" must be Array if provided but got: ${oe(e.types)}.`),!e.directives||Array.isArray(e.directives)||o(!1,`"directives" must be Array if provided but got: ${oe(e.directives)}.`),this.description=e.description,this.extensions=De(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:wn;const r=new Set(e.types);if(null!=e.types)for(const t of e.types)r.delete(t),Gn(t,r);null!=this._queryType&&Gn(this._queryType,r),null!=this._mutationType&&Gn(this._mutationType,r),null!=this._subscriptionType&&Gn(this._subscriptionType,r);for(const e of this._directives)if(pn(e))for(const t of e.args)Gn(t.type,r);Gn(An,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const e of r){if(null==e)continue;const t=e.name;if(t||o(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,tt(e)){for(const t of e.getInterfaces())if(tt(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if(Ze(e))for(const t of e.getInterfaces())if(tt(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case I.QUERY:return this.getQueryType();case I.MUTATION:return this.getMutationType();case I.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return rt(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),rt(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function Gn(e,t){const n=Lt(e);if(!t.has(n))if(t.add(n),rt(n))for(const e of n.getTypes())Gn(e,t);else if(Ze(n)||tt(n)){for(const e of n.getInterfaces())Gn(e,t);for(const e of Object.values(n.getFields())){Gn(e.type,t);for(const n of e.args)Gn(n.type,t)}}else if(at(n))for(const e of Object.values(n.getFields()))Gn(e.type,t);return t}function Wn(e){if(Vn(e),e.__validationErrors)return e.__validationErrors;const t=new Yn(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!Ze(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${oe(n)}.`,null!==(r=Jn(t,I.QUERY))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const i=t.getMutationType();var o;i&&!Ze(i)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${oe(i)}.`,null!==(o=Jn(t,I.MUTATION))&&void 0!==o?o:i.astNode);const s=t.getSubscriptionType();var a;s&&!Ze(s)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${oe(s)}.`,null!==(a=Jn(t,I.SUBSCRIPTION))&&void 0!==a?a:s.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if(pn(n)){Hn(e,n);for(const r of n.args){var t;Hn(e,r),pt(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${oe(r.type)}.`,r.astNode),qt(r)&&null!=r.deprecationReason&&e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[sr(r.astNode),null===(t=r.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${oe(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const s=Object.values(o.getFields());for(const t of s)if(ft(t.type)&&at(t.type.ofType)){const o=t.type.ofType,s=r[o.name];if(n.push(t),void 0===s)i(o);else{const t=n.slice(s),r=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${o.name}" within itself through a series of non-null fields: "${r}".`,t.map((e=>e.astNode)))}n.pop()}r[o.name]=void 0}}(e),n=e.schema.getTypeMap();for(const r of Object.values(n))Dt(r)?(jn(r)||Hn(e,r),Ze(r)||tt(r)?(zn(e,r),Kn(e,r)):rt(r)?er(e,r):ot(r)?tr(e,r):at(r)&&(nr(e,r),t(r))):e.reportError(`Expected GraphQL named type but got: ${oe(r)}.`,r.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}function Qn(e){const t=Wn(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))}class Yn{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new h(e,{nodes:n}))}getErrors(){return this._errors}}function Jn(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]})).find((e=>e.operation===t)))||void 0===n?void 0:n.type}function Hn(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function zn(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const s of n){var r;Hn(e,s),yt(s.type)||e.reportError(`The type of ${t.name}.${s.name} must be Output Type but got: ${oe(s.type)}.`,null===(r=s.astNode)||void 0===r?void 0:r.type);for(const n of s.args){const r=n.name;var i,o;Hn(e,n),pt(n.type)||e.reportError(`The type of ${t.name}.${s.name}(${r}:) must be Input Type but got: ${oe(n.type)}.`,null===(i=n.astNode)||void 0===i?void 0:i.type),qt(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${s.name}(${r}:) cannot be deprecated.`,[sr(n.astNode),null===(o=n.astNode)||void 0===o?void 0:o.type])}}}function Kn(e,t){const n=Object.create(null);for(const r of t.getInterfaces())tt(r)?t!==r?n[r.name]?e.reportError(`Type ${t.name} can only implement ${r.name} once.`,ir(t,r)):(n[r.name]=!0,Zn(e,t,r),Xn(e,t,r)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,ir(t,r)):e.reportError(`Type ${oe(t)} must only implement Interface types, it cannot implement ${oe(r)}.`,ir(t,r))}function Xn(e,t,n){const r=t.getFields();for(const u of Object.values(n.getFields())){const c=u.name,l=r[c];if(l){var i,o;en(e.schema,l.type,u.type)||e.reportError(`Interface field ${n.name}.${c} expects type ${oe(u.type)} but ${t.name}.${c} is type ${oe(l.type)}.`,[null===(i=u.astNode)||void 0===i?void 0:i.type,null===(o=l.astNode)||void 0===o?void 0:o.type]);for(const r of u.args){const i=r.name,o=l.args.find((e=>e.name===i));var s,a;o?Zt(r.type,o.type)||e.reportError(`Interface field argument ${n.name}.${c}(${i}:) expects type ${oe(r.type)} but ${t.name}.${c}(${i}:) is type ${oe(o.type)}.`,[null===(s=r.astNode)||void 0===s?void 0:s.type,null===(a=o.astNode)||void 0===a?void 0:a.type]):e.reportError(`Interface field argument ${n.name}.${c}(${i}:) expected but ${t.name}.${c} does not provide it.`,[r.astNode,l.astNode])}for(const r of l.args){const i=r.name;!u.args.find((e=>e.name===i))&&qt(r)&&e.reportError(`Object field ${t.name}.${c} includes required argument ${i} that is missing from the Interface field ${n.name}.${c}.`,[r.astNode,u.astNode])}}else e.reportError(`Interface field ${n.name}.${c} expected but ${t.name} does not provide it.`,[u.astNode,t.astNode,...t.extensionASTNodes])}}function Zn(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...ir(n,i),...ir(t,n)])}function er(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const r=Object.create(null);for(const i of n)r[i.name]?e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,or(t,i.name)):(r[i.name]=!0,Ze(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${oe(i)}.`,or(t,String(i))))}function tr(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const t of n)Hn(e,t)}function nr(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const o of n){var r,i;Hn(e,o),pt(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${oe(o.type)}.`,null===(r=o.astNode)||void 0===r?void 0:r.type),Xt(o)&&null!=o.deprecationReason&&e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[sr(o.astNode),null===(i=o.astNode)||void 0===i?void 0:i.type]),t.isOneOf&&rr(t,o,e)}}function rr(e,t,n){var r;ft(t.type)&&n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null===(r=t.astNode)||void 0===r?void 0:r.type),void 0!==t.defaultValue&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function ir(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]})).filter((e=>e.name.value===t.name))}function or(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]})).filter((e=>e.name.value===t))}function sr(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find((e=>e.name.value===vn.name))}function ar(e,t){switch(t.kind){case N.LIST_TYPE:{const n=ar(e,t.type);return n&&new Tt(n)}case N.NON_NULL_TYPE:{const n=ar(e,t.type);return n&&new It(n)}case N.NAMED_TYPE:return e.getType(t.name.value)}}class ur{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:cr,t&&(pt(t)&&this._inputTypeStack.push(t),vt(t)&&this._parentTypeStack.push(t),yt(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case N.SELECTION_SET:{const e=Lt(this.getType());this._parentTypeStack.push(vt(e)?e:void 0);break}case N.FIELD:{const n=this.getParentType();let r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push(yt(i)?i:void 0);break}case N.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case N.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push(Ze(n)?n:void 0);break}case N.INLINE_FRAGMENT:case N.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?ar(t,n):Lt(this.getType());this._typeStack.push(yt(r)?r:void 0);break}case N.VARIABLE_DEFINITION:{const n=ar(t,e.type);this._inputTypeStack.push(pt(n)?n:void 0);break}case N.ARGUMENT:{var n;let t,r;const i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find((t=>t.name===e.name.value)),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(pt(r)?r:void 0);break}case N.LIST:{const e=Rt(this.getInputType()),t=ct(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(pt(t)?t:void 0);break}case N.OBJECT_FIELD:{const t=Lt(this.getInputType());let n,r;at(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push(pt(n)?n:void 0);break}case N.ENUM:{const t=Lt(this.getInputType());let n;ot(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case N.SELECTION_SET:this._parentTypeStack.pop();break;case N.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case N.DIRECTIVE:this._directive=null;break;case N.OPERATION_DEFINITION:case N.INLINE_FRAGMENT:case N.FRAGMENT_DEFINITION:this._typeStack.pop();break;case N.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case N.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case N.LIST:case N.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case N.ENUM:this._enumValue=null}}}function cr(e,t,n){const r=n.name.value;return r===$n.name&&e.getQueryType()===t?$n:r===Fn.name&&e.getQueryType()===t?Fn:r===Un.name&&vt(t)?Un:Ze(t)||tt(t)?t.getFields()[r]:void 0}function lr(e,t){return{enter(...n){const r=n[0];e.enter(r);const i=Fe(t,r.kind).enter;if(i){const o=i.apply(t,n);return void 0!==o&&(e.leave(r),T(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=Fe(t,r.kind).leave;let o;return i&&(o=i.apply(t,n)),e.leave(r),o}}}function fr(e){return dr(e)||gr(e)||vr(e)}function dr(e){return e.kind===N.OPERATION_DEFINITION||e.kind===N.FRAGMENT_DEFINITION}function pr(e){return e.kind===N.FIELD||e.kind===N.FRAGMENT_SPREAD||e.kind===N.INLINE_FRAGMENT}function hr(e){return e.kind===N.VARIABLE||e.kind===N.INT||e.kind===N.FLOAT||e.kind===N.STRING||e.kind===N.BOOLEAN||e.kind===N.NULL||e.kind===N.ENUM||e.kind===N.LIST||e.kind===N.OBJECT}function yr(e){return hr(e)&&(e.kind===N.LIST?e.values.some(yr):e.kind===N.OBJECT?e.fields.some((e=>yr(e.value))):e.kind!==N.VARIABLE)}function mr(e){return e.kind===N.NAMED_TYPE||e.kind===N.LIST_TYPE||e.kind===N.NON_NULL_TYPE}function gr(e){return e.kind===N.SCHEMA_DEFINITION||br(e)||e.kind===N.DIRECTIVE_DEFINITION}function br(e){return e.kind===N.SCALAR_TYPE_DEFINITION||e.kind===N.OBJECT_TYPE_DEFINITION||e.kind===N.INTERFACE_TYPE_DEFINITION||e.kind===N.UNION_TYPE_DEFINITION||e.kind===N.ENUM_TYPE_DEFINITION||e.kind===N.INPUT_OBJECT_TYPE_DEFINITION}function vr(e){return e.kind===N.SCHEMA_EXTENSION||Er(e)}function Er(e){return e.kind===N.SCALAR_TYPE_EXTENSION||e.kind===N.OBJECT_TYPE_EXTENSION||e.kind===N.INTERFACE_TYPE_EXTENSION||e.kind===N.UNION_TYPE_EXTENSION||e.kind===N.ENUM_TYPE_EXTENSION||e.kind===N.INPUT_OBJECT_TYPE_EXTENSION}function _r(e){return{Document(t){for(const n of t.definitions)if(!dr(n)){const t=n.kind===N.SCHEMA_DEFINITION||n.kind===N.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new h(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}function wr(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const r=e.getSchema(),i=t.name.value;let o=be("to use an inline fragment on",function(e,t,n){if(!_t(t))return[];const r=new Set,i=Object.create(null);for(const s of e.getPossibleTypes(t))if(s.getFields()[n]){r.add(s),i[s.name]=1;for(const e of s.getInterfaces()){var o;e.getFields()[n]&&(r.add(e),i[e.name]=(null!==(o=i[e.name])&&void 0!==o?o:0)+1)}}return[...r].sort(((t,n)=>{const r=i[n.name]-i[t.name];return 0!==r?r:tt(t)&&e.isSubType(t,n)?-1:tt(n)&&e.isSubType(n,t)?1:Te(t.name,n.name)})).map((e=>e.name))}(r,n,i));""===o&&(o=be(function(e,t){return Ze(e)||tt(e)?Ae(t,Object.keys(e.getFields())):[]}(n,i))),e.reportError(new h(`Cannot query field "${i}" on type "${n.name}".`+o,{nodes:t}))}}}}function Tr(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=ar(e.getSchema(),n);if(t&&!vt(t)){const t=Me(n);e.reportError(new h(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){const n=ar(e.getSchema(),t.typeCondition);if(n&&!vt(n)){const n=Me(t.typeCondition);e.reportError(new h(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}function Ir(e){return{...Sr(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){const n=t.name.value,o=Ae(n,r.args.map((e=>e.name)));e.reportError(new h(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+be(o),{nodes:t}))}}}}function Sr(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():wn;for(const e of r)t[e.name]=e.args.map((e=>e.name));const i=e.getDocument().definitions;for(const e of i)if(e.kind===N.DIRECTIVE_DEFINITION){var o;const n=null!==(o=e.arguments)&&void 0!==o?o:[];t[e.name.value]=n.map((e=>e.name.value))}return{Directive(n){const r=n.name.value,i=t[r];if(n.arguments&&i)for(const t of n.arguments){const n=t.name.value;if(!i.includes(n)){const o=Ae(n,i);e.reportError(new h(`Unknown argument "${n}" on directive "@${r}".`+be(o),{nodes:t}))}}return!1}}}function Nr(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():wn;for(const e of r)t[e.name]=e.locations;const i=e.getDocument().definitions;for(const e of i)e.kind===N.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map((e=>e.value)));return{Directive(n,r,i,o,s){const a=n.name.value,c=t[a];if(!c)return void e.reportError(new h(`Unknown directive "@${a}".`,{nodes:n}));const l=function(e){const t=e[e.length-1];switch("kind"in t||u(!1),t.kind){case N.OPERATION_DEFINITION:return function(e){switch(e){case I.QUERY:return S.QUERY;case I.MUTATION:return S.MUTATION;case I.SUBSCRIPTION:return S.SUBSCRIPTION}}(t.operation);case N.FIELD:return S.FIELD;case N.FRAGMENT_SPREAD:return S.FRAGMENT_SPREAD;case N.INLINE_FRAGMENT:return S.INLINE_FRAGMENT;case N.FRAGMENT_DEFINITION:return S.FRAGMENT_DEFINITION;case N.VARIABLE_DEFINITION:return S.VARIABLE_DEFINITION;case N.SCHEMA_DEFINITION:case N.SCHEMA_EXTENSION:return S.SCHEMA;case N.SCALAR_TYPE_DEFINITION:case N.SCALAR_TYPE_EXTENSION:return S.SCALAR;case N.OBJECT_TYPE_DEFINITION:case N.OBJECT_TYPE_EXTENSION:return S.OBJECT;case N.FIELD_DEFINITION:return S.FIELD_DEFINITION;case N.INTERFACE_TYPE_DEFINITION:case N.INTERFACE_TYPE_EXTENSION:return S.INTERFACE;case N.UNION_TYPE_DEFINITION:case N.UNION_TYPE_EXTENSION:return S.UNION;case N.ENUM_TYPE_DEFINITION:case N.ENUM_TYPE_EXTENSION:return S.ENUM;case N.ENUM_VALUE_DEFINITION:return S.ENUM_VALUE;case N.INPUT_OBJECT_TYPE_DEFINITION:case N.INPUT_OBJECT_TYPE_EXTENSION:return S.INPUT_OBJECT;case N.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||u(!1),t.kind===N.INPUT_OBJECT_TYPE_DEFINITION?S.INPUT_FIELD_DEFINITION:S.ARGUMENT_DEFINITION}default:u(!1,"Unexpected kind: "+oe(t.kind))}}(s);l&&!c.includes(l)&&e.reportError(new h(`Directive "@${a}" may not be used on ${l}.`,{nodes:n}))}}}function Ar(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new h(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function Or(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const t of e.getDocument().definitions)br(t)&&(r[t.name.value]=!0);const i=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,o,s,a,u){const c=t.name.value;if(!n[c]&&!r[c]){var l;const n=null!==(l=u[2])&&void 0!==l?l:s,r=null!=n&&"kind"in(f=n)&&(gr(f)||vr(f));if(r&&Rr.includes(c))return;const o=Ae(c,r?Rr.concat(i):i);e.reportError(new h(`Unknown type "${c}".`+be(o),{nodes:t}))}var f}}}const Rr=[...ln,...Mn].map((e=>e.name));function Dr(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===N.OPERATION_DEFINITION)).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new h("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function xr(e){var t,n,r;const i=e.getSchema(),o=null!==(t=null!==(n=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==n?n:null==i?void 0:i.getMutationType())&&void 0!==t?t:null==i?void 0:i.getSubscriptionType();let s=0;return{SchemaDefinition(t){o?e.reportError(new h("Cannot define a new schema within a schema extension.",{nodes:t})):(s>0&&e.reportError(new h("Must provide only one schema definition.",{nodes:t})),++s)}}}const Lr=3;function kr(e){function t(n,r=Object.create(null),i=0){if(n.kind===N.FRAGMENT_SPREAD){const o=n.name.value;if(!0===r[o])return!1;const s=e.getFragment(o);if(!s)return!1;try{return r[o]=!0,t(s,r,i)}finally{r[o]=void 0}}if(n.kind===N.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++i>=Lr)return!0;if("selectionSet"in n&&n.selectionSet)for(const e of n.selectionSet.selections)if(t(e,r,i))return!0;return!1}return{Field(n){if(("__schema"===n.name.value||"__type"===n.name.value)&&t(n))return e.reportError(new h("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}function Cr(e){const t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(i(e),!1)};function i(o){if(t[o.name.value])return;const s=o.name.value;t[s]=!0;const a=e.getFragmentSpreads(o.selectionSet);if(0!==a.length){r[s]=n.length;for(const t of a){const o=t.name.value,s=r[o];if(n.push(t),void 0===s){const t=e.getFragment(o);t&&i(t)}else{const t=n.slice(s),r=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new h(`Cannot spread fragment "${o}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[s]=void 0}}}function Br(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i}of r){const r=i.name.value;!0!==t[r]&&e.reportError(new h(n.name?`Variable "$${r}" is not defined by operation "${n.name.value}".`:`Variable "$${r}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function $r(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const r=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==r[n]&&e.reportError(new h(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}function Fr(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(const{node:e}of i)r[e.name.value]=!0;for(const i of t){const t=i.variable.name.value;!0!==r[t]&&e.reportError(new h(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}}function Ur(e){switch(e.kind){case N.OBJECT:return{...e,fields:(t=e.fields,t.map((e=>({...e,value:Ur(e.value)}))).sort(((e,t)=>Te(e.name.value,t.name.value))))};case N.LIST:return{...e,values:e.values.map(Ur)};case N.INT:case N.FLOAT:case N.STRING:case N.BOOLEAN:case N.NULL:case N.ENUM:case N.VARIABLE:return e}var t}function Mr(e){return Array.isArray(e)?e.map((([e,t])=>`subfields "${e}" conflict because `+Mr(t))).join(" and "):e}function jr(e){const t=new zr,n=new Map;return{SelectionSet(r){const i=function(e,t,n,r,i){const o=[],[s,a]=Yr(e,t,r,i);if(function(e,t,n,r,i){for(const[o,s]of Object.entries(i))if(s.length>1)for(let i=0;i<s.length;i++)for(let a=i+1;a<s.length;a++){const u=Gr(e,n,r,!1,o,s[i],s[a]);u&&t.push(u)}}(e,o,t,n,s),0!==a.length)for(let r=0;r<a.length;r++){Pr(e,o,t,n,!1,s,a[r]);for(let i=r+1;i<a.length;i++)Vr(e,o,t,n,!1,a[r],a[i])}return o}(e,n,t,e.getParentType(),r);for(const[[t,n],r,o]of i){const i=Mr(n);e.reportError(new h(`Fields "${t}" conflict because ${i}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(o)}))}}}}function Pr(e,t,n,r,i,o,s){const a=e.getFragment(s);if(!a)return;const[u,c]=Jr(e,n,a);if(o!==u){qr(e,t,n,r,i,o,u);for(const a of c)r.has(a,s,i)||(r.add(a,s,i),Pr(e,t,n,r,i,o,a))}}function Vr(e,t,n,r,i,o,s){if(o===s)return;if(r.has(o,s,i))return;r.add(o,s,i);const a=e.getFragment(o),u=e.getFragment(s);if(!a||!u)return;const[c,l]=Jr(e,n,a),[f,d]=Jr(e,n,u);qr(e,t,n,r,i,c,f);for(const s of d)Vr(e,t,n,r,i,o,s);for(const o of l)Vr(e,t,n,r,i,o,s)}function qr(e,t,n,r,i,o,s){for(const[a,u]of Object.entries(o)){const o=s[a];if(o)for(const s of u)for(const u of o){const o=Gr(e,n,r,i,a,s,u);o&&t.push(o)}}}function Gr(e,t,n,r,i,o,s){const[a,u,c]=o,[l,f,d]=s,p=r||a!==l&&Ze(a)&&Ze(l);if(!p){const e=u.name.value,t=f.name.value;if(e!==t)return[[i,`"${e}" and "${t}" are different fields`],[u],[f]];if(!function(e,t){const n=e.arguments,r=t.arguments;if(void 0===n||0===n.length)return void 0===r||0===r.length;if(void 0===r||0===r.length)return!1;if(n.length!==r.length)return!1;const i=new Map(r.map((({name:e,value:t})=>[e.value,t])));return n.every((e=>{const t=e.value,n=i.get(e.name.value);return void 0!==n&&Wr(t)===Wr(n)}))}(u,f))return[[i,"they have differing arguments"],[u],[f]]}const h=null==c?void 0:c.type,y=null==d?void 0:d.type;if(h&&y&&Qr(h,y))return[[i,`they return conflicting types "${oe(h)}" and "${oe(y)}"`],[u],[f]];const m=u.selectionSet,g=f.selectionSet;if(m&&g){const r=function(e,t,n,r,i,o,s,a){const u=[],[c,l]=Yr(e,t,i,o),[f,d]=Yr(e,t,s,a);qr(e,u,t,n,r,c,f);for(const i of d)Pr(e,u,t,n,r,c,i);for(const i of l)Pr(e,u,t,n,r,f,i);for(const i of l)for(const o of d)Vr(e,u,t,n,r,i,o);return u}(e,t,n,p,Lt(h),m,Lt(y),g);return function(e,t,n,r){if(e.length>0)return[[t,e.map((([e])=>e))],[n,...e.map((([,e])=>e)).flat()],[r,...e.map((([,,e])=>e)).flat()]]}(r,i,u,f)}}function Wr(e){return Me(Ur(e))}function Qr(e,t){return ct(e)?!ct(t)||Qr(e.ofType,t.ofType):!!ct(t)||(ft(e)?!ft(t)||Qr(e.ofType,t.ofType):!!ft(t)||!(!gt(e)&&!gt(t))&&e!==t)}function Yr(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),s=Object.create(null);Hr(e,n,r,o,s);const a=[o,Object.keys(s)];return t.set(r,a),a}function Jr(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=ar(e.getSchema(),n.typeCondition);return Yr(e,t,i,n.selectionSet)}function Hr(e,t,n,r,i){for(const o of n.selections)switch(o.kind){case N.FIELD:{const e=o.name.value;let n;(Ze(t)||tt(t))&&(n=t.getFields()[e]);const i=o.alias?o.alias.value:e;r[i]||(r[i]=[]),r[i].push([t,o,n]);break}case N.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case N.INLINE_FRAGMENT:{const n=o.typeCondition,s=n?ar(e.getSchema(),n):t;Hr(e,s,o.selectionSet,r,i);break}}}class zr{constructor(){this._data=new Map}has(e,t,n){var r;const[i,o]=e<t?[e,t]:[t,e],s=null===(r=this._data.get(i))||void 0===r?void 0:r.get(o);return void 0!==s&&(!!n||n===s)}add(e,t,n){const[r,i]=e<t?[e,t]:[t,e],o=this._data.get(r);void 0===o?this._data.set(r,new Map([[i,n]])):o.set(i,n)}}function Kr(e){return{InlineFragment(t){const n=e.getType(),r=e.getParentType();if(vt(n)&&vt(r)&&!tn(e.getSchema(),n,r)){const i=oe(r),o=oe(n);e.reportError(new h(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,{nodes:t}))}},FragmentSpread(t){const n=t.name.value,r=function(e,t){const n=e.getFragment(t);if(n){const t=ar(e.getSchema(),n.typeCondition);if(vt(t))return t}}(e,n),i=e.getParentType();if(r&&i&&!tn(e.getSchema(),r,i)){const o=oe(i),s=oe(r);e.reportError(new h(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${s}".`,{nodes:t}))}}}}function Xr(e){const t=e.getSchema(),n=Object.create(null);for(const t of e.getDocument().definitions)br(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){const i=r.name.value,o=n[i],s=null==t?void 0:t.getType(i);let a;if(o?a=Zr[o.kind]:s&&(a=Ke(c=s)?N.SCALAR_TYPE_EXTENSION:Ze(c)?N.OBJECT_TYPE_EXTENSION:tt(c)?N.INTERFACE_TYPE_EXTENSION:rt(c)?N.UNION_TYPE_EXTENSION:ot(c)?N.ENUM_TYPE_EXTENSION:at(c)?N.INPUT_OBJECT_TYPE_EXTENSION:void u(!1,"Unexpected type: "+oe(c))),a){if(a!==r.kind){const t=function(e){switch(e){case N.SCALAR_TYPE_EXTENSION:return"scalar";case N.OBJECT_TYPE_EXTENSION:return"object";case N.INTERFACE_TYPE_EXTENSION:return"interface";case N.UNION_TYPE_EXTENSION:return"union";case N.ENUM_TYPE_EXTENSION:return"enum";case N.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:u(!1,"Unexpected kind: "+oe(e))}}(r.kind);e.reportError(new h(`Cannot extend non-${t} type "${i}".`,{nodes:o?[o,r]:r}))}}else{const o=Ae(i,Object.keys({...n,...null==t?void 0:t.getTypeMap()}));e.reportError(new h(`Cannot extend type "${i}" because it is not defined.`+be(o),{nodes:r.name}))}var c}}const Zr={[N.SCALAR_TYPE_DEFINITION]:N.SCALAR_TYPE_EXTENSION,[N.OBJECT_TYPE_DEFINITION]:N.OBJECT_TYPE_EXTENSION,[N.INTERFACE_TYPE_DEFINITION]:N.INTERFACE_TYPE_EXTENSION,[N.UNION_TYPE_DEFINITION]:N.UNION_TYPE_EXTENSION,[N.ENUM_TYPE_DEFINITION]:N.ENUM_TYPE_EXTENSION,[N.INPUT_OBJECT_TYPE_DEFINITION]:N.INPUT_OBJECT_TYPE_EXTENSION};function ei(e){return{...ti(e),Field:{leave(t){var n;const r=e.getFieldDef();if(!r)return!1;const i=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map((e=>e.name.value)));for(const n of r.args)if(!i.has(n.name)&&qt(n)){const i=oe(n.type);e.reportError(new h(`Field "${r.name}" argument "${n.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}function ti(e){var t;const n=Object.create(null),r=e.getSchema(),i=null!==(t=null==r?void 0:r.getDirectives())&&void 0!==t?t:wn;for(const e of i)n[e.name]=Ee(e.args.filter(qt),(e=>e.name));const o=e.getDocument().definitions;for(const e of o)if(e.kind===N.DIRECTIVE_DEFINITION){var s;const t=null!==(s=e.arguments)&&void 0!==s?s:[];n[e.name.value]=Ee(t.filter(ni),(e=>e.name.value))}return{Directive:{leave(t){const r=t.name.value,i=n[r];if(i){var o;const n=null!==(o=t.arguments)&&void 0!==o?o:[],s=new Set(n.map((e=>e.name.value)));for(const[n,o]of Object.entries(i))if(!s.has(n)){const i=He(o.type)?oe(o.type):Me(o.type);e.reportError(new h(`Directive "@${r}" argument "${n}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}function ni(e){return e.type.kind===N.NON_NULL_TYPE&&null==e.defaultValue}function ri(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n)if(gt(Lt(n))){if(r){const i=t.name.value,o=oe(n);e.reportError(new h(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(!r){const r=t.name.value,i=oe(n);e.reportError(new h(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}function ii(e){return e.map((e=>"number"==typeof e?"["+e.toString()+"]":"."+e)).join("")}function oi(e,t,n){return{prev:e,key:t,typename:n}}function si(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function ai(e,t,n=ui){return ci(e,t,n,void 0)}function ui(e,t,n){let r="Invalid value "+oe(t);throw e.length>0&&(r+=` at "value${ii(e)}"`),n.message=r+": "+n.message,n}function ci(e,t,n,r){if(ft(t))return null!=e?ci(e,t.ofType,n,r):void n(si(r),e,new h(`Expected non-nullable type "${oe(t)}" not to be null.`));if(null==e)return null;if(ct(t)){const i=t.ofType;return In(e)?Array.from(e,((e,t)=>{const o=oi(r,t,void 0);return ci(e,i,n,o)})):[ci(e,i,n,r)]}if(at(t)){if(!a(e))return void n(si(r),e,new h(`Expected type "${t.name}" to be an object.`));const i={},o=t.getFields();for(const s of Object.values(o)){const o=e[s.name];if(void 0!==o)i[s.name]=ci(o,s.type,n,oi(r,s.name,t.name));else if(void 0!==s.defaultValue)i[s.name]=s.defaultValue;else if(ft(s.type)){const t=oe(s.type);n(si(r),e,new h(`Field "${s.name}" of required type "${t}" was not provided.`))}}for(const i of Object.keys(e))if(!o[i]){const o=Ae(i,Object.keys(t.getFields()));n(si(r),e,new h(`Field "${i}" is not defined by type "${t.name}".`+be(o)))}if(t.isOneOf){const o=Object.keys(i);1!==o.length&&n(si(r),e,new h(`Exactly one key must be specified for OneOf type "${t.name}".`));const s=o[0],a=i[s];null===a&&n(si(r).concat(s),a,new h(`Field "${s}" must be non-null.`))}return i}if(gt(t)){let i;try{i=t.parseValue(e)}catch(i){return void n(si(r),e,i instanceof h?i:new h(`Expected type "${t.name}". `+i.message,{originalError:i}))}return void 0===i&&n(si(r),e,new h(`Expected type "${t.name}".`)),i}u(!1,"Unexpected input type: "+oe(t))}function li(e,t,n){if(e){if(e.kind===N.VARIABLE){const r=e.name.value;if(null==n||void 0===n[r])return;const i=n[r];if(null===i&&ft(t))return;return i}if(ft(t)){if(e.kind===N.NULL)return;return li(e,t.ofType,n)}if(e.kind===N.NULL)return null;if(ct(t)){const r=t.ofType;if(e.kind===N.LIST){const t=[];for(const i of e.values)if(fi(i,n)){if(ft(r))return;t.push(null)}else{const e=li(i,r,n);if(void 0===e)return;t.push(e)}return t}const i=li(e,r,n);if(void 0===i)return;return[i]}if(at(t)){if(e.kind!==N.OBJECT)return;const r=Object.create(null),i=Ee(e.fields,(e=>e.name.value));for(const e of Object.values(t.getFields())){const t=i[e.name];if(!t||fi(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(ft(e.type))return;continue}const o=li(t.value,e.type,n);if(void 0===o)return;r[e.name]=o}if(t.isOneOf){const e=Object.keys(r);if(1!==e.length)return;if(null===r[e[0]])return}return r}if(gt(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}u(!1,"Unexpected input type: "+oe(t))}}function fi(e,t){return e.kind===N.VARIABLE&&(null==t||void 0===t[e.name.value])}function di(e,t,n,r){const i=[],o=null==r?void 0:r.maxErrors;try{const r=function(e,t,n,r){const i={};for(const o of t){const t=o.variable.name.value,s=ar(e,o.type);if(!pt(s)){const e=Me(o.type);r(new h(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!yi(n,t)){if(o.defaultValue)i[t]=li(o.defaultValue,s);else if(ft(s)){const e=oe(s);r(new h(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:o}))}continue}const a=n[t];if(null===a&&ft(s)){const e=oe(s);r(new h(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:o}))}else i[t]=ai(a,s,((e,n,i)=>{let s=`Variable "$${t}" got invalid value `+oe(n);e.length>0&&(s+=` at "${t}${ii(e)}"`),r(new h(s+"; "+i.message,{nodes:o,originalError:i}))}))}return i}(e,t,n,(e=>{if(null!=o&&i.length>=o)throw new h("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)}));if(0===i.length)return{coerced:r}}catch(e){i.push(e)}return{errors:i}}function pi(e,t,n){var r;const i={},o=Ee(null!==(r=t.arguments)&&void 0!==r?r:[],(e=>e.name.value));for(const r of e.args){const e=r.name,s=r.type,a=o[e];if(!a){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(ft(s))throw new h(`Argument "${e}" of required type "${oe(s)}" was not provided.`,{nodes:t});continue}const u=a.value;let c=u.kind===N.NULL;if(u.kind===N.VARIABLE){const t=u.name.value;if(null==n||!yi(n,t)){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(ft(s))throw new h(`Argument "${e}" of required type "${oe(s)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:u});continue}c=null==n[t]}if(c&&ft(s))throw new h(`Argument "${e}" of non-null type "${oe(s)}" must not be null.`,{nodes:u});const l=li(u,s,n);if(void 0===l)throw new h(`Argument "${e}" has invalid value ${Me(u)}.`,{nodes:u});i[e]=l}return i}function hi(e,t,n){var r;const i=null===(r=t.directives)||void 0===r?void 0:r.find((t=>t.name.value===e.name));if(i)return pi(e,i,n)}function yi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function mi(e,t,n,r,i){const o=new Map;return gi(e,t,n,r,i,o,new Set),o}function gi(e,t,n,r,i,o,s){for(const u of i.selections)switch(u.kind){case N.FIELD:{if(!bi(n,u))continue;const e=(a=u).alias?a.alias.value:a.name.value,t=o.get(e);void 0!==t?t.push(u):o.set(e,[u]);break}case N.INLINE_FRAGMENT:if(!bi(n,u)||!vi(e,u,r))continue;gi(e,t,n,r,u.selectionSet,o,s);break;case N.FRAGMENT_SPREAD:{const i=u.name.value;if(s.has(i)||!bi(n,u))continue;s.add(i);const a=t[i];if(!a||!vi(e,a,r))continue;gi(e,t,n,r,a.selectionSet,o,s);break}}var a}function bi(e,t){const n=hi(gn,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=hi(mn,t,e);return!1!==(null==r?void 0:r.if)}function vi(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=ar(e,r);return i===n||!!_t(i)&&e.isSubType(i,n)}function Ei(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),r=n.getSubscriptionType();if(r){const i=t.name?t.name.value:null,o=Object.create(null),s=e.getDocument(),a=Object.create(null);for(const e of s.definitions)e.kind===N.FRAGMENT_DEFINITION&&(a[e.name.value]=e);const u=mi(n,a,o,r,t.selectionSet);if(u.size>1){const t=[...u.values()].slice(1).flat();e.reportError(new h(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of u.values())t[0].name.value.startsWith("__")&&e.reportError(new h(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}function _i(e,t){const n=new Map;for(const r of e){const e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}function wi(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,i=null!==(t=e.fields)&&void 0!==t?t:[];for(const e of i){var o;n(`${r}.${e.name.value}`,null!==(o=e.arguments)&&void 0!==o?o:[])}return!1}function n(t,n){const r=_i(n,(e=>e.name.value));for(const[n,i]of r)i.length>1&&e.reportError(new h(`Argument "${t}(${n}:)" can only be defined once.`,{nodes:i.map((e=>e.name))}));return!1}}function Ti(e){return{Field:t,Directive:t};function t(t){var n;const r=_i(null!==(n=t.arguments)&&void 0!==n?n:[],(e=>e.name.value));for(const[t,n]of r)n.length>1&&e.reportError(new h(`There can be only one argument named "${t}".`,{nodes:n.map((e=>e.name))}))}}function Ii(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){const i=r.name.value;if(null==n||!n.getDirective(i))return t[i]?e.reportError(new h(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new h(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}))}}}function Si(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():wn;for(const e of r)t[e.name]=!e.isRepeatable;const i=e.getDocument().definitions;for(const e of i)e.kind===N.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);const o=Object.create(null),s=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let r;if(n.kind===N.SCHEMA_DEFINITION||n.kind===N.SCHEMA_EXTENSION)r=o;else if(br(n)||Er(n)){const e=n.name.value;r=s[e],void 0===r&&(s[e]=r=Object.create(null))}else r=Object.create(null);for(const i of n.directives){const n=i.name.value;t[n]&&(r[n]?e.reportError(new h(`The directive "@${n}" can only be used once at this location.`,{nodes:[r[n],i]})):r[n]=i)}}}}function Ni(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const s=null!==(i=t.values)&&void 0!==i?i:[],a=r[o];for(const t of s){const r=t.name.value,i=n[o];ot(i)&&i.getValue(r)?e.reportError(new h(`Enum value "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):a[r]?e.reportError(new h(`Enum value "${o}.${r}" can only be defined once.`,{nodes:[a[r],t.name]})):a[r]=t.name}return!1}}function Ai(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const s=null!==(i=t.fields)&&void 0!==i?i:[],a=r[o];for(const t of s){const r=t.name.value;Oi(n[o],r)?e.reportError(new h(`Field "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):a[r]?e.reportError(new h(`Field "${o}.${r}" can only be defined once.`,{nodes:[a[r],t.name]})):a[r]=t.name}return!1}}function Oi(e,t){return!!(Ze(e)||tt(e)||at(e))&&null!=e.getFields()[t]}function Ri(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new h(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function Di(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||u(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new h(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}function xi(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new h(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function Li(e){const t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;const o=null!==(i=t.operationTypes)&&void 0!==i?i:[];for(const t of o){const i=t.operation,o=n[i];r[i]?e.reportError(new h(`Type for ${i} already defined in the schema. It cannot be redefined.`,{nodes:t})):o?e.reportError(new h(`There can be only one ${i} type in schema.`,{nodes:[o,t]})):n[i]=t}return!1}}function ki(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){const i=r.name.value;if(null==n||!n.getType(i))return t[i]?e.reportError(new h(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new h(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}))}}function Ci(e){return{OperationDefinition(t){var n;const r=_i(null!==(n=t.variableDefinitions)&&void 0!==n?n:[],(e=>e.variable.name.value));for(const[t,n]of r)n.length>1&&e.reportError(new h(`There can be only one variable named "$${t}".`,{nodes:n.map((e=>e.variable.name))}))}}}function Bi(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){if(!ct(Rt(e.getParentInputType())))return $i(e,t),!1},ObjectValue(n){const r=Lt(e.getInputType());if(!at(r))return $i(e,n),!1;const i=Ee(n.fields,(e=>e.name.value));for(const t of Object.values(r.getFields()))if(!i[t.name]&&Xt(t)){const i=oe(t.type);e.reportError(new h(`Field "${r.name}.${t.name}" of required type "${i}" was not provided.`,{nodes:n}))}r.isOneOf&&function(e,t,n,r,i){var o;const s=Object.keys(r);if(1!==s.length)return void e.reportError(new h(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));const a=null===(o=r[s[0]])||void 0===o?void 0:o.value,u=!a||a.kind===N.NULL,c=(null==a?void 0:a.kind)===N.VARIABLE;if(u)e.reportError(new h(`Field "${n.name}.${s[0]}" must be non-null.`,{nodes:[t]}));else if(c){const r=a.name.value;i[r].type.kind!==N.NON_NULL_TYPE&&e.reportError(new h(`Variable "${r}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}(e,n,r,i,t)},ObjectField(t){const n=Lt(e.getParentInputType());if(!e.getInputType()&&at(n)){const r=Ae(t.name.value,Object.keys(n.getFields()));e.reportError(new h(`Field "${t.name.value}" is not defined by type "${n.name}".`+be(r),{nodes:t}))}},NullValue(t){const n=e.getInputType();ft(n)&&e.reportError(new h(`Expected value of type "${oe(n)}", found ${Me(t)}.`,{nodes:t}))},EnumValue:t=>$i(e,t),IntValue:t=>$i(e,t),FloatValue:t=>$i(e,t),StringValue:t=>$i(e,t),BooleanValue:t=>$i(e,t)}}function $i(e,t){const n=e.getInputType();if(!n)return;const r=Lt(n);if(gt(r))try{if(void 0===r.parseLiteral(t,void 0)){const r=oe(n);e.reportError(new h(`Expected value of type "${r}", found ${Me(t)}.`,{nodes:t}))}}catch(r){const i=oe(n);r instanceof h?e.reportError(r):e.reportError(new h(`Expected value of type "${i}", found ${Me(t)}; `+r.message,{nodes:t,originalError:r}))}else{const r=oe(n);e.reportError(new h(`Expected value of type "${r}", found ${Me(t)}.`,{nodes:t}))}}function Fi(e){return{VariableDefinition(t){const n=ar(e.getSchema(),t.type);if(void 0!==n&&!pt(n)){const n=t.variable.name.value,r=Me(t.type);e.reportError(new h(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}function Ui(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:n,type:i,defaultValue:o}of r){const r=n.name.value,s=t[r];if(s&&i){const t=e.getSchema(),a=ar(t,s.type);if(a&&!Mi(t,a,s.defaultValue,i,o)){const t=oe(a),o=oe(i);e.reportError(new h(`Variable "$${r}" of type "${t}" used in position expecting type "${o}".`,{nodes:[s,n]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function Mi(e,t,n,r,i){return ft(r)&&!ft(t)?(null!=n&&n.kind!==N.NULL||void 0!==i)&&en(e,t,r.ofType):en(e,t,r)}const ji=Object.freeze([kr]),Pi=Object.freeze([_r,xi,Dr,Ei,Or,Tr,Fi,ri,wr,Ri,Ar,$r,Kr,Cr,Ci,Br,Fr,Nr,Si,Ir,Ti,Bi,ei,Ui,jr,Di,...ji]),Vi=Object.freeze([xr,Li,ki,Ni,Ai,wi,Ii,Or,Nr,Si,Xr,Sr,Ti,Di,ti]);class qi{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===N.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let r;for(;r=n.pop();)for(const e of r.selections)e.kind===N.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let i;for(;i=r.pop();)for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(!0!==n[i]){n[i]=!0;const e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class Gi extends qi{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class Wi extends qi{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new ur(this._schema);Be(e,lr(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function Qi(e,t,n=Pi,r,i=new ur(e)){var s;const a=null!==(s=null==r?void 0:r.maxErrors)&&void 0!==s?s:100;t||o(!1,"Must provide document."),Qn(e);const u=Object.freeze({}),c=[],l=new Wi(e,t,i,(e=>{if(c.length>=a)throw c.push(new h("Too many validation errors, error limit reached. Validation aborted.")),u;c.push(e)})),f=$e(n.map((e=>e(l))));try{Be(t,lr(i,f))}catch(e){if(e!==u)throw e}return c}function Yi(e,t,n=Vi){const r=[],i=new Gi(e,t,(e=>{r.push(e)}));return Be(e,$e(n.map((e=>e(i))))),r}function Ji(e){return Promise.all(Object.values(e)).then((t=>{const n=Object.create(null);for(const[r,i]of Object.keys(e).entries())n[i]=t[r];return n}))}class Hi extends Error{constructor(e){super("Unexpected error value: "+oe(e)),this.name="NonErrorThrown",this.thrownValue=e}}function zi(e,t,n){var r;const i=(o=e)instanceof Error?o:new Hi(o);var o,s;return s=i,Array.isArray(s.path)?i:new h(i.message,{nodes:null!==(r=i.nodes)&&void 0!==r?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}const Ki=function(){let e;return function(t,n,r){void 0===e&&(e=new WeakMap);let i=e.get(t);void 0===i&&(i=new WeakMap,e.set(t,i));let o=i.get(n);void 0===o&&(o=new WeakMap,i.set(n,o));let s=o.get(r);return void 0===s&&(u=n,c=r,s=function(e,t,n,r,i){const o=new Map,s=new Set;for(const a of i)a.selectionSet&&gi(e,t,n,r,a.selectionSet,o,s);return o}((a=t).schema,a.fragments,a.variableValues,u,c),o.set(r,s)),s;var a,u,c}}();function Xi(e){arguments.length<2||o(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,variableValues:r,rootValue:i}=e;to(t,n,r);const a=no(e);if(!("schema"in a))return{errors:a};try{const{operation:e}=a,t=function(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new h(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=mi(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case I.QUERY:return ro(e,r,n,o,i);case I.MUTATION:return function(e,t,n,r,i){return function(e,t){let n=Object.create(null);for(const r of e)n=s(n)?n.then((e=>t(e,r))):t(n,r);return n}(i.entries(),((i,[o,a])=>{const u=oi(r,o,t.name),c=io(e,t,n,a,u);return void 0===c?i:s(c)?c.then((e=>(i[o]=e,i))):(i[o]=c,i)}))}(e,r,n,o,i);case I.SUBSCRIPTION:return ro(e,r,n,o,i)}}(a,e,i);return s(t)?t.then((e=>eo(e,a.errors)),(e=>(a.errors.push(e),eo(null,a.errors)))):eo(t,a.errors)}catch(e){return a.errors.push(e),eo(null,a.errors)}}function Zi(e){const t=Xi(e);if(s(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function eo(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function to(e,t,n){t||o(!1,"Must provide document."),Qn(e),null==n||a(n)||o(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function no(e){var t,n;const{schema:r,document:i,rootValue:o,contextValue:s,variableValues:a,operationName:u,fieldResolver:c,typeResolver:l,subscribeFieldResolver:f}=e;let d;const p=Object.create(null);for(const e of i.definitions)switch(e.kind){case N.OPERATION_DEFINITION:if(null==u){if(void 0!==d)return[new h("Must provide operation name if query contains multiple operations.")];d=e}else(null===(t=e.name)||void 0===t?void 0:t.value)===u&&(d=e);break;case N.FRAGMENT_DEFINITION:p[e.name.value]=e}if(!d)return null!=u?[new h(`Unknown operation named "${u}".`)]:[new h("Must provide an operation.")];const y=di(r,null!==(n=d.variableDefinitions)&&void 0!==n?n:[],null!=a?a:{},{maxErrors:50});return y.errors?y.errors:{schema:r,fragments:p,rootValue:o,contextValue:s,operation:d,variableValues:y.coerced,fieldResolver:null!=c?c:po,typeResolver:null!=l?l:fo,subscribeFieldResolver:null!=f?f:po,errors:[]}}function ro(e,t,n,r,i){const o=Object.create(null);let a=!1;try{for(const[u,c]of i.entries()){const i=io(e,t,n,c,oi(r,u,t.name));void 0!==i&&(o[u]=i,s(i)&&(a=!0))}}catch(e){if(a)return Ji(o).finally((()=>{throw e}));throw e}return a?Ji(o):o}function io(e,t,n,r,i){var o;const a=ho(e.schema,t,r[0]);if(!a)return;const u=a.type,c=null!==(o=a.resolve)&&void 0!==o?o:e.fieldResolver,l=oo(e,a,r,t,i);try{const t=c(n,pi(a,r[0],e.variableValues),e.contextValue,l);let o;return o=s(t)?t.then((t=>ao(e,u,r,l,i,t))):ao(e,u,r,l,i,t),s(o)?o.then(void 0,(t=>so(zi(t,r,si(i)),u,e))):o}catch(t){return so(zi(t,r,si(i)),u,e)}}function oo(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function so(e,t,n){if(ft(t))throw e;return n.errors.push(e),null}function ao(e,t,n,r,i,o){if(o instanceof Error)throw o;if(ft(t)){const s=ao(e,t.ofType,n,r,i,o);if(null===s)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return s}return null==o?null:ct(t)?function(e,t,n,r,i,o){if(!In(o))throw new h(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const a=t.ofType;let u=!1;const c=Array.from(o,((t,o)=>{const c=oi(i,o,void 0);try{let i;return i=s(t)?t.then((t=>ao(e,a,n,r,c,t))):ao(e,a,n,r,c,t),s(i)?(u=!0,i.then(void 0,(t=>so(zi(t,n,si(c)),a,e)))):i}catch(t){return so(zi(t,n,si(c)),a,e)}}));return u?Promise.all(c):c}(e,t,n,r,i,o):gt(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error(`Expected \`${oe(e)}.serialize(${oe(t)})\` to return non-nullable value, returned: ${oe(n)}`);return n}(t,o):_t(t)?function(e,t,n,r,i,o){var a;const u=null!==(a=t.resolveType)&&void 0!==a?a:e.typeResolver,c=e.contextValue,l=u(o,c,r,t);return s(l)?l.then((s=>co(e,uo(s,e,t,n,r,o),n,r,i,o))):co(e,uo(l,e,t,n,r,o),n,r,i,o)}(e,t,n,r,i,o):Ze(t)?co(e,t,n,r,i,o):void u(!1,"Cannot complete value of unexpected output type: "+oe(t))}function uo(e,t,n,r,i,o){if(null==e)throw new h(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(Ze(e))throw new h("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new h(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${oe(o)}, received "${oe(e)}".`);const s=t.schema.getType(e);if(null==s)throw new h(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!Ze(s))throw new h(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,s))throw new h(`Runtime Object type "${s.name}" is not a possible type for "${n.name}".`,{nodes:r});return s}function co(e,t,n,r,i,o){const a=Ki(e,t,n);if(t.isTypeOf){const u=t.isTypeOf(o,e.contextValue,r);if(s(u))return u.then((r=>{if(!r)throw lo(t,o,n);return ro(e,t,o,i,a)}));if(!u)throw lo(t,o,n)}return ro(e,t,o,i,a)}function lo(e,t,n){return new h(`Expected value of type "${e.name}" but got: ${oe(t)}.`,{nodes:n})}const fo=function(e,t,n,r){if(a(e)&&"string"==typeof e.__typename)return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r<i.length;r++){const a=i[r];if(a.isTypeOf){const i=a.isTypeOf(e,t,n);if(s(i))o[r]=i;else if(i)return a.name}}return o.length?Promise.all(o).then((e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name})):void 0},po=function(e,t,n,r){if(a(e)||"function"==typeof e){const i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function ho(e,t,n){const r=n.name.value;return r===$n.name&&e.getQueryType()===t?$n:r===Fn.name&&e.getQueryType()===t?Fn:r===Un.name?Un:t.getFields()[r]}function yo(e){return new Promise((t=>t(go(e))))}function mo(e){const t=go(e);if(s(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function go(e){arguments.length<2||o(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:n,rootValue:r,contextValue:i,variableValues:s,operationName:a,fieldResolver:u,typeResolver:c}=e,l=Wn(t);if(l.length>0)return{errors:l};let f;try{f=le(n)}catch(e){return{errors:[e]}}const d=Qi(t,f);return d.length>0?{errors:d}:Xi({schema:t,document:f,rootValue:r,contextValue:i,variableValues:s,operationName:a,fieldResolver:u,typeResolver:c})}function bo(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}async function vo(e){arguments.length<2||o(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await Eo(e);return bo(t)?function(t){const n=t[Symbol.asyncIterator]();async function r(t){if(t.done)return t;try{return{value:await(r=t.value,Xi({...e,rootValue:r})),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}var r}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}(t):t}async function Eo(...e){const t=function(e){const t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}(e),{schema:n,document:r,variableValues:i}=t;to(n,r,i);const o=no(t);if(!("schema"in o))return{errors:o};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,s=t.getSubscriptionType();if(null==s)throw new h("Schema is not configured to execute subscription operation.",{nodes:r});const a=mi(t,n,i,s,r.selectionSet),[u,c]=[...a.entries()][0],l=ho(t,s,c[0]);if(!l){const e=c[0].name.value;throw new h(`The subscription field "${e}" is not defined.`,{nodes:c})}const f=oi(void 0,u,s.name),d=oo(e,l,c,s,f);try{var p;const t=pi(l,c[0],i),n=e.contextValue,r=null!==(p=l.subscribe)&&void 0!==p?p:e.subscribeFieldResolver,s=await r(o,t,n,d);if(s instanceof Error)throw s;return s}catch(e){throw zi(e,c,si(f))}}(o);if(!bo(e))throw new Error(`Subscription field must return Async Iterable. Received: ${oe(e)}.`);return e}catch(e){if(e instanceof h)return{errors:[e]};throw e}}function _o(e){return{Field(t){const n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getParentType();null!=i||u(!1),e.reportError(new h(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getDirective();if(null!=i)e.reportError(new h(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{const i=e.getParentType(),o=e.getFieldDef();null!=i&&null!=o||u(!1),e.reportError(new h(`Field "${i.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){const n=Lt(e.getParentInputType());if(at(n)){const r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new h(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=Lt(e.getInputType());null!=i||u(!1),e.reportError(new h(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function wo(e){return{Field(t){const n=Lt(e.getType());n&&jn(n)&&e.reportError(new h(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}function To(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function s(e){return t.inputValueDeprecation?e:""}const a=t.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${o}\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ${n}\n ${i}\n locations\n args${s("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n ${a}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${s("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${s("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${n}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${n}\n type { ...TypeRef }\n defaultValue\n ${s("isDeprecated")}\n ${s("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}function Io(e,t){let n=null;for(const i of e.definitions){var r;if(i.kind===N.OPERATION_DEFINITION)if(null==t){if(n)return null;n=i}else if((null===(r=i.name)||void 0===r?void 0:r.value)===t)return i}return n}function So(e,t){if("query"===t.operation){const n=e.getQueryType();if(!n)throw new h("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){const n=e.getMutationType();if(!n)throw new h("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){const n=e.getSubscriptionType();if(!n)throw new h("Schema is not configured for subscriptions.",{nodes:t});return n}throw new h("Can only have query, mutation and subscription operations.",{nodes:t})}function No(e,t){const n=Zi({schema:e,document:le(To({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t}))});return!n.errors&&n.data||u(!1),n.data}function Ao(e,t){a(e)&&a(e.__schema)||o(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${oe(e)}.`);const n=e.__schema,r=_e(n.types,(e=>e.name),(e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case Cn.SCALAR:return new Bt({name:(r=e).name,description:r.description,specifiedByURL:r.specifiedByURL});case Cn.OBJECT:return new $t({name:(n=e).name,description:n.description,interfaces:()=>h(n),fields:()=>y(n)});case Cn.INTERFACE:return new Gt({name:(t=e).name,description:t.description,interfaces:()=>h(t),fields:()=>y(t)});case Cn.UNION:return function(e){if(!e.possibleTypes){const t=oe(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new Wt({name:e.name,description:e.description,types:()=>e.possibleTypes.map(d)})}(e);case Cn.ENUM:return function(e){if(!e.enumValues){const t=oe(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new Yt({name:e.name,description:e.description,values:_e(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}(e);case Cn.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=oe(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new zt({name:e.name,description:e.description,fields:()=>g(e.inputFields),isOneOf:e.isOneOf})}(e)}var t,n,r;const i=oe(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${i}.`)}(e)));for(const e of[...ln,...Mn])r[e.name]&&(r[e.name]=e);const i=n.queryType?d(n.queryType):null,s=n.mutationType?d(n.mutationType):null,u=n.subscriptionType?d(n.subscriptionType):null,c=n.directives?n.directives.map((function(e){if(!e.args){const t=oe(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=oe(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new yn({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:g(e.args)})})):[];return new qn({description:n.description,query:i,mutation:s,subscription:u,types:Object.values(r),directives:c,assumeValid:null==t?void 0:t.assumeValid});function l(e){if(e.kind===Cn.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new Tt(l(t))}if(e.kind===Cn.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=l(t);return new It(Ot(n))}return f(e)}function f(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${oe(e)}.`);const n=r[t];if(!n)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function d(e){return et(f(e))}function p(e){return nt(f(e))}function h(e){if(null===e.interfaces&&e.kind===Cn.INTERFACE)return[];if(!e.interfaces){const t=oe(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(p)}function y(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${oe(e)}.`);return _e(e.fields,(e=>e.name),m)}function m(e){const t=l(e.type);if(!yt(t)){const e=oe(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=oe(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:g(e.args)}}function g(e){return _e(e,(e=>e.name),b)}function b(e){const t=l(e.type);if(!pt(t)){const e=oe(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?li(fe(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}function Oo(e,t,n){Vn(e),null!=t&&t.kind===N.DOCUMENT||o(!1,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&function(e,t){const n=Yi(e,t);if(0!==n.length)throw new Error(n.map((e=>e.message)).join("\n\n"))}(t,e);const r=e.toConfig(),i=Ro(r,t,n);return r===i?e:new qn(i)}function Ro(e,t,n){var r,i,o,s;const a=[],c=Object.create(null),l=[];let f;const d=[];for(const e of t.definitions)if(e.kind===N.SCHEMA_DEFINITION)f=e;else if(e.kind===N.SCHEMA_EXTENSION)d.push(e);else if(br(e))a.push(e);else if(Er(e)){const t=e.name.value,n=c[t];c[t]=n?n.concat([e]):[e]}else e.kind===N.DIRECTIVE_DEFINITION&&l.push(e);if(0===Object.keys(c).length&&0===a.length&&0===l.length&&0===d.length&&null==f)return e;const p=Object.create(null);for(const t of e.types)p[t.name]=jn(h=t)||fn(h)?h:Ke(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];let i=n.specifiedByURL;for(const e of r){var o;i=null!==(o=Lo(e))&&void 0!==o?o:i}return new Bt({...n,specifiedByURL:i,extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):Ze(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new $t({...n,interfaces:()=>[...e.getInterfaces().map(b),...R(r)],fields:()=>({...we(n.fields,v),...I(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):tt(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Gt({...n,interfaces:()=>[...e.getInterfaces().map(b),...R(r)],fields:()=>({...we(n.fields,v),...I(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):rt(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Wt({...n,types:()=>[...e.getTypes().map(b),...D(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):ot(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=c[e.name])&&void 0!==t?t:[];return new Yt({...n,values:{...n.values,...O(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):at(h)?function(e){var t;const n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new zt({...n,fields:()=>({...we(n.fields,(e=>({...e,type:g(e.type)}))),...A(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(h):void u(!1,"Unexpected type: "+oe(h));var h;for(const e of a){var y;const t=e.name.value;p[t]=null!==(y=Do[t])&&void 0!==y?y:x(e)}const m={query:e.query&&b(e.query),mutation:e.mutation&&b(e.mutation),subscription:e.subscription&&b(e.subscription),...f&&_([f]),..._(d)};return{description:null===(r=f)||void 0===r||null===(i=r.description)||void 0===i?void 0:i.value,...m,types:Object.values(p),directives:[...e.directives.map((function(e){const t=e.toConfig();return new yn({...t,args:we(t.args,E)})})),...l.map((function(e){var t;return new yn({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:S(e.arguments),astNode:e})}))],extensions:Object.create(null),astNode:null!==(o=f)&&void 0!==o?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(d),assumeValid:null!==(s=null==n?void 0:n.assumeValid)&&void 0!==s&&s};function g(e){return ct(e)?new Tt(g(e.ofType)):ft(e)?new It(g(e.ofType)):b(e)}function b(e){return p[e.name]}function v(e){return{...e,type:g(e.type),args:e.args&&we(e.args,E)}}function E(e){return{...e,type:g(e.type)}}function _(e){const t={};for(const r of e){var n;const e=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(const n of e)t[n.operation]=w(n.type)}return t}function w(e){var t;const n=e.name.value,r=null!==(t=Do[n])&&void 0!==t?t:p[n];if(void 0===r)throw new Error(`Unknown type: "${n}".`);return r}function T(e){return e.kind===N.LIST_TYPE?new Tt(T(e.type)):e.kind===N.NON_NULL_TYPE?new It(T(e.type)):w(e)}function I(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={type:T(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:S(n.arguments),deprecationReason:xo(n),astNode:n}}}return t}function S(e){const t=null!=e?e:[],n=Object.create(null);for(const e of t){var r;const t=T(e.type);n[e.name.value]={type:t,description:null===(r=e.description)||void 0===r?void 0:r.value,defaultValue:li(e.defaultValue,t),deprecationReason:xo(e),astNode:e}}return n}function A(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;const e=T(n.type);t[n.name.value]={type:e,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:li(n.defaultValue,e),deprecationReason:xo(n),astNode:n}}}return t}function O(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.values)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:xo(n),astNode:n}}}return t}function R(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(w))&&void 0!==t?t:[]}))}function D(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(w))&&void 0!==t?t:[]}))}function x(e){var t;const n=e.name.value,r=null!==(t=c[n])&&void 0!==t?t:[];switch(e.kind){case N.OBJECT_TYPE_DEFINITION:{var i;const t=[e,...r];return new $t({name:n,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>R(t),fields:()=>I(t),astNode:e,extensionASTNodes:r})}case N.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...r];return new Gt({name:n,description:null===(o=e.description)||void 0===o?void 0:o.value,interfaces:()=>R(t),fields:()=>I(t),astNode:e,extensionASTNodes:r})}case N.ENUM_TYPE_DEFINITION:{var s;const t=[e,...r];return new Yt({name:n,description:null===(s=e.description)||void 0===s?void 0:s.value,values:O(t),astNode:e,extensionASTNodes:r})}case N.UNION_TYPE_DEFINITION:{var a;const t=[e,...r];return new Wt({name:n,description:null===(a=e.description)||void 0===a?void 0:a.value,types:()=>D(t),astNode:e,extensionASTNodes:r})}case N.SCALAR_TYPE_DEFINITION:var u;return new Bt({name:n,description:null===(u=e.description)||void 0===u?void 0:u.value,specifiedByURL:Lo(e),astNode:e,extensionASTNodes:r});case N.INPUT_OBJECT_TYPE_DEFINITION:{var l;const t=[e,...r];return new zt({name:n,description:null===(l=e.description)||void 0===l?void 0:l.value,fields:()=>A(t),astNode:e,extensionASTNodes:r,isOneOf:(f=e,Boolean(hi(_n,f)))})}}var f}}const Do=Ee([...ln,...Mn],(e=>e.name));function xo(e){const t=hi(vn,e);return null==t?void 0:t.reason}function Lo(e){const t=hi(En,e);return null==t?void 0:t.url}function ko(e,t){null!=e&&e.kind===N.DOCUMENT||o(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&function(e){const t=Yi(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))}(e);const n=Ro({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(const e of n.types)switch(e.name){case"Query":n.query=e;break;case"Mutation":n.mutation=e;break;case"Subscription":n.subscription=e}const r=[...n.directives,...wn.filter((e=>n.directives.every((t=>t.name!==e.name))))];return new qn({...n,directives:r})}function Co(e,t){return ko(le(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function Bo(e){const t=e.toConfig(),n=_e(Fo(t.types),(e=>e.name),(function(e){if(Ke(e)||jn(e))return e;if(Ze(e)){const t=e.toConfig();return new $t({...t,interfaces:()=>c(t.interfaces),fields:()=>a(t.fields)})}if(tt(e)){const t=e.toConfig();return new Gt({...t,interfaces:()=>c(t.interfaces),fields:()=>a(t.fields)})}if(rt(e)){const t=e.toConfig();return new Wt({...t,types:()=>c(t.types)})}if(ot(e)){const t=e.toConfig();return new Yt({...t,values:$o(t.values,(e=>e))})}if(at(e)){const t=e.toConfig();return new zt({...t,fields:()=>$o(t.fields,(e=>({...e,type:r(e.type)})))})}u(!1,"Unexpected type: "+oe(e))}));return new qn({...t,types:Object.values(n),directives:Fo(t.directives).map((function(e){const t=e.toConfig();return new yn({...t,locations:Uo(t.locations,(e=>e)),args:s(t.args)})})),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)});function r(e){return ct(e)?new Tt(r(e.ofType)):ft(e)?new It(r(e.ofType)):i(e)}function i(e){return n[e.name]}function o(e){return e&&i(e)}function s(e){return $o(e,(e=>({...e,type:r(e.type)})))}function a(e){return $o(e,(e=>({...e,type:r(e.type),args:e.args&&s(e.args)})))}function c(e){return Fo(e).map(i)}}function $o(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(Te))n[r]=t(e[r]);return n}function Fo(e){return Uo(e,(e=>e.name))}function Uo(e,t){return e.slice().sort(((e,n)=>Te(t(e),t(n))))}function Mo(e){return Vo(e,(e=>!Tn(e)),Po)}function jo(e){return Vo(e,Tn,jn)}function Po(e){return!fn(e)&&!jn(e)}function Vo(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[qo(e),...r.map((e=>function(e){return Ko(e)+"directive @"+e.name+Jo(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e))),...i.map((e=>Go(e)))].filter(Boolean).join("\n\n")}function qo(e){if(null==e.description&&function(e){const t=e.getQueryType();if(t&&"Query"!==t.name)return!1;const n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;const r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;const t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);const r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);const i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),Ko(e)+`schema {\n${t.join("\n")}\n}`}function Go(e){return Ke(e)?function(e){return Ko(e)+`scalar ${e.name}`+(null==(t=e).specifiedByURL?"":` @specifiedBy(url: ${Me({kind:N.STRING,value:t.specifiedByURL})})`);var t}(e):Ze(e)?function(e){return Ko(e)+`type ${e.name}`+Wo(e)+Qo(e)}(e):tt(e)?function(e){return Ko(e)+`interface ${e.name}`+Wo(e)+Qo(e)}(e):rt(e)?function(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return Ko(e)+"union "+e.name+n}(e):ot(e)?function(e){const t=e.getValues().map(((e,t)=>Ko(e," ",!t)+" "+e.name+zo(e.deprecationReason)));return Ko(e)+`enum ${e.name}`+Yo(t)}(e):at(e)?function(e){const t=Object.values(e.getFields()).map(((e,t)=>Ko(e," ",!t)+" "+Ho(e)));return Ko(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+Yo(t)}(e):void u(!1,"Unexpected type: "+oe(e))}function Wo(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function Qo(e){return Yo(Object.values(e.getFields()).map(((e,t)=>Ko(e," ",!t)+" "+e.name+Jo(e.args," ")+": "+String(e.type)+zo(e.deprecationReason))))}function Yo(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function Jo(e,t=""){return 0===e.length?"":e.every((e=>!e.description))?"("+e.map(Ho).join(", ")+")":"(\n"+e.map(((e,n)=>Ko(e," "+t,!n)+" "+t+Ho(e))).join("\n")+"\n"+t+")"}function Ho(e){const t=Sn(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${Me(t)}`),n+zo(e.deprecationReason)}function zo(e){return null==e?"":e!==bn?` @deprecated(reason: ${Me({kind:N.STRING,value:e})})`:" @deprecated"}function Ko(e,t="",n=!0){const{description:r}=e;return null==r?"":(t&&!n?"\n"+t:t)+Me({kind:N.STRING,value:r,block:B(r)}).replace(/\n/g,"\n"+t)+"\n"}function Xo(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:N.DOCUMENT,definitions:t}}function Zo(e){const t=[],n=Object.create(null);for(const r of e.definitions)switch(r.kind){case N.OPERATION_DEFINITION:t.push(r);break;case N.FRAGMENT_DEFINITION:n[r.name.value]=ts(r.selectionSet)}const r=Object.create(null);for(const i of t){const t=new Set;for(const e of ts(i.selectionSet))es(t,n,e);r[i.name?i.name.value:""]={kind:N.DOCUMENT,definitions:e.definitions.filter((e=>e===i||e.kind===N.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return r}function es(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(void 0!==r)for(const n of r)es(e,t,n)}}function ts(e){const t=[];return Be(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function ns(e){const t=ce(e)?e:new ue(e),n=t.body,r=new F(t);let i="",o=!1;for(;r.advance().kind!==A.EOF;){const e=r.token,t=e.kind,s=!U(e.kind);o&&(s||e.kind===A.SPREAD)&&(i+=" ");const a=n.slice(e.start,e.end);t===A.BLOCK_STRING?i+=$(e.value,{minimize:!0}):i+=a,o=s}return i}function rs(e){const t=is(e);if(t)throw t;return e}function is(e){if("string"==typeof e||o(!1,"Expected name to be a string."),e.startsWith("__"))return new h(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{Ye(e)}catch(e){return e}}var os,ss;function as(e,t){return cs(e,t).filter((e=>e.type in os))}function us(e,t){return cs(e,t).filter((e=>e.type in ss))}function cs(e,t){return[...fs(e,t),...ls(e,t)]}function ls(e,t){const n=[],r=ws(e.getDirectives(),t.getDirectives());for(const e of r.removed)n.push({type:os.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(const[e,t]of r.persisted){const r=ws(e.args,t.args);for(const t of r.added)qt(t)&&n.push({type:os.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(const t of r.removed)n.push({type:os.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});e.isRepeatable&&!t.isRepeatable&&n.push({type:os.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(const r of e.locations)t.locations.includes(r)||n.push({type:os.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}function fs(e,t){const n=[],r=ws(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of r.removed)n.push({type:os.TYPE_REMOVED,description:fn(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(const[e,t]of r.persisted)ot(e)&&ot(t)?n.push(...hs(e,t)):rt(e)&&rt(t)?n.push(...ps(e,t)):at(e)&&at(t)?n.push(...ds(e,t)):Ze(e)&&Ze(t)||tt(e)&&tt(t)?n.push(...ms(e,t),...ys(e,t)):e.constructor!==t.constructor&&n.push({type:os.TYPE_CHANGED_KIND,description:`${e.name} changed from ${Es(e)} to ${Es(t)}.`});return n}function ds(e,t){const n=[],r=ws(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.added)Xt(t)?n.push({type:os.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:ss.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(const t of r.removed)n.push({type:os.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted)vs(t.type,i.type)||n.push({type:os.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function ps(e,t){const n=[],r=ws(e.getTypes(),t.getTypes());for(const t of r.added)n.push({type:ss.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(const t of r.removed)n.push({type:os.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}function hs(e,t){const n=[],r=ws(e.getValues(),t.getValues());for(const t of r.added)n.push({type:ss.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(const t of r.removed)n.push({type:os.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}function ys(e,t){const n=[],r=ws(e.getInterfaces(),t.getInterfaces());for(const t of r.added)n.push({type:ss.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(const t of r.removed)n.push({type:os.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}function ms(e,t){const n=[],r=ws(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.removed)n.push({type:os.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted)n.push(...gs(e,t,i)),bs(t.type,i.type)||n.push({type:os.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function gs(e,t,n){const r=[],i=ws(t.args,n.args);for(const n of i.removed)r.push({type:os.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(const[n,o]of i.persisted)if(vs(n.type,o.type)){if(void 0!==n.defaultValue)if(void 0===o.defaultValue)r.push({type:ss.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{const i=_s(n.defaultValue,n.type),s=_s(o.defaultValue,o.type);i!==s&&r.push({type:ss.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${s}.`})}}else r.push({type:os.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(o.type)}.`});for(const n of i.added)qt(n)?r.push({type:os.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:ss.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}function bs(e,t){return ct(e)?ct(t)&&bs(e.ofType,t.ofType)||ft(t)&&bs(e,t.ofType):ft(e)?ft(t)&&bs(e.ofType,t.ofType):Dt(t)&&e.name===t.name||ft(t)&&bs(e,t.ofType)}function vs(e,t){return ct(e)?ct(t)&&vs(e.ofType,t.ofType):ft(e)?ft(t)&&vs(e.ofType,t.ofType)||!ft(t)&&vs(e.ofType,t):Dt(t)&&e.name===t.name}function Es(e){return Ke(e)?"a Scalar type":Ze(e)?"an Object type":tt(e)?"an Interface type":rt(e)?"a Union type":ot(e)?"an Enum type":at(e)?"an Input type":void u(!1,"Unexpected type: "+oe(e))}function _s(e,t){const n=Sn(e,t);return null!=n||u(!1),Me(Ur(n))}function ws(e,t){const n=[],r=[],i=[],o=Ee(e,(({name:e})=>e)),s=Ee(t,(({name:e})=>e));for(const t of e){const e=s[t.name];void 0===e?r.push(t):i.push([t,e])}for(const e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}!function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(os||(os={})),function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(ss||(ss={}))},945:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,s="ArrayBuffer"in e;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?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 p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function y(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function m(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._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=m(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):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=p(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(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var e,t,n,r=p(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=h(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(E)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=c(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[c(e)]},d.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},d.prototype.set=function(e,t){this.map[c(e)]=l(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),f(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),f(e)},r&&(d.prototype[Symbol.iterator]=d.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(e,t){var n,r,i=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),b.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function E(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function _(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},g.call(v.prototype),g.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];_.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function T(e,n){return new Promise((function(r,o){var s=new v(e,n);if(s.signal&&s.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var e,t,n={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;r(new _(i,n))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&i&&(a.responseType="blob"),s.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),s.signal&&(s.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",u)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}T.polyfill=!0,e.fetch||(e.fetch=T,e.Headers=d,e.Request=v,e.Response=_),t.Headers=d,t.Request=v,t.Response=_,t.fetch=T,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},946:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientError=void 0;class n extends Error{constructor(e,t){super(`${n.extractMessage(e)}: ${JSON.stringify({response:e,request:t})}`),Object.setPrototypeOf(this,n.prototype),this.response=e,this.request=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,n)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${e.status})`}}t.ClientError=n},974:(e,t,n)=>{"use strict";const{ArrayIsArray:r,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:o,ArrayPrototypeMap:s,NumberIsInteger:a,NumberIsNaN:u,NumberMAX_SAFE_INTEGER:c,NumberMIN_SAFE_INTEGER:l,NumberParseInt:f,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:p,String:h,StringPrototypeToUpperCase:y,StringPrototypeTrim:m}=n(475),{hideStackFrames:g,codes:{ERR_SOCKET_BAD_PORT:b,ERR_INVALID_ARG_TYPE:v,ERR_INVALID_ARG_VALUE:E,ERR_OUT_OF_RANGE:_,ERR_UNKNOWN_SIGNAL:w}}=n(760),{normalizeEncoding:T}=n(351),{isAsyncFunction:I,isArrayBufferView:S}=n(351).types,N={},A=/^[0-7]+$/,O=g(((e,t,n=l,r=c)=>{if("number"!=typeof e)throw new v(t,"number",e);if(!a(e))throw new _(t,"an integer",e);if(e<n||e>r)throw new _(t,`>= ${n} && <= ${r}`,e)})),R=g(((e,t,n=-2147483648,r=2147483647)=>{if("number"!=typeof e)throw new v(t,"number",e);if(!a(e))throw new _(t,"an integer",e);if(e<n||e>r)throw new _(t,`>= ${n} && <= ${r}`,e)})),D=g(((e,t,n=!1)=>{if("number"!=typeof e)throw new v(t,"number",e);if(!a(e))throw new _(t,"an integer",e);const r=n?1:0,i=4294967295;if(e<r||e>i)throw new _(t,`>= ${r} && <= ${i}`,e)}));function x(e,t){if("string"!=typeof e)throw new v(t,"string",e)}const L=g(((e,t,n)=>{if(!i(n,e)){const r=o(s(n,(e=>"string"==typeof e?`'${e}'`:h(e))),", ");throw new E(t,e,"must be one of: "+r)}}));function k(e,t){if("boolean"!=typeof e)throw new v(t,"boolean",e)}function C(e,t,n){return null!=e&&d(e,t)?e[t]:n}const B=g(((e,t,n=null)=>{const i=C(n,"allowArray",!1),o=C(n,"allowFunction",!1);if(!C(n,"nullable",!1)&&null===e||!i&&r(e)||"object"!=typeof e&&(!o||"function"!=typeof e))throw new v(t,"Object",e)})),$=g(((e,t)=>{if(null!=e&&"object"!=typeof e&&"function"!=typeof e)throw new v(t,"a dictionary",e)})),F=g(((e,t,n=0)=>{if(!r(e))throw new v(t,"Array",e);if(e.length<n)throw new E(t,e,`must be longer than ${n}`)})),U=g(((e,t="buffer")=>{if(!S(e))throw new v(t,["Buffer","TypedArray","DataView"],e)})),M=g(((e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new v(t,"AbortSignal",e)})),j=g(((e,t)=>{if("function"!=typeof e)throw new v(t,"Function",e)})),P=g(((e,t)=>{if("function"!=typeof e||I(e))throw new v(t,"Function",e)})),V=g(((e,t)=>{if(void 0!==e)throw new v(t,"undefined",e)})),q=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function G(e,t){if(void 0===e||!p(q,e))throw new E(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}e.exports={isInt32:function(e){return e===(0|e)},isUint32:function(e){return e===e>>>0},parseFileMode:function(e,t,n){if(void 0===e&&(e=n),"string"==typeof e){if(null===p(A,e))throw new E(t,e,"must be a 32-bit unsigned integer or an octal string");e=f(e,8)}return D(e,t),e},validateArray:F,validateStringArray:function(e,t){F(e,t);for(let n=0;n<e.length;n++)x(e[n],`${t}[${n}]`)},validateBooleanArray:function(e,t){F(e,t);for(let n=0;n<e.length;n++)k(e[n],`${t}[${n}]`)},validateBoolean:k,validateBuffer:U,validateDictionary:$,validateEncoding:function(e,t){const n=T(t),r=e.length;if("hex"===n&&r%2!=0)throw new E("encoding",t,`is invalid for data of length ${r}`)},validateFunction:j,validateInt32:R,validateInteger:O,validateNumber:function(e,t,n=void 0,r){if("number"!=typeof e)throw new v(t,"number",e);if(null!=n&&e<n||null!=r&&e>r||(null!=n||null!=r)&&u(e))throw new _(t,`${null!=n?`>= ${n}`:""}${null!=n&&null!=r?" && ":""}${null!=r?`<= ${r}`:""}`,e)},validateObject:B,validateOneOf:L,validatePlainFunction:P,validatePort:function(e,t="Port",n=!0){if("number"!=typeof e&&"string"!=typeof e||"string"==typeof e&&0===m(e).length||+e!=+e>>>0||e>65535||0===e&&!n)throw new b(t,e,n);return 0|e},validateSignalName:function(e,t="signal"){if(x(e,t),void 0===N[e]){if(void 0!==N[y(e)])throw new w(e+" (signals must use all capital letters)");throw new w(e)}},validateString:x,validateUint32:D,validateUndefined:V,validateUnion:function(e,t,n){if(!i(n,e))throw new v(t,`('${o(n,"|")}')`,e)},validateAbortSignal:M,validateLinkHeaderValue:function(e){if("string"==typeof e)return G(e,"hints"),e;if(r(e)){const t=e.length;let n="";if(0===t)return n;for(let r=0;r<t;r++){const i=e[r];G(i,"hints"),n+=i,r!==t-1&&(n+=", ")}return n}throw new E("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.c=t,n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n(n.s=378)})();
|
|
2
|
+
(()=>{var e={7:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}y(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&y(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,o,s,l;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=u(e))>0&&s.length>i&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,l=c,console&&console.warn&&console.warn(l)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=c.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):p(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function y(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var l=u.length,c=p(u,l);for(n=0;n<l;++n)r(c[n],this,t)}return!0},o.prototype.addListener=function(e,t){return l(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return l(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},65:(e,t,n)=>{"use strict";const{ObjectSetPrototypeOf:r}=n(475);e.exports=o;const i=n(307);function o(e){if(!(this instanceof o))return new o(e);i.call(this,e)}r(o.prototype,i.prototype),r(o,i),o.prototype._transform=function(e,t,n){n(null,e)}},141:(e,t,n)=>{"use strict";var r=n(861).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=s(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=s(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=s(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},170:(e,t,n)=>{"use strict";const r=globalThis.AbortController||n(568).AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:s,ERR_OUT_OF_RANGE:a},AbortError:u}=n(760),{validateAbortSignal:l,validateInteger:c,validateObject:f}=n(974),d=n(475).Symbol("kWeak"),{finished:h}=n(627),p=n(515),{addAbortSignalNoValidate:y}=n(792),{isWritable:g,isNodeStream:b}=n(734),{ArrayPrototypePush:m,MathFloor:w,Number:_,NumberIsNaN:v,Promise:E,PromiseReject:S,PromisePrototypeThen:A,Symbol:T}=n(475),I=T("kEmpty"),N=T("kEof");function x(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&l(t.signal,"options.signal");let n=1;return null!=(null==t?void 0:t.concurrency)&&(n=w(t.concurrency)),c(n,"concurrency",1),async function*(){var i,o;const s=new r,a=this,l=[],c=s.signal,f={signal:c},d=()=>s.abort();let h,p;null!=t&&null!==(i=t.signal)&&void 0!==i&&i.aborted&&d(),null==t||null===(o=t.signal)||void 0===o||o.addEventListener("abort",d);let y=!1;function g(){y=!0}!async function(){try{for await(let t of a){var r;if(y)return;if(c.aborted)throw new u;try{t=e(t,f)}catch(e){t=S(e)}t!==I&&("function"==typeof(null===(r=t)||void 0===r?void 0:r.catch)&&t.catch(g),l.push(t),h&&(h(),h=null),!y&&l.length&&l.length>=n&&await new E((e=>{p=e})))}l.push(N)}catch(e){const t=S(e);A(t,void 0,g),l.push(t)}finally{var i;y=!0,h&&(h(),h=null),null==t||null===(i=t.signal)||void 0===i||i.removeEventListener("abort",d)}}();try{for(;;){for(;l.length>0;){const e=await l[0];if(e===N)return;if(c.aborted)throw new u;e!==I&&(yield e),l.shift(),p&&(p(),p=null)}await new E((e=>{h=e}))}}finally{s.abort(),y=!0,p&&(p(),p=null)}}.call(this)}async function R(e,t=void 0){for await(const n of B.call(this,e,t))return!0;return!1}function B(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return x.call(this,(async function(t,n){return await e(t,n)?t:I}),t)}class C extends s{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function k(e){if(e=_(e),v(e))return 0;if(e<0)throw new a("number",">= 0",e);return e}e.exports.streamReturningOperators={asIndexedPairs:function(e=void 0){return null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&l(e.signal,"options.signal"),async function*(){let t=0;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new u({cause:e.signal.reason});yield[t++,r]}}.call(this)},drop:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&l(t.signal,"options.signal"),e=k(e),async function*(){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new u;for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new u;e--<=0&&(yield n)}}.call(this)},filter:B,flatMap:function(e,t){const n=x.call(this,e,t);return async function*(){for await(const e of n)yield*e}.call(this)},map:x,take:function(e,t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&l(t.signal,"options.signal"),e=k(e),async function*(){var n;if(null!=t&&null!==(n=t.signal)&&void 0!==n&&n.aborted)throw new u;for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new u;if(!(e-- >0))return;yield n}}.call(this)},compose:function(e,t){if(null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&l(t.signal,"options.signal"),b(e)&&!g(e))throw new i("stream",e,"must be writable");const n=p(this,e);return null!=t&&t.signal&&y(t.signal,n),n}},e.exports.promiseReturningOperators={every:async function(e,t=void 0){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return!await R.call(this,(async(...t)=>!await e(...t)),t)},forEach:async function(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);for await(const n of x.call(this,(async function(t,n){return await e(t,n),I}),t));},reduce:async function(e,t,n){var i;if("function"!=typeof e)throw new o("reducer",["Function","AsyncFunction"],e);null!=n&&f(n,"options"),null!=(null==n?void 0:n.signal)&&l(n.signal,"options.signal");let s=arguments.length>1;if(null!=n&&null!==(i=n.signal)&&void 0!==i&&i.aborted){const e=new u(void 0,{cause:n.signal.reason});throw this.once("error",(()=>{})),await h(this.destroy(e)),e}const a=new r,c=a.signal;if(null!=n&&n.signal){const e={once:!0,[d]:this};n.signal.addEventListener("abort",(()=>a.abort()),e)}let p=!1;try{for await(const r of this){var y;if(p=!0,null!=n&&null!==(y=n.signal)&&void 0!==y&&y.aborted)throw new u;s?t=await e(t,r,{signal:c}):(t=r,s=!0)}if(!p&&!s)throw new C}finally{a.abort()}return t},toArray:async function(e){null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&l(e.signal,"options.signal");const t=[];for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new u(void 0,{cause:e.signal.reason});m(t,r)}return t},some:R,find:async function(e,t){for await(const n of B.call(this,e,t))return n}}},207:(e,t,n)=>{"use strict";const r=n(606),{PromisePrototypeThen:i,SymbolAsyncIterator:o,SymbolIterator:s}=n(475),{Buffer:a}=n(287),{ERR_INVALID_ARG_TYPE:u,ERR_STREAM_NULL_VALUES:l}=n(760).codes;e.exports=function(e,t,n){let c,f;if("string"==typeof t||t instanceof a)return new e({objectMode:!0,...n,read(){this.push(t),this.push(null)}});if(t&&t[o])f=!0,c=t[o]();else{if(!t||!t[s])throw new u("iterable",["Iterable"],t);f=!1,c=t[s]()}const d=new e({objectMode:!0,highWaterMark:1,...n});let h=!1;return d._read=function(){h||(h=!0,async function(){for(;;){try{const{value:e,done:t}=f?await c.next():c.next();if(t)d.push(null);else{const t=e&&"function"==typeof e.then?await e:e;if(null===t)throw h=!1,new l;if(d.push(t))continue;h=!1}}catch(e){d.destroy(e)}break}}())},d._destroy=function(e,t){i(async function(e){const t=null!=e,n="function"==typeof c.throw;if(t&&n){const{value:t,done:n}=await c.throw(e);if(await t,n)return}if("function"==typeof c.return){const{value:e}=await c.return();await e}}(e),(()=>r.nextTick(t,e)),(n=>r.nextTick(t,n||e)))},d}},220:(e,t,n)=>{"use strict";const{StringPrototypeSlice:r,SymbolIterator:i,TypedArrayPrototypeSet:o,Uint8Array:s}=n(475),{Buffer:a}=n(287),{inspect:u}=n(351);e.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){const t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){const t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0===this.length)return;const e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";let t=this.head,n=""+t.data;for(;null!==(t=t.next);)n+=e+t.data;return n}concat(e){if(0===this.length)return a.alloc(0);const t=a.allocUnsafe(e>>>0);let n=this.head,r=0;for(;n;)o(t,n.data,r),r+=n.data.length,n=n.next;return t}consume(e,t){const n=this.head.data;if(e<n.length){const t=n.slice(0,e);return this.head.data=n.slice(e),t}return e===n.length?this.shift():t?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[i](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let t="",n=this.head,i=0;do{const o=n.data;if(!(e>o.length)){e===o.length?(t+=o,++i,n.next?this.head=n.next:this.head=this.tail=null):(t+=r(o,0,e),this.head=n,n.data=r(o,e));break}t+=o,e-=o.length,++i}while(null!==(n=n.next));return this.length-=i,t}_getBuffer(e){const t=a.allocUnsafe(e),n=e;let r=this.head,i=0;do{const a=r.data;if(!(e>a.length)){e===a.length?(o(t,a,n-e),++i,r.next?this.head=r.next:this.head=this.tail=null):(o(t,new s(a.buffer,a.byteOffset,e),n-e),this.head=r,r.data=a.slice(e));break}o(t,a,n-e),e-=a.length,++i}while(null!==(r=r.next));return this.length-=i,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return u(this,{...t,depth:0,customInspect:!1})}}},236:(e,t,n)=>{"use strict";const{ArrayIsArray:r,ObjectSetPrototypeOf:i}=n(475),{EventEmitter:o}=n(7);function s(e){o.call(this,e)}function a(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?r(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}i(s.prototype,o.prototype),i(s,o),s.prototype.pipe=function(e,t){const n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",u),n.on("close",l));let s=!1;function u(){s||(s=!0,e.end())}function l(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){f(),0===o.listenerCount(this,"error")&&this.emit("error",e)}function f(){n.removeListener("data",r),e.removeListener("drain",i),n.removeListener("end",u),n.removeListener("close",l),n.removeListener("error",c),e.removeListener("error",c),n.removeListener("end",f),n.removeListener("close",f),e.removeListener("close",f)}return a(n,"error",c),a(e,"error",c),n.on("end",f),n.on("close",f),e.on("close",f),e.emit("pipe",n),e},e.exports={Stream:s,prependListener:a}},251:(e,t)=>{t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,l=u>>1,c=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=a;c>0;o=256*o+e[t+f],f+=d,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+e[t+f],f+=d,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),o-=l}return(h?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(t*u-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&a,h+=p,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[n+h]=255&s,h+=p,s/=256,l-=8);e[n+h-p]|=128*y}},261:(e,t,n)=>{"use strict";const r=n(606),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:o},AbortError:s}=n(760),{Symbol:a}=n(475),{kDestroyed:u,isDestroyed:l,isFinished:c,isServerRequest:f}=n(734),d=a("kDestroy"),h=a("kConstruct");function p(e,t,n){e&&(e.stack,t&&!t.errored&&(t.errored=e),n&&!n.errored&&(n.errored=e))}function y(e,t,n){let i=!1;function o(t){if(i)return;i=!0;const o=e._readableState,s=e._writableState;p(t,s,o),s&&(s.closed=!0),o&&(o.closed=!0),"function"==typeof n&&n(t),t?r.nextTick(g,e,t):r.nextTick(b,e)}try{e._destroy(t||null,o)}catch(t){o(t)}}function g(e,t){m(e,t),b(e)}function b(e){const t=e._readableState,n=e._writableState;n&&(n.closeEmitted=!0),t&&(t.closeEmitted=!0),(null!=n&&n.emitClose||null!=t&&t.emitClose)&&e.emit("close")}function m(e,t){const n=e._readableState,r=e._writableState;null!=r&&r.errorEmitted||null!=n&&n.errorEmitted||(r&&(r.errorEmitted=!0),n&&(n.errorEmitted=!0),e.emit("error",t))}function w(e,t,n){const i=e._readableState,o=e._writableState;if(null!=o&&o.destroyed||null!=i&&i.destroyed)return this;null!=i&&i.autoDestroy||null!=o&&o.autoDestroy?e.destroy(t):t&&(t.stack,o&&!o.errored&&(o.errored=t),i&&!i.errored&&(i.errored=t),n?r.nextTick(m,e,t):m(e,t))}function _(e){let t=!1;function n(n){if(t)return void w(e,null!=n?n:new o);t=!0;const i=e._readableState,s=e._writableState,a=s||i;i&&(i.constructed=!0),s&&(s.constructed=!0),a.destroyed?e.emit(d,n):n?w(e,n,!0):r.nextTick(v,e)}try{e._construct((e=>{r.nextTick(n,e)}))}catch(e){r.nextTick(n,e)}}function v(e){e.emit(h)}function E(e){return(null==e?void 0:e.setHeader)&&"function"==typeof e.abort}function S(e){e.emit("close")}function A(e,t){e.emit("error",t),r.nextTick(S,e)}e.exports={construct:function(e,t){if("function"!=typeof e._construct)return;const n=e._readableState,i=e._writableState;n&&(n.constructed=!1),i&&(i.constructed=!1),e.once(h,t),e.listenerCount(h)>1||r.nextTick(_,e)},destroyer:function(e,t){e&&!l(e)&&(t||c(e)||(t=new s),f(e)?(e.socket=null,e.destroy(t)):E(e)?e.abort():E(e.req)?e.req.abort():"function"==typeof e.destroy?e.destroy(t):"function"==typeof e.close?e.close():t?r.nextTick(A,e,t):r.nextTick(S,e),e.destroyed||(e[u]=!0))},destroy:function(e,t){const n=this._readableState,r=this._writableState,o=r||n;return null!=r&&r.destroyed||null!=n&&n.destroyed?("function"==typeof t&&t(),this):(p(e,r,n),r&&(r.destroyed=!0),n&&(n.destroyed=!0),o.constructed?y(this,e,t):this.once(d,(function(n){y(this,i(n,e),t)})),this)},undestroy:function(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=!1===e.readable,e.endEmitted=!1===e.readable),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=!1===t.writable,t.ending=!1===t.writable,t.finished=!1===t.writable)},errorOrDestroy:w}},287:(e,t,n)=>{"use strict";const r=n(526),i=n(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50;const s=2147483647;function a(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|y(e,t);let r=a(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(J(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);const i=function(e){if(u.isBuffer(e)){const t=0|p(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||z(e.length)?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return c(e),a(e<0?0:0|p(e))}function d(e){const t=e.length<0?0:0|p(e.length),n=a(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,u.prototype),r}function p(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function y(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(i)return r?-1:Y(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return B(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),z(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:w(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):w(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(e,t,n,r,i){let o,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let r=-1;for(o=n;o<a;o++)if(l(e,o)===l(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===u)return r*s}else-1!==r&&(o-=o-r),r=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){let n=!0;for(let r=0;r<u;r++)if(l(e,o+r)!==l(t,r)){n=!1;break}if(n)return o}return-1}function _(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let s;for(r>o/2&&(r=o/2),s=0;s<r;++s){const r=parseInt(t.substr(2*s,2),16);if(z(r))return s;e[n+s]=r}return s}function v(e,t,n,r){return K(Y(t,e.length-n),e,n,r)}function E(e,t,n,r){return K(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return K(H(t),e,n,r)}function A(e,t,n,r){return K(function(e,t){let n,r,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function I(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=n){let n,r,a,u;switch(s){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(u=(31&t)<<6|63&n,u>127&&(o=u));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(u=(15&t)<<12|(63&n)<<6|63&r,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:n=e[i+1],r=e[i+2],a=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(u=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(e){const t=e.length;if(t<=N)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=N));return n}(r)}t.kMaxLength=s,u.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,n){return function(e,t,n){return c(e),e<=0?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)}(e,t,n)},u.allocUnsafe=function(e){return f(e)},u.allocUnsafeSlow=function(e){return f(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(J(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),J(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=u.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(J(t,Uint8Array))i+t.length>r.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)b(this,t,t+1);return this},u.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},u.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},u.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?I(this,0,e):g.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(J(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0);const a=Math.min(o,s),l=this.slice(r,i),c=e.slice(t,n);for(let e=0;e<a;++e)if(l[e]!==c[e]){o=l[e],s=c[e];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return v(this,e,t,n);case"ascii":case"latin1":case"binary":return E(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const N=4096;function x(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function R(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function B(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=Q[e[r]];return i}function C(e,t,n){const r=e.slice(t,n);let i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function k(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function L(e,t,n,r,i){$(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function D(e,t,n,r,i){$(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function M(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,o){return t=+t,n>>>=0,o||M(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function P(e,t,n,r,o){return t=+t,n>>>=0,o||M(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=X((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||V(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),u.prototype.readBigUInt64BE=X((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||V(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||k(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||k(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=X((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||V(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),u.prototype.readBigInt64BE=X((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||V(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||k(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||k(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||k(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||k(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||O(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||O(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=X((function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=X((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);O(this,e,t,n,r-1,-r)}let i=0,o=1,s=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);O(this,e,t,n,r-1,-r)}let i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=X((function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=X((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=u.isBuffer(e)?e:u.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%s]}return this};const j={};function F(e,t,n){j[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function q(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function $(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new j.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||V(t,e.length-(n+1))}(r,i,o)}function W(e,t){if("number"!=typeof e)throw new j.ERR_INVALID_ARG_TYPE(t,"number",e)}function V(e,t,n){if(Math.floor(e)!==e)throw W(e,n),new j.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new j.ERR_BUFFER_OUT_OF_BOUNDS;throw new j.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=q(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=q(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const G=/[^+/0-9A-Za-z-_]/g;function Y(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function z(e){return e!=e}const Q=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function X(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},307:(e,t,n)=>{"use strict";const{ObjectSetPrototypeOf:r,Symbol:i}=n(475);e.exports=l;const{ERR_METHOD_NOT_IMPLEMENTED:o}=n(760).codes,s=n(749),{getHighWaterMark:a}=n(646);r(l.prototype,s.prototype),r(l,s);const u=i("kCallback");function l(e){if(!(this instanceof l))return new l(e);const t=e?a(this,e,"readableHighWaterMark",!0):null;0===t&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),s.call(this,e),this._readableState.sync=!1,this[u]=null,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function c(e){"function"!=typeof this._flush||this.destroyed?(this.push(null),e&&e()):this._flush(((t,n)=>{t?e?e(t):this.destroy(t):(null!=n&&this.push(n),this.push(null),e&&e())}))}function f(){this._final!==c&&c.call(this)}l.prototype._final=c,l.prototype._transform=function(e,t,n){throw new o("_transform()")},l.prototype._write=function(e,t,n){const r=this._readableState,i=this._writableState,o=r.length;this._transform(e,t,((e,t)=>{e?n(e):(null!=t&&this.push(t),i.ended||o===r.length||r.length<r.highWaterMark?n():this[u]=n)}))},l.prototype._read=function(){if(this[u]){const e=this[u];this[u]=null,e()}}},351:(e,t,n)=>{"use strict";const r=n(287),i=Object.getPrototypeOf((async function(){})).constructor,o=globalThis.Blob||r.Blob,s=void 0!==o?function(e){return e instanceof o}:function(e){return!1};class a extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got "+typeof e);let t="";for(let n=0;n<e.length;n++)t+=` ${e[n].stack}\n`;super(t),this.name="AggregateError",this.errors=e}}e.exports={AggregateError:a,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...n){t||(t=!0,e.apply(this,n))}},createDeferredPromise:function(){let e,t;return{promise:new Promise(((n,r)=>{e=n,t=r})),resolve:e,reject:t}},promisify:e=>new Promise(((t,n)=>{e(((e,...r)=>e?n(e):t(...r)))})),debuglog:()=>function(){},format:(e,...t)=>e.replace(/%([sdifj])/g,(function(...[e,n]){const r=t.shift();return"f"===n?r.toFixed(6):"j"===n?JSON.stringify(r):"s"===n&&"object"==typeof r?`${r.constructor!==Object?r.constructor.name:""} {}`.trim():r.toString()})),inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":return isNaN(e)?"NaN":Object.is(e,-0)?String(e):e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}},types:{isAsyncFunction:e=>e instanceof i,isArrayBufferView:e=>ArrayBuffer.isView(e)},isBlob:s},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},474:(e,t,n)=>{var r,i;e=n.nmd(e),function(t){t.runningInNodeJS=function(){return"object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node},t.runningInMainNodeJSModule=function(){return t.runningInNodeJS()&&n.c[n.s]===e},t.commonJSAvailable=function(){return"object"==typeof e.exports},t.runningInWebWorker=function(){return"undefined"==typeof window&&"object"==typeof self&&"function"==typeof self.addEventListener&&"function"==typeof self.close},t.runningInNodeChildProcess=function(){return t.runningInNodeJS()&&"function"==typeof process.send},t.runningInNullOrigin=function(){return"object"==typeof window&&"object"==typeof window.location&&"object"==typeof document&&"http:"!==document.location.protocol&&"https:"!==document.location.protocol},t.webWorkersAvailable=function(){return!("function"!=typeof Worker||t.runningInNullOrigin()||t.runningInNodeJS()||navigator&&navigator.userAgent&&navigator.userAgent.indexOf("Android 4.3")>=0)},t.log=function(e,t){void 0===t&&(t=!1),"object"==typeof console&&(console.log(e),t&&"object"==typeof document&&(document.body.innerHTML+=e+"<br/>"))},t.createErrorMessage=function(e,n){if(void 0===n&&(n="Unhandled exception"),null==e)return n;if(n+=": ","object"==typeof e.content){if(t.runningInNodeJS())return n+e.content.stack;var r=JSON.stringify(e.content);return"{}"!==r?n+r:n+e.content}return"string"==typeof e.content?n+e.content:n+e},t.printExceptionAndStackTraceToConsole=function(e,n){void 0===n&&(n="Unhandled exception"),t.log(t.createErrorMessage(e,n))},t.getGlobalObject=function(){return"object"==typeof n.g?n.g:"object"==typeof window?window:"object"==typeof self?self:{}},t.toString=Object.prototype.toString,t.commonJSAvailable()&&(e.exports=t)}(i||(i={})),function(){if("function"==typeof Uint8Array&&0!==new Uint8Array(1).subarray(1).byteLength){var e=function(e,t){var n=function(e,t,n){return e<t?t:e>n?n:e};e|=0,t|=0,arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e=n(e,0,this.length);var r=(t=n(t,0,this.length))-e;return r<0&&(r=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,r)},t=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"],n=void 0;if("object"==typeof window?n=window:"object"==typeof self&&(n=self),void 0!==n)for(var r=0;r<t.length;r++)n[t[r]]&&(n[t[r]].prototype.subarray=e)}}(r||(r={})),function(e){var t=function(){function t(){}return t.compressAsync=function(t,n,r){var i=new e.Timer,o=new e.Compressor;if(!r)throw new TypeError("compressAsync: No callback argument given");if("string"==typeof t)t=e.encodeUTF8(t);else if(null==t||!(t instanceof Uint8Array))return void r(void 0,new TypeError("compressAsync: Invalid input argument, only 'string' and 'Uint8Array' are supported"));var s=e.ArrayTools.splitByteArray(t,n.blockSize),a=[],u=function(t){if(t<s.length){var l=void 0;try{l=o.compressBlock(s[t])}catch(e){return void r(void 0,e)}a.push(l),i.getElapsedTime()<=20?u(t+1):(e.enqueueImmediate((function(){return u(t+1)})),i.restart())}else{var c=e.ArrayTools.concatUint8Arrays(a);e.enqueueImmediate((function(){var t;try{t=e.CompressionCommon.encodeCompressedBytes(c,n.outputEncoding)}catch(e){return void r(void 0,e)}e.enqueueImmediate((function(){return r(t)}))}))}};e.enqueueImmediate((function(){return u(0)}))},t.createCompressionStream=function(){var t=new e.Compressor,r=new(n(499).Transform)({decodeStrings:!0,highWaterMark:65536});return r._transform=function(n,i,o){var s;try{s=e.BufferTools.uint8ArrayToBuffer(t.compressBlock(e.BufferTools.bufferToUint8Array(n)))}catch(e){return void r.emit("error",e)}r.push(s),o()},r},t}();e.AsyncCompressor=t}(i||(i={})),function(e){var t=function(){function t(){}return t.decompressAsync=function(t,n,r){if(!r)throw new TypeError("decompressAsync: No callback argument given");var i=new e.Timer;try{t=e.CompressionCommon.decodeCompressedBytes(t,n.inputEncoding)}catch(e){return void r(void 0,e)}var o=new e.Decompressor,s=e.ArrayTools.splitByteArray(t,n.blockSize),a=[],u=function(t){if(t<s.length){var l=void 0;try{l=o.decompressBlock(s[t])}catch(e){return void r(void 0,e)}a.push(l),i.getElapsedTime()<=20?u(t+1):(e.enqueueImmediate((function(){return u(t+1)})),i.restart())}else{var c=e.ArrayTools.concatUint8Arrays(a);e.enqueueImmediate((function(){var t;try{t=e.CompressionCommon.encodeDecompressedBytes(c,n.outputEncoding)}catch(e){return void r(void 0,e)}e.enqueueImmediate((function(){return r(t)}))}))}};e.enqueueImmediate((function(){return u(0)}))},t.createDecompressionStream=function(){var t=new e.Decompressor,r=new(n(499).Transform)({decodeStrings:!0,highWaterMark:65536});return r._transform=function(n,i,o){var s;try{s=e.BufferTools.uint8ArrayToBuffer(t.decompressBlock(e.BufferTools.bufferToUint8Array(n)))}catch(e){return void r.emit("error",e)}r.push(s),o()},r},t}();e.AsyncDecompressor=t}(i||(i={})),function(e){var t;!function(t){t.compressAsync=function(e,n,r){if("ByteArray"!=n.inputEncoding||e instanceof Uint8Array){var i={token:Math.random().toString(),type:"compress",data:e,inputEncoding:n.inputEncoding,outputEncoding:n.outputEncoding},o=function(e){var n=e.data;n&&n.token==i.token&&(t.globalWorker.removeEventListener("message",o),"error"==n.type?r(void 0,new Error(n.error)):r(n.data))};t.globalWorker.addEventListener("message",o),t.globalWorker.postMessage(i,[])}else r(void 0,new TypeError("compressAsync: input is not a Uint8Array"))},t.decompressAsync=function(e,n,r){var i={token:Math.random().toString(),type:"decompress",data:e,inputEncoding:n.inputEncoding,outputEncoding:n.outputEncoding},o=function(e){var n=e.data;n&&n.token==i.token&&(t.globalWorker.removeEventListener("message",o),"error"==n.type?r(void 0,new Error(n.error)):r(n.data))};t.globalWorker.addEventListener("message",o),t.globalWorker.postMessage(i,[])},t.installWebWorkerIfNeeded=function(){"object"==typeof self&&void 0===self.document&&null!=self.addEventListener&&(self.addEventListener("message",(function(t){var n=t.data;if("compress"==n.type){var r=void 0;try{r=e.compress(n.data,{outputEncoding:n.outputEncoding})}catch(t){return void self.postMessage({token:n.token,type:"error",error:e.createErrorMessage(t)},[])}(i={token:n.token,type:"compressionResult",data:r,encoding:n.outputEncoding}).data instanceof Uint8Array&&-1===navigator.appVersion.indexOf("MSIE 10")?self.postMessage(i,[i.data.buffer]):self.postMessage(i,[])}else if("decompress"==n.type){var i,o=void 0;try{o=e.decompress(n.data,{inputEncoding:n.inputEncoding,outputEncoding:n.outputEncoding})}catch(t){return void self.postMessage({token:n.token,type:"error",error:e.createErrorMessage(t)},[])}(i={token:n.token,type:"decompressionResult",data:o,encoding:n.outputEncoding}).data instanceof Uint8Array&&-1===navigator.appVersion.indexOf("MSIE 10")?self.postMessage(i,[i.data.buffer]):self.postMessage(i,[])}})),self.addEventListener("error",(function(t){e.log(e.createErrorMessage(t.error,"Unexpected LZUTF8 WebWorker exception"))})))},t.createGlobalWorkerIfNeeded=function(){if(t.globalWorker)return!0;if(!e.webWorkersAvailable())return!1;if(!t.scriptURI&&"object"==typeof document){var n=document.getElementById("lzutf8");null!=n&&(t.scriptURI=n.getAttribute("src")||void 0)}return!!t.scriptURI&&(t.globalWorker=new Worker(t.scriptURI),!0)},t.terminate=function(){t.globalWorker&&(t.globalWorker.terminate(),t.globalWorker=void 0)}}(t=e.WebWorker||(e.WebWorker={})),t.installWebWorkerIfNeeded()}(i||(i={})),function(e){var t=function(){function e(e,t,n){this.container=e,this.startPosition=t,this.length=n}return e.prototype.get=function(e){return this.container[this.startPosition+e]},e.prototype.getInReversedOrder=function(e){return this.container[this.startPosition+this.length-1-e]},e.prototype.set=function(e,t){this.container[this.startPosition+e]=t},e}();e.ArraySegment=t}(i||(i={})),function(e){var t;(t=e.ArrayTools||(e.ArrayTools={})).copyElements=function(e,t,n,r,i){for(;i--;)n[r++]=e[t++]},t.zeroElements=function(e,t,n){for(;n--;)e[t++]=0},t.countNonzeroValuesInArray=function(e){for(var t=0,n=0;n<e.length;n++)e[n]&&t++;return t},t.truncateStartingElements=function(e,t){if(e.length<=t)throw new RangeError("truncateStartingElements: Requested length should be smaller than array length");for(var n=e.length-t,r=0;r<t;r++)e[r]=e[n+r];e.length=t},t.doubleByteArrayCapacity=function(e){var t=new Uint8Array(2*e.length);return t.set(e),t},t.concatUint8Arrays=function(e){for(var t=0,n=0,r=e;n<r.length;n++)t+=(u=r[n]).length;for(var i=new Uint8Array(t),o=0,s=0,a=e;s<a.length;s++){var u=a[s];i.set(u,o),o+=u.length}return i},t.splitByteArray=function(e,t){for(var n=[],r=0;r<e.length;){var i=Math.min(t,e.length-r);n.push(e.subarray(r,r+i)),r+=i}return n}}(i||(i={})),function(e){var t;(t=e.BufferTools||(e.BufferTools={})).convertToUint8ArrayIfNeeded=function(e){return"function"==typeof Buffer&&Buffer.isBuffer(e)?t.bufferToUint8Array(e):e},t.uint8ArrayToBuffer=function(e){if(Buffer.prototype instanceof Uint8Array){var t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return Object.setPrototypeOf(t,Buffer.prototype),t}for(var n=e.length,r=new Buffer(n),i=0;i<n;i++)r[i]=e[i];return r},t.bufferToUint8Array=function(e){if(Buffer.prototype instanceof Uint8Array)return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e[r];return n}}(i||(i={})),function(e){var t;(t=e.CompressionCommon||(e.CompressionCommon={})).getCroppedBuffer=function(e,t,n,r){void 0===r&&(r=0);var i=new Uint8Array(n+r);return i.set(e.subarray(t,t+n)),i},t.getCroppedAndAppendedByteArray=function(t,n,r,i){return e.ArrayTools.concatUint8Arrays([t.subarray(n,n+r),i])},t.detectCompressionSourceEncoding=function(e){if(null==e)throw new TypeError("detectCompressionSourceEncoding: input is null or undefined");if("string"==typeof e)return"String";if(e instanceof Uint8Array||"function"==typeof Buffer&&Buffer.isBuffer(e))return"ByteArray";throw new TypeError("detectCompressionSourceEncoding: input must be of type 'string', 'Uint8Array' or 'Buffer'")},t.encodeCompressedBytes=function(t,n){switch(n){case"ByteArray":return t;case"Buffer":return e.BufferTools.uint8ArrayToBuffer(t);case"Base64":return e.encodeBase64(t);case"BinaryString":return e.encodeBinaryString(t);case"StorageBinaryString":return e.encodeStorageBinaryString(t);default:throw new TypeError("encodeCompressedBytes: invalid output encoding requested")}},t.decodeCompressedBytes=function(t,n){if(null==n)throw new TypeError("decodeCompressedData: Input is null or undefined");switch(n){case"ByteArray":case"Buffer":var r=e.BufferTools.convertToUint8ArrayIfNeeded(t);if(!(r instanceof Uint8Array))throw new TypeError("decodeCompressedData: 'ByteArray' or 'Buffer' input type was specified but input is not a Uint8Array or Buffer");return r;case"Base64":if("string"!=typeof t)throw new TypeError("decodeCompressedData: 'Base64' input type was specified but input is not a string");return e.decodeBase64(t);case"BinaryString":if("string"!=typeof t)throw new TypeError("decodeCompressedData: 'BinaryString' input type was specified but input is not a string");return e.decodeBinaryString(t);case"StorageBinaryString":if("string"!=typeof t)throw new TypeError("decodeCompressedData: 'StorageBinaryString' input type was specified but input is not a string");return e.decodeStorageBinaryString(t);default:throw new TypeError("decodeCompressedData: invalid input encoding requested: '".concat(n,"'"))}},t.encodeDecompressedBytes=function(t,n){switch(n){case"String":return e.decodeUTF8(t);case"ByteArray":return t;case"Buffer":if("function"!=typeof Buffer)throw new TypeError("encodeDecompressedBytes: a 'Buffer' type was specified but is not supported at the current envirnment");return e.BufferTools.uint8ArrayToBuffer(t);default:throw new TypeError("encodeDecompressedBytes: invalid output encoding requested")}}}(i||(i={})),function(e){var t;!function(t){var n,r=[];t.enqueueImmediate=function(e){r.push(e),1===r.length&&n()},t.initializeScheduler=function(){var t=function(){for(var t=0,n=r;t<n.length;t++){var i=n[t];try{i.call(void 0)}catch(t){e.printExceptionAndStackTraceToConsole(t,"enqueueImmediate exception")}}r.length=0};if(e.runningInNodeJS())n=function(){return setImmediate((function(){return t()}))};else if("object"==typeof window&&"function"==typeof window.addEventListener&&"function"==typeof window.postMessage){var i,o="enqueueImmediate-"+Math.random().toString();window.addEventListener("message",(function(e){e.data===o&&t()})),i=e.runningInNullOrigin()?"*":window.location.href,n=function(){return window.postMessage(o,i)}}else if("function"==typeof MessageChannel&&"function"==typeof MessagePort){var s=new MessageChannel;s.port1.onmessage=function(){return t()},n=function(){return s.port2.postMessage(0)}}else n=function(){return setTimeout((function(){return t()}),0)}},t.initializeScheduler()}(t=e.EventLoop||(e.EventLoop={})),e.enqueueImmediate=function(e){return t.enqueueImmediate(e)}}(i||(i={})),function(e){var t;(t=e.ObjectTools||(e.ObjectTools={})).override=function(e,n){return t.extend(e,n)},t.extend=function(e,t){if(null==e)throw new TypeError("obj is null or undefined");if("object"!=typeof e)throw new TypeError("obj is not an object");if(null==t&&(t={}),"object"!=typeof t)throw new TypeError("newProperties is not an object");if(null!=t)for(var n in t)e[n]=t[n];return e}}(i||(i={})),function(e){e.getRandomIntegerInRange=function(e,t){return e+Math.floor(Math.random()*(t-e))},e.getRandomUTF16StringOfLength=function(t){for(var n="",r=0;r<t;r++){var i=void 0;do{i=e.getRandomIntegerInRange(0,1114112)}while(i>=55296&&i<=57343);n+=e.Encoding.CodePoint.decodeToString(i)}return n}}(i||(i={})),function(e){var t=function(){function e(e){void 0===e&&(e=1024),this.outputBufferCapacity=e,this.outputPosition=0,this.outputString="",this.outputBuffer=new Uint16Array(this.outputBufferCapacity)}return e.prototype.appendCharCode=function(e){this.outputBuffer[this.outputPosition++]=e,this.outputPosition===this.outputBufferCapacity&&this.flushBufferToOutputString()},e.prototype.appendCharCodes=function(e){for(var t=0,n=e.length;t<n;t++)this.appendCharCode(e[t])},e.prototype.appendString=function(e){for(var t=0,n=e.length;t<n;t++)this.appendCharCode(e.charCodeAt(t))},e.prototype.appendCodePoint=function(e){if(e<=65535)this.appendCharCode(e);else{if(!(e<=1114111))throw new Error("appendCodePoint: A code point of ".concat(e," cannot be encoded in UTF-16"));this.appendCharCode(55296+(e-65536>>>10)),this.appendCharCode(56320+(e-65536&1023))}},e.prototype.getOutputString=function(){return this.flushBufferToOutputString(),this.outputString},e.prototype.flushBufferToOutputString=function(){this.outputPosition===this.outputBufferCapacity?this.outputString+=String.fromCharCode.apply(null,this.outputBuffer):this.outputString+=String.fromCharCode.apply(null,this.outputBuffer.subarray(0,this.outputPosition)),this.outputPosition=0},e}();e.StringBuilder=t}(i||(i={})),function(e){var t=function(){function t(){this.restart()}return t.prototype.restart=function(){this.startTime=t.getTimestamp()},t.prototype.getElapsedTime=function(){return t.getTimestamp()-this.startTime},t.prototype.getElapsedTimeAndRestart=function(){var e=this.getElapsedTime();return this.restart(),e},t.prototype.logAndRestart=function(t,n){void 0===n&&(n=!0);var r=this.getElapsedTime(),i="".concat(t,": ").concat(r.toFixed(3),"ms");return e.log(i,n),this.restart(),r},t.getTimestamp=function(){return this.timestampFunc||this.createGlobalTimestampFunction(),this.timestampFunc()},t.getMicrosecondTimestamp=function(){return Math.floor(1e3*t.getTimestamp())},t.createGlobalTimestampFunction=function(){if("object"==typeof process&&"function"==typeof process.hrtime){var e=0;this.timestampFunc=function(){var t=process.hrtime(),n=1e3*t[0]+t[1]/1e6;return e+n},e=Date.now()-this.timestampFunc()}else if("object"==typeof chrome&&chrome.Interval){var t=Date.now(),n=new chrome.Interval;n.start(),this.timestampFunc=function(){return t+n.microseconds()/1e3}}else if("object"==typeof performance&&performance.now){var r=Date.now()-performance.now();this.timestampFunc=function(){return r+performance.now()}}else Date.now?this.timestampFunc=function(){return Date.now()}:this.timestampFunc=function(){return(new Date).getTime()}},t}();e.Timer=t}(i||(i={})),function(e){var t=function(){function t(t){void 0===t&&(t=!0),this.MinimumSequenceLength=4,this.MaximumSequenceLength=31,this.MaximumMatchDistance=32767,this.PrefixHashTableSize=65537,this.inputBufferStreamOffset=1,t&&"function"==typeof Uint32Array?this.prefixHashTable=new e.CompressorCustomHashTable(this.PrefixHashTableSize):this.prefixHashTable=new e.CompressorSimpleHashTable(this.PrefixHashTableSize)}return t.prototype.compressBlock=function(t){if(null==t)throw new TypeError("compressBlock: undefined or null input received");return"string"==typeof t&&(t=e.encodeUTF8(t)),t=e.BufferTools.convertToUint8ArrayIfNeeded(t),this.compressUtf8Block(t)},t.prototype.compressUtf8Block=function(e){if(!e||0==e.length)return new Uint8Array(0);var t=this.cropAndAddNewBytesToInputBuffer(e),n=this.inputBuffer,r=this.inputBuffer.length;this.outputBuffer=new Uint8Array(e.length),this.outputBufferPosition=0;for(var i=0,o=t;o<r;o++){var s=n[o],a=o<i;if(o>r-this.MinimumSequenceLength)a||this.outputRawByte(s);else{var u=this.getBucketIndexForPrefix(o);if(!a){var l=this.findLongestMatch(o,u);null!=l&&(this.outputPointerBytes(l.length,l.distance),i=o+l.length,a=!0)}a||this.outputRawByte(s);var c=this.inputBufferStreamOffset+o;this.prefixHashTable.addValueToBucket(u,c)}}return this.outputBuffer.subarray(0,this.outputBufferPosition)},t.prototype.findLongestMatch=function(e,t){var n=this.prefixHashTable.getArraySegmentForBucketIndex(t,this.reusableArraySegmentObject);if(null==n)return null;for(var r,i=this.inputBuffer,o=0,s=0;s<n.length;s++){var a,u=n.getInReversedOrder(s)-this.inputBufferStreamOffset,l=e-u;if(a=void 0===r?this.MinimumSequenceLength-1:r<128&&l>=128?o+(o>>>1):o,l>this.MaximumMatchDistance||a>=this.MaximumSequenceLength||e+a>=i.length)break;if(i[u+a]===i[e+a])for(var c=0;;c++){if(e+c===i.length||i[u+c]!==i[e+c]){c>a&&(r=l,o=c);break}if(c===this.MaximumSequenceLength)return{distance:l,length:this.MaximumSequenceLength}}}return void 0!==r?{distance:r,length:o}:null},t.prototype.getBucketIndexForPrefix=function(e){return(7880599*this.inputBuffer[e]+39601*this.inputBuffer[e+1]+199*this.inputBuffer[e+2]+this.inputBuffer[e+3])%this.PrefixHashTableSize},t.prototype.outputPointerBytes=function(e,t){t<128?(this.outputRawByte(192|e),this.outputRawByte(t)):(this.outputRawByte(224|e),this.outputRawByte(t>>>8),this.outputRawByte(255&t))},t.prototype.outputRawByte=function(e){this.outputBuffer[this.outputBufferPosition++]=e},t.prototype.cropAndAddNewBytesToInputBuffer=function(t){if(void 0===this.inputBuffer)return this.inputBuffer=t,0;var n=Math.min(this.inputBuffer.length,this.MaximumMatchDistance),r=this.inputBuffer.length-n;return this.inputBuffer=e.CompressionCommon.getCroppedAndAppendedByteArray(this.inputBuffer,r,n,t),this.inputBufferStreamOffset+=r,n},t}();e.Compressor=t}(i||(i={})),function(e){var t=function(){function t(e){this.minimumBucketCapacity=4,this.maximumBucketCapacity=64,this.bucketLocators=new Uint32Array(2*e),this.storage=new Uint32Array(2*e),this.storageIndex=1}return t.prototype.addValueToBucket=function(t,n){t<<=1,this.storageIndex>=this.storage.length>>>1&&this.compact();var r,i=this.bucketLocators[t];if(0===i)i=this.storageIndex,r=1,this.storage[this.storageIndex]=n,this.storageIndex+=this.minimumBucketCapacity;else{(r=this.bucketLocators[t+1])===this.maximumBucketCapacity-1&&(r=this.truncateBucketToNewerElements(i,r,this.maximumBucketCapacity/2));var o=i+r;0===this.storage[o]?(this.storage[o]=n,o===this.storageIndex&&(this.storageIndex+=r)):(e.ArrayTools.copyElements(this.storage,i,this.storage,this.storageIndex,r),i=this.storageIndex,this.storageIndex+=r,this.storage[this.storageIndex++]=n,this.storageIndex+=r),r++}this.bucketLocators[t]=i,this.bucketLocators[t+1]=r},t.prototype.truncateBucketToNewerElements=function(t,n,r){var i=t+n-r;return e.ArrayTools.copyElements(this.storage,i,this.storage,t,r),e.ArrayTools.zeroElements(this.storage,t+r,n-r),r},t.prototype.compact=function(){var t=this.bucketLocators,n=this.storage;this.bucketLocators=new Uint32Array(this.bucketLocators.length),this.storageIndex=1;for(var r=0;r<t.length;r+=2){var i=t[r+1];0!==i&&(this.bucketLocators[r]=this.storageIndex,this.bucketLocators[r+1]=i,this.storageIndex+=Math.max(Math.min(2*i,this.maximumBucketCapacity),this.minimumBucketCapacity))}for(this.storage=new Uint32Array(8*this.storageIndex),r=0;r<t.length;r+=2){var o=t[r];if(0!==o){var s=this.bucketLocators[r],a=this.bucketLocators[r+1];e.ArrayTools.copyElements(n,o,this.storage,s,a)}}},t.prototype.getArraySegmentForBucketIndex=function(t,n){t<<=1;var r=this.bucketLocators[t];return 0===r?null:(void 0===n&&(n=new e.ArraySegment(this.storage,r,this.bucketLocators[t+1])),n)},t.prototype.getUsedBucketCount=function(){return Math.floor(e.ArrayTools.countNonzeroValuesInArray(this.bucketLocators)/2)},t.prototype.getTotalElementCount=function(){for(var e=0,t=0;t<this.bucketLocators.length;t+=2)e+=this.bucketLocators[t+1];return e},t}();e.CompressorCustomHashTable=t}(i||(i={})),function(e){var t=function(){function t(e){this.maximumBucketCapacity=64,this.buckets=new Array(e)}return t.prototype.addValueToBucket=function(t,n){var r=this.buckets[t];void 0===r?this.buckets[t]=[n]:(r.length===this.maximumBucketCapacity-1&&e.ArrayTools.truncateStartingElements(r,this.maximumBucketCapacity/2),r.push(n))},t.prototype.getArraySegmentForBucketIndex=function(t,n){var r=this.buckets[t];return void 0===r?null:(void 0===n&&(n=new e.ArraySegment(r,0,r.length)),n)},t.prototype.getUsedBucketCount=function(){return e.ArrayTools.countNonzeroValuesInArray(this.buckets)},t.prototype.getTotalElementCount=function(){for(var e=0,t=0;t<this.buckets.length;t++)void 0!==this.buckets[t]&&(e+=this.buckets[t].length);return e},t}();e.CompressorSimpleHashTable=t}(i||(i={})),function(e){var t=function(){function t(){this.MaximumMatchDistance=32767,this.outputPosition=0}return t.prototype.decompressBlockToString=function(t){return t=e.BufferTools.convertToUint8ArrayIfNeeded(t),e.decodeUTF8(this.decompressBlock(t))},t.prototype.decompressBlock=function(t){this.inputBufferRemainder&&(t=e.ArrayTools.concatUint8Arrays([this.inputBufferRemainder,t]),this.inputBufferRemainder=void 0);for(var n=this.cropOutputBufferToWindowAndInitialize(Math.max(4*t.length,1024)),r=0,i=t.length;r<i;r++){var o=t[r];if(o>>>6==3){var s=o>>>5;if(r==i-1||r==i-2&&7==s){this.inputBufferRemainder=t.subarray(r);break}if(t[r+1]>>>7==1)this.outputByte(o);else{var a=31&o,u=void 0;6==s?(u=t[r+1],r+=1):(u=t[r+1]<<8|t[r+2],r+=2);for(var l=this.outputPosition-u,c=0;c<a;c++)this.outputByte(this.outputBuffer[l+c])}}else this.outputByte(o)}return this.rollBackIfOutputBufferEndsWithATruncatedMultibyteSequence(),e.CompressionCommon.getCroppedBuffer(this.outputBuffer,n,this.outputPosition-n)},t.prototype.outputByte=function(t){this.outputPosition===this.outputBuffer.length&&(this.outputBuffer=e.ArrayTools.doubleByteArrayCapacity(this.outputBuffer)),this.outputBuffer[this.outputPosition++]=t},t.prototype.cropOutputBufferToWindowAndInitialize=function(t){if(!this.outputBuffer)return this.outputBuffer=new Uint8Array(t),0;var n=Math.min(this.outputPosition,this.MaximumMatchDistance);if(this.outputBuffer=e.CompressionCommon.getCroppedBuffer(this.outputBuffer,this.outputPosition-n,n,t),this.outputPosition=n,this.outputBufferRemainder){for(var r=0;r<this.outputBufferRemainder.length;r++)this.outputByte(this.outputBufferRemainder[r]);this.outputBufferRemainder=void 0}return n},t.prototype.rollBackIfOutputBufferEndsWithATruncatedMultibyteSequence=function(){for(var e=1;e<=4&&this.outputPosition-e>=0;e++){var t=this.outputBuffer[this.outputPosition-e];if(e<4&&t>>>3==30||e<3&&t>>>4==14||e<2&&t>>>5==6)return this.outputBufferRemainder=this.outputBuffer.subarray(this.outputPosition-e,this.outputPosition),void(this.outputPosition-=e)}},t}();e.Decompressor=t}(i||(i={})),function(e){var t,n,r,i;t=e.Encoding||(e.Encoding={}),n=t.Base64||(t.Base64={}),r=new Uint8Array([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57,43,47]),i=new Uint8Array([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,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,62,255,255,255,63,52,53,54,55,56,57,58,59,60,61,255,255,255,0,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,255,255,255,255]),n.encode=function(t){return t&&0!=t.length?e.runningInNodeJS()?e.BufferTools.uint8ArrayToBuffer(t).toString("base64"):n.encodeWithJS(t):""},n.decode=function(t){return t?e.runningInNodeJS()?e.BufferTools.bufferToUint8Array(Buffer.from(t,"base64")):n.decodeWithJS(t):new Uint8Array(0)},n.encodeWithJS=function(t,n){if(void 0===n&&(n=!0),!t||0==t.length)return"";for(var i,o=r,s=new e.StringBuilder,a=0,u=t.length;a<u;a+=3)a<=u-3?(i=t[a]<<16|t[a+1]<<8|t[a+2],s.appendCharCode(o[i>>>18&63]),s.appendCharCode(o[i>>>12&63]),s.appendCharCode(o[i>>>6&63]),s.appendCharCode(o[63&i]),i=0):a===u-2?(i=t[a]<<16|t[a+1]<<8,s.appendCharCode(o[i>>>18&63]),s.appendCharCode(o[i>>>12&63]),s.appendCharCode(o[i>>>6&63]),n&&s.appendCharCode(61)):a===u-1&&(i=t[a]<<16,s.appendCharCode(o[i>>>18&63]),s.appendCharCode(o[i>>>12&63]),n&&(s.appendCharCode(61),s.appendCharCode(61)));return s.getOutputString()},n.decodeWithJS=function(e,t){if(!e||0==e.length)return new Uint8Array(0);var n=e.length%4;if(1===n)throw new Error("Invalid Base64 string: length % 4 == 1");2===n?e+="==":3===n&&(e+="="),t||(t=new Uint8Array(e.length));for(var r=0,o=e.length,s=0;s<o;s+=4){var a=i[e.charCodeAt(s)]<<18|i[e.charCodeAt(s+1)]<<12|i[e.charCodeAt(s+2)]<<6|i[e.charCodeAt(s+3)];t[r++]=a>>>16&255,t[r++]=a>>>8&255,t[r++]=255&a}return 61==e.charCodeAt(o-1)&&r--,61==e.charCodeAt(o-2)&&r--,t.subarray(0,r)}}(i||(i={})),function(e){var t,n;t=e.Encoding||(e.Encoding={}),(n=t.BinaryString||(t.BinaryString={})).encode=function(t){if(null==t)throw new TypeError("BinaryString.encode: undefined or null input received");if(0===t.length)return"";for(var n=t.length,r=new e.StringBuilder,i=0,o=1,s=0;s<n;s+=2){var a;a=s==n-1?t[s]<<8:t[s]<<8|t[s+1],r.appendCharCode(i<<16-o|a>>>o),i=a&(1<<o)-1,15===o?(r.appendCharCode(i),i=0,o=1):o+=1,s>=n-2&&r.appendCharCode(i<<16-o)}return r.appendCharCode(32768|n%2),r.getOutputString()},n.decode=function(e){if("string"!=typeof e)throw new TypeError("BinaryString.decode: invalid input type");if(""==e)return new Uint8Array(0);for(var t=new Uint8Array(3*e.length),n=0,r=function(e){t[n++]=e>>>8,t[n++]=255&e},i=0,o=0,s=0;s<e.length;s++){var a=e.charCodeAt(s);a>=32768?(32769==a&&n--,o=0):(0==o?i=a:(r(i<<o|a>>>15-o),i=a&(1<<15-o)-1),15==o?o=0:o+=1)}return t.subarray(0,n)}}(i||(i={})),function(e){var t,n;t=e.Encoding||(e.Encoding={}),(n=t.CodePoint||(t.CodePoint={})).encodeFromString=function(e,t){var n=e.charCodeAt(t);if(n<55296||n>56319)return n;var r=e.charCodeAt(t+1);if(r>=56320&&r<=57343)return r-56320+(n-55296<<10)+65536;throw new Error("getUnicodeCodePoint: Received a lead surrogate character, char code ".concat(n,", followed by ").concat(r,", which is not a trailing surrogate character code."))},n.decodeToString=function(e){if(e<=65535)return String.fromCharCode(e);if(e<=1114111)return String.fromCharCode(55296+(e-65536>>>10),56320+(e-65536&1023));throw new Error("getStringFromUnicodeCodePoint: A code point of ".concat(e," cannot be encoded in UTF-16"))}}(i||(i={})),function(e){var t,n,r;t=e.Encoding||(e.Encoding={}),n=t.DecimalString||(t.DecimalString={}),r=["000","001","002","003","004","005","006","007","008","009","010","011","012","013","014","015","016","017","018","019","020","021","022","023","024","025","026","027","028","029","030","031","032","033","034","035","036","037","038","039","040","041","042","043","044","045","046","047","048","049","050","051","052","053","054","055","056","057","058","059","060","061","062","063","064","065","066","067","068","069","070","071","072","073","074","075","076","077","078","079","080","081","082","083","084","085","086","087","088","089","090","091","092","093","094","095","096","097","098","099","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179","180","181","182","183","184","185","186","187","188","189","190","191","192","193","194","195","196","197","198","199","200","201","202","203","204","205","206","207","208","209","210","211","212","213","214","215","216","217","218","219","220","221","222","223","224","225","226","227","228","229","230","231","232","233","234","235","236","237","238","239","240","241","242","243","244","245","246","247","248","249","250","251","252","253","254","255"],n.encode=function(e){for(var t=[],n=0;n<e.length;n++)t.push(r[e[n]]);return t.join(" ")}}(i||(i={})),function(e){var t,n;t=e.Encoding||(e.Encoding={}),(n=t.StorageBinaryString||(t.StorageBinaryString={})).encode=function(e){return t.BinaryString.encode(e).replace(/\0/g,"耂")},n.decode=function(e){return t.BinaryString.decode(e.replace(/\u8002/g,"\0"))}}(i||(i={})),function(e){var t,n,r,i;t=e.Encoding||(e.Encoding={}),(n=t.UTF8||(t.UTF8={})).encode=function(t){return t&&0!=t.length?e.runningInNodeJS()?e.BufferTools.bufferToUint8Array(Buffer.from(t,"utf8")):n.createNativeTextEncoderAndDecoderIfAvailable()?r.encode(t):n.encodeWithJS(t):new Uint8Array(0)},n.decode=function(t){return t&&0!=t.length?e.runningInNodeJS()?e.BufferTools.uint8ArrayToBuffer(t).toString("utf8"):n.createNativeTextEncoderAndDecoderIfAvailable()?i.decode(t):n.decodeWithJS(t):""},n.encodeWithJS=function(e,n){if(!e||0==e.length)return new Uint8Array(0);n||(n=new Uint8Array(4*e.length));for(var r=0,i=0;i<e.length;i++){var o=t.CodePoint.encodeFromString(e,i);if(o<=127)n[r++]=o;else if(o<=2047)n[r++]=192|o>>>6,n[r++]=128|63&o;else if(o<=65535)n[r++]=224|o>>>12,n[r++]=128|o>>>6&63,n[r++]=128|63&o;else{if(!(o<=1114111))throw new Error("Invalid UTF-16 string: Encountered a character unsupported by UTF-8/16 (RFC 3629)");n[r++]=240|o>>>18,n[r++]=128|o>>>12&63,n[r++]=128|o>>>6&63,n[r++]=128|63&o,i++}}return n.subarray(0,r)},n.decodeWithJS=function(t,n,r){if(void 0===n&&(n=0),!t||0==t.length)return"";void 0===r&&(r=t.length);for(var i,o,s=new e.StringBuilder,a=n,u=r;a<u;){if((o=t[a])>>>7==0)i=o,a+=1;else if(o>>>5==6){if(a+1>=r)throw new Error("Invalid UTF-8 stream: Truncated codepoint sequence encountered at position "+a);i=(31&o)<<6|63&t[a+1],a+=2}else if(o>>>4==14){if(a+2>=r)throw new Error("Invalid UTF-8 stream: Truncated codepoint sequence encountered at position "+a);i=(15&o)<<12|(63&t[a+1])<<6|63&t[a+2],a+=3}else{if(o>>>3!=30)throw new Error("Invalid UTF-8 stream: An invalid lead byte value encountered at position "+a);if(a+3>=r)throw new Error("Invalid UTF-8 stream: Truncated codepoint sequence encountered at position "+a);i=(7&o)<<18|(63&t[a+1])<<12|(63&t[a+2])<<6|63&t[a+3],a+=4}s.appendCodePoint(i)}return s.getOutputString()},n.createNativeTextEncoderAndDecoderIfAvailable=function(){return!!r||"function"==typeof TextEncoder&&(r=new TextEncoder("utf-8"),i=new TextDecoder("utf-8"),!0)}}(i||(i={})),function(e){e.compress=function(t,n){if(void 0===n&&(n={}),null==t)throw new TypeError("compress: undefined or null input received");var r=e.CompressionCommon.detectCompressionSourceEncoding(t);n=e.ObjectTools.override({inputEncoding:r,outputEncoding:"ByteArray"},n);var i=(new e.Compressor).compressBlock(t);return e.CompressionCommon.encodeCompressedBytes(i,n.outputEncoding)},e.decompress=function(t,n){if(void 0===n&&(n={}),null==t)throw new TypeError("decompress: undefined or null input received");n=e.ObjectTools.override({inputEncoding:"ByteArray",outputEncoding:"String"},n);var r=e.CompressionCommon.decodeCompressedBytes(t,n.inputEncoding),i=(new e.Decompressor).decompressBlock(r);return e.CompressionCommon.encodeDecompressedBytes(i,n.outputEncoding)},e.compressAsync=function(t,n,r){var i;null==r&&(r=function(){});try{i=e.CompressionCommon.detectCompressionSourceEncoding(t)}catch(e){return void r(void 0,e)}n=e.ObjectTools.override({inputEncoding:i,outputEncoding:"ByteArray",useWebWorker:!0,blockSize:65536},n),e.enqueueImmediate((function(){n.useWebWorker&&e.WebWorker.createGlobalWorkerIfNeeded()?e.WebWorker.compressAsync(t,n,r):e.AsyncCompressor.compressAsync(t,n,r)}))},e.decompressAsync=function(t,n,r){if(null==r&&(r=function(){}),null!=t){n=e.ObjectTools.override({inputEncoding:"ByteArray",outputEncoding:"String",useWebWorker:!0,blockSize:65536},n);var i=e.BufferTools.convertToUint8ArrayIfNeeded(t);e.EventLoop.enqueueImmediate((function(){n.useWebWorker&&e.WebWorker.createGlobalWorkerIfNeeded()?e.WebWorker.decompressAsync(i,n,r):e.AsyncDecompressor.decompressAsync(t,n,r)}))}else r(void 0,new TypeError("decompressAsync: undefined or null input received"))},e.createCompressionStream=function(){return e.AsyncCompressor.createCompressionStream()},e.createDecompressionStream=function(){return e.AsyncDecompressor.createDecompressionStream()},e.encodeUTF8=function(t){return e.Encoding.UTF8.encode(t)},e.decodeUTF8=function(t){return e.Encoding.UTF8.decode(t)},e.encodeBase64=function(t){return e.Encoding.Base64.encode(t)},e.decodeBase64=function(t){return e.Encoding.Base64.decode(t)},e.encodeBinaryString=function(t){return e.Encoding.BinaryString.encode(t)},e.decodeBinaryString=function(t){return e.Encoding.BinaryString.decode(t)},e.encodeStorageBinaryString=function(t){return e.Encoding.StorageBinaryString.encode(t)},e.decodeStorageBinaryString=function(t){return e.Encoding.StorageBinaryString.decode(t)}}(i||(i={}))},475:e=>{"use strict";e.exports={ArrayIsArray:e=>Array.isArray(e),ArrayPrototypeIncludes:(e,t)=>e.includes(t),ArrayPrototypeIndexOf:(e,t)=>e.indexOf(t),ArrayPrototypeJoin:(e,t)=>e.join(t),ArrayPrototypeMap:(e,t)=>e.map(t),ArrayPrototypePop:(e,t)=>e.pop(t),ArrayPrototypePush:(e,t)=>e.push(t),ArrayPrototypeSlice:(e,t,n)=>e.slice(t,n),Error,FunctionPrototypeCall:(e,t,...n)=>e.call(t,...n),FunctionPrototypeSymbolHasInstance:(e,t)=>Function.prototype[Symbol.hasInstance].call(e,t),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(e,t)=>Object.defineProperties(e,t),ObjectDefineProperty:(e,t,n)=>Object.defineProperty(e,t,n),ObjectGetOwnPropertyDescriptor:(e,t)=>Object.getOwnPropertyDescriptor(e,t),ObjectKeys:e=>Object.keys(e),ObjectSetPrototypeOf:(e,t)=>Object.setPrototypeOf(e,t),Promise,PromisePrototypeCatch:(e,t)=>e.catch(t),PromisePrototypeThen:(e,t,n)=>e.then(t,n),PromiseReject:e=>Promise.reject(e),ReflectApply:Reflect.apply,RegExpPrototypeTest:(e,t)=>e.test(t),SafeSet:Set,String,StringPrototypeSlice:(e,t,n)=>e.slice(t,n),StringPrototypeToLowerCase:e=>e.toLowerCase(),StringPrototypeToUpperCase:e=>e.toUpperCase(),StringPrototypeTrim:e=>e.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet:(e,t,n)=>e.set(t,n),Uint8Array}},499:(e,t,n)=>{"use strict";const r=n(507),i=n(724),o=r.Readable.destroy;e.exports=r.Readable,e.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,e.exports._isUint8Array=r._isUint8Array,e.exports.isDisturbed=r.isDisturbed,e.exports.isErrored=r.isErrored,e.exports.isReadable=r.isReadable,e.exports.Readable=r.Readable,e.exports.Writable=r.Writable,e.exports.Duplex=r.Duplex,e.exports.Transform=r.Transform,e.exports.PassThrough=r.PassThrough,e.exports.addAbortSignal=r.addAbortSignal,e.exports.finished=r.finished,e.exports.destroy=r.destroy,e.exports.destroy=o,e.exports.pipeline=r.pipeline,e.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get:()=>i}),e.exports.Stream=r.Stream,e.exports.default=e.exports},507:(e,t,n)=>{const{Buffer:r}=n(287),{ObjectDefineProperty:i,ObjectKeys:o,ReflectApply:s}=n(475),{promisify:{custom:a}}=n(351),{streamReturningOperators:u,promiseReturningOperators:l}=n(170),{codes:{ERR_ILLEGAL_CONSTRUCTOR:c}}=n(760),f=n(515),{pipeline:d}=n(545),{destroyer:h}=n(261),p=n(627),y=n(724),g=n(734),b=e.exports=n(236).Stream;b.isDisturbed=g.isDisturbed,b.isErrored=g.isErrored,b.isReadable=g.isReadable,b.Readable=n(747);for(const _ of o(u)){const v=u[_];function m(...e){if(new.target)throw c();return b.Readable.from(s(v,this,e))}i(m,"name",{__proto__:null,value:v.name}),i(m,"length",{__proto__:null,value:v.length}),i(b.Readable.prototype,_,{__proto__:null,value:m,enumerable:!1,configurable:!0,writable:!0})}for(const E of o(l)){const S=l[E];function m(...e){if(new.target)throw c();return s(S,this,e)}i(m,"name",{__proto__:null,value:S.name}),i(m,"length",{__proto__:null,value:S.length}),i(b.Readable.prototype,E,{__proto__:null,value:m,enumerable:!1,configurable:!0,writable:!0})}b.Writable=n(588),b.Duplex=n(749),b.Transform=n(307),b.PassThrough=n(65),b.pipeline=d;const{addAbortSignal:w}=n(792);b.addAbortSignal=w,b.finished=p,b.destroy=h,b.compose=f,i(b,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>y}),i(d,a,{__proto__:null,enumerable:!0,get:()=>y.pipeline}),i(p,a,{__proto__:null,enumerable:!0,get:()=>y.finished}),b.Stream=b,b._isUint8Array=function(e){return e instanceof Uint8Array},b._uint8ArrayToBuffer=function(e){return r.from(e.buffer,e.byteOffset,e.byteLength)}},515:(e,t,n)=>{"use strict";const{pipeline:r}=n(545),i=n(749),{destroyer:o}=n(261),{isNodeStream:s,isReadable:a,isWritable:u,isWebStream:l,isTransformStream:c,isWritableStream:f,isReadableStream:d}=n(734),{AbortError:h,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:y}}=n(760),g=n(627);e.exports=function(...e){if(0===e.length)throw new y("streams");if(1===e.length)return i.from(e[0]);const t=[...e];if("function"==typeof e[0]&&(e[0]=i.from(e[0])),"function"==typeof e[e.length-1]){const t=e.length-1;e[t]=i.from(e[t])}for(let n=0;n<e.length;++n)if(s(e[n])||l(e[n])){if(n<e.length-1&&!(a(e[n])||d(e[n])||c(e[n])))throw new p(`streams[${n}]`,t[n],"must be readable");if(n>0&&!(u(e[n])||f(e[n])||c(e[n])))throw new p(`streams[${n}]`,t[n],"must be writable")}let n,b,m,w,_;const v=e[0],E=r(e,(function(e){const t=w;w=null,t?t(e):e?_.destroy(e):A||S||_.destroy()})),S=!!(u(v)||f(v)||c(v)),A=!!(a(E)||d(E)||c(E));if(_=new i({writableObjectMode:!(null==v||!v.writableObjectMode),readableObjectMode:!(null==E||!E.writableObjectMode),writable:S,readable:A}),S){if(s(v))_._write=function(e,t,r){v.write(e,t)?r():n=r},_._final=function(e){v.end(),b=e},v.on("drain",(function(){if(n){const e=n;n=null,e()}}));else if(l(v)){const e=(c(v)?v.writable:v).getWriter();_._write=async function(t,n,r){try{await e.ready,e.write(t).catch((()=>{})),r()}catch(e){r(e)}},_._final=async function(t){try{await e.ready,e.close().catch((()=>{})),b=t}catch(e){t(e)}}}const e=c(E)?E.readable:E;g(e,(()=>{if(b){const e=b;b=null,e()}}))}if(A)if(s(E))E.on("readable",(function(){if(m){const e=m;m=null,e()}})),E.on("end",(function(){_.push(null)})),_._read=function(){for(;;){const e=E.read();if(null===e)return void(m=_._read);if(!_.push(e))return}};else if(l(E)){const e=(c(E)?E.readable:E).getReader();_._read=async function(){for(;;)try{const{value:t,done:n}=await e.read();if(!_.push(t))return;if(n)return void _.push(null)}catch{return}}}return _._destroy=function(e,t){e||null===w||(e=new h),m=null,n=null,b=null,null===w?t(e):(w=t,s(E)&&o(E,e))},_}},526:(e,t)=>{"use strict";t.byteLength=function(e){var t=a(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=a(e),s=o[0],u=o[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,s,u)),c=0,f=u>0?s-4:s;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===u&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===u&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=16383,a=0,l=r-i;a<l;a+=s)o.push(u(e,a,a+s>l?l:a+s));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=o[s],r[o.charCodeAt(s)]=s;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var i,o,s=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},545:(e,t,n)=>{const r=n(606),{ArrayIsArray:i,Promise:o,SymbolAsyncIterator:s}=n(475),a=n(627),{once:u}=n(351),l=n(261),c=n(749),{aggregateTwoErrors:f,codes:{ERR_INVALID_ARG_TYPE:d,ERR_INVALID_RETURN_VALUE:h,ERR_MISSING_ARGS:p,ERR_STREAM_DESTROYED:y,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:b}=n(760),{validateFunction:m,validateAbortSignal:w}=n(974),{isIterable:_,isReadable:v,isReadableNodeStream:E,isNodeStream:S,isTransformStream:A,isWebStream:T,isReadableStream:I,isReadableEnded:N}=n(734),x=globalThis.AbortController||n(568).AbortController;let R,B;function C(e,t,n){let r=!1;return e.on("close",(()=>{r=!0})),{destroy:t=>{r||(r=!0,l.destroyer(e,t||new y("pipe")))},cleanup:a(e,{readable:t,writable:n},(e=>{r=!e}))}}function k(e){if(_(e))return e;if(E(e))return async function*(e){B||(B=n(747)),yield*B.prototype[s].call(e)}(e);throw new d("val",["Readable","Iterable","AsyncIterable"],e)}async function O(e,t,n,{end:r}){let i,s=null;const u=e=>{if(e&&(i=e),s){const e=s;s=null,e()}},l=()=>new o(((e,t)=>{i?t(i):s=()=>{i?t(i):e()}}));t.on("drain",u);const c=a(t,{readable:!1},u);try{t.writableNeedDrain&&await l();for await(const n of e)t.write(n)||await l();r&&t.end(),await l(),n()}catch(e){n(i!==e?f(i,e):e)}finally{c(),t.off("drain",u)}}async function L(e,t,n,{end:r}){A(t)&&(t=t.writable);const i=t.getWriter();try{for await(const t of e)await i.ready,i.write(t).catch((()=>{}));await i.ready,r&&await i.close(),n()}catch(e){try{await i.abort(e),n(e)}catch(e){n(e)}}}function D(e,t,o){if(1===e.length&&i(e[0])&&(e=e[0]),e.length<2)throw new p("streams");const s=new x,a=s.signal,u=null==o?void 0:o.signal,l=[];function f(){U(new b)}let y,g;w(u,"options.signal"),null==u||u.addEventListener("abort",f);const m=[];let N,B=0;function D(e){U(e,0==--B)}function U(e,n){if(!e||y&&"ERR_STREAM_PREMATURE_CLOSE"!==y.code||(y=e),y||n){for(;m.length;)m.shift()(y);null==u||u.removeEventListener("abort",f),s.abort(),n&&(y||l.forEach((e=>e())),r.nextTick(t,y,g))}}for(let q=0;q<e.length;q++){const $=e[q],W=q<e.length-1,V=q>0,G=W||!1!==(null==o?void 0:o.end),Y=q===e.length-1;if(S($)){if(G){const{destroy:H,cleanup:K}=C($,W,V);m.push(H),v($)&&Y&&l.push(K)}function P(e){e&&"AbortError"!==e.name&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code&&D(e)}$.on("error",P),v($)&&Y&&l.push((()=>{$.removeListener("error",P)}))}if(0===q)if("function"==typeof $){if(N=$({signal:a}),!_(N))throw new h("Iterable, AsyncIterable or Stream","source",N)}else N=_($)||E($)||A($)?$:c.from($);else if("function"==typeof $){var j;if(N=A(N)?k(null===(j=N)||void 0===j?void 0:j.readable):k(N),N=$(N,{signal:a}),W){if(!_(N,!0))throw new h("AsyncIterable",`transform[${q-1}]`,N)}else{var F;R||(R=n(65));const J=new R({objectMode:!0}),z=null===(F=N)||void 0===F?void 0:F.then;if("function"==typeof z)B++,z.call(N,(e=>{g=e,null!=e&&J.write(e),G&&J.end(),r.nextTick(D)}),(e=>{J.destroy(e),r.nextTick(D,e)}));else if(_(N,!0))B++,O(N,J,D,{end:G});else{if(!I(N)&&!A(N))throw new h("AsyncIterable or Promise","destination",N);{const Z=N.readable||N;B++,O(Z,J,D,{end:G})}}N=J;const{destroy:Q,cleanup:X}=C(N,!1,!0);m.push(Q),Y&&l.push(X)}}else if(S($)){if(E(N)){B+=2;const ee=M(N,$,D,{end:G});v($)&&Y&&l.push(ee)}else if(A(N)||I(N)){const te=N.readable||N;B++,O(te,$,D,{end:G})}else{if(!_(N))throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],N);B++,O(N,$,D,{end:G})}N=$}else if(T($)){if(E(N))B++,L(k(N),$,D,{end:G});else if(I(N)||_(N))B++,L(N,$,D,{end:G});else{if(!A(N))throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],N);B++,L(N.readable,$,D,{end:G})}N=$}else N=c.from($)}return(null!=a&&a.aborted||null!=u&&u.aborted)&&r.nextTick(f),N}function M(e,t,n,{end:i}){let o=!1;if(t.on("close",(()=>{o||n(new g)})),e.pipe(t,{end:!1}),i){function s(){o=!0,t.end()}N(e)?r.nextTick(s):e.once("end",s)}else n();return a(e,{readable:!0,writable:!1},(t=>{const r=e._readableState;t&&"ERR_STREAM_PREMATURE_CLOSE"===t.code&&r&&r.ended&&!r.errored&&!r.errorEmitted?e.once("end",n).once("error",n):n(t)})),a(t,{readable:!1,writable:!0},n)}e.exports={pipelineImpl:D,pipeline:function(...e){return D(e,u(function(e){return m(e[e.length-1],"streams[stream.length - 1]"),e.pop()}(e)))}}},559:(e,t,n)=>{"use strict";function r(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;class i{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request(e,"query QueryAnnotations(\n $queryId: String!,\n $reference: SequenceReference!,\n $sources:[AnnotationReference!]!,\n $range:[Int!],\n $filters: [AnnotationFilterInput!]\n){\n annotations(\n queryId:$queryId\n reference:$reference\n sources:$sources\n range:$range\n filters:$filters\n ){\n source\n target_id\n target_identifiers{\n target_id\n entry_id\n assembly_id\n entity_id\n asym_id\n interface_id\n interface_partner_index\n }\n features {\n type\n provenance_source\n description\n feature_id\n name\n value\n feature_positions {\n beg_seq_id\n end_seq_id\n beg_ori_id\n end_ori_id\n range_id\n open_begin\n open_end\n value\n values\n }\n }\n }\n}")).annotations}catch(e){throw console.error(e),e}}))}}class o{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request(e,"query QueryGroupAnnotationsSummary(\n $group: GroupReference!,\n $groupId: String!,\n $sources: [AnnotationReference!]!,\n $filters: [AnnotationFilterInput!]\n){\n group_annotations_summary(\n group:$group\n groupId:$groupId\n sources:$sources\n filters:$filters\n ){\n source\n target_id\n features {\n type\n provenance_source\n description\n feature_id\n name\n value\n feature_positions {\n beg_seq_id\n end_seq_id\n beg_ori_id\n end_ori_id\n range_id\n open_begin\n open_end\n value\n values\n }\n }\n }\n}")).group_annotations_summary}catch(e){throw console.error(e),e}}))}}class s{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request(e,"query QueryGroupAnnotations(\n $group: GroupReference!,\n $groupId: String!,\n $sources: [AnnotationReference!]!,\n $filters: [AnnotationFilterInput!]\n){\n group_annotations(\n group:$group\n groupId:$groupId\n sources:$sources\n filters:$filters\n ){\n source\n target_id\n features {\n type\n provenance_source\n description\n feature_id\n name\n value\n feature_positions {\n beg_seq_id\n end_seq_id\n beg_ori_id\n end_ori_id\n range_id\n open_begin\n open_end\n value\n values\n }\n }\n }\n}")).group_annotations}catch(e){throw console.error(e),e}}))}}class a{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request({queryId:e.queryId,from:e.from,to:e.to,range:e.range},"query QueryAlignment($queryId: String!, $from: SequenceReference!, $to:SequenceReference!, $range:[Int!]){\n alignments(\n queryId:$queryId\n from:$from\n to:$to\n range:$range\n ){\n query_sequence\n target_alignments {\n target_id\n orientation\n target_sequence\n coverage {\n query_coverage\n query_length\n target_coverage\n target_length\n }\n aligned_regions {\n query_begin\n query_end\n target_begin\n target_end\n exon_shift\n }\n }\n\n }\n}")).alignments}catch(e){throw console.error(e),e}}))}}class u{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request({group:e.group,groupId:e.groupId,filter:e.filter,first:e.page.first,after:e.page.after},e.excludeLogo?"query QueryGroupAlignmentNoLogo(\n $group: GroupReference!,\n $groupId: String!,\n $filter: [String!],\n $first: Int!,\n $after: Int!){\n group_alignments(\n group: $group\n groupId: $groupId\n filter: $filter\n ){\n alignment_length\n query_sequence\n target_alignments(first: $first, offset: $after) {\n target_id\n orientation\n target_sequence\n coverage {\n query_coverage\n query_length\n target_coverage\n target_length\n }\n aligned_regions {\n query_begin\n query_end\n target_begin\n target_end\n exon_shift\n }\n }\n }\n}":"query QueryGroupAlignment(\n $group: GroupReference!,\n $groupId: String!,\n $filter: [String!],\n $first: Int,\n $after: Int\n){\n group_alignments(\n group: $group\n groupId: $groupId\n filter: $filter\n ){\n alignment_length\n alignment_logo {\n symbol\n value\n }\n query_sequence\n target_alignments(first: $first, offset: $after) {\n target_id\n orientation\n target_sequence\n coverage {\n query_coverage\n query_length\n target_coverage\n target_length\n }\n aligned_regions {\n query_begin\n query_end\n target_begin\n target_end\n exon_shift\n }\n }\n }\n}")).group_alignments}catch(e){throw console.error(e),e}}))}}class l{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request({entry_id:e.entry_id},"query QueryEntryInstance($entry_id: String!){\n entry(\n entry_id:$entry_id\n ){\n polymer_entities {\n polymer_entity_instances{\n rcsb_id\n polymer_entity{\n rcsb_polymer_entity{\n pdbx_description\n rcsb_polymer_name_combined{\n names\n }\n formula_weight\n }\n entity_poly{\n rcsb_entity_polymer_type\n rcsb_sample_sequence_length\n }\n rcsb_entity_source_organism {\n ncbi_scientific_name\n }\n entry {\n rcsb_entry_info{\n experimental_method\n resolution_combined\n molecular_weight\n structure_determination_methodology\n }\n }\n }\n rcsb_polymer_entity_instance_container_identifiers{\n asym_id\n auth_asym_id\n entry_id\n entity_id\n auth_to_entity_poly_seq_mapping\n }\n }\n }\n assemblies {\n rcsb_assembly_container_identifiers {\n assembly_id\n }\n pdbx_struct_assembly_gen{\n asym_id_list\n }\n\n }\n }\n}")).entry}catch(e){throw console.error(e),e}}))}}class c{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request({entity_ids:e.entity_ids},"query QueryMultipleEntityInstances($entity_ids: [String!]!){\n polymer_entities(\n entity_ids:$entity_ids\n ){\n polymer_entity_instances{\n rcsb_id\n polymer_entity{\n rcsb_polymer_entity{\n pdbx_description\n rcsb_polymer_name_combined{\n names\n }\n formula_weight\n }\n entity_poly{\n rcsb_entity_polymer_type\n rcsb_sample_sequence_length\n }\n rcsb_entity_source_organism {\n ncbi_scientific_name\n }\n entry {\n rcsb_entry_info{\n experimental_method\n resolution_combined\n structure_determination_methodology\n }\n }\n }\n rcsb_polymer_entity_instance_container_identifiers{\n asym_id\n auth_asym_id\n entry_id\n entity_id\n auth_to_entity_poly_seq_mapping\n }\n }\n }\n}")).polymer_entities}catch(e){throw console.error(e),e}}))}}class f{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request({group_id:e.group_id},"query QueryGroup($group_id: String!){\n polymer_entity_group(\n group_id:$group_id\n ){\n rcsb_id\n rcsb_group_info{\n group_name\n group_description\n group_members_granularity\n }\n rcsb_group_container_identifiers{\n group_member_ids\n }\n }\n}")).group}catch(e){throw console.error(e),e}}))}}class d{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request({entry_ids:e.entry_ids},"query multiple_entries_properties($entry_ids: [String!]!){\n entries(entry_ids:$entry_ids){\n rcsb_id\n polymer_entities {\n rcsb_id\n rcsb_entity_source_organism {\n ncbi_scientific_name\n }\n rcsb_polymer_entity_container_identifiers {\n entity_id\n rcsb_id\n }\n polymer_entity_instances {\n rcsb_polymer_entity_instance_container_identifiers {\n asym_id\n }\n rcsb_id\n }\n entity_poly {\n rcsb_prd_id\n }\n }\n nonpolymer_entities {\n rcsb_id\n rcsb_nonpolymer_entity_container_identifiers {\n entity_id\n rcsb_id\n }\n nonpolymer_entity_instances {\n rcsb_nonpolymer_entity_instance_container_identifiers {\n asym_id\n }\n rcsb_id\n }\n }\n rcsb_entry_info{\n experimental_method\n resolution_combined\n molecular_weight\n structure_determination_methodology\n }\n struct {\n title\n }\n assemblies {\n rcsb_id\n pdbx_struct_assembly_gen {\n oper_expression\n asym_id_list\n }\n }\n }\n}")).entries}catch(e){throw console.error(e),e}}))}}class h{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request(e,"query QueryInterfaceInstance($interface_ids: [String!]!){\n interfaces(\n interface_ids:$interface_ids\n ){\n rcsb_interface_container_identifiers{\n rcsb_id\n interface_id\n assembly_id\n entry_id\n }\n rcsb_interface_partner{\n interface_partner_identifier{\n asym_id\n }\n }\n rcsb_interface_operator\n }\n}")).interfaces}catch(e){throw console.error(e),e}}))}}class p{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request(e,"query QueryAssemblyInterfaces($assembly_ids: [String!]!){\n assemblies(\n assembly_ids: $assembly_ids\n ){\n rcsb_id\n interfaces{\n rcsb_id\n }\n }\n}\n")).assemblies}catch(e){throw console.error(e),e}}))}}class y extends Error{response;request;constructor(e,t){super(`${y.extractMessage(e)}: ${JSON.stringify({response:e,request:t})}`),Object.setPrototypeOf(this,y.prototype),this.response=e,this.request=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,y)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${String(e.status)})`}}const g=e=>e.toUpperCase(),b=e=>"function"==typeof e?e():e,m=(e,t)=>e.map(((e,n)=>[e,t[n]])),w=e=>{let t={};return e instanceof Headers?t=_(e):Array.isArray(e)?e.forEach((([e,n])=>{e&&void 0!==n&&(t[e]=n)})):e&&(t=e),t},_=e=>{const t={};return e.forEach(((e,n)=>{t[n]=e})),t},v=e=>e instanceof Error?e:new Error(String(e)),E=e=>{throw new Error(`Unhandled case: ${String(e)}`)},S=e=>"object"==typeof e&&null!==e&&!Array.isArray(e);var A,T;(T=A||(A={})).NAME="Name",T.DOCUMENT="Document",T.OPERATION_DEFINITION="OperationDefinition",T.VARIABLE_DEFINITION="VariableDefinition",T.SELECTION_SET="SelectionSet",T.FIELD="Field",T.ARGUMENT="Argument",T.FRAGMENT_SPREAD="FragmentSpread",T.INLINE_FRAGMENT="InlineFragment",T.FRAGMENT_DEFINITION="FragmentDefinition",T.VARIABLE="Variable",T.INT="IntValue",T.FLOAT="FloatValue",T.STRING="StringValue",T.BOOLEAN="BooleanValue",T.NULL="NullValue",T.ENUM="EnumValue",T.LIST="ListValue",T.OBJECT="ObjectValue",T.OBJECT_FIELD="ObjectField",T.DIRECTIVE="Directive",T.NAMED_TYPE="NamedType",T.LIST_TYPE="ListType",T.NON_NULL_TYPE="NonNullType",T.SCHEMA_DEFINITION="SchemaDefinition",T.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",T.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",T.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",T.FIELD_DEFINITION="FieldDefinition",T.INPUT_VALUE_DEFINITION="InputValueDefinition",T.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",T.UNION_TYPE_DEFINITION="UnionTypeDefinition",T.ENUM_TYPE_DEFINITION="EnumTypeDefinition",T.ENUM_VALUE_DEFINITION="EnumValueDefinition",T.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",T.DIRECTIVE_DEFINITION="DirectiveDefinition",T.SCHEMA_EXTENSION="SchemaExtension",T.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",T.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",T.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",T.UNION_TYPE_EXTENSION="UnionTypeExtension",T.ENUM_TYPE_EXTENSION="EnumTypeExtension",T.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension";const I="Accept",N="Content-Type",x="application/json",R="application/graphql-response+json",B=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),C=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(k)};if(S(e))return{_tag:"Single",executionResult:k(e)};throw new Error(`Invalid execution result: result is not object or array. \nGot:\n${String(e)}`)}catch(e){return e}},k=e=>{if("object"!=typeof e||null===e)throw new Error("Invalid execution result: result is not object");let t,n,r;if("errors"in e){if(!S(e.errors)&&!Array.isArray(e.errors))throw new Error("Invalid execution result: errors is not plain object OR array");t=e.errors}if("data"in e){if(!S(e.data)&&null!==e.data)throw new Error("Invalid execution result: data is not plain object");n=e.data}if("extensions"in e){if(!S(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");r=e.extensions}return{data:n,errors:t,extensions:r}},O=e=>Array.isArray(e.errors)?e.errors.length>0:Boolean(e.errors),L=e=>"object"==typeof e&&null!==e&&"kind"in e&&e.kind===A.OPERATION_DEFINITION;class D{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class M{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const U={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},P=new Set(Object.keys(U));function j(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&P.has(t)}var F;function q(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(F||(F={}));const $=/\r\n|[\n\r]/g;function W(e,t){let n=0,r=1;for(const i of e.body.matchAll($)){if("number"==typeof i.index||q(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function V(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=1===t.line?n:0,u=t.column+a,l=`${e.name}:${s}:${u}\n`,c=r.split(/\r\n|[\n\r]/g),f=c[i];if(f.length>120){const e=Math.floor(u/80),t=u%80,n=[];for(let e=0;e<f.length;e+=80)n.push(f.slice(e,e+80));return l+G([[`${s} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return l+G([[s-1+" |",c[i-1]],[`${s} |`,f],["|","^".padStart(u)],[`${s+1} |`,c[i+1]]])}function G(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class Y extends Error{constructor(e,...t){var n,r,i;const{nodes:o,source:s,positions:a,path:u,originalError:l,extensions:c}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=l?l:void 0,this.nodes=H(Array.isArray(o)?o:o?[o]:void 0);const f=H(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=s?s:null==f||null===(r=f[0])||void 0===r?void 0:r.source,this.positions=null!=a?a:null==f?void 0:f.map((e=>e.start)),this.locations=a&&s?a.map((e=>W(s,e))):null==f?void 0:f.map((e=>W(e.source,e.start)));const d="object"==typeof(h=null==l?void 0:l.extensions)&&null!==h?null==l?void 0:l.extensions:void 0;var h;this.extensions=null!==(i=null!=c?c:d)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=l&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Y):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+="\n\n"+V((t=n.loc).source,W(t.source,t.start)));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+V(this.source,t);var t;return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function H(e){return void 0===e||0===e.length?void 0:e}function K(e,t,n){return new Y(`Syntax Error: ${n}`,{source:e,positions:[t]})}var J,z,Q;function X(e){return 9===e||32===e}function Z(e){return e>=48&&e<=57}function ee(e){return e>=97&&e<=122||e>=65&&e<=90}function te(e){return ee(e)||95===e}function ne(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let t=0;t<e.length;++t){var o;const s=e[t],a=re(s);a!==s.length&&(r=null!==(o=r)&&void 0!==o?o:t,i=t,0!==t&&a<n&&(n=a))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function re(e){let t=0;for(;t<e.length&&X(e.charCodeAt(t));)++t;return t}!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(J||(J={})),(Q=z||(z={})).SOF="<SOF>",Q.EOF="<EOF>",Q.BANG="!",Q.DOLLAR="$",Q.AMP="&",Q.PAREN_L="(",Q.PAREN_R=")",Q.SPREAD="...",Q.COLON=":",Q.EQUALS="=",Q.AT="@",Q.BRACKET_L="[",Q.BRACKET_R="]",Q.BRACE_L="{",Q.PIPE="|",Q.BRACE_R="}",Q.NAME="Name",Q.INT="Int",Q.FLOAT="Float",Q.STRING="String",Q.BLOCK_STRING="BlockString",Q.COMMENT="Comment";class ie{constructor(e){const t=new M(z.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==z.EOF)do{if(e.next)e=e.next;else{const t=fe(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===z.COMMENT);return e}}function oe(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function se(e,t){return ae(e.charCodeAt(t))&&ue(e.charCodeAt(t+1))}function ae(e){return e>=55296&&e<=56319}function ue(e){return e>=56320&&e<=57343}function le(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return z.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function ce(e,t,n,r,i){const o=e.line,s=1+n-e.lineStart;return new M(t,n,r,o,s,i)}function fe(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return de(e,i);case 33:return ce(e,z.BANG,i,i+1);case 36:return ce(e,z.DOLLAR,i,i+1);case 38:return ce(e,z.AMP,i,i+1);case 40:return ce(e,z.PAREN_L,i,i+1);case 41:return ce(e,z.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return ce(e,z.SPREAD,i,i+3);break;case 58:return ce(e,z.COLON,i,i+1);case 61:return ce(e,z.EQUALS,i,i+1);case 64:return ce(e,z.AT,i,i+1);case 91:return ce(e,z.BRACKET_L,i,i+1);case 93:return ce(e,z.BRACKET_R,i,i+1);case 123:return ce(e,z.BRACE_L,i,i+1);case 124:return ce(e,z.PIPE,i,i+1);case 125:return ce(e,z.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?ve(e,i):ye(e,i)}if(Z(t)||45===t)return he(e,i,t);if(te(t))return Ee(e,i);throw K(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":oe(t)||se(n,i)?`Unexpected character: ${le(e,i)}.`:`Invalid character: ${le(e,i)}.`)}return ce(e,z.EOF,r,r)}function de(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(oe(e))++i;else{if(!se(n,i))break;i+=2}}return ce(e,z.COMMENT,t,i,n.slice(t+1,i))}function he(e,t,n){const r=e.source.body;let i=t,o=n,s=!1;if(45===o&&(o=r.charCodeAt(++i)),48===o){if(o=r.charCodeAt(++i),Z(o))throw K(e.source,i,`Invalid number, unexpected digit after 0: ${le(e,i)}.`)}else i=pe(e,i,o),o=r.charCodeAt(i);if(46===o&&(s=!0,o=r.charCodeAt(++i),i=pe(e,i,o),o=r.charCodeAt(i)),69!==o&&101!==o||(s=!0,o=r.charCodeAt(++i),43!==o&&45!==o||(o=r.charCodeAt(++i)),i=pe(e,i,o),o=r.charCodeAt(i)),46===o||te(o))throw K(e.source,i,`Invalid number, expected digit but got: ${le(e,i)}.`);return ce(e,s?z.FLOAT:z.INT,t,i,r.slice(t,i))}function pe(e,t,n){if(!Z(n))throw K(e.source,t,`Invalid number, expected digit but got: ${le(e,t)}.`);const r=e.source.body;let i=t+1;for(;Z(r.charCodeAt(i));)++i;return i}function ye(e,t){const n=e.source.body,r=n.length;let i=t+1,o=i,s="";for(;i<r;){const r=n.charCodeAt(i);if(34===r)return s+=n.slice(o,i),ce(e,z.STRING,t,i+1,s);if(92!==r){if(10===r||13===r)break;if(oe(r))++i;else{if(!se(n,i))throw K(e.source,i,`Invalid character within String: ${le(e,i)}.`);i+=2}}else{s+=n.slice(o,i);const t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?ge(e,i):be(e,i):_e(e,i);s+=t.value,i+=t.size,o=i}}throw K(e.source,i,"Unterminated string.")}function ge(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const e=n.charCodeAt(t+i++);if(125===e){if(i<5||!oe(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|we(e),r<0)break}throw K(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function be(e,t){const n=e.source.body,r=me(n,t+2);if(oe(r))return{value:String.fromCodePoint(r),size:6};if(ae(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=me(n,t+8);if(ue(e))return{value:String.fromCodePoint(r,e),size:12}}throw K(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function me(e,t){return we(e.charCodeAt(t))<<12|we(e.charCodeAt(t+1))<<8|we(e.charCodeAt(t+2))<<4|we(e.charCodeAt(t+3))}function we(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function _e(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw K(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function ve(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,s=o,a="";const u=[];for(;o<r;){const r=n.charCodeAt(o);if(34===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)){a+=n.slice(s,o),u.push(a);const r=ce(e,z.BLOCK_STRING,t,o+3,ne(u).join("\n"));return e.line+=u.length-1,e.lineStart=i,r}if(92!==r||34!==n.charCodeAt(o+1)||34!==n.charCodeAt(o+2)||34!==n.charCodeAt(o+3))if(10!==r&&13!==r)if(oe(r))++o;else{if(!se(n,o))throw K(e.source,o,`Invalid character within String: ${le(e,o)}.`);o+=2}else a+=n.slice(s,o),u.push(a),13===r&&10===n.charCodeAt(o+1)?o+=2:++o,a="",s=o,i=o;else a+=n.slice(s,o),s=o+1,o+=4}throw K(e.source,o,"Unterminated string.")}function Ee(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r&&(ee(o=n.charCodeAt(i))||Z(o)||95===o);)++i;var o;return ce(e,z.NAME,t,i,n.slice(t,i))}function Se(e,t){if(!Boolean(e))throw new Error(t)}function Ae(e){return Te(e,[])}function Te(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:Te(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,i=[];for(let r=0;r<n;++r)i.push(Te(e[r],t));return 1===r?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map((([e,n])=>e+": "+Te(n,t)));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const Ie=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=Ae(e);throw new Error(`Cannot use ${r} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class Ne{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||Se(!1,`Body must be a string. Received: ${Ae(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Se(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Se(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class xe{constructor(e,t={}){const n=function(e){return Ie(e,Ne)}(e)?e:new Ne(e);this._lexer=new ie(n),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(z.NAME);return this.node(e,{kind:A.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:A.DOCUMENT,definitions:this.many(z.SOF,this.parseDefinition,z.EOF)})}parseDefinition(){if(this.peek(z.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===z.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw K(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(z.BRACE_L))return this.node(e,{kind:A.OPERATION_DEFINITION,operation:F.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(z.NAME)&&(n=this.parseName()),this.node(e,{kind:A.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(z.NAME);switch(e.value){case"query":return F.QUERY;case"mutation":return F.MUTATION;case"subscription":return F.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(z.PAREN_L,this.parseVariableDefinition,z.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:A.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(z.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(z.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(z.DOLLAR),this.node(e,{kind:A.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:A.SELECTION_SET,selections:this.many(z.BRACE_L,this.parseSelection,z.BRACE_R)})}parseSelection(){return this.peek(z.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(z.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:A.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(z.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(z.PAREN_L,t,z.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(z.COLON),this.node(t,{kind:A.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(z.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(z.NAME)?this.node(e,{kind:A.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:A.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:A.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:A.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case z.BRACKET_L:return this.parseList(e);case z.BRACE_L:return this.parseObject(e);case z.INT:return this.advanceLexer(),this.node(t,{kind:A.INT,value:t.value});case z.FLOAT:return this.advanceLexer(),this.node(t,{kind:A.FLOAT,value:t.value});case z.STRING:case z.BLOCK_STRING:return this.parseStringLiteral();case z.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:A.BOOLEAN,value:!0});case"false":return this.node(t,{kind:A.BOOLEAN,value:!1});case"null":return this.node(t,{kind:A.NULL});default:return this.node(t,{kind:A.ENUM,value:t.value})}case z.DOLLAR:if(e){if(this.expectToken(z.DOLLAR),this._lexer.token.kind===z.NAME){const e=this._lexer.token.value;throw K(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:A.STRING,value:e.value,block:e.kind===z.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:A.LIST,values:this.any(z.BRACKET_L,(()=>this.parseValueLiteral(e)),z.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:A.OBJECT,fields:this.any(z.BRACE_L,(()=>this.parseObjectField(e)),z.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(z.COLON),this.node(t,{kind:A.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(z.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(z.AT),this.node(t,{kind:A.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(z.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(z.BRACKET_R),t=this.node(e,{kind:A.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(z.BANG)?this.node(e,{kind:A.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:A.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(z.STRING)||this.peek(z.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(z.BRACE_L,this.parseOperationTypeDefinition,z.BRACE_R);return this.node(e,{kind:A.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(z.COLON);const n=this.parseNamedType();return this.node(e,{kind:A.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:A.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:A.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(z.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(z.BRACE_L,this.parseFieldDefinition,z.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(z.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:A.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(z.PAREN_L,this.parseInputValueDef,z.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(z.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(z.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:A.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:A.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:A.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(z.EQUALS)?this.delimitedMany(z.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:A.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(z.BRACE_L,this.parseEnumValueDefinition,z.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:A.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw K(this._lexer.source,this._lexer.token.start,`${Re(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:A.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(z.BRACE_L,this.parseInputValueDef,z.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===z.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(z.BRACE_L,this.parseOperationTypeDefinition,z.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:A.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:A.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:A.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:A.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:A.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:A.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:A.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(z.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:A.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(z.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(J,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new D(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw K(this._lexer.source,t.start,`Expected ${Be(e)}, found ${Re(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==z.NAME||t.value!==e)throw K(this._lexer.source,t.start,`Expected "${e}", found ${Re(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===z.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return K(this._lexer.source,t.start,`Unexpected ${Re(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==z.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw K(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function Re(e){const t=e.value;return Be(e.kind)+(null!=t?` "${t}"`:"")}function Be(e){return function(e){return e===z.BANG||e===z.DOLLAR||e===z.AMP||e===z.PAREN_L||e===z.PAREN_R||e===z.SPREAD||e===z.COLON||e===z.EQUALS||e===z.AT||e===z.BRACKET_L||e===z.BRACKET_R||e===z.BRACE_L||e===z.PIPE||e===z.BRACE_R}(e)?`"${e}"`:e}const Ce=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function ke(e){return Oe[e.charCodeAt(0)]}const Oe=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Le=Object.freeze({});function De(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}const Me={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Ue(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=je("(",Ue(e.variableDefinitions,", "),")"),n=Ue([e.operation,Ue([e.name,t]),Ue(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+je(" = ",n)+je(" ",Ue(r," "))},SelectionSet:{leave:({selections:e})=>Pe(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=je("",e,": ")+t;let s=o+je("(",Ue(n,", "),")");return s.length>80&&(s=o+je("(\n",Fe(Ue(n,"\n")),"\n)")),Ue([s,Ue(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+je(" ",Ue(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Ue(["...",je("on ",e),Ue(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${je("(",Ue(n,", "),")")} on ${t} ${je("",Ue(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e){const t=e.replace(/"""/g,'\\"""'),n=t.split(/\r\n|[\n\r]/g),r=1===n.length,i=n.length>1&&n.slice(1).every((e=>0===e.length||X(e.charCodeAt(0)))),o=t.endsWith('\\"""'),s=e.endsWith('"')&&!o,a=e.endsWith("\\"),u=s||a,l=!r||e.length>70||u||i||o;let c="";const f=r&&X(e.charCodeAt(0));return(l&&!f||i)&&(c+="\n"),c+=t,(l||u)&&(c+="\n"),'"""'+c+'"""'}(e):`"${e.replace(Ce,ke)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Ue(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Ue(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+je("(",Ue(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>je("",e,"\n")+Ue(["schema",Ue(t," "),Pe(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>je("",e,"\n")+Ue(["scalar",t,Ue(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>je("",e,"\n")+Ue(["type",t,je("implements ",Ue(n," & ")),Ue(r," "),Pe(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>je("",e,"\n")+t+(qe(n)?je("(\n",Fe(Ue(n,"\n")),"\n)"):je("(",Ue(n,", "),")"))+": "+r+je(" ",Ue(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>je("",e,"\n")+Ue([t+": "+n,je("= ",r),Ue(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>je("",e,"\n")+Ue(["interface",t,je("implements ",Ue(n," & ")),Ue(r," "),Pe(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>je("",e,"\n")+Ue(["union",t,Ue(n," "),je("= ",Ue(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>je("",e,"\n")+Ue(["enum",t,Ue(n," "),Pe(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>je("",e,"\n")+Ue([t,Ue(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>je("",e,"\n")+Ue(["input",t,Ue(n," "),Pe(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>je("",e,"\n")+"directive @"+t+(qe(n)?je("(\n",Fe(Ue(n,"\n")),"\n)"):je("(",Ue(n,", "),")"))+(r?" repeatable":"")+" on "+Ue(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Ue(["extend schema",Ue(e," "),Pe(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Ue(["extend scalar",e,Ue(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ue(["extend type",e,je("implements ",Ue(t," & ")),Ue(n," "),Pe(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ue(["extend interface",e,je("implements ",Ue(t," & ")),Ue(n," "),Pe(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Ue(["extend union",e,Ue(t," "),je("= ",Ue(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Ue(["extend enum",e,Ue(t," "),Pe(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Ue(["extend input",e,Ue(t," "),Pe(n)]," ")}};function Ue(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function Pe(e){return je("{\n",Fe(Ue(e,"\n")),"\n}")}function je(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Fe(e){return je(" ",e.replace(/\n/g,"\n "))}function qe(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}const $e=(e,t)=>{const n="string"==typeof e?e:function(e,t,n=U){const r=new Map;for(const e of Object.values(A))r.set(e,De(t,e));let i,o,s,a=Array.isArray(e),u=[e],l=-1,c=[],f=e;const d=[],h=[];do{l++;const e=l===u.length,b=e&&0!==c.length;if(e){if(o=0===h.length?void 0:d[d.length-1],f=s,s=h.pop(),b)if(a){f=f.slice();let e=0;for(const[t,n]of c){const r=t-e;null===n?(f.splice(r,1),e++):f[r]=n}}else{f=Object.defineProperties({},Object.getOwnPropertyDescriptors(f));for(const[e,t]of c)f[e]=t}l=i.index,u=i.keys,c=i.edits,a=i.inArray,i=i.prev}else if(s){if(o=a?l:u[l],f=s[o],null==f)continue;d.push(o)}let m;if(!Array.isArray(f)){var p,y;j(f)||Se(!1,`Invalid AST Node: ${Ae(f)}.`);const n=e?null===(p=r.get(f.kind))||void 0===p?void 0:p.leave:null===(y=r.get(f.kind))||void 0===y?void 0:y.enter;if(m=null==n?void 0:n.call(t,f,o,s,d,h),m===Le)break;if(!1===m){if(!e){d.pop();continue}}else if(void 0!==m&&(c.push([o,m]),!e)){if(!j(m)){d.pop();continue}f=m}}var g;void 0===m&&b&&c.push([o,f]),e?d.pop():(i={inArray:a,index:l,keys:u,edits:c,prev:i},a=Array.isArray(f),u=a?f:null!==(g=n[f.kind])&&void 0!==g?g:[],l=-1,c=[],s&&h.push(s),s=f)}while(void 0!==i);return 0!==c.length?c[c.length-1][1]:e}(e,Me);let r,i=!1;if(t)return{expression:n,isMutation:i,operationName:r};const o=(()=>{try{const n="string"==typeof e?function(e){const t=new xe(e,void 0),n=t.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:t.tokenCount}),n}(e):e;return"object"==typeof(t=n)&&null!==t&&"then"in t&&"function"==typeof t.then&&"catch"in t&&"function"==typeof t.catch&&"finally"in t&&"function"==typeof t.finally?n.catch((e=>v(e))):n}catch(e){return v(e)}var t})();return o instanceof Error?{expression:n,isMutation:i,operationName:r}:(r=(e=>{let t;const n=e.definitions.filter(L);return 1===n.length&&(t=n[0].name?.value),t})(o),i=(e=>{let t=!1;const n=e.definitions.filter(L);return 1===n.length&&(t=n[0].operation===F.MUTATION),t})(o),{expression:n,operationName:r,isMutation:i})},We=JSON,Ve=async e=>{const t={...e,method:"Single"===e.request._tag?e.request.document.isMutation?"POST":g(e.method??"post"):e.request.hasMutations?"POST":g(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},n=He(t.method),r=await n(t);if(!r.ok)return new y({status:r.status,headers:r.headers},{query:"Single"===e.request._tag?e.request.document.expression:e.request.query,variables:e.request.variables});const i=await Ye(r,e.fetchOptions.jsonSerializer??We);if(i instanceof Error)throw i;const o={status:r.status,headers:r.headers};if((e=>"Batch"===e._tag?e.executionResults.some(O):O(e.executionResult))(i)&&"none"===t.fetchOptions.errorPolicy){const t="Batch"===i._tag?{...i.executionResults,...o}:{...i.executionResult,...o};return new y(t,{query:"Single"===e.request._tag?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(i._tag){case"Single":return{...o,...Ge(t)(i.executionResult)};case"Batch":return{...o,data:i.executionResults.map(Ge(t))};default:E(i)}},Ge=e=>t=>({extensions:t.extensions,data:t.data,errors:"all"===e.fetchOptions.errorPolicy?t.errors:void 0}),Ye=async(e,t)=>{const n=e.headers.get(N),r=await e.text();return n&&(e=>{const t=e.toLowerCase();return t.includes(R)||t.includes(x)})(n)?C(t.parse(r)):C(r)},He=e=>async t=>{const n=new Headers(t.headers);let r,i=null;n.has(I)||n.set(I,[R,x].join(", ")),"POST"===e?(r=(t.fetchOptions.jsonSerializer??We).stringify(Ke(t)),"string"!=typeof r||n.has(N)||n.set(N,x)):i=Je(t);const o={method:e,headers:n,body:r,...t.fetchOptions};let s=new URL(t.url),a=o;if(t.middleware){const e=await Promise.resolve(t.middleware({...o,url:t.url,operationName:"Single"===t.request._tag?t.request.document.operationName:void 0,variables:t.request.variables})),{url:n,...r}=e;s=new URL(n),a=r}i&&i.forEach(((e,t)=>{s.searchParams.append(t,e)}));const u=t.fetch??fetch;return await u(s,a)},Ke=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":return m(e.request.query,e.request.variables??[]).map((([e,t])=>({query:e,variables:t})));default:throw E(e.request)}},Je=e=>{const t=e.fetchOptions.jsonSerializer??We,n=new URLSearchParams;switch(e.request._tag){case"Single":return n.append("query",B(e.request.document.expression)),e.request.variables&&n.append("variables",t.stringify(e.request.variables)),e.request.document.operationName&&n.append("operationName",e.request.document.operationName),n;case"Batch":{const r=e.request.variables?.map((e=>t.stringify(e)))??[],i=e.request.query.map(B),o=m(i,r).map((([e,t])=>({query:e,variables:t})));return n.append("query",t.stringify(o)),n}default:throw E(e.request)}};class ze{url;requestConfig;constructor(e,t={}){this.url=e,this.requestConfig=t}rawRequest=async(...e)=>{const[t,n,r]=e,i=((e,t,n)=>e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0})(t,n,r),{headers:o,fetch:s=globalThis.fetch,method:a="POST",requestMiddleware:u,responseMiddleware:l,excludeOperationName:c,...f}=this.requestConfig,{url:d}=this;void 0!==i.signal&&(f.signal=i.signal);const h=$e(i.query,c),p=await Ve({url:d,request:{_tag:"Single",document:h,variables:i.variables},headers:{...w(b(o)),...w(i.requestHeaders)},fetch:s,method:a,fetchOptions:f,middleware:u});if(l&&await l(p,{operationName:h.operationName,variables:n,url:this.url}),p instanceof Error)throw p;return p};async request(e,...t){const[n,r]=t,i=Qe(e,n,r),{headers:o,fetch:s=globalThis.fetch,method:a="POST",requestMiddleware:u,responseMiddleware:l,excludeOperationName:c,...f}=this.requestConfig,{url:d}=this;void 0!==i.signal&&(f.signal=i.signal);const h=$e(i.document,c),p=await Ve({url:d,request:{_tag:"Single",document:h,variables:i.variables},headers:{...w(b(o)),...w(i.requestHeaders)},fetch:s,method:a,fetchOptions:f,middleware:u});if(l&&await l(p,{operationName:h.operationName,variables:i.variables,url:this.url}),p instanceof Error)throw p;return p.data}async batchRequests(e,t){const n=((e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0})(e,t),{headers:r,excludeOperationName:i,...o}=this.requestConfig;void 0!==n.signal&&(o.signal=n.signal);const s=n.documents.map((({document:e})=>$e(e,i))),a=s.map((({expression:e})=>e)),u=s.some((({isMutation:e})=>e)),l=n.documents.map((({variables:e})=>e)),c=await Ve({url:this.url,request:{_tag:"Batch",operationName:void 0,query:a,hasMutations:u,variables:l},headers:{...w(b(r)),...w(n.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:o,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(c,{operationName:void 0,variables:l,url:this.url}),c instanceof Error)throw c;return c.data}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,t){const{headers:n}=this.requestConfig;return n?n[e]=t:this.requestConfig.headers={[e]:t},this}setEndpoint(e){return this.url=e,this}}const Qe=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0},Xe=JSON.parse('{"wQ":"https://sequence-coordinates.rcsb.org/graphql"}'),Ze=JSON.parse('{"wQ":"https://data.rcsb.org/graphql"}');var et,tt=n(802),nt=n(474);class rt{static getItem(e){if(!rt.storage)return null;const t=rt.collect(e);return t?Date.now()-t.timestamp>rt.EXPIRATION_TIME?null:t.data:null}static setItem(e,t){if(rt.storage)try{rt.store(e,t)}catch(n){console.warn("Local storage failed: Cleaning and trying again.");try{rt.storage.clear(),rt.store(e,t)}catch(e){console.error("Local storage second failed: No more attempts.")}}}static store(e,t){var n;const r=rt.objToKey(e),i=(0,nt.compress)(JSON.stringify({data:t,timestamp:Date.now()}),{inputEncoding:"String",outputEncoding:"StorageBinaryString"});null===(n=rt.storage)||void 0===n||n.setItem(r,i)}static collect(e){var t;const n=rt.objToKey(e),r=null===(t=rt.storage)||void 0===t?void 0:t.getItem(n);return r?JSON.parse((0,nt.decompress)(r,{inputEncoding:"StorageBinaryString",outputEncoding:"String"})):null}static objToKey(e){if(!e)throw new Error("Object is undefined");return(0,tt.sha1)(e)}}rt.storage=null!==(et=globalThis.localStorage)&&void 0!==et?et:null,rt.EXPIRATION_TIME=36e5;class it{constructor(e,t){switch(e){case"data-api":this.client=new ze(Ze.wQ,t);break;case"sequence-coordinates":case"1d-coordinates":this.client=new ze(Xe.wQ,t);break;default:this.client=new ze(e,t)}}request(e,t,n){return r(this,void 0,void 0,(function*(){const r=rt.getItem({query:t,requestConfig:e});if(r)return r;try{const r=yield this.client.request(t,e,n);return rt.setItem({query:t,requestConfig:e},r),r}catch(e){throw console.error(e),e}}))}}const ot=JSON.parse('{"H":"https://search.rcsb.org/rcsbsearch/v2/query"}'),st={borrego:new it("1d-coordinates"),yosemite:new it("data-api"),arches:new class{constructor(e,t,n){var r,i;if(this.uri=null!=e?e:ot.H,this.requestConfig=null!=n?n:{},this.fetch="function"==typeof t?t:null!==(i=null===(r=globalThis.window)||void 0===r?void 0:r.fetch)&&void 0!==i?i:fetch,!this.fetch)throw"ERROR: fetch function was not provided"}request(e){return r(this,arguments,void 0,(function*(e,t={}){var n,r;const i=rt.getItem(e);if(i)return i;const o=yield(null!==(r=null===(n=globalThis.window)||void 0===n?void 0:n.fetch)&&void 0!==r?r:this.fetch)(this.uri,Object.assign(Object.assign({},this.requestConfig),{method:"POST",body:JSON.stringify(e),headers:Object.assign(Object.assign(Object.assign({},this.requestConfig.headers),t),{"Content-Type":"application/json"})}));try{const t=yield o.json();return rt.setItem(e,t),t}catch(e){return console.error(e),console.error(o),null}}))}}};class at{constructor(e){this.getClient=e}request(e){return r(this,void 0,void 0,(function*(){try{return(yield this.getClient().request({instance_ids:e.instance_ids},"\nquery multiple_instance_sequences($instance_ids: [String!]!){\n polymer_entity_instances(instance_ids:$instance_ids){\n rcsb_id\n polymer_entity{\n entity_poly{\n pdbx_seq_one_letter_code_can\n }\n }\n }\n}")).polymer_entity_instances}catch(e){throw console.error(e),new Error(e)}}))}}const ut=new class{constructor(e){this.rcsbQueryAnnotations=new i(e.borrego),this.rcsbQueryGroupAnnotationsSummary=new o(e.borrego),this.rcsbQueryGroupAnnotations=new s(e.borrego),this.rcsbQueryAlignment=new a(e.borrego),this.rcsbQueryGroupAlignment=new u(e.borrego),this.rcsbQueryEntityInstances=new l(e.yosemite),this.rcsbQueryMutipleEntityInstances=new c(e.yosemite),this.rcsbQueryEntryProperties=new d(e.yosemite),this.rcsbQueryInterfaceInstances=new h(e.yosemite),this.rcsbQueryAssemblyInterfaces=new p(e.yosemite),this.rcsbQueryGroup=new f(e.yosemite),this.rcsbQueryMultipleInstanceSequences=new at(e.yosemite)}requestRcsbPdbAnnotations(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryAnnotations.request(e)}))}requestRcsbPdbGroupAnnotationsSummary(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryGroupAnnotationsSummary.request(e)}))}requestRcsbPdbGroupAnnotations(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryGroupAnnotations.request(e)}))}requestAlignment(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryAlignment.request(e)}))}requestGroupAlignment(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryGroupAlignment.request(e)}))}requestEntityInstances(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryEntityInstances.request(e)}))}requestMultipleEntityInstances(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryMutipleEntityInstances.request(e)}))}requestGroupInfo(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryGroup.request(e)}))}requestMultipleEntriesProperties(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryEntryProperties.request(e)}))}requestInterfaceInstances(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryInterfaceInstances.request(e)}))}requestAssemblyInterfaces(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryAssemblyInterfaces.request(e)}))}requestMultipleInstanceSequences(e){return r(this,void 0,void 0,(function*(){return yield this.rcsbQueryMultipleInstanceSequences.request(e)}))}}({borrego:()=>st.borrego,yosemite:()=>st.yosemite});self.onmessage=function(e){const t=e.data;ut.requestAlignment(t).then((e=>{postMessage(e)}))}},568:e=>{"use strict";const{AbortController:t,AbortSignal:n}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=t,e.exports.AbortSignal=n,e.exports.default=t},588:(e,t,n)=>{const r=n(606),{ArrayPrototypeSlice:i,Error:o,FunctionPrototypeSymbolHasInstance:s,ObjectDefineProperty:a,ObjectDefineProperties:u,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:c,Symbol:f,SymbolHasInstance:d}=n(475);e.exports=L,L.WritableState=k;const{EventEmitter:h}=n(7),p=n(236).Stream,{Buffer:y}=n(287),g=n(261),{addAbortSignal:b}=n(792),{getHighWaterMark:m,getDefaultHighWaterMark:w}=n(646),{ERR_INVALID_ARG_TYPE:_,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:E,ERR_STREAM_CANNOT_PIPE:S,ERR_STREAM_DESTROYED:A,ERR_STREAM_ALREADY_FINISHED:T,ERR_STREAM_NULL_VALUES:I,ERR_STREAM_WRITE_AFTER_END:N,ERR_UNKNOWN_ENCODING:x}=n(760).codes,{errorOrDestroy:R}=g;function B(){}l(L.prototype,p.prototype),l(L,p);const C=f("kOnFinished");function k(e,t,r){"boolean"!=typeof r&&(r=t instanceof n(749)),this.objectMode=!(!e||!e.objectMode),r&&(this.objectMode=this.objectMode||!(!e||!e.writableObjectMode)),this.highWaterMark=e?m(this,e,"writableHighWaterMark",r):w(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const i=!(!e||!1!==e.decodeStrings);this.decodeStrings=!i,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=P.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,O(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[C]=[]}function O(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function L(e){const t=this instanceof n(749);if(!t&&!s(L,this))return new L(e);this._writableState=new k(e,this,t),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),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&b(e.signal,this)),p.call(this,e),g.construct(this,(()=>{const e=this._writableState;e.writing||$(this,e),V(this,e)}))}function D(e,t,n,i){const o=e._writableState;if("function"==typeof n)i=n,n=o.defaultEncoding;else{if(n){if("buffer"!==n&&!y.isEncoding(n))throw new x(n)}else n=o.defaultEncoding;"function"!=typeof i&&(i=B)}if(null===t)throw new I;if(!o.objectMode)if("string"==typeof t)!1!==o.decodeStrings&&(t=y.from(t,n),n="buffer");else if(t instanceof y)n="buffer";else{if(!p._isUint8Array(t))throw new _("chunk",["string","Buffer","Uint8Array"],t);t=p._uint8ArrayToBuffer(t),n="buffer"}let s;return o.ending?s=new N:o.destroyed&&(s=new A("write")),s?(r.nextTick(i,s),R(e,s,!0),s):(o.pendingcb++,function(e,t,n,r,i){const o=t.objectMode?1:n.length;t.length+=o;const s=t.length<t.highWaterMark;return s||(t.needDrain=!0),t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:n,encoding:r,callback:i}),t.allBuffers&&"buffer"!==r&&(t.allBuffers=!1),t.allNoop&&i!==B&&(t.allNoop=!1)):(t.writelen=o,t.writecb=i,t.writing=!0,t.sync=!0,e._write(n,r,t.onwrite),t.sync=!1),s&&!t.errored&&!t.destroyed}(e,o,t,n,i))}function M(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new A("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function U(e,t,n,r){--t.pendingcb,r(n),q(t),R(e,n)}function P(e,t){const n=e._writableState,i=n.sync,o=n.writecb;"function"==typeof o?(n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,t?(t.stack,n.errored||(n.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),i?r.nextTick(U,e,n,t,o):U(e,n,t,o)):(n.buffered.length>n.bufferedIndex&&$(e,n),i?null!==n.afterWriteTickInfo&&n.afterWriteTickInfo.cb===o?n.afterWriteTickInfo.count++:(n.afterWriteTickInfo={count:1,cb:o,stream:e,state:n},r.nextTick(j,n.afterWriteTickInfo)):F(e,n,1,o))):R(e,new E)}function j({stream:e,state:t,count:n,cb:r}){return t.afterWriteTickInfo=null,F(e,t,n,r)}function F(e,t,n,r){for(!t.ending&&!e.destroyed&&0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));n-- >0;)t.pendingcb--,r();t.destroyed&&q(t),V(e,t)}function q(e){if(e.writing)return;for(let n=e.bufferedIndex;n<e.buffered.length;++n){var t;const{chunk:r,callback:i}=e.buffered[n],o=e.objectMode?1:r.length;e.length-=o,i(null!==(t=e.errored)&&void 0!==t?t:new A("write"))}const n=e[C].splice(0);for(let t=0;t<n.length;t++){var r;n[t](null!==(r=e.errored)&&void 0!==r?r:new A("end"))}O(e)}function $(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;const{buffered:n,bufferedIndex:r,objectMode:o}=t,s=n.length-r;if(!s)return;let a=r;if(t.bufferProcessing=!0,s>1&&e._writev){t.pendingcb-=s-1;const r=t.allNoop?B:e=>{for(let t=a;t<n.length;++t)n[t].callback(e)},o=t.allNoop&&0===a?n:i(n,a);o.allBuffers=t.allBuffers,M(e,t,!0,t.length,o,"",r),O(t)}else{do{const{chunk:r,encoding:i,callback:s}=n[a];n[a++]=null,M(e,t,!1,o?1:r.length,r,i,s)}while(a<n.length&&!t.writing);a===n.length?O(t):a>256?(n.splice(0,a),t.bufferedIndex=0):t.bufferedIndex=a}t.bufferProcessing=!1}function W(e){return e.ending&&!e.destroyed&&e.constructed&&0===e.length&&!e.errored&&0===e.buffered.length&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function V(e,t,n){W(t)&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,function(e,t){let n=!1;function i(i){if(n)R(e,null!=i?i:E());else if(n=!0,t.pendingcb--,i){const n=t[C].splice(0);for(let e=0;e<n.length;e++)n[e](i);R(e,i,t.sync)}else W(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,r.nextTick(G,e,t))}t.sync=!0,t.pendingcb++;try{e._final(i)}catch(e){i(e)}t.sync=!1}(e,t)))}(e,t),0===t.pendingcb&&(n?(t.pendingcb++,r.nextTick(((e,t)=>{W(t)?G(e,t):t.pendingcb--}),e,t)):W(t)&&(t.pendingcb++,G(e,t))))}function G(e,t){t.pendingcb--,t.finished=!0;const n=t[C].splice(0);for(let e=0;e<n.length;e++)n[e]();if(e.emit("finish"),t.autoDestroy){const t=e._readableState;(!t||t.autoDestroy&&(t.endEmitted||!1===t.readable))&&e.destroy()}}k.prototype.getBuffer=function(){return i(this.buffered,this.bufferedIndex)},a(k.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),a(L,d,{__proto__:null,value:function(e){return!!s(this,e)||this===L&&e&&e._writableState instanceof k}}),L.prototype.pipe=function(){R(this,new S)},L.prototype.write=function(e,t,n){return!0===D(this,e,t,n)},L.prototype.cork=function(){this._writableState.corked++},L.prototype.uncork=function(){const e=this._writableState;e.corked&&(e.corked--,e.writing||$(this,e))},L.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=c(e)),!y.isEncoding(e))throw new x(e);return this._writableState.defaultEncoding=e,this},L.prototype._write=function(e,t,n){if(!this._writev)throw new v("_write()");this._writev([{chunk:e,encoding:t}],n)},L.prototype._writev=null,L.prototype.end=function(e,t,n){const i=this._writableState;let s;if("function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e){const n=D(this,e,t);n instanceof o&&(s=n)}return i.corked&&(i.corked=1,this.uncork()),s||(i.errored||i.ending?i.finished?s=new T("end"):i.destroyed&&(s=new A("end")):(i.ending=!0,V(this,i,!0),i.ended=!0)),"function"==typeof n&&(s||i.finished?r.nextTick(n,s):i[C].push(n)),this},u(L.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){const e=this._writableState;return!(!e||!1===e.writable||e.destroyed||e.errored||e.ending||e.ended)},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){const e=this._writableState;return!!e&&!e.destroyed&&!e.ending&&e.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._writableState.writable||!this._writableState.destroyed&&!this._writableState.errored||this._writableState.finished)}}});const Y=g.destroy;let H;function K(){return void 0===H&&(H={}),H}L.prototype.destroy=function(e,t){const n=this._writableState;return!n.destroyed&&(n.bufferedIndex<n.buffered.length||n[C].length)&&r.nextTick(q,n),Y.call(this,e,t),this},L.prototype._undestroy=g.undestroy,L.prototype._destroy=function(e,t){t(e)},L.prototype[h.captureRejectionSymbol]=function(e){this.destroy(e)},L.fromWeb=function(e,t){return K().newStreamWritableFromWritableStream(e,t)},L.toWeb=function(e){return K().newWritableStreamFromStreamWritable(e)}},603:(e,t,n)=>{const r=n(606),i=n(287),{isReadable:o,isWritable:s,isIterable:a,isNodeStream:u,isReadableNodeStream:l,isWritableNodeStream:c,isDuplexNodeStream:f}=n(734),d=n(627),{AbortError:h,codes:{ERR_INVALID_ARG_TYPE:p,ERR_INVALID_RETURN_VALUE:y}}=n(760),{destroyer:g}=n(261),b=n(749),m=n(747),{createDeferredPromise:w}=n(351),_=n(207),v=globalThis.Blob||i.Blob,E=void 0!==v?function(e){return e instanceof v}:function(e){return!1},S=globalThis.AbortController||n(568).AbortController,{FunctionPrototypeCall:A}=n(475);class T extends b{constructor(e){super(e),!1===(null==e?void 0:e.readable)&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===(null==e?void 0:e.writable)&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function I(e){const t=e.readable&&"function"!=typeof e.readable.read?m.wrap(e.readable):e.readable,n=e.writable;let r,i,a,u,l,c=!!o(t),f=!!s(n);function p(e){const t=u;u=null,t?t(e):e&&l.destroy(e)}return l=new T({readableObjectMode:!(null==t||!t.readableObjectMode),writableObjectMode:!(null==n||!n.writableObjectMode),readable:c,writable:f}),f&&(d(n,(e=>{f=!1,e&&g(t,e),p(e)})),l._write=function(e,t,i){n.write(e,t)?i():r=i},l._final=function(e){n.end(),i=e},n.on("drain",(function(){if(r){const e=r;r=null,e()}})),n.on("finish",(function(){if(i){const e=i;i=null,e()}}))),c&&(d(t,(e=>{c=!1,e&&g(t,e),p(e)})),t.on("readable",(function(){if(a){const e=a;a=null,e()}})),t.on("end",(function(){l.push(null)})),l._read=function(){for(;;){const e=t.read();if(null===e)return void(a=l._read);if(!l.push(e))return}}),l._destroy=function(e,o){e||null===u||(e=new h),a=null,r=null,i=null,null===u?o(e):(u=o,g(n,e),g(t,e))},l}e.exports=function e(t,n){if(f(t))return t;if(l(t))return I({readable:t});if(c(t))return I({writable:t});if(u(t))return I({writable:!1,readable:!1});if("function"==typeof t){const{value:e,write:i,final:o,destroy:s}=function(e){let{promise:t,resolve:n}=w();const i=new S,o=i.signal;return{value:e(async function*(){for(;;){const e=t;t=null;const{chunk:i,done:s,cb:a}=await e;if(r.nextTick(a),s)return;if(o.aborted)throw new h(void 0,{cause:o.reason});({promise:t,resolve:n}=w()),yield i}}(),{signal:o}),write(e,t,r){const i=n;n=null,i({chunk:e,done:!1,cb:r})},final(e){const t=n;n=null,t({done:!0,cb:e})},destroy(e,t){i.abort(),t(e)}}}(t);if(a(e))return _(T,e,{objectMode:!0,write:i,final:o,destroy:s});const u=null==e?void 0:e.then;if("function"==typeof u){let t;const n=A(u,e,(e=>{if(null!=e)throw new y("nully","body",e)}),(e=>{g(t,e)}));return t=new T({objectMode:!0,readable:!1,write:i,final(e){o((async()=>{try{await n,r.nextTick(e,null)}catch(t){r.nextTick(e,t)}}))},destroy:s})}throw new y("Iterable, AsyncIterable or AsyncFunction",n,e)}if(E(t))return e(t.arrayBuffer());if(a(t))return _(T,t,{objectMode:!0,writable:!1});if("object"==typeof(null==t?void 0:t.writable)||"object"==typeof(null==t?void 0:t.readable))return I({readable:null!=t&&t.readable?l(null==t?void 0:t.readable)?null==t?void 0:t.readable:e(t.readable):void 0,writable:null!=t&&t.writable?c(null==t?void 0:t.writable)?null==t?void 0:t.writable:e(t.writable):void 0});const i=null==t?void 0:t.then;if("function"==typeof i){let e;return A(i,t,(t=>{null!=t&&e.push(t),e.push(null)}),(t=>{g(e,t)})),e=new T({objectMode:!0,writable:!1,read(){}})}throw new p(n,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)}},606:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var a,u=[],l=!1,c=-1;function f(){l&&a&&(l=!1,a.length?u=a.concat(u):c=-1,u.length&&d())}function d(){if(!l){var e=s(f);l=!0;for(var t=u.length;t;){for(a=u,u=[];++c<t;)a&&a[c].run();c=-1,t=u.length}a=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||l||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},627:(e,t,n)=>{const r=n(606),{AbortError:i,codes:o}=n(760),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_PREMATURE_CLOSE:a}=o,{kEmptyObject:u,once:l}=n(351),{validateAbortSignal:c,validateFunction:f,validateObject:d,validateBoolean:h}=n(974),{Promise:p,PromisePrototypeThen:y}=n(475),{isClosed:g,isReadable:b,isReadableNodeStream:m,isReadableStream:w,isReadableFinished:_,isReadableErrored:v,isWritable:E,isWritableNodeStream:S,isWritableStream:A,isWritableFinished:T,isWritableErrored:I,isNodeStream:N,willEmitClose:x,kIsClosedPromise:R}=n(734),B=()=>{};function C(e,t,n){var o,h;if(2===arguments.length?(n=t,t=u):null==t?t=u:d(t,"options"),f(n,"callback"),c(t.signal,"options.signal"),n=l(n),w(e)||A(e))return function(e,t,n){let o=!1,s=B;if(t.signal)if(s=()=>{o=!0,n.call(e,new i(void 0,{cause:t.signal.reason}))},t.signal.aborted)r.nextTick(s);else{const r=n;n=l(((...n)=>{t.signal.removeEventListener("abort",s),r.apply(e,n)})),t.signal.addEventListener("abort",s)}const a=(...t)=>{o||r.nextTick((()=>n.apply(e,t)))};return y(e[R].promise,a,a),B}(e,t,n);if(!N(e))throw new s("stream",["ReadableStream","WritableStream","Stream"],e);const p=null!==(o=t.readable)&&void 0!==o?o:m(e),C=null!==(h=t.writable)&&void 0!==h?h:S(e),k=e._writableState,O=e._readableState,L=()=>{e.writable||U()};let D=x(e)&&m(e)===p&&S(e)===C,M=T(e,!1);const U=()=>{M=!0,e.destroyed&&(D=!1),(!D||e.readable&&!p)&&(p&&!P||n.call(e))};let P=_(e,!1);const j=()=>{P=!0,e.destroyed&&(D=!1),(!D||e.writable&&!C)&&(C&&!M||n.call(e))},F=t=>{n.call(e,t)};let q=g(e);const $=()=>{q=!0;const t=I(e)||v(e);return t&&"boolean"!=typeof t?n.call(e,t):p&&!P&&m(e,!0)&&!_(e,!1)?n.call(e,new a):!C||M||T(e,!1)?void n.call(e):n.call(e,new a)},W=()=>{q=!0;const t=I(e)||v(e);if(t&&"boolean"!=typeof t)return n.call(e,t);n.call(e)},V=()=>{e.req.on("finish",U)};!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?C&&!k&&(e.on("end",L),e.on("close",L)):(e.on("complete",U),D||e.on("abort",$),e.req?V():e.on("request",V)),D||"boolean"!=typeof e.aborted||e.on("aborted",$),e.on("end",j),e.on("finish",U),!1!==t.error&&e.on("error",F),e.on("close",$),q?r.nextTick($):null!=k&&k.errorEmitted||null!=O&&O.errorEmitted?D||r.nextTick(W):(p||D&&!b(e)||!M&&!1!==E(e))&&(C||D&&!E(e)||!P&&!1!==b(e))?O&&e.req&&e.aborted&&r.nextTick(W):r.nextTick(W);const G=()=>{n=B,e.removeListener("aborted",$),e.removeListener("complete",U),e.removeListener("abort",$),e.removeListener("request",V),e.req&&e.req.removeListener("finish",U),e.removeListener("end",L),e.removeListener("close",L),e.removeListener("finish",U),e.removeListener("end",j),e.removeListener("error",F),e.removeListener("close",$)};if(t.signal&&!q){const o=()=>{const r=n;G(),r.call(e,new i(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)r.nextTick(o);else{const r=n;n=l(((...n)=>{t.signal.removeEventListener("abort",o),r.apply(e,n)})),t.signal.addEventListener("abort",o)}}return G}e.exports=C,e.exports.finished=function(e,t){var n;let r=!1;return null===t&&(t=u),null!==(n=t)&&void 0!==n&&n.cleanup&&(h(t.cleanup,"cleanup"),r=t.cleanup),new p(((n,i)=>{const o=C(e,t,(e=>{r&&o(),e?i(e):n()}))}))}},646:(e,t,n)=>{"use strict";const{MathFloor:r,NumberIsInteger:i}=n(475),{ERR_INVALID_ARG_VALUE:o}=n(760).codes;function s(e){return e?16:16384}e.exports={getHighWaterMark:function(e,t,n,a){const u=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,a,n);if(null!=u){if(!i(u)||u<0)throw new o(a?`options.${n}`:"options.highWaterMark",u);return r(u)}return s(e.objectMode)},getDefaultHighWaterMark:s}},724:(e,t,n)=>{"use strict";const{ArrayPrototypePop:r,Promise:i}=n(475),{isIterable:o,isNodeStream:s,isWebStream:a}=n(734),{pipelineImpl:u}=n(545),{finished:l}=n(627);n(507),e.exports={finished:l,pipeline:function(...e){return new i(((t,n)=>{let i,l;const c=e[e.length-1];if(c&&"object"==typeof c&&!s(c)&&!o(c)&&!a(c)){const t=r(e);i=t.signal,l=t.end}u(e,((e,r)=>{e?n(e):t(r)}),{signal:i,end:l})}))}}},734:(e,t,n)=>{"use strict";const{Symbol:r,SymbolAsyncIterator:i,SymbolIterator:o,SymbolFor:s}=n(475),a=r("kDestroyed"),u=r("kIsErrored"),l=r("kIsReadable"),c=r("kIsDisturbed"),f=s("nodejs.webstream.isClosedPromise"),d=s("nodejs.webstream.controllerErrorFunction");function h(e,t=!1){var n;return!(!e||"function"!=typeof e.pipe||"function"!=typeof e.on||t&&("function"!=typeof e.pause||"function"!=typeof e.resume)||e._writableState&&!1===(null===(n=e._readableState)||void 0===n?void 0:n.readable)||e._writableState&&!e._readableState)}function p(e){var t;return!(!e||"function"!=typeof e.write||"function"!=typeof e.on||e._readableState&&!1===(null===(t=e._writableState)||void 0===t?void 0:t.writable))}function y(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function g(e){return!(!e||y(e)||"function"!=typeof e.pipeThrough||"function"!=typeof e.getReader||"function"!=typeof e.cancel)}function b(e){return!(!e||y(e)||"function"!=typeof e.getWriter||"function"!=typeof e.abort)}function m(e){return!(!e||y(e)||"object"!=typeof e.readable||"object"!=typeof e.writable)}function w(e){if(!y(e))return null;const t=e._writableState,n=e._readableState,r=t||n;return!!(e.destroyed||e[a]||null!=r&&r.destroyed)}function _(e){if(!p(e))return null;if(!0===e.writableEnded)return!0;const t=e._writableState;return(null==t||!t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)}function v(e,t){if(!h(e))return null;const n=e._readableState;return(null==n||!n.errored)&&("boolean"!=typeof(null==n?void 0:n.endEmitted)?null:!!(n.endEmitted||!1===t&&!0===n.ended&&0===n.length))}function E(e){return e&&null!=e[l]?e[l]:"boolean"!=typeof(null==e?void 0:e.readable)?null:!w(e)&&h(e)&&e.readable&&!v(e)}function S(e){return"boolean"!=typeof(null==e?void 0:e.writable)?null:!w(e)&&p(e)&&e.writable&&!_(e)}function A(e){return"boolean"==typeof e._closed&&"boolean"==typeof e._defaultKeepAlive&&"boolean"==typeof e._removedConnection&&"boolean"==typeof e._removedContLen}function T(e){return"boolean"==typeof e._sent100&&A(e)}e.exports={kDestroyed:a,isDisturbed:function(e){var t;return!(!e||!(null!==(t=e[c])&&void 0!==t?t:e.readableDidRead||e.readableAborted))},kIsDisturbed:c,isErrored:function(e){var t,n,r,i,o,s,a,l,c,f;return!(!e||!(null!==(t=null!==(n=null!==(r=null!==(i=null!==(o=null!==(s=e[u])&&void 0!==s?s:e.readableErrored)&&void 0!==o?o:e.writableErrored)&&void 0!==i?i:null===(a=e._readableState)||void 0===a?void 0:a.errorEmitted)&&void 0!==r?r:null===(l=e._writableState)||void 0===l?void 0:l.errorEmitted)&&void 0!==n?n:null===(c=e._readableState)||void 0===c?void 0:c.errored)&&void 0!==t?t:null===(f=e._writableState)||void 0===f?void 0:f.errored))},kIsErrored:u,isReadable:E,kIsReadable:l,kIsClosedPromise:f,kControllerErrorFunction:d,isClosed:function(e){if(!y(e))return null;if("boolean"==typeof e.closed)return e.closed;const t=e._writableState,n=e._readableState;return"boolean"==typeof(null==t?void 0:t.closed)||"boolean"==typeof(null==n?void 0:n.closed)?(null==t?void 0:t.closed)||(null==n?void 0:n.closed):"boolean"==typeof e._closed&&A(e)?e._closed:null},isDestroyed:w,isDuplexNodeStream:function(e){return!(!e||"function"!=typeof e.pipe||!e._readableState||"function"!=typeof e.on||"function"!=typeof e.write)},isFinished:function(e,t){return y(e)?!(!w(e)&&(!1!==(null==t?void 0:t.readable)&&E(e)||!1!==(null==t?void 0:t.writable)&&S(e))):null},isIterable:function(e,t){return null!=e&&(!0===t?"function"==typeof e[i]:!1===t?"function"==typeof e[o]:"function"==typeof e[i]||"function"==typeof e[o])},isReadableNodeStream:h,isReadableStream:g,isReadableEnded:function(e){if(!h(e))return null;if(!0===e.readableEnded)return!0;const t=e._readableState;return!(!t||t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)},isReadableFinished:v,isReadableErrored:function(e){var t,n;return y(e)?e.readableErrored?e.readableErrored:null!==(t=null===(n=e._readableState)||void 0===n?void 0:n.errored)&&void 0!==t?t:null:null},isNodeStream:y,isWebStream:function(e){return g(e)||b(e)||m(e)},isWritable:S,isWritableNodeStream:p,isWritableStream:b,isWritableEnded:_,isWritableFinished:function(e,t){if(!p(e))return null;if(!0===e.writableFinished)return!0;const n=e._writableState;return(null==n||!n.errored)&&("boolean"!=typeof(null==n?void 0:n.finished)?null:!!(n.finished||!1===t&&!0===n.ended&&0===n.length))},isWritableErrored:function(e){var t,n;return y(e)?e.writableErrored?e.writableErrored:null!==(t=null===(n=e._writableState)||void 0===n?void 0:n.errored)&&void 0!==t?t:null:null},isServerRequest:function(e){var t;return"boolean"==typeof e._consuming&&"boolean"==typeof e._dumped&&void 0===(null===(t=e.req)||void 0===t?void 0:t.upgradeOrConnect)},isServerResponse:T,willEmitClose:function(e){if(!y(e))return null;const t=e._writableState,n=e._readableState,r=t||n;return!r&&T(e)||!!(r&&r.autoDestroy&&r.emitClose&&!1===r.closed)},isTransformStream:m}},747:(e,t,n)=>{const r=n(606),{ArrayPrototypeIndexOf:i,NumberIsInteger:o,NumberIsNaN:s,NumberParseInt:a,ObjectDefineProperties:u,ObjectKeys:l,ObjectSetPrototypeOf:c,Promise:f,SafeSet:d,SymbolAsyncIterator:h,Symbol:p}=n(475);e.exports=j,j.ReadableState=P;const{EventEmitter:y}=n(7),{Stream:g,prependListener:b}=n(236),{Buffer:m}=n(287),{addAbortSignal:w}=n(792),_=n(627);let v=n(351).debuglog("stream",(e=>{v=e}));const E=n(220),S=n(261),{getHighWaterMark:A,getDefaultHighWaterMark:T}=n(646),{aggregateTwoErrors:I,codes:{ERR_INVALID_ARG_TYPE:N,ERR_METHOD_NOT_IMPLEMENTED:x,ERR_OUT_OF_RANGE:R,ERR_STREAM_PUSH_AFTER_EOF:B,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:C}}=n(760),{validateObject:k}=n(974),O=p("kPaused"),{StringDecoder:L}=n(141),D=n(207);c(j.prototype,g.prototype),c(j,g);const M=()=>{},{errorOrDestroy:U}=S;function P(e,t,r){"boolean"!=typeof r&&(r=t instanceof n(749)),this.objectMode=!(!e||!e.objectMode),r&&(this.objectMode=this.objectMode||!(!e||!e.readableObjectMode)),this.highWaterMark=e?A(this,e,"readableHighWaterMark",r):T(!1),this.buffer=new E,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[O]=null,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new L(e.encoding),this.encoding=e.encoding)}function j(e){if(!(this instanceof j))return new j(e);const t=this instanceof n(749);this._readableState=new P(e,this,t),e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&!t&&w(e.signal,this)),g.call(this,e),S.construct(this,(()=>{this._readableState.needReadable&&G(this,this._readableState)}))}function F(e,t,n,r){v("readableAddChunk",t);const i=e._readableState;let o;if(i.objectMode||("string"==typeof t?(n=n||i.defaultEncoding,i.encoding!==n&&(r&&i.encoding?t=m.from(t,n).toString(i.encoding):(t=m.from(t,n),n=""))):t instanceof m?n="":g._isUint8Array(t)?(t=g._uint8ArrayToBuffer(t),n=""):null!=t&&(o=new N("chunk",["string","Buffer","Uint8Array"],t))),o)U(e,o);else if(null===t)i.reading=!1,function(e,t){if(v("onEofChunk"),!t.ended){if(t.decoder){const e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?W(e):(t.needReadable=!1,t.emittedReadable=!0,V(e))}}(e,i);else if(i.objectMode||t&&t.length>0)if(r)if(i.endEmitted)U(e,new C);else{if(i.destroyed||i.errored)return!1;q(e,i,t,!0)}else if(i.ended)U(e,new B);else{if(i.destroyed||i.errored)return!1;i.reading=!1,i.decoder&&!n?(t=i.decoder.write(t),i.objectMode||0!==t.length?q(e,i,t,!1):G(e,i)):q(e,i,t,!1)}else r||(i.reading=!1,G(e,i));return!i.ended&&(i.length<i.highWaterMark||0===i.length)}function q(e,t,n,r){t.flowing&&0===t.length&&!t.sync&&e.listenerCount("data")>0?(t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&W(e)),G(e,t)}function $(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:s(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}function W(e){const t=e._readableState;v("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(v("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(V,e))}function V(e){const t=e._readableState;v("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||t.errored||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,z(e)}function G(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,r.nextTick(Y,e,t))}function Y(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){const n=t.length;if(v("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function H(e){const t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!1===t[O]?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function K(e){v("readable nexttick read 0"),e.read(0)}function J(e,t){v("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),z(e),t.flowing&&!t.reading&&e.read(0)}function z(e){const t=e._readableState;for(v("flow",t.flowing);t.flowing&&null!==e.read(););}function Q(e,t){"function"!=typeof e.read&&(e=j.wrap(e,{objectMode:!0}));const n=async function*(e,t){let n,r=M;function i(t){this===e?(r(),r=M):r=t}e.on("readable",i);const o=_(e,{writable:!1},(e=>{n=e?I(n,e):null,r(),r=M}));try{for(;;){const t=e.destroyed?null:e.read();if(null!==t)yield t;else{if(n)throw n;if(null===n)return;await new f(i)}}}catch(e){throw n=I(n,e),n}finally{!n&&!1===(null==t?void 0:t.destroyOnReturn)||void 0!==n&&!e._readableState.autoDestroy?(e.off("readable",i),o()):S.destroyer(e,null)}}(e,t);return n.stream=e,n}function X(e,t){if(0===t.length)return null;let n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function Z(e){const t=e._readableState;v("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(ee,t,e))}function ee(e,t){if(v("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&0===e.length)if(e.endEmitted=!0,t.emit("end"),t.writable&&!1===t.allowHalfOpen)r.nextTick(te,t);else if(e.autoDestroy){const e=t._writableState;(!e||e.autoDestroy&&(e.finished||!1===e.writable))&&t.destroy()}}function te(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}let ne;function re(){return void 0===ne&&(ne={}),ne}j.prototype.destroy=S.destroy,j.prototype._undestroy=S.undestroy,j.prototype._destroy=function(e,t){t(e)},j.prototype[y.captureRejectionSymbol]=function(e){this.destroy(e)},j.prototype.push=function(e,t){return F(this,e,t,!1)},j.prototype.unshift=function(e,t){return F(this,e,t,!0)},j.prototype.isPaused=function(){const e=this._readableState;return!0===e[O]||!1===e.flowing},j.prototype.setEncoding=function(e){const t=new L(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;const n=this._readableState.buffer;let r="";for(const e of n)r+=t.write(e);return n.clear(),""!==r&&n.push(r),this._readableState.length=r.length,this},j.prototype.read=function(e){v("read",e),void 0===e?e=NaN:o(e)||(e=a(e,10));const t=this._readableState,n=e;if(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>1073741824)throw new R("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,++e}(e)),0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return v("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?Z(this):W(this),null;if(0===(e=$(e,t))&&t.ended)return 0===t.length&&Z(this),null;let r,i=t.needReadable;if(v("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&(i=!0,v("length less than watermark",i)),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)i=!1,v("reading, ended or constructing",i);else if(i){v("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0);try{this._read(t.highWaterMark)}catch(e){U(this,e)}t.sync=!1,t.reading||(e=$(n,t))}return r=e>0?X(e,t):null,null===r?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&Z(this)),null===r||t.errorEmitted||t.closeEmitted||(t.dataEmitted=!0,this.emit("data",r)),r},j.prototype._read=function(e){throw new x("_read()")},j.prototype.pipe=function(e,t){const n=this,i=this._readableState;1===i.pipes.length&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new d(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(e),v("pipe count=%d opts=%j",i.pipes.length,t);const o=t&&!1===t.end||e===r.stdout||e===r.stderr?y:s;function s(){v("onend"),e.end()}let a;i.endEmitted?r.nextTick(o):n.once("end",o),e.on("unpipe",(function t(r,o){v("onunpipe"),r===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,v("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),a&&e.removeListener("drain",a),e.removeListener("error",f),e.removeListener("unpipe",t),n.removeListener("end",s),n.removeListener("end",y),n.removeListener("data",c),u=!0,a&&i.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&a())}));let u=!1;function l(){u||(1===i.pipes.length&&i.pipes[0]===e?(v("false write response, pause",0),i.awaitDrainWriters=e,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(e)&&(v("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(e)),n.pause()),a||(a=function(e,t){return function(){const n=e._readableState;n.awaitDrainWriters===t?(v("pipeOnDrain",1),n.awaitDrainWriters=null):n.multiAwaitDrain&&(v("pipeOnDrain",n.awaitDrainWriters.size),n.awaitDrainWriters.delete(t)),n.awaitDrainWriters&&0!==n.awaitDrainWriters.size||!e.listenerCount("data")||e.resume()}}(n,e),e.on("drain",a))}function c(t){v("ondata");const n=e.write(t);v("dest.write",n),!1===n&&l()}function f(t){if(v("onerror",t),y(),e.removeListener("error",f),0===e.listenerCount("error")){const n=e._writableState||e._readableState;n&&!n.errorEmitted?U(e,t):e.emit("error",t)}}function h(){e.removeListener("finish",p),y()}function p(){v("onfinish"),e.removeListener("close",h),y()}function y(){v("unpipe"),n.unpipe(e)}return n.on("data",c),b(e,"error",f),e.once("close",h),e.once("finish",p),e.emit("pipe",n),!0===e.writableNeedDrain?i.flowing&&l():i.flowing||(v("pipe resume"),n.resume()),e},j.prototype.unpipe=function(e){const t=this._readableState;if(0===t.pipes.length)return this;if(!e){const e=t.pipes;t.pipes=[],this.pause();for(let t=0;t<e.length;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}const n=i(t.pipes,e);return-1===n||(t.pipes.splice(n,1),0===t.pipes.length&&this.pause(),e.emit("unpipe",this,{hasUnpiped:!1})),this},j.prototype.on=function(e,t){const n=g.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,v("on readable",i.length,i.reading),i.length?W(this):i.reading||r.nextTick(K,this))),n},j.prototype.addListener=j.prototype.on,j.prototype.removeListener=function(e,t){const n=g.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(H,this),n},j.prototype.off=j.prototype.removeListener,j.prototype.removeAllListeners=function(e){const t=g.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(H,this),t},j.prototype.resume=function(){const e=this._readableState;return e.flowing||(v("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(J,e,t))}(this,e)),e[O]=!1,this},j.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[O]=!0,this},j.prototype.wrap=function(e){let t=!1;e.on("data",(n=>{!this.push(n)&&e.pause&&(t=!0,e.pause())})),e.on("end",(()=>{this.push(null)})),e.on("error",(e=>{U(this,e)})),e.on("close",(()=>{this.destroy()})),e.on("destroy",(()=>{this.destroy()})),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};const n=l(e);for(let t=1;t<n.length;t++){const r=n[t];void 0===this[r]&&"function"==typeof e[r]&&(this[r]=e[r].bind(e))}return this},j.prototype[h]=function(){return Q(this)},j.prototype.iterator=function(e){return void 0!==e&&k(e,"options"),Q(this,e)},u(j.prototype,{readable:{__proto__:null,get(){const e=this._readableState;return!(!e||!1===e.readable||e.destroyed||e.errorEmitted||e.endEmitted)},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!(!1===this._readableState.readable||!this._readableState.destroyed&&!this._readableState.errored||this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),u(P.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[O]},set(e){this[O]=!!e}}}),j._fromList=X,j.from=function(e,t){return D(j,e,t)},j.fromWeb=function(e,t){return re().newStreamReadableFromReadableStream(e,t)},j.toWeb=function(e,t){return re().newReadableStreamFromStreamReadable(e,t)},j.wrap=function(e,t){var n,r;return new j({objectMode:null===(n=null!==(r=e.readableObjectMode)&&void 0!==r?r:e.objectMode)||void 0===n||n,...t,destroy(t,n){S.destroyer(e,t),n(t)}}).wrap(e)}},749:(e,t,n)=>{"use strict";const{ObjectDefineProperties:r,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:o,ObjectSetPrototypeOf:s}=n(475);e.exports=l;const a=n(747),u=n(588);s(l.prototype,a.prototype),s(l,a);{const e=o(u.prototype);for(let t=0;t<e.length;t++){const n=e[t];l.prototype[n]||(l.prototype[n]=u.prototype[n])}}function l(e){if(!(this instanceof l))return new l(e);a.call(this,e),u.call(this,e),e?(this.allowHalfOpen=!1!==e.allowHalfOpen,!1===e.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===e.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}let c,f;function d(){return void 0===c&&(c={}),c}r(l.prototype,{writable:{__proto__:null,...i(u.prototype,"writable")},writableHighWaterMark:{__proto__:null,...i(u.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...i(u.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...i(u.prototype,"writableBuffer")},writableLength:{__proto__:null,...i(u.prototype,"writableLength")},writableFinished:{__proto__:null,...i(u.prototype,"writableFinished")},writableCorked:{__proto__:null,...i(u.prototype,"writableCorked")},writableEnded:{__proto__:null,...i(u.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...i(u.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}}),l.fromWeb=function(e,t){return d().newStreamDuplexFromReadableWritablePair(e,t)},l.toWeb=function(e){return d().newReadableWritablePairFromDuplex(e)},l.from=function(e){return f||(f=n(603)),f(e,"body")}},760:(e,t,n)=>{"use strict";const{format:r,inspect:i,AggregateError:o}=n(351),s=globalThis.AggregateError||o,a=Symbol("kIsNodeError"),u=["string","function","number","object","Function","Object","boolean","bigint","symbol"],l=/^([A-Z][a-z0-9]*)+$/,c={};function f(e,t){if(!e)throw new c.ERR_INTERNAL_ASSERTION(t)}function d(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function h(e,t,n){n||(n=Error);class i extends n{constructor(...n){super(function(e,t,n){if("function"==typeof t)return f(t.length<=n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${t.length}).`),t(...n);const i=(t.match(/%[dfijoOs]/g)||[]).length;return f(i===n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${i}).`),0===n.length?t:r(t,...n)}(e,t,n))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:n.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=e,i.prototype[a]=!0,c[e]=i}function p(e){const t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}class y extends Error{constructor(e="The operation was aborted",t=void 0){if(void 0!==t&&"object"!=typeof t)throw new c.ERR_INVALID_ARG_TYPE("options","Object",t);super(e,t),this.code="ABORT_ERR",this.name="AbortError"}}h("ERR_ASSERTION","%s",Error),h("ERR_INVALID_ARG_TYPE",((e,t,n)=>{f("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let r="The ";e.endsWith(" argument")?r+=`${e} `:r+=`"${e}" ${e.includes(".")?"property":"argument"} `,r+="must be ";const o=[],s=[],a=[];for(const e of t)f("string"==typeof e,"All expected entries have to be of type string"),u.includes(e)?o.push(e.toLowerCase()):l.test(e)?s.push(e):(f("object"!==e,'The value "object" should be written as "Object"'),a.push(e));if(s.length>0){const e=o.indexOf("object");-1!==e&&(o.splice(o,e,1),s.push("Object"))}if(o.length>0){switch(o.length){case 1:r+=`of type ${o[0]}`;break;case 2:r+=`one of type ${o[0]} or ${o[1]}`;break;default:{const e=o.pop();r+=`one of type ${o.join(", ")}, or ${e}`}}(s.length>0||a.length>0)&&(r+=" or ")}if(s.length>0){switch(s.length){case 1:r+=`an instance of ${s[0]}`;break;case 2:r+=`an instance of ${s[0]} or ${s[1]}`;break;default:{const e=s.pop();r+=`an instance of ${s.join(", ")}, or ${e}`}}a.length>0&&(r+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(r+="an "),r+=`${a[0]}`;break;case 2:r+=`one of ${a[0]} or ${a[1]}`;break;default:{const e=a.pop();r+=`one of ${a.join(", ")}, or ${e}`}}if(null==n)r+=`. Received ${n}`;else if("function"==typeof n&&n.name)r+=`. Received function ${n.name}`;else if("object"==typeof n){var c;null!==(c=n.constructor)&&void 0!==c&&c.name?r+=`. Received an instance of ${n.constructor.name}`:r+=`. Received ${i(n,{depth:-1})}`}else{let e=i(n,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),r+=`. Received type ${typeof n} (${e})`}return r}),TypeError),h("ERR_INVALID_ARG_VALUE",((e,t,n="is invalid")=>{let r=i(t);return r.length>128&&(r=r.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${n}. Received ${r}`}),TypeError),h("ERR_INVALID_RETURN_VALUE",((e,t,n)=>{var r;return`Expected ${e} to be returned from the "${t}" function but got ${null!=n&&null!==(r=n.constructor)&&void 0!==r&&r.name?`instance of ${n.constructor.name}`:"type "+typeof n}.`}),TypeError),h("ERR_MISSING_ARGS",((...e)=>{let t;f(e.length>0,"At least one arg needs to be specified");const n=e.length;switch(e=(Array.isArray(e)?e:[e]).map((e=>`"${e}"`)).join(" or "),n){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const n=e.pop();t+=`The ${e.join(", ")}, and ${n} arguments`}}return`${t} must be specified`}),TypeError),h("ERR_OUT_OF_RANGE",((e,t,n)=>{let r;return f(t,'Missing "range" argument'),Number.isInteger(n)&&Math.abs(n)>2**32?r=d(String(n)):"bigint"==typeof n?(r=String(n),(n>2n**32n||n<-(2n**32n))&&(r=d(r)),r+="n"):r=i(n),`The value of "${e}" is out of range. It must be ${t}. Received ${r}`}),RangeError),h("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),h("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),h("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),h("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),h("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),h("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),h("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),h("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),h("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),h("ERR_STREAM_WRITE_AFTER_END","write after end",Error),h("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),e.exports={AbortError:y,aggregateTwoErrors:p((function(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const n=new s([t,e],t.message);return n.code=t.code,n}return e||t})),hideStackFrames:p,codes:c}},792:(e,t,n)=>{"use strict";const{AbortError:r,codes:i}=n(760),{isNodeStream:o,isWebStream:s,kControllerErrorFunction:a}=n(734),u=n(627),{ERR_INVALID_ARG_TYPE:l}=i;e.exports.addAbortSignal=function(t,n){if((e=>{if("object"!=typeof e||!("aborted"in e))throw new l("signal","AbortSignal",e)})(t),!o(n)&&!s(n))throw new l("stream",["ReadableStream","WritableStream","Stream"],n);return e.exports.addAbortSignalNoValidate(t,n)},e.exports.addAbortSignalNoValidate=function(e,t){if("object"!=typeof e||!("aborted"in e))return t;const n=o(t)?()=>{t.destroy(new r(void 0,{cause:e.reason}))}:()=>{t[a](new r(void 0,{cause:e.reason}))};return e.aborted?n():(e.addEventListener("abort",n),u(t,(()=>e.removeEventListener("abort",n)))),t}},802:e=>{e.exports=function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){if(o)return o(s,!0);throw new Error("Cannot find module '"+s+"'")}a=n[s]={exports:{}},t[s][0].call(a.exports,(function(e){return i(t[s][1][e]||e)}),a,a.exports,e,t,n,r)}return n[s].exports}for(var o=void 0,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){(function(r,i,o,s,a,u,l,c,f){"use strict";var d=e("crypto");function h(e,t){var n;return void 0===(n="passthrough"!==(t=g(e,t)).algorithm?d.createHash(t.algorithm):new w).write&&(n.write=n.update,n.end=n.update),m(t,n).dispatch(e),n.update||n.end(""),n.digest?n.digest("buffer"===t.encoding?void 0:t.encoding):(e=n.read(),"buffer"!==t.encoding?e.toString(t.encoding):e)}(n=t.exports=h).sha1=function(e){return h(e)},n.keys=function(e){return h(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},n.MD5=function(e){return h(e,{algorithm:"md5",encoding:"hex"})},n.keysMD5=function(e){return h(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var p=d.getHashes?d.getHashes().slice():["sha1","md5"],y=(p.push("passthrough"),["buffer","hex","binary","base64"]);function g(e,t){var n={};if(n.algorithm=(t=t||{}).algorithm||"sha1",n.encoding=t.encoding||"hex",n.excludeValues=!!t.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=!0===t.ignoreUnknown,n.respectType=!1!==t.respectType,n.respectFunctionNames=!1!==t.respectFunctionNames,n.respectFunctionProperties=!1!==t.respectFunctionProperties,n.unorderedArrays=!0===t.unorderedArrays,n.unorderedSets=!1!==t.unorderedSets,n.unorderedObjects=!1!==t.unorderedObjects,n.replacer=t.replacer||void 0,n.excludeKeys=t.excludeKeys||void 0,void 0===e)throw new Error("Object argument required.");for(var r=0;r<p.length;++r)p[r].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=p[r]);if(-1===p.indexOf(n.algorithm))throw new Error('Algorithm "'+n.algorithm+'" not supported. supported values: '+p.join(", "));if(-1===y.indexOf(n.encoding)&&"passthrough"!==n.algorithm)throw new Error('Encoding "'+n.encoding+'" not supported. supported values: '+y.join(", "));return n}function b(e){if("function"==typeof e)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function m(e,t,n){function r(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return n=n||[],{dispatch:function(t){return this["_"+(null===(t=e.replacer?e.replacer(t):t)?"null":typeof t)](t)},_object:function(t){var i,s=Object.prototype.toString.call(t),a=/\[object (.*)\]/i.exec(s);if(a=(a=a?a[1]:"unknown:["+s+"]").toLowerCase(),0<=(s=n.indexOf(t)))return this.dispatch("[CIRCULAR:"+s+"]");if(n.push(t),void 0!==o&&o.isBuffer&&o.isBuffer(t))return r("buffer:"),r(t);if("object"===a||"function"===a||"asyncfunction"===a)return s=Object.keys(t),e.unorderedObjects&&(s=s.sort()),!1===e.respectType||b(t)||s.splice(0,0,"prototype","__proto__","constructor"),e.excludeKeys&&(s=s.filter((function(t){return!e.excludeKeys(t)}))),r("object:"+s.length+":"),i=this,s.forEach((function(n){i.dispatch(n),r(":"),e.excludeValues||i.dispatch(t[n]),r(",")}));if(!this["_"+a]){if(e.ignoreUnknown)return r("["+a+"]");throw new Error('Unknown object type "'+a+'"')}this["_"+a](t)},_array:function(t,i){i=void 0!==i?i:!1!==e.unorderedArrays;var o=this;if(r("array:"+t.length+":"),!i||t.length<=1)return t.forEach((function(e){return o.dispatch(e)}));var s=[];return i=t.map((function(t){var r=new w,i=n.slice();return m(e,r,i).dispatch(t),s=s.concat(i.slice(n.length)),r.read().toString()})),n=n.concat(s),i.sort(),this._array(i,!1)},_date:function(e){return r("date:"+e.toJSON())},_symbol:function(e){return r("symbol:"+e.toString())},_error:function(e){return r("error:"+e.toString())},_boolean:function(e){return r("bool:"+e.toString())},_string:function(e){r("string:"+e.length+":"),r(e.toString())},_function:function(t){r("fn:"),b(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return r("number:"+e.toString())},_xml:function(e){return r("xml:"+e.toString())},_null:function(){return r("Null")},_undefined:function(){return r("Undefined")},_regexp:function(e){return r("regex:"+e.toString())},_uint8array:function(e){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return r("int8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return r("int16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return r("int32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return r("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return r("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return r("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return r("url:"+e.toString())},_map:function(t){return r("map:"),t=Array.from(t),this._array(t,!1!==e.unorderedSets)},_set:function(t){return r("set:"),t=Array.from(t),this._array(t,!1!==e.unorderedSets)},_file:function(e){return r("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return r("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return r("domwindow")},_bigint:function(e){return r("bigint:"+e.toString())},_process:function(){return r("process")},_timer:function(){return r("timer")},_pipe:function(){return r("pipe")},_tcp:function(){return r("tcp")},_udp:function(){return r("udp")},_tty:function(){return r("tty")},_statwatcher:function(){return r("statwatcher")},_securecontext:function(){return r("securecontext")},_connection:function(){return r("connection")},_zlib:function(){return r("zlib")},_context:function(){return r("context")},_nodescript:function(){return r("nodescript")},_httpparser:function(){return r("httpparser")},_dataview:function(){return r("dataview")},_signal:function(){return r("signal")},_fsevent:function(){return r("fsevent")},_tlswrap:function(){return r("tlswrap")}}}function w(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}n.writeToStream=function(e,t,n){return void 0===n&&(n=t,t={}),m(t=g(e,t),n).dispatch(e)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(e,t,n){(function(e,t,r,i,o,s,a,u,l){!function(e){"use strict";var t="undefined"!=typeof Uint8Array?Uint8Array:Array,n="+".charCodeAt(0),r="/".charCodeAt(0),i="0".charCodeAt(0),o="a".charCodeAt(0),s="A".charCodeAt(0),a="-".charCodeAt(0),u="_".charCodeAt(0);function l(e){return(e=e.charCodeAt(0))===n||e===a?62:e===r||e===u?63:e<i?-1:e<i+10?e-i+26+26:e<s+26?e-s:e<o+26?e-o+26:void 0}e.toByteArray=function(e){var n,r;if(0<e.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.length,o=(i="="===e.charAt(i-2)?2:"="===e.charAt(i-1)?1:0,new t(3*e.length/4-i)),s=0<i?e.length-4:e.length,a=0;function u(e){o[a++]=e}for(n=0;n<s;n+=4,0)u((16711680&(r=l(e.charAt(n))<<18|l(e.charAt(n+1))<<12|l(e.charAt(n+2))<<6|l(e.charAt(n+3))))>>16),u((65280&r)>>8),u(255&r);return 2==i?u(255&(r=l(e.charAt(n))<<2|l(e.charAt(n+1))>>4)):1==i&&(u((r=l(e.charAt(n))<<10|l(e.charAt(n+1))<<4|l(e.charAt(n+2))>>2)>>8&255),u(255&r)),o},e.fromByteArray=function(e){var t,n,r,i,o=e.length%3,s="";function a(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.length-o;t<r;t+=3)s+=a((i=n=(e[t]<<16)+(e[t+1]<<8)+e[t+2])>>18&63)+a(i>>12&63)+a(i>>6&63)+a(63&i);switch(o){case 1:s=(s+=a((n=e[e.length-1])>>2))+a(n<<4&63)+"==";break;case 2:s=(s=(s+=a((n=(e[e.length-2]<<8)+e[e.length-1])>>10))+a(n>>4&63))+a(n<<2&63)+"="}return s}}(void 0===n?this.base64js={}:n)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(e,t,n){(function(t,r,i,o,s,a,u,l,c){var f=e("base64-js"),d=e("ieee754");function i(e,t,n){if(!(this instanceof i))return new i(e,t,n);var r,o,s,a,u=typeof e;if("base64"===t&&"string"==u)for(e=(a=e).trim?a.trim():a.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==u)r=N(e);else if("string"==u)r=i.byteLength(e,t);else{if("object"!=u)throw new Error("First argument needs to be a number, array or string.");r=N(e.length)}if(i._useTypedArrays?o=i._augment(new Uint8Array(r)):((o=this).length=r,o._isBuffer=!0),i._useTypedArrays&&"number"==typeof e.byteLength)o._set(e);else if(x(a=e)||i.isBuffer(a)||a&&"object"==typeof a&&"number"==typeof a.length)for(s=0;s<r;s++)i.isBuffer(e)?o[s]=e.readUInt8(s):o[s]=e[s];else if("string"==u)o.write(e,0,t);else if("number"==u&&!i._useTypedArrays&&!n)for(s=0;s<r;s++)o[s]=0;return o}function h(e,t,n,r){var i;if(r||(U("boolean"==typeof n,"missing or invalid endian"),U(null!=t,"missing offset"),U(t+1<e.length,"Trying to read beyond buffer length")),!((r=e.length)<=t))return n?(i=e[t],t+1<r&&(i|=e[t+1]<<8)):(i=e[t]<<8,t+1<r&&(i|=e[t+1])),i}function p(e,t,n,r){var i;if(r||(U("boolean"==typeof n,"missing or invalid endian"),U(null!=t,"missing offset"),U(t+3<e.length,"Trying to read beyond buffer length")),!((r=e.length)<=t))return n?(t+2<r&&(i=e[t+2]<<16),t+1<r&&(i|=e[t+1]<<8),i|=e[t],t+3<r&&(i+=e[t+3]<<24>>>0)):(t+1<r&&(i=e[t+1]<<16),t+2<r&&(i|=e[t+2]<<8),t+3<r&&(i|=e[t+3]),i+=e[t]<<24>>>0),i}function y(e,t,n,r){if(r||(U("boolean"==typeof n,"missing or invalid endian"),U(null!=t,"missing offset"),U(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t))return 32768&(r=h(e,t,n,!0))?-1*(65535-r+1):r}function g(e,t,n,r){if(r||(U("boolean"==typeof n,"missing or invalid endian"),U(null!=t,"missing offset"),U(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t))return 2147483648&(r=p(e,t,n,!0))?-1*(4294967295-r+1):r}function b(e,t,n,r){return r||(U("boolean"==typeof n,"missing or invalid endian"),U(t+3<e.length,"Trying to read beyond buffer length")),d.read(e,t,n,23,4)}function m(e,t,n,r){return r||(U("boolean"==typeof n,"missing or invalid endian"),U(t+7<e.length,"Trying to read beyond buffer length")),d.read(e,t,n,52,8)}function w(e,t,n,r,i){if(i||(U(null!=t,"missing value"),U("boolean"==typeof r,"missing or invalid endian"),U(null!=n,"missing offset"),U(n+1<e.length,"trying to write beyond buffer length"),L(t,65535)),!((i=e.length)<=n))for(var o=0,s=Math.min(i-n,2);o<s;o++)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function _(e,t,n,r,i){if(i||(U(null!=t,"missing value"),U("boolean"==typeof r,"missing or invalid endian"),U(null!=n,"missing offset"),U(n+3<e.length,"trying to write beyond buffer length"),L(t,4294967295)),!((i=e.length)<=n))for(var o=0,s=Math.min(i-n,4);o<s;o++)e[n+o]=t>>>8*(r?o:3-o)&255}function v(e,t,n,r,i){i||(U(null!=t,"missing value"),U("boolean"==typeof r,"missing or invalid endian"),U(null!=n,"missing offset"),U(n+1<e.length,"Trying to write beyond buffer length"),D(t,32767,-32768)),e.length<=n||w(e,0<=t?t:65535+t+1,n,r,i)}function E(e,t,n,r,i){i||(U(null!=t,"missing value"),U("boolean"==typeof r,"missing or invalid endian"),U(null!=n,"missing offset"),U(n+3<e.length,"Trying to write beyond buffer length"),D(t,2147483647,-2147483648)),e.length<=n||_(e,0<=t?t:4294967295+t+1,n,r,i)}function S(e,t,n,r,i){i||(U(null!=t,"missing value"),U("boolean"==typeof r,"missing or invalid endian"),U(null!=n,"missing offset"),U(n+3<e.length,"Trying to write beyond buffer length"),M(t,34028234663852886e22,-34028234663852886e22)),e.length<=n||d.write(e,t,n,r,23,4)}function A(e,t,n,r,i){i||(U(null!=t,"missing value"),U("boolean"==typeof r,"missing or invalid endian"),U(null!=n,"missing offset"),U(n+7<e.length,"Trying to write beyond buffer length"),M(t,17976931348623157e292,-17976931348623157e292)),e.length<=n||d.write(e,t,n,r,52,8)}n.Buffer=i,n.SlowBuffer=i,n.INSPECT_MAX_BYTES=50,i.poolSize=8192,i._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return!1}}(),i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=B(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=C(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw new Error("Unknown encoding")}return n},i.concat=function(e,t){if(U(x(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new i(0);if(1===e.length)return e[0];if("number"!=typeof t)for(o=t=0;o<e.length;o++)t+=e[o].length;for(var n=new i(t),r=0,o=0;o<e.length;o++){var s=e[o];s.copy(n,r),r+=s.length}return n},i.prototype.write=function(e,t,n,r){isFinite(t)?isFinite(n)||(r=n,n=void 0):(l=r,r=t,t=n,n=l),t=Number(t)||0;var o,s,a,u,l=this.length-t;switch((!n||l<(n=Number(n)))&&(n=l),r=String(r||"utf8").toLowerCase()){case"hex":o=function(e,t,n,r){n=Number(n)||0;var o=e.length-n;(!r||o<(r=Number(r)))&&(r=o),U((o=t.length)%2==0,"Invalid hex string"),o/2<r&&(r=o/2);for(var s=0;s<r;s++){var a=parseInt(t.substr(2*s,2),16);U(!isNaN(a),"Invalid hex string"),e[n+s]=a}return i._charsWritten=2*s,s}(this,e,t,n);break;case"utf8":case"utf-8":s=this,a=t,u=n,o=i._charsWritten=k(B(e),s,a,u);break;case"ascii":case"binary":o=function(e,t,n,r){return i._charsWritten=k(function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}(this,e,t,n);break;case"base64":s=this,a=t,u=n,o=i._charsWritten=k(C(e),s,a,u);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":o=function(e,t,n,r){return i._charsWritten=k(function(e){for(var t,n,r=[],i=0;i<e.length;i++)t=(n=e.charCodeAt(i))>>8,n%=256,r.push(n),r.push(t);return r}(t),e,n,r)}(this,e,t,n);break;default:throw new Error("Unknown encoding")}return o},i.prototype.toString=function(e,t,n){var r,i,o,s,a=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):a.length)===t)return"";switch(e){case"hex":r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||r<n)&&(n=r);for(var i="",o=t;o<n;o++)i+=R(e[o]);return i}(a,t,n);break;case"utf8":case"utf-8":r=function(e,t,n){var r="",i="";n=Math.min(e.length,n);for(var o=t;o<n;o++)e[o]<=127?(r+=O(i)+String.fromCharCode(e[o]),i=""):i+="%"+e[o].toString(16);return r+O(i)}(a,t,n);break;case"ascii":case"binary":r=function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;i++)r+=String.fromCharCode(e[i]);return r}(a,t,n);break;case"base64":i=a,s=n,r=0===(o=t)&&s===i.length?f.fromByteArray(i):f.fromByteArray(i.slice(o,s));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=function(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}(a,t,n);break;default:throw new Error("Unknown encoding")}return r},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.copy=function(e,t,n,r){if(t=t||0,(r=r||0===r?r:this.length)!==(n=n||0)&&0!==e.length&&0!==this.length){U(n<=r,"sourceEnd < sourceStart"),U(0<=t&&t<e.length,"targetStart out of bounds"),U(0<=n&&n<this.length,"sourceStart out of bounds"),U(0<=r&&r<=this.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length);var o=(r=e.length-t<r-n?e.length-t+n:r)-n;if(o<100||!i._useTypedArrays)for(var s=0;s<o;s++)e[s+t]=this[s+n];else e._set(this.subarray(n,n+o),t)}},i.prototype.slice=function(e,t){var n=this.length;if(e=I(e,n,0),t=I(t,n,n),i._useTypedArrays)return i._augment(this.subarray(e,t));for(var r=t-e,o=new i(r,void 0,!0),s=0;s<r;s++)o[s]=this[s+e];return o},i.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},i.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},i.prototype.readUInt8=function(e,t){if(t||(U(null!=e,"missing offset"),U(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},i.prototype.readUInt16LE=function(e,t){return h(this,e,!0,t)},i.prototype.readUInt16BE=function(e,t){return h(this,e,!1,t)},i.prototype.readUInt32LE=function(e,t){return p(this,e,!0,t)},i.prototype.readUInt32BE=function(e,t){return p(this,e,!1,t)},i.prototype.readInt8=function(e,t){if(t||(U(null!=e,"missing offset"),U(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){return y(this,e,!0,t)},i.prototype.readInt16BE=function(e,t){return y(this,e,!1,t)},i.prototype.readInt32LE=function(e,t){return g(this,e,!0,t)},i.prototype.readInt32BE=function(e,t){return g(this,e,!1,t)},i.prototype.readFloatLE=function(e,t){return b(this,e,!0,t)},i.prototype.readFloatBE=function(e,t){return b(this,e,!1,t)},i.prototype.readDoubleLE=function(e,t){return m(this,e,!0,t)},i.prototype.readDoubleBE=function(e,t){return m(this,e,!1,t)},i.prototype.writeUInt8=function(e,t,n){n||(U(null!=e,"missing value"),U(null!=t,"missing offset"),U(t<this.length,"trying to write beyond buffer length"),L(e,255)),t>=this.length||(this[t]=e)},i.prototype.writeUInt16LE=function(e,t,n){w(this,e,t,!0,n)},i.prototype.writeUInt16BE=function(e,t,n){w(this,e,t,!1,n)},i.prototype.writeUInt32LE=function(e,t,n){_(this,e,t,!0,n)},i.prototype.writeUInt32BE=function(e,t,n){_(this,e,t,!1,n)},i.prototype.writeInt8=function(e,t,n){n||(U(null!=e,"missing value"),U(null!=t,"missing offset"),U(t<this.length,"Trying to write beyond buffer length"),D(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},i.prototype.writeInt16LE=function(e,t,n){v(this,e,t,!0,n)},i.prototype.writeInt16BE=function(e,t,n){v(this,e,t,!1,n)},i.prototype.writeInt32LE=function(e,t,n){E(this,e,t,!0,n)},i.prototype.writeInt32BE=function(e,t,n){E(this,e,t,!1,n)},i.prototype.writeFloatLE=function(e,t,n){S(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){S(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){A(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){A(this,e,t,!1,n)},i.prototype.fill=function(e,t,n){if(t=t||0,n=n||this.length,U("number"==typeof(e="string"==typeof(e=e||0)?e.charCodeAt(0):e)&&!isNaN(e),"value is not a number"),U(t<=n,"end < start"),n!==t&&0!==this.length){U(0<=t&&t<this.length,"start out of bounds"),U(0<=n&&n<=this.length,"end out of bounds");for(var r=t;r<n;r++)this[r]=e}},i.prototype.inspect=function(){for(var e=[],t=this.length,r=0;r<t;r++)if(e[r]=R(this[r]),r===n.INSPECT_MAX_BYTES){e[r+1]="...";break}return"<Buffer "+e.join(" ")+">"},i.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(i._useTypedArrays)return new i(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t<n;t+=1)e[t]=this[t];return e.buffer};var T=i.prototype;function I(e,t,n){return"number"!=typeof e?n:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function N(e){return(e=~~Math.ceil(+e))<0?0:e}function x(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function R(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(e.charCodeAt(n));else for(var i=n,o=(55296<=r&&r<=57343&&n++,encodeURIComponent(e.slice(i,n+1)).substr(1).split("%")),s=0;s<o.length;s++)t.push(parseInt(o[s],16))}return t}function C(e){return f.toByteArray(e)}function k(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);i++)t[i+n]=e[i];return i}function O(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function L(e,t){U("number"==typeof e,"cannot write a non-number as a number"),U(0<=e,"specified a negative value for writing an unsigned value"),U(e<=t,"value is larger than maximum value for type"),U(Math.floor(e)===e,"value has a fractional component")}function D(e,t,n){U("number"==typeof e,"cannot write a non-number as a number"),U(e<=t,"value larger than maximum allowed value"),U(n<=e,"value smaller than minimum allowed value"),U(Math.floor(e)===e,"value has a fractional component")}function M(e,t,n){U("number"==typeof e,"cannot write a non-number as a number"),U(e<=t,"value larger than maximum allowed value"),U(n<=e,"value smaller than minimum allowed value")}function U(e,t){if(!e)throw new Error(t||"Failed assertion")}i._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=T.get,e.set=T.set,e.write=T.write,e.toString=T.toString,e.toLocaleString=T.toString,e.toJSON=T.toJSON,e.copy=T.copy,e.slice=T.slice,e.readUInt8=T.readUInt8,e.readUInt16LE=T.readUInt16LE,e.readUInt16BE=T.readUInt16BE,e.readUInt32LE=T.readUInt32LE,e.readUInt32BE=T.readUInt32BE,e.readInt8=T.readInt8,e.readInt16LE=T.readInt16LE,e.readInt16BE=T.readInt16BE,e.readInt32LE=T.readInt32LE,e.readInt32BE=T.readInt32BE,e.readFloatLE=T.readFloatLE,e.readFloatBE=T.readFloatBE,e.readDoubleLE=T.readDoubleLE,e.readDoubleBE=T.readDoubleBE,e.writeUInt8=T.writeUInt8,e.writeUInt16LE=T.writeUInt16LE,e.writeUInt16BE=T.writeUInt16BE,e.writeUInt32LE=T.writeUInt32LE,e.writeUInt32BE=T.writeUInt32BE,e.writeInt8=T.writeInt8,e.writeInt16LE=T.writeInt16LE,e.writeInt16BE=T.writeInt16BE,e.writeInt32LE=T.writeInt32LE,e.writeInt32BE=T.writeInt32BE,e.writeFloatLE=T.writeFloatLE,e.writeFloatBE=T.writeFloatBE,e.writeDoubleLE=T.writeDoubleLE,e.writeDoubleBE=T.writeDoubleBE,e.fill=T.fill,e.inspect=T.inspect,e.toArrayBuffer=T.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(e,t,n){(function(n,r,i,o,s,a,u,l,c){i=e("buffer").Buffer;var f=new i(4);f.fill(0),t.exports={hash:function(e,t,n,r){for(var o=t(function(e,t){e.length%4!=0&&(n=e.length+(4-e.length%4),e=i.concat([e,f],n));for(var n,r=[],o=t?e.readInt32BE:e.readInt32LE,s=0;s<e.length;s+=4)r.push(o.call(e,s));return r}(e=i.isBuffer(e)?e:new i(e),r),8*e.length),s=(t=r,new i(n)),a=t?s.writeInt32BE:s.writeInt32LE,u=0;u<o.length;u++)a.call(s,o[u],4*u,!0);return s}}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(e,t,n){(function(t,r,i,o,s,a,u,l,c){i=e("buffer").Buffer;var f=e("./sha"),d=e("./sha256"),h=e("./rng"),p={sha1:f,sha256:d,md5:e("./md5")},y=64,g=new i(y);function b(e,t){var n=p[e=e||"sha1"],r=[];return n||m("algorithm:",e,"is not yet supported"),{update:function(e){return i.isBuffer(e)||(e=new i(e)),r.push(e),e.length,this},digest:function(e){var o=i.concat(r);return o=t?function(e,t,n){i.isBuffer(t)||(t=new i(t)),i.isBuffer(n)||(n=new i(n)),t.length>y?t=e(t):t.length<y&&(t=i.concat([t,g],y));for(var r=new i(y),o=new i(y),s=0;s<y;s++)r[s]=54^t[s],o[s]=92^t[s];return n=e(i.concat([r,n])),e(i.concat([o,n]))}(n,t,o):n(o),r=null,e?o.toString(e):o}}}function m(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}g.fill(0),n.createHash=function(e){return b(e)},n.createHmac=b,n.randomBytes=function(e,t){if(!t||!t.call)return new i(h(e));try{t.call(this,void 0,new i(h(e)))}catch(e){t(e)}};var w,_=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],v=function(e){n[e]=function(){m("sorry,",e,"is not implemented yet")}};for(w in _)v(_[w])}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(e,t,n){(function(n,r,i,o,s,a,u,l,c){var f=e("./helpers");function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=n,u=r,l=i,c=o;n=p(n,r,i,o,e[s+0],7,-680876936),o=p(o,n,r,i,e[s+1],12,-389564586),i=p(i,o,n,r,e[s+2],17,606105819),r=p(r,i,o,n,e[s+3],22,-1044525330),n=p(n,r,i,o,e[s+4],7,-176418897),o=p(o,n,r,i,e[s+5],12,1200080426),i=p(i,o,n,r,e[s+6],17,-1473231341),r=p(r,i,o,n,e[s+7],22,-45705983),n=p(n,r,i,o,e[s+8],7,1770035416),o=p(o,n,r,i,e[s+9],12,-1958414417),i=p(i,o,n,r,e[s+10],17,-42063),r=p(r,i,o,n,e[s+11],22,-1990404162),n=p(n,r,i,o,e[s+12],7,1804603682),o=p(o,n,r,i,e[s+13],12,-40341101),i=p(i,o,n,r,e[s+14],17,-1502002290),n=y(n,r=p(r,i,o,n,e[s+15],22,1236535329),i,o,e[s+1],5,-165796510),o=y(o,n,r,i,e[s+6],9,-1069501632),i=y(i,o,n,r,e[s+11],14,643717713),r=y(r,i,o,n,e[s+0],20,-373897302),n=y(n,r,i,o,e[s+5],5,-701558691),o=y(o,n,r,i,e[s+10],9,38016083),i=y(i,o,n,r,e[s+15],14,-660478335),r=y(r,i,o,n,e[s+4],20,-405537848),n=y(n,r,i,o,e[s+9],5,568446438),o=y(o,n,r,i,e[s+14],9,-1019803690),i=y(i,o,n,r,e[s+3],14,-187363961),r=y(r,i,o,n,e[s+8],20,1163531501),n=y(n,r,i,o,e[s+13],5,-1444681467),o=y(o,n,r,i,e[s+2],9,-51403784),i=y(i,o,n,r,e[s+7],14,1735328473),n=g(n,r=y(r,i,o,n,e[s+12],20,-1926607734),i,o,e[s+5],4,-378558),o=g(o,n,r,i,e[s+8],11,-2022574463),i=g(i,o,n,r,e[s+11],16,1839030562),r=g(r,i,o,n,e[s+14],23,-35309556),n=g(n,r,i,o,e[s+1],4,-1530992060),o=g(o,n,r,i,e[s+4],11,1272893353),i=g(i,o,n,r,e[s+7],16,-155497632),r=g(r,i,o,n,e[s+10],23,-1094730640),n=g(n,r,i,o,e[s+13],4,681279174),o=g(o,n,r,i,e[s+0],11,-358537222),i=g(i,o,n,r,e[s+3],16,-722521979),r=g(r,i,o,n,e[s+6],23,76029189),n=g(n,r,i,o,e[s+9],4,-640364487),o=g(o,n,r,i,e[s+12],11,-421815835),i=g(i,o,n,r,e[s+15],16,530742520),n=b(n,r=g(r,i,o,n,e[s+2],23,-995338651),i,o,e[s+0],6,-198630844),o=b(o,n,r,i,e[s+7],10,1126891415),i=b(i,o,n,r,e[s+14],15,-1416354905),r=b(r,i,o,n,e[s+5],21,-57434055),n=b(n,r,i,o,e[s+12],6,1700485571),o=b(o,n,r,i,e[s+3],10,-1894986606),i=b(i,o,n,r,e[s+10],15,-1051523),r=b(r,i,o,n,e[s+1],21,-2054922799),n=b(n,r,i,o,e[s+8],6,1873313359),o=b(o,n,r,i,e[s+15],10,-30611744),i=b(i,o,n,r,e[s+6],15,-1560198380),r=b(r,i,o,n,e[s+13],21,1309151649),n=b(n,r,i,o,e[s+4],6,-145523070),o=b(o,n,r,i,e[s+11],10,-1120210379),i=b(i,o,n,r,e[s+2],15,718787259),r=b(r,i,o,n,e[s+9],21,-343485551),n=m(n,a),r=m(r,u),i=m(i,l),o=m(o,c)}return Array(n,r,i,o)}function h(e,t,n,r,i,o){return m((t=m(m(t,e),m(r,o)))<<i|t>>>32-i,n)}function p(e,t,n,r,i,o,s){return h(t&n|~t&r,e,t,i,o,s)}function y(e,t,n,r,i,o,s){return h(t&r|n&~r,e,t,i,o,s)}function g(e,t,n,r,i,o,s){return h(t^n^r,e,t,i,o,s)}function b(e,t,n,r,i,o,s){return h(n^(t|~r),e,t,i,o,s)}function m(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.exports=function(e){return f.hash(e,d,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,n){(function(e,n,r,i,o,s,a,u,l){t.exports=function(e){for(var t,n=new Array(e),r=0;r<e;r++)!(3&r)&&(t=4294967296*Math.random()),n[r]=t>>>((3&r)<<3)&255;return n}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(e,t,n){(function(n,r,i,o,s,a,u,l,c){var f=e("./helpers");function d(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,r,i,o=Array(80),s=1732584193,a=-271733879,u=-1732584194,l=271733878,c=-1009589776,f=0;f<e.length;f+=16){for(var d=s,y=a,g=u,b=l,m=c,w=0;w<80;w++){o[w]=w<16?e[f+w]:p(o[w-3]^o[w-8]^o[w-14]^o[w-16],1);var _=h(h(p(s,5),(_=a,r=u,i=l,(n=w)<20?_&r|~_&i:!(n<40)&&n<60?_&r|_&i|r&i:_^r^i)),h(h(c,o[w]),(n=w)<20?1518500249:n<40?1859775393:n<60?-1894007588:-899497514));c=l,l=u,u=p(a,30),a=s,s=_}s=h(s,d),a=h(a,y),u=h(u,g),l=h(l,b),c=h(c,m)}return Array(s,a,u,l,c)}function h(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function p(e,t){return e<<t|e>>>32-t}t.exports=function(e){return f.hash(e,d,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(e,t,n){(function(n,r,i,o,s,a,u,l,c){function f(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function d(e,t){var n,r=new Array(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),i=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),o=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var s,a,u=0;u<e.length;u+=16){for(var l=i[0],c=i[1],d=i[2],h=i[3],g=i[4],b=i[5],m=i[6],w=i[7],_=0;_<64;_++)o[_]=_<16?e[_+u]:f(f(f((a=o[_-2],p(a,17)^p(a,19)^y(a,10)),o[_-7]),(a=o[_-15],p(a,7)^p(a,18)^y(a,3))),o[_-16]),n=f(f(f(f(w,p(a=g,6)^p(a,11)^p(a,25)),g&b^~g&m),r[_]),o[_]),s=f(p(s=l,2)^p(s,13)^p(s,22),l&c^l&d^c&d),w=m,m=b,b=g,g=f(h,n),h=d,d=c,c=l,l=f(n,s);i[0]=f(l,i[0]),i[1]=f(c,i[1]),i[2]=f(d,i[2]),i[3]=f(h,i[3]),i[4]=f(g,i[4]),i[5]=f(b,i[5]),i[6]=f(m,i[6]),i[7]=f(w,i[7])}return i}var h=e("./helpers"),p=function(e,t){return e>>>t|e<<32-t},y=function(e,t){return e>>>t};t.exports=function(e){return h.hash(e,d,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,n){(function(e,t,r,i,o,s,a,u,l){n.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,l=u>>1,c=-7,f=n?i-1:0,d=n?-1:1;for(i=e[t+f],f+=d,o=i&(1<<-c)-1,i>>=-c,c+=a;0<c;o=256*o+e[t+f],f+=d,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;0<c;s=256*s+e[t+f],f+=d,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(i?-1:1);s+=Math.pow(2,r),o-=l}return(i?-1:1)*s*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var s,a,u=8*o-i-1,l=(1<<u)-1,c=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?1:-1;for(o=t<0||0===t&&1/t<0?1:0,t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(r=Math.pow(2,-s))<1&&(s--,r*=2),2<=(t+=1<=s+c?f/r:f*Math.pow(2,1-c))*r&&(s++,r/=2),l<=s+c?(a=0,s=l):1<=s+c?(a=(t*r-1)*Math.pow(2,i),s+=c):(a=t*Math.pow(2,c-1)*Math.pow(2,i),s=0));8<=i;e[n+d]=255&a,d+=h,a/=256,i-=8);for(s=s<<i|a,u+=i;0<u;e[n+d]=255&s,d+=h,s/=256,u-=8);e[n+d-h]|=128*o}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(e,t,n){(function(e,n,r,i,o,s,a,u,l){var c,f,d;function h(){}(e=t.exports={}).nextTick=(f="undefined"!=typeof window&&window.setImmediate,d="undefined"!=typeof window&&window.postMessage&&window.addEventListener,f?function(e){return window.setImmediate(e)}:d?(c=[],window.addEventListener("message",(function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<c.length&&c.shift()())}),!0),function(e){c.push(e),window.postMessage("process-tick","*")}):function(e){setTimeout(e,0)}),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=h,e.addListener=h,e.once=h,e.off=h,e.removeListener=h,e.removeAllListeners=h,e.emit=h,e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)},861:(e,t,n)=>{var r=n(287),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},974:(e,t,n)=>{"use strict";const{ArrayIsArray:r,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:o,ArrayPrototypeMap:s,NumberIsInteger:a,NumberIsNaN:u,NumberMAX_SAFE_INTEGER:l,NumberMIN_SAFE_INTEGER:c,NumberParseInt:f,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:h,String:p,StringPrototypeToUpperCase:y,StringPrototypeTrim:g}=n(475),{hideStackFrames:b,codes:{ERR_SOCKET_BAD_PORT:m,ERR_INVALID_ARG_TYPE:w,ERR_INVALID_ARG_VALUE:_,ERR_OUT_OF_RANGE:v,ERR_UNKNOWN_SIGNAL:E}}=n(760),{normalizeEncoding:S}=n(351),{isAsyncFunction:A,isArrayBufferView:T}=n(351).types,I={},N=/^[0-7]+$/,x=b(((e,t,n=c,r=l)=>{if("number"!=typeof e)throw new w(t,"number",e);if(!a(e))throw new v(t,"an integer",e);if(e<n||e>r)throw new v(t,`>= ${n} && <= ${r}`,e)})),R=b(((e,t,n=-2147483648,r=2147483647)=>{if("number"!=typeof e)throw new w(t,"number",e);if(!a(e))throw new v(t,"an integer",e);if(e<n||e>r)throw new v(t,`>= ${n} && <= ${r}`,e)})),B=b(((e,t,n=!1)=>{if("number"!=typeof e)throw new w(t,"number",e);if(!a(e))throw new v(t,"an integer",e);const r=n?1:0,i=4294967295;if(e<r||e>i)throw new v(t,`>= ${r} && <= ${i}`,e)}));function C(e,t){if("string"!=typeof e)throw new w(t,"string",e)}const k=b(((e,t,n)=>{if(!i(n,e)){const r=o(s(n,(e=>"string"==typeof e?`'${e}'`:p(e))),", ");throw new _(t,e,"must be one of: "+r)}}));function O(e,t){if("boolean"!=typeof e)throw new w(t,"boolean",e)}function L(e,t,n){return null!=e&&d(e,t)?e[t]:n}const D=b(((e,t,n=null)=>{const i=L(n,"allowArray",!1),o=L(n,"allowFunction",!1);if(!L(n,"nullable",!1)&&null===e||!i&&r(e)||"object"!=typeof e&&(!o||"function"!=typeof e))throw new w(t,"Object",e)})),M=b(((e,t)=>{if(null!=e&&"object"!=typeof e&&"function"!=typeof e)throw new w(t,"a dictionary",e)})),U=b(((e,t,n=0)=>{if(!r(e))throw new w(t,"Array",e);if(e.length<n)throw new _(t,e,`must be longer than ${n}`)})),P=b(((e,t="buffer")=>{if(!T(e))throw new w(t,["Buffer","TypedArray","DataView"],e)})),j=b(((e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new w(t,"AbortSignal",e)})),F=b(((e,t)=>{if("function"!=typeof e)throw new w(t,"Function",e)})),q=b(((e,t)=>{if("function"!=typeof e||A(e))throw new w(t,"Function",e)})),$=b(((e,t)=>{if(void 0!==e)throw new w(t,"undefined",e)})),W=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function V(e,t){if(void 0===e||!h(W,e))throw new _(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}e.exports={isInt32:function(e){return e===(0|e)},isUint32:function(e){return e===e>>>0},parseFileMode:function(e,t,n){if(void 0===e&&(e=n),"string"==typeof e){if(null===h(N,e))throw new _(t,e,"must be a 32-bit unsigned integer or an octal string");e=f(e,8)}return B(e,t),e},validateArray:U,validateStringArray:function(e,t){U(e,t);for(let n=0;n<e.length;n++)C(e[n],`${t}[${n}]`)},validateBooleanArray:function(e,t){U(e,t);for(let n=0;n<e.length;n++)O(e[n],`${t}[${n}]`)},validateBoolean:O,validateBuffer:P,validateDictionary:M,validateEncoding:function(e,t){const n=S(t),r=e.length;if("hex"===n&&r%2!=0)throw new _("encoding",t,`is invalid for data of length ${r}`)},validateFunction:F,validateInt32:R,validateInteger:x,validateNumber:function(e,t,n=void 0,r){if("number"!=typeof e)throw new w(t,"number",e);if(null!=n&&e<n||null!=r&&e>r||(null!=n||null!=r)&&u(e))throw new v(t,`${null!=n?`>= ${n}`:""}${null!=n&&null!=r?" && ":""}${null!=r?`<= ${r}`:""}`,e)},validateObject:D,validateOneOf:k,validatePlainFunction:q,validatePort:function(e,t="Port",n=!0){if("number"!=typeof e&&"string"!=typeof e||"string"==typeof e&&0===g(e).length||+e!=+e>>>0||e>65535||0===e&&!n)throw new m(t,e,n);return 0|e},validateSignalName:function(e,t="signal"){if(C(e,t),void 0===I[e]){if(void 0!==I[y(e)])throw new E(e+" (signals must use all capital letters)");throw new E(e)}},validateString:C,validateUint32:B,validateUndefined:$,validateUnion:function(e,t,n){if(!i(n,e))throw new w(t,`('${o(n,"|")}')`,e)},validateAbortSignal:j,validateLinkHeaderValue:function(e){if("string"==typeof e)return V(e,"hints"),e;if(r(e)){const t=e.length;let n="";if(0===t)return n;for(let r=0;r<t;r++){const i=e[r];V(i,"hints"),n+=i,r!==t-1&&(n+=", ")}return n}throw new _("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r](o,o.exports,n),o.loaded=!0,o.exports}n.c=t,n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n(n.s=559)})();
|