(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var r,o,p,i,s,c,d,g,m,u,l,h,f,x,S,C,v,L,y,k;if(r=a.getSpan().innerCapture(n.underNameCapture,1).trim(),k=a.getSpan().next(n.pickupDate).nextDate(),C=a.getSpan().next(n.dropoffDate).nextDate(),p=a.getSpan().innerCapture(n.reservationIdCapture,1),c=d=p.nextLink(),u=a.getSpan().next(n.brandLabel).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1\s+([\s\S]+)/,n.brandLabel),1),v=a.getSpan().innerCapture(regExpFormatted(/\1\s+([^\[\]\n]*)/,n.pickupLocation),1),L=a.getSpan().innerCapture(regExpFormatted(/\1\s+([^\[\]]*?)\n\n/,n.pickupLocation),1),L&&L.exists()||(L=a.getSpan().next(n.pickupLocation).nextAddress()),f=a.getSpan().innerCapture(regExpFormatted(/\1\s+([^\[\]\n]*)/,n.dropoffLocation),1),x=a.getSpan().innerCapture(regExpFormatted(/\1\s+([^\[\]]+?)\n\n/,n.dropoffLocation),1),x&&x.exists()||(x=a.getSpan().next(n.dropoffLocation).nextAddress()),n.cancellation.test(e.subject)&&(i="Cancelled"),ASSERT(r,L,k)){var b={"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:g,priceCurrency:m,reservationId:p,reservationStatus:"http://schema.org/Reservation"+(i||"Confirmed"),checkinUrl:s,modifyReservationUrl:c,cancelReservationUrl:d,underName:{"@type":"http://schema.org/Person",name:r,email:o},provider:{"@type":"http://schema.org/Organization",name:"Avis"},pickupTime:k,pickupLocation:{"@type":"http://schema.org/Place",name:v,telephone:y,address:L},dropoffTime:C,dropoffLocation:{"@type":"http://schema.org/Place",name:f,telephone:S,address:x}};return u&&(b.reservationFor={"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:u},license:l,color:h}),[b]}}}).call();