se {
				console.debug("lat lon invalid error");
				return [0, 0];
			}
		}

		function groupBy(arr, fn) {
			return arr
				.map(typeof fn === "function" ? fn : (val) => val[fn])
				.reduce((acc, val, i) => {
					acc[val] = (acc[val] || []).concat(arr[i]);
					return acc;
				}, {});
		}

		function generateHebCal(latLon) {
			const location = new Location(
				...latLon,
				document.querySelector("#inIL").checked
			);

			const now = new Date();

			const options = {
				year: now.getFullYear(),
			