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