import Promise from 'promise-polyfill';
import { loadFontGroup } from './utils/load-font';

const canela = [
	{ family: 'Canela Web', weight: 300 },
	{ family: 'Canela Web', weight: 700 },
];

const publico = [
	{ family: 'Publico Text Web', weight: 400 },
	{ family: 'Publico Text Web', weight: 700 },
];

const atlas = [
	{ family: 'Atlas Grotesk Web', weight: 400 },
	{ family: 'Atlas Grotesk Web', weight: 500 },
	{ family: 'Atlas Grotesk Web', weight: 600 },
];

// polyfill promise
if (!window.Promise) window.Promise = Promise;

// load fonts
loadFontGroup(canela);
loadFontGroup(publico);
loadFontGroup(atlas);

@@ -33,16 +33,138 @@
 yfill';%0A
+import './polyfills/endswith';%0Aimport './polyfills/find-index';%0Aimport './polyfills/find';%0Aimport './polyfills/includes';%0A
 import %7B

include polyfills by default