(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var r,i,o,s,g,c,p,m,l,u,C,d,x,T;if(!n.emailTitelConfirmation.test(e.subject)&&!n.emailTitelCancelConfirmation.test(e.subject))return CONTINUE;g=a.getSpan().innerCapture(n.reservationId,1),r=a.getSpan().nextRegExp(n.guestName).nextAnyTag("td").tagContents(),u=a.getSpan().nextRegExp(n.hotelName).nextAnyTag("td").tagContents(),p=a.getSpan().nextRegExp(n.checkInDate).nextAnyTag("td").tagContents(),m=a.getSpan().nextRegExp(n.checkOutDate).nextAnyTag("td").tagContents(),d=a.getSpan().nextRegExp(n.address).nextAnyTag("td").tagContents();var h=a.getSpan().nextRegExp(n.price).nextAnyTag("td").tagContents();if(o=h.innerCapture(/([\d,.-]+)/,1),s=h.innerCapture(/([^\d,.-]+)/,1).trim(),n.emailTitelConfirmation.test(e.subject)){if(!ASSERT(r,g,p,m,u))return CONTINUE;c="Confirmed"}if(n.emailTitelCancelConfirmation.test(e.subject)){if(!ASSERT(r,g,p,m,u))return CONTINUE;c="Cancelled"}return[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:r,email:i},totalPrice:o,priceCurrency:s,checkinTime:p,checkoutTime:m,modifyReservationUrl:x,cancelReservationUrl:T,reservationStatus:"http://schema.org/Reservation"+(c||"Confirmed"),reservationId:g,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:u,url:l,telephone:C,address:d}}]}}).call();