// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e){return e=deepTrim(e),e["@context"]="http://schema.org",e.reservationStatus||(e.reservationStatus="http://schema.org/ReservationConfirmed"),"http://schema.org/ReservationCancelled"!==e.reservationStatus&&/[Cc]ancell?ed/.test(e.reservationStatus)&&(e.reservationStatus="http://schema.org/ReservationCancelled"),"http://schema.org/ReservationConfirmed"!==e.reservationStatus&&/[Cc]confirm/.test(e.reservationStatus)&&(e.reservationStatus="http://schema.org/ReservationConfirmed"),"http://schema.org/ReservationConfirmed"!==e.reservationStatus&&/[Bb]booking/.test(e.reservationStatus)&&(e.reservationStatus="http://schema.org/ReservationConfirmed"),e.reservationStatus&&!/^http:\/\/schema\.org\/Reservation/.test(e.reservationStatus)&&(e.reservationStatus=e.reservationStatus.replace(/^http:\/\/schema\.org\//,"http://schema.org/Reservation")),e.reservationFor&&/[Hh]otel/.test(e.reservationFor["@type"])&&(e.reservationFor["@type"]="LodgingBusiness"),e.reservationFor&&"RentalCar"===e.reservationFor["@type"]&&(e.reservationFor["@type"]="Car"),e.reservationFor&&e.reservationFor.startDate&&(e.reservationFor.startDate=e.reservationFor.startDate.replace("\xe1bado,&nbsp;","")),e.reservationFor&&e.performer&&(e.reservationFor.performer=e.performer,delete e.performer),e.underName&&e.underName.name&&"Anonymous"===e.underName.name&&(e.underName.name=""),e}}).call();