(function(){return function(e,r,t){var a=Scanner.fromMessage(e);a.setLocale(r);for(var i=[],n=a.getSpan().innerCapture(regExpFormatted(/\1\s(.+?)\n/,t.reservationId),1),p=a.getSpan().innerCapture(regExpFormatted(/\1\s([\w\n\s]+)/,t.passengers),1),s=p.trim().split("\n"),o=regExpFormatted(/\1\s\d\s:[\s\S]+?\2/,t.flight,t.services),m=a.getSpan().nextRegExp(o);m.exists();)i.push(m),m=m.nextRegExp(o);for(var l=[],g=0;g<i.length;g++){var d=i[g].firstDate(),u=i[g].allInnerTagsFiltered("td4"),h=u[0].innerDate(),v=combineDateAndTime(d,h),c=u[0].innerCapture(regExpFormatted(/\1\s+(?:\(.+?\))?(.+)/,""+h),1).trim(),f=u[1].innerDate(),F=combineDateAndTime(d,f),x=u[1].innerCapture(regExpFormatted(/\1\s+(?:\(.+?\))?(.+)/,""+f),1).trim(),T=u[2].innerCapture(/([A-Z\d]{2})(\d{3,4})/),A=T[1],C=T[2],E=u[2].innerCapture(regExpFormatted(/\u2022\s?\1\s?(.+?)\s\u2022/,t.flight),1);Date.parse(v)>Date.parse(F)&&(F=modifyDate(F,1)),ASSERT(v,F,c,x)&&l.push({departureAirport:c,arrivalTime:F,arrivalAirport:x,departureTime:v,airlineName:E,airlineCode:A,flightNumber:C})}for(var y=[],g=0;g<l.length;g++)for(var m=l[g],D=0;D<s.length;D++){var S={"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:m.airlineName,airlineCode:m.airlineCode,flightNumber:m.flightNumber,departureAirportFuzzy:m.departureAirport,departureTime:m.departureTime,arrivalAirportFuzzy:m.arrivalAirport,arrivalTime:m.arrivalTime},underName:{"@type":"http://schema.org/Person",name:s[D]},reservationId:n,reservationStatus:"http://schema.org/ReservationConfirmed",reservedTicket:{"@type":"http://schema.org/Ticket"}};y.push(S)}if(y.length)return y}}).call();