// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,n){var r=Scanner.fromMessage(e);r.setLocale(t);var a,i,o,s,g,p,c,m,u,h,d,l,C,x;if(!n.emailTitel.test(e.subject))return CONTINUE;if(n.cancelConfirmation.test(r.getSpan().tagContents()))return CONTINUE;a=r.getSpan().innerCapture(n.guestName,1).trim(),g=r.getSpan().innerCapture(n.reservationId,1),c=getFuzzyDate(r.getSpan().nextRegExp(n.checkInDate).nextAnyTag("td").nextAnyTag("td").nextAnyTag("td").tagContents()),h=r.getSpan().innerCapture(n.hotelName,1).trim(),d=r.getSpan().nextRegExp(n.hotelPhone).nextPhoneNumber(),l=r.getSpan().innerCapture(n.hotelAddress,1);var S=r.getSpan().nextRegExp(n.price).nextAnyTag("td").tagContents();return o=S.innerCapture(/([\d,.]+)/,1),s=S.innerCapture(/([^\d,.]+)/,1).trim(),ASSERT(a,g,c,h)?(p="Confirmed",[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:a,email:i},totalPrice:o,priceCurrency:s,checkinTime:c,checkoutTime:m,modifyReservationUrl:C,cancelReservationUrl:x,reservationStatus:"http://schema.org/Reservation"+(p||"Confirmed"),reservationId:g,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:h,url:u,telephone:d,address:l}}]):CONTINUE}}).call();