// 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,c,s,x,d,m,l,h,f,y,u,S,v,C,R;p=a.getSpan().innerCapture(n.reservationId,1),r=a.getSpan().next(n.name).nextAnyTag("table").nextAnyTag("td").tagContents(),o=a.getSpan().next(n.email).nextAnyTag("td").tagContents();var T=a.getSpan().next(n.pickup).next(n.pickup_inner).parentAnyTag("td").tagContents();S=T.innerCapture(n.pickup_name,1),R=T.nextDate(),C=a.getSpan().next(n.pickup_inner).next(n.telephone).nextRegExp(/\d+/);var A=a.getSpan().next(n.dropoff).next(n.dropoff_inner).parentAnyTag("td").tagContents();if(h=A.innerCapture(n.dropoff_name,1),u=A.nextDate(),y=a.getSpan().next(n.dropoff_inner).next(n.telephone).nextRegExp(/\d+/),d=a.getSpan().next(n.brand).parentAnyTag("td").tagContents(),s=a.getSpan().next(n.totalPrice).nextAnyTag("td").tagContents().nextRegExp(/[\d,.]+/),x=a.getSpan().next(n.totalPrice).nextAnyTag("td").tagContents().innerCapture(/([^\d,.]+)/,1),g=a.getSpan().next(n.modifyReservationUrl).nextLink(),c=a.getSpan().next(n.cancelReservationUrl).nextLink(),ASSERT(r,o,R,u,OR(S,v),OR(h,f)))return[{"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:s,priceCurrency:x,reservationId:p,reservationStatus:"http://schema.org/ReservationConfirmed",checkinUrl:i,modifyReservationUrl:g,cancelReservationUrl:c,underName:{"@type":"http://schema.org/Person",name:r,email:o},provider:{"@type":"http://schema.org/Organization",name:"Alamo"},reservationFor:{"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:d},license:m,color:l},pickupTime:R,pickupLocation:{"@type":"http://schema.org/Place",name:S,telephone:C,address:v},dropoffTime:u,dropoffLocation:{"@type":"http://schema.org/Place",name:h,telephone:y,address:f}}]}}).call();