// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,r){var n=Scanner.fromMessage(e);if(n.setLocale(t),n.getSpan().nextText(r.carRentalSummary).exists()){var a,p,o,i,s,c,g,m,d,l,h,u,T,x,C,f,v,S,y,R,b;if(T=n.getSpan().innerCapture(regExpFormatted(/\b\1 (.*?)\./,r.provider),1),c=n.getSpan().innerCapture(regExpFormatted(/\1\s+\2\s+(\w+)/,""+T,r.reservationId),1),o=n.getSpan().nextText(r.travelerDetails).parentTag("table5"),a=o.innerText(r.name).parentTag("td5").tagContents().innerCapture(regExpFormatted(/\1\s+(.*)/,r.name),1),l=a.nextTag("td5").tagContents().innerCapture(/(.*?):/,1),i=o.innerText(r.price).nextTag("td5").tagContents().innerCapture(/([\d,.]+)/,1),o=n.getSpan().nextText(r.rentalSummary).nextTag("table6"),b=o.innerText(r.pickupTime).parentTag("td6").innerDate(),v=o.innerText(r.dropoffTime).parentTag("td6").innerDate(),y=o.innerText(r.pickupAddress).parentTag("td6").tagContents().innerCapture(regExpFormatted(/\1\s+(.*)/,r.pickupAddress),1),R=o.parentTag("table5").innerPhoneNumber(),C=y,f=R,d=n.getSpan().innerCapture(regExpFormatted(/\1\s+<(.*?)>/,r.cancellationUrl),1),ASSERT(a,T,b,c,OR(S,y)))return[{"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:i,priceCurrency:s,reservationId:c,reservationStatus:"http://schema.org/ReservationConfirmed",checkinUrl:g,modifyReservationUrl:m,cancelReservationUrl:d,underName:{"@type":"http://schema.org/Person",name:a,email:p},provider:{"@type":"http://schema.org/Organization",name:T},reservationFor:{"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:l},license:h,color:u},pickupTime:b,pickupLocation:{"@type":"http://schema.org/Place",name:S,telephone:R,address:y},dropoffTime:v,dropoffLocation:{"@type":"http://schema.org/Place",name:x,telephone:f,address:C}}]}}}).call();