new ReverseTemplateList([new ReverseTemplate("usairways.com-checkin-en",function(){return!1},function(e){if(/^US Airways(?: - Web)? [Cc]heck-in reminder$/.test(e.subject)||/^Check in for your upcoming trip$/.test(e.subject))return STOP},"0/1/2/3/4/5/6/152/219/838","SG06f09643"),new ReverseTemplate("usairways.com-travel-confirmation-en",function(e){return/^US Airways Travel Confirmation$/.test(e.subject)},function(e){if(/^US Airways Travel Confirmation$/.test(e.subject)){var r=Scanner.fromMessage(e);r.setLocale("en_US");var t,a,n,i,o,s,p,m,l,u,c,g,h,f,d=[],T={};t=r.getSpan().innerCapture(/Travel Confirmation: (\w{6})\s/,1),n=r.getSpan().nextText("Passenger Information").parentTag("table4").allInnerTags("tr4").map(function(e){return e.allInnerTags("td4").map(function(e){return e.tagContents()})}).filter(function(e){return e.length>=4});for(var v=1;v<n.length;v++)T[""+n[v][0]]={name:n[v][0],seats:{},seatingType:{},ticketNumber:n[v][2]};for(o=r.getSpan().nextText("Flight Itinerary").parentTag("table4").allInnerTags("tr4").map(function(e){return e.allInnerTags("td4").map(function(e){return e.tagContents()})}).filter(function(e){return e.length>0}),f=0;f<o.length;f++)i=o[f],i.length>=6&&i[0].innerDate().exists()&&(l=r.getDetachedSpan((""+i[0]).replace(/\n/," ")).innerDate(),s=i[1],m=i[2].innerCapture(/($<code>[A-Z]{3})\/($<airport>.*)\s/),u=m?m.$code:null,m?m.$airport:null,c=i[3].innerCapture(/($<code>[A-Z]{3})\/($<airport>.*)\s/),h=c?c.$code:null,c?c.$airport:null,g=r.getDetachedSpan((""+i[4]).replace(/\n/," ")).innerDate(),p=o[f+1]&&o[f+1][0]&&o[f+1][0].innerCapture(/FLIGHT OPERATED BY/)?o[f+1][0].innerCapture(/FLIGHT OPERATED BY (.*)/,1):"US Airways",ASSERT(p,s,u,l,h,g)&&d.push({airlineName:p,flightNumber:s,departureCode:u,departureTime:l,arrivalCode:h,arrivalTime:g,passengers:T}));var b=[];for(f=0;f<d.length;f++)for(var y=d[f],C=Object.keys(y.passengers),S=0;S<C.length;S++){var N=y.passengers[C[S]],A={"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:y.airlineName,airlineCode:y.airlineCode||"US",flightNumber:y.flightNumber,departureAirportFuzzy:y.departureAirport,departureAirportCode:y.departureCode,departureTime:y.departureTime,arrivalAirportFuzzy:y.arrivalAirport,arrivalAirportCode:y.arrivalCode,arrivalTime:y.arrivalTime},underName:{"@type":"http://schema.org/Person",name:N.name,email:N.email},checkinUrl:a,reservationId:t,reservationStatus:"http://schema.org/ReservationConfirmed",totalPrice:N.totalPrice,priceCurrency:N.priceCurrency,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:N.ticketNumber,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:N.seats[y.flightNumber],seatingType:N.seatingType[y.flightNumber]}}};valid(N.membershipNumber,N.programName)&&(A.programMembershipUsed={"@type":"http://schema.org/ProgramMembership",membershipNumber:N.membershipNumber,programName:N.programName}),b.push(A)}if(b.length)return b}},"0/1/2/3/4/5/6/152/219/845","SG15c44b9b")]);