(function(){return function(e,t,r){var a=Scanner.fromMessage(e);a.setLocale(t);var n,i,p,o=a.getSpan(),l=[],s=[],u=[],g=function(e,t){e.forEach(function(e){var r,n,i,p,o,l,s,u,g,m,d=a.getDetachedSpan(""+e).allInnerTags("td7");""+d==""+a.getNullSpan()&&(d=a.getDetachedSpan(""+e).allInnerTags("td8")),""+d!=""+a.getNullSpan()&&(r=d[1].tagContents().innerCapture(/([0-9A-Z]{2})(\d{3,4})/)[1],n=d[1].tagContents().innerCapture(/([0-9A-Z]{2})(\d{3,4})/)[2],i=d[3].tagContents().innerCapture(/(.*)\s(.*)/)[1],p=d[3].tagContents().innerCapture(/(.*)\s(.*)/)[2],o=d[4].tagContents().innerCapture(/(.*)\s\((.*)\),/)[1],l=d[4].tagContents().innerCapture(/(.*)\s\((.*)\),/)[2],s=d[5].tagContents().innerCapture(/(.*)\s(.*)/)[1],u=d[5].tagContents().innerCapture(/(.*)\s(.*)/)[2],g=d[6].tagContents().innerCapture(/(.*)\s\((.*)\),/)[1],m=d[6].tagContents().innerCapture(/(.*)\s\((.*)\),/)[2],t({airlineName:""+d[0].tagContents(),airlineCode:r,flightNumber:n,departureDateTime:a.getDetachedSpan(i+" "+p).innerDate(),departureAirport:""+o,departureAirportCode:""+l,arrivalDateTime:a.getDetachedSpan(s+" "+u).innerDate(),arrivalAirport:""+g,arrivalAirportCode:""+m,seatNumber:null,seatType:null}))})},m=o.nextText(r.passengerNameHeader).parentAnyTag("table").allInnerTags("tr7");return 0===m.length&&(m=o.nextText(r.passengerNameHeader).parentAnyTag("table").allInnerTags("tr8")),m.slice(1).forEach(function(e){l.push({name:(""+e.nextAnyTag("td").tagContents().innerCapture(/(.*)/,1)).replace(r.underNamePersonSuffixRegExp,""),ticketNumber:e.nextAnyTag("td").tagContents().allInnerCapture(regExpFormatted(/\1\s([\dA-Z]+)/,r.ticketNumber),1)})}),n=o.innerCapture(regExpFormatted(/\1\s(.*?)\s/,r.reservationIdPrefix),1),m=o.nextText(r.flightSummaryBlockPrefix).nextTag("table7").allInnerTags("tr7"),s.push(m.slice(1)),m=o.nextText(r.flightSummaryBlockPrefix).nextText(r.flightNextSummaryBlockPrefix).nextText(r.flightSummaryBlockPrefix).nextTag("table8").allInnerTags("tr8"),""+m!=""+a.getNullSpan()&&s.push(m.slice(1)),l.forEach(function(e){var t=0;g(s,function(r){ASSERT(e.name,r.flightNumber,r.departureAirportCode||r.departureAirport,r.departureDateTime,r.arrivalAirportCode||r.arrivalAirport,r.arrivalDateTime)&&(u.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:r.airlineName,airlineCode:r.airlineCode,flightNumber:r.flightNumber,departureAirportFuzzy:r.departureAirport,departureAirportCode:r.departureAirportCode,departureTime:r.departureDateTime,arrivalAirportFuzzy:r.arrivalAirport,arrivalAirportCode:r.arrivalAirportCode,arrivalTime:r.arrivalDateTime},underName:{"@type":"http://schema.org/Person",name:e.name},reservationId:n,reservationStatus:"http://schema.org/ReservationConfirmed",totalPrice:i,priceCurrency:p,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:e.ticketNumber[t],ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:r.seatNumber,seatingType:r.seatType}}}),t++)})}),u.length>=1?u:CONTINUE}}).call();