(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var r,o,p,i,g,s,c,d,l,T,x,h,m,u,C,v,f,y,S,b,F,k,A,R;if(regExpFormatted(/\1$/,n.cancelled).test(e.subject)&&(p="Cancelled"),m=a.getSpan().nextText(n.name).nextTag("table4").lastInnerTag("tr4"),r=m.innerTag("td4").tagContents(),m.lastInnerTag("td4").tagContents(),o=a.getSpan().innerCapture(regExpFormatted(/\1 (\w+)\s/,n.reservationId),1),R=a.getSpan().nextText(n.price).nextTag("td3").nextTag("td3").tagContents(),c=R.innerCapture(/([\d,.]+)/,1),d=R.innerCapture(/([^\d,.]+)/,1),l=a.getSpan().nextText(n.pickup).previousTag("table4").nextTag("td4").nextTag("td4").nextTag("td4").tagContents(),s=a.getSpan().nextText(n.cancelReservationUrl).nextLink(),S=a.getSpan().nextText(n.pickup).parentAnyTag("table"),A=S.innerDate(),m=S.innerTag("table5").allInnerTagsFiltered("td5").map(function(e){return""+e}),m.length>=2&&(b=m[0],F=a.getDetachedSpan(m.slice(1).join("-"))),k=S.innerText("Phone:").parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1 (.*)/,n.phone),1),u=a.getSpan().nextText(n.dropoff).parentAnyTag("table"),y=u.innerDate(),m=u.innerTag("table5").allInnerTagsFiltered("td5").map(function(e){return""+e}),m.length>=2?(C=m[0],v=a.getDetachedSpan(m.slice(1).join("-")),f=S.innerText(n.phone).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1 (.*)/,n.phone),1)):u.innerText(n.sameLocationAsPickup).exists()&&(C=b,v=F,f=k),h=a.getSpan().nextText(n.provider).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/(.*)\s+\1/,n.provider),1),not(h)&&(h=b),ASSERT(h,r,l,F,A))return[{"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:c,priceCurrency:d,reservationId:o,reservationStatus:"http://schema.org/Reservation"+(p||"Confirmed"),checkinUrl:i,modifyReservationUrl:g,cancelReservationUrl:s,underName:{"@type":"http://schema.org/Person",name:r},provider:{"@type":"http://schema.org/Organization",name:h},reservationFor:{"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:l},license:T,color:x},pickupTime:A,pickupLocation:{"@type":"http://schema.org/Place",name:b,telephone:k,address:F},dropoffTime:y,dropoffLocation:{"@type":"http://schema.org/Place",name:C,telephone:f,address:v}}]}}).call();