text: 'use strict';
  
  [{
    zoneRegex: {
      en: /^Eden's Verse: Furor \(Savage\)$/,
      ko: /^희망의 낙원 에덴: 공명편\(영웅\) \(2\)$/,
    },
    timelineFile: 'e6s.txt',
    triggers: [
      {
        id: 'E6S Superstorm',
        regex: Regexes.startsUsing({ source: 'Garuda', id: '4BF7', capture: false }),
        regexDe: Regexes.startsUsing({ source: 'Garuda', id: '4BF7', capture: false }),
        regexFr: Regexes.startsUsing({ source: 'Garuda', id: '4BF7', capture: false }),
        regexJa: Regexes.startsUsing({ source: 'ガルーダ', id: '4BF7', capture: false }),
        regexCn: Regexes.startsUsing({ source: '迦楼罗', id: '4BF7', capture: false }),
        regexKo: Regexes.startsUsing({ source: '가루다', id: '4BF7', capture: false }),
        condition: Conditions.caresAboutMagical(),
        response: Responses.aoe(),
        run: function(data) {
          data.phase = 'garuda';
        },
      },
      {
        id: 'E6S Ferostorm',
        regex: Regexes.startsUsing({ source: ['Garuda', 'Raktapaksa'], id: ['4BF[EF]', '4C0[45]'], capture: false }),
        regexDe: Regexes.startsUsing({ source: ['Garuda', 'Raktapaksa'], id: ['4BF[EF]', '4C0[45]'], capture: false }),
        regexFr: Regexes.startsUsing({ source: ['Garuda', 'Raktapaksa'], id: ['4BF[EF]', '4C0[45]'], capture: false }),
        regexJa: Regexes.startsUsing({ source: ['ガルーダ', 'ラクタパクシャ'], id: ['4BF[EF]', '4C0[45]'], capture: false }),
        infoText: {
          en: 'Avoid green nails',
          de: 'Weiche den grünen Nägeln aus',
          fr: 'Evitez les griffes',
          ko: '초록 발톱 피하기',
        },
      },
      {
        id: 'E6S Air Bump',
        regex: Regexes.headMarker({ id: '00D3' }),
        suppressSeconds: 1,
        infoText: function(data, matches) {
          if (data.me == matches.target) {
            return {
              en: 'Enumeration on YOU',
              de: 'Enumeration aud DIR',
              fr: 'Enumération sur VOUS',
              ko: '2인 장판 대상자',
              cn: '蓝圈分摊点名',
            };
          }
          return {
            en: 'Enumeration',
            de: 'Enumeration',
            fr: 'Enumération',
            ko: '2인 장판',
            cn: '蓝圈分摊',
          };
        },
      },
      {
        id: 'E6S Touchdown',
        regex: Regexes.startsUsing({ source: 'Ifrit', id: '4C09', capture: false }),
        regexDe: Regexes.startsUsing({ source: 'Ifrit', id: '4C09', capture: false }),
        regexFr: Regexes.startsUsing({ source: 'Ifrit', id: '4C09', capture: false }),
        regexJa: Regexes.startsUsing({ source: 'イフリート', id: '4C09', capture: false }),
        regexCn: Regexes.startsUsing({ source: '伊弗利特', id: '4C09', capture: false }),
        regexKo: Regexes.startsUsing({ source: '이프리트', id: '4C09', capture: false }),
        run: function(data) {
          data.phase = 'ifrit';
        },
      },
      {
        id: 'E6S Inferno Howl',
        regex: Regexes.startsUsing({ source: ['Ifrit', 'Raktapaksa'], id: '4C14', capture: false }),
        regexDe: Regexes.startsUsing({ source: ['Ifrit', 'Raktapaksa'], id: '4C14', capture: false }),
        regexFr: Regexes.startsUsing({ source: ['Ifrit', 'Raktapaksa'], id: '4C14', capture: false }),
        regexJa: Regexes.startsUsing({ source: ['イフリート', 'ラクタパクシャ'], id: '4C14', capture: false }),
        condition: Conditions.caresAboutMagical(),
        response: Responses.aoe(),
      },
      {
        // Save ability state since the generic tether used has multiple uses in this fight
        id: 'E6S Hands of Flame Start',
        regex: Regexes.startsUsing({ source: ['Ifrit', 'Raktapaksa'], id: '4D00', capture: false }),
        regexDe: Regexes.startsUsing({ source: ['Ifrit', 'Raktapaksa'], id: '4D00', capture: false }),
        regexFr: Regexes.startsUsing({ source: ['Ifrit', 'Raktapaksa'], id: '4D00', capture: false }),
        regexJa: Regexes.startsUsing({ source: ['イフリート', 'ラクタパクシャ'], id: '4D00', capture: false }),
        preRun: function(data) {
          data.handsOfFlame = true;
        },
      },
      {
        // Tank swap if you're not the target
        // Break tether if you're the target during Ifrit+Garuda phase
        id: 'E6S Hands of Flame Tether',
        regex: Regexes.tether({ id: '0068' }),
        condition: function(data) {
          return data.handsOfFlame;
        },
        infoText: function(data, matches) {
          if (data.me == matches.target) {
            return {
              en: 'Charge on YOU',
              de: 'Ansturm auf DIR',
              fr: 'Charge sur VOUS',
              ko: '나에게 보스 돌진',
              cn: '冲锋点名',
            };
          }
          if (data.role != 'tank' || data.phase == 'both')
            return;
          return {
            en: 'Tank Swap',
            de: 'Tank Swap',
            fr: 'Tank Swap',
            ko: '탱 교대',
            cn: '换坦',
          };
        },
      },
      {
        id: 'E6S Hands of Flame Cast',
        regex: Regexes.ability({ source: ['Ifrit', 'Raktapaksa'], id: '4D00', capture: false }),
        regexDe: Regexes.ability({ source: ['Ifrit', 'Raktapaksa'], id: '4D00', capture: false }),
        regexFr: Regexes.ability({ source: ['Ifrit', 'Raktapaksa'], id: '4D00', capture: false }),
        regexJa: Regexes.ability({ source: ['イフリート', 'ラクタパクシャ'], id: '4D00', capture: false }),
        preRun: function(data) {
          data.handsOfFlame = false;
        },
        suppressSeconds: 1,
      },
      {
        id: 'E6S Instant Incineration',
        regex: Regexes.startsUsing({ source: ['Ifrit', 'Raktapaksa'], id: '4C0E' }),
        regexDe: Regexes.startsUsing({ source: ['Ifrit', 'Raktapaksa'], id: '4C0E' }),
        regexFr: Regexes.startsUsing({ source: ['Ifrit', 'Raktapaksa'], id: '4C0E' }),
        regexJa: Regexes.startsUsing({ source: ['イフリート', 'ラクタパクシャ'], id: '4C0E' }),
        condition: Conditions.caresAboutMagical(),
        response: Responses.tankBuster(),
      },
      {
        id: 'E6S Meteor Strike',
        regex: Regexes.startsUsing({ source: ['Ifrit', 'Raktapaksa'], id: '4C0F', capture: false }),
        regexDe: Regexes.startsUsing({ source: ['Ifrit', 'Raktapaksa'], id: '4C0F', capture: false }),
        regexFr: Regexes.startsUsing({ source: ['Ifrit', 'Raktapaksa'], id: '4C0F', capture: false }),
        regexJa: Regexes.startsUsing({ source: ['イフリート', 'ラクタパクシャ'], id: '4C0F', capture: false }),
        response: Responses.awayFromFront(),
      },
      {
        id: 'E6S Hands of Hell',
        regex: Regexes.headMarker({ id: '0016' }),
        condition: Conditions.targetIsYou(),
        alertText: {
          en: 'Tether Marker on YOU',
          de: 'Verbindung auf DIR',
          fr: 'Marque de lien sur VOUS',
          ko: '선 징 대상자',
          cn: '连线点名',
        },
      },
      {
        id: 'E6S Hated of the Vortex',
        regex: Regexes.startsUsing({ source: 'Garuda', id: '4F9F', capture: false }),
        regexDe: Regexes.startsUsing({ source: 'Garuda', id: '4F9F', capture: false }),
        regexFr: Regexes.startsUsing({ source: 'Garuda', id: '4F9F', capture: false }),
        regexJa: Regexes.startsUsing({ source: 'ガルーダ', id: '4F9F', capture: false }),
        regexCn: Regexes.startsUsing({ source: '迦楼罗', id: '4F9F', capture: false }),
        regexKo: Regexes.startsUsing({ source: '가루다', id: '4F9F', capture: false }),
        run: function(data) {
          data.phase = 'both';
        },
      },
      {
        id: 'E6S Hated of the Vortex Effect',
        regex: Regexes.gainsEffect({ effect: 'Hated of the Vortex' }),
        regexDe: Regexes.gainsEffect({ effect: 'Fluch Des Windes' }),
        regexFr: Regexes.gainsEffect({ effect: 'Malédiction de la Souffleuse de rafales' }),
        regexJa: Regexes.gainsEffect({ effect: '嵐神の呪い' }),
        condition: Conditions.targetIsYou(),
        infoText: {
          en: 'Attack Garuda',
          de: 'Greife Garuda an',
          fr: 'Attaquez Garuda',
          ko: '가루다 공격하기',
          cn: '打风神',
        },
      },
      {
        id: 'E6S Hated of the Embers Effect',
        regex: Regexes.gainsEffect({ effect: 'Hated of Embers' }),
        regexDe: Regexes.gainsEffect({ effect: 'Fluch der Flammen' }),
        regexFr: Regexes.gainsEffect({ effect: 'Malédiction du Seigneur des flammes' }),
        regexJa: Regexes.gainsEffect({ effect: '焔神の呪い' }),
        condition: Conditions.targetIsYou(),
        infoText: {
          en: 'Attack Ifrit',
          de: 'Greife Ifrit an',
          fr: 'Attaquez Ifrit',
          ko: '이프리트 공격하기',
          cn: '打火神',
        },
      },
      {
        id: 'E6S Raktapaksa Spawn',
        regex: Regexes.ability({ source: 'Raktapaksa', id: '4D55', capture: false }),
        regexDe: Regexes.ability({ source: 'Raktapaksa', id: '4D55', capture: false }),
        regexFr: Regexes.ability({ source: 'Raktapaksa', id: '4D55', capture: false }),
        regexJa: Regexes.ability({ source: 'ラクタパクシャ', id: '4D55', capture: false }),
        run: function(data) {
          data.phase = 'raktapaksa';
        },
      },
      {
        id: 'E6S Downburst Knockback 1',
        regex: Regexes.startsUsing({ source: 'Garuda', id: '4BFB', capture: false }),
        regexDe: Regexes.startsUsing({ source: 'Garuda', id: '4BFB', capture: false }),
        regexFr: Regexes.startsUsing({ source: 'Garuda', id: '4BFB', capture: false }),
        regexJa: Regexes.startsUsing({ source: 'ガルーダ', id: '4BFB', capture: false }),
        regexCn: Regexes.startsUsing({ source: '迦楼罗', id: '4BFB', capture: false }),
        regexKo: Regexes.startsUsing({ source: '가루다', id: '4BFB', capture: false }),
        response: Responses.knockback(),
      },
      {
        id: 'E6S Downburst Knockback 2',
        regex: Regexes.startsUsing({ source: 'Raktapaksa', id: '4BFC', capture: false }),
        regexDe: Regexes.startsUsing({ source: 'Raktapaksa', id: '4BFC', capture: false }),
        regexFr: Regexes.startsUsing({ source: 'Raktapaksa', id: '4BFC', capture: false }),
        regexJa: Regexes.startsUsing({ source: 'ラクタパクシャ', id: '4BFC', capture: false }),
        response: Responses.knockback(),
      },
      {
        id: 'E6S Conflag Strike',
        regex: Regexes.startsUsing({ source: 'Raktapaksa', id: '4C10', capture: false }),
        regexDe: Regexes.startsUsing({ source: 'Raktapaksa', id: '4C10', capture: false }),
        regexFr: Regexes.startsUsing({ source: 'Raktapaksa', id: '4C10', capture: false }),
        regexJa: Regexes.startsUsing({ source: 'ラクタパクシャ', id: '4C10', capture: false }),
        infoText: {
          en: 'go to spots for chains',
          de: 'Gehe zu den Stellen für die Kette',
          fr: 'Positions pour les chaines',
          ko: '콘플레그 준비',
          cn: '连线站位',
        },
      },
      {
        id: 'E6S Irons Of Purgatory',
        regex: Regexes.tether({ id: '006C' }),
        condition: function(data, matches) {
          return data.me == matches.target || data.me == matches.source;
        },
        alertText: function(data, matches) {
          if (data.me == matches.source) {
            return {
              en: 'Tethered to ' + data.ShortName(matches.target),
              de: 'Verbunden mit ' + data.ShortName(matches.target),
              fr: 'Lié à ' + data.ShortName(matches.target),
              ko: '선 연결 짝: ' + data.ShortName(matches.target),
              cn: '和' + data.ShortName(matches.target) + '连线',
            };
          }
          return {
            en: 'Tethered to ' + data.ShortName(matches.source),
            de: 'Verbunden mit ' + data.ShortName(matches.source),
            fr: 'Lié à ' + data.ShortName(matches.source),
            ko: '선 연결 짝: ' + data.ShortName(matches.source),
            cn: '和' + data.ShortName(matches.source) + '连线',
          };
        },
      },
      {
        id: 'E6S Conflag Strike Behind',
        regex: Regexes.startsUsing({ source: 'Raktapaksa', id: '4C10', capture: false }),
        regexDe: Regexes.startsUsing({ source: 'Raktapaksa', id: '4C10', capture: false }),
        regexFr: Regexes.startsUsing({ source: 'Raktapaksa', id: '4C10', capture: false }),
        regexJa: Regexes.startsUsing({ source: 'ラクタパクシャ', id: '4C10', capture: false }),
        delaySeconds: 31,
        response: Responses.getBehind(),
      },
    ],
    timelineReplace: [
      {
        'locale': 'de',
        'replaceSync': {
          'Twisting Blaze': 'Feuersturm',
          'Tumultuous Nexus': 'Orkankugel',
          'great ball of fire': 'Flammenkugel',
          'Raktapaksa': 'Raktapaksa',
          'Ifrit': 'Ifrit',
          'Garuda': 'Garuda',
        },
        'replaceText': {
          'Wind Cutter': 'Schneidender Wind',
          'Vacuum Slice': 'Vakuumschnitt',
          'Touchdown': 'Himmelssturz',
          'Thorns': 'Dornen',
          'Superstorm': 'Sturm der Zerstörung',
          'Strike Spark': 'Feuerfunken',
          'Storm Of Fury': 'Wütender Sturm',
          'Spread Of Fire': 'Ausbreitung des Feuers',
          'Spike Of Flame': 'Flammenstachel',
          'Radiant Plume': 'Scheiterhaufen',
          'Occluded Front': 'Okklusion',
          'Meteor Strike': 'Meteorit',
          'Irresistible Pull': 'Saugkraft',
          'Instant Incineration': 'Explosive Flamme',
          'Inferno Howl': 'Glühendes Gebrüll',
          'Hot Foot': 'Fliegendes Feuer',
          'Heat Burst': 'Hitzewelle',
          'Hated Of the Vortex': 'Fluch des Windes',
          'Hated Of Embers': 'Fluch der Flammen',
          'Hands Of Hell': 'Faust des Schicksals',
          'Hands Of Flame': 'Flammenfaust',
          'Firestorm': 'Feuersturm',
          'Ferostorm': 'Angststurm',
          'Explosion': 'Explosion',
          'Eruption': 'Eruption',
          'Downburst': 'Fallböe',
          'Conflag Strike': 'Feuersbrunst',
          'Call Of The Inferno': 'Flimmernde Hitze',
          'Blaze': 'Flamme',
          'Air Bump': 'Aufsteigende Böe',
        },
        '~effectNames': {
          'Magic Vulnerability Up': 'Erhöhte Magie-Verwundbarkeit',
          'Lightheaded': 'Auf wackeligen Beinen',
          'Irons of Purgatory': 'Höllenfessel',
          'Hated of the Vortex': 'Fluch des Windes',
          'Hated of Embers': 'Fluch der Flammen',
        },
      },
      {
        'locale': 'fr',
        'replaceSync': {
          'twisting blaze': 'Vortex enflammé',
          'tumultuous nexus': 'Rafale',
          'great ball of fire': 'Ignescence',
          'Raktapaksa': 'Raktapaksa',
          'Ifrit': 'Ifrit',
          'Garuda': 'Garuda',
        },
        'replaceText': {
          'Wind Cutter': 'Trancheur de vent',
          'Vacuum Slice': 'Lacération du vide',
          'Touchdown': 'Atterrissage',
          'Thorns': 'Lardoir',
          'Superstorm': 'Tempête dévastatrice',
          'Strike Spark': 'Ignescences',
          'Storm of Fury': 'Tempête déchaînée',
          'Spread of Fire': 'Océan de feu',
          'Spike of Flame': 'Explosion de feu',
          'Radiant Plume': 'Panache radiant',
          'Occluded Front': 'Front occlus',
          'Meteor Strike': 'Frappe de météore',
          'Irresistible Pull': 'Force d\'aspiration',
          'Instant Incineration': 'Uppercut enflammé',
          'Inferno Howl': 'Rugissement ardent',
          'Hot Foot': 'Jet d\'ignescence',
          'Heat Burst': 'Vague de chaleur',
          'Hated of the Vortex': 'Malédiction de la Souffleuse de rafales',
          'Hated of Embers': 'Malédiction du Seigneur des flammes',
          'Hands of Hell': 'Frappe purgatrice',
          'Hands of Flame': 'Frappe enflammée',
          'Firestorm': 'Tempête de feu',
          'Ferostorm': 'Tempête déchaînée',
          'Explosion': 'Explosion de vent',
          'Eruption': 'Éruption',
          'Downburst': 'Rafale descendante',
          'Conflag Strike': 'Ekpurosis',
          'Call of the Inferno': 'Mirage de chaleur',
          'Blaze': 'Fournaise',
          'Air Bump': 'Rafale ascendante',
        },
        '~effectNames': {
          'Magic Vulnerability Up': 'Vulnérabilité magique augmentée',
          'Lightheaded': 'Titubation',
          'Irons of Purgatory': 'Chaîne du purgatoire',
          'Hated of the Vortex': 'Malédiction de la Souffleuse de rafales',
          'Hated of Embers': 'Malédiction du Seigneur des flammes',
        },
      },
      {
        'locale': 'ja',
        'replaceSync': {
          'twisting blaze': '火炎旋風',
          'tumultuous nexus': '暴風球',
          'great ball of fire': '火焔球',
          'Raktapaksa': 'ラクタパクシャ',
          'Ifrit': 'イフリート',
          'Garuda': 'ガルーダ',
        },
        'replaceText': {
          'Wind Cutter': 'ウィンドカッター',
          'Vacuum Slice': 'バキュームスラッシュ',
          'Touchdown': 'タッチダウン',
          'Thorns': '早贄',
          'Superstorm': 'スーパーストーム',
          'Strike Spark': 'ファイアスパーク',
          'Storm of Fury': 'フューリアスストーム',
          'Spread of Fire': 'スプレッド・オブ・ファイア',
          'Spike of Flame': '爆炎',
          'Radiant Plume': '光輝の炎柱',
          'Occluded Front': 'オクルーデッドフロント',
          'Meteor Strike': 'メテオストライク',
          'Irresistible Pull': '吸引力',
          'Instant Incineration': '爆裂炎',
          'Inferno Howl': '灼熱の咆哮',
          'Hot Foot': '飛び火',
          'Heat Burst': '熱波',
          'Hated of the Vortex': '嵐神の呪い',
          'Hated of Embers': '焔神の呪い',
          'Hands of Hell': '業炎拳',
          'Hands of Flame': '火炎拳',
          'Firestorm': 'ファイアストーム',
          'Ferostorm': 'フィアスストーム',
          'Explosion': '爆散',
          'Eruption': 'エラプション',
          'Downburst': 'ダウンバースト',
          'Conflag Strike': 'コンフラグレーションストライク',
          'Call of the Inferno': '陽炎召喚',
          'Blaze': '火炎',
          'Air Bump': 'エアーバンプ',
        },
        '~effectNames': {
          'Magic Vulnerability Up': '被魔法ダメージ増加',
          'Lightheaded': 'ふらつき',
          'Irons of Purgatory': '煉獄の鎖',
          'Hated of the Vortex': '嵐神の呪い',
          'Hated of Embers': '焔神の呪い',
        },
      },
    ],
  }];
  