// 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,s,c,m,p,h,g,f,u=n.getSpan();m=u.innerCapture(regExpFormatted(/\1 (.*) </,r.confirmation_id),1).trim(),a=u.innerCapture(regExpFormatted(/(.*)\1</,r.underPersonName_suffix),1).trim();var x=u.next(r.hotelName_prefix).nextAnyTag("table").nextAnyTag("td").nextAnyTag("td").tagContents().split("\n");if(o=x[0],c=x[2]+" "+x[4],s=u.next(r.hotelPhone_prefix).firstPhoneNumber(),p=u.next(r.checkInDateTime_prefix).firstDate(),h=u.next(r.checkOutDateTime_prefix).firstDate(),ASSERT(o,c,p))return[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:a,email:i},totalPrice:g,priceCurrency:f,checkinTime:p,checkoutTime:h,reservationStatus:"http://schema.org/ReservationConfirmed",reservationId:m,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:o,telephone:s,address:c}}]}}).call();