// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,r){var n=Scanner.fromMessage(e);n.setLocale(t);var a,i,o,p,x,g,m,d,s,c,f=n.getSpan(),T="Zuche.com";i=f.innerCapture(regExpFormatted(/\1([0-9]+)/,r.reservationIdPrefix),1);var P=f.nextText(r.reservationStatusPrefix).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1(.+)/,r.reservationStatusPrefix),1);o=P&&""+P===r.reservationStatusConfirmed?"Confirmed":"Cancelled",a=f.nextText(r.personUnderNamePrefix).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1(.+)/,r.personUnderNamePrefix),1),p=f.nextText(r.carBrandPrefix).nextAnyTag("td").nextAnyTag("td").tagContents();var u=f.nextText(r.pickUpBlockPrefix);x=u.nextText(r.locationNamePrefix).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1(.+)/,r.locationNamePrefix),1),g=u.nextText(r.dateTimePrefix).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1(.+)/,r.dateTimePrefix),1);var C=f.nextText(r.dropOffBlockPrefix);m=C.nextText(r.locationNamePrefix).nextText(r.locationNamePrefix).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1(.+)/,r.locationNamePrefix),1),d=C.nextText(r.dateTimePrefix).nextText(r.dateTimePrefix).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1(.+)/,r.dateTimePrefix),1);var h=f.nextText(r.pricePrefix).parentAnyTag("td").tagContents().innerCapture(/(\D)([\d\,\.]+)/);if(h&&h!==n.getNullSpan()?[,c,s]=h:(h=f.innerCapture(regExpFormatted(/\1\s(\D)\s?([\d\,\.]+)/,r.pricePrefix)),h&&3===h.length?[,c,s]=h:(h=f.innerCapture(regExpFormatted(/\1\s??([\d\,\.]+)\s(\D)/,r.pricePrefix)),h&&3===h.length&&([,c,s]=h))),ASSERT(i,x,g))return[{"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:s,priceCurrency:c,reservationStatus:"http://schema.org/Reservation"+o,reservationId:i,underName:{"@type":"http://schema.org/Person",name:a},provider:{"@type":"http://schema.org/Organization",name:T},reservationFor:{"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:p}},pickupTime:g,pickupLocation:{"@type":"http://schema.org/Place",name:x},dropoffTime:d,dropoffLocation:{"@type":"http://schema.org/Place",name:m}}]}}).call();