(function(){return function(e,r,t){var a=Scanner.fromMessage(e);a.setLocale(r);var n,i,p,o,s,l,m,u,d,g,h=[],v=[],c=[];n=a.getSpan().next(t.reservationId).nextAnyTag("td").tagContents();var T=a.getSpan().allInnerCapture(/(WS\s(\d{2,}))/,1);for(s=0;s<T.length;s++){i={},i.flightNumber=T[s].innerCapture(/WS\s(\d+)/,1);var C=T[s].nextDate();u=T[s].next(t.departure).nextAnyTag("td").tagContents(),i.departureTime=combineDateAndTime(C,u.innerDate()),i.departureCode=u.innerCapture(/^(\w{2,})\b/,1),u=T[s].next(t.arrival).nextAnyTag("td").tagContents(),i.arrivalTime=combineDateAndTime(C,u.innerDate()),i.arrivalCode=u.innerCapture(/^(\w{2,})\b/,1),Date.parse(i.departureTime)>Date.parse(i.arrivalTime)&&(i.arrivalTime=modifyDate(i.arrivalTime,1));var y=T[s].parentTag("table5").allInnerCapture(t.seat,1);for(i.passengers=[],g=0;g<y.length;g++)l={},l.name=y[g].previousAnyTag("td").tagContents(),l.seat=y[g].nextAnyTag("td").tagContents().innerCapture(/(\d+\w+)/,1),ASSERT(l.name)&&i.passengers.push(l);ASSERT(i.departureCode,i.arrivalCode,i.departureTime,i.arrivalTime,i.flightNumber)&&v.push(i)}for(d="Confirmed",s=0;s<v.length;s++)for(m=v[s],h=m.passengers,g=0;g<h.length;g++){l=h[g];var A={"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:m.airlineName,airlineCode:"WS",flightNumber:m.flightNumber,departureAirportFuzzy:m.departureAirport,departureAirportCode:m.departureCode,departureTime:m.departureTime,arrivalAirportFuzzy:m.arrivalAirport,arrivalAirportCode:m.arrivalCode,arrivalTime:m.arrivalTime},underName:{"@type":"http://schema.org/Person",name:l.name},checkinUrl:null,reservationId:n,reservationStatus:"http://schema.org/Reservation"+d,totalPrice:p,priceCurrency:o,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:l.ticketNumber,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:l.seat}}};c.push(A)}if(c.length)return c}}).call();