// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,n){var r=Scanner.fromMessage(e);r.setLocale(t);var a,p,o,s,i,c,g,d,m,l,h,u,C,x,S,f,v,y,E,F,T,k,P;if(a=r.getSpan().next(n.totalPrice).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1\s(.*)/,n.totalPrice),1),p=a.innerCapture(/([\d\.,]+)/,1),o=a.innerCapture(/([^\d\.,]+)/,1),l=r.getSpan().next(n.provider).nextTag("table9").nextAnyTag("td").tagContents().innerCapture(/([^\s]*)\s/,1),d=r.getSpan().next(n.reserved).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1\s+(.*)/,n.reserved),1),k=r.getSpan().next(n.pickUp).nextDate(),x=r.getSpan().innerCapture(regExpFormatted(/\1\s\n\s+(.*)/,n.pickUp),1).innerDate(),S=r.getSpan().innerCapture(regExpFormatted(/\1\s\n\s+(.*)/,n.dropOff),1).innerDate(),f=r.getSpan().innerCapture(regExpFormatted(/\1\s\n[\s\S]+?(.*)\s+\[\//,n.pickUp),1),E=r.getSpan().innerCapture(regExpFormatted(/\1\s\n[\s\S]+?(.*)\s+\[\//,n.dropOff),1),h=r.getSpan().innerCapture(regExpFormatted(/\1\s+(.*)/,n.brand),1),s=r.getSpan().next(n.reservationId).nextAnyTag("td").tagContents(),P=n.cancelled.test(e.subject)||n.cancelled.test(e.plain)?"Cancelled":"Confirmed",ASSERT(d,x))return[{"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:p,priceCurrency:o,reservationId:s,reservationStatus:"http://schema.org/Reservation"+P,checkinUrl:i,modifyReservationUrl:c,cancelReservationUrl:g,underName:{"@type":"http://schema.org/Person",name:d,email:m},provider:{"@type":"http://schema.org/Organization",name:l},reservationFor:{"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:h},license:u,color:C},pickupTime:x,pickupLocation:{"@type":"http://schema.org/Place",name:f,telephone:v,address:y},dropoffTime:S,dropoffLocation:{"@type":"http://schema.org/Place",name:E,telephone:F,address:T}}]}}).call();