new ReverseTemplateList([new ReverseTemplate("hostelworld.com-confirmation-en",function(e){return/^Confirmed booking from hostelworld\.com/.test(e.subject)},function(e){if(/^Confirmed booking from hostelworld\.com/.test(e.subject)){var t=Scanner.fromMessage(e);t.setLocale("en_US");var n,r,o,a,s,i,c,m,u,d,l,g,p;if(n=t.getSpan().innerCapture(/\bDear (.*),/,1),i=t.getSpan().innerCapture(/\bYour reference number is ([\d-]+)/,1),r=t.getSpan().nextText("booking information").nextTag("td2").tagContents(),g=r.innerPhoneNumber(),p=r.innerAddress(),u=r.withEnd(g.getStart()).innerCapture(/($<name>.*)\s($<address>[\s\S]+)/),l=u?u.$name:null,not(p)&&(p=u?u.$address.trim():null),c=t.getSpan().nextText("Room Details").nextDate(),m=c.nextDate(),o=t.getSpan().innerCapture(/\bTotal:\s+($<currency>[A-Z]+).*?($<total>[\d,.]+)/),a=o?o.$total:null,s=o?o.$currency:null,ASSERT(c,p))return[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:n},totalPrice:a,priceCurrency:s,checkinTime:c,checkoutTime:m,reservationStatus:"http://schema.org/ReservationConfirmed",reservationId:i,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:l,url:d,telephone:g,address:p}}]}},"0/1/2/3/4/5/6/90/923/924","SG917cd9d4")]);