new ReverseTemplateList([new ReverseTemplate("airchina-cancellation-zh",function(e){return/\u9000\u7968\u5ba1\u6838\u901a\u77e5/.test(e.subject)},function(e){var t=Scanner.fromMessage(e);t.setLocale("zh_Hans_CN");var a=t.getSpan().innerCapture(/\u60a8\u7f16\u53f7\u4e3a(\d+)/i,1),r={"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationStatus:"http://schema.org/ReservationCancelled",reservationFor:{"@type":"http://apple.com/FuzzyFlight"},reservationId:a};if(ASSERT(a))return[r]},"0/1/2/3/4/5/6/152/521/523","SG7c69d5c2"),new ReverseTemplate("airchina-confirmation-zh",function(e){return/\u9884\u5b9a\u786e\u8ba4/.test(e.subject)},function(e){if(!/\u9884\u5b9a\u786e\u8ba4/.test(e.subject))return CONTINUE;var t=Scanner.fromMessage(e);t.setLocale("zh_Hans_CN");for(var a=[],r=t.getSpan().nextText("\u8ba2\u5355\u53f7").nextTag("td2").tagContents(),n=t.getSpan().nextText("\u822a\u7a0b\u8d39\u7528\u660e\u7ec6").nextTag("table1").allInnerTagsFiltered("td1")[5],i=t.getSpan().innerCapture(/\u822a\u7a0b\u8d39\u7528\u660e\u7ec6\uff08\u5355\u4f4d\uff1a(.*)\uff09/,1),p=t.getSpan().nextText("\u4e58\u5ba2\u4fe1\u606f").nextTag("table1").allInnerTagsFiltered("td1"),o=0;o<p.length/11;o++){var s=11*o,l=p[s+0],c=p[s+6],m=t.getSpan().nextText("\u53bb\u7a0b\u822a\u6bb5").nextTag("table1").allInnerTagsFiltered("td1");""+t.getSpan().nextText("\u56de\u7a0b\u822a\u6bb5")!=""&&m.push.apply(m,t.getSpan().nextText("\u56de\u7a0b\u822a\u6bb5").nextTag("table1").allInnerTagsFiltered("td1"));for(var g=0;g<m.length/5;g++){var h=5*g,d=m[h+0].split(","),T=d[0].trim(),u=combineDateAndTime(d[2].trim(),d[3].trim()),v=unSpanDate_(u.innerDate()),S=t.getDetachedSpan(d[3].trim()+":00");u=combineDateAndTime(v,S);var x=m[h+1].split(","),b=x[0].trim(),F=combineDateAndTime(x[2].trim(),x[3].trim()),f=unSpanDate_(F.innerDate()),y=t.getDetachedSpan(x[3].trim()+":00");F=combineDateAndTime(f,y);var z,D,C;if([,z,D,C]=m[h+2].innerCapture(/(\w{2}).*?(\d+).*\n(.*)/),ASSERT(r,p,d,x,z,D,C)){a.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:C,airlineCode:z,flightNumber:D,departureAirportFuzzy:T,departureTime:u,arrivalAirportFuzzy:b,arrivalTime:F},underName:{"@type":"http://schema.org/Person",name:l},reservationId:r,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:c,ticketedSeat:{"@type":"http://schema.org/Seat"}},totalPrice:n,priceCurrency:i,reservationStatus:"http://schema.org/ReservationConfirmed"})}}}return a.length?a:void 0},"0/1/2/3/4/5/6/152/521/524","SGb632d1a8"),new ReverseTemplate("airchina-pending-zh",function(e){return/\u9884\u5b9a\u5c1a\u672a\u5b8c\u6210/.test(e.subject)},function(e){if(!/\u9884\u5b9a\u5c1a\u672a\u5b8c\u6210/.test(e.subject))return CONTINUE;var t=Scanner.fromMessage(e);t.setLocale("zh_Hans_CN");for(var a=[],r=t.getSpan().nextText("\u8ba2\u5355\u53f7").nextTag("td2").tagContents(),n=t.getSpan().nextText("\u822a\u7a0b\u8d39\u7528\u660e\u7ec6").nextTag("table1").allInnerTagsFiltered("td1")[5],i=t.getSpan().innerCapture(/\u822a\u7a0b\u8d39\u7528\u660e\u7ec6\uff08\u5355\u4f4d\uff1a(.*)\uff09/,1),p=t.getSpan().nextText("\u4e58\u5ba2\u4fe1\u606f").nextTag("table1").allInnerTagsFiltered("td1"),o=0;o<p.length/12;o++){var s=9*o,l=p[s+0],c=t.getSpan().nextText("\u53bb\u7a0b\u822a\u6bb5").nextTag("table1").allInnerTagsFiltered("td1");""+t.getSpan().nextText("\u56de\u7a0b\u822a\u6bb5")!=""&&c.push.apply(c,t.getSpan().nextText("\u56de\u7a0b\u822a\u6bb5").nextTag("table1").allInnerTagsFiltered("td1"));for(var m=0;m<c.length/5;m++){var g=5*m,h=c[g+0].split(","),d=h[0].trim(),T=combineDateAndTime(h[2].trim(),h[3].trim()),u=unSpanDate_(T.innerDate()),v=t.getDetachedSpan(h[3].trim()+":00");T=combineDateAndTime(u,v);var S=c[g+1].split(","),x=S[0].trim(),b=combineDateAndTime(S[2].trim(),S[3].trim()),F=unSpanDate_(b.innerDate()),f=t.getDetachedSpan(S[3].trim()+":00");b=combineDateAndTime(F,f);var y,z,D;if([,y,z,D]=c[g+2].innerCapture(/(\w{2}).*?(\d+).*\n(.*)/),ASSERT(r,p,h,S,y,z,D)){a.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:D,airlineCode:y,flightNumber:z,departureAirportFuzzy:d,departureTime:T,arrivalAirportFuzzy:x,arrivalTime:b},underName:{"@type":"http://schema.org/Person",name:l},reservationId:r,reservedTicket:{"@type":"http://schema.org/Ticket",ticketedSeat:{"@type":"http://schema.org/Seat"}},totalPrice:n,priceCurrency:i,reservationStatus:"http://schema.org/ReservationConfirmed"})}}}return a.length?a:void 0},"0/1/2/3/4/5/6/152/521/525","SGd6a0cb9b")]);