(function(){return function(e,t,r){var a=Scanner.fromMessage(e);a.setLocale(r);var n,i,o,g,l,p,s,h,u,d,v,m,c,T,C,f,x,A,b=[],y={};n=a.getSpan().nextText(t.reservationId).nextAnyTag("td").tagContents();var S={};y=a.getSpan().nextText(t.passenger).parentTag("table1").allInnerTags("table2");for(var o=0;o<y.length;o++)if(!(""+y[o]).match(t.passengerCheck)){var s=y[o].allInnerTags("td2");h=s[1].tagContents(),S[""+h]={name:h}}for(var N=a.getSpan().nextText(t.flight).parentTag("table1"),k=N.allInnerTags("table2"),o=0;o<k.length;o++)if(!(""+k[o]).match(t.flightCheck))for(var I=k[o].allInnerTags("tr2"),g=0;g<I.length;g++)b.push(I[g]);for(var z=[],F=[],D=a.getSpan().nextText(t.passenger),o=0;o<b.length;o++){var $=[];F=b[o].allInnerTags("td2"),v=F[0].tagContents().innerCapture(/($<airlineCode>[A-Z]{2})($<flightNumber>\d+)/),m=v.$airlineCode,d=v.$flightNumber,c=unSpanDate_(F[1].innerDate());var R=F[1].tagContents().innerCapture(/(.+?)\((.+?)\)/);T=R[1],C=R[2],f=unSpanDate_(F[2].innerDate());var P=F[2].tagContents().innerCapture(/(.+?)\((.+?)\)/);x=P[1],A=P[2];for(var _=Object.keys(S),l=0;l<_.length;l++){var j=D.nextText(v[0]).nextText(_[l]).nextAnyTag("td").nextAnyTag("td").tagContents();p=j.nextAnyTag("td").nextAnyTag("td").tagContents(),$.push({name:_[l],ticketNumber:j,seat:p}),D=j}ASSERT(m,d,c,f,C,A)&&z.push({airlineCode:m,flightNumber:d,departureTime:c,arrivalTime:f,departureAirport:T,arrivalAirport:x,departureCode:C,arrivalCode:A,passengers:$})}var E=[];for(o=0;o<z.length;o++){var u=z[o],L=u.passengers;for(g=0;g<L.length;g++){var M=L[g];E.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:"Peach Aviation",airlineCode:u.airlineCode,flightNumber:u.flightNumber,departureAirportFuzzy:u.departureAirport,departureAirportCode:u.departureCode,departureTime:u.departureTime,arrivalAirportFuzzy:u.arrivalAirport,arrivalAirportCode:u.arrivalCode,arrivalTime:u.arrivalTime},underName:{"@type":"http://schema.org/Person",name:M.name},checkinUrl:i,reservationId:n,reservationStatus:"http://schema.org/ReservationConfirmed",reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:M.ticketNumber,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:M.seat}}})}}if(E.length)return E}}).call();