new ReverseTemplateList([new ReverseTemplate("tugg.com-1",function(e){return/\[Tugg\] (Please don't forget to print your tickets|.+ Tickets)/.test(e.subject)},function(e){if(startsWith(e.subject,"[Tugg] Ticket reserved"))return CONTINUE;if(!/\[Tugg\] (Please don't forget to print your tickets|.+ Tickets)/.test(e.subject))return CONTINUE;var t=Scanner.fromMessage(e);t.setLocale("en_US");var r,n,a,s,o,i,c,p,g,v,u,m;t.getSpan().innerCapture(/Hi, (.*),/,1),p=t.getSpan().nextText("Event Details").nextDate(),m=p.nextAddress();var h=t.getSpan().nextText("Event Details").nextTag("td4").tagContents().innerCapture(/\b($<eventName>.*) \(event info\) <($<eventUrl>.*)>\s+($<place>.*)\s+/);return h&&(i=h.$eventName,c=h.$eventUrl,u=h.$place.trim()),ASSERT(p,i)?[{"@context":"http://schema.org","@type":"http://schema.org/EventReservation",totalPrice:r,priceCurrency:n,reservedTicket:{"@type":"http://schema.org/Ticket",ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:o},ticketToken:s,ticketNumber:a},reservationFor:{"@type":"http://schema.org/MovieShowing",eventStatus:"http://schema.org/EventConfirmed",url:c,startDate:p,endDate:g,movie:{"@type":"http://schema.org/Movie",name:i},location:{"@type":"http://schema.org/Place",name:u,telephone:v,address:m}}}]:void 0},"0/1/2/3/4/5/6/7/1475/1476","SG5a2f0028")]);