new ReverseTemplateList([new ReverseTemplate("emirates.com-flight-2016-cancel-en",function(e){return/Cancellations and changes|Emirates Refund/.test(e.subject)},function(e){var t={};return t.reservationId=/Refund Request No : (\d+)/,t.nameCapture=/Dear ([\w ]+)/,loadHelper("emirates.com-cancellation.js")(e,"en_US",t)},"0/1/2/3/4/5/6/152/189/664","SGa8fd37c7"),new ReverseTemplate("emirates.com-flight-2016-en",function(e){return/Your Emirates booking|Your Emirates travel itinerary|Booking Confirmation|booking has been changed/i.test(e.subject)},function(e){if(/Your Emirates/i.test(e.subject))return STOP;var t,r,n,i,a,s,o,m,p=[],u=[],g=/passenger\s{1,2}\d/i,c=/Frequent flyer number/i,l=/Flights/,h=/RETURNING/,d=Scanner.fromMessage(e);d.setLocale("en_US");for(var f,v,b=d.getSpan(),x=b.next(g);x.exists();){u.push(x.parentTag("th3").innerCapture(/-\s+(.*)/,1).trim()),x=x.next(g)}if(0===u.length)for(x=b.next(c);x.exists();)u.push(x.nextTag("td3").tagContents().trim()),x=x.next(c);return[l,h].forEach(function(e){var g=b.next(e).nextTag("table3"),c=g.allInnerTagsFiltered("td3");if(0!==c.length){if(6==c.length){l=c[0].getString().substr(0,2),r=c[0].getString().substr(2,5),n=c[3].innerCapture(/Airport\s*([^(]+)/,1).trim(),i=c[3].innerCapture(/Airport\s*\((\w+)\)/,1).trim();var h=c[5].getString().split("\n");a=c[3].innerCapture(/\n.*?Airport\s*([^(]+)/,1).trim(),s=c[3].innerCapture(/\n.*?Airport\s*\((\w+)\)/,1).trim(),t=h[0],o=combineDateAndTime(c[1].nextDate(),c[2].nextDate());var d=c[1].nextDate().nextDate();m=combineDateAndTime(d,c[2].nextDate().nextDate())}else if(5==c.length){l=c[0].getString().substr(0,2),r=c[0].getString().substr(2,5),n=c[3].innerCapture(/Airport\s*([^(]+)/,1).trim(),i=c[3].innerCapture(/Airport\s*\((\w+)\)/,1).trim();var h=c[5].getString().split("\n");a=c[3].innerCapture(/\n.*?Airport\s*([^(]+)/,1).trim(),s=c[3].innerCapture(/\n.*?Airport\s*\((\w+)\)/,1).trim(),t=h[0],o=combineDateAndTime(c[1].nextDate(),c[1].nextDate());var d=c[1].nextDate().nextDate();m=combineDateAndTime(d.nextDate(),d.nextDate())}else{l=c[0].getString().substr(0,2),r=c[0].getString().substr(2,5),a=c[8].innerCapture(/([^(]+)/,1).trim(),s=c[8].innerCapture(/\((\w+)\)/,1).trim();var h=c[5].getString().split("\n");t=h[0]+" "+h[1],n=c[3].innerCapture(/([^(]+)/,1).trim(),i=c[3].innerCapture(/\((\w+)\)/,1).trim(),o=combineDateAndTime(c[1],c[2]),m=combineDateAndTime(c[6],c[7])}for(var x=0;x<u.length;x++){var C=u[x];ASSERT(l,r,o)&&p.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineCode:l,flightNumber:r,departureAirportFuzzy:n,departureAirportCode:i,departureTime:o,arrivalAirportFuzzy:a,arrivalAirportCode:s,arrivalTime:m},underName:{"@type":"http://schema.org/Person",name:C},reservationId:v,reservationStatus:"http://schema.org/ReservationConfirmed",reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:f,ticketedSeat:{"@type":"http://schema.org/Seat",seatingType:t}}})}}}),p},"0/1/2/3/4/5/6/152/189/665","SGfc5d4692")]);