// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,a){var n=Scanner.fromMessage(e);n.setLocale(t);var r,o,i,p,s,c,g,x,d,f,m,h,l,T,u,v,C,y,S=n.getSpan(),_="Confirmed";i=S.nextText(a.reservationId_prefix).nextTag("td5").tagContents();var D,z;[D,z]=S.nextText(a.pickupDateTime_prefix).nextTag("td5").tagContents().split("\n"),D=""+D,z=(""+z).split(a.dropoffDateTime_suffix)[0],f=getFuzzyDate(n.getDetachedSpan(D).firstDate()),f===n.getNullSpan()&&(f=z),T=getFuzzyDate(n.getDetachedSpan(z).firstDate()),T===n.getNullSpan()&&(T=z),p=S.nextText(a.carBrand_prefix).nextTag("td5").tagContents().innerCapture(regExpFormatted(/(.*)\(/),1);var P=S.nextText(a.price_prefix).nextTag("td5").tagContents();if([,C,y]=/(.*)(.)/.exec(P),g=S.nextText(a.pickupLocation_prefix).nextTag("td5").tagContents(),m=S.nextText(a.dropoffLocation_prefix).nextTag("td5").tagContents(),r=S.nextText(a.underPersonName_prefix).nextTag("td5").tagContents(),o=S.nextText(a.underPersonEmail_prefix).nextTag("td5").tagContents(),ASSERT(i,g,f))return[{"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:C,priceCurrency:y,reservationStatus:"http://schema.org/Reservation"+_,reservationId:i,modifyReservationUrl:u,cancelReservationUrl:v,underName:{"@type":"http://schema.org/Person",name:r,email:o},provider:{"@type":"http://schema.org/Organization",name:"Jejue"},reservationFor:{"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:p},license:s,color:c},pickupTime:f,pickupLocation:{"@type":"http://schema.org/Place",name:g,telephone:x,address:d},dropoffTime:T,dropoffLocation:{"@type":"http://schema.org/Place",name:m,telephone:h,address:l}}]}}).call();