new ReverseTemplateList([new ReverseTemplate("alaskaair.com-details-en",function(e){return/^Details on your/.test(e.subject)},function(e){var r={};return r.confirmationCode=/Confirmation code:/i,r.departs=/Departs/i,r.arrives=/Arrives/i,r.missingOut=/(\w+)\s*,\s*you're missing out/,loadHelper("alaskaair.com-details-2017.js")(e,"en_US",r)},"0/1/2/3/4/5/6/152/196/567","SG1b157692"),new ReverseTemplate("alaskaair.com-trip-reminder-en",function(e){return/^Need Anything for Your Trip to/.test(e.subject)},function(e){if(int(e.epoch)<1356998400)return CONTINUE;var r=Scanner.fromMessage(e);r.setLocale("en_US");var t,a,i,n,o,s,p,m,u,l,g,c,d,h,v=[],f={};if(/^Need Anything for Your Trip to/.test(e.subject)){if(o=r.getSpan().innerCapture(/How Can We Help You, (.*)\?/,1),not(o))return CONTINUE;f[""+o]={name:o,seats:{},seatingType:{}},t=r.getSpan().nextText("Your confirmation code is").nextTag("td7").tagContents(),s=r.getSpan().nextText("Trip Details").nextTag("table3").allInnerTags("table8").map(function(e){return e.allInnerTagsFiltered("td8")}).filter(function(e){return e.length>0});var N=/($<name>.*) ($<flightNumber>\d+)$/,T=/.*\(([A-Z]{3})\)/;for(h=0;h<s.length;h++)n=s[h],n[0].innerCapture(N)?(m=n[0].innerCapture(N),u=m.$name,p=m.$flightNumber):n[0].innerCapture(T)&&(not(g)?(g=n[0].innerCapture(T,1),l=getFuzzyDate(n[0])):(d=n[0].innerCapture(T,1),c=getFuzzyDate(n[0]),ASSERT(u,p,g,l,d,c)&&v.push({airlineName:u,flightNumber:p,departureCode:g,departureTime:l,arrivalCode:d,arrivalTime:c,passengers:f}),m=u=p=g=l=d=c=null))}var b=[];for(h=0;h<v.length;h++)for(var C=v[h],y=Object.keys(C.passengers),S=0;S<y.length;S++){var A=C.passengers[y[S]];/alaska/i.test(C.airlineName)&&(C.airlineCode="AS"),i={"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:C.airlineName,airlineCode:C.airlineCode,flightNumber:C.flightNumber,departureAirportFuzzy:C.departureAirport,departureAirportCode:C.departureCode,departureTime:C.departureTime,arrivalAirportFuzzy:C.arrivalAirport,arrivalAirportCode:C.arrivalCode,arrivalTime:C.arrivalTime},underName:{"@type":"http://schema.org/Person",name:A.name},checkinUrl:a,reservationStatus:"http://schema.org/Reservation"+(C.reservationStatus||"Confirmed"),reservationId:valid(C.reservationId)?C.reservationId:t,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:A.ticketNumber,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:A.seats[C.flightNumber],seatingType:A.seatingType[C.flightNumber]}},totalPrice:A.totalPrice,priceCurrency:A.priceCurrency},not(A.membershipNumber)||(i.programMembershipUsed={"@type":"http://schema.org/ProgramMembership",membershipNumber:A.membershipNumber,programName:A.programName}),b.push(i)}return b.length?b:void 0},"0/1/2/3/4/5/6/152/196/569","SG7cd17764")]);