// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var r,o,p,i,g,s,c,l,m,h,x,d,v;o=a.getSpan().innerCapture(n.reservationId,1),r=a.getSpan().innerCapture(n.name,1);var u=a.getSpan().next(n.reservationId).next(n.pickup).nextTag("table7").allInnerTags("td7");v=u[1].innerDate(),x=u[2].tagContents(),d=u[2].nextPhoneNumber();var C=a.getSpan().next(n.reservationId).next(n.dropoff).nextTag("table7").allInnerTags("td7");h=C[1].innerDate(),l=C[2].tagContents(),m=C[2].nextPhoneNumber(),c=a.getSpan().next(n.pickup).previousTag("table5").nextTag("td5").tagContents(),g=a.getSpan().next(n.totalPrice).nextAnyTag("td").tagContents().nextRegExp(/[\d,.]+/),s=a.getSpan().next(n.totalPrice).nextAnyTag("td").tagContents().innerCapture(/([^\d,.]+)/,1),p=a.getSpan().next(n.reservationUrl).nextLink(),i=a.getSpan().next(n.reservationUrl).nextLink().nextLink();var S="ReservationConfirmed";if(0!==(""+a.getSpan().next(n.isCancelled)).length&&(S="ReservationCancelled"),ASSERT(r,v,h,x,l))return[{"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:g,priceCurrency:s,reservationId:o,reservationStatus:"http://schema.org/"+S,modifyReservationUrl:p,cancelReservationUrl:i,underName:{"@type":"http://schema.org/Person",name:r},provider:{"@type":"http://schema.org/Organization",name:"Alamo"},reservationFor:{"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:c}},pickupTime:v,pickupLocation:{"@type":"http://schema.org/Place",name:x,telephone:d},dropoffTime:h,dropoffLocation:{"@type":"http://schema.org/Place",name:l,telephone:m}}]}}).call();