import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
// @flow
import { createMemoizedStats } from './lib/data_analysis/index';
/*:: import type { Statistics } from './types'*/

/*:: import type { Observation } from 'mapeo-schema'*/

const getStats = createMemoizedStats();
export default ((observations
/*: Array<Observation>*/
) =>
/*: Statistics*/
{
  return getStats(_mapInstanceProperty(observations).call(observations, obs => obs.tags || {}));
});
//# sourceMappingURL=stats.js.map