// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,r){var a=Scanner.fromMessage(e);a.setLocale(t);var n,o=a.getSpan().nextText(r.reservationIdPrefix).parentTag("td4").tagContents().innerCapture(regExpFormatted(/\1(.+)/,r.reservationIdPrefix),1).trim(),i=a.getSpan().nextText(r.reservationDetailsPrefix).nextTag("table5"),x=i.nextText(r.driverNamePrefix).nextTag("td5").tagContents().trim(),p=i.nextText(r.pickupLocationPrefix).nextTag("td5").tagContents().trim(),s=i.nextText(r.pickupDatePrefix).nextTag("td5").innerDate(),g=i.nextText(r.dropoffLocationPrefix).nextTag("td5").tagContents().trim(),c=i.nextText(r.dropoffDatePrefix).nextTag("td5").innerDate(),d=a.getSpan().nextText(r.carRentalProviderHeader).nextTag("table5"),m=d.nextText(r.addressPrefix).nextTag("td5").tagContents(),f=d.nextText(r.phoneNumberPrefix).nextTag("td5").tagContents(),T=d.nextText(r.carRentalProviderPrefix).nextTag("td5").tagContents().trim();if(ASSERT(x,m,s,T)){var h={"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:"",priceCurrency:"",reservationId:o,reservationStatus:"http://schema.org/ReservationConfirmed",modifyReservationUrl:"",cancelReservationUrl:"",underName:{"@type":"http://schema.org/Person",name:x},provider:{"@type":"http://schema.org/Organization",name:T},pickupTime:s,pickupLocation:{"@type":"http://schema.org/Place",name:p,telephone:f,address:m},dropoffTime:c,dropoffLocation:{"@type":"http://schema.org/Place",name:g,telephone:f,address:m}};return n&&(h.reservationFor={"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:n}}),[h]}}}).call();