(function(){return function(r,e,a){function t(r){var e={},a=r[0].innerCapture(/[^\n]\s*[\n]+($<a>[\w]+)\s#($<b>\d+)/);e.airlineName=a?a.$a.trim():null,e.flightNumber=a?a.$b.trim():null;var t=r[1].allDates(),n=r[1].innerCapture(/($<a>[^\n\(\)]+)\s\(($<b>\w+)\)\s*[\n]{1}/);e.departureAirport=n?n.$a.trim():null,e.departureCode=n?n.$b.trim():null,e.departureTime=combineDateAndTime(t[1],t[0]);var i=r[3].allDates();e.arrivalTime=combineDateAndTime(i[1],i[0]);var l=r[3].innerCapture(/($<a>[^\n\(\)]+)\s\(($<b>\w+)\)\s*[\n]{1}/);if(e.arrivalCode=l?l.$b:null,e.arrivalAirport=l?l.$a:null,ASSERT(e.flightNumber,e.departureTime,e.arrivalTime))return e}var n=Scanner.fromMessage(r);n.setLocale(e);var i,l,p,s,u=(n.getSpan(),[]),o=[],m=n.getSpan();i=m.innerCapture(regExpFormatted(/\1\s([^\n]+)/,a.reservationId),1);for(var d=m.next(a.passangers),v=int(d.innerCapture(regExpFormatted(/\1/,a.passangersCap),1));!d.isNullSpan_;)l=d.innerCapture(regExpFormatted(/Passenger\s\1:\s([^\n]+)/,v+""),1).trim(),o.push({name:l}),v+=1,d=d.next(regExpFormatted(/Passenger\s\1:\s([^\n]+)/,v+""));var g=m.next(a.outbound),h=m.next(a.inbound);if(!g.isNullSpan_){var b=g.nextAnyTag("table").allInnerTagsFiltered("td4");u.push(t(b))}if(!h.isNullSpan_){var b=h.nextAnyTag("table").allInnerTagsFiltered("td4");u.push(t(b))}for(var f=[],p=0;p<u.length;p++)for(var T=u[p],s=0;s<o.length;s++){var c={"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:T.airlineName,flightNumber:T.flightNumber,departureAirportFuzzy:T.departureAirport,departureAirportCode:T.departureCode,departureTime:T.departureTime,arrivalAirportFuzzy:T.arrivalAirport,arrivalAirportCode:T.arrivalCode,arrivalTime:T.arrivalTime},underName:{"@type":"http://schema.org/Person",name:o[s].name},reservationId:i,reservationStatus:"http://schema.org/ReservationConfirmed"};f.push(c)}if(f.length)return f}}).call();