(function(){return function(e,r,t){var a=Scanner.fromMessage(e);a.setLocale(r);var i,n,p,m,o,l,u,h,s,d,c,g,v,C,f=[];o=a.getSpan(),i=o.next(t.reservationId).innerCapture(t.reservationId,1),g=o.innerCapture(t.seating_type,1);for(var y=[],N=o;N.next(t.ticketHeader).exists();){var x=N.next(t.name_ticket);x&&(v=x.innerCapture(t.name_ticket).$name,C=x.innerCapture(t.name_ticket).$ticket),y.push({name:v,ticket:C}),N=v}var b;do{b=b?b.next(t.flightSummary):o.next(t.flightSummary),p=b.innerCapture(t.flightSummary),s=b.next(t.departure).innerCapture(t.departure).$airportAddress,h=s.nextRegExp(/.+/).replace(/\-/,"").innerDate(),c=b.next(t.arrival).innerCapture(t.arrival).$airportAddress,d=c.nextRegExp(/.+/).replace(/\-/,"").innerDate(),u=p.$airlineCode,l=p.$airlineName,m=p.$flightNumber,ASSERT(u,m,s,h,c,d)&&f.push({reservationId:i,airlineName:l,airlineCode:u,flightNumber:m,departureAirport:s,departureTime:h,arrivalAirport:c,arrivalTime:d})}while(0!==(""+b.next(t.flightSummary)).length);for(var k=[],A=0;A<f.length;A++)for(var S=f[A],T=0;T<y.length;T++){var x=y[T],$={"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:S.airlineName,airlineCode:S.airlineCode,flightNumber:S.flightNumber,departureAirportFuzzy:S.departureAirport,departureAirportCode:S.departureCode,departureTime:S.departureTime,arrivalAirportFuzzy:S.arrivalAirport,arrivalAirportCode:S.arrivalCode,arrivalTime:S.arrivalTime},underName:{"@type":"http://schema.org/Person",name:x.name},checkinUrl:n,reservationId:S.reservationId,reservationStatus:"http://schema.org/ReservationConfirmed",totalPrice:null,priceCurrency:null,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:x.ticket,ticketedSeat:{"@type":"http://schema.org/Seat",seatingType:g}}};valid(x.membershipNumber,x.programName)&&($.programMembershipUsed={"@type":"http://schema.org/ProgramMembership",membershipNumber:x.membershipNumber,programName:x.programName}),k.push($)}if(k.length)return k}}).call();