new ReverseTemplateList([new ReverseTemplate("usairways.com-international-reservation-en",function(e){return/^US AIRWAYS - CONFIRMATION CODE:/.test(e.subject)},function(e){if(/^US AIRWAYS - CONFIRMATION CODE:/.test(e.subject)){var r=Scanner.fromMessage(e);r.setLocale("en_US");var t,a,i,n,p,s,o,m,u,l,d,c,g,h,T,A,C=[],N={};if(a=r.getSpan().innerCapture(/CUSTOMER NAME :\s+(.*)\s/,1),not(a))return CONTINUE;for(m=r.getSpan().innerCapture(/[A-Z]{3} FARE.+($<priceCurrency>[A-Z]{3}) TTL\s+.+?($<totalPrice>[\d,.]+)\r?\n/),s=m?m.$totalPrice:null,o=m?m.$priceCurrency:null,N[""+a]={name:a,seats:{},seatingType:{},totalPrice:s,priceCurrency:o},r.getSpan().innerCapture(/CONFIRMATION NUMBER:\s+(\w+)\s/,1),u=r.getSpan().nextRegExp(/SEGMENT\s+TIME\s+DATE\s+FLIGHT\s+STATUS\s+/).collapseToEnd().withEnd(r.getSpan().nextRegExp(/REFUND DUE SUBJECT TO AUDIT/).getStart()),itineraryPattern=concatRegExp(/\*\d{1,}\.\s+LV ($<departureAirport>.*?) ($<departureCode>[A-Z]{3})\s+/,/($<departureTime>\d{3,}[A|P]M)\s+($<currentDate>\d{2}[A-Z]{3}).+($<airlineCode>[\w]{2}) ($<flightNumber>\d+).+\s+/,/AR\s+($<arrivalAirport>.*?) ($<arrivalCode>[A-Z]{3})\s+($<arrivalTime>\d{3,}[A|P]M)\s+/,/(?:OPERATED BY: ($<airlineName>.*)\s+)?/);u.innerCapture(itineraryPattern);)n=u.innerCapture(itineraryPattern),i=r.getDetachedSpan(""+n.$currentDate),c=n.$departureAirport,g=n.$departureCode,d=combineDateAndTime(i,n.$departureTime),T=n.$arrivalAirport,A=n.$arrivalCode,h=combineDateAndTime(i,n.$arrivalTime),l=n.$airlineCode,n.$airlineName,p=n.$flightNumber,ASSERT(a,l,p,g,d,A,h)&&C.push({airlineCode:l,flightNumber:p,departureCode:g,departureTime:d,departureAirport:c,arrivalCode:A,arrivalTime:h,arrivalAirport:T,passengers:N}),u=u.withStart(n[0].getEnd());for(var v=[],S=0;S<C.length;S++)for(var b=C[S],$=Object.keys(b.passengers),E=0;E<$.length;E++){var y=b.passengers[$[E]],R={"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:b.airlineName,airlineCode:b.airlineCode,flightNumber:b.flightNumber,departureAirportFuzzy:b.departureAirport,departureAirportCode:b.departureCode,departureTime:b.departureTime,arrivalAirportFuzzy:b.arrivalAirport,arrivalAirportCode:b.arrivalCode,arrivalTime:b.arrivalTime},underName:{"@type":"http://schema.org/Person",name:y.name,email:y.email},checkinUrl:t,reservationId:b.reservationId,reservationStatus:"http://schema.org/ReservationConfirmed",totalPrice:y.totalPrice,priceCurrency:y.priceCurrency,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:y.ticketNumber,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:y.seats[b.flightNumber],seatingType:y.seatingType[b.flightNumber]}}};valid(y.membershipNumber,y.programName)&&(R.programMembershipUsed={"@type":"http://schema.org/ProgramMembership",membershipNumber:y.membershipNumber,programName:y.programName}),v.push(R)}if(v.length)return v}},"0/1/2/3/4/5/6/152/219/840","SG663309b6")]);