// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,r){var n=Scanner.fromMessage(e);n.setLocale(t);var a,o,i,g,p,m,s,c,u,d;if(a=n.getSpan().innerCapture(regExpFormatted(/\1(.*),/,r.dear),1).trim(),i=n.getSpan().next(r.total).nextTag("td1"),o=i.tagContents().innerCapture(/([\d\.,]+)/,1).trim(),g=i.tagContents().withEnd(o.getStart()).trim(),p=getFuzzyDate(n.getSpan().innerCapture(regExpFormatted(/\1(.*)/,r.checkIn),1)),m=getFuzzyDate(n.getSpan().innerCapture(regExpFormatted(/\1(.*)/,r.checkOut),1)),s=n.getSpan().innerCapture(regExpFormatted(/\1(.*)/,r.number),1).trim(),c=n.getSpan().innerCapture(regExpFormatted(/(.*)\1/,r.detail),1).trim(),u=c.nextAddress(),d=c.nextPhoneNumber(),ASSERT(a,s,p,m,u))return[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:a},totalPrice:o,priceCurrency:g,checkinTime:p,checkoutTime:m,reservationStatus:"http://schema.org/ReservationConfirmed",reservationId:s,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:c,telephone:d,address:u}}]}}).call();