"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("lodash"),t=require("../../constants.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(e);function u(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function c(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?u(Object(t),!0).forEach((function(r){o.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}exports.getAllFormations=function(e){var n=[],u=!1;e.forEach((function(e){"Null"===e.formation?u=!0:n.includes(r.get(e,"formation"))||n.push(r.get(e,"formation"))}));var i=r.sortBy(n);u&&!i.includes("Null")&&i.push("Null");var l=i.reduce((function(e,r,n){return c(c({},e),{},o.default({},r,t.FORMATION_COLORS[n%t.FORMATION_COLORS.length]))}),{});return[i,l]};
//# sourceMappingURL=utils.js.map
