Script help

Need a little help with a script, can’t seem to figure it out on my own so I’m coming here for help.
Script is:

#==============================
#=== Script to irrigate a specific zone
#=== is passed:
#=== {{ cycle }}
#=== {{ zone }}
#==============================
  irrigate_specific_zone_request:
    sequence:
      # Update ui to show cycle is running
      - service: homeassistant.turn_on
        data_template:  
          entity_id: input_boolean.cycle{{ cycle }}_running

      # Turn on master irrigation pump
      - service: switch.turn_on
        data_template:
          entity_id: switch.master_pump
          
      # wait 3 seconds for good measure to enable pressure in system
      - delay: "00:00:03"

      - service: script.irrigate_a_zone
        data_template:
          cycle: '{{ cycle }}'
          zone: '{{ zone }}'

      # Wait for script.irrigate_a_zone to end
      - wait_template: "{{ is_state('script.irrigate_a_zone', 'off') }}"

      # Update progress in ui
      - service: input_text.set_value
       data_template:
          entity_id: input_text.cycle{{ cycle }}_current_zone
          value: 'None'

      - service: homeassistant.turn_off  
       data_template:
         entity_id: input_boolean.cycle{{ cycle }}_running

      # Turn off master irrigation pump
      - service: switch.turn_off
        data_template:
          entity_id: switch.master_pump

the error it gives when checking config is:
Configuration invalid
Error loading /config/configuration.yaml: while parsing a block collection
in “/config/scripts.yaml”, line 18, column 7
expected <block end , but found '<block mapping start ’
in “/config/scripts.yaml”, line 40, column 8

line 18 is the first service after sequence

EDIT GOT IT FIGURED OUT HAD SPACING ERRORS. SORRY FOR THE WASTED SPACE, CAN ADMIN DELETE