@rcsb/rcsb-statistics 0.3.2 → 0.3.4-dev.0

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/index.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="RCSB Protein Data Bank: A Resource for Studying Biological Macromolecules"/><title>RCSB Statistics</title><script defer="defer" src="/static/js/main.ce78a895.js"></script><link href="/static/css/main.861341d0.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript sto run this app.</noscript><div id="statsroot"></div></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="RCSB Protein Data Bank: A Resource for Studying Biological Macromolecules"/><title>RCSB Statistics</title><script defer="defer" src="/static/js/main.46a92736.js"></script><link href="/static/css/main.861341d0.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript sto run this app.</noscript><div id="statsroot"></div></body></html>
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_rcsb_rcsb_statistics=self.webpackChunk_rcsb_rcsb_statistics||[]).push([[5],{5:(t,e,r)=>{r.r(e),r.d(e,{default:()=>f});var n=r(6540),o=r(7767),a=r(1559),i=r(3513),l=r(2390),s=r(8533),c=r(6073),u=r(2137),b=r(8027),d=r(6061),m=r(7638),g=r(8422);const f=()=>{const t=(0,o.g)().plotname||"",e=t||"defaultKey",r=["distribution-space-group","distribution-resolution","distribution-r-free","distribution-molecular-weight-structure","distribution-atom-count","distribution-residue-count","distribution-source-organism-natural","distribution-software","distribution-journal","distribution-structural-genomics-centers","assembly-symmetry-dist","taxonomy","enzyme-classification-name","scop-classification"].includes(t),{data:f,isLoading:p,error:E}=(0,c.A)(e),C=(0,d.R)(),{settings:h}=(0,m.t)();if(p)return n.createElement(l.tt,null,n.createElement(i.A,null));if(E)return n.createElement(l.tt,null,n.createElement(s.A,{error:E}));const k=f&&f.length>0?{labels:f[0].map((t=>t.label)),datasets:f.map(((t,e)=>{const r={};return t.forEach((t=>{r[t.label]=t.population})),{label:t[0]?.objectConfig?.objectId?.[1]??`Dataset ${e+1}`,data:f[0].map((t=>r[t.label]||0)),backgroundColor:t[0]?.objectConfig?.color||"rgba(0, 0, 0, 0.1)",borderColor:t[0]?.objectConfig?.color||"rgba(0, 0, 0, 0.1)",borderWidth:1,objectConfig:t.map((t=>t.objectConfig))}}))}:null,j=t&&u.A[t];return n.createElement(l.tt,{key:t},k&&j?n.createElement(n.Fragment,null,n.createElement(l.Kb,null,n.createElement(l.OV,{onClick:()=>{const t=(0,g.h5)(C,h);t&&window.open(t,"_blank")}},n.createElement(b.Pcn,null)," Search API")),n.createElement(a.A,{data:k,options:j,isOverallPlot:!1,isDistPlot:r})):n.createElement(l.tt,null,n.createElement(s.A,{error:new Error("No data available.")})))}}}]);
@@ -35,4 +35,4 @@
35
35
  background-color: #f0f0f0;
36
36
  padding: 10px;
37
37
  margin: 0;
