import { describe, it, expect } from "vitest"
import { ProcessedRunnerModel } from "./EntityTypes.ts"
import { calculatePositionsAndBehindsFootO, processRunnerData } from "./virtualTicketFunctions.ts"
import { RunnerModel } from "../../../../../shared/EntityTypes.ts"

describe("VirtualTicketFunctions.processRunnersData", () => {
  it("should fill all the fields of a single runner with splits", () => {
    const runnerList: RunnerModel[] = [
      {
        id: "string",
        bib_number: "1234",
        is_nc: false,
        eligibility: null,
        sicard: "12345678",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "class",
          long_name: "class",
        },
        club: {
          id: "string",
          short_name: "club",
        },
        full_name: "full name",
        stage: {
          id: "string",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2024-10-19T15:04:59.000+00:00",
          finish_time: "2024-10-19T15:19:16.000+00:00",
          upload_type: "res_splits",
          time_seconds: 857,
          position: 18,
          status_code: "0",
          time_behind: 0,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "string",
              is_intermediate: false,
              reading_time: "2024-10-19T15:10:25.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "string",
                station: "39",
                control_type: {
                  id: "string",
                  description: "Normal Control",
                },
              },
            },
            {
              id: "string",
              is_intermediate: false,
              reading_time: "2024-10-19T15:16:38.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "string",
                station: "71",
                control_type: {
                  id: "string",
                  description: "Normal Control",
                },
              },
            },
          ],
        },
        overalls: null,
        runners: null,
      },
    ]

    const expectedProcessedList: ProcessedRunnerModel[] = [
      {
        id: "string",
        bib_number: "1234",
        is_nc: false,
        eligibility: null,
        sicard: "12345678",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "class",
          long_name: "class",
        },
        club: {
          id: "string",
          short_name: "club",
        },
        full_name: "full name",
        stage: {
          id: "string",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2024-10-19T15:04:59.000+00:00",
          finish_time: "2024-10-19T15:19:16.000+00:00",
          upload_type: "res_splits",
          time_seconds: 857,
          position: 18,
          status_code: "0",
          time_behind: 0,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "string",
              reading_time: "2024-10-19T15:10:25.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "string",
                station: "39",
                control_type: {
                  id: "string",
                  description: "Normal Control",
                },
              },
              time: 326,
              time_behind: null,
              position: null,
              cumulative_time: 326,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "string",
              reading_time: "2024-10-19T15:16:38.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "string",
                station: "71",
                control_type: {
                  id: "string",
                  description: "Normal Control",
                },
              },
              time: 373,
              time_behind: null,
              position: null,
              cumulative_time: 699,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "string-finishSplit",
              reading_time: "2024-10-19T15:19:16.000+00:00",
              order_number: Infinity,
              points: 0,
              time: 158,
              time_behind: null,
              position: null,
              cumulative_time: 857,
              cumulative_behind: null,
              cumulative_position: null,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
        runners: null,
      },
    ]

    expect(processRunnerData(runnerList)).toEqual(expectedProcessedList)
  })

  it("should fill all the fields of a relay team runner", () => {
    const runnerList: RunnerModel[] = [
      {
        id: "string",
        bib_number: "105",
        is_nc: false,
        eligibility: null,
        runners: [
          {
            id: "string",
            bib_number: "105-1",
            is_nc: false,
            eligibility: null,
            sicard: "12345678",
            sex: "F",
            leg_number: 1,
            class: null,
            club: null,
            full_name: "full name 1",
            stage: {
              id: "string",
              result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
              start_time: "2001-01-01T09:30:00.000+00:00",
              finish_time: "2001-01-01T09:52:48.000+00:00",
              upload_type: "res_splits",
              time_seconds: 1368,
              position: 0,
              status_code: "0",
              time_behind: 0,
              time_neutralization: 0,
              time_adjusted: 0,
              time_penalty: 0,
              time_bonus: 0,
              points_final: 0,
              points_behind: 0,
              points_adjusted: 0,
              points_penalty: 0,
              points_bonus: 0,
              leg_number: 1,
              splits: [
                {
                  id: "string",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:52:13.000+00:00",
                  points: 0,
                  order_number: 19,
                  control: {
                    id: "string",
                    station: "100",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "string",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:51:45.000+00:00",
                  points: 0,
                  order_number: 18,
                  control: {
                    id: "ababb8af-3d7d-4404-9063-91793c43a270",
                    station: "31",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "string",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:50:56.000+00:00",
                  points: 0,
                  order_number: 17,
                  control: {
                    id: "string",
                    station: "33",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "string",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:50:16.000+00:00",
                  points: 0,
                  order_number: 16,
                  control: {
                    id: "7e01e486-86d4-43c4-ba87-2a9410ab0d7e",
                    station: "44",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "string",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:49:18.000+00:00",
                  points: 0,
                  order_number: 15,
                  control: {
                    id: "fcd30260-c3f8-4f7e-b836-9c386e25a6c0",
                    station: "43",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "string",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:48:08.000+00:00",
                  points: 0,
                  order_number: 14,
                  control: {
                    id: "e3c151a6-f1f1-4e1c-a863-44258453d9a1",
                    station: "36",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "string",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:47:41.000+00:00",
                  points: 0,
                  order_number: 13,
                  control: {
                    id: "5b3f5ac7-8dab-4796-bbbc-3276c20b706f",
                    station: "32",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "string",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:47:24.000+00:00",
                  points: 0,
                  order_number: 12,
                  control: {
                    id: "0cd67cdb-9e81-4429-96cb-998993b5889a",
                    station: "35",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "e7483c9a-34ba-44bc-955b-f65cfe707b19",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:45:12.000+00:00",
                  points: 0,
                  order_number: 11,
                  control: {
                    id: "6330aeb1-36d6-4106-8237-e461beef9927",
                    station: "59",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "6e8e9be9-51e6-4427-9574-f47c425f82b6",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:44:36.000+00:00",
                  points: 0,
                  order_number: 10,
                  control: {
                    id: "5db8729f-c6a0-48c6-b281-a92746fb01a2",
                    station: "61",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "3b753159-53b4-447e-9ff9-f7fa775b6c5e",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:43:49.000+00:00",
                  points: 0,
                  order_number: 9,
                  control: {
                    id: "167be85b-9c53-479b-9427-0d78cf99747e",
                    station: "64",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "04c095f5-d8f3-4d5f-9132-227724061e77",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:42:33.000+00:00",
                  points: 0,
                  order_number: 8,
                  control: {
                    id: "bd8a1865-7bd4-446d-ad2b-49ca8ea9527a",
                    station: "82",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "dc669d5f-a458-4a44-816f-0feec466ad84",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:41:44.000+00:00",
                  points: 0,
                  order_number: 7,
                  control: {
                    id: "0cb5c433-11b7-4826-b9a6-569705afeca5",
                    station: "69",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "8a81e6fd-713c-4326-8ad9-c64a28d83380",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:40:54.000+00:00",
                  points: 0,
                  order_number: 6,
                  control: {
                    id: "c69f8423-2211-4f79-9ca1-d2e9e73871b8",
                    station: "83",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "04512006-1725-4f3c-bfc4-0b3f4cbfe40c",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:39:02.000+00:00",
                  points: 0,
                  order_number: 5,
                  control: {
                    id: "ce71c60d-3c46-4b9e-80e9-838e4fecf3aa",
                    station: "90",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "54c93cc7-67ab-4266-8102-ab0b9f793fcf",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:37:23.000+00:00",
                  points: 0,
                  order_number: 4,
                  control: {
                    id: "ede79be9-5831-4d56-ba0b-c2a6638de2e7",
                    station: "87",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "2c88bc15-7707-413d-ba4d-ebb38da2d128",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:34:54.000+00:00",
                  points: 0,
                  order_number: 3,
                  control: {
                    id: "3073375e-3504-4896-9505-fac866641d09",
                    station: "71",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "489aa5f3-b039-4708-ab0d-3d1b6bd5683c",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:33:54.000+00:00",
                  points: 0,
                  order_number: 2,
                  control: {
                    id: "8c57e5f8-32fd-49d6-89f2-71da6ac494ea",
                    station: "62",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "7e928cf3-673e-43da-a4c2-19531da3a0cd",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:32:33.000+00:00",
                  points: 0,
                  order_number: 1,
                  control: {
                    id: "5df9a798-0cec-4730-83bd-59c63fd18b7b",
                    station: "55",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
              ],
            },
            overalls: null,
          },
          {
            id: "string",
            bib_number: "105-2",
            is_nc: false,
            eligibility: null,
            sicard: "23456789",
            sex: "M",
            leg_number: 2,
            class: null,
            club: null,
            full_name: "full name 2",
            stage: {
              id: "string",
              result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
              start_time: "2001-01-01T09:52:48.000+00:00",
              finish_time: "2001-01-01T10:17:07.000+00:00",
              upload_type: "res_splits",
              time_seconds: 1459,
              position: 0,
              status_code: "0",
              time_behind: 0,
              time_neutralization: 0,
              time_adjusted: 0,
              time_penalty: 0,
              time_bonus: 0,
              points_final: 0,
              points_behind: 0,
              points_adjusted: 0,
              points_penalty: 0,
              points_bonus: 0,
              leg_number: 2,
              splits: [
                {
                  id: "46f7f979-70e7-4def-9dfd-0f6c9d77798d",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:16:37.000+00:00",
                  points: 0,
                  order_number: 24,
                  control: {
                    id: "87c02337-f391-402b-af9c-b3cc85e4cd5a",
                    station: "100",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "fabbf4dd-d4d6-463d-953c-7df9ae3f1a37",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:16:22.000+00:00",
                  points: 0,
                  order_number: 23,
                  control: {
                    id: "ababb8af-3d7d-4404-9063-91793c43a270",
                    station: "31",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "f353536a-983c-4c69-98ea-6a9d6eb9c482",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:15:46.000+00:00",
                  points: 0,
                  order_number: 22,
                  control: {
                    id: "63473e07-5b89-4c75-a3d7-6a187d2246bc",
                    station: "33",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "ab0cb0cb-55e0-4d08-b725-eb6cf1c21de3",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:15:23.000+00:00",
                  points: 0,
                  order_number: 21,
                  control: {
                    id: "0b29803c-bd45-4ec4-9a1b-14ce0c10f104",
                    station: "34",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "57bd597b-accb-436d-b863-870765994e84",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:14:28.000+00:00",
                  points: 0,
                  order_number: 20,
                  control: {
                    id: "9388c772-bdd4-410f-acd0-fdccf51a0fc2",
                    station: "41",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "41c6dd55-7a63-4348-8298-8784288f62d2",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:13:50.000+00:00",
                  points: 0,
                  order_number: 19,
                  control: {
                    id: "e50ccdfc-b97c-40c2-ba5c-1e9d789f2db9",
                    station: "45",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "115fe5ed-648f-422f-ab6a-158ff0fe1ee8",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:13:28.000+00:00",
                  points: 0,
                  order_number: 18,
                  control: {
                    id: "3164b0c0-e007-4041-af51-845a6b61dbf8",
                    station: "40",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "a363f1fb-e606-4c90-957f-1a697117f219",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:12:03.000+00:00",
                  points: 0,
                  order_number: 17,
                  control: {
                    id: "e3c151a6-f1f1-4e1c-a863-44258453d9a1",
                    station: "36",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "9255fae9-a4e4-41ea-b7c8-c2e6f626b495",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:11:45.000+00:00",
                  points: 0,
                  order_number: 16,
                  control: {
                    id: "5b3f5ac7-8dab-4796-bbbc-3276c20b706f",
                    station: "32",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "7a6c9932-16b6-4755-8d3c-50140a59919f",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:11:35.000+00:00",
                  points: 0,
                  order_number: 15,
                  control: {
                    id: "0cd67cdb-9e81-4429-96cb-998993b5889a",
                    station: "35",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "e619967d-cfb5-446f-b389-1f0dba9d2d83",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:09:23.000+00:00",
                  points: 0,
                  order_number: 14,
                  control: {
                    id: "6330aeb1-36d6-4106-8237-e461beef9927",
                    station: "59",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "63c12134-836f-4342-b6c0-918a628e0386",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:08:51.000+00:00",
                  points: 0,
                  order_number: 13,
                  control: {
                    id: "5db8729f-c6a0-48c6-b281-a92746fb01a2",
                    station: "61",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "1c3d26fc-8936-4170-8b03-66f44de1461e",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:08:11.000+00:00",
                  points: 0,
                  order_number: 12,
                  control: {
                    id: "167be85b-9c53-479b-9427-0d78cf99747e",
                    station: "64",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "5ec078dc-2545-4120-b4ce-c916dc403222",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:07:00.000+00:00",
                  points: 0,
                  order_number: 11,
                  control: {
                    id: "bd8a1865-7bd4-446d-ad2b-49ca8ea9527a",
                    station: "82",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "99d6b86e-d952-4922-b5e9-1bcce4fce374",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:06:21.000+00:00",
                  points: 0,
                  order_number: 10,
                  control: {
                    id: "0cb5c433-11b7-4826-b9a6-569705afeca5",
                    station: "69",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "3de88a75-842d-4040-a038-e6ff0a25fb16",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:05:50.000+00:00",
                  points: 0,
                  order_number: 9,
                  control: {
                    id: "c69f8423-2211-4f79-9ca1-d2e9e73871b8",
                    station: "83",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "a8f4e555-7522-4fa2-97cd-4a7c418aa554",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:04:34.000+00:00",
                  points: 0,
                  order_number: 8,
                  control: {
                    id: "ce71c60d-3c46-4b9e-80e9-838e4fecf3aa",
                    station: "90",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "bf6a06d5-4b16-4a6b-821d-ca6346a300fd",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:03:29.000+00:00",
                  points: 0,
                  order_number: 7,
                  control: {
                    id: "ede79be9-5831-4d56-ba0b-c2a6638de2e7",
                    station: "87",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "0dd7e2a5-f5e2-40a9-842e-68ff559bc4ac",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:02:33.000+00:00",
                  points: 0,
                  order_number: 6,
                  control: {
                    id: "14374e1e-2433-4980-b721-a3cb6cb69326",
                    station: "76",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "c2df2c74-7502-497a-84f0-35c66a023048",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:01:35.000+00:00",
                  points: 0,
                  order_number: 5,
                  control: {
                    id: "0f52e7c3-e67d-46e8-86af-04af2503ece2",
                    station: "77",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "383faa65-6a76-4367-93dc-94df6568d984",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:01:01.000+00:00",
                  points: 0,
                  order_number: 4,
                  control: {
                    id: "5a5387a7-1143-4ec0-b0e7-f5671522a4d7",
                    station: "75",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "d1ff255a-d589-40e7-aff7-bc0b39e0880a",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:00:03.000+00:00",
                  points: 0,
                  order_number: 3,
                  control: {
                    id: "9c1fb6bd-a7d6-4213-9b8d-d8234e6ca15c",
                    station: "74",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "4dd07d2d-ea0b-4a25-a0f5-90e7d38257ce",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:56:24.000+00:00",
                  points: 0,
                  order_number: 2,
                  control: {
                    id: "84143114-186c-4031-ab98-69d8d4d199c6",
                    station: "63",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "d6c0a995-08f0-4a8f-b5b5-71c41fde49c8",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:55:02.000+00:00",
                  points: 0,
                  order_number: 1,
                  control: {
                    id: "ae9e3d33-0bdd-4268-8963-00a180da4658",
                    station: "56",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
              ],
            },
            overalls: null,
          },
          {
            id: "string",
            bib_number: "105-3",
            is_nc: false,
            eligibility: null,
            sicard: "567890123",
            sex: "M",
            leg_number: 3,
            class: null,
            club: null,
            full_name: "full name 3",
            stage: {
              id: "string",
              result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
              start_time: "2001-01-01T10:17:07.000+00:00",
              finish_time: "2001-01-01T10:36:26.000+00:00",
              upload_type: "res_splits",
              time_seconds: 1159,
              position: 0,
              status_code: "0",
              time_behind: 0,
              time_neutralization: 0,
              time_adjusted: 0,
              time_penalty: 0,
              time_bonus: 0,
              points_final: 0,
              points_behind: 0,
              points_adjusted: 0,
              points_penalty: 0,
              points_bonus: 0,
              leg_number: 3,
              splits: [
                {
                  id: "1b2dec08-2d9c-4dd4-b837-3fd341f4070d",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:35:51.000+00:00",
                  points: 0,
                  order_number: 22,
                  control: {
                    id: "87c02337-f391-402b-af9c-b3cc85e4cd5a",
                    station: "100",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "0fa6a95e-4780-4d02-9532-6b166eb18038",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:35:34.000+00:00",
                  points: 0,
                  order_number: 21,
                  control: {
                    id: "ababb8af-3d7d-4404-9063-91793c43a270",
                    station: "31",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "9c473ba7-a421-46ea-b9f6-47f0bb0014d2",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:34:56.000+00:00",
                  points: 0,
                  order_number: 20,
                  control: {
                    id: "63473e07-5b89-4c75-a3d7-6a187d2246bc",
                    station: "33",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "9e506614-5a97-41fa-8e07-309cfcdc4a4a",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:34:32.000+00:00",
                  points: 0,
                  order_number: 19,
                  control: {
                    id: "0b29803c-bd45-4ec4-9a1b-14ce0c10f104",
                    station: "34",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "c8008cc6-3995-45a7-9f45-ef850eb88303",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:33:41.000+00:00",
                  points: 0,
                  order_number: 18,
                  control: {
                    id: "9388c772-bdd4-410f-acd0-fdccf51a0fc2",
                    station: "41",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "37e7f31a-ce58-4521-a0f8-184f17eb0734",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:32:59.000+00:00",
                  points: 0,
                  order_number: 17,
                  control: {
                    id: "e50ccdfc-b97c-40c2-ba5c-1e9d789f2db9",
                    station: "45",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "73cd9e07-4dfe-408b-bae1-875693faf925",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:32:37.000+00:00",
                  points: 0,
                  order_number: 16,
                  control: {
                    id: "3164b0c0-e007-4041-af51-845a6b61dbf8",
                    station: "40",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "d7218df1-b95e-49dd-aa25-2658fbda5e3a",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:31:19.000+00:00",
                  points: 0,
                  order_number: 15,
                  control: {
                    id: "e3c151a6-f1f1-4e1c-a863-44258453d9a1",
                    station: "36",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "6627faa7-fdd8-4b60-903a-2b24a72fae99",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:30:58.000+00:00",
                  points: 0,
                  order_number: 14,
                  control: {
                    id: "5b3f5ac7-8dab-4796-bbbc-3276c20b706f",
                    station: "32",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "e12eab4a-82f3-4f86-b6b5-02cf9a2bcd01",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:30:47.000+00:00",
                  points: 0,
                  order_number: 13,
                  control: {
                    id: "0cd67cdb-9e81-4429-96cb-998993b5889a",
                    station: "35",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "0a62320d-b3cf-4609-8670-df3375b5784c",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:29:10.000+00:00",
                  points: 0,
                  order_number: 12,
                  control: {
                    id: "6330aeb1-36d6-4106-8237-e461beef9927",
                    station: "59",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "8c63b50d-3a7a-4c14-9d00-bf933869f113",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:28:38.000+00:00",
                  points: 0,
                  order_number: 11,
                  control: {
                    id: "5db8729f-c6a0-48c6-b281-a92746fb01a2",
                    station: "61",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "7c570f72-249f-43f5-916d-90ff07356e42",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:27:55.000+00:00",
                  points: 0,
                  order_number: 10,
                  control: {
                    id: "a7be5af3-f41e-43af-a287-a99ea89ab5cd",
                    station: "65",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "97d00d0c-ef6c-473f-bbb9-fa1fbbe5eee0",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:26:58.000+00:00",
                  points: 0,
                  order_number: 9,
                  control: {
                    id: "6c624b1a-5aa7-43ee-9291-a79a9bcd0f18",
                    station: "92",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "cdaa9266-9eec-4649-8822-072bd40b7a27",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:26:19.000+00:00",
                  points: 0,
                  order_number: 8,
                  control: {
                    id: "c69f8423-2211-4f79-9ca1-d2e9e73871b8",
                    station: "83",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "9173bbb2-293f-4aba-968d-30494c568ba3",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:25:04.000+00:00",
                  points: 0,
                  order_number: 7,
                  control: {
                    id: "ce71c60d-3c46-4b9e-80e9-838e4fecf3aa",
                    station: "90",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "0533a0b1-304c-4fcc-8703-bdd94f16f383",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:24:00.000+00:00",
                  points: 0,
                  order_number: 6,
                  control: {
                    id: "ede79be9-5831-4d56-ba0b-c2a6638de2e7",
                    station: "87",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "aa7839b2-1e6d-4374-8693-87e8bc27727a",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:23:11.000+00:00",
                  points: 0,
                  order_number: 5,
                  control: {
                    id: "14374e1e-2433-4980-b721-a3cb6cb69326",
                    station: "76",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "9f8f7d1d-bdf6-4550-a160-196684e86d8f",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:22:15.000+00:00",
                  points: 0,
                  order_number: 4,
                  control: {
                    id: "0f52e7c3-e67d-46e8-86af-04af2503ece2",
                    station: "77",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "c70013c2-f70d-44fb-9ec2-a30089cf17ce",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:21:35.000+00:00",
                  points: 0,
                  order_number: 3,
                  control: {
                    id: "792e94db-0a53-482d-b537-b29514a67d70",
                    station: "73",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "3b3f7e6c-8676-44ee-969d-b2d2d7623c60",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:20:40.000+00:00",
                  points: 0,
                  order_number: 2,
                  control: {
                    id: "7412eef6-4dbe-4300-8a10-385a411548bf",
                    station: "72",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "4366b221-76c0-4c81-a74d-1c50532e68d7",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:18:58.000+00:00",
                  points: 0,
                  order_number: 1,
                  control: {
                    id: "5df9a798-0cec-4730-83bd-59c63fd18b7b",
                    station: "55",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
              ],
            },
            overalls: null,
          },
          {
            id: "string",
            bib_number: "105-4",
            is_nc: false,
            eligibility: null,
            sicard: "34567890",
            sex: "F",
            leg_number: 4,
            class: null,
            club: null,
            full_name: "full name 4",
            stage: {
              id: "54f35a4b-157b-4963-baa2-eee41408c2d6",
              result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
              start_time: "2001-01-01T10:36:26.000+00:00",
              finish_time: "2001-01-01T10:54:23.000+00:00",
              upload_type: "res_splits",
              time_seconds: 1076,
              position: 0,
              status_code: "0",
              time_behind: 0,
              time_neutralization: 0,
              time_adjusted: 0,
              time_penalty: 0,
              time_bonus: 0,
              points_final: 0,
              points_behind: 0,
              points_adjusted: 0,
              points_penalty: 0,
              points_bonus: 0,
              leg_number: 4,
              splits: [
                {
                  id: "ef820602-2434-4119-aa4e-653387d52ac9",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:53:53.000+00:00",
                  points: 0,
                  order_number: 18,
                  control: {
                    id: "87c02337-f391-402b-af9c-b3cc85e4cd5a",
                    station: "100",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "054cde33-29b9-4f2d-b8fb-fbe7c1b4e201",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:53:34.000+00:00",
                  points: 0,
                  order_number: 17,
                  control: {
                    id: "ababb8af-3d7d-4404-9063-91793c43a270",
                    station: "31",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "2e9c21fe-8026-4bc5-8953-d2c1a4925530",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:52:55.000+00:00",
                  points: 0,
                  order_number: 16,
                  control: {
                    id: "63473e07-5b89-4c75-a3d7-6a187d2246bc",
                    station: "33",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "21393eb9-4c7c-465a-b016-8f3fcbb542cf",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:51:37.000+00:00",
                  points: 0,
                  order_number: 15,
                  control: {
                    id: "7e01e486-86d4-43c4-ba87-2a9410ab0d7e",
                    station: "44",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "e5e700da-e8c4-48cd-89be-7e5d7132a00c",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:50:43.000+00:00",
                  points: 0,
                  order_number: 14,
                  control: {
                    id: "fcd30260-c3f8-4f7e-b836-9c386e25a6c0",
                    station: "43",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "f12f6117-b428-4911-b5e2-cd24c8998a9e",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:49:49.000+00:00",
                  points: 0,
                  order_number: 13,
                  control: {
                    id: "e3c151a6-f1f1-4e1c-a863-44258453d9a1",
                    station: "36",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "3c10eb35-261c-480e-b476-32fa58cb7830",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:49:26.000+00:00",
                  points: 0,
                  order_number: 12,
                  control: {
                    id: "5b3f5ac7-8dab-4796-bbbc-3276c20b706f",
                    station: "32",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "bbce639c-bfbc-4376-b800-ec6293a49056",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:49:13.000+00:00",
                  points: 0,
                  order_number: 11,
                  control: {
                    id: "0cd67cdb-9e81-4429-96cb-998993b5889a",
                    station: "35",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "28d53e3d-1b94-4bc0-bf50-aac853ab21a1",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:47:30.000+00:00",
                  points: 0,
                  order_number: 10,
                  control: {
                    id: "6330aeb1-36d6-4106-8237-e461beef9927",
                    station: "59",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "ef44b27f-eaf0-48ea-a7a5-d9b6327a57d0",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:46:57.000+00:00",
                  points: 0,
                  order_number: 9,
                  control: {
                    id: "5db8729f-c6a0-48c6-b281-a92746fb01a2",
                    station: "61",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "489c1605-a34b-4aeb-9164-c894a12da85e",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:46:15.000+00:00",
                  points: 0,
                  order_number: 8,
                  control: {
                    id: "a7be5af3-f41e-43af-a287-a99ea89ab5cd",
                    station: "65",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "770df996-0ae2-40ba-8c96-f7f19ac622bb",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:45:21.000+00:00",
                  points: 0,
                  order_number: 7,
                  control: {
                    id: "6c624b1a-5aa7-43ee-9291-a79a9bcd0f18",
                    station: "92",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "c1976f05-1b4a-4313-8bd0-16f018d920ed",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:44:37.000+00:00",
                  points: 0,
                  order_number: 6,
                  control: {
                    id: "c69f8423-2211-4f79-9ca1-d2e9e73871b8",
                    station: "83",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "189fd3a6-9a1c-44bc-97d3-661b41c18d8f",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:43:20.000+00:00",
                  points: 0,
                  order_number: 5,
                  control: {
                    id: "ce71c60d-3c46-4b9e-80e9-838e4fecf3aa",
                    station: "90",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "a0b13e1c-ee52-42ac-99e7-81c5210a1c2d",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:41:50.000+00:00",
                  points: 0,
                  order_number: 4,
                  control: {
                    id: "ede79be9-5831-4d56-ba0b-c2a6638de2e7",
                    station: "87",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "51dd3914-a752-4879-a341-589c3b8ec281",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:40:40.000+00:00",
                  points: 0,
                  order_number: 3,
                  control: {
                    id: "14374e1e-2433-4980-b721-a3cb6cb69326",
                    station: "76",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "b978405c-8e91-4603-8c1b-1090be472dc8",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:39:48.000+00:00",
                  points: 0,
                  order_number: 2,
                  control: {
                    id: "688a32c6-9f67-46e5-8c36-81823e0f128f",
                    station: "70",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
                {
                  id: "125a2a40-ef0e-411e-9670-f91243042be0",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:38:30.000+00:00",
                  points: 0,
                  order_number: 1,
                  control: {
                    id: "ae9e3d33-0bdd-4268-8963-00a180da4658",
                    station: "56",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                },
              ],
            },
            overalls: null,
          },
        ],
        class: {
          id: "ab6e955f-5ced-4224-adbc-5f52e64d55d6",
          short_name: "Senior",
          long_name: "",
        },
        club: null,
        full_name: "Team name 1",
        stage: {
          id: "7c9c4d3c-33e5-43f6-85a3-65c62c2488e2",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: null,
          finish_time: null,
          upload_type: "res_splits",
          time_seconds: 0,
          position: 0,
          status_code: "0",
          time_behind: 0,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          splits: [],
        },
        overalls: null,
      },
    ]
    const expectedProcessedRunnerList: ProcessedRunnerModel[] = [
      {
        id: "string",
        bib_number: "105",
        is_nc: false,
        eligibility: null,
        runners: [
          {
            id: "string",
            bib_number: "105-1",
            is_nc: false,
            eligibility: null,
            sicard: "12345678",
            sex: "F",
            leg_number: 1,
            class: null,
            club: null,
            full_name: "full name 1",
            stage: {
              id: "string",
              result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
              start_time: "2001-01-01T09:30:00.000+00:00",
              finish_time: "2001-01-01T09:52:48.000+00:00",
              upload_type: "res_splits",
              time_seconds: 1368,
              position: 0,
              status_code: "0",
              time_behind: 0,
              time_neutralization: 0,
              time_adjusted: 0,
              time_penalty: 0,
              time_bonus: 0,
              points_final: 0,
              points_behind: 0,
              points_adjusted: 0,
              points_penalty: 0,
              points_bonus: 0,
              leg_number: 1,
              splits: [
                {
                  id: "7e928cf3-673e-43da-a4c2-19531da3a0cd",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:32:33.000+00:00",
                  points: 0,
                  order_number: 1,
                  control: {
                    id: "5df9a798-0cec-4730-83bd-59c63fd18b7b",
                    station: "55",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 153,
                  time_behind: null,
                  position: null,
                  cumulative_time: 153,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "489aa5f3-b039-4708-ab0d-3d1b6bd5683c",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:33:54.000+00:00",
                  points: 0,
                  order_number: 2,
                  control: {
                    id: "8c57e5f8-32fd-49d6-89f2-71da6ac494ea",
                    station: "62",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 81,
                  time_behind: null,
                  position: null,
                  cumulative_time: 234,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "2c88bc15-7707-413d-ba4d-ebb38da2d128",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:34:54.000+00:00",
                  points: 0,
                  order_number: 3,
                  control: {
                    id: "3073375e-3504-4896-9505-fac866641d09",
                    station: "71",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 60,
                  time_behind: null,
                  position: null,
                  cumulative_time: 294,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "54c93cc7-67ab-4266-8102-ab0b9f793fcf",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:37:23.000+00:00",
                  points: 0,
                  order_number: 4,
                  control: {
                    id: "ede79be9-5831-4d56-ba0b-c2a6638de2e7",
                    station: "87",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 149,
                  time_behind: null,
                  position: null,
                  cumulative_time: 443,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "04512006-1725-4f3c-bfc4-0b3f4cbfe40c",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:39:02.000+00:00",
                  points: 0,
                  order_number: 5,
                  control: {
                    id: "ce71c60d-3c46-4b9e-80e9-838e4fecf3aa",
                    station: "90",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 99,
                  time_behind: null,
                  position: null,
                  cumulative_time: 542,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "8a81e6fd-713c-4326-8ad9-c64a28d83380",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:40:54.000+00:00",
                  points: 0,
                  order_number: 6,
                  control: {
                    id: "c69f8423-2211-4f79-9ca1-d2e9e73871b8",
                    station: "83",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 112,
                  time_behind: null,
                  position: null,
                  cumulative_time: 654,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "dc669d5f-a458-4a44-816f-0feec466ad84",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:41:44.000+00:00",
                  points: 0,
                  order_number: 7,
                  control: {
                    id: "0cb5c433-11b7-4826-b9a6-569705afeca5",
                    station: "69",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 50,
                  time_behind: null,
                  position: null,
                  cumulative_time: 704,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "04c095f5-d8f3-4d5f-9132-227724061e77",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:42:33.000+00:00",
                  points: 0,
                  order_number: 8,
                  control: {
                    id: "bd8a1865-7bd4-446d-ad2b-49ca8ea9527a",
                    station: "82",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 49,
                  time_behind: null,
                  position: null,
                  cumulative_time: 753,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "3b753159-53b4-447e-9ff9-f7fa775b6c5e",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:43:49.000+00:00",
                  points: 0,
                  order_number: 9,
                  control: {
                    id: "167be85b-9c53-479b-9427-0d78cf99747e",
                    station: "64",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 76,
                  time_behind: null,
                  position: null,
                  cumulative_time: 829,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "6e8e9be9-51e6-4427-9574-f47c425f82b6",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:44:36.000+00:00",
                  points: 0,
                  order_number: 10,
                  control: {
                    id: "5db8729f-c6a0-48c6-b281-a92746fb01a2",
                    station: "61",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 47,
                  time_behind: null,
                  position: null,
                  cumulative_time: 876,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "e7483c9a-34ba-44bc-955b-f65cfe707b19",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:45:12.000+00:00",
                  points: 0,
                  order_number: 11,
                  control: {
                    id: "6330aeb1-36d6-4106-8237-e461beef9927",
                    station: "59",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 36,
                  time_behind: null,
                  position: null,
                  cumulative_time: 912,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "string",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:47:24.000+00:00",
                  points: 0,
                  order_number: 12,
                  control: {
                    id: "0cd67cdb-9e81-4429-96cb-998993b5889a",
                    station: "35",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 132,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1044,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "string",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:47:41.000+00:00",
                  points: 0,
                  order_number: 13,
                  control: {
                    id: "5b3f5ac7-8dab-4796-bbbc-3276c20b706f",
                    station: "32",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 17,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1061,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "string",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:48:08.000+00:00",
                  points: 0,
                  order_number: 14,
                  control: {
                    id: "e3c151a6-f1f1-4e1c-a863-44258453d9a1",
                    station: "36",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 27,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1088,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "string",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:49:18.000+00:00",
                  points: 0,
                  order_number: 15,
                  control: {
                    id: "fcd30260-c3f8-4f7e-b836-9c386e25a6c0",
                    station: "43",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 70,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1158,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "string",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:50:16.000+00:00",
                  points: 0,
                  order_number: 16,
                  control: {
                    id: "7e01e486-86d4-43c4-ba87-2a9410ab0d7e",
                    station: "44",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 58,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1216,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "string",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:50:56.000+00:00",
                  points: 0,
                  order_number: 17,
                  control: {
                    id: "string",
                    station: "33",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 40,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1256,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "string",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:51:45.000+00:00",
                  points: 0,
                  order_number: 18,
                  control: {
                    id: "ababb8af-3d7d-4404-9063-91793c43a270",
                    station: "31",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 49,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1305,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "string",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:52:13.000+00:00",
                  points: 0,
                  order_number: 19,
                  control: {
                    id: "string",
                    station: "100",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 28,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1333,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "string-finishSplit",
                  reading_time: "2001-01-01T09:52:48.000+00:00",
                  order_number: Infinity,
                  points: 0,
                  time: 35,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1368,
                  cumulative_behind: null,
                  cumulative_position: null,
                  control: null,
                  is_intermediate: true,
                },
              ],
              online_splits: [],
            },
            overalls: null,
          },
          {
            id: "string",
            bib_number: "105-2",
            is_nc: false,
            eligibility: null,
            sicard: "23456789",
            sex: "M",
            leg_number: 2,
            class: null,
            club: null,
            full_name: "full name 2",
            stage: {
              id: "string",
              result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
              start_time: "2001-01-01T09:52:48.000+00:00",
              finish_time: "2001-01-01T10:17:07.000+00:00",
              upload_type: "res_splits",
              time_seconds: 1459,
              position: 0,
              status_code: "0",
              time_behind: 0,
              time_neutralization: 0,
              time_adjusted: 0,
              time_penalty: 0,
              time_bonus: 0,
              points_final: 0,
              points_behind: 0,
              points_adjusted: 0,
              points_penalty: 0,
              points_bonus: 0,
              leg_number: 2,
              splits: [
                {
                  id: "d6c0a995-08f0-4a8f-b5b5-71c41fde49c8",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:55:02.000+00:00",
                  points: 0,
                  order_number: 1,
                  control: {
                    id: "ae9e3d33-0bdd-4268-8963-00a180da4658",
                    station: "56",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 134,
                  time_behind: null,
                  position: null,
                  cumulative_time: 134,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "4dd07d2d-ea0b-4a25-a0f5-90e7d38257ce",
                  is_intermediate: false,
                  reading_time: "2001-01-01T09:56:24.000+00:00",
                  points: 0,
                  order_number: 2,
                  control: {
                    id: "84143114-186c-4031-ab98-69d8d4d199c6",
                    station: "63",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 82,
                  time_behind: null,
                  position: null,
                  cumulative_time: 216,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "d1ff255a-d589-40e7-aff7-bc0b39e0880a",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:00:03.000+00:00",
                  points: 0,
                  order_number: 3,
                  control: {
                    id: "9c1fb6bd-a7d6-4213-9b8d-d8234e6ca15c",
                    station: "74",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 219,
                  time_behind: null,
                  position: null,
                  cumulative_time: 435,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "383faa65-6a76-4367-93dc-94df6568d984",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:01:01.000+00:00",
                  points: 0,
                  order_number: 4,
                  control: {
                    id: "5a5387a7-1143-4ec0-b0e7-f5671522a4d7",
                    station: "75",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 58,
                  time_behind: null,
                  position: null,
                  cumulative_time: 493,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "c2df2c74-7502-497a-84f0-35c66a023048",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:01:35.000+00:00",
                  points: 0,
                  order_number: 5,
                  control: {
                    id: "0f52e7c3-e67d-46e8-86af-04af2503ece2",
                    station: "77",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 34,
                  time_behind: null,
                  position: null,
                  cumulative_time: 527,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "0dd7e2a5-f5e2-40a9-842e-68ff559bc4ac",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:02:33.000+00:00",
                  points: 0,
                  order_number: 6,
                  control: {
                    id: "14374e1e-2433-4980-b721-a3cb6cb69326",
                    station: "76",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 58,
                  time_behind: null,
                  position: null,
                  cumulative_time: 585,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "bf6a06d5-4b16-4a6b-821d-ca6346a300fd",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:03:29.000+00:00",
                  points: 0,
                  order_number: 7,
                  control: {
                    id: "ede79be9-5831-4d56-ba0b-c2a6638de2e7",
                    station: "87",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 56,
                  time_behind: null,
                  position: null,
                  cumulative_time: 641,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "a8f4e555-7522-4fa2-97cd-4a7c418aa554",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:04:34.000+00:00",
                  points: 0,
                  order_number: 8,
                  control: {
                    id: "ce71c60d-3c46-4b9e-80e9-838e4fecf3aa",
                    station: "90",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 65,
                  time_behind: null,
                  position: null,
                  cumulative_time: 706,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "3de88a75-842d-4040-a038-e6ff0a25fb16",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:05:50.000+00:00",
                  points: 0,
                  order_number: 9,
                  control: {
                    id: "c69f8423-2211-4f79-9ca1-d2e9e73871b8",
                    station: "83",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 76,
                  time_behind: null,
                  position: null,
                  cumulative_time: 782,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "99d6b86e-d952-4922-b5e9-1bcce4fce374",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:06:21.000+00:00",
                  points: 0,
                  order_number: 10,
                  control: {
                    id: "0cb5c433-11b7-4826-b9a6-569705afeca5",
                    station: "69",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 31,
                  time_behind: null,
                  position: null,
                  cumulative_time: 813,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "5ec078dc-2545-4120-b4ce-c916dc403222",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:07:00.000+00:00",
                  points: 0,
                  order_number: 11,
                  control: {
                    id: "bd8a1865-7bd4-446d-ad2b-49ca8ea9527a",
                    station: "82",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 39,
                  time_behind: null,
                  position: null,
                  cumulative_time: 852,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "1c3d26fc-8936-4170-8b03-66f44de1461e",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:08:11.000+00:00",
                  points: 0,
                  order_number: 12,
                  control: {
                    id: "167be85b-9c53-479b-9427-0d78cf99747e",
                    station: "64",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 71,
                  time_behind: null,
                  position: null,
                  cumulative_time: 923,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "63c12134-836f-4342-b6c0-918a628e0386",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:08:51.000+00:00",
                  points: 0,
                  order_number: 13,
                  control: {
                    id: "5db8729f-c6a0-48c6-b281-a92746fb01a2",
                    station: "61",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 40,
                  time_behind: null,
                  position: null,
                  cumulative_time: 963,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "e619967d-cfb5-446f-b389-1f0dba9d2d83",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:09:23.000+00:00",
                  points: 0,
                  order_number: 14,
                  control: {
                    id: "6330aeb1-36d6-4106-8237-e461beef9927",
                    station: "59",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 32,
                  time_behind: null,
                  position: null,
                  cumulative_time: 995,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "7a6c9932-16b6-4755-8d3c-50140a59919f",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:11:35.000+00:00",
                  points: 0,
                  order_number: 15,
                  control: {
                    id: "0cd67cdb-9e81-4429-96cb-998993b5889a",
                    station: "35",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 132,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1127,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "9255fae9-a4e4-41ea-b7c8-c2e6f626b495",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:11:45.000+00:00",
                  points: 0,
                  order_number: 16,
                  control: {
                    id: "5b3f5ac7-8dab-4796-bbbc-3276c20b706f",
                    station: "32",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 10,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1137,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "a363f1fb-e606-4c90-957f-1a697117f219",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:12:03.000+00:00",
                  points: 0,
                  order_number: 17,
                  control: {
                    id: "e3c151a6-f1f1-4e1c-a863-44258453d9a1",
                    station: "36",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 18,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1155,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "115fe5ed-648f-422f-ab6a-158ff0fe1ee8",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:13:28.000+00:00",
                  points: 0,
                  order_number: 18,
                  control: {
                    id: "3164b0c0-e007-4041-af51-845a6b61dbf8",
                    station: "40",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 85,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1240,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "41c6dd55-7a63-4348-8298-8784288f62d2",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:13:50.000+00:00",
                  points: 0,
                  order_number: 19,
                  control: {
                    id: "e50ccdfc-b97c-40c2-ba5c-1e9d789f2db9",
                    station: "45",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 22,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1262,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "57bd597b-accb-436d-b863-870765994e84",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:14:28.000+00:00",
                  points: 0,
                  order_number: 20,
                  control: {
                    id: "9388c772-bdd4-410f-acd0-fdccf51a0fc2",
                    station: "41",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 38,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1300,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "ab0cb0cb-55e0-4d08-b725-eb6cf1c21de3",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:15:23.000+00:00",
                  points: 0,
                  order_number: 21,
                  control: {
                    id: "0b29803c-bd45-4ec4-9a1b-14ce0c10f104",
                    station: "34",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 55,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1355,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "f353536a-983c-4c69-98ea-6a9d6eb9c482",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:15:46.000+00:00",
                  points: 0,
                  order_number: 22,
                  control: {
                    id: "63473e07-5b89-4c75-a3d7-6a187d2246bc",
                    station: "33",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 23,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1378,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "fabbf4dd-d4d6-463d-953c-7df9ae3f1a37",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:16:22.000+00:00",
                  points: 0,
                  order_number: 23,
                  control: {
                    id: "ababb8af-3d7d-4404-9063-91793c43a270",
                    station: "31",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 36,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1414,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "46f7f979-70e7-4def-9dfd-0f6c9d77798d",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:16:37.000+00:00",
                  points: 0,
                  order_number: 24,
                  control: {
                    id: "87c02337-f391-402b-af9c-b3cc85e4cd5a",
                    station: "100",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 15,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1429,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "string-finishSplit",
                  reading_time: "2001-01-01T10:17:07.000+00:00",
                  order_number: Infinity,
                  points: 0,
                  time: 30,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1459,
                  cumulative_behind: null,
                  cumulative_position: null,
                  control: null,
                  is_intermediate: true,
                },
              ],
              online_splits: [],
            },
            overalls: null,
          },
          {
            id: "string",
            bib_number: "105-3",
            is_nc: false,
            eligibility: null,
            sicard: "567890123",
            sex: "M",
            leg_number: 3,
            class: null,
            club: null,
            full_name: "full name 3",
            stage: {
              id: "string",
              result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
              start_time: "2001-01-01T10:17:07.000+00:00",
              finish_time: "2001-01-01T10:36:26.000+00:00",
              upload_type: "res_splits",
              time_seconds: 1159,
              position: 0,
              status_code: "0",
              time_behind: 0,
              time_neutralization: 0,
              time_adjusted: 0,
              time_penalty: 0,
              time_bonus: 0,
              points_final: 0,
              points_behind: 0,
              points_adjusted: 0,
              points_penalty: 0,
              points_bonus: 0,
              leg_number: 3,
              splits: [
                {
                  id: "4366b221-76c0-4c81-a74d-1c50532e68d7",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:18:58.000+00:00",
                  points: 0,
                  order_number: 1,
                  control: {
                    id: "5df9a798-0cec-4730-83bd-59c63fd18b7b",
                    station: "55",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 111,
                  time_behind: null,
                  position: null,
                  cumulative_time: 111,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "3b3f7e6c-8676-44ee-969d-b2d2d7623c60",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:20:40.000+00:00",
                  points: 0,
                  order_number: 2,
                  control: {
                    id: "7412eef6-4dbe-4300-8a10-385a411548bf",
                    station: "72",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 102,
                  time_behind: null,
                  position: null,
                  cumulative_time: 213,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "c70013c2-f70d-44fb-9ec2-a30089cf17ce",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:21:35.000+00:00",
                  points: 0,
                  order_number: 3,
                  control: {
                    id: "792e94db-0a53-482d-b537-b29514a67d70",
                    station: "73",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 55,
                  time_behind: null,
                  position: null,
                  cumulative_time: 268,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "9f8f7d1d-bdf6-4550-a160-196684e86d8f",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:22:15.000+00:00",
                  points: 0,
                  order_number: 4,
                  control: {
                    id: "0f52e7c3-e67d-46e8-86af-04af2503ece2",
                    station: "77",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 40,
                  time_behind: null,
                  position: null,
                  cumulative_time: 308,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "aa7839b2-1e6d-4374-8693-87e8bc27727a",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:23:11.000+00:00",
                  points: 0,
                  order_number: 5,
                  control: {
                    id: "14374e1e-2433-4980-b721-a3cb6cb69326",
                    station: "76",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 56,
                  time_behind: null,
                  position: null,
                  cumulative_time: 364,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "0533a0b1-304c-4fcc-8703-bdd94f16f383",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:24:00.000+00:00",
                  points: 0,
                  order_number: 6,
                  control: {
                    id: "ede79be9-5831-4d56-ba0b-c2a6638de2e7",
                    station: "87",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 49,
                  time_behind: null,
                  position: null,
                  cumulative_time: 413,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "9173bbb2-293f-4aba-968d-30494c568ba3",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:25:04.000+00:00",
                  points: 0,
                  order_number: 7,
                  control: {
                    id: "ce71c60d-3c46-4b9e-80e9-838e4fecf3aa",
                    station: "90",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 64,
                  time_behind: null,
                  position: null,
                  cumulative_time: 477,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "cdaa9266-9eec-4649-8822-072bd40b7a27",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:26:19.000+00:00",
                  points: 0,
                  order_number: 8,
                  control: {
                    id: "c69f8423-2211-4f79-9ca1-d2e9e73871b8",
                    station: "83",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 75,
                  time_behind: null,
                  position: null,
                  cumulative_time: 552,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "97d00d0c-ef6c-473f-bbb9-fa1fbbe5eee0",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:26:58.000+00:00",
                  points: 0,
                  order_number: 9,
                  control: {
                    id: "6c624b1a-5aa7-43ee-9291-a79a9bcd0f18",
                    station: "92",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 39,
                  time_behind: null,
                  position: null,
                  cumulative_time: 591,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "7c570f72-249f-43f5-916d-90ff07356e42",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:27:55.000+00:00",
                  points: 0,
                  order_number: 10,
                  control: {
                    id: "a7be5af3-f41e-43af-a287-a99ea89ab5cd",
                    station: "65",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 57,
                  time_behind: null,
                  position: null,
                  cumulative_time: 648,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "8c63b50d-3a7a-4c14-9d00-bf933869f113",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:28:38.000+00:00",
                  points: 0,
                  order_number: 11,
                  control: {
                    id: "5db8729f-c6a0-48c6-b281-a92746fb01a2",
                    station: "61",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 43,
                  time_behind: null,
                  position: null,
                  cumulative_time: 691,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "0a62320d-b3cf-4609-8670-df3375b5784c",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:29:10.000+00:00",
                  points: 0,
                  order_number: 12,
                  control: {
                    id: "6330aeb1-36d6-4106-8237-e461beef9927",
                    station: "59",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 32,
                  time_behind: null,
                  position: null,
                  cumulative_time: 723,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "e12eab4a-82f3-4f86-b6b5-02cf9a2bcd01",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:30:47.000+00:00",
                  points: 0,
                  order_number: 13,
                  control: {
                    id: "0cd67cdb-9e81-4429-96cb-998993b5889a",
                    station: "35",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 97,
                  time_behind: null,
                  position: null,
                  cumulative_time: 820,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "6627faa7-fdd8-4b60-903a-2b24a72fae99",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:30:58.000+00:00",
                  points: 0,
                  order_number: 14,
                  control: {
                    id: "5b3f5ac7-8dab-4796-bbbc-3276c20b706f",
                    station: "32",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 11,
                  time_behind: null,
                  position: null,
                  cumulative_time: 831,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "d7218df1-b95e-49dd-aa25-2658fbda5e3a",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:31:19.000+00:00",
                  points: 0,
                  order_number: 15,
                  control: {
                    id: "e3c151a6-f1f1-4e1c-a863-44258453d9a1",
                    station: "36",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 21,
                  time_behind: null,
                  position: null,
                  cumulative_time: 852,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "73cd9e07-4dfe-408b-bae1-875693faf925",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:32:37.000+00:00",
                  points: 0,
                  order_number: 16,
                  control: {
                    id: "3164b0c0-e007-4041-af51-845a6b61dbf8",
                    station: "40",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 78,
                  time_behind: null,
                  position: null,
                  cumulative_time: 930,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "37e7f31a-ce58-4521-a0f8-184f17eb0734",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:32:59.000+00:00",
                  points: 0,
                  order_number: 17,
                  control: {
                    id: "e50ccdfc-b97c-40c2-ba5c-1e9d789f2db9",
                    station: "45",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 22,
                  time_behind: null,
                  position: null,
                  cumulative_time: 952,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "c8008cc6-3995-45a7-9f45-ef850eb88303",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:33:41.000+00:00",
                  points: 0,
                  order_number: 18,
                  control: {
                    id: "9388c772-bdd4-410f-acd0-fdccf51a0fc2",
                    station: "41",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 42,
                  time_behind: null,
                  position: null,
                  cumulative_time: 994,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "9e506614-5a97-41fa-8e07-309cfcdc4a4a",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:34:32.000+00:00",
                  points: 0,
                  order_number: 19,
                  control: {
                    id: "0b29803c-bd45-4ec4-9a1b-14ce0c10f104",
                    station: "34",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 51,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1045,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "9c473ba7-a421-46ea-b9f6-47f0bb0014d2",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:34:56.000+00:00",
                  points: 0,
                  order_number: 20,
                  control: {
                    id: "63473e07-5b89-4c75-a3d7-6a187d2246bc",
                    station: "33",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 24,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1069,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "0fa6a95e-4780-4d02-9532-6b166eb18038",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:35:34.000+00:00",
                  points: 0,
                  order_number: 21,
                  control: {
                    id: "ababb8af-3d7d-4404-9063-91793c43a270",
                    station: "31",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 38,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1107,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "1b2dec08-2d9c-4dd4-b837-3fd341f4070d",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:35:51.000+00:00",
                  points: 0,
                  order_number: 22,
                  control: {
                    id: "87c02337-f391-402b-af9c-b3cc85e4cd5a",
                    station: "100",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 17,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1124,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "string-finishSplit",
                  reading_time: "2001-01-01T10:36:26.000+00:00",
                  order_number: Infinity,
                  points: 0,
                  time: 35,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1159,
                  cumulative_behind: null,
                  cumulative_position: null,
                  control: null,
                  is_intermediate: true,
                },
              ],
              online_splits: [],
            },
            overalls: null,
          },
          {
            id: "string",
            bib_number: "105-4",
            is_nc: false,
            eligibility: null,
            sicard: "34567890",
            sex: "F",
            leg_number: 4,
            class: null,
            club: null,
            full_name: "full name 4",
            stage: {
              id: "54f35a4b-157b-4963-baa2-eee41408c2d6",
              result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
              start_time: "2001-01-01T10:36:26.000+00:00",
              finish_time: "2001-01-01T10:54:23.000+00:00",
              upload_type: "res_splits",
              time_seconds: 1076,
              position: 0,
              status_code: "0",
              time_behind: 0,
              time_neutralization: 0,
              time_adjusted: 0,
              time_penalty: 0,
              time_bonus: 0,
              points_final: 0,
              points_behind: 0,
              points_adjusted: 0,
              points_penalty: 0,
              points_bonus: 0,
              leg_number: 4,
              splits: [
                {
                  id: "125a2a40-ef0e-411e-9670-f91243042be0",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:38:30.000+00:00",
                  points: 0,
                  order_number: 1,
                  control: {
                    id: "ae9e3d33-0bdd-4268-8963-00a180da4658",
                    station: "56",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 124,
                  time_behind: null,
                  position: null,
                  cumulative_time: 124,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "b978405c-8e91-4603-8c1b-1090be472dc8",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:39:48.000+00:00",
                  points: 0,
                  order_number: 2,
                  control: {
                    id: "688a32c6-9f67-46e5-8c36-81823e0f128f",
                    station: "70",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 78,
                  time_behind: null,
                  position: null,
                  cumulative_time: 202,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "51dd3914-a752-4879-a341-589c3b8ec281",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:40:40.000+00:00",
                  points: 0,
                  order_number: 3,
                  control: {
                    id: "14374e1e-2433-4980-b721-a3cb6cb69326",
                    station: "76",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 52,
                  time_behind: null,
                  position: null,
                  cumulative_time: 254,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "a0b13e1c-ee52-42ac-99e7-81c5210a1c2d",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:41:50.000+00:00",
                  points: 0,
                  order_number: 4,
                  control: {
                    id: "ede79be9-5831-4d56-ba0b-c2a6638de2e7",
                    station: "87",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 70,
                  time_behind: null,
                  position: null,
                  cumulative_time: 324,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "189fd3a6-9a1c-44bc-97d3-661b41c18d8f",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:43:20.000+00:00",
                  points: 0,
                  order_number: 5,
                  control: {
                    id: "ce71c60d-3c46-4b9e-80e9-838e4fecf3aa",
                    station: "90",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 90,
                  time_behind: null,
                  position: null,
                  cumulative_time: 414,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "c1976f05-1b4a-4313-8bd0-16f018d920ed",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:44:37.000+00:00",
                  points: 0,
                  order_number: 6,
                  control: {
                    id: "c69f8423-2211-4f79-9ca1-d2e9e73871b8",
                    station: "83",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 77,
                  time_behind: null,
                  position: null,
                  cumulative_time: 491,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "770df996-0ae2-40ba-8c96-f7f19ac622bb",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:45:21.000+00:00",
                  points: 0,
                  order_number: 7,
                  control: {
                    id: "6c624b1a-5aa7-43ee-9291-a79a9bcd0f18",
                    station: "92",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 44,
                  time_behind: null,
                  position: null,
                  cumulative_time: 535,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "489c1605-a34b-4aeb-9164-c894a12da85e",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:46:15.000+00:00",
                  points: 0,
                  order_number: 8,
                  control: {
                    id: "a7be5af3-f41e-43af-a287-a99ea89ab5cd",
                    station: "65",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 54,
                  time_behind: null,
                  position: null,
                  cumulative_time: 589,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "ef44b27f-eaf0-48ea-a7a5-d9b6327a57d0",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:46:57.000+00:00",
                  points: 0,
                  order_number: 9,
                  control: {
                    id: "5db8729f-c6a0-48c6-b281-a92746fb01a2",
                    station: "61",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 42,
                  time_behind: null,
                  position: null,
                  cumulative_time: 631,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "28d53e3d-1b94-4bc0-bf50-aac853ab21a1",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:47:30.000+00:00",
                  points: 0,
                  order_number: 10,
                  control: {
                    id: "6330aeb1-36d6-4106-8237-e461beef9927",
                    station: "59",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 33,
                  time_behind: null,
                  position: null,
                  cumulative_time: 664,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "bbce639c-bfbc-4376-b800-ec6293a49056",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:49:13.000+00:00",
                  points: 0,
                  order_number: 11,
                  control: {
                    id: "0cd67cdb-9e81-4429-96cb-998993b5889a",
                    station: "35",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 103,
                  time_behind: null,
                  position: null,
                  cumulative_time: 767,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "3c10eb35-261c-480e-b476-32fa58cb7830",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:49:26.000+00:00",
                  points: 0,
                  order_number: 12,
                  control: {
                    id: "5b3f5ac7-8dab-4796-bbbc-3276c20b706f",
                    station: "32",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 13,
                  time_behind: null,
                  position: null,
                  cumulative_time: 780,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "f12f6117-b428-4911-b5e2-cd24c8998a9e",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:49:49.000+00:00",
                  points: 0,
                  order_number: 13,
                  control: {
                    id: "e3c151a6-f1f1-4e1c-a863-44258453d9a1",
                    station: "36",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 23,
                  time_behind: null,
                  position: null,
                  cumulative_time: 803,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "e5e700da-e8c4-48cd-89be-7e5d7132a00c",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:50:43.000+00:00",
                  points: 0,
                  order_number: 14,
                  control: {
                    id: "fcd30260-c3f8-4f7e-b836-9c386e25a6c0",
                    station: "43",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 54,
                  time_behind: null,
                  position: null,
                  cumulative_time: 857,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "21393eb9-4c7c-465a-b016-8f3fcbb542cf",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:51:37.000+00:00",
                  points: 0,
                  order_number: 15,
                  control: {
                    id: "7e01e486-86d4-43c4-ba87-2a9410ab0d7e",
                    station: "44",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 54,
                  time_behind: null,
                  position: null,
                  cumulative_time: 911,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "2e9c21fe-8026-4bc5-8953-d2c1a4925530",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:52:55.000+00:00",
                  points: 0,
                  order_number: 16,
                  control: {
                    id: "63473e07-5b89-4c75-a3d7-6a187d2246bc",
                    station: "33",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 78,
                  time_behind: null,
                  position: null,
                  cumulative_time: 989,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "054cde33-29b9-4f2d-b8fb-fbe7c1b4e201",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:53:34.000+00:00",
                  points: 0,
                  order_number: 17,
                  control: {
                    id: "ababb8af-3d7d-4404-9063-91793c43a270",
                    station: "31",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 39,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1028,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "ef820602-2434-4119-aa4e-653387d52ac9",
                  is_intermediate: false,
                  reading_time: "2001-01-01T10:53:53.000+00:00",
                  points: 0,
                  order_number: 18,
                  control: {
                    id: "87c02337-f391-402b-af9c-b3cc85e4cd5a",
                    station: "100",
                    control_type: {
                      id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                      description: "Normal Control",
                    },
                  },
                  time: 19,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1047,
                  cumulative_behind: null,
                  cumulative_position: null,
                },
                {
                  id: "string-finishSplit",
                  reading_time: "2001-01-01T10:54:23.000+00:00",
                  order_number: Infinity,
                  points: 0,
                  time: 30,
                  time_behind: null,
                  position: null,
                  cumulative_time: 1076,
                  cumulative_behind: null,
                  cumulative_position: null,
                  control: null,
                  is_intermediate: true,
                },
              ],
              online_splits: [],
            },
            overalls: null,
          },
        ],
        class: {
          id: "ab6e955f-5ced-4224-adbc-5f52e64d55d6",
          short_name: "Senior",
          long_name: "",
        },
        club: null,
        full_name: "Team name 1",
        stage: {
          id: "7c9c4d3c-33e5-43f6-85a3-65c62c2488e2",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: null,
          finish_time: null,
          upload_type: "res_splits",
          time_seconds: 0,
          position: 0,
          status_code: "0",
          time_behind: 0,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          splits: [],
          online_splits: [],
        },
        overalls: null,
      },
    ]

    expect(processRunnerData(runnerList)).toEqual(expectedProcessedRunnerList)
  })
})

describe("VirtualTicketFunctions.calculateTimesAndBehindsFootO", () => {
  it("should calculate times and behind footO when all classified", () => {
    const runnersList: ProcessedRunnerModel[] = [
      {
        id: "a9c35e45-7f04-437e-af22-973bf899501f",
        bib_number: "4810",
        is_nc: false,
        eligibility: null,
        sicard: "1",
        sex: "M",
        leg_number: 1,
        class: {
          id: "a2a67c93-771b-45a9-a344-741c735e45d5",
          short_name: "M-16/18",
          long_name: "M-16/18",
        },
        club: {
          id: "71cca718-c9da-4fd4-8ba3-87f384c37205",
          short_name: "Club 1",
        },
        full_name: "Name 1 Surname 1",
        stage: {
          id: "82e97fc1-56f2-4fea-951e-c0efa4371e69",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-04-05T08:26:00.000+00:00",
          finish_time: "2025-04-05T09:06:08.000+00:00",
          upload_type: "res_splits",
          time_seconds: 2408,
          position: 1,
          status_code: "0",
          time_behind: 0,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "4b59b7cf-b1c2-4aa4-98dc-c93cd4a1a573",
              reading_time: "2025-04-05T08:32:05.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "047d1439-fb4e-41dd-ac67-f2c6b90fbf8e",
                station: "174",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 365,
              time_behind: null,
              position: null,
              cumulative_time: 365,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "80215daa-80b7-43c1-9785-e5a6efb74dbd",
              reading_time: "2025-04-05T08:32:50.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "da26d9f0-3f35-4a5f-838e-5b2df8ca6d21",
                station: "177",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 45,
              time_behind: null,
              position: null,
              cumulative_time: 410,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "7c8c2720-e972-4dd8-8aac-eb2df273bebd",
              reading_time: "2025-04-05T08:37:52.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "950479f4-bc3b-4a33-87d3-5ca232d7707f",
                station: "185",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 302,
              time_behind: null,
              position: null,
              cumulative_time: 712,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "4f46fa81-5f6b-4a88-9b85-62738be9b63b",
              reading_time: "2025-04-05T08:39:34.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "9a5355d6-bd4b-40b9-b9cc-33873ec3fa77",
                station: "175",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 102,
              time_behind: null,
              position: null,
              cumulative_time: 814,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "e59ea32b-3c68-437c-9a47-231a583676b4",
              reading_time: "2025-04-05T08:42:51.000+00:00",
              points: 0,
              order_number: 5,
              control: {
                id: "d4468cf4-a496-4b2d-87ca-face1fea6104",
                station: "161",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 197,
              time_behind: null,
              position: null,
              cumulative_time: 1011,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "2b142a87-39de-4c0f-8e88-a8e1008d43a1",
              reading_time: "2025-04-05T08:46:22.000+00:00",
              points: 0,
              order_number: 6,
              control: {
                id: "b007a2e0-6021-4664-9df9-86695359791a",
                station: "152",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 211,
              time_behind: null,
              position: null,
              cumulative_time: 1222,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "6f55a65a-9272-405e-b64a-909ee4f8e013",
              reading_time: "2025-04-05T08:55:23.000+00:00",
              points: 0,
              order_number: 7,
              control: {
                id: "46fa26da-b848-4917-bba2-2c91f957c33c",
                station: "164",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 541,
              time_behind: null,
              position: null,
              cumulative_time: 1763,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "ddfa25f0-6cd5-4d8b-a0ee-35d95ee1960d",
              reading_time: "2025-04-05T08:57:08.000+00:00",
              points: 0,
              order_number: 8,
              control: {
                id: "50947d78-3233-4cf9-8850-54fb7cc7e944",
                station: "167",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 105,
              time_behind: null,
              position: null,
              cumulative_time: 1868,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "a76c2058-3736-4222-92dd-cee89a1cf060",
              reading_time: "2025-04-05T09:00:01.000+00:00",
              points: 0,
              order_number: 9,
              control: {
                id: "a2059e9b-7260-4e57-8a98-b42687857fdd",
                station: "180",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 173,
              time_behind: null,
              position: null,
              cumulative_time: 2041,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "d4b4d269-4a00-4c7b-bf91-19a53f2633cb",
              reading_time: "2025-04-05T09:02:43.000+00:00",
              points: 0,
              order_number: 10,
              control: {
                id: "ab9e2615-9696-4f91-a8a5-5b56c64db84d",
                station: "194",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 162,
              time_behind: null,
              position: null,
              cumulative_time: 2203,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "5a6dc04c-365f-4dba-b3e9-a8ab4d5dd895",
              reading_time: "2025-04-05T09:05:03.000+00:00",
              points: 0,
              order_number: 11,
              control: {
                id: "d20592f4-408c-490a-89c5-f3826334131e",
                station: "203",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 140,
              time_behind: null,
              position: null,
              cumulative_time: 2343,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "23205d8b-2086-4560-9674-7d8e5ee403df",
              reading_time: "2025-04-05T09:05:47.000+00:00",
              points: 0,
              order_number: 12,
              control: {
                id: "f5459ddd-dba2-4146-b102-2ea4fe1d6fce",
                station: "200",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 44,
              time_behind: null,
              position: null,
              cumulative_time: 2387,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "a9c35e45-7f04-437e-af22-973bf899501f-finishSplit",
              reading_time: "2025-04-05T09:06:08.000+00:00",
              order_number: null,
              points: 0,
              time: 21,
              time_behind: null,
              position: null,
              cumulative_time: 2408,
              cumulative_behind: null,
              cumulative_position: null,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
      {
        id: "40c101e8-7c47-46e3-98d6-951115e5a4bd",
        bib_number: "2618",
        is_nc: false,
        eligibility: null,
        sicard: "2",
        sex: "M",
        leg_number: 1,
        class: {
          id: "a2a67c93-771b-45a9-a344-741c735e45d5",
          short_name: "M-16/18",
          long_name: "M-16/18",
        },
        club: {
          id: "61bd5893-c16d-415c-b33b-bd0c5a5b5afc",
          short_name: "Club 2",
        },
        full_name: "Name 2 Surname 2",
        stage: {
          id: "ca0ebe7a-0791-4c9a-937d-c7e4a7d4f82c",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-04-05T08:38:00.000+00:00",
          finish_time: "2025-04-05T09:47:32.000+00:00",
          upload_type: "res_splits",
          time_seconds: 4172,
          position: 2,
          status_code: "0",
          time_behind: 1764,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "0604c873-e2fd-4f3c-b1a7-c020487704f6",
              reading_time: "2025-04-05T08:57:30.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "047d1439-fb4e-41dd-ac67-f2c6b90fbf8e",
                station: "174",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 1170,
              time_behind: null,
              position: null,
              cumulative_time: 1170,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "5be964bb-0713-4f9c-87a7-716c4da6126f",
              reading_time: "2025-04-05T08:58:56.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "da26d9f0-3f35-4a5f-838e-5b2df8ca6d21",
                station: "177",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 86,
              time_behind: null,
              position: null,
              cumulative_time: 1256,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "d8673a80-7c6d-47d1-a871-06841ef0aa34",
              reading_time: "2025-04-05T09:07:35.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "950479f4-bc3b-4a33-87d3-5ca232d7707f",
                station: "185",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 519,
              time_behind: null,
              position: null,
              cumulative_time: 1775,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "f09e9343-8d80-4dfa-982d-93d97f7aba6a",
              reading_time: "2025-04-05T09:09:12.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "9a5355d6-bd4b-40b9-b9cc-33873ec3fa77",
                station: "175",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 97,
              time_behind: null,
              position: null,
              cumulative_time: 1872,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "8177f2f1-3f3b-4dba-a675-ca4c7d024333",
              reading_time: "2025-04-05T09:14:11.000+00:00",
              points: 0,
              order_number: 5,
              control: {
                id: "d4468cf4-a496-4b2d-87ca-face1fea6104",
                station: "161",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 299,
              time_behind: null,
              position: null,
              cumulative_time: 2171,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "4e3ec35c-a658-43ee-98e1-3d8b9ee09547",
              reading_time: "2025-04-05T09:18:02.000+00:00",
              points: 0,
              order_number: 6,
              control: {
                id: "b007a2e0-6021-4664-9df9-86695359791a",
                station: "152",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 231,
              time_behind: null,
              position: null,
              cumulative_time: 2402,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "c1505a53-d82e-4a06-8448-93f02f149f98",
              reading_time: "2025-04-05T09:31:48.000+00:00",
              points: 0,
              order_number: 7,
              control: {
                id: "46fa26da-b848-4917-bba2-2c91f957c33c",
                station: "164",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 826,
              time_behind: null,
              position: null,
              cumulative_time: 3228,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "b51672f6-a44c-415c-b9dd-3087d248f658",
              reading_time: "2025-04-05T09:34:32.000+00:00",
              points: 0,
              order_number: 8,
              control: {
                id: "50947d78-3233-4cf9-8850-54fb7cc7e944",
                station: "167",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 164,
              time_behind: null,
              position: null,
              cumulative_time: 3392,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "29f95b39-a812-47ff-a78a-9149265765ee",
              reading_time: "2025-04-05T09:37:25.000+00:00",
              points: 0,
              order_number: 9,
              control: {
                id: "a2059e9b-7260-4e57-8a98-b42687857fdd",
                station: "180",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 173,
              time_behind: null,
              position: null,
              cumulative_time: 3565,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "c2219353-5a3d-40e8-bdab-3cccecd991fd",
              reading_time: "2025-04-05T09:41:46.000+00:00",
              points: 0,
              order_number: 10,
              control: {
                id: "ab9e2615-9696-4f91-a8a5-5b56c64db84d",
                station: "194",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 261,
              time_behind: null,
              position: null,
              cumulative_time: 3826,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "18011c4a-064b-4641-a6ad-38c38e0bae24",
              reading_time: "2025-04-05T09:46:37.000+00:00",
              points: 0,
              order_number: 11,
              control: {
                id: "d20592f4-408c-490a-89c5-f3826334131e",
                station: "203",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 291,
              time_behind: null,
              position: null,
              cumulative_time: 4117,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "173a470d-0caa-431a-93f9-d2efb04c20f9",
              reading_time: "2025-04-05T09:47:17.000+00:00",
              points: 0,
              order_number: 12,
              control: {
                id: "f5459ddd-dba2-4146-b102-2ea4fe1d6fce",
                station: "200",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 40,
              time_behind: null,
              position: null,
              cumulative_time: 4157,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "40c101e8-7c47-46e3-98d6-951115e5a4bd-finishSplit",
              reading_time: "2025-04-05T09:47:32.000+00:00",
              order_number: null,
              points: 0,
              time: 15,
              time_behind: null,
              position: null,
              cumulative_time: 4172,
              cumulative_behind: null,
              cumulative_position: null,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
    ]

    const expectedRunnersList: ProcessedRunnerModel[] = [
      {
        id: "a9c35e45-7f04-437e-af22-973bf899501f",
        bib_number: "4810",
        is_nc: false,
        eligibility: null,
        sicard: "1",
        sex: "M",
        leg_number: 1,
        class: {
          id: "a2a67c93-771b-45a9-a344-741c735e45d5",
          short_name: "M-16/18",
          long_name: "M-16/18",
        },
        club: {
          id: "71cca718-c9da-4fd4-8ba3-87f384c37205",
          short_name: "Club 1",
        },
        full_name: "Name 1 Surname 1",
        stage: {
          id: "82e97fc1-56f2-4fea-951e-c0efa4371e69",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-04-05T08:26:00.000+00:00",
          finish_time: "2025-04-05T09:06:08.000+00:00",
          upload_type: "res_splits",
          time_seconds: 2408,
          position: 1,
          status_code: "0",
          time_behind: 0,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 1000,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "4b59b7cf-b1c2-4aa4-98dc-c93cd4a1a573",
              reading_time: "2025-04-05T08:32:05.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "047d1439-fb4e-41dd-ac67-f2c6b90fbf8e",
                station: "174",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 365,
              time_behind: 0,
              position: 1,
              cumulative_time: 365,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "80215daa-80b7-43c1-9785-e5a6efb74dbd",
              reading_time: "2025-04-05T08:32:50.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "da26d9f0-3f35-4a5f-838e-5b2df8ca6d21",
                station: "177",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 45,
              time_behind: 0,
              position: 1,
              cumulative_time: 410,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "7c8c2720-e972-4dd8-8aac-eb2df273bebd",
              reading_time: "2025-04-05T08:37:52.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "950479f4-bc3b-4a33-87d3-5ca232d7707f",
                station: "185",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 302,
              time_behind: 0,
              position: 1,
              cumulative_time: 712,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "4f46fa81-5f6b-4a88-9b85-62738be9b63b",
              reading_time: "2025-04-05T08:39:34.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "9a5355d6-bd4b-40b9-b9cc-33873ec3fa77",
                station: "175",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 102,
              time_behind: 5,
              position: 2,
              cumulative_time: 814,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "e59ea32b-3c68-437c-9a47-231a583676b4",
              reading_time: "2025-04-05T08:42:51.000+00:00",
              points: 0,
              order_number: 5,
              control: {
                id: "d4468cf4-a496-4b2d-87ca-face1fea6104",
                station: "161",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 197,
              time_behind: 0,
              position: 1,
              cumulative_time: 1011,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "2b142a87-39de-4c0f-8e88-a8e1008d43a1",
              reading_time: "2025-04-05T08:46:22.000+00:00",
              points: 0,
              order_number: 6,
              control: {
                id: "b007a2e0-6021-4664-9df9-86695359791a",
                station: "152",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 211,
              time_behind: 0,
              position: 1,
              cumulative_time: 1222,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "6f55a65a-9272-405e-b64a-909ee4f8e013",
              reading_time: "2025-04-05T08:55:23.000+00:00",
              points: 0,
              order_number: 7,
              control: {
                id: "46fa26da-b848-4917-bba2-2c91f957c33c",
                station: "164",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 541,
              time_behind: 0,
              position: 1,
              cumulative_time: 1763,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "ddfa25f0-6cd5-4d8b-a0ee-35d95ee1960d",
              reading_time: "2025-04-05T08:57:08.000+00:00",
              points: 0,
              order_number: 8,
              control: {
                id: "50947d78-3233-4cf9-8850-54fb7cc7e944",
                station: "167",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 105,
              time_behind: 0,
              position: 1,
              cumulative_time: 1868,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "a76c2058-3736-4222-92dd-cee89a1cf060",
              reading_time: "2025-04-05T09:00:01.000+00:00",
              points: 0,
              order_number: 9,
              control: {
                id: "a2059e9b-7260-4e57-8a98-b42687857fdd",
                station: "180",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 173,
              time_behind: 0,
              position: 1,
              cumulative_time: 2041,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "d4b4d269-4a00-4c7b-bf91-19a53f2633cb",
              reading_time: "2025-04-05T09:02:43.000+00:00",
              points: 0,
              order_number: 10,
              control: {
                id: "ab9e2615-9696-4f91-a8a5-5b56c64db84d",
                station: "194",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 162,
              time_behind: 0,
              position: 1,
              cumulative_time: 2203,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "5a6dc04c-365f-4dba-b3e9-a8ab4d5dd895",
              reading_time: "2025-04-05T09:05:03.000+00:00",
              points: 0,
              order_number: 11,
              control: {
                id: "d20592f4-408c-490a-89c5-f3826334131e",
                station: "203",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 140,
              time_behind: 0,
              position: 1,
              cumulative_time: 2343,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "23205d8b-2086-4560-9674-7d8e5ee403df",
              reading_time: "2025-04-05T09:05:47.000+00:00",
              points: 0,
              order_number: 12,
              control: {
                id: "f5459ddd-dba2-4146-b102-2ea4fe1d6fce",
                station: "200",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 44,
              time_behind: 4,
              position: 2,
              cumulative_time: 2387,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "a9c35e45-7f04-437e-af22-973bf899501f-finishSplit",
              reading_time: "2025-04-05T09:06:08.000+00:00",
              order_number: null,
              points: 0,
              time: 21,
              time_behind: 6,
              position: 2,
              cumulative_time: 2408,
              cumulative_behind: 0,
              cumulative_position: 1,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
      {
        id: "40c101e8-7c47-46e3-98d6-951115e5a4bd",
        bib_number: "2618",
        is_nc: false,
        eligibility: null,
        sicard: "2",
        sex: "M",
        leg_number: 1,
        class: {
          id: "a2a67c93-771b-45a9-a344-741c735e45d5",
          short_name: "M-16/18",
          long_name: "M-16/18",
        },
        club: {
          id: "61bd5893-c16d-415c-b33b-bd0c5a5b5afc",
          short_name: "Club 2",
        },
        full_name: "Name 2 Surname 2",
        stage: {
          id: "ca0ebe7a-0791-4c9a-937d-c7e4a7d4f82c",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-04-05T08:38:00.000+00:00",
          finish_time: "2025-04-05T09:47:32.000+00:00",
          upload_type: "res_splits",
          time_seconds: 4172,
          position: 2,
          status_code: "0",
          time_behind: 1764,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 577,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "0604c873-e2fd-4f3c-b1a7-c020487704f6",
              reading_time: "2025-04-05T08:57:30.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "047d1439-fb4e-41dd-ac67-f2c6b90fbf8e",
                station: "174",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 1170,
              time_behind: 805,
              position: 2,
              cumulative_time: 1170,
              cumulative_behind: 805,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "5be964bb-0713-4f9c-87a7-716c4da6126f",
              reading_time: "2025-04-05T08:58:56.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "da26d9f0-3f35-4a5f-838e-5b2df8ca6d21",
                station: "177",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 86,
              time_behind: 41,
              position: 2,
              cumulative_time: 1256,
              cumulative_behind: 846,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "d8673a80-7c6d-47d1-a871-06841ef0aa34",
              reading_time: "2025-04-05T09:07:35.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "950479f4-bc3b-4a33-87d3-5ca232d7707f",
                station: "185",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 519,
              time_behind: 217,
              position: 2,
              cumulative_time: 1775,
              cumulative_behind: 1063,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "f09e9343-8d80-4dfa-982d-93d97f7aba6a",
              reading_time: "2025-04-05T09:09:12.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "9a5355d6-bd4b-40b9-b9cc-33873ec3fa77",
                station: "175",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 97,
              time_behind: 0,
              position: 1,
              cumulative_time: 1872,
              cumulative_behind: 1058,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "8177f2f1-3f3b-4dba-a675-ca4c7d024333",
              reading_time: "2025-04-05T09:14:11.000+00:00",
              points: 0,
              order_number: 5,
              control: {
                id: "d4468cf4-a496-4b2d-87ca-face1fea6104",
                station: "161",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 299,
              time_behind: 102,
              position: 2,
              cumulative_time: 2171,
              cumulative_behind: 1160,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "4e3ec35c-a658-43ee-98e1-3d8b9ee09547",
              reading_time: "2025-04-05T09:18:02.000+00:00",
              points: 0,
              order_number: 6,
              control: {
                id: "b007a2e0-6021-4664-9df9-86695359791a",
                station: "152",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 231,
              time_behind: 20,
              position: 2,
              cumulative_time: 2402,
              cumulative_behind: 1180,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "c1505a53-d82e-4a06-8448-93f02f149f98",
              reading_time: "2025-04-05T09:31:48.000+00:00",
              points: 0,
              order_number: 7,
              control: {
                id: "46fa26da-b848-4917-bba2-2c91f957c33c",
                station: "164",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 826,
              time_behind: 285,
              position: 2,
              cumulative_time: 3228,
              cumulative_behind: 1465,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "b51672f6-a44c-415c-b9dd-3087d248f658",
              reading_time: "2025-04-05T09:34:32.000+00:00",
              points: 0,
              order_number: 8,
              control: {
                id: "50947d78-3233-4cf9-8850-54fb7cc7e944",
                station: "167",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 164,
              time_behind: 59,
              position: 2,
              cumulative_time: 3392,
              cumulative_behind: 1524,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "29f95b39-a812-47ff-a78a-9149265765ee",
              reading_time: "2025-04-05T09:37:25.000+00:00",
              points: 0,
              order_number: 9,
              control: {
                id: "a2059e9b-7260-4e57-8a98-b42687857fdd",
                station: "180",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 173,
              time_behind: 0,
              position: 1,
              cumulative_time: 3565,
              cumulative_behind: 1524,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "c2219353-5a3d-40e8-bdab-3cccecd991fd",
              reading_time: "2025-04-05T09:41:46.000+00:00",
              points: 0,
              order_number: 10,
              control: {
                id: "ab9e2615-9696-4f91-a8a5-5b56c64db84d",
                station: "194",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 261,
              time_behind: 99,
              position: 2,
              cumulative_time: 3826,
              cumulative_behind: 1623,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "18011c4a-064b-4641-a6ad-38c38e0bae24",
              reading_time: "2025-04-05T09:46:37.000+00:00",
              points: 0,
              order_number: 11,
              control: {
                id: "d20592f4-408c-490a-89c5-f3826334131e",
                station: "203",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 291,
              time_behind: 151,
              position: 2,
              cumulative_time: 4117,
              cumulative_behind: 1774,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "173a470d-0caa-431a-93f9-d2efb04c20f9",
              reading_time: "2025-04-05T09:47:17.000+00:00",
              points: 0,
              order_number: 12,
              control: {
                id: "f5459ddd-dba2-4146-b102-2ea4fe1d6fce",
                station: "200",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 40,
              time_behind: 0,
              position: 1,
              cumulative_time: 4157,
              cumulative_behind: 1770,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "40c101e8-7c47-46e3-98d6-951115e5a4bd-finishSplit",
              reading_time: "2025-04-05T09:47:32.000+00:00",
              order_number: null,
              points: 0,
              time: 15,
              time_behind: 0,
              position: 1,
              cumulative_time: 4172,
              cumulative_behind: 1764,
              cumulative_position: 2,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
    ]

    const result = calculatePositionsAndBehindsFootO(runnersList)

    expect(result).toEqual(expectedRunnersList)
  })

  it("should handle missing punches", () => {
    const runnerList: ProcessedRunnerModel[] = [
      {
        id: "40faf87d-ef2e-4a90-a71e-ed801763dcc6",
        bib_number: "169",
        is_nc: false,
        eligibility: null,
        sicard: "1",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "Class short",
          long_name: "Class long",
        },
        club: {
          id: "string",
          short_name: "Club 1",
        },
        full_name: "Full name 1",
        stage: {
          id: "string",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-05-10T10:38:00.000+00:00",
          finish_time: "2025-05-10T11:02:16.000+00:00",
          upload_type: "res_splits",
          time_seconds: 1456,
          position: 1,
          status_code: "0",
          time_behind: 0,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "993adf2d-469d-486e-9ed1-13cd623ebc2e",
              reading_time: "2025-05-10T10:39:25.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "820db9b9-d435-4f97-920f-e6fd2f64250f",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 85,
              time_behind: null,
              position: null,
              cumulative_time: 85,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "2fb0865c-1f90-4d30-9616-ccce1079d098",
              reading_time: "2025-05-10T10:42:14.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "88174e0b-9786-4b41-9aca-ac51c141b343",
                station: "35",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 169,
              time_behind: null,
              position: null,
              cumulative_time: 254,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "374bd4e1-4ccf-4f54-b349-741ed2944e53",
              reading_time: "2025-05-10T10:43:52.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "0f63dc71-d2d8-4752-86d0-9ba5e9f9bd00",
                station: "37",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 98,
              time_behind: null,
              position: null,
              cumulative_time: 352,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "87f01687-8a3d-4df9-9095-636597dfa390",
              reading_time: "2025-05-10T10:45:57.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "1ad8fe2f-ad83-445f-883f-53450a10c1ee",
                station: "40",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 125,
              time_behind: null,
              position: null,
              cumulative_time: 477,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "2d8d88d4-eca3-4966-8454-463d610b480c",
              reading_time: "2025-05-10T10:46:55.000+00:00",
              points: 0,
              order_number: 5,
              control: {
                id: "479bc538-3280-448f-9dac-ace6f2ff53b3",
                station: "39",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 58,
              time_behind: null,
              position: null,
              cumulative_time: 535,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "4a5e7bbb-cbcb-448b-8a94-4e98c754a57e",
              reading_time: "2025-05-10T10:49:26.000+00:00",
              points: 0,
              order_number: 6,
              control: {
                id: "b85cdb6a-deb1-4448-9615-f6c79fc485cc",
                station: "44",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 151,
              time_behind: null,
              position: null,
              cumulative_time: 686,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "fce173b3-96d8-4238-af9c-8bcdd8caedab",
              reading_time: "2025-05-10T10:50:44.000+00:00",
              points: 0,
              order_number: 7,
              control: {
                id: "4870bab0-7927-4bbe-95c3-9f35f62fd192",
                station: "47",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 78,
              time_behind: null,
              position: null,
              cumulative_time: 764,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "6b729269-ff31-47a5-9b52-5d43f167e1de",
              reading_time: "2025-05-10T10:51:23.000+00:00",
              points: 0,
              order_number: 8,
              control: {
                id: "f4c61eae-5469-4efd-b28d-50cf24990c99",
                station: "46",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 39,
              time_behind: null,
              position: null,
              cumulative_time: 803,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "71d833f0-ea11-4b3b-a422-6ff551f404d4",
              reading_time: "2025-05-10T10:52:13.000+00:00",
              points: 0,
              order_number: 9,
              control: {
                id: "81e8007e-bf17-4767-8b95-71c4feb6e99b",
                station: "45",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 50,
              time_behind: null,
              position: null,
              cumulative_time: 853,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "f271c288-b6b9-4e93-88db-ab7d39c98b9a",
              reading_time: "2025-05-10T10:55:08.000+00:00",
              points: 0,
              order_number: 10,
              control: {
                id: "43d717e0-b2eb-4295-a539-9219e5cb3e2c",
                station: "50",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 175,
              time_behind: null,
              position: null,
              cumulative_time: 1028,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "5ed1a395-f738-48b3-8c6e-3be4eb38a576",
              reading_time: "2025-05-10T10:57:42.000+00:00",
              points: 0,
              order_number: 11,
              control: {
                id: "354c90e8-2c7b-4c65-a5d2-27eddd7a055b",
                station: "52",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 154,
              time_behind: null,
              position: null,
              cumulative_time: 1182,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "880acb6e-59d5-4900-9156-93dcea5ba9bf",
              reading_time: "2025-05-10T10:59:15.000+00:00",
              points: 0,
              order_number: 12,
              control: {
                id: "480e4bf2-48ef-46c4-b813-77073b5e0680",
                station: "55",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 93,
              time_behind: null,
              position: null,
              cumulative_time: 1275,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "aede6661-6264-4b4d-ae79-1cc5b4fc5ccb",
              reading_time: "2025-05-10T11:01:09.000+00:00",
              points: 0,
              order_number: 13,
              control: {
                id: "518200a7-9a9b-40e2-ac0d-7bf3b95d8403",
                station: "89",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 114,
              time_behind: null,
              position: null,
              cumulative_time: 1389,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "df8b0fbd-8f78-46cb-936f-c22098072ae5",
              reading_time: "2025-05-10T11:01:48.000+00:00",
              points: 0,
              order_number: 14,
              control: {
                id: "24912cbf-5f7d-49af-9fde-a659eb08d544",
                station: "100",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 39,
              time_behind: null,
              position: null,
              cumulative_time: 1428,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "40faf87d-ef2e-4a90-a71e-ed801763dcc6-finishSplit",
              reading_time: "2025-05-10T11:02:16.000+00:00",
              order_number: null,
              points: 0,
              time: 28,
              time_behind: null,
              position: null,
              cumulative_time: 1456,
              cumulative_behind: null,
              cumulative_position: null,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
      {
        id: "6bf776e0-8dd4-4b30-a015-e96530fbecb0",
        bib_number: "162",
        is_nc: false,
        eligibility: null,
        sicard: "2",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "Class short",
          long_name: "Class long",
        },
        club: {
          id: "86a5c1f2-370e-433a-97b1-04507790fc2a",
          short_name: "Club 2",
        },
        full_name: "Full name 2",
        stage: {
          id: "e8d4a8e1-08f1-40e3-bb30-53f01a8f61e6",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-05-10T10:06:00.000+00:00",
          finish_time: "2025-05-10T10:38:48.000+00:00",
          upload_type: "res_splits",
          time_seconds: 1968,
          position: 2,
          status_code: "0",
          time_behind: 512,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "ca2a6f2d-6abc-489e-a21e-2acc84bc619e",
              reading_time: "2025-05-10T10:07:40.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "820db9b9-d435-4f97-920f-e6fd2f64250f",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 100,
              time_behind: null,
              position: null,
              cumulative_time: 100,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "3aaaf4b5-542e-48a2-8ef9-d13ff50ce6e0",
              reading_time: "2025-05-10T10:11:12.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "88174e0b-9786-4b41-9aca-ac51c141b343",
                station: "35",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 212,
              time_behind: null,
              position: null,
              cumulative_time: 312,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "fc782974-8228-4092-9b59-173b53143fcf",
              reading_time: "2025-05-10T10:13:20.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "0f63dc71-d2d8-4752-86d0-9ba5e9f9bd00",
                station: "37",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 128,
              time_behind: null,
              position: null,
              cumulative_time: 440,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "2d80d358-9de3-48fd-85ba-812c91fa386a",
              reading_time: "2025-05-10T10:16:27.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "1ad8fe2f-ad83-445f-883f-53450a10c1ee",
                station: "40",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 187,
              time_behind: null,
              position: null,
              cumulative_time: 627,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "9baa4d0f-f53a-4e63-ab24-06d058f3e05b",
              reading_time: "2025-05-10T10:18:32.000+00:00",
              points: 0,
              order_number: 5,
              control: {
                id: "479bc538-3280-448f-9dac-ace6f2ff53b3",
                station: "39",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 125,
              time_behind: null,
              position: null,
              cumulative_time: 752,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "d3219f7b-21a6-4f11-a887-945cd046fa66",
              reading_time: "2025-05-10T10:24:19.000+00:00",
              points: 0,
              order_number: 6,
              control: {
                id: "b85cdb6a-deb1-4448-9615-f6c79fc485cc",
                station: "44",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 347,
              time_behind: null,
              position: null,
              cumulative_time: 1099,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "9b8fc8de-cd96-4626-bda2-afd29f6d2a7f",
              reading_time: "2025-05-10T10:25:15.000+00:00",
              points: 0,
              order_number: 7,
              control: {
                id: "4870bab0-7927-4bbe-95c3-9f35f62fd192",
                station: "47",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 56,
              time_behind: null,
              position: null,
              cumulative_time: 1155,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "503b706b-c64e-4454-9716-f9e337b2650e",
              reading_time: "2025-05-10T10:26:11.000+00:00",
              points: 0,
              order_number: 8,
              control: {
                id: "f4c61eae-5469-4efd-b28d-50cf24990c99",
                station: "46",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 56,
              time_behind: null,
              position: null,
              cumulative_time: 1211,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "233b1cbd-9b0e-409b-bb25-1c815a79b14a",
              reading_time: "2025-05-10T10:27:11.000+00:00",
              points: 0,
              order_number: 9,
              control: {
                id: "81e8007e-bf17-4767-8b95-71c4feb6e99b",
                station: "45",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 60,
              time_behind: null,
              position: null,
              cumulative_time: 1271,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "17b7270c-3d4c-4f9d-9882-dfb23b7de43f",
              reading_time: "2025-05-10T10:30:55.000+00:00",
              points: 0,
              order_number: 10,
              control: {
                id: "43d717e0-b2eb-4295-a539-9219e5cb3e2c",
                station: "50",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 224,
              time_behind: null,
              position: null,
              cumulative_time: 1495,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "12314716-0185-481e-8a68-f7c30dd6519e",
              reading_time: "2025-05-10T10:34:01.000+00:00",
              points: 0,
              order_number: 11,
              control: {
                id: "354c90e8-2c7b-4c65-a5d2-27eddd7a055b",
                station: "52",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 186,
              time_behind: null,
              position: null,
              cumulative_time: 1681,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "a1fb89a9-c218-4806-9bb7-b15af11e0ef3",
              reading_time: "2025-05-10T10:35:49.000+00:00",
              points: 0,
              order_number: 12,
              control: {
                id: "480e4bf2-48ef-46c4-b813-77073b5e0680",
                station: "55",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 108,
              time_behind: null,
              position: null,
              cumulative_time: 1789,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "727ce424-3f78-4af5-9cd5-3cc2091f48d7",
              reading_time: "2025-05-10T10:37:38.000+00:00",
              points: 0,
              order_number: 13,
              control: {
                id: "518200a7-9a9b-40e2-ac0d-7bf3b95d8403",
                station: "89",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 109,
              time_behind: null,
              position: null,
              cumulative_time: 1898,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "449b4a52-9666-4a87-a5f9-b743ff0e6117",
              reading_time: "2025-05-10T10:38:22.000+00:00",
              points: 0,
              order_number: 14,
              control: {
                id: "24912cbf-5f7d-49af-9fde-a659eb08d544",
                station: "100",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 44,
              time_behind: null,
              position: null,
              cumulative_time: 1942,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "6bf776e0-8dd4-4b30-a015-e96530fbecb0-finishSplit",
              reading_time: "2025-05-10T10:38:48.000+00:00",
              order_number: null,
              points: 0,
              time: 26,
              time_behind: null,
              position: null,
              cumulative_time: 1968,
              cumulative_behind: null,
              cumulative_position: null,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
      {
        id: "string",
        bib_number: "161",
        is_nc: false,
        eligibility: null,
        sicard: "3",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "Class short",
          long_name: "Class long",
        },
        club: {
          id: "string",
          short_name: "Club 3",
        },
        full_name: "Full name 3",
        stage: {
          id: "cf3e9242-b9e4-4aec-88a9-e5ecafc6c8ae",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-05-10T09:58:00.000+00:00",
          finish_time: "2025-05-10T10:31:37.000+00:00",
          upload_type: "res_splits",
          time_seconds: 2017,
          position: 3,
          status_code: "0",
          time_behind: 561,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "f6500248-5ab2-4717-aaaf-79df688b6395",
              reading_time: "2025-05-10T10:02:56.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "820db9b9-d435-4f97-920f-e6fd2f64250f",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 296,
              time_behind: null,
              position: null,
              cumulative_time: 296,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "246004a7-3610-4692-a9cf-46cca9cefe13",
              reading_time: "2025-05-10T10:06:51.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "88174e0b-9786-4b41-9aca-ac51c141b343",
                station: "35",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 235,
              time_behind: null,
              position: null,
              cumulative_time: 531,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "95c89a94-3ba4-42e0-bb45-922d7db3ae00",
              reading_time: "2025-05-10T10:09:07.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "0f63dc71-d2d8-4752-86d0-9ba5e9f9bd00",
                station: "37",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 136,
              time_behind: null,
              position: null,
              cumulative_time: 667,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "bb781eec-8ceb-49ff-bd63-2132326ce505",
              reading_time: "2025-05-10T10:11:02.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "1ad8fe2f-ad83-445f-883f-53450a10c1ee",
                station: "40",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 115,
              time_behind: null,
              position: null,
              cumulative_time: 782,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "979a1f3a-0765-4589-9046-9845e650fc7a",
              reading_time: "2025-05-10T10:12:40.000+00:00",
              points: 0,
              order_number: 5,
              control: {
                id: "479bc538-3280-448f-9dac-ace6f2ff53b3",
                station: "39",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 98,
              time_behind: null,
              position: null,
              cumulative_time: 880,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "733a2edb-1236-483d-bbbf-7ea3d6803c39",
              reading_time: "2025-05-10T10:15:49.000+00:00",
              points: 0,
              order_number: 6,
              control: {
                id: "b85cdb6a-deb1-4448-9615-f6c79fc485cc",
                station: "44",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 189,
              time_behind: null,
              position: null,
              cumulative_time: 1069,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "440faa5c-ec73-410f-a304-bcbddc7cb1be",
              reading_time: "2025-05-10T10:16:54.000+00:00",
              points: 0,
              order_number: 7,
              control: {
                id: "4870bab0-7927-4bbe-95c3-9f35f62fd192",
                station: "47",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 65,
              time_behind: null,
              position: null,
              cumulative_time: 1134,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "81d88439-5924-482f-8107-26df796a50bf",
              reading_time: "2025-05-10T10:18:11.000+00:00",
              points: 0,
              order_number: 8,
              control: {
                id: "f4c61eae-5469-4efd-b28d-50cf24990c99",
                station: "46",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 77,
              time_behind: null,
              position: null,
              cumulative_time: 1211,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "9a74ecdc-d30c-426c-bcec-9bed404d80cb",
              reading_time: "2025-05-10T10:19:17.000+00:00",
              points: 0,
              order_number: 9,
              control: {
                id: "81e8007e-bf17-4767-8b95-71c4feb6e99b",
                station: "45",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 66,
              time_behind: null,
              position: null,
              cumulative_time: 1277,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "7d5ac31d-3b66-404c-81ca-8ae7c0818e19",
              reading_time: "2025-05-10T10:23:27.000+00:00",
              points: 0,
              order_number: 10,
              control: {
                id: "43d717e0-b2eb-4295-a539-9219e5cb3e2c",
                station: "50",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 250,
              time_behind: null,
              position: null,
              cumulative_time: 1527,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "2c0009b9-03de-4054-af19-8347d23dce98",
              reading_time: "2025-05-10T10:26:38.000+00:00",
              points: 0,
              order_number: 11,
              control: {
                id: "354c90e8-2c7b-4c65-a5d2-27eddd7a055b",
                station: "52",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 191,
              time_behind: null,
              position: null,
              cumulative_time: 1718,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "38bf730f-c881-4086-b61d-0b3c913c44f3",
              reading_time: "2025-05-10T10:28:22.000+00:00",
              points: 0,
              order_number: 12,
              control: {
                id: "480e4bf2-48ef-46c4-b813-77073b5e0680",
                station: "55",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 104,
              time_behind: null,
              position: null,
              cumulative_time: 1822,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "d661b8c4-b29f-4d62-9ac9-f8c95dce59bb",
              reading_time: "2025-05-10T10:30:18.000+00:00",
              points: 0,
              order_number: 13,
              control: {
                id: "518200a7-9a9b-40e2-ac0d-7bf3b95d8403",
                station: "89",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 116,
              time_behind: null,
              position: null,
              cumulative_time: 1938,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "96ce9871-640f-4edb-9158-5efc7fc6d416",
              reading_time: "2025-05-10T10:31:07.000+00:00",
              points: 0,
              order_number: 14,
              control: {
                id: "24912cbf-5f7d-49af-9fde-a659eb08d544",
                station: "100",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 49,
              time_behind: null,
              position: null,
              cumulative_time: 1987,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "4586870e-d311-4f68-b04c-27b2613e9cf2-finishSplit",
              reading_time: "2025-05-10T10:31:37.000+00:00",
              order_number: null,
              points: 0,
              time: 30,
              time_behind: null,
              position: null,
              cumulative_time: 2017,
              cumulative_behind: null,
              cumulative_position: null,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
      {
        id: "string",
        bib_number: "170",
        is_nc: false,
        eligibility: null,
        sicard: "4",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "Class short",
          long_name: "Class long",
        },
        club: {
          id: "string",
          short_name: "Club 4",
        },
        full_name: "Full name 4",
        stage: {
          id: "43e7ec0f-ec20-4930-bc39-612488ccb789",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-05-10T10:14:00.000+00:00",
          finish_time: "2025-05-10T10:51:22.000+00:00",
          upload_type: "res_splits",
          time_seconds: 2242,
          position: 0,
          status_code: "3",
          time_behind: 786,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "baa9e5f9-8760-4a54-b4d7-37d41a62d2ac",
              reading_time: "2025-05-10T10:16:00.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "820db9b9-d435-4f97-920f-e6fd2f64250f",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 120,
              time_behind: null,
              position: null,
              cumulative_time: 120,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "3edd3024-2cda-4afa-b597-d2cf3a8e9865",
              reading_time: "2025-05-10T10:19:52.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "88174e0b-9786-4b41-9aca-ac51c141b343",
                station: "35",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 232,
              time_behind: null,
              position: null,
              cumulative_time: 352,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "471ef51b-dbec-4650-910d-418c0960a203",
              reading_time: "2025-05-10T10:23:17.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "0f63dc71-d2d8-4752-86d0-9ba5e9f9bd00",
                station: "37",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 205,
              time_behind: null,
              position: null,
              cumulative_time: 557,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "a7556611-6fea-4d3b-abf3-c3734d733789",
              reading_time: "2025-05-10T10:24:41.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "1ad8fe2f-ad83-445f-883f-53450a10c1ee",
                station: "40",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 84,
              time_behind: null,
              position: null,
              cumulative_time: 641,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "8266307d-3ba5-41c0-9d70-75fbcd74ed98",
              reading_time: "2025-05-10T10:26:02.000+00:00",
              points: 0,
              order_number: 5,
              control: {
                id: "479bc538-3280-448f-9dac-ace6f2ff53b3",
                station: "39",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 81,
              time_behind: null,
              position: null,
              cumulative_time: 722,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "afa00fce-6484-4a9e-b566-30c07b2c27b9",
              reading_time: "2025-05-10T10:29:26.000+00:00",
              points: 0,
              order_number: 6,
              control: {
                id: "b85cdb6a-deb1-4448-9615-f6c79fc485cc",
                station: "44",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 204,
              time_behind: null,
              position: null,
              cumulative_time: 926,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "aeea846c-2d55-4efd-8903-d562aee8c93c",
              reading_time: "2025-05-10T10:32:01.000+00:00",
              points: 0,
              order_number: 7,
              control: {
                id: "4870bab0-7927-4bbe-95c3-9f35f62fd192",
                station: "47",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 155,
              time_behind: null,
              position: null,
              cumulative_time: 1081,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "3ab931ef-2d69-404d-92d3-65681a137ba3",
              reading_time: "2025-05-10T10:34:07.000+00:00",
              points: 0,
              order_number: 8,
              control: {
                id: "f4c61eae-5469-4efd-b28d-50cf24990c99",
                station: "46",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 126,
              time_behind: null,
              position: null,
              cumulative_time: 1207,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "64b8e3ce-1721-4ede-8a74-76a666a0a65c",
              reading_time: "2025-05-10T10:35:02.000+00:00",
              points: 0,
              order_number: 9,
              control: {
                id: "81e8007e-bf17-4767-8b95-71c4feb6e99b",
                station: "45",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 55,
              time_behind: null,
              position: null,
              cumulative_time: 1262,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "22008b23-8bb5-414a-8337-253742c59e1d",
              reading_time: "2025-05-10T10:40:46.000+00:00",
              points: 0,
              order_number: 10,
              control: {
                id: "43d717e0-b2eb-4295-a539-9219e5cb3e2c",
                station: "50",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 344,
              time_behind: null,
              position: null,
              cumulative_time: 1606,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "ba4138ab-ca44-4911-bcc9-da9efc879794",
              reading_time: "2025-05-10T10:45:05.000+00:00",
              points: 0,
              order_number: 11,
              control: {
                id: "354c90e8-2c7b-4c65-a5d2-27eddd7a055b",
                station: "52",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 259,
              time_behind: null,
              position: null,
              cumulative_time: 1865,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "26bccd26-5295-4c1e-b7b8-ab4a162e91f8",
              reading_time: "2025-05-10T10:48:10.000+00:00",
              points: 0,
              order_number: 12,
              control: {
                id: "480e4bf2-48ef-46c4-b813-77073b5e0680",
                station: "55",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 185,
              time_behind: null,
              position: null,
              cumulative_time: 2050,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "12af8d76-0f8e-431f-bf3e-11dd1f807c40",
              reading_time: null,
              points: 0,
              order_number: 13,
              control: {
                id: "518200a7-9a9b-40e2-ac0d-7bf3b95d8403",
                station: "89",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "e473c5c2-205e-414e-8bcb-977bfb7d2f8a",
              reading_time: "2025-05-10T10:50:44.000+00:00",
              points: 0,
              order_number: 14,
              control: {
                id: "24912cbf-5f7d-49af-9fde-a659eb08d544",
                station: "100",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: 2204,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "ebc38f2c-a64e-4df3-a0b1-b95d2a4880db-finishSplit",
              reading_time: "2025-05-10T10:51:22.000+00:00",
              order_number: null,
              points: 0,
              time: 38,
              time_behind: null,
              position: null,
              cumulative_time: 2242,
              cumulative_behind: null,
              cumulative_position: null,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
      {
        id: "889938e3-74bf-4fa4-bb57-ef2d1d404c23",
        bib_number: "163",
        is_nc: false,
        eligibility: null,
        sicard: "5",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "Class short",
          long_name: "Class long",
        },
        club: {
          id: "string",
          short_name: "Club 5",
        },
        full_name: "Full name 5",
        stage: {
          id: "76a178dd-a13b-4ced-9e3c-b848ac74f0e1",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-05-10T10:02:00.000+00:00",
          finish_time: "2025-05-10T11:19:45.000+00:00",
          upload_type: "res_splits",
          time_seconds: 4665,
          position: 0,
          status_code: "3",
          time_behind: 3209,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "bd1459ab-32db-47d7-ac84-a829550e13d5",
              reading_time: "2025-05-10T10:10:05.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "820db9b9-d435-4f97-920f-e6fd2f64250f",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 485,
              time_behind: null,
              position: null,
              cumulative_time: 485,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "a1f750cc-3db9-4d25-83b2-5828c8f4271a",
              reading_time: "2025-05-10T10:15:34.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "88174e0b-9786-4b41-9aca-ac51c141b343",
                station: "35",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 329,
              time_behind: null,
              position: null,
              cumulative_time: 814,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "697de16b-adf9-4f3c-bdfe-9ef2f0dc6f7a",
              reading_time: "2025-05-10T10:18:52.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "0f63dc71-d2d8-4752-86d0-9ba5e9f9bd00",
                station: "37",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 198,
              time_behind: null,
              position: null,
              cumulative_time: 1012,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "6ff9834c-0729-4913-a4e9-eb42a219ede7",
              reading_time: "2025-05-10T10:39:58.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "1ad8fe2f-ad83-445f-883f-53450a10c1ee",
                station: "40",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 1266,
              time_behind: null,
              position: null,
              cumulative_time: 2278,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "f04b6a16-9159-4879-9f47-a5ce2302f9ab",
              reading_time: "2025-05-10T10:42:52.000+00:00",
              points: 0,
              order_number: 5,
              control: {
                id: "479bc538-3280-448f-9dac-ace6f2ff53b3",
                station: "39",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 174,
              time_behind: null,
              position: null,
              cumulative_time: 2452,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "f3bcd2f3-de66-4610-bc8a-6b5c512299e9",
              reading_time: "2025-05-10T10:55:59.000+00:00",
              points: 0,
              order_number: 6,
              control: {
                id: "b85cdb6a-deb1-4448-9615-f6c79fc485cc",
                station: "44",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 787,
              time_behind: null,
              position: null,
              cumulative_time: 3239,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "8d9f1ab2-d87c-4269-8e73-313661a03bae",
              reading_time: "2025-05-10T11:00:23.000+00:00",
              points: 0,
              order_number: 7,
              control: {
                id: "4870bab0-7927-4bbe-95c3-9f35f62fd192",
                station: "47",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 264,
              time_behind: null,
              position: null,
              cumulative_time: 3503,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "cecff0e1-2640-4b62-84ae-d037a4628ebe",
              reading_time: null,
              points: 0,
              order_number: 8,
              control: {
                id: "f4c61eae-5469-4efd-b28d-50cf24990c99",
                station: "46",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "07c9b721-3889-426e-a921-1e2e4007a843",
              reading_time: null,
              points: 0,
              order_number: 9,
              control: {
                id: "81e8007e-bf17-4767-8b95-71c4feb6e99b",
                station: "45",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "024a7432-5085-4554-b11f-e2a0b93d4750",
              reading_time: "2025-05-10T11:13:52.000+00:00",
              points: 0,
              order_number: 10,
              control: {
                id: "43d717e0-b2eb-4295-a539-9219e5cb3e2c",
                station: "50",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: 4312,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "3d896999-e8bf-467f-b034-79c786d596c1",
              reading_time: null,
              points: 0,
              order_number: 11,
              control: {
                id: "354c90e8-2c7b-4c65-a5d2-27eddd7a055b",
                station: "52",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "0d0c34f9-4c1c-48d8-9f70-c1f3736dd44c",
              reading_time: null,
              points: 0,
              order_number: 12,
              control: {
                id: "480e4bf2-48ef-46c4-b813-77073b5e0680",
                station: "55",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "3a5b0649-1251-43ea-846e-04ef76902a25",
              reading_time: null,
              points: 0,
              order_number: 13,
              control: {
                id: "518200a7-9a9b-40e2-ac0d-7bf3b95d8403",
                station: "89",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "4dd3118b-1bf8-43fd-ac78-d271e311eefd",
              reading_time: "2025-05-10T11:19:07.000+00:00",
              points: 0,
              order_number: 14,
              control: {
                id: "24912cbf-5f7d-49af-9fde-a659eb08d544",
                station: "100",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: 4627,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "889938e3-74bf-4fa4-bb57-ef2d1d404c23-finishSplit",
              reading_time: "2025-05-10T11:19:45.000+00:00",
              order_number: null,
              points: 0,
              time: 38,
              time_behind: null,
              position: null,
              cumulative_time: 4665,
              cumulative_behind: null,
              cumulative_position: null,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
      {
        id: "a4cb7df9-15f2-4cb4-aa9c-abdf85e36336",
        bib_number: "166",
        is_nc: false,
        eligibility: null,
        sicard: "6",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "Class short",
          long_name: "Class long",
        },
        club: {
          id: "string",
          short_name: "Club 6",
        },
        full_name: "Full name 6",
        stage: {
          id: "5f31c323-e67c-495f-a289-3fc10e1e6b01",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-05-10T09:50:00.000+00:00",
          finish_time: "2025-05-10T11:38:45.000+00:00",
          upload_type: "res_splits",
          time_seconds: 6525,
          position: 0,
          status_code: "2",
          time_behind: 5069,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "43e89cad-2ef1-4928-956e-eae278536e22",
              reading_time: "2025-05-10T10:04:31.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "820db9b9-d435-4f97-920f-e6fd2f64250f",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 871,
              time_behind: null,
              position: null,
              cumulative_time: 871,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "b5f11fb2-b981-4208-a2cd-9bffa74fe537",
              reading_time: "2025-05-10T10:15:12.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "88174e0b-9786-4b41-9aca-ac51c141b343",
                station: "35",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 641,
              time_behind: null,
              position: null,
              cumulative_time: 1512,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "aff7ad30-e2ec-4141-b4bf-15ae4aa0ab9c",
              reading_time: "2025-05-10T10:26:14.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "0f63dc71-d2d8-4752-86d0-9ba5e9f9bd00",
                station: "37",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 662,
              time_behind: null,
              position: null,
              cumulative_time: 2174,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "cee8aaa1-2b71-4947-8764-56e1931147a1",
              reading_time: null,
              points: 0,
              order_number: 4,
              control: {
                id: "1ad8fe2f-ad83-445f-883f-53450a10c1ee",
                station: "40",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "a85fa6f9-e58b-480d-a8e4-2c7e9272c7d7",
              reading_time: null,
              points: 0,
              order_number: 5,
              control: {
                id: "479bc538-3280-448f-9dac-ace6f2ff53b3",
                station: "39",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "a1bec3bd-2756-4963-b781-fa2bb71a81c3",
              reading_time: null,
              points: 0,
              order_number: 6,
              control: {
                id: "b85cdb6a-deb1-4448-9615-f6c79fc485cc",
                station: "44",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "6ba24fd3-b02f-4b22-b157-247d2423560b",
              reading_time: null,
              points: 0,
              order_number: 7,
              control: {
                id: "4870bab0-7927-4bbe-95c3-9f35f62fd192",
                station: "47",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "8eca32b8-138b-4acc-acb1-979d3d39bf38",
              reading_time: null,
              points: 0,
              order_number: 8,
              control: {
                id: "f4c61eae-5469-4efd-b28d-50cf24990c99",
                station: "46",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "7774b182-5eb4-47f5-b112-55d23bf0a5c9",
              reading_time: null,
              points: 0,
              order_number: 9,
              control: {
                id: "81e8007e-bf17-4767-8b95-71c4feb6e99b",
                station: "45",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "ff402867-d96a-41ea-83d8-506b3817a42b",
              reading_time: null,
              points: 0,
              order_number: 10,
              control: {
                id: "43d717e0-b2eb-4295-a539-9219e5cb3e2c",
                station: "50",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "95742edf-b3e2-4239-963d-2c88dbca852b",
              reading_time: null,
              points: 0,
              order_number: 11,
              control: {
                id: "354c90e8-2c7b-4c65-a5d2-27eddd7a055b",
                station: "52",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "7a6825aa-6811-42fd-9e5d-f5fd97ced821",
              reading_time: null,
              points: 0,
              order_number: 12,
              control: {
                id: "480e4bf2-48ef-46c4-b813-77073b5e0680",
                station: "55",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "576221cd-b9d0-4927-93ed-db31412c033b",
              reading_time: null,
              points: 0,
              order_number: 13,
              control: {
                id: "518200a7-9a9b-40e2-ac0d-7bf3b95d8403",
                station: "89",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "99d9384a-32a3-45b8-8039-41e4e68f8808",
              reading_time: null,
              points: 0,
              order_number: 14,
              control: {
                id: "24912cbf-5f7d-49af-9fde-a659eb08d544",
                station: "100",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "a4cb7df9-15f2-4cb4-aa9c-abdf85e36336-finishSplit",
              reading_time: "2025-05-10T11:38:45.000+00:00",
              order_number: null,
              points: 0,
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
    ]

    const expectedRunnerList: ProcessedRunnerModel[] = [
      {
        id: "40faf87d-ef2e-4a90-a71e-ed801763dcc6",
        bib_number: "169",
        is_nc: false,
        eligibility: null,
        sicard: "1",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "Class short",
          long_name: "Class long",
        },
        club: {
          id: "string",
          short_name: "Club 1",
        },
        full_name: "Full name 1",
        stage: {
          id: "string",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-05-10T10:38:00.000+00:00",
          finish_time: "2025-05-10T11:02:16.000+00:00",
          upload_type: "res_splits",
          time_seconds: 1456,
          position: 1,
          status_code: "0",
          time_behind: 0,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 1000,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "993adf2d-469d-486e-9ed1-13cd623ebc2e",
              reading_time: "2025-05-10T10:39:25.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "820db9b9-d435-4f97-920f-e6fd2f64250f",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 85,
              time_behind: 0,
              position: 1,
              cumulative_time: 85,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "2fb0865c-1f90-4d30-9616-ccce1079d098",
              reading_time: "2025-05-10T10:42:14.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "88174e0b-9786-4b41-9aca-ac51c141b343",
                station: "35",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 169,
              time_behind: 0,
              position: 1,
              cumulative_time: 254,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "374bd4e1-4ccf-4f54-b349-741ed2944e53",
              reading_time: "2025-05-10T10:43:52.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "0f63dc71-d2d8-4752-86d0-9ba5e9f9bd00",
                station: "37",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 98,
              time_behind: 0,
              position: 1,
              cumulative_time: 352,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "87f01687-8a3d-4df9-9095-636597dfa390",
              reading_time: "2025-05-10T10:45:57.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "1ad8fe2f-ad83-445f-883f-53450a10c1ee",
                station: "40",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 125,
              time_behind: 41,
              position: 3,
              cumulative_time: 477,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "2d8d88d4-eca3-4966-8454-463d610b480c",
              reading_time: "2025-05-10T10:46:55.000+00:00",
              points: 0,
              order_number: 5,
              control: {
                id: "479bc538-3280-448f-9dac-ace6f2ff53b3",
                station: "39",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 58,
              time_behind: 0,
              position: 1,
              cumulative_time: 535,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "4a5e7bbb-cbcb-448b-8a94-4e98c754a57e",
              reading_time: "2025-05-10T10:49:26.000+00:00",
              points: 0,
              order_number: 6,
              control: {
                id: "b85cdb6a-deb1-4448-9615-f6c79fc485cc",
                station: "44",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 151,
              time_behind: 0,
              position: 1,
              cumulative_time: 686,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "fce173b3-96d8-4238-af9c-8bcdd8caedab",
              reading_time: "2025-05-10T10:50:44.000+00:00",
              points: 0,
              order_number: 7,
              control: {
                id: "4870bab0-7927-4bbe-95c3-9f35f62fd192",
                station: "47",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 78,
              time_behind: 22,
              position: 3,
              cumulative_time: 764,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "6b729269-ff31-47a5-9b52-5d43f167e1de",
              reading_time: "2025-05-10T10:51:23.000+00:00",
              points: 0,
              order_number: 8,
              control: {
                id: "f4c61eae-5469-4efd-b28d-50cf24990c99",
                station: "46",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 39,
              time_behind: 0,
              position: 1,
              cumulative_time: 803,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "71d833f0-ea11-4b3b-a422-6ff551f404d4",
              reading_time: "2025-05-10T10:52:13.000+00:00",
              points: 0,
              order_number: 9,
              control: {
                id: "81e8007e-bf17-4767-8b95-71c4feb6e99b",
                station: "45",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 50,
              time_behind: 0,
              position: 1,
              cumulative_time: 853,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "f271c288-b6b9-4e93-88db-ab7d39c98b9a",
              reading_time: "2025-05-10T10:55:08.000+00:00",
              points: 0,
              order_number: 10,
              control: {
                id: "43d717e0-b2eb-4295-a539-9219e5cb3e2c",
                station: "50",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 175,
              time_behind: 0,
              position: 1,
              cumulative_time: 1028,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "5ed1a395-f738-48b3-8c6e-3be4eb38a576",
              reading_time: "2025-05-10T10:57:42.000+00:00",
              points: 0,
              order_number: 11,
              control: {
                id: "354c90e8-2c7b-4c65-a5d2-27eddd7a055b",
                station: "52",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 154,
              time_behind: 0,
              position: 1,
              cumulative_time: 1182,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "880acb6e-59d5-4900-9156-93dcea5ba9bf",
              reading_time: "2025-05-10T10:59:15.000+00:00",
              points: 0,
              order_number: 12,
              control: {
                id: "480e4bf2-48ef-46c4-b813-77073b5e0680",
                station: "55",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 93,
              time_behind: 0,
              position: 1,
              cumulative_time: 1275,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "aede6661-6264-4b4d-ae79-1cc5b4fc5ccb",
              reading_time: "2025-05-10T11:01:09.000+00:00",
              points: 0,
              order_number: 13,
              control: {
                id: "518200a7-9a9b-40e2-ac0d-7bf3b95d8403",
                station: "89",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 114,
              time_behind: 5,
              position: 2,
              cumulative_time: 1389,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "df8b0fbd-8f78-46cb-936f-c22098072ae5",
              reading_time: "2025-05-10T11:01:48.000+00:00",
              points: 0,
              order_number: 14,
              control: {
                id: "24912cbf-5f7d-49af-9fde-a659eb08d544",
                station: "100",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 39,
              time_behind: 0,
              position: 1,
              cumulative_time: 1428,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "40faf87d-ef2e-4a90-a71e-ed801763dcc6-finishSplit",
              reading_time: "2025-05-10T11:02:16.000+00:00",
              order_number: null,
              points: 0,
              time: 28,
              time_behind: 2,
              position: 2,
              cumulative_time: 1456,
              cumulative_behind: 0,
              cumulative_position: 1,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
      {
        id: "6bf776e0-8dd4-4b30-a015-e96530fbecb0",
        bib_number: "162",
        is_nc: false,
        eligibility: null,
        sicard: "2",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "Class short",
          long_name: "Class long",
        },
        club: {
          id: "86a5c1f2-370e-433a-97b1-04507790fc2a",
          short_name: "Club 2",
        },
        full_name: "Full name 2",
        stage: {
          id: "e8d4a8e1-08f1-40e3-bb30-53f01a8f61e6",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-05-10T10:06:00.000+00:00",
          finish_time: "2025-05-10T10:38:48.000+00:00",
          upload_type: "res_splits",
          time_seconds: 1968,
          position: 2,
          status_code: "0",
          time_behind: 512,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 740,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "ca2a6f2d-6abc-489e-a21e-2acc84bc619e",
              reading_time: "2025-05-10T10:07:40.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "820db9b9-d435-4f97-920f-e6fd2f64250f",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 100,
              time_behind: 15,
              position: 2,
              cumulative_time: 100,
              cumulative_behind: 15,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "3aaaf4b5-542e-48a2-8ef9-d13ff50ce6e0",
              reading_time: "2025-05-10T10:11:12.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "88174e0b-9786-4b41-9aca-ac51c141b343",
                station: "35",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 212,
              time_behind: 43,
              position: 2,
              cumulative_time: 312,
              cumulative_behind: 58,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "fc782974-8228-4092-9b59-173b53143fcf",
              reading_time: "2025-05-10T10:13:20.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "0f63dc71-d2d8-4752-86d0-9ba5e9f9bd00",
                station: "37",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 128,
              time_behind: 30,
              position: 2,
              cumulative_time: 440,
              cumulative_behind: 88,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "2d80d358-9de3-48fd-85ba-812c91fa386a",
              reading_time: "2025-05-10T10:16:27.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "1ad8fe2f-ad83-445f-883f-53450a10c1ee",
                station: "40",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 187,
              time_behind: 103,
              position: 4,
              cumulative_time: 627,
              cumulative_behind: 150,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "9baa4d0f-f53a-4e63-ab24-06d058f3e05b",
              reading_time: "2025-05-10T10:18:32.000+00:00",
              points: 0,
              order_number: 5,
              control: {
                id: "479bc538-3280-448f-9dac-ace6f2ff53b3",
                station: "39",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 125,
              time_behind: 67,
              position: 4,
              cumulative_time: 752,
              cumulative_behind: 217,
              cumulative_position: 3,
              is_intermediate: false,
            },
            {
              id: "d3219f7b-21a6-4f11-a887-945cd046fa66",
              reading_time: "2025-05-10T10:24:19.000+00:00",
              points: 0,
              order_number: 6,
              control: {
                id: "b85cdb6a-deb1-4448-9615-f6c79fc485cc",
                station: "44",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 347,
              time_behind: 196,
              position: 4,
              cumulative_time: 1099,
              cumulative_behind: 413,
              cumulative_position: 4,
              is_intermediate: false,
            },
            {
              id: "9b8fc8de-cd96-4626-bda2-afd29f6d2a7f",
              reading_time: "2025-05-10T10:25:15.000+00:00",
              points: 0,
              order_number: 7,
              control: {
                id: "4870bab0-7927-4bbe-95c3-9f35f62fd192",
                station: "47",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 56,
              time_behind: 0,
              position: 1,
              cumulative_time: 1155,
              cumulative_behind: 391,
              cumulative_position: 4,
              is_intermediate: false,
            },
            {
              id: "503b706b-c64e-4454-9716-f9e337b2650e",
              reading_time: "2025-05-10T10:26:11.000+00:00",
              points: 0,
              order_number: 8,
              control: {
                id: "f4c61eae-5469-4efd-b28d-50cf24990c99",
                station: "46",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 56,
              time_behind: 17,
              position: 2,
              cumulative_time: 1211,
              cumulative_behind: 408,
              cumulative_position: 3,
              is_intermediate: false,
            },
            {
              id: "233b1cbd-9b0e-409b-bb25-1c815a79b14a",
              reading_time: "2025-05-10T10:27:11.000+00:00",
              points: 0,
              order_number: 9,
              control: {
                id: "81e8007e-bf17-4767-8b95-71c4feb6e99b",
                station: "45",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 60,
              time_behind: 10,
              position: 3,
              cumulative_time: 1271,
              cumulative_behind: 418,
              cumulative_position: 3,
              is_intermediate: false,
            },
            {
              id: "17b7270c-3d4c-4f9d-9882-dfb23b7de43f",
              reading_time: "2025-05-10T10:30:55.000+00:00",
              points: 0,
              order_number: 10,
              control: {
                id: "43d717e0-b2eb-4295-a539-9219e5cb3e2c",
                station: "50",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 224,
              time_behind: 49,
              position: 2,
              cumulative_time: 1495,
              cumulative_behind: 467,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "12314716-0185-481e-8a68-f7c30dd6519e",
              reading_time: "2025-05-10T10:34:01.000+00:00",
              points: 0,
              order_number: 11,
              control: {
                id: "354c90e8-2c7b-4c65-a5d2-27eddd7a055b",
                station: "52",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 186,
              time_behind: 32,
              position: 2,
              cumulative_time: 1681,
              cumulative_behind: 499,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "a1fb89a9-c218-4806-9bb7-b15af11e0ef3",
              reading_time: "2025-05-10T10:35:49.000+00:00",
              points: 0,
              order_number: 12,
              control: {
                id: "480e4bf2-48ef-46c4-b813-77073b5e0680",
                station: "55",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 108,
              time_behind: 15,
              position: 3,
              cumulative_time: 1789,
              cumulative_behind: 514,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "727ce424-3f78-4af5-9cd5-3cc2091f48d7",
              reading_time: "2025-05-10T10:37:38.000+00:00",
              points: 0,
              order_number: 13,
              control: {
                id: "518200a7-9a9b-40e2-ac0d-7bf3b95d8403",
                station: "89",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 109,
              time_behind: 0,
              position: 1,
              cumulative_time: 1898,
              cumulative_behind: 509,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "449b4a52-9666-4a87-a5f9-b743ff0e6117",
              reading_time: "2025-05-10T10:38:22.000+00:00",
              points: 0,
              order_number: 14,
              control: {
                id: "24912cbf-5f7d-49af-9fde-a659eb08d544",
                station: "100",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 44,
              time_behind: 5,
              position: 2,
              cumulative_time: 1942,
              cumulative_behind: 514,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "6bf776e0-8dd4-4b30-a015-e96530fbecb0-finishSplit",
              reading_time: "2025-05-10T10:38:48.000+00:00",
              order_number: null,
              points: 0,
              time: 26,
              time_behind: 0,
              position: 1,
              cumulative_time: 1968,
              cumulative_behind: 512,
              cumulative_position: 2,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
      {
        id: "string",
        bib_number: "161",
        is_nc: false,
        eligibility: null,
        sicard: "3",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "Class short",
          long_name: "Class long",
        },
        club: {
          id: "string",
          short_name: "Club 3",
        },
        full_name: "Full name 3",
        stage: {
          id: "cf3e9242-b9e4-4aec-88a9-e5ecafc6c8ae",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-05-10T09:58:00.000+00:00",
          finish_time: "2025-05-10T10:31:37.000+00:00",
          upload_type: "res_splits",
          time_seconds: 2017,
          position: 3,
          status_code: "0",
          time_behind: 561,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 722,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "f6500248-5ab2-4717-aaaf-79df688b6395",
              reading_time: "2025-05-10T10:02:56.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "820db9b9-d435-4f97-920f-e6fd2f64250f",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 296,
              time_behind: 211,
              position: 4,
              cumulative_time: 296,
              cumulative_behind: 211,
              cumulative_position: 4,
              is_intermediate: false,
            },
            {
              id: "246004a7-3610-4692-a9cf-46cca9cefe13",
              reading_time: "2025-05-10T10:06:51.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "88174e0b-9786-4b41-9aca-ac51c141b343",
                station: "35",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 235,
              time_behind: 66,
              position: 4,
              cumulative_time: 531,
              cumulative_behind: 277,
              cumulative_position: 4,
              is_intermediate: false,
            },
            {
              id: "95c89a94-3ba4-42e0-bb45-922d7db3ae00",
              reading_time: "2025-05-10T10:09:07.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "0f63dc71-d2d8-4752-86d0-9ba5e9f9bd00",
                station: "37",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 136,
              time_behind: 38,
              position: 3,
              cumulative_time: 667,
              cumulative_behind: 315,
              cumulative_position: 4,
              is_intermediate: false,
            },
            {
              id: "bb781eec-8ceb-49ff-bd63-2132326ce505",
              reading_time: "2025-05-10T10:11:02.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "1ad8fe2f-ad83-445f-883f-53450a10c1ee",
                station: "40",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 115,
              time_behind: 31,
              position: 2,
              cumulative_time: 782,
              cumulative_behind: 305,
              cumulative_position: 4,
              is_intermediate: false,
            },
            {
              id: "979a1f3a-0765-4589-9046-9845e650fc7a",
              reading_time: "2025-05-10T10:12:40.000+00:00",
              points: 0,
              order_number: 5,
              control: {
                id: "479bc538-3280-448f-9dac-ace6f2ff53b3",
                station: "39",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 98,
              time_behind: 40,
              position: 3,
              cumulative_time: 880,
              cumulative_behind: 345,
              cumulative_position: 4,
              is_intermediate: false,
            },
            {
              id: "733a2edb-1236-483d-bbbf-7ea3d6803c39",
              reading_time: "2025-05-10T10:15:49.000+00:00",
              points: 0,
              order_number: 6,
              control: {
                id: "b85cdb6a-deb1-4448-9615-f6c79fc485cc",
                station: "44",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 189,
              time_behind: 38,
              position: 2,
              cumulative_time: 1069,
              cumulative_behind: 383,
              cumulative_position: 3,
              is_intermediate: false,
            },
            {
              id: "440faa5c-ec73-410f-a304-bcbddc7cb1be",
              reading_time: "2025-05-10T10:16:54.000+00:00",
              points: 0,
              order_number: 7,
              control: {
                id: "4870bab0-7927-4bbe-95c3-9f35f62fd192",
                station: "47",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 65,
              time_behind: 9,
              position: 2,
              cumulative_time: 1134,
              cumulative_behind: 370,
              cumulative_position: 3,
              is_intermediate: false,
            },
            {
              id: "81d88439-5924-482f-8107-26df796a50bf",
              reading_time: "2025-05-10T10:18:11.000+00:00",
              points: 0,
              order_number: 8,
              control: {
                id: "f4c61eae-5469-4efd-b28d-50cf24990c99",
                station: "46",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 77,
              time_behind: 38,
              position: 3,
              cumulative_time: 1211,
              cumulative_behind: 408,
              cumulative_position: 3,
              is_intermediate: false,
            },
            {
              id: "9a74ecdc-d30c-426c-bcec-9bed404d80cb",
              reading_time: "2025-05-10T10:19:17.000+00:00",
              points: 0,
              order_number: 9,
              control: {
                id: "81e8007e-bf17-4767-8b95-71c4feb6e99b",
                station: "45",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 66,
              time_behind: 16,
              position: 4,
              cumulative_time: 1277,
              cumulative_behind: 424,
              cumulative_position: 4,
              is_intermediate: false,
            },
            {
              id: "7d5ac31d-3b66-404c-81ca-8ae7c0818e19",
              reading_time: "2025-05-10T10:23:27.000+00:00",
              points: 0,
              order_number: 10,
              control: {
                id: "43d717e0-b2eb-4295-a539-9219e5cb3e2c",
                station: "50",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 250,
              time_behind: 75,
              position: 3,
              cumulative_time: 1527,
              cumulative_behind: 499,
              cumulative_position: 3,
              is_intermediate: false,
            },
            {
              id: "2c0009b9-03de-4054-af19-8347d23dce98",
              reading_time: "2025-05-10T10:26:38.000+00:00",
              points: 0,
              order_number: 11,
              control: {
                id: "354c90e8-2c7b-4c65-a5d2-27eddd7a055b",
                station: "52",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 191,
              time_behind: 37,
              position: 3,
              cumulative_time: 1718,
              cumulative_behind: 536,
              cumulative_position: 3,
              is_intermediate: false,
            },
            {
              id: "38bf730f-c881-4086-b61d-0b3c913c44f3",
              reading_time: "2025-05-10T10:28:22.000+00:00",
              points: 0,
              order_number: 12,
              control: {
                id: "480e4bf2-48ef-46c4-b813-77073b5e0680",
                station: "55",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 104,
              time_behind: 11,
              position: 2,
              cumulative_time: 1822,
              cumulative_behind: 547,
              cumulative_position: 3,
              is_intermediate: false,
            },
            {
              id: "d661b8c4-b29f-4d62-9ac9-f8c95dce59bb",
              reading_time: "2025-05-10T10:30:18.000+00:00",
              points: 0,
              order_number: 13,
              control: {
                id: "518200a7-9a9b-40e2-ac0d-7bf3b95d8403",
                station: "89",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 116,
              time_behind: 7,
              position: 3,
              cumulative_time: 1938,
              cumulative_behind: 549,
              cumulative_position: 3,
              is_intermediate: false,
            },
            {
              id: "96ce9871-640f-4edb-9158-5efc7fc6d416",
              reading_time: "2025-05-10T10:31:07.000+00:00",
              points: 0,
              order_number: 14,
              control: {
                id: "24912cbf-5f7d-49af-9fde-a659eb08d544",
                station: "100",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 49,
              time_behind: 10,
              position: 3,
              cumulative_time: 1987,
              cumulative_behind: 559,
              cumulative_position: 3,
              is_intermediate: false,
            },
            {
              id: "4586870e-d311-4f68-b04c-27b2613e9cf2-finishSplit",
              reading_time: "2025-05-10T10:31:37.000+00:00",
              order_number: null,
              points: 0,
              time: 30,
              time_behind: 4,
              position: 3,
              cumulative_time: 2017,
              cumulative_behind: 561,
              cumulative_position: 3,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
      {
        id: "string",
        bib_number: "170",
        is_nc: false,
        eligibility: null,
        sicard: "4",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "Class short",
          long_name: "Class long",
        },
        club: {
          id: "string",
          short_name: "Club 4",
        },
        full_name: "Full name 4",
        stage: {
          id: "43e7ec0f-ec20-4930-bc39-612488ccb789",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-05-10T10:14:00.000+00:00",
          finish_time: "2025-05-10T10:51:22.000+00:00",
          upload_type: "res_splits",
          time_seconds: 2242,
          position: 0,
          status_code: "3",
          time_behind: 786,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "baa9e5f9-8760-4a54-b4d7-37d41a62d2ac",
              reading_time: "2025-05-10T10:16:00.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "820db9b9-d435-4f97-920f-e6fd2f64250f",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 120,
              time_behind: 35,
              position: 3,
              cumulative_time: 120,
              cumulative_behind: 35,
              cumulative_position: 3,
              is_intermediate: false,
            },
            {
              id: "3edd3024-2cda-4afa-b597-d2cf3a8e9865",
              reading_time: "2025-05-10T10:19:52.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "88174e0b-9786-4b41-9aca-ac51c141b343",
                station: "35",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 232,
              time_behind: 63,
              position: 3,
              cumulative_time: 352,
              cumulative_behind: 98,
              cumulative_position: 3,
              is_intermediate: false,
            },
            {
              id: "471ef51b-dbec-4650-910d-418c0960a203",
              reading_time: "2025-05-10T10:23:17.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "0f63dc71-d2d8-4752-86d0-9ba5e9f9bd00",
                station: "37",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 205,
              time_behind: 107,
              position: 5,
              cumulative_time: 557,
              cumulative_behind: 205,
              cumulative_position: 3,
              is_intermediate: false,
            },
            {
              id: "a7556611-6fea-4d3b-abf3-c3734d733789",
              reading_time: "2025-05-10T10:24:41.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "1ad8fe2f-ad83-445f-883f-53450a10c1ee",
                station: "40",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 84,
              time_behind: 0,
              position: 1,
              cumulative_time: 641,
              cumulative_behind: 164,
              cumulative_position: 3,
              is_intermediate: false,
            },
            {
              id: "8266307d-3ba5-41c0-9d70-75fbcd74ed98",
              reading_time: "2025-05-10T10:26:02.000+00:00",
              points: 0,
              order_number: 5,
              control: {
                id: "479bc538-3280-448f-9dac-ace6f2ff53b3",
                station: "39",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 81,
              time_behind: 23,
              position: 2,
              cumulative_time: 722,
              cumulative_behind: 187,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "afa00fce-6484-4a9e-b566-30c07b2c27b9",
              reading_time: "2025-05-10T10:29:26.000+00:00",
              points: 0,
              order_number: 6,
              control: {
                id: "b85cdb6a-deb1-4448-9615-f6c79fc485cc",
                station: "44",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 204,
              time_behind: 53,
              position: 3,
              cumulative_time: 926,
              cumulative_behind: 240,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "aeea846c-2d55-4efd-8903-d562aee8c93c",
              reading_time: "2025-05-10T10:32:01.000+00:00",
              points: 0,
              order_number: 7,
              control: {
                id: "4870bab0-7927-4bbe-95c3-9f35f62fd192",
                station: "47",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 155,
              time_behind: 99,
              position: 4,
              cumulative_time: 1081,
              cumulative_behind: 317,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "3ab931ef-2d69-404d-92d3-65681a137ba3",
              reading_time: "2025-05-10T10:34:07.000+00:00",
              points: 0,
              order_number: 8,
              control: {
                id: "f4c61eae-5469-4efd-b28d-50cf24990c99",
                station: "46",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 126,
              time_behind: 87,
              position: 4,
              cumulative_time: 1207,
              cumulative_behind: 404,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "64b8e3ce-1721-4ede-8a74-76a666a0a65c",
              reading_time: "2025-05-10T10:35:02.000+00:00",
              points: 0,
              order_number: 9,
              control: {
                id: "81e8007e-bf17-4767-8b95-71c4feb6e99b",
                station: "45",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 55,
              time_behind: 5,
              position: 2,
              cumulative_time: 1262,
              cumulative_behind: 409,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "22008b23-8bb5-414a-8337-253742c59e1d",
              reading_time: "2025-05-10T10:40:46.000+00:00",
              points: 0,
              order_number: 10,
              control: {
                id: "43d717e0-b2eb-4295-a539-9219e5cb3e2c",
                station: "50",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 344,
              time_behind: 169,
              position: 4,
              cumulative_time: 1606,
              cumulative_behind: 578,
              cumulative_position: 4,
              is_intermediate: false,
            },
            {
              id: "ba4138ab-ca44-4911-bcc9-da9efc879794",
              reading_time: "2025-05-10T10:45:05.000+00:00",
              points: 0,
              order_number: 11,
              control: {
                id: "354c90e8-2c7b-4c65-a5d2-27eddd7a055b",
                station: "52",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 259,
              time_behind: 105,
              position: 4,
              cumulative_time: 1865,
              cumulative_behind: 683,
              cumulative_position: 4,
              is_intermediate: false,
            },
            {
              id: "26bccd26-5295-4c1e-b7b8-ab4a162e91f8",
              reading_time: "2025-05-10T10:48:10.000+00:00",
              points: 0,
              order_number: 12,
              control: {
                id: "480e4bf2-48ef-46c4-b813-77073b5e0680",
                station: "55",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 185,
              time_behind: 92,
              position: 4,
              cumulative_time: 2050,
              cumulative_behind: 775,
              cumulative_position: 4,
              is_intermediate: false,
            },
            {
              id: "12af8d76-0f8e-431f-bf3e-11dd1f807c40",
              reading_time: null,
              points: 0,
              order_number: 13,
              control: {
                id: "518200a7-9a9b-40e2-ac0d-7bf3b95d8403",
                station: "89",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "e473c5c2-205e-414e-8bcb-977bfb7d2f8a",
              reading_time: "2025-05-10T10:50:44.000+00:00",
              points: 0,
              order_number: 14,
              control: {
                id: "24912cbf-5f7d-49af-9fde-a659eb08d544",
                station: "100",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: 2204,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "ebc38f2c-a64e-4df3-a0b1-b95d2a4880db-finishSplit",
              reading_time: "2025-05-10T10:51:22.000+00:00",
              order_number: null,
              points: 0,
              time: 38,
              time_behind: 12,
              position: 4,
              cumulative_time: 2242,
              cumulative_behind: null,
              cumulative_position: null,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
      {
        id: "889938e3-74bf-4fa4-bb57-ef2d1d404c23",
        bib_number: "163",
        is_nc: false,
        eligibility: null,
        sicard: "5",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "Class short",
          long_name: "Class long",
        },
        club: {
          id: "string",
          short_name: "Club 5",
        },
        full_name: "Full name 5",
        stage: {
          id: "76a178dd-a13b-4ced-9e3c-b848ac74f0e1",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-05-10T10:02:00.000+00:00",
          finish_time: "2025-05-10T11:19:45.000+00:00",
          upload_type: "res_splits",
          time_seconds: 4665,
          position: 0,
          status_code: "3",
          time_behind: 3209,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "bd1459ab-32db-47d7-ac84-a829550e13d5",
              reading_time: "2025-05-10T10:10:05.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "820db9b9-d435-4f97-920f-e6fd2f64250f",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 485,
              time_behind: 400,
              position: 5,
              cumulative_time: 485,
              cumulative_behind: 400,
              cumulative_position: 5,
              is_intermediate: false,
            },
            {
              id: "a1f750cc-3db9-4d25-83b2-5828c8f4271a",
              reading_time: "2025-05-10T10:15:34.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "88174e0b-9786-4b41-9aca-ac51c141b343",
                station: "35",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 329,
              time_behind: 160,
              position: 5,
              cumulative_time: 814,
              cumulative_behind: 560,
              cumulative_position: 5,
              is_intermediate: false,
            },
            {
              id: "697de16b-adf9-4f3c-bdfe-9ef2f0dc6f7a",
              reading_time: "2025-05-10T10:18:52.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "0f63dc71-d2d8-4752-86d0-9ba5e9f9bd00",
                station: "37",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 198,
              time_behind: 100,
              position: 4,
              cumulative_time: 1012,
              cumulative_behind: 660,
              cumulative_position: 5,
              is_intermediate: false,
            },
            {
              id: "6ff9834c-0729-4913-a4e9-eb42a219ede7",
              reading_time: "2025-05-10T10:39:58.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "1ad8fe2f-ad83-445f-883f-53450a10c1ee",
                station: "40",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 1266,
              time_behind: 1182,
              position: 5,
              cumulative_time: 2278,
              cumulative_behind: 1801,
              cumulative_position: 5,
              is_intermediate: false,
            },
            {
              id: "f04b6a16-9159-4879-9f47-a5ce2302f9ab",
              reading_time: "2025-05-10T10:42:52.000+00:00",
              points: 0,
              order_number: 5,
              control: {
                id: "479bc538-3280-448f-9dac-ace6f2ff53b3",
                station: "39",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 174,
              time_behind: 116,
              position: 5,
              cumulative_time: 2452,
              cumulative_behind: 1917,
              cumulative_position: 5,
              is_intermediate: false,
            },
            {
              id: "f3bcd2f3-de66-4610-bc8a-6b5c512299e9",
              reading_time: "2025-05-10T10:55:59.000+00:00",
              points: 0,
              order_number: 6,
              control: {
                id: "b85cdb6a-deb1-4448-9615-f6c79fc485cc",
                station: "44",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 787,
              time_behind: 636,
              position: 5,
              cumulative_time: 3239,
              cumulative_behind: 2553,
              cumulative_position: 5,
              is_intermediate: false,
            },
            {
              id: "8d9f1ab2-d87c-4269-8e73-313661a03bae",
              reading_time: "2025-05-10T11:00:23.000+00:00",
              points: 0,
              order_number: 7,
              control: {
                id: "4870bab0-7927-4bbe-95c3-9f35f62fd192",
                station: "47",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 264,
              time_behind: 208,
              position: 5,
              cumulative_time: 3503,
              cumulative_behind: 2739,
              cumulative_position: 5,
              is_intermediate: false,
            },
            {
              id: "cecff0e1-2640-4b62-84ae-d037a4628ebe",
              reading_time: null,
              points: 0,
              order_number: 8,
              control: {
                id: "f4c61eae-5469-4efd-b28d-50cf24990c99",
                station: "46",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "07c9b721-3889-426e-a921-1e2e4007a843",
              reading_time: null,
              points: 0,
              order_number: 9,
              control: {
                id: "81e8007e-bf17-4767-8b95-71c4feb6e99b",
                station: "45",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "024a7432-5085-4554-b11f-e2a0b93d4750",
              reading_time: "2025-05-10T11:13:52.000+00:00",
              points: 0,
              order_number: 10,
              control: {
                id: "43d717e0-b2eb-4295-a539-9219e5cb3e2c",
                station: "50",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: 4312,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "3d896999-e8bf-467f-b034-79c786d596c1",
              reading_time: null,
              points: 0,
              order_number: 11,
              control: {
                id: "354c90e8-2c7b-4c65-a5d2-27eddd7a055b",
                station: "52",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "0d0c34f9-4c1c-48d8-9f70-c1f3736dd44c",
              reading_time: null,
              points: 0,
              order_number: 12,
              control: {
                id: "480e4bf2-48ef-46c4-b813-77073b5e0680",
                station: "55",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "3a5b0649-1251-43ea-846e-04ef76902a25",
              reading_time: null,
              points: 0,
              order_number: 13,
              control: {
                id: "518200a7-9a9b-40e2-ac0d-7bf3b95d8403",
                station: "89",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "4dd3118b-1bf8-43fd-ac78-d271e311eefd",
              reading_time: "2025-05-10T11:19:07.000+00:00",
              points: 0,
              order_number: 14,
              control: {
                id: "24912cbf-5f7d-49af-9fde-a659eb08d544",
                station: "100",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: 4627,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "889938e3-74bf-4fa4-bb57-ef2d1d404c23-finishSplit",
              reading_time: "2025-05-10T11:19:45.000+00:00",
              order_number: null,
              points: 0,
              time: 38,
              time_behind: 12,
              position: 4,
              cumulative_time: 4665,
              cumulative_behind: null,
              cumulative_position: null,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
      {
        id: "a4cb7df9-15f2-4cb4-aa9c-abdf85e36336",
        bib_number: "166",
        is_nc: false,
        eligibility: null,
        sicard: "6",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "Class short",
          long_name: "Class long",
        },
        club: {
          id: "string",
          short_name: "Club 6",
        },
        full_name: "Full name 6",
        stage: {
          id: "5f31c323-e67c-495f-a289-3fc10e1e6b01",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-05-10T09:50:00.000+00:00",
          finish_time: "2025-05-10T11:38:45.000+00:00",
          upload_type: "res_splits",
          time_seconds: 6525,
          position: 0,
          status_code: "2",
          time_behind: 5069,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "43e89cad-2ef1-4928-956e-eae278536e22",
              reading_time: "2025-05-10T10:04:31.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "820db9b9-d435-4f97-920f-e6fd2f64250f",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 871,
              time_behind: 786,
              position: 6,
              cumulative_time: 871,
              cumulative_behind: 786,
              cumulative_position: 6,
              is_intermediate: false,
            },
            {
              id: "b5f11fb2-b981-4208-a2cd-9bffa74fe537",
              reading_time: "2025-05-10T10:15:12.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "88174e0b-9786-4b41-9aca-ac51c141b343",
                station: "35",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 641,
              time_behind: 472,
              position: 6,
              cumulative_time: 1512,
              cumulative_behind: 1258,
              cumulative_position: 6,
              is_intermediate: false,
            },
            {
              id: "aff7ad30-e2ec-4141-b4bf-15ae4aa0ab9c",
              reading_time: "2025-05-10T10:26:14.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "0f63dc71-d2d8-4752-86d0-9ba5e9f9bd00",
                station: "37",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 662,
              time_behind: 564,
              position: 6,
              cumulative_time: 2174,
              cumulative_behind: 1822,
              cumulative_position: 6,
              is_intermediate: false,
            },
            {
              id: "cee8aaa1-2b71-4947-8764-56e1931147a1",
              reading_time: null,
              points: 0,
              order_number: 4,
              control: {
                id: "1ad8fe2f-ad83-445f-883f-53450a10c1ee",
                station: "40",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "a85fa6f9-e58b-480d-a8e4-2c7e9272c7d7",
              reading_time: null,
              points: 0,
              order_number: 5,
              control: {
                id: "479bc538-3280-448f-9dac-ace6f2ff53b3",
                station: "39",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "a1bec3bd-2756-4963-b781-fa2bb71a81c3",
              reading_time: null,
              points: 0,
              order_number: 6,
              control: {
                id: "b85cdb6a-deb1-4448-9615-f6c79fc485cc",
                station: "44",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "6ba24fd3-b02f-4b22-b157-247d2423560b",
              reading_time: null,
              points: 0,
              order_number: 7,
              control: {
                id: "4870bab0-7927-4bbe-95c3-9f35f62fd192",
                station: "47",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "8eca32b8-138b-4acc-acb1-979d3d39bf38",
              reading_time: null,
              points: 0,
              order_number: 8,
              control: {
                id: "f4c61eae-5469-4efd-b28d-50cf24990c99",
                station: "46",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "7774b182-5eb4-47f5-b112-55d23bf0a5c9",
              reading_time: null,
              points: 0,
              order_number: 9,
              control: {
                id: "81e8007e-bf17-4767-8b95-71c4feb6e99b",
                station: "45",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "ff402867-d96a-41ea-83d8-506b3817a42b",
              reading_time: null,
              points: 0,
              order_number: 10,
              control: {
                id: "43d717e0-b2eb-4295-a539-9219e5cb3e2c",
                station: "50",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "95742edf-b3e2-4239-963d-2c88dbca852b",
              reading_time: null,
              points: 0,
              order_number: 11,
              control: {
                id: "354c90e8-2c7b-4c65-a5d2-27eddd7a055b",
                station: "52",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "7a6825aa-6811-42fd-9e5d-f5fd97ced821",
              reading_time: null,
              points: 0,
              order_number: 12,
              control: {
                id: "480e4bf2-48ef-46c4-b813-77073b5e0680",
                station: "55",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "576221cd-b9d0-4927-93ed-db31412c033b",
              reading_time: null,
              points: 0,
              order_number: 13,
              control: {
                id: "518200a7-9a9b-40e2-ac0d-7bf3b95d8403",
                station: "89",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "99d9384a-32a3-45b8-8039-41e4e68f8808",
              reading_time: null,
              points: 0,
              order_number: 14,
              control: {
                id: "24912cbf-5f7d-49af-9fde-a659eb08d544",
                station: "100",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "a4cb7df9-15f2-4cb4-aa9c-abdf85e36336-finishSplit",
              reading_time: "2025-05-10T11:38:45.000+00:00",
              order_number: null,
              points: 0,
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
    ]

    expect(calculatePositionsAndBehindsFootO(runnerList)).toEqual(expectedRunnerList)
  })

  it("should handle 'exclude nc'", () => {
    const runnerList: ProcessedRunnerModel[] = [
      {
        id: "string",
        bib_number: "1",
        is_nc: false,
        eligibility: null,
        sicard: "1",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "class short",
          long_name: "class long",
        },
        club: {
          id: "string",
          short_name: "club",
        },
        full_name: "full name 1",
        stage: {
          id: "string",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2024-10-19T16:21:00.000+00:00",
          finish_time: "2024-10-19T16:34:58.000+00:00",
          upload_type: "res_splits",
          time_seconds: 838,
          position: 1,
          status_code: "0",
          time_behind: 0,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "76d82737-4904-485c-a92b-d15c22fe0989",
              reading_time: "2024-10-19T16:25:10.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "b76ff1d7-f549-4e65-8f88-c06f6d27e500",
                station: "34",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 250,
              time_behind: null,
              position: null,
              cumulative_time: 250,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "1fa19b20-d8fe-442f-8c86-cbcccca1c5d9",
              reading_time: "2024-10-19T16:25:53.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "5612a2ba-3d54-4c73-94c0-b3a13331f188",
                station: "82",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 43,
              time_behind: null,
              position: null,
              cumulative_time: 293,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "e35b4388-bed6-46de-bf43-959ff15f46be",
              reading_time: "2024-10-19T16:29:33.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "235c1879-3cab-43cb-8303-b24f53a6db7f",
                station: "75",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 220,
              time_behind: null,
              position: null,
              cumulative_time: 513,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "71e10c28-86cb-4ac9-af29-3f579e703704",
              reading_time: "2024-10-19T16:29:54.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "701c6c43-974b-400b-a928-d4fe763a137f",
                station: "84",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 21,
              time_behind: null,
              position: null,
              cumulative_time: 534,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "45180bbd-f326-4a4f-8076-07c51baecd4a",
              reading_time: "2024-10-19T16:31:07.000+00:00",
              points: 0,
              order_number: 5,
              control: {
                id: "32f23656-9c76-4526-883b-f3b5bc45c040",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 73,
              time_behind: null,
              position: null,
              cumulative_time: 607,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "3ca61bf1-8735-4843-a06f-11c8c9c02f9b",
              reading_time: "2024-10-19T16:32:35.000+00:00",
              points: 0,
              order_number: 6,
              control: {
                id: "f4d1f34d-f424-4ea2-87a0-dc51f65894b1",
                station: "71",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 88,
              time_behind: null,
              position: null,
              cumulative_time: 695,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "687c2ce0-e78a-45d1-9f55-7449c41dedf1-finishSplit",
              reading_time: "2024-10-19T16:34:58.000+00:00",
              order_number: null,
              points: 0,
              time: 143,
              time_behind: null,
              position: null,
              cumulative_time: 838,
              cumulative_behind: null,
              cumulative_position: null,
              control: null,
              is_intermediate: false,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
      {
        id: "string",
        bib_number: "2",
        is_nc: false,
        eligibility: null,
        sicard: "2",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "class short",
          long_name: "class long",
        },
        club: {
          id: "string",
          short_name: "club",
        },
        full_name: "Full name 2",
        stage: {
          id: "string",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2024-10-19T16:12:00.000+00:00",
          finish_time: "2024-10-19T16:31:06.000+00:00",
          upload_type: "res_splits",
          time_seconds: 1146,
          position: 10,
          status_code: "0",
          time_behind: 0,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "8d1591cd-a88d-43bb-bb2d-4294a6d8ea18",
              reading_time: "2024-10-19T16:17:34.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "b76ff1d7-f549-4e65-8f88-c06f6d27e500",
                station: "34",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 334,
              time_behind: null,
              position: null,
              cumulative_time: 334,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "6d27e6c6-c220-4d0b-8cae-89a4c2a20bbd",
              reading_time: "2024-10-19T16:18:35.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "5612a2ba-3d54-4c73-94c0-b3a13331f188",
                station: "82",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 61,
              time_behind: null,
              position: null,
              cumulative_time: 395,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "8661e59e-7a43-47eb-ab62-2408fa3f9017",
              reading_time: "2024-10-19T16:23:54.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "235c1879-3cab-43cb-8303-b24f53a6db7f",
                station: "75",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 319,
              time_behind: null,
              position: null,
              cumulative_time: 714,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "44e591cd-40fd-4a49-8338-3bf1555bb34f",
              reading_time: "2024-10-19T16:24:21.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "701c6c43-974b-400b-a928-d4fe763a137f",
                station: "84",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 27,
              time_behind: null,
              position: null,
              cumulative_time: 741,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "aa8ae2ee-8971-48af-bd7f-b75bff8f65e6",
              reading_time: "2024-10-19T16:26:01.000+00:00",
              points: 0,
              order_number: 5,
              control: {
                id: "32f23656-9c76-4526-883b-f3b5bc45c040",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 100,
              time_behind: null,
              position: null,
              cumulative_time: 841,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "50958e64-2731-433a-b461-afbf195534cd",
              reading_time: "2024-10-19T16:27:59.000+00:00",
              points: 0,
              order_number: 6,
              control: {
                id: "f4d1f34d-f424-4ea2-87a0-dc51f65894b1",
                station: "71",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 118,
              time_behind: null,
              position: null,
              cumulative_time: 959,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "87461aed-7cf1-4fd5-941e-51538ba4c20c-finishSplit",
              reading_time: "2024-10-19T16:31:06.000+00:00",
              order_number: null,
              points: 0,
              time: 187,
              time_behind: null,
              position: null,
              cumulative_time: 1146,
              cumulative_behind: null,
              cumulative_position: null,
              control: null,
              is_intermediate: false,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
      {
        id: "string",
        bib_number: "3",
        is_nc: true,
        eligibility: null,
        sicard: "8473318",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "class short",
          long_name: "class long",
        },
        club: {
          id: "string",
          short_name: "club",
        },
        full_name: "Full name 3",
        stage: {
          id: "string",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2024-10-19T15:56:00.000+00:00",
          finish_time: "2024-10-19T16:14:02.000+00:00",
          upload_type: "res_splits",
          time_seconds: 1082,
          position: 0,
          status_code: "9",
          time_behind: 0,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "cf82f0a4-3241-4ad3-a722-18665e40bf6a",
              reading_time: "2024-10-19T16:01:19.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "b76ff1d7-f549-4e65-8f88-c06f6d27e500",
                station: "34",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 319,
              time_behind: null,
              position: null,
              cumulative_time: 319,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "71ab384a-5b3e-45ca-9ea7-b47d5401ee01",
              reading_time: "2024-10-19T16:02:18.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "5612a2ba-3d54-4c73-94c0-b3a13331f188",
                station: "82",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 59,
              time_behind: null,
              position: null,
              cumulative_time: 378,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "60d6f676-269d-4586-ab03-1d451b1e29b3",
              reading_time: "2024-10-19T16:06:57.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "235c1879-3cab-43cb-8303-b24f53a6db7f",
                station: "75",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 279,
              time_behind: null,
              position: null,
              cumulative_time: 657,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "e364cb73-2ba8-4d03-942a-e6d376d312f9",
              reading_time: "2024-10-19T16:07:23.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "701c6c43-974b-400b-a928-d4fe763a137f",
                station: "84",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 26,
              time_behind: null,
              position: null,
              cumulative_time: 683,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "2f9d1f3f-97c6-42ef-8c77-c0c611a72385",
              reading_time: "2024-10-19T16:08:55.000+00:00",
              points: 0,
              order_number: 5,
              control: {
                id: "32f23656-9c76-4526-883b-f3b5bc45c040",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 92,
              time_behind: null,
              position: null,
              cumulative_time: 775,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "84a4814e-9bf4-41cb-af0c-4b4768b0f685",
              reading_time: "2024-10-19T16:11:00.000+00:00",
              points: 0,
              order_number: 6,
              control: {
                id: "f4d1f34d-f424-4ea2-87a0-dc51f65894b1",
                station: "71",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 125,
              time_behind: null,
              position: null,
              cumulative_time: 900,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "c839fac4-0e20-4bc8-9b6a-c7d5273b087a-finishSplit",
              reading_time: "2024-10-19T16:14:02.000+00:00",
              order_number: null,
              points: 0,
              time: 182,
              time_behind: null,
              position: null,
              cumulative_time: 1082,
              cumulative_behind: null,
              cumulative_position: null,
              control: null,
              is_intermediate: false,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
    ]

    const expectedRunnerList: ProcessedRunnerModel[] = [
      {
        id: "string",
        bib_number: "1",
        is_nc: false,
        eligibility: null,
        sicard: "1",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "class short",
          long_name: "class long",
        },
        club: {
          id: "string",
          short_name: "club",
        },
        full_name: "full name 1",
        stage: {
          id: "string",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2024-10-19T16:21:00.000+00:00",
          finish_time: "2024-10-19T16:34:58.000+00:00",
          upload_type: "res_splits",
          time_seconds: 838,
          position: 1,
          status_code: "0",
          time_behind: 0,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 1000,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "76d82737-4904-485c-a92b-d15c22fe0989",
              reading_time: "2024-10-19T16:25:10.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "b76ff1d7-f549-4e65-8f88-c06f6d27e500",
                station: "34",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 250,
              time_behind: 0,
              position: 1,
              cumulative_time: 250,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "1fa19b20-d8fe-442f-8c86-cbcccca1c5d9",
              reading_time: "2024-10-19T16:25:53.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "5612a2ba-3d54-4c73-94c0-b3a13331f188",
                station: "82",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 43,
              time_behind: 0,
              position: 1,
              cumulative_time: 293,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "e35b4388-bed6-46de-bf43-959ff15f46be",
              reading_time: "2024-10-19T16:29:33.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "235c1879-3cab-43cb-8303-b24f53a6db7f",
                station: "75",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 220,
              time_behind: 0,
              position: 1,
              cumulative_time: 513,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "71e10c28-86cb-4ac9-af29-3f579e703704",
              reading_time: "2024-10-19T16:29:54.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "701c6c43-974b-400b-a928-d4fe763a137f",
                station: "84",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 21,
              time_behind: 0,
              position: 1,
              cumulative_time: 534,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "45180bbd-f326-4a4f-8076-07c51baecd4a",
              reading_time: "2024-10-19T16:31:07.000+00:00",
              points: 0,
              order_number: 5,
              control: {
                id: "32f23656-9c76-4526-883b-f3b5bc45c040",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 73,
              time_behind: 0,
              position: 1,
              cumulative_time: 607,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "3ca61bf1-8735-4843-a06f-11c8c9c02f9b",
              reading_time: "2024-10-19T16:32:35.000+00:00",
              points: 0,
              order_number: 6,
              control: {
                id: "f4d1f34d-f424-4ea2-87a0-dc51f65894b1",
                station: "71",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 88,
              time_behind: 0,
              position: 1,
              cumulative_time: 695,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "687c2ce0-e78a-45d1-9f55-7449c41dedf1-finishSplit",
              reading_time: "2024-10-19T16:34:58.000+00:00",
              order_number: null,
              points: 0,
              time: 143,
              time_behind: 0,
              position: 1,
              cumulative_time: 838,
              cumulative_behind: 0,
              cumulative_position: 1,
              control: null,
              is_intermediate: false,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
      {
        id: "string",
        bib_number: "2",
        is_nc: false,
        eligibility: null,
        sicard: "2",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "class short",
          long_name: "class long",
        },
        club: {
          id: "string",
          short_name: "club",
        },
        full_name: "Full name 2",
        stage: {
          id: "string",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2024-10-19T16:12:00.000+00:00",
          finish_time: "2024-10-19T16:31:06.000+00:00",
          upload_type: "res_splits",
          time_seconds: 1146,
          position: 10,
          status_code: "0",
          time_behind: 0,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 731,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "8d1591cd-a88d-43bb-bb2d-4294a6d8ea18",
              reading_time: "2024-10-19T16:17:34.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "b76ff1d7-f549-4e65-8f88-c06f6d27e500",
                station: "34",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 334,
              time_behind: 84,
              position: 2,
              cumulative_time: 334,
              cumulative_behind: 84,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "6d27e6c6-c220-4d0b-8cae-89a4c2a20bbd",
              reading_time: "2024-10-19T16:18:35.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "5612a2ba-3d54-4c73-94c0-b3a13331f188",
                station: "82",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 61,
              time_behind: 18,
              position: 2,
              cumulative_time: 395,
              cumulative_behind: 102,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "8661e59e-7a43-47eb-ab62-2408fa3f9017",
              reading_time: "2024-10-19T16:23:54.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "235c1879-3cab-43cb-8303-b24f53a6db7f",
                station: "75",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 319,
              time_behind: 99,
              position: 2,
              cumulative_time: 714,
              cumulative_behind: 201,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "44e591cd-40fd-4a49-8338-3bf1555bb34f",
              reading_time: "2024-10-19T16:24:21.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "701c6c43-974b-400b-a928-d4fe763a137f",
                station: "84",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 27,
              time_behind: 6,
              position: 2,
              cumulative_time: 741,
              cumulative_behind: 207,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "aa8ae2ee-8971-48af-bd7f-b75bff8f65e6",
              reading_time: "2024-10-19T16:26:01.000+00:00",
              points: 0,
              order_number: 5,
              control: {
                id: "32f23656-9c76-4526-883b-f3b5bc45c040",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 100,
              time_behind: 27,
              position: 2,
              cumulative_time: 841,
              cumulative_behind: 234,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "50958e64-2731-433a-b461-afbf195534cd",
              reading_time: "2024-10-19T16:27:59.000+00:00",
              points: 0,
              order_number: 6,
              control: {
                id: "f4d1f34d-f424-4ea2-87a0-dc51f65894b1",
                station: "71",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 118,
              time_behind: 30,
              position: 2,
              cumulative_time: 959,
              cumulative_behind: 264,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "87461aed-7cf1-4fd5-941e-51538ba4c20c-finishSplit",
              reading_time: "2024-10-19T16:31:06.000+00:00",
              order_number: null,
              points: 0,
              time: 187,
              time_behind: 44,
              position: 2,
              cumulative_time: 1146,
              cumulative_behind: 308,
              cumulative_position: 2,
              control: null,
              is_intermediate: false,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
      {
        id: "string",
        bib_number: "3",
        is_nc: true,
        eligibility: null,
        sicard: "8473318",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "class short",
          long_name: "class long",
        },
        club: {
          id: "string",
          short_name: "club",
        },
        full_name: "Full name 3",
        stage: {
          id: "string",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2024-10-19T15:56:00.000+00:00",
          finish_time: "2024-10-19T16:14:02.000+00:00",
          upload_type: "res_splits",
          time_seconds: 1082,
          position: 0,
          status_code: "9",
          time_behind: 0,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "cf82f0a4-3241-4ad3-a722-18665e40bf6a",
              reading_time: "2024-10-19T16:01:19.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "b76ff1d7-f549-4e65-8f88-c06f6d27e500",
                station: "34",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 319,
              time_behind: 69,
              position: 2,
              cumulative_time: 319,
              cumulative_behind: 69,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "71ab384a-5b3e-45ca-9ea7-b47d5401ee01",
              reading_time: "2024-10-19T16:02:18.000+00:00",
              points: 0,
              order_number: 2,
              control: {
                id: "5612a2ba-3d54-4c73-94c0-b3a13331f188",
                station: "82",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 59,
              time_behind: 16,
              position: 2,
              cumulative_time: 378,
              cumulative_behind: 85,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "60d6f676-269d-4586-ab03-1d451b1e29b3",
              reading_time: "2024-10-19T16:06:57.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "235c1879-3cab-43cb-8303-b24f53a6db7f",
                station: "75",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 279,
              time_behind: 59,
              position: 2,
              cumulative_time: 657,
              cumulative_behind: 144,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "e364cb73-2ba8-4d03-942a-e6d376d312f9",
              reading_time: "2024-10-19T16:07:23.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "701c6c43-974b-400b-a928-d4fe763a137f",
                station: "84",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 26,
              time_behind: 5,
              position: 2,
              cumulative_time: 683,
              cumulative_behind: 149,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "2f9d1f3f-97c6-42ef-8c77-c0c611a72385",
              reading_time: "2024-10-19T16:08:55.000+00:00",
              points: 0,
              order_number: 5,
              control: {
                id: "32f23656-9c76-4526-883b-f3b5bc45c040",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 92,
              time_behind: 19,
              position: 2,
              cumulative_time: 775,
              cumulative_behind: 168,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "84a4814e-9bf4-41cb-af0c-4b4768b0f685",
              reading_time: "2024-10-19T16:11:00.000+00:00",
              points: 0,
              order_number: 6,
              control: {
                id: "f4d1f34d-f424-4ea2-87a0-dc51f65894b1",
                station: "71",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 125,
              time_behind: 37,
              position: 3,
              cumulative_time: 900,
              cumulative_behind: 205,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "c839fac4-0e20-4bc8-9b6a-c7d5273b087a-finishSplit",
              reading_time: "2024-10-19T16:14:02.000+00:00",
              order_number: null,
              points: 0,
              time: 182,
              time_behind: 39,
              position: 2,
              cumulative_time: 1082,
              cumulative_behind: 244,
              cumulative_position: 2,
              control: null,
              is_intermediate: false,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
    ]

    expect(calculatePositionsAndBehindsFootO(runnerList, true)).toEqual(expectedRunnerList)
  })

  it("should handle runners without splits", () => {
    const runnerList: ProcessedRunnerModel[] = [
      {
        id: "string",
        bib_number: "207",
        is_nc: false,
        eligibility: null,
        sicard: "1",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "Class short",
          long_name: "Class long",
        },
        club: {
          id: "string",
          short_name: "club",
        },
        full_name: "full name",
        stage: {
          id: "string",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-05-10T09:56:00.000+00:00",
          finish_time: null,
          upload_type: "start_list",
          time_seconds: 0,
          position: 0,
          status_code: "0",
          time_behind: 0,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [],
          online_splits: [],
        },
        overalls: null,
      },
    ]

    const expectedRunnerList: ProcessedRunnerModel[] = [
      {
        id: "string",
        bib_number: "207",
        is_nc: false,
        eligibility: null,
        sicard: "1",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "Class short",
          long_name: "Class long",
        },
        club: {
          id: "string",
          short_name: "club",
        },
        full_name: "full name",
        stage: {
          id: "string",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-05-10T09:56:00.000+00:00",
          finish_time: null,
          upload_type: "start_list",
          time_seconds: 0,
          position: 0,
          status_code: "0",
          time_behind: 0,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [],
          online_splits: [],
        },
        overalls: null,
      },
    ]

    expect(calculatePositionsAndBehindsFootO(runnerList)).toEqual(expectedRunnerList)
  })

  it("should only compute positions and time behind for runners with chip downloads", () => {
    // Test data with 2 runners with chip downloads and 2 with only radio splits
    const runnerList: ProcessedRunnerModel[] = [
      // Runner 1: Has chip download (res_splits)
      {
        id: "runner-with-chip-1",
        bib_number: "101",
        is_nc: false,
        eligibility: null,
        sicard: "12345678",
        sex: "M",
        leg_number: 1,
        class: {
          id: "class-1",
          short_name: "M21E",
          long_name: "Men 21 Elite",
        },
        club: {
          id: "club-1",
          short_name: "TestClub1",
        },
        full_name: "Runner With Chip 1",
        stage: {
          id: "stage-1",
          result_type_id: "result-type-1",
          start_time: "2024-01-01T10:00:00.000+00:00",
          finish_time: "2024-01-01T10:15:30.000+00:00",
          upload_type: "res_splits", // Chip download
          time_seconds: 930,
          position: 1,
          status_code: "0",
          time_behind: 0,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "split-1-1",
              is_intermediate: false,
              reading_time: "2024-01-01T10:05:00.000+00:00",
              points: 0,
              order_number: 1,
              time: 300, // 5:00
              cumulative_time: 300,
              time_behind: null,
              position: null,
              cumulative_behind: null,
              cumulative_position: null,
              control: {
                id: "control-1",
                station: "31",
                control_type: {
                  id: "control-type-1",
                  description: "Normal Control",
                },
              },
            },
            {
              id: "split-1-2",
              is_intermediate: false,
              reading_time: "2024-01-01T10:15:30.000+00:00",
              points: 0,
              order_number: 2,
              time: 630, // 10:30
              cumulative_time: 930, // 15:30
              time_behind: null,
              position: null,
              cumulative_behind: null,
              cumulative_position: null,
              control: {
                id: "control-2",
                station: "FINISH",
                control_type: {
                  id: "control-type-2",
                  description: "Finish",
                },
              },
            },
          ],
          online_splits: [],
        },
        overalls: null,
        runners: null,
      },
      // Runner 2: Has chip download (res_splits) - slower time
      {
        id: "runner-with-chip-2",
        bib_number: "102",
        is_nc: false,
        eligibility: null,
        sicard: "87654321",
        sex: "M",
        leg_number: 1,
        class: {
          id: "class-1",
          short_name: "M21E",
          long_name: "Men 21 Elite",
        },
        club: {
          id: "club-2",
          short_name: "TestClub2",
        },
        full_name: "Runner With Chip 2",
        stage: {
          id: "stage-2",
          result_type_id: "result-type-1",
          start_time: "2024-01-01T10:00:00.000+00:00",
          finish_time: "2024-01-01T10:18:00.000+00:00",
          upload_type: "res_splits", // Chip download
          time_seconds: 1080,
          position: 2,
          status_code: "0",
          time_behind: 150,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "split-2-1",
              is_intermediate: false,
              reading_time: "2024-01-01T10:06:00.000+00:00",
              points: 0,
              order_number: 1,
              time: 360, // 6:00
              cumulative_time: 360,
              time_behind: null,
              position: null,
              cumulative_behind: null,
              cumulative_position: null,
              control: {
                id: "control-1",
                station: "31",
                control_type: {
                  id: "control-type-1",
                  description: "Normal Control",
                },
              },
            },
            {
              id: "split-2-2",
              is_intermediate: false,
              reading_time: "2024-01-01T10:18:00.000+00:00",
              points: 0,
              order_number: 2,
              time: 720, // 12:00
              cumulative_time: 1080, // 18:00
              time_behind: null,
              position: null,
              cumulative_behind: null,
              cumulative_position: null,
              control: {
                id: "control-2",
                station: "FINISH",
                control_type: {
                  id: "control-type-2",
                  description: "Finish",
                },
              },
            },
          ],
          online_splits: [],
        },
        overalls: null,
        runners: null,
      },
      // Runner 3: Only radio splits (res_intermediates) - should NOT be processed
      {
        id: "runner-radio-1",
        bib_number: "201",
        is_nc: false,
        eligibility: null,
        sicard: "11111111",
        sex: "M",
        leg_number: 1,
        class: {
          id: "class-1",
          short_name: "M21E",
          long_name: "Men 21 Elite",
        },
        club: {
          id: "club-3",
          short_name: "TestClub3",
        },
        full_name: "Runner Radio Only 1",
        stage: {
          id: "stage-3",
          result_type_id: "result-type-1",
          start_time: "2024-01-01T10:00:00.000+00:00",
          finish_time: null, // No finish time for radio-only
          upload_type: "res_intermediates", // Radio splits only
          time_seconds: 0,
          position: 0,
          status_code: "0",
          time_behind: 0,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "split-3-1",
              is_intermediate: false,
              reading_time: "2024-01-01T10:07:00.000+00:00",
              points: 0,
              order_number: 1,
              time: 420, // 7:00
              cumulative_time: 420,
              time_behind: null,
              position: null,
              cumulative_behind: null,
              cumulative_position: null,
              control: {
                id: "control-1",
                station: "31",
                control_type: {
                  id: "control-type-1",
                  description: "Normal Control",
                },
              },
            },
          ],
          online_splits: [],
        },
        overalls: null,
        runners: null,
      },
      // Runner 4: Only radio splits (res_intermediates) - should NOT be processed
      {
        id: "runner-radio-2",
        bib_number: "202",
        is_nc: false,
        eligibility: null,
        sicard: "22222222",
        sex: "M",
        leg_number: 1,
        class: {
          id: "class-1",
          short_name: "M21E",
          long_name: "Men 21 Elite",
        },
        club: {
          id: "club-4",
          short_name: "TestClub4",
        },
        full_name: "Runner Radio Only 2",
        stage: {
          id: "stage-4",
          result_type_id: "result-type-1",
          start_time: "2024-01-01T10:00:00.000+00:00",
          finish_time: null, // No finish time for radio-only
          upload_type: "res_intermediates", // Radio splits only
          time_seconds: 0,
          position: 0,
          status_code: "0",
          time_behind: 0,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "split-4-1",
              is_intermediate: false,
              reading_time: "2024-01-01T10:04:30.000+00:00",
              points: 0,
              order_number: 1,
              time: 270, // 4:30
              cumulative_time: 270,
              time_behind: null,
              position: null,
              cumulative_behind: null,
              cumulative_position: null,
              control: {
                id: "control-1",
                station: "31",
                control_type: {
                  id: "control-type-1",
                  description: "Normal Control",
                },
              },
            },
          ],
          online_splits: [],
        },
        overalls: null,
        runners: null,
      },
    ]

    const result = calculatePositionsAndBehindsFootO(runnerList)

    // Verify that only runners with chip downloads have computed positions and time behind

    // Runner 1 (chip download): Should have positions and time behind calculated
    const processedRunner1 = result.find((r) => r.id === "runner-with-chip-1")!
    expect(processedRunner1.stage.splits[0].position).toBe(1) // Fastest split 1
    expect(processedRunner1.stage.splits[0].time_behind).toBe(0) // Best time
    expect(processedRunner1.stage.splits[0].cumulative_position).toBe(1)
    expect(processedRunner1.stage.splits[0].cumulative_behind).toBe(0)

    expect(processedRunner1.stage.splits[1].position).toBe(1) // Fastest split 2
    expect(processedRunner1.stage.splits[1].time_behind).toBe(0) // Best time
    expect(processedRunner1.stage.splits[1].cumulative_position).toBe(1)
    expect(processedRunner1.stage.splits[1].cumulative_behind).toBe(0)

    // Runner 2 (chip download): Should have positions and time behind calculated
    const processedRunner2 = result.find((r) => r.id === "runner-with-chip-2")!
    expect(processedRunner2.stage.splits[0].position).toBe(2) // Second fastest split 1
    expect(processedRunner2.stage.splits[0].time_behind).toBe(60) // 1 minute behind (360-300)
    expect(processedRunner2.stage.splits[0].cumulative_position).toBe(2)
    expect(processedRunner2.stage.splits[0].cumulative_behind).toBe(60)

    expect(processedRunner2.stage.splits[1].position).toBe(2) // Second fastest split 2
    expect(processedRunner2.stage.splits[1].time_behind).toBe(90) // 1:30 behind (720-630)
    expect(processedRunner2.stage.splits[1].cumulative_position).toBe(2)
    expect(processedRunner2.stage.splits[1].cumulative_behind).toBe(150) // 2:30 behind (1080-930)

    // Runner 3 (radio only): Should NOT have positions and time behind calculated
    const processedRunner3 = result.find((r) => r.id === "runner-radio-1")!
    expect(processedRunner3.stage.splits[0].position).toBeNull()
    expect(processedRunner3.stage.splits[0].time_behind).toBeNull()
    expect(processedRunner3.stage.splits[0].cumulative_position).toBeNull()
    expect(processedRunner3.stage.splits[0].cumulative_behind).toBeNull()

    // Runner 4 (radio only): Should NOT have positions and time behind calculated
    const processedRunner4 = result.find((r) => r.id === "runner-radio-2")!
    expect(processedRunner4.stage.splits[0].position).toBeNull()
    expect(processedRunner4.stage.splits[0].time_behind).toBeNull()
    expect(processedRunner4.stage.splits[0].cumulative_position).toBeNull()
    expect(processedRunner4.stage.splits[0].cumulative_behind).toBeNull()

    // Verify the overall structure remains intact
    expect(result).toHaveLength(4)
    expect(result.every((runner) => runner.id && runner.bib_number && runner.full_name)).toBe(true)
  })

  it("should handle runners with missing punched labeled as status ok", () => {
    const runnerList: ProcessedRunnerModel[] = [
      {
        id: "id1",
        bib_number: "1111",
        is_nc: false,
        eligibility: null,
        sicard: "1",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "short",
          long_name: "long",
        },
        club: {
          id: "string club",
          short_name: "Club 1",
        },
        full_name: "Name 1 Surname 1",
        stage: {
          id: "82e97fc1-56f2-4fea-951e-c0efa4371e69",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-09-30T08:00:00.000+00:00",
          finish_time: "2025-09-30T08:04:00.000+00:00",
          upload_type: "res_splits",
          time_seconds: 5 * 60,
          position: 1,
          status_code: "0",
          time_behind: 0,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "173a470d-0caa-431a-93f9-d2efb04c20f9",
              reading_time: "2025-09-30T08:01:00.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "string",
                station: "31",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 60,
              time_behind: null,
              position: null,
              cumulative_time: 60,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "173a470d-0caa-431a-93f9-d2efb04c20f9",
              reading_time: "2025-09-30T08:02:00.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "string",
                station: "32",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 60,
              time_behind: null,
              position: null,
              cumulative_time: 120,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "173a470d-0caa-431a-93f9-d2efb04c20f9",
              reading_time: "2025-09-30T08:03:00.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "string",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 60,
              time_behind: null,
              position: null,
              cumulative_time: 3 * 60,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "4",
              reading_time: "2025-09-30T08:04:00.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "string",
                station: "34",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 60,
              time_behind: null,
              position: null,
              cumulative_time: 4 * 60,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "id1-finishSplit",
              reading_time: "2025-09-30T09:05:00.000+00:00",
              order_number: null,
              points: 0,
              time: 60,
              time_behind: null,
              position: null,
              cumulative_time: 5 * 60,
              cumulative_behind: null,
              cumulative_position: null,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
      {
        id: "id2",
        bib_number: "2222",
        is_nc: false,
        eligibility: null,
        sicard: "2",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "short",
          long_name: "long",
        },
        club: {
          id: "string club",
          short_name: "Club 1",
        },
        full_name: "Name 2 Surname 2",
        stage: {
          id: "82e97fc1-56f2-4fea-951e-c0efa4371e69",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-09-30T08:00:00.000+00:00",
          finish_time: "2025-09-30T08:10:00.000+00:00",
          upload_type: "res_splits",
          time_seconds: 10 * 60,
          position: 2,
          status_code: "0", // manually set ok
          time_behind: 5 * 60,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "1",
              reading_time: "2025-09-30T08:02:00.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "string",
                station: "31",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 2 * 60,
              time_behind: null,
              position: null,
              cumulative_time: 2 * 60,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "173a470d-0caa-431a-93f9-d2efb04c20f9",
              reading_time: null,
              points: 0,
              order_number: 2,
              control: {
                id: "string",
                station: "32",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "3",
              reading_time: "2025-09-30T08:06:00.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "string",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: 6 * 60,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "4",
              reading_time: "2025-09-30T08:08:00.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "string",
                station: "34",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 2 * 60,
              time_behind: null,
              position: null,
              cumulative_time: 8 * 60,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "id1-finishSplit",
              reading_time: "2025-09-30T09:04:00.000+00:00",
              order_number: null,
              points: 0,
              time: 2 * 60,
              time_behind: null,
              position: null,
              cumulative_time: 10 * 60,
              cumulative_behind: null,
              cumulative_position: null,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
      {
        id: "id3",
        bib_number: "3333",
        is_nc: false,
        eligibility: null,
        sicard: "3",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "short",
          long_name: "long",
        },
        club: {
          id: "string club",
          short_name: "Club 1",
        },
        full_name: "Name 3 Surname 3",
        stage: {
          id: "82e97fc1-56f2-4fea-951e-c0efa4371e69",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-09-30T08:00:00.000+00:00",
          finish_time: "2025-09-30T08:15:00.000+00:00",
          upload_type: "res_splits",
          time_seconds: 15 * 60,
          position: 3,
          status_code: "0",
          time_behind: 10 * 60,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 0,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "1",
              reading_time: "2025-09-30T08:03:00.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "string",
                station: "31",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 3 * 60,
              time_behind: null,
              position: null,
              cumulative_time: 3 * 60,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "173a470d-0caa-431a-93f9-d2efb04c20f9",
              reading_time: "2025-09-30T08:06:00.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "string",
                station: "32",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 3 * 60,
              time_behind: null,
              position: null,
              cumulative_time: 6 * 60,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "173a470d-0caa-431a-93f9-d2efb04c20f9",
              reading_time: "2025-09-30T08:09:00.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "string",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 3 * 60,
              time_behind: null,
              position: null,
              cumulative_time: 9 * 60,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "173a470d-0caa-431a-93f9-d2efb04c20f9",
              reading_time: "2025-09-30T08:12:00.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "string",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 3 * 60,
              time_behind: null,
              position: null,
              cumulative_time: 12 * 60,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "id1-finishSplit",
              reading_time: "2025-09-30T09:15:00.000+00:00",
              order_number: null,
              points: 0,
              time: 3 * 60,
              time_behind: null,
              position: null,
              cumulative_time: 15 * 60,
              cumulative_behind: null,
              cumulative_position: null,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
    ]

    const expectedRunnerList: ProcessedRunnerModel[] = [
      {
        id: "id1",
        bib_number: "1111",
        is_nc: false,
        eligibility: null,
        sicard: "1",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "short",
          long_name: "long",
        },
        club: {
          id: "string club",
          short_name: "Club 1",
        },
        full_name: "Name 1 Surname 1",
        stage: {
          id: "82e97fc1-56f2-4fea-951e-c0efa4371e69",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-09-30T08:00:00.000+00:00",
          finish_time: "2025-09-30T08:04:00.000+00:00",
          upload_type: "res_splits",
          time_seconds: 5 * 60,
          position: 1,
          status_code: "0",
          time_behind: 0,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 1000,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "173a470d-0caa-431a-93f9-d2efb04c20f9",
              reading_time: "2025-09-30T08:01:00.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "string",
                station: "31",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 60,
              time_behind: 0,
              position: 1,
              cumulative_time: 60,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "173a470d-0caa-431a-93f9-d2efb04c20f9",
              reading_time: "2025-09-30T08:02:00.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "string",
                station: "32",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 60,
              time_behind: 0,
              position: 1,
              cumulative_time: 120,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "173a470d-0caa-431a-93f9-d2efb04c20f9",
              reading_time: "2025-09-30T08:03:00.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "string",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 60,
              time_behind: 0,
              position: 1,
              cumulative_time: 3 * 60,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "4",
              reading_time: "2025-09-30T08:04:00.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "string",
                station: "34",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 60,
              time_behind: 0,
              position: 1,
              cumulative_time: 4 * 60,
              cumulative_behind: 0,
              cumulative_position: 1,
              is_intermediate: false,
            },
            {
              id: "id1-finishSplit",
              reading_time: "2025-09-30T09:05:00.000+00:00",
              order_number: null,
              points: 0,
              time: 60,
              time_behind: 0,
              position: 1,
              cumulative_time: 5 * 60,
              cumulative_behind: 0,
              cumulative_position: 1,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
      {
        id: "id2",
        bib_number: "2222",
        is_nc: false,
        eligibility: null,
        sicard: "2",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "short",
          long_name: "long",
        },
        club: {
          id: "string club",
          short_name: "Club 1",
        },
        full_name: "Name 2 Surname 2",
        stage: {
          id: "82e97fc1-56f2-4fea-951e-c0efa4371e69",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-09-30T08:00:00.000+00:00",
          finish_time: "2025-09-30T08:10:00.000+00:00",
          upload_type: "res_splits",
          time_seconds: 10 * 60,
          position: 2,
          status_code: "0", // manually set ok
          time_behind: 5 * 60,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 500,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "1",
              reading_time: "2025-09-30T08:02:00.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "string",
                station: "31",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 2 * 60,
              time_behind: 60,
              position: 2,
              cumulative_time: 2 * 60,
              cumulative_behind: 60,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "173a470d-0caa-431a-93f9-d2efb04c20f9",
              reading_time: null,
              points: 0,
              order_number: 2,
              control: {
                id: "string",
                station: "32",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: null,
              cumulative_behind: null,
              cumulative_position: null,
              is_intermediate: false,
            },
            {
              id: "3",
              reading_time: "2025-09-30T08:06:00.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "string",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: null,
              time_behind: null,
              position: null,
              cumulative_time: 3 * 2 * 60,
              cumulative_behind: 3 * 60,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "4",
              reading_time: "2025-09-30T08:08:00.000+00:00",
              points: 0,
              order_number: 4,
              control: {
                id: "string",
                station: "34",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 2 * 60,
              time_behind: 60,
              position: 2,
              cumulative_time: 4 * 2 * 60,
              cumulative_behind: 4 * 60,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "id1-finishSplit",
              reading_time: "2025-09-30T09:04:00.000+00:00",
              order_number: null,
              points: 0,
              time: 2 * 60,
              time_behind: 60,
              position: 2,
              cumulative_time: 5 * 2 * 60,
              cumulative_behind: 5 * 60,
              cumulative_position: 2,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
      {
        id: "id3",
        bib_number: "3333",
        is_nc: false,
        eligibility: null,
        sicard: "3",
        sex: "M",
        leg_number: 1,
        class: {
          id: "string",
          short_name: "short",
          long_name: "long",
        },
        club: {
          id: "string club",
          short_name: "Club 1",
        },
        full_name: "Name 3 Surname 3",
        stage: {
          id: "82e97fc1-56f2-4fea-951e-c0efa4371e69",
          result_type_id: "e4ddfa9d-3347-47e4-9d32-c6c119aeac0e",
          start_time: "2025-09-30T08:00:00.000+00:00",
          finish_time: "2025-09-30T08:15:00.000+00:00",
          upload_type: "res_splits",
          time_seconds: 15 * 60,
          position: 3,
          status_code: "0",
          time_behind: 10 * 60,
          time_neutralization: 0,
          time_adjusted: 0,
          time_penalty: 0,
          time_bonus: 0,
          points_final: 333,
          points_behind: 0,
          points_adjusted: 0,
          points_penalty: 0,
          points_bonus: 0,
          leg_number: 1,
          splits: [
            {
              id: "1",
              reading_time: "2025-09-30T08:03:00.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "string",
                station: "31",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 3 * 60,
              time_behind: 2 * 60,
              position: 3,
              cumulative_time: 3 * 60,
              cumulative_behind: 2 * 60,
              cumulative_position: 3,
              is_intermediate: false,
            },
            {
              id: "173a470d-0caa-431a-93f9-d2efb04c20f9",
              reading_time: "2025-09-30T08:06:00.000+00:00",
              points: 0,
              order_number: 1,
              control: {
                id: "string",
                station: "32",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 3 * 60,
              time_behind: 2 * 60,
              position: 2,
              cumulative_time: 6 * 60,
              cumulative_behind: 4 * 60,
              cumulative_position: 2,
              is_intermediate: false,
            },
            {
              id: "173a470d-0caa-431a-93f9-d2efb04c20f9",
              reading_time: "2025-09-30T08:09:00.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "string",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 3 * 60,
              time_behind: 2 * 60,
              position: 2,
              cumulative_time: 9 * 60,
              cumulative_behind: 3 * 2 * 60,
              cumulative_position: 3,
              is_intermediate: false,
            },
            {
              id: "173a470d-0caa-431a-93f9-d2efb04c20f9",
              reading_time: "2025-09-30T08:12:00.000+00:00",
              points: 0,
              order_number: 3,
              control: {
                id: "string",
                station: "33",
                control_type: {
                  id: "f3cc5efa-065f-4ad6-844b-74e99612889b",
                  description: "Normal Control",
                },
              },
              time: 3 * 60,
              time_behind: 2 * 60,
              position: 3,
              cumulative_time: 12 * 60,
              cumulative_behind: 4 * 2 * 60,
              cumulative_position: 3,
              is_intermediate: false,
            },
            {
              id: "id1-finishSplit",
              reading_time: "2025-09-30T09:15:00.000+00:00",
              order_number: null,
              points: 0,
              time: 3 * 60,
              time_behind: 2 * 60,
              position: 3,
              cumulative_time: 15 * 60,
              cumulative_behind: 5 * 2 * 60,
              cumulative_position: 3,
              control: null,
              is_intermediate: true,
            },
          ],
          online_splits: [],
        },
        overalls: null,
      },
    ]

    const actualRunners = calculatePositionsAndBehindsFootO(runnerList)
    expect(actualRunners).toEqual(expectedRunnerList)
  })
})