38
- `;var d=a(991);const h=()=>{const[t,e]=(0,i.useState)(""),[a,r]=(0,i.useState)([]),[l,s]=(0,i.useState)([]),[n,h]=(0,i.useState)([]);return(0,i.useEffect)((()=>{const e=d._1.filter((e=>e.text.toLowerCase().includes(t.toLowerCase())));r(e),s(e.filter((t=>t.text.startsWith("Growth by")))),h(e.filter((t=>t.text.startsWith("Distribution by"))))}),[t]),i.createElement("article",null,i.createElement(c,{htmlFor:"statistics-filter"},"Browse Statistics"),i.createElement(m,{id:"statistics-filter",type:"text",placeholder:"Search for a statistic",value:t,onChange:t=>e(t.target.value)}),i.createElement("div",{style:{display:"flex"}},l.length>0&&i.createElement(u,null,i.createElement(p,null,"Growth"),i.createElement(o,{items:l})),n.length>0&&i.createElement(u,null,i.createElement(p,null,"Distribution"),i.createElement(o,{items:n}))))}}}]);
38
+ `;var d=a(637);const h=()=>{const[t,e]=(0,i.useState)(""),[a,r]=(0,i.useState)([]),[l,s]=(0,i.useState)([]),[n,h]=(0,i.useState)([]);return(0,i.useEffect)((()=>{const e=d._1.filter((e=>e.text.toLowerCase().includes(t.toLowerCase())));r(e),s(e.filter((t=>t.text.startsWith("Growth by")))),h(e.filter((t=>t.text.startsWith("Distribution by"))))}),[t]),i.createElement("article",null,i.createElement(c,{htmlFor:"statistics-filter"},"Browse Statistics"),i.createElement(m,{id:"statistics-filter",type:"text",placeholder:"Search for a statistic",value:t,onChange:t=>e(t.target.value)}),i.createElement("div",{style:{display:"flex"}},l.length>0&&i.createElement(u,null,i.createElement(p,null,"Growth"),i.createElement(o,{items:l})),n.length>0&&i.createElement(u,null,i.createElement(p,null,"Distribution"),i.createElement(o,{items:n}))))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_rcsb_rcsb_statistics=self.webpackChunk_rcsb_rcsb_statistics||[]).push([[637],{637:(e,t,r)=>{r.d(t,{F3:()=>p,Tb:()=>c,_1:()=>l});var a=r(8422),i=r(8132),n=r(7231),o=r(3444);const s=[{key:"overall-structures",title:"Overall",description:"Overall Growth of Released Structures Per Year",stats_notes:"This chart shows the growth in the number of structures released annually in the PDB over time.",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_accession_info.initial_release_date",operator:"range"}}]},facets:[{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:1}],query:{firstDim:{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:1},returnType:n.ReturnType.Entry}},{key:"overall-small-molecules",title:"by Small Molecules Only",description:"Small Molecule-only Structures Released Per Year",stats_notes:"This chart tracks the growth of structures that exclusively contain small molecules released annually in the PDB.",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_accession_info.initial_release_date",operator:"range"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_entry_info.selected_polymer_entity_types",operator:"exact_match",value:"Small Molecule (only)"}}]},facets:[{name:"rcsb_accession_info.initial_release_date",aggregation_type:"date_histogram",attribute:"rcsb_accession_info.initial_release_date",interval:"year"}],query:{firstDim:{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbChemCompInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:1},returnType:n.ReturnType.MolDefinition}},{key:"experimental-method",title:"Growth",description:"Overall Growth By Experimental Method",stats_notes:"This chart visualizes the growth in PDB entries categorized by different experimental methods over time.",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_accession_info.initial_release_date",operator:"range"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_entry_info.experimental_method",operator:"exact_match"}}]},facets:[{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:"date_histogram",attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:1,facets:[{name:`FACET/${i.e.Exptl.Method.path}`,aggregation_type:n.AggregationType.Terms,attribute:"rcsb_entry_info.experimental_method",min_interval_population:1}]}],query:{firstDim:{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:1},secondDim:{name:`FACET/${i.e.Exptl.Method.path}`,aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbEntryInfo.ExperimentalMethod.path,min_interval_population:1},returnType:n.ReturnType.Entry}},{key:"molecular-composition",title:"by Molecular Composition",description:"PDB Data Growth by Molecular Composition",stats_notes:"This chart highlights the growth of PDB entries based on their molecular composition.",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_accession_info.initial_release_date",operator:"range"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_entry_info.selected_polymer_entity_types",operator:"terms"}}]},facets:[{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:0,facets:[{name:`FACET/${i.e.Exptl.Method.path}`,aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbEntryInfo.SelectedPolymerEntityTypes.path}]}],query:{firstDim:{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:0},secondDim:{name:`FACET/${i.e.Exptl.Method.path}`,aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbEntryInfo.SelectedPolymerEntityTypes.path},returnType:n.ReturnType.Entry}},{key:"assembly-symmetry",title:"by Assembly Symmetry",description:"PDB Data Growth by Assembly Symmetry",stats_notes:"This chart shows the growth of PDB entries based on their global assembly symmetry classifications.",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_accession_info.initial_release_date",operator:"range"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_struct_symmetry.type",operator:"terms"}}]},facets:[{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:0,facets:[{name:`FACET/${i.e.RcsbStructSymmetry.Kind.enum["Global Symmetry"]}`,aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbStructSymmetry.Type.path}]}],query:{firstDim:{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:0},secondDim:{name:`FACET/${i.e.RcsbStructSymmetry.Kind.enum["Global Symmetry"]}`,aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbStructSymmetry.Type.path},returnType:n.ReturnType.Entry}},{key:"number-of-domains",title:"by Number of Domains",description:"PDB Data Growth by Number of Unique Domains",stats_notes:"This chart visualizes the growth of structures by the number of unique domains.",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_accession_info.initial_release_date",operator:"range"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_polymer_entity_group_membership.aggregation_method",operator:"exact_match",value:"matching_uniprot_accession"}}]},facets:[{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:0,facets:[{name:"Unique UniProtKB Entries",aggregation_type:n.AggregationType.Terms,attribute:"rcsb_polymer_entity_group_membership.group_id"}]}],query:{firstDim:{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:0},secondDim:{filter:{type:n.Type.Terminal,service:n.Service.Text,parameters:{attribute:i.e.RcsbPolymerEntityGroupMembership.AggregationMethod.path,operator:n.Operator.ExactMatch,value:i.e.RcsbPolymerEntityGroupMembership.AggregationMethod.enum.sequence_identity}},facets:[{name:"Similarity Cutoff",aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbPolymerEntityGroupMembership.SimilarityCutoff.path,min_interval_population:1,facets:[{name:"Unique Protein Sequences",aggregation_type:n.AggregationType.Cardinality,attribute:i.e.RcsbPolymerEntityGroupMembership.GroupId.path}]}]},returnType:n.ReturnType.Entry}},{key:"unique-protein-sequences",title:"by Unique Protein Sequences",description:"PDB Data Growth by Unique Protein Sequences",stats_notes:"This chart illustrates the growth of PDB structures based on the number of unique protein sequences.",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_accession_info.initial_release_date",operator:"range"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_polymer_entity_group_membership.aggregation_method",operator:"exact_match",value:"matching_uniprot_accession"}}]},facets:[{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:0,facets:[{name:"Unique UniProtKB Entries",aggregation_type:n.AggregationType.Terms,attribute:"rcsb_polymer_entity_group_membership.group_id"}]}],query:{firstDim:{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:0},secondDim:{filter:{type:n.Type.Terminal,service:n.Service.Text,parameters:{attribute:i.e.RcsbPolymerEntityGroupMembership.AggregationMethod.path,operator:n.Operator.ExactMatch,value:n.AggregationMethod.MatchingUniprotAccession}},facets:[{name:"Unique UniProtKB Entries",aggregation_type:n.AggregationType.Cardinality,attribute:i.e.RcsbPolymerEntityGroupMembership.GroupId.path}]},returnType:n.ReturnType.Entry}},{key:"distribution-resolution",title:"by Resolution",description:"PDB Data Distribution by Resolution",header_label:"Resolution (Å)",stats_notes:"Distribution by structure resolution. Data shown include structures solved by X-ray crystallography or electron microscopy.",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_entry_info.resolution_combined",operator:"range"}}]},facets:u("rcsb_entry_info.resolution_combined",1,4.6,.2,!0),query:{firstDim:{name:"Resolution Combined",aggregation_type:n.AggregationType.Range,attribute:i.e.RcsbEntryInfo.ResolutionCombined.path,ranges:(0,a.Y$)(1,.2,4.6)},returnType:n.ReturnType.Entry}},{key:"distribution-r-free",title:"by R-free",description:"PDB Data Distribution by R-free",header_label:"R-free (%)",stats_notes:"Distribution of PDB structures by R-free. Data shown include structures solved by X-ray crystallography or electron microscopy.",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"refine.ls_R_factor_R_free",operator:"range"}}]},facets:u("refine.ls_R_factor_R_free",.14,.32,.01,!0),query:{firstDim:{name:"R-free",aggregation_type:n.AggregationType.Range,attribute:i.e.Refine.LsRFactorRFree.path,ranges:(0,a.Y$)(.14,.01,.32)},returnType:n.ReturnType.Entry}},{key:"distribution-molecular-weight-structure",title:"by Molecular Weight (Structure)",description:"PDB Data Distribution by Molecular Weight (Structure)",header_label:"Molecular Weight (Daltons)",stats_notes:"All macromolecules, small molecules, and ions are included, except for water molecules. Molecular weight is calculated for all atoms.",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_entry_info.molecular_weight",operator:"range"}}]},facets:u("rcsb_entry_info.molecular_weight",20,380,20,!1),query:{firstDim:{name:"Molecular Weight",aggregation_type:n.AggregationType.Range,attribute:i.e.RcsbEntryInfo.MolecularWeight.path,ranges:(0,a.Y$)(20,20,380)},returnType:n.ReturnType.Entry}},{key:"distribution-atom-count",title:"by Atom Count",description:"PDB Data Distribution by Atom Count",header_label:"Atom Count Range",stats_notes:"Distribution of released structures by the number of observed atoms excluding atoms in water molecules.",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_entry_info.deposited_atom_count",operator:"range"}}]},facets:u("rcsb_entry_info.deposited_atom_count",1e3,19e3,1e3,!1),query:{firstDim:{name:"Atom Count",aggregation_type:n.AggregationType.Range,attribute:i.e.RcsbEntryInfo.DepositedAtomCount.path,ranges:(0,a.Y$)(1e3,1e3,19e3)},returnType:n.ReturnType.Entry}},{key:"distribution-residue-count",title:"by Residue Count",description:"PDB Data Distribution by Residue Count",header_label:"Residue Count Range",stats_notes:"Distribution of released structures by the number of residues in macromolecules.",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_entry_info.deposited_polymer_monomer_count",operator:"range"}}]},facets:u("rcsb_entry_info.deposited_polymer_monomer_count",100,1900,100,!1),query:{firstDim:{name:"Residue Count",aggregation_type:n.AggregationType.Range,attribute:i.e.RcsbEntryInfo.DepositedPolymerMonomerCount.path,ranges:(0,a.Y$)(100,100,1900)},returnType:n.ReturnType.Entry}},{key:"distribution-source-organism-natural",title:"by Natural Source Organism",description:"PDB Data Distribution by Natural Source Organism",header_label:"Natural Source Organism",stats_notes:"Source organism for these structures is from a natural, non-modified source.",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.ncbi_scientific_name",operator:"exact_match"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.source_type",operator:"exact_match",value:"natural"}}]},facets:[{name:"rcsb_entity_source_organism.ncbi_scientific_name",aggregation_type:n.AggregationType.Terms,attribute:"rcsb_entity_source_organism.ncbi_scientific_name",filter:{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.source_type",operator:"exact_match",value:"natural"}},min_interval_population:1}],query:{firstDim:{name:"Source Type",aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbEntitySourceOrganism.SourceType.path,min_interval_population:1,facets:[{name:"Source Organism",aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbEntitySourceOrganism.NcbiScientificName.path,min_interval_population:1,max_num_intervals:20}]},returnType:n.ReturnType.Entry}},{key:"taxonomy",title:"by Taxonomy",description:"PDB Data Distribution by Taxonomy",header_label:"Taxonomy",stats_notes:"Taxonomy classification.",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.ncbi_scientific_name",operator:"exact_match"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.source_type",operator:"exact_match",value:"natural"}}]},facets:[{name:"rcsb_entity_source_organism.ncbi_scientific_name",aggregation_type:n.AggregationType.Terms,attribute:"rcsb_entity_source_organism.ncbi_scientific_name",filter:{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.source_type",operator:"exact_match",value:"natural"}},min_interval_population:1}],query:{firstDim:{name:"Taxonomy",aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbEntitySourceOrganism.NcbiParentScientificName.path,min_interval_population:1,max_num_intervals:20},returnType:n.ReturnType.PolymerEntity}},{key:"enzyme-classification-name",title:"by Enzyme Classification",description:"PDB Data Distribution by Enzyme Classification",header_label:"Enzyme Classification",stats_notes:"Enzyme Classification",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.ncbi_scientific_name",operator:"exact_match"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.source_type",operator:"exact_match",value:"natural"}}]},facets:[{name:"rcsb_entity_source_organism.ncbi_scientific_name",aggregation_type:n.AggregationType.Terms,attribute:"rcsb_entity_source_organism.ncbi_scientific_name",filter:{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.source_type",operator:"exact_match",value:"natural"}},min_interval_population:1}],query:{firstDim:{filter:{type:n.Type.Terminal,service:n.Service.Text,parameters:{attribute:i.e.RcsbPolymerEntity.RcsbEcLineage.Depth.path,operator:n.Operator.Equals,value:1}},facets:[{name:"Enzyme Classification",aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbPolymerEntity.RcsbEcLineage.Name.path,min_interval_population:1,max_num_intervals:20}]},returnType:n.ReturnType.PolymerEntity}},{key:"assembly-symmetry-dist",title:"by Assembly Symmetry",description:"PDB Data Distribution by Assembly Symmetry",header_label:"Assembly Symmetry",stats_notes:"Assembly Symmetry",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.ncbi_scientific_name",operator:"exact_match"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.source_type",operator:"exact_match",value:"natural"}}]},facets:[{name:"rcsb_entity_source_organism.ncbi_scientific_name",aggregation_type:n.AggregationType.Terms,attribute:"rcsb_entity_source_organism.ncbi_scientific_name",filter:{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.source_type",operator:"exact_match",value:"natural"}},min_interval_population:1}],query:{firstDim:{filter:{type:n.Type.Terminal,service:n.Service.Text,parameters:{attribute:i.e.RcsbStructSymmetry.Kind.path,operator:n.Operator.ExactMatch,value:i.e.RcsbStructSymmetry.Kind.enum["Global Symmetry"]}},facets:[{name:i.e.RcsbStructSymmetry.Kind.enum["Global Symmetry"],aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbStructSymmetry.Type.path,min_interval_population:1}]},returnType:n.ReturnType.Assembly}},{key:"scop-classification",title:"by SCOP Classification",description:"PDB Data Distribution by SCOP Classification",header_label:"SCOP Classification",stats_notes:"SCOP Classification",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.ncbi_scientific_name",operator:"exact_match"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.source_type",operator:"exact_match",value:"natural"}}]},facets:[{name:"rcsb_entity_source_organism.ncbi_scientific_name",aggregation_type:n.AggregationType.Terms,attribute:"rcsb_entity_source_organism.ncbi_scientific_name",filter:{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.source_type",operator:"exact_match",value:"natural"}},min_interval_population:1}],query:{firstDim:{filter:{type:n.Type.Terminal,service:n.Service.Text,parameters:{attribute:i.e.RcsbPolymerInstanceAnnotation.Type.path,operator:n.Operator.ExactMatch,value:"SCOP"}},facets:[{filter:{type:n.Type.Terminal,service:n.Service.Text,parameters:{attribute:i.e.RcsbPolymerInstanceAnnotation.AnnotationLineage.Depth.path,operator:n.Operator.Equals,value:1}},facets:[{name:"SCOP Classification",aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbPolymerInstanceAnnotation.AnnotationLineage.Name.path,min_interval_population:1,max_num_intervals:20}]}]},returnType:n.ReturnType.PolymerEntity}}],c={getStatisticsChartObject:e=>(0,a.lq)("key",e,s)?.[0]},l=[{text:"Growth by Overall Structures",link:o.A.PDB_DATA_GROWTH("overall-structures")},{text:"Growth by Overall Small Molecules",link:o.A.PDB_DATA_GROWTH("overall-small-molecules")},{text:"Growth by Experimental Method",link:o.A.PDB_DATA_GROWTH("experimental-method")},{text:"Growth by Molecular Composition",link:o.A.PDB_DATA_GROWTH("molecular-composition")},{text:"Growth by Assembly Symmetry",link:o.A.PDB_DATA_GROWTH("assembly-symmetry")},{text:"Growth by Number of Domains",link:o.A.PDB_DATA_GROWTH("number-of-domains")},{text:"Growth by Unique Protein Sequences",link:o.A.PDB_DATA_GROWTH("unique-protein-sequences")},{text:"Distribution by Resolution",link:o.A.PDB_DATA_DISTRIBUTION("distribution-resolution")},{text:"Distribution by R-free",link:o.A.PDB_DATA_DISTRIBUTION("distribution-r-free")},{text:"Distribution by Molecular Weight (Structure)",link:o.A.PDB_DATA_DISTRIBUTION("distribution-molecular-weight-structure")},{text:"Distribution by Atom Count",link:o.A.PDB_DATA_DISTRIBUTION("distribution-atom-count")},{text:"Distribution by Residue Count",link:o.A.PDB_DATA_DISTRIBUTION("distribution-residue-count")},{text:"Distribution by Source Organism",link:o.A.PDB_DATA_DISTRIBUTION("distribution-source-organism-natural")},{text:"Distribution by Taxonomy",link:o.A.PDB_DATA_DISTRIBUTION("taxonomy")},{text:"Distribution by Processing Software",link:o.A.PDB_DATA_DISTRIBUTION("distribution-software")},{text:"Distribution by Space Groups",link:o.A.PDB_DATA_DISTRIBUTION("distribution-space-group")},{text:"Distribution by Publication Journal",link:o.A.PDB_DATA_DISTRIBUTION("distribution-journal")},{text:"Distribution by Structural Genomics Centers",link:o.A.PDB_DATA_DISTRIBUTION("distribution-structural-genomics-centers")},{text:"Distribution by Enzyme Classification",link:o.A.PDB_DATA_DISTRIBUTION("enzyme-classification-name")},{text:"Distribution by Assembly Symmetry",link:o.A.PDB_DATA_DISTRIBUTION("assembly-symmetry-dist")},{text:"Distribution by SCOP Classification",link:o.A.PDB_DATA_DISTRIBUTION("scop-classification")}];function u(e,t,r,a,i){const n=[];let o=t;for(;o<r;){const e=i?parseFloat((o+a).toFixed(2)):o+a;n.push({key:`${o}-${e}`,value:{gte:o,lt:e}}),o=e}return n.push({key:`>=${r}`,value:{gte:r}}),[{name:e,aggregation_type:"range",attribute:e,facets:n.map((t=>({name:`${t.key}`,aggregation_type:"range",attribute:e,filter:{type:"range",service:"text",parameters:{attribute:e,operator:"range",value:`${t.value.gte}-${t.value.lt}`}}})))}]}function p(e,t,r){if(!e)return"";const a={from:`${t}-01-01T00:00:00Z`,to:`${t}-12-31T23:59:59Z`,include_lower:!0,include_upper:!0};if(e.parameters)e.parameters.value=a;else{if(!e.nodes||!e.nodes[0]?.parameters)throw new Error("Invalid object structure for query");e.nodes[0].parameters.value=a}const i={query:e,request_info:{src:"ui",query_id:"growth_stats"},return_type:r},n=JSON.stringify(i);return`/search?request=${encodeURIComponent(n)}`}},8422:(e,t,r)=>{r.d(t,{$Z:()=>l,Y$:()=>p,bl:()=>c,h5:()=>s,lq:()=>o,pF:()=>u});var a=r(3503),i=r.n(a);const n=e=>{const{query:t,return_type:r}=e;return i()(JSON.stringify(t)+r)},o=(e,t,r)=>{let a={request_info:{src:"ui"},return_type:"entry",query:{type:"terminal",node_id:0,service:"text"},request_options:{paginate:{start:0,rows:0},results_content_type:["experimental"]}};return r.filter((i=>"summary"===i[e]&&i[e]===t?(i.request_options&&(a.request_options=i.request_options),a.request_info.query_id=n(a),delete a.query,i.requestQuery=a,r):"distribution-molecular-weight-entity"===i[e]&&i[e]===t?(i.parameters?a.query.parameters=i.parameters:delete a.query,i.facets&&(a.request_options.facets=i.facets,a.return_type="polymer_entity"),a.request_info.query_id=n(a),i.requestQuery=a,r):"distribution-chem-comp-molecular-weight"===i[e]&&i[e]===t||"growth-released-chem-comp"===i[e]&&i[e]===t?(i.parameters?a.query.parameters=i.parameters:delete a.query,i.facets&&(a.request_options.facets=i.facets,a.return_type="mol_definition"),a.request_info.query_id=n(a),i.requestQuery=a,r):i[e]===t?(i.parameters?a.query.parameters=i.parameters:delete a.query,i.facets&&(a.request_options.facets=i.facets),a.request_info.query_id=n(a),i.requestQuery=a,r):void 0))},s=(e,t)=>{const r=`${t.config.searchApiUrl}/query-editor.html?json=`;return e?.searchRequest?`${r}${encodeURIComponent(JSON.stringify(e.searchRequest))}`:r},c=e=>e.map(((t,r)=>{const a=String(t.label),[i,n]=a.split("-");let o="";return o=0===r&&n?`< ${n.replace(".0","")}k`:r===e.length-1&&i?`>= ${i.replace(".0","")}k`:`${i.replace(".0","")+"k"}-${n?n.replace(".0","")+"k":""}`,{...t,label:o}})),l=e=>e.map(((t,r)=>{const a=String(t.label),[i,n]=a.split("-");let o="";return o=0===r&&n?`< ${n.replace(".0","")}`:r===e.length-1&&i?`>= ${i.replace(".0","")}`:`${i}-${n}`,{...t,label:o}})),u=e=>e.map(((t,r)=>{const a=String(t.label),[i,n]=a.split("-");let o="";return o=0===r&&n?`< ${n.replace(".0","")}`:r===e.length-1&&i?`>= ${i.replace(".0","")}`:`${i.replace(".0","")}-${n?n.replace(".0",""):""}`,{...t,label:o}})),p=(e,t,r)=>{const a=[];a.push({to:parseFloat(e.toFixed(2))});let i=e;for(;i<r;){const e=i+t;a.push({from:parseFloat(i.toFixed(2)),to:parseFloat(e.toFixed(2))}),i=e}return a.push({from:parseFloat(r.toFixed(2))}),a}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_rcsb_rcsb_statistics=self.webpackChunk_rcsb_rcsb_statistics||[]).push([[87],{2087:(e,t,l)=>{l.r(t),l.d(t,{default:()=>g});var a=l(6540),r=l(7767),n=l(1559),o=l(3513),c=l(2390),s=l(8533),u=l(6073),b=l(2137),i=l(8027),m=l(6061),d=l(7638),E=l(8422);const g=()=>{const{plotname:e}=(0,r.g)(),t=e||"defaultKey",l="overall-structures"===e||"overall-small-molecules"===e,{data:g,isLoading:f,error:p}=(0,u.A)(t),C=(0,m.R)(),{settings:h}=(0,d.t)();if(f)return a.createElement(c.tt,null,a.createElement(o.A,null));if(p)return a.createElement(c.tt,null,a.createElement(s.A,{error:p}));const k=g&&g.length>0?{labels:g[0].map((e=>e.label)),datasets:g.map(((e,t)=>{const a={};return e.forEach((e=>{a[e.label]=e.population})),{label:l?0===t?"Annual":"Cumulative":e[0]?.objectConfig?.objectId?.[1]??`Dataset ${t+1}`,data:g[0].map((e=>a[e.label]||0)),backgroundColor:e[0]?.objectConfig?.color||"rgba(0, 0, 0, 0.1)",borderColor:e[0]?.objectConfig?.color||"rgba(0, 0, 0, 0.1)",borderWidth:1,objectConfig:e.map((e=>e.objectConfig))}}))}:null,A=e&&b.A[e];return a.createElement(c.tt,{key:e},k&&A?a.createElement(a.Fragment,null,a.createElement(c.Kb,null,a.createElement(c.OV,{onClick:()=>{const e=(0,E.h5)(C,h);e&&window.open(e,"_blank")}},a.createElement(i.Pcn,null)," Search API")),a.createElement(n.A,{data:k,options:A,isOverallPlot:l,isDistPlot:!1})):a.createElement(c.tt,null,a.createElement(s.A,{error:new Error("No data available")})))}}}]);
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunk_rcsb_rcsb_statistics=self.webpackChunk_rcsb_rcsb_statistics||[]).push([[944],{1559:(e,t,o)=>{o.d(t,{A:()=>C});var i=o(6540),r=o(4731),a=o(6118),n=o(3839),l=o(7581),s=o(1105),c=o(3048),d=o(4479),u=o(1376),m=o(7767),p=o(8027),b=o(2756);a.t1.register(a.PP,a.kc,a.E8,a.hE,a.m_,a.s$,n.Ay);const g=l.Ay.div`
1
+ "use strict";(self.webpackChunk_rcsb_rcsb_statistics=self.webpackChunk_rcsb_rcsb_statistics||[]).push([[944],{1559:(e,t,i)=>{i.d(t,{A:()=>C});var a=i(6540),o=i(4731),r=i(6118),n=i(3839),l=i(7581),s=i(1105),c=i(3048),d=i(4479),p=i(1376),u=i(7767),g=i(8027),b=i(2756);r.t1.register(r.PP,r.kc,r.E8,r.hE,r.m_,r.s$,n.Ay);const m=l.Ay.div`
2
2
  padding-left: 7px;
3
3
  margin-top: 40px;
4
4
  `,y=(0,l.Ay)(s.A)`
@@ -24,21 +24,21 @@
24
24
  display: flex;
25
25
  align-items: center;
26
26
  margin-bottom: 5px;
27
- `,_=l.Ay.input`
27
+ `,v=l.Ay.input`
28
28
  margin-right: 20px;
29
- `,v=l.Ay.label`
29
+ `,z=l.Ay.label`
30
30
  font-size: 12px;
31
31
  margin-left: 5px;
32
32
  font-weight: normal;
33
33
  margin-bottom: 0 !important;
34
- `,w=l.Ay.div`
34
+ `,A=l.Ay.div`
35
35
  font-weight: bold;
36
36
  font-size: 1.2em;
37
37
  margin-bottom: 15px;
38
- `,z=l.Ay.div`
38
+ `,k=l.Ay.div`
39
39
  width: auto;
40
40
  height: 550px;
41
- `,k=l.Ay.div`
41
+ `,R=l.Ay.div`
42
42
  margin-top: 20px;
43
43
  label {
44
44
  font-size: 12px;
@@ -51,12 +51,12 @@
51
51
  display: flex;
52
52
  align-items: center;
53
53
  }
54
- `,A=l.Ay.div`
54
+ `,w=l.Ay.div`
55
55
  margin-bottom: 35px;
56
56
  `,S=l.Ay.div`
57
57
  font-weight: bold;
58
58
  margin-bottom: 5px;
59
- `,R=e=>{const t=e.datasets.map((e=>{const t=[];let o=0;return e.data.forEach((e=>{o+=e,t.push(o)})),{...e,data:t}}));return{...e,datasets:t}},C=e=>{let{data:t,options:o,isOverallPlot:a,isDistPlot:n}=e;const l=(0,i.useRef)(null),C=(0,m.zy)(),E=(0,m.Zp)(),{handleOpenModal:D}=(0,b.h)(),[$,F]=(0,i.useState)((()=>{const e=new URLSearchParams(C.search);return t.datasets.map((t=>{const o=t.label||"";return{label:o,visible:"false"!==e.get(o)}}))})),[T,P]=(0,i.useState)((()=>{const e=new URLSearchParams(C.search);return n?"Annual":e.get("view")||"Cumulative"})),[N,B]=(0,i.useState)((()=>{const e=new URLSearchParams(C.search);return"Cumulative"===(n?"Annual":e.get("view")||"Cumulative")?R(t):t}));(0,i.useEffect)((()=>{const e=new URLSearchParams(C.search);$.forEach((t=>{e.set(t.label,String(t.visible))})),e.set("view",T),E(`${C.pathname}?${e.toString()}`,{replace:!0})}),[$,T,C.pathname,E]),(0,i.useEffect)((()=>{a&&F((e=>e.map((e=>"Cumulative"===e.label?{...e,visible:!1}:e))))}),[a]),(0,i.useEffect)((()=>{if("Cumulative"===T){const e=R(t);B({labels:t.labels,datasets:e.datasets.map((e=>({...e,hidden:!$.find((t=>t.label===e.label))?.visible})))})}else B({labels:t.labels,datasets:t.datasets.map((e=>({...e,hidden:!$.find((t=>t.label===e.label))?.visible})))})}),[T,t,$]);const H=e=>{F((t=>t.map((t=>t.label===e?{...t,visible:!t.visible}:t))))},W=e=>{P(e)},I={...o,plugins:{...o.plugins,legend:{...o.plugins?.legend,onClick:(e,t,o)=>((e,t)=>{const o=t.datasetIndex,i=e.data.datasets[o].label;i&&H(i)})(o.chart,t)}}};return i.createElement(c.A,null,i.createElement(d.A,null,i.createElement(s.A,{md:10},i.createElement(z,null,i.createElement(r.yP,{ref:l,data:N,options:I,onClick:e=>{if(l.current){const t=(0,r.CK)(l.current,e);if(t.length>0){const{index:e}=t[0];let o="";for(const t of l.current.data.datasets){const i=t;if(i.objectConfig&&i.objectConfig[e]){o=i.objectConfig[e].url;break}}o&&(window.location.href=o)}}}}))),i.createElement(s.A,{md:2},i.createElement(d.A,null,i.createElement(y,{md:2},i.createElement(f,null,i.createElement(h,{onClick:()=>D("settings")},i.createElement(p.Pcn,{size:15})),i.createElement(h,{disabled:!0,onClick:()=>D("information")},i.createElement(p.__w,{size:15})),i.createElement(h,{disabled:!0},i.createElement(p.kxO,{size:15})),i.createElement(h,{disabled:!0},i.createElement(p.ist,{size:15})),i.createElement(h,{disabled:!0},i.createElement(p.YYR,{size:15})),i.createElement(h,{disabled:!0},i.createElement(p.$TP,{size:15})),i.createElement(h,{disabled:!0},i.createElement(p.DIg,{size:15})))),i.createElement(s.A,{md:10},i.createElement(g,null,n?i.createElement(A,null,i.createElement(S,null)):i.createElement(i.Fragment,null,i.createElement(w,null,"Data Options"),!a&&i.createElement(A,null,i.createElement(S,null,"Data Shown"),$.map((e=>i.createElement(x,{key:e.label},i.createElement(_,{type:"checkbox",id:e.label,checked:e.visible,onChange:()=>H(e.label)}),i.createElement(v,{htmlFor:e.label},e.label))))),i.createElement(k,null,i.createElement(S,null,"Data Set"),i.createElement(u.A.Check,{type:"radio",id:"view-annual",label:"Annual",name:"view-switch",value:"Annual",checked:"Annual"===T,onChange:()=>W("Annual")}),i.createElement(u.A.Check,{type:"radio",id:"view-cumulative",label:"Cumulative",name:"view-switch",value:"Cumulative",checked:"Cumulative"===T,onChange:()=>W("Cumulative")})))))))))}},2137:(e,t,o)=>{o.d(t,{A:()=>r});const i={responsive:!0,maintainAspectRatio:!0,plugins:{title:{display:!0,font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!0,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"x"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}},scales:{x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Year",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:1e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:11,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},r={"overall-structures":{...i,plugins:{...i.plugins,title:{...i.plugins?.title,text:"PDB Statistics: Growth of Overall Structures"},legend:{display:!1},tooltip:{...i.plugins?.tooltip,callbacks:{label:function(e){const t=e.datasetIndex;return 0===t?`Structures Released Annually: ${e.raw}`:1===t?`Entries Available: ${e.raw}`:`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`}}}},scales:{x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Year",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e4,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}}}},"overall-small-molecules":{...i,plugins:{...i.plugins,title:{...i.plugins?.title,text:"PDB Statistics: Growth of Released Small Small Molecules"},legend:{display:!1},tooltip:{...i.plugins?.tooltip,callbacks:{label:function(e){const t=e.datasetIndex;return 0===t?`Small Molecules Released Annually: ${e.raw}`:1===t?`Small Molecules Available: ${e.raw}`:`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`}}}},scales:{x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Year",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}}}},"experimental-method":{...i,plugins:{...i.plugins,title:{...i.plugins?.title,text:"PDB Statistics: Growth by Experimental Method"},tooltip:{...i.plugins?.tooltip,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}}},scales:{x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Year",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:1e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}}}},"molecular-composition":{...i,plugins:{...i.plugins,title:{...i.plugins?.title,text:"PDB Statistics: Growth by Molecular Composition"},tooltip:{...i.plugins?.tooltip,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}}}},"assembly-symmetry":{...i,plugins:{...i.plugins,title:{...i.plugins?.title,text:"PDB Statistics: Growth by Assembly Symmetry"},tooltip:{...i.plugins?.tooltip,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}}}},"number-of-domains":{...i,plugins:{...i.plugins,title:{...i.plugins?.title,text:"PDB Statistics: Growth by Number of Domains"},tooltip:{...i.plugins?.tooltip,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}}}},"unique-protein-sequences":{...i,plugins:{...i.plugins,title:{...i.plugins?.title,text:"PDB Statistics: Growth by Unique Protein Sequences"},tooltip:{...i.plugins?.tooltip,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}}}},"distribution-source-organism-natural":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Natural Source Organism",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Natural Source Organism",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},taxonomy:{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Taxonomy",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Taxonomy",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-software":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Processing Software",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Software Used",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-space-group":{responsive:!0,maintainAspectRatio:!1,indexAxis:"x",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Space Group",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Space Group",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-journal":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Journal",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Journal",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-structural-genomics-centers":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Structural Genomics Centers",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Structural Genomics Center",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"enzyme-classification-name":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Enzyme Classification Name",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Enzyme Classification",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"assembly-symmetry-dist":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Assembly Symmetry Type",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Assembly Symmetry Type",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"scop-classification":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by SCOP Classification",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"SCOP Classification",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-resolution":{responsive:!0,maintainAspectRatio:!1,indexAxis:"x",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Resolution",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"x"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}},scales:{x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Resolution (Angstrom)",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-r-free":{responsive:!0,maintainAspectRatio:!1,indexAxis:"x",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by R-free",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"x"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}},scales:{y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"R-free (%)",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-molecular-weight-structure":{responsive:!0,maintainAspectRatio:!1,indexAxis:"x",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Molecular Weight Structure",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0}},scales:{y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Molecular Weight (Daltons)",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-atom-count":{responsive:!0,maintainAspectRatio:!1,indexAxis:"x",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Atom Count",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Atom count Range",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-residue-count":{responsive:!0,maintainAspectRatio:!1,indexAxis:"x",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Residue Count",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Residue Count Range",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}}}},6073:(e,t,o)=>{o.d(t,{A:()=>O});var i=o(176),r=o(8132),a=o(7231),n=o(7704),l=o(8154),s=o(2543),c=o(6783),d=o(6061),u=o(991);const m=e=>{const t=u.Tb.getGrowthObject(e),o=t?.facets?.[0],i=t?.ref_url;return{existingFacets:o,ref_url:i}},p=e=>{const t=u.Tb.getDistributionObject(e),o=t?.facets?.[0],i=t?.ref_url;return{existingFacets:o,ref_url:i}};function b(e){return fetch("https://search.rcsb.org/rcsbsearch/v2/query",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>{if(!e.ok)throw new Error(e.statusText);return e.json()})).catch((e=>{throw console.error("Error:",e),e}))}const g=async(e,t)=>{const{existingFacets:o,ref_url:i}=m("growth-released-structures");if(!o)throw new Error("Facets are missing or invalid for growth-released-structures");const r={firstDim:{name:o.name,aggregation_type:o.aggregation_type,attribute:o.attribute,interval:o.interval,min_interval_population:o.min_interval_population},returnType:a.ReturnType.Entry};return B(e,r,!1,i,t)},y=async(e,t)=>{const{existingFacets:o,ref_url:i}=m("overall-small-molecules");if(!o)throw new Error("Facets are missing or invalid for overall-small-molecules");const n={firstDim:{name:`FACET/${r.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:a.AggregationType.DateHistogram,attribute:"rcsb_chem_comp_info.initial_release_date",interval:a.Interval.Year,min_interval_population:1},returnType:a.ReturnType.MolDefinition};return B(e,n,!1,i,t)},f=async(e,t)=>{const{existingFacets:o,ref_url:i}=m("experimental-method");if(!o)throw new Error("Facets are missing or invalid for experimental-method");const n={firstDim:{name:`FACET/${r.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:"date_histogram",attribute:r.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:a.Interval.Year,min_interval_population:1},secondDim:{name:`FACET/${r.e.Exptl.Method.path}`,aggregation_type:a.AggregationType.Terms,attribute:"rcsb_entry_info.experimental_method",min_interval_population:1},returnType:a.ReturnType.Entry};return B(e,n,!1,i,t)},h=async(e,t)=>{const{existingFacets:o,ref_url:i}=m("molecular-composition");if(!o)throw new Error("Facets are missing or invalid for molecular-composition");const n={firstDim:{name:`FACET/${r.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:a.AggregationType.DateHistogram,attribute:r.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:a.Interval.Year,min_interval_population:0},secondDim:{name:`FACET/${r.e.Exptl.Method.path}`,aggregation_type:a.AggregationType.Terms,attribute:"rcsb_entry_info.selected_polymer_entity_types"},returnType:a.ReturnType.Entry};return B(e,n,!1,i,t)},x=async(e,t)=>{const{existingFacets:o,ref_url:i}=m("assembly-symmetry");if(!o)throw new Error("Facets are missing or invalid for assembly-symmetry");const n={firstDim:{name:`FACET/${r.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:a.AggregationType.DateHistogram,attribute:r.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:a.Interval.Year,min_interval_population:0},secondDim:{name:`FACET/${r.e.RcsbStructSymmetry.Kind.enum["Global Symmetry"]}`,aggregation_type:a.AggregationType.Terms,attribute:"rcsb_struct_symmetry.type"},returnType:a.ReturnType.Entry};return B(e,n,!1,i,t)},_=async(e,t)=>{const{existingFacets:o,ref_url:i}=m("number-of-domains");if(!o)throw new Error("Facets are missing or invalid for number-of-domains");const n={firstDim:{name:`FACET/${r.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:a.AggregationType.DateHistogram,attribute:r.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:a.Interval.Year,min_interval_population:0},secondDim:{filter:{type:"terminal",service:"text",parameters:{attribute:"rcsb_polymer_entity_group_membership.aggregation_method",operator:"exact_match",value:"sequence_identity"}},facets:[{name:"Similarity Cutoff",aggregation_type:"terms",attribute:"rcsb_polymer_entity_group_membership.similarity_cutoff",min_interval_population:1,facets:[{name:"Unique Protein Sequences",aggregation_type:"cardinality",attribute:"rcsb_polymer_entity_group_membership.group_id"}]}]},returnType:a.ReturnType.Entry};return B(e,n,!1,i,t)},v=async(e,t)=>{const{existingFacets:o,ref_url:i}=m("unique-protein-sequences");if(!o)throw new Error("Facets are missing or invalid for unique-protein-sequences");const n={firstDim:{name:`FACET/${r.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:a.AggregationType.DateHistogram,attribute:r.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:a.Interval.Year,min_interval_population:0},secondDim:{filter:{type:"terminal",service:"text",parameters:{attribute:"rcsb_polymer_entity_group_membership.aggregation_method",operator:"exact_match",value:"matching_uniprot_accession"}},facets:[{name:"Unique UniProtKB Entries",aggregation_type:"cardinality",attribute:"rcsb_polymer_entity_group_membership.group_id"}]},returnType:a.ReturnType.Entry};return B(e,n,!1,i,t)},w=async(e,t)=>{const{existingFacets:o,ref_url:i}=p("distribution-resolution");if(!o)throw new Error("Facets are missing or invalid for distribution-resolution");const r={firstDim:{name:"Resolution Combined",aggregation_type:"range",attribute:"rcsb_entry_info.resolution_combined",ranges:[{to:1},{from:1,to:1.2},{from:1.2,to:1.4},{from:1.4,to:1.6},{from:1.6,to:1.8},{from:1.8,to:2},{from:2,to:2.2},{from:2.2,to:2.4},{from:2.4,to:2.6},{from:2.6,to:2.8},{from:2.8,to:3},{from:3,to:3.2},{from:3.2,to:3.4},{from:3.4,to:3.6},{from:3.6,to:3.8},{from:3.8,to:4},{from:4,to:4.2},{from:4.2,to:4.4},{from:4.4,to:4.6},{from:4.6}]},returnType:a.ReturnType.Entry};return H(e,r,!1,i,t)},z=async(e,t)=>{const{existingFacets:o,ref_url:i}=p("distribution-r-free");if(!o)throw new Error("Facets are missing or invalid for distribution-r-free");const r={firstDim:{name:"R-free",aggregation_type:"range",attribute:"refine.ls_R_factor_R_free",ranges:[{to:.14},{from:.14,to:.15},{from:.15,to:.16},{from:.16,to:.17},{from:.17,to:.18},{from:.18,to:.19},{from:.19,to:.2},{from:.2,to:.21},{from:.21,to:.22},{from:.22,to:.23},{from:.23,to:.24},{from:.24,to:.25},{from:.25,to:.26},{from:.26,to:.27},{from:.27,to:.28},{from:.28,to:.29},{from:.29,to:.3},{from:.3,to:.31},{from:.31,to:.32},{from:.32}]},returnType:a.ReturnType.Entry};return H(e,r,!1,i,t)},k=async(e,t)=>{const{existingFacets:o,ref_url:i}=p("distribution-molecular-weight-structure");if(!o)throw new Error("Facets are missing or invalid for distribution-molecular-weight-structure");const r={firstDim:{name:"Molecular Weight",aggregation_type:"range",attribute:"rcsb_entry_info.molecular_weight",ranges:[{to:20},{from:20,to:40},{from:40,to:60},{from:60,to:80},{from:80,to:100},{from:100,to:120},{from:120,to:140},{from:140,to:160},{from:160,to:180},{from:180,to:200},{from:200,to:220},{from:220,to:240},{from:240,to:260},{from:260,to:280},{from:280,to:300},{from:300,to:320},{from:320,to:340},{from:340,to:360},{from:360,to:380},{from:380}]},returnType:a.ReturnType.Entry};return H(e,r,!1,i,t)},A=async(e,t)=>{const{existingFacets:o,ref_url:i}=p("distribution-atom-count");if(!o)throw new Error("Facets are missing or distribution-atom-count");const r={firstDim:{name:"Atom Count",aggregation_type:"range",attribute:"rcsb_entry_info.deposited_atom_count",ranges:[{to:100},{from:100,to:200},{from:200,to:300},{from:300,to:400},{from:400,to:500},{from:500,to:600},{from:600,to:700},{from:700,to:800},{from:800,to:900},{from:900,to:1e3},{from:1e3,to:1100},{from:1100,to:1200},{from:1200,to:1300},{from:1300,to:1400},{from:1400,to:1500},{from:1500,to:1600},{from:1600,to:1700},{from:1700,to:1800},{from:1800,to:1900},{from:1900}]},returnType:a.ReturnType.Entry};return H(e,r,!1,i,t)},S=async(e,t)=>{const{existingFacets:o,ref_url:i}=p("distribution-residue-count");if(!o)throw new Error("Facets are missing or invalid for distribution-residue-count");const r={firstDim:{name:"Residue Count",aggregation_type:"range",attribute:"rcsb_entry_info.deposited_polymer_monomer_count",ranges:[{to:100},{from:100,to:200},{from:200,to:300},{from:300,to:400},{from:400,to:500},{from:500,to:600},{from:600,to:700},{from:700,to:800},{from:800,to:900},{from:900,to:1e3},{from:1e3,to:1100},{from:1100,to:1200},{from:1200,to:1300},{from:1300,to:1400},{from:1400,to:1500},{from:1500,to:1600},{from:1600,to:1700},{from:1700,to:1800},{from:1800,to:1900},{from:1900}]},returnType:a.ReturnType.Entry};return H(e,r,!1,i,t)},R=async(e,t)=>{const{existingFacets:o,ref_url:i}=p("distribution-source-organism-natural");if(!o)throw new Error("Facets are missing or invalid for source-organism");const r={firstDim:{name:"Source Type",aggregation_type:"terms",attribute:"rcsb_entity_source_organism.source_type",min_interval_population:1,facets:[{name:"Source Type",aggregation_type:"terms",attribute:"rcsb_entity_source_organism.source_type",min_interval_population:1,facets:[{name:"Source Organism",aggregation_type:"terms",attribute:"rcsb_entity_source_organism.ncbi_scientific_name",min_interval_population:1,max_num_intervals:20},{name:"Source Organism Count",aggregation_type:"cardinality",attribute:"rcsb_entity_source_organism.ncbi_scientific_name"}]}]},returnType:a.ReturnType.PolymerEntity};return H(e,r,!1,i,t)},C=async(e,t)=>{const{existingFacets:o,ref_url:i}=p("taxonomy");if(!o)throw new Error("Facets are missing or invalid for taxonomy");const r={firstDim:{name:"Taxonomy",aggregation_type:"terms",attribute:"rcsb_entity_source_organism.ncbi_parent_scientific_name",min_interval_population:1,max_num_intervals:20},returnType:a.ReturnType.PolymerEntity};return H(e,r,!1,i,t)},E=async(e,t)=>{const{existingFacets:o,ref_url:i}=p("distribution-software");if(!o)throw new Error("Facets are missing or invalid for distribution-software");const r={firstDim:{name:"Processing Software",aggregation_type:"terms",attribute:"rcsb_entry_info.software_programs_combined",min_interval_population:1,max_num_intervals:20},returnType:a.ReturnType.Entry};return H(e,r,!1,i,t)},D=async(e,t)=>{const{existingFacets:o,ref_url:i}=p("distribution-space-group");if(!o)throw new Error("Facets are missing or invalid for distribution-space-group");const r={firstDim:{name:"Space Groups",aggregation_type:"terms",attribute:"symmetry.space_group_name_H_M",min_interval_population:1,max_num_intervals:20},returnType:a.ReturnType.Entry};return H(e,r,!1,i,t)},$=async(e,t)=>{const{existingFacets:o,ref_url:i}=p("distribution-journal");if(!o)throw new Error("Facets are missing or invalid for distribution-journal");const r={firstDim:{name:"Publication Journal",aggregation_type:"terms",attribute:"rcsb_primary_citation.rcsb_journal_abbrev",min_interval_population:1,max_num_intervals:20},returnType:a.ReturnType.Entry};return H(e,r,!1,i,t)},F=async(e,t)=>{const{existingFacets:o,ref_url:i}=p("distribution-structural-genomics-centers");if(!o)throw new Error("Facets are missing or invalid for distribution-structural-genomics-centers");const r={firstDim:{name:"Structural Genomics Centers",aggregation_type:"terms",attribute:"pdbx_SG_project.full_name_of_center",min_interval_population:1,max_num_intervals:20},returnType:a.ReturnType.Entry};return H(e,r,!1,i,t)},T=async(e,t)=>{const{existingFacets:o,ref_url:i}=p("enzyme-classification-name");if(!o)throw new Error("Facets are missing or invalid for enzyme-classification-name");const r={firstDim:{filter:{type:"terminal",service:"text",parameters:{attribute:"rcsb_polymer_entity.rcsb_ec_lineage.depth",operator:"equals",value:1}},facets:[{name:"Enzyme Classification",aggregation_type:"terms",attribute:"rcsb_polymer_entity.rcsb_ec_lineage.name",min_interval_population:1,max_num_intervals:20}]},returnType:a.ReturnType.PolymerEntity};return H(e,r,!1,i,t)},P=async(e,t)=>{const{existingFacets:o,ref_url:i}=p("assembly-symmetry-dist");if(!o)throw new Error("Facets are missing or invalid for assembly-symmetry-dist");const r={firstDim:{filter:{type:"terminal",service:"text",parameters:{attribute:"rcsb_struct_symmetry.kind",operator:"exact_match",value:"Global Symmetry"}},facets:[{name:"Global Symmetry",aggregation_type:"terms",attribute:"rcsb_struct_symmetry.type",min_interval_population:1}]},returnType:a.ReturnType.Assembly};return H(e,r,!1,i,t)},N=async(e,t)=>{const{existingFacets:o,ref_url:i}=p("scop-classification");if(!o)throw new Error("Facets are missing or invalid for scop-classification");const r={firstDim:{filter:{type:"terminal",service:"text",parameters:{attribute:"rcsb_polymer_instance_annotation.type",operator:"exact_match",value:"SCOP"}},facets:[{filter:{type:"terminal",service:"text",parameters:{attribute:"rcsb_polymer_instance_annotation.annotation_lineage.depth",operator:"equals",value:1}},facets:[{name:"SCOP Classification",aggregation_type:"terms",attribute:"rcsb_polymer_instance_annotation.annotation_lineage.name",min_interval_population:1,max_num_intervals:20}]}]},returnType:a.ReturnType.PolymerEntity};return H(e,r,!1,i,t)},B=async function(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,c=arguments.length>4?arguments[4]:void 0;const d=t.searchQuery??(0,l.XY)({attribute:r.e.RcsbEntryInfo.StructureDeterminationMethodology.path,value:r.e.RcsbEntryInfo.StructureDeterminationMethodology.enum.experimental,operator:r.e.RcsbEntryInfo.StructureDeterminationMethodology.operator.ExactMatch,service:a.Service.Text}),m=(0,s.cloneDeep)(t.firstDim);t.secondDim&&(0,l.vw)(t.secondDim,m);const p=(0,l.G2)(d,t.returnType,{facets:[m]});c("searchRequest",p);const g=await b(p);if(!g)return[[]];const y=(0,n.z)(g),f=y[0].data;if(o&&f.length>0){let o=0;return[f.map((o=>{const r=(0,u.F3)(i,o.label,t.returnType);return{...o,objectConfig:{...o.objectConfig,color:e[0%e.length],label:"Annual",url:r}}})),f.map((r=>{o+=r.population;const a=(0,u.F3)(i,r.label,t.returnType);return{...r,population:o,objectConfig:{objectId:[r.label,o],color:e[1%e.length],label:"Cumulative",url:a}}}))]}return t.secondDim?W(y.filter((e=>e.name===I(t.secondDim))),e,i):[f.map((o=>{const r=(0,u.F3)(i,o.label,t.returnType);return{...o,objectConfig:{objectId:[o.label,o.population],color:e[0%e.length],url:r}}}))]},H=async function(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,c=arguments.length>4?arguments[4]:void 0;const d=t.searchQuery??(0,l.XY)({attribute:r.e.RcsbEntryInfo.StructureDeterminationMethodology.path,value:r.e.RcsbEntryInfo.StructureDeterminationMethodology.enum.experimental,operator:r.e.RcsbEntryInfo.StructureDeterminationMethodology.operator.ExactMatch,service:a.Service.Text}),m=(0,s.cloneDeep)(t.firstDim);t.secondDim&&(0,l.vw)(t.secondDim,m);const p=(0,l.G2)(d,t.returnType,{facets:[m]});c("searchRequest",p);const g=await b(p);if(!g)return[[]];const y=(0,n.z)(g),f=y[0].data;if(o&&f.length>0){let o=0;return[f.map((r=>{o+=r.population;const a=(0,u.F3)(i,r.label,t.returnType);return{...r,population:o,objectConfig:{objectId:[r.label,o],color:e[1%e.length],label:"Cumulative",url:a}}}))]}return t.secondDim?W(y.filter((e=>e.name===I(t.secondDim))),e,i):[f.map((o=>{const r=(0,u.F3)(i,o.label,t.returnType);return{...o,objectConfig:{objectId:[o.label,o.population],color:e[0%e.length],url:r}}}))]},W=(e,t,o)=>{const i=new Set,r=[],a=new Map;e.forEach((e=>{r.push(e.labelPath[0]),e.data.forEach((t=>{i.add(t.label.toString()),a.has(e.labelPath[0])||a.set(e.labelPath[0],new Map),a.get(e.labelPath[0])?.set(t.label.toString(),t.population)}))}));const n=Array.from(i),l=[];return n.forEach(((e,i)=>{const n=[];r.forEach((r=>{if(void 0!==a.get(r)?.get(e)){const l=(0,u.F3)(o,e,"Entry");n.push({label:r,population:a.get(r)?.get(e)??0,objectConfig:{objectId:[r,e,a.get(r)?.get(e)??0],color:t[i%t.length],url:l}})}})),l.push(n)})),l},I=e=>{if("name"in e)return e.name;if(!e.facets||1!==e.facets.length)throw new Error("Multiple facets are not allowed");return I(e.facets[0])},O=(e,t)=>{const{settings:o}=(0,c.t)(),{setProperty:r}=(0,d.R)(),a=o.colorScheme.join(""),n={"overall-structures":g,"overall-small-molecules":y,"experimental-method":f,"molecular-composition":h,"assembly-symmetry":x,"number-of-domains":_,"unique-protein-sequences":v,"distribution-resolution":w,"distribution-r-free":z,"distribution-molecular-weight-structure":k,"distribution-atom-count":A,"distribution-residue-count":S,"distribution-source-organism-natural":R,taxonomy:C,"distribution-software":E,"distribution-space-group":D,"distribution-journal":$,"distribution-structural-genomics-centers":F,"enzyme-classification-name":T,"assembly-symmetry-dist":P,"scop-classification":N};return(0,i.I)({queryKey:[e,t,a],queryFn:()=>{const t=n[e];if(!t)throw new Error(`Unknown query key: ${e}`);return t(o.colorScheme,r)},enabled:!!e})}},2390:(e,t,o)=>{o.d(t,{Kb:()=>n,OV:()=>l,tt:()=>a});var i=o(7581);const r=i.i7`
59
+ `,T=e=>{const t=e.datasets.map((e=>{const t=[];let i=0;return e.data.forEach((e=>{i+=e,t.push(i)})),{...e,data:t}}));return{...e,datasets:t}},C=e=>{let{data:t,options:i,isOverallPlot:r,isDistPlot:n}=e;const l=(0,a.useRef)(null),C=(0,u.zy)(),E=(0,u.Zp)(),{handleOpenModal:D}=(0,b.h)(),[$,P]=(0,a.useState)((()=>{const e=new URLSearchParams(C.search);return t.datasets.map((t=>{const i=t.label||"";return{label:i,visible:"false"!==e.get(i)}}))})),[_,N]=(0,a.useState)((()=>{const e=new URLSearchParams(C.search);return n?"Annual":e.get("view")||"Cumulative"})),[I,H]=(0,a.useState)((()=>{const e=new URLSearchParams(C.search);return"Cumulative"===(n?"Annual":e.get("view")||"Cumulative")?T(t):t}));(0,a.useEffect)((()=>{const e=new URLSearchParams(C.search);$.forEach((t=>{e.set(t.label,String(t.visible))})),e.set("view",_),E(`${C.pathname}?${e.toString()}`,{replace:!0})}),[$,_,C.pathname,E]),(0,a.useEffect)((()=>{r&&P((e=>e.map((e=>"Cumulative"===e.label?{...e,visible:!1}:e))))}),[r]),(0,a.useEffect)((()=>{if("Cumulative"===_){const e=T(t);H({labels:t.labels,datasets:e.datasets.map((e=>({...e,hidden:!$.find((t=>t.label===e.label))?.visible})))})}else H({labels:t.labels,datasets:t.datasets.map((e=>({...e,hidden:!$.find((t=>t.label===e.label))?.visible})))})}),[_,t,$]);const F=e=>{P((t=>t.map((t=>t.label===e?{...t,visible:!t.visible}:t))))},W=e=>{N(e)},B={...i,plugins:{...i.plugins,legend:{...i.plugins?.legend,onClick:(e,t,i)=>((e,t)=>{const i=t.datasetIndex,a=e.data.datasets[i].label;a&&F(a)})(i.chart,t)}}};return a.createElement(c.A,null,a.createElement(d.A,null,a.createElement(s.A,{md:10},a.createElement(k,null,a.createElement(o.yP,{ref:l,data:I,options:B,onClick:e=>{if(l.current){const t=(0,o.CK)(l.current,e);if(t.length>0){const{index:e}=t[0];let i="";for(const t of l.current.data.datasets){const a=t;if(a.objectConfig&&a.objectConfig[e]){i=a.objectConfig[e].url;break}}i&&(window.location.href=i)}}}}))),a.createElement(s.A,{md:2},a.createElement(d.A,null,a.createElement(y,{md:2},a.createElement(f,null,a.createElement(h,{onClick:()=>D("settings")},a.createElement(g.Pcn,{size:15})),a.createElement(h,{disabled:!0,onClick:()=>D("information")},a.createElement(g.__w,{size:15})),a.createElement(h,{disabled:!0},a.createElement(g.kxO,{size:15})),a.createElement(h,{disabled:!0},a.createElement(g.ist,{size:15})),a.createElement(h,{disabled:!0},a.createElement(g.YYR,{size:15})),a.createElement(h,{disabled:!0},a.createElement(g.$TP,{size:15})),a.createElement(h,{disabled:!0},a.createElement(g.DIg,{size:15})))),a.createElement(s.A,{md:10},a.createElement(m,null,n?a.createElement(w,null,a.createElement(S,null)):a.createElement(a.Fragment,null,a.createElement(A,null,"Data Options"),!r&&a.createElement(w,null,a.createElement(S,null,"Data Shown"),$.map((e=>a.createElement(x,{key:e.label},a.createElement(v,{type:"checkbox",id:e.label,checked:e.visible,onChange:()=>F(e.label)}),a.createElement(z,{htmlFor:e.label},e.label))))),a.createElement(R,null,a.createElement(S,null,"Data Set"),a.createElement(p.A.Check,{type:"radio",id:"view-annual",label:"Annual",name:"view-switch",value:"Annual",checked:"Annual"===_,onChange:()=>W("Annual")}),a.createElement(p.A.Check,{type:"radio",id:"view-cumulative",label:"Cumulative",name:"view-switch",value:"Cumulative",checked:"Cumulative"===_,onChange:()=>W("Cumulative")})))))))))}},2137:(e,t,i)=>{i.d(t,{A:()=>o});const a={responsive:!0,maintainAspectRatio:!0,plugins:{title:{display:!0,font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!0,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"x"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}},scales:{x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Year",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:1e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:11,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},o={"overall-structures":{...a,plugins:{...a.plugins,title:{...a.plugins?.title,text:"PDB Statistics: Growth of Overall Structures"},legend:{display:!1},tooltip:{...a.plugins?.tooltip,callbacks:{label:function(e){const t=e.datasetIndex;return 0===t?`Structures Released Annually: ${e.raw}`:1===t?`Entries Available: ${e.raw}`:`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`}}}},scales:{x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Year",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e4,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}}}},"overall-small-molecules":{...a,plugins:{...a.plugins,title:{...a.plugins?.title,text:"PDB Statistics: Growth of Released Small Small Molecules"},legend:{display:!1},tooltip:{...a.plugins?.tooltip,callbacks:{label:function(e){const t=e.datasetIndex;return 0===t?`Small Molecules Released Annually: ${e.raw}`:1===t?`Small Molecules Available: ${e.raw}`:`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`}}}},scales:{x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Year",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}}}},"experimental-method":{...a,plugins:{...a.plugins,title:{...a.plugins?.title,text:"PDB Statistics: Growth by Experimental Method"},tooltip:{...a.plugins?.tooltip,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}}},scales:{x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Year",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:1e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}}}},"molecular-composition":{...a,plugins:{...a.plugins,title:{...a.plugins?.title,text:"PDB Statistics: Growth by Molecular Composition"},tooltip:{...a.plugins?.tooltip,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}}}},"assembly-symmetry":{...a,plugins:{...a.plugins,title:{...a.plugins?.title,text:"PDB Statistics: Growth by Assembly Symmetry"},tooltip:{...a.plugins?.tooltip,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}}}},"number-of-domains":{...a,plugins:{...a.plugins,title:{...a.plugins?.title,text:"PDB Statistics: Growth by Number of Domains"},tooltip:{...a.plugins?.tooltip,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}}}},"unique-protein-sequences":{...a,plugins:{...a.plugins,title:{...a.plugins?.title,text:"PDB Statistics: Growth by Unique Protein Sequences"},tooltip:{...a.plugins?.tooltip,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}}}},"distribution-source-organism-natural":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Natural Source Organism",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Natural Source Organism",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},taxonomy:{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Taxonomy",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Taxonomy",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-software":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Processing Software",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:1e4,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!1,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Software Used",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-space-group":{responsive:!0,maintainAspectRatio:!1,indexAxis:"x",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Space Group",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Space Group",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-journal":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Journal",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Journal",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-structural-genomics-centers":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Structural Genomics Centers",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Structural Genomics Center",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"enzyme-classification-name":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Enzyme Classification Name",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Enzyme Classification",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"assembly-symmetry-dist":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Assembly Symmetry Type",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Assembly Symmetry Type",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"scop-classification":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by SCOP Classification",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"SCOP Classification",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-resolution":{responsive:!0,maintainAspectRatio:!1,indexAxis:"x",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Resolution",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"x"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}},scales:{x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Resolution (Angstrom)",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-r-free":{responsive:!0,maintainAspectRatio:!1,indexAxis:"x",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by R-free",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"x"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}},scales:{y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"R-free (%)",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-molecular-weight-structure":{responsive:!0,maintainAspectRatio:!1,indexAxis:"x",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Molecular Weight Structure",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0}},scales:{y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Molecular Weight (Daltons)",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-atom-count":{responsive:!0,maintainAspectRatio:!1,indexAxis:"x",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Atom Count",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Atom count Range",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-residue-count":{responsive:!0,maintainAspectRatio:!1,indexAxis:"x",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Residue Count",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Residue Count Range",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}}}},6073:(e,t,i)=>{i.d(t,{A:()=>f});var a=i(176),o=i(8132),r=i(7231),n=i(7704),l=i(8154),s=i(2543),c=i(7638),d=i(6061),p=i(637),u=i(8422);const g={"overall-structures":{query:{firstDim:{name:`FACET/${o.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:r.AggregationType.DateHistogram,attribute:o.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:r.Interval.Year,min_interval_population:1},returnType:r.ReturnType.Entry}},"overall-small-molecules":{query:{firstDim:{name:`FACET/${o.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:r.AggregationType.DateHistogram,attribute:o.e.RcsbChemCompInfo.InitialReleaseDate.path,interval:r.Interval.Year,min_interval_population:1},returnType:r.ReturnType.MolDefinition}},"experimental-method":{query:{firstDim:{name:`FACET/${o.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:r.AggregationType.DateHistogram,attribute:o.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:r.Interval.Year,min_interval_population:1},secondDim:{name:`FACET/${o.e.Exptl.Method.path}`,aggregation_type:r.AggregationType.Terms,attribute:o.e.RcsbEntryInfo.ExperimentalMethod.path,min_interval_population:1},returnType:r.ReturnType.Entry}},"molecular-composition":{query:{firstDim:{name:`FACET/${o.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:r.AggregationType.DateHistogram,attribute:o.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:r.Interval.Year,min_interval_population:0},secondDim:{name:`FACET/${o.e.Exptl.Method.path}`,aggregation_type:r.AggregationType.Terms,attribute:o.e.RcsbEntryInfo.SelectedPolymerEntityTypes.path},returnType:r.ReturnType.Entry}},"assembly-symmetry":{query:{firstDim:{name:`FACET/${o.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:r.AggregationType.DateHistogram,attribute:o.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:r.Interval.Year,min_interval_population:0},secondDim:{name:`FACET/${o.e.RcsbStructSymmetry.Kind.enum["Global Symmetry"]}`,aggregation_type:r.AggregationType.Terms,attribute:o.e.RcsbStructSymmetry.Type.path},returnType:r.ReturnType.Entry}},"number-of-domains":{query:{firstDim:{name:`FACET/${o.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:r.AggregationType.DateHistogram,attribute:o.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:r.Interval.Year,min_interval_population:0},secondDim:{filter:{type:r.Type.Terminal,service:r.Service.Text,parameters:{attribute:o.e.RcsbPolymerEntityGroupMembership.AggregationMethod.path,operator:r.Operator.ExactMatch,value:o.e.RcsbPolymerEntityGroupMembership.AggregationMethod.enum.sequence_identity}},facets:[{name:"Similarity Cutoff",aggregation_type:r.AggregationType.Terms,attribute:o.e.RcsbPolymerEntityGroupMembership.SimilarityCutoff.path,min_interval_population:1,facets:[{name:"Unique Protein Sequences",aggregation_type:r.AggregationType.Cardinality,attribute:o.e.RcsbPolymerEntityGroupMembership.GroupId.path}]}]},returnType:r.ReturnType.Entry}},"unique-protein-sequences":{query:{firstDim:{name:`FACET/${o.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:r.AggregationType.DateHistogram,attribute:o.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:r.Interval.Year,min_interval_population:0},secondDim:{filter:{type:r.Type.Terminal,service:r.Service.Text,parameters:{attribute:o.e.RcsbPolymerEntityGroupMembership.AggregationMethod.path,operator:r.Operator.ExactMatch,value:r.AggregationMethod.MatchingUniprotAccession}},facets:[{name:"Unique UniProtKB Entries",aggregation_type:r.AggregationType.Cardinality,attribute:o.e.RcsbPolymerEntityGroupMembership.GroupId.path}]},returnType:r.ReturnType.Entry}},"distribution-resolution":{query:{firstDim:{name:"Resolution Combined",aggregation_type:r.AggregationType.Range,attribute:o.e.RcsbEntryInfo.ResolutionCombined.path,ranges:(0,u.Y$)(1,.2,4.6)},returnType:r.ReturnType.Entry}},"distribution-r-free":{query:{firstDim:{name:"R-free",aggregation_type:r.AggregationType.Range,attribute:o.e.Refine.LsRFactorRFree.path,ranges:(0,u.Y$)(.14,.01,.32)},returnType:r.ReturnType.Entry}},"distribution-molecular-weight-structure":{query:{firstDim:{name:"Molecular Weight",aggregation_type:r.AggregationType.Range,attribute:o.e.RcsbEntryInfo.MolecularWeight.path,ranges:(0,u.Y$)(20,20,380)},returnType:r.ReturnType.Entry}},"distribution-atom-count":{query:{firstDim:{name:"Atom Count",aggregation_type:r.AggregationType.Range,attribute:o.e.RcsbEntryInfo.DepositedAtomCount.path,ranges:(0,u.Y$)(1e3,1e3,19e3)},returnType:r.ReturnType.Entry}},"distribution-residue-count":{query:{firstDim:{name:"Residue Count",aggregation_type:r.AggregationType.Range,attribute:o.e.RcsbEntryInfo.DepositedPolymerMonomerCount.path,ranges:(0,u.Y$)(100,100,1900)},returnType:r.ReturnType.Entry}},"distribution-source-organism-natural":{query:{firstDim:{name:"Source Type",aggregation_type:r.AggregationType.Terms,attribute:o.e.RcsbEntitySourceOrganism.SourceType.path,min_interval_population:1,facets:[{name:"Source Organism",aggregation_type:r.AggregationType.Terms,attribute:o.e.RcsbEntitySourceOrganism.NcbiScientificName.path,min_interval_population:1,max_num_intervals:20}]},returnType:r.ReturnType.Entry}},taxonomy:{query:{firstDim:{name:"Taxonomy",aggregation_type:r.AggregationType.Terms,attribute:o.e.RcsbEntitySourceOrganism.NcbiParentScientificName.path,min_interval_population:1,max_num_intervals:20},returnType:r.ReturnType.PolymerEntity}},"distribution-software":{query:{firstDim:{name:"Processing Software",aggregation_type:r.AggregationType.Terms,attribute:o.e.RcsbEntryInfo.SoftwareProgramsCombined.path,min_interval_population:1,max_num_intervals:30},returnType:r.ReturnType.Entry}},"distribution-space-group":{query:{firstDim:{name:"Space Groups",aggregation_type:r.AggregationType.Terms,attribute:o.e.Symmetry.SpaceGroupNameHM.path,min_interval_population:1,max_num_intervals:20},returnType:r.ReturnType.Entry}},"distribution-journal":{query:{firstDim:{name:"Publication Journal",aggregation_type:r.AggregationType.Terms,attribute:o.e.RcsbPrimaryCitation.RcsbJournalAbbrev.path,min_interval_population:1,max_num_intervals:25},returnType:r.ReturnType.Entry}},"distribution-structural-genomics-centers":{query:{firstDim:{name:"Structural Genomics Centers",aggregation_type:r.AggregationType.Terms,attribute:o.e.PdbxSgProject.FullNameOfCenter.path,min_interval_population:1,max_num_intervals:25},returnType:r.ReturnType.Entry}},"enzyme-classification-name":{query:{firstDim:{filter:{type:r.Type.Terminal,service:r.Service.Text,parameters:{attribute:o.e.RcsbPolymerEntity.RcsbEcLineage.Depth.path,operator:r.Operator.Equals,value:1}},facets:[{name:"Enzyme Classification",aggregation_type:r.AggregationType.Terms,attribute:o.e.RcsbPolymerEntity.RcsbEcLineage.Name.path,min_interval_population:1,max_num_intervals:20}]},returnType:r.ReturnType.PolymerEntity}},"assembly-symmetry-dist":{query:{firstDim:{filter:{type:r.Type.Terminal,service:r.Service.Text,parameters:{attribute:o.e.RcsbStructSymmetry.Kind.path,operator:r.Operator.ExactMatch,value:o.e.RcsbStructSymmetry.Kind.enum["Global Symmetry"]}},facets:[{name:o.e.RcsbStructSymmetry.Kind.enum["Global Symmetry"],aggregation_type:r.AggregationType.Terms,attribute:o.e.RcsbStructSymmetry.Type.path,min_interval_population:1}]},returnType:r.ReturnType.Assembly}},"scop-classification":{query:{firstDim:{filter:{type:r.Type.Terminal,service:r.Service.Text,parameters:{attribute:o.e.RcsbPolymerInstanceAnnotation.Type.path,operator:r.Operator.ExactMatch,value:"SCOP"}},facets:[{filter:{type:r.Type.Terminal,service:r.Service.Text,parameters:{attribute:o.e.RcsbPolymerInstanceAnnotation.AnnotationLineage.Depth.path,operator:r.Operator.Equals,value:1}},facets:[{name:"SCOP Classification",aggregation_type:r.AggregationType.Terms,attribute:o.e.RcsbPolymerInstanceAnnotation.AnnotationLineage.Name.path,min_interval_population:1,max_num_intervals:20}]}]},returnType:r.ReturnType.PolymerEntity}}},b=async function(e,t,i){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=arguments.length>4?arguments[4]:void 0,d=arguments.length>5?arguments[5]:void 0,g=arguments.length>6?arguments[6]:void 0;const b=i.searchQuery??(0,l.XY)({attribute:o.e.RcsbEntryInfo.StructureDeterminationMethodology.path,value:o.e.RcsbEntryInfo.StructureDeterminationMethodology.enum.experimental,operator:o.e.RcsbEntryInfo.StructureDeterminationMethodology.operator.ExactMatch,service:r.Service.Text}),f=(0,s.cloneDeep)(i.firstDim);i.secondDim&&(0,l.vw)(i.secondDim,f);const h=(0,l.G2)(b,i.returnType,{facets:[f]});d("searchRequest",h);const x=await(async(e,t)=>{const i=`${t.searchApiUrl}/rcsbsearch/v2/query`;return fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>{if(!e.ok)throw new Error(e.statusText);return e.json()})).catch((e=>{throw console.error("Error:",e),e}))})(h,g);if(!x)return[[]];const v=(0,n.z)(x);let z=v[0].data;const A={"distribution-resolution":u.$Z,"distribution-r-free":u.$Z,"distribution-molecular-weight-structure":u.bl,"distribution-atom-count":u.pF,"distribution-residue-count":u.pF},k=A[e]?A[e](z):z;if(A[e]&&(z=k),a&&z.length>0){let e=0;return[z.map((e=>{const a=(0,p.F3)(c,e.label,i.returnType);return{...e,objectConfig:{...e.objectConfig,color:t[0%t.length],label:"Annual",url:a}}})),z.map((a=>{e+=a.population;const o=(0,p.F3)(c,a.label,i.returnType);return{...a,population:e,objectConfig:{objectId:[a.label,e],color:t[1%t.length],label:"Cumulative",url:o}}}))]}return i.secondDim?m(v.filter((e=>e.name===y(i.secondDim))),t,c):[z.map((e=>{const a=(0,p.F3)(c,e.label,i.returnType);return{...e,objectConfig:{objectId:[e.label,e.population],color:t[0%t.length],url:a}}}))]},m=(e,t,i)=>{const a=new Set,o=[],r=new Map;e.forEach((e=>{o.push(e.labelPath[0]),e.data.forEach((t=>{a.add(t.label.toString()),r.has(e.labelPath[0])||r.set(e.labelPath[0],new Map),r.get(e.labelPath[0])?.set(t.label.toString(),t.population)}))}));const n=Array.from(a),l=[];return n.forEach(((e,a)=>{const n=[];o.forEach((o=>{if(void 0!==r.get(o)?.get(e)){const l=(0,p.F3)(i,e,"Entry");n.push({label:o,population:r.get(o)?.get(e)??0,objectConfig:{objectId:[o,e,r.get(o)?.get(e)??0],color:t[a%t.length],url:l}})}})),l.push(n)})),l},y=e=>{if("name"in e)return e.name;if(!e.facets||1!==e.facets.length)throw new Error("Multiple facets are not allowed");return y(e.facets[0])},f=(e,t)=>{const{settings:i}=(0,c.t)(),{setProperty:o}=(0,d.R)(),r=i.colorScheme.join("");return(0,a.I)({queryKey:[e,t,r],queryFn:()=>(async(e,t,i,a)=>{const o=g[e];if(!o)throw new Error(`Unknown chart key: ${e}`);const{query:r}=o,{ref_url:n}=(e=>{const t=p.Tb.getStatisticsChartObject(e),i=t?.ref_url;return{ref_url:i}})(e);return b(e,t,r,!1,n,i,a)})(e,i.colorScheme,o,i.config),enabled:!!e})}},2390:(e,t,i)=>{i.d(t,{Kb:()=>n,OV:()=>l,tt:()=>r});var a=i(7581);const o=a.i7`
60
60
  from {
61
61
  opacity: .5;
62
62
  transform: translateZ(0) scale(0.999);
@@ -65,14 +65,14 @@
65
65
  opacity: 1;
66
66
  transform: translateZ(0) scale(1);
67
67
  }
68
- `,a=i.Ay.div`
69
- animation: ${r} .5s ease-in;
68
+ `,r=a.Ay.div`
69
+ animation: ${o} .5s ease-in;
70
70
  will-change: opacity, transform;
71
- `,n=i.Ay.div`
71
+ `,n=a.Ay.div`
72
72
  display: flex;
73
73
  justify-content: flex-end;
74
74
  margin-top: -10px;
75
- `,l=i.Ay.button`
75
+ `,l=a.Ay.button`
76
76
  display: flex;
77
77
  align-items: center;
78
78
  justify-content: center;