// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,n){var r=Scanner.fromMessage(e);r.setLocale(t);var a,s,o,i,g,p,c,d,h,m,f=r.getSpan();o=f.innerCapture(regExpFormatted(/\1 (.*)\n/,n.hotelName_preffix),1),a=(""+f.next(n.underPersonName_preffix).nextAnyTag("td").nextAnyTag("td").tagContents()).split("\n")[0].trim();var x=""+f.next(o).next(o).nextAnyTag("td").tagContents(),u=x.split("-");c=u[0],c=getFuzzyDate(r.getDetachedSpan(c).firstDate()),d=u[1],d=getFuzzyDate(r.getDetachedSpan(d).firstDate()),p=f.innerCapture(regExpFormatted(/\1 (.*) </,n.reservationId_preffix),1);var l=""+f.next(n.hotelAddress_preffix).parentAnyTag("td").tagContents();if(g=r.getDetachedSpan(l).firstAddress(),i=/Tel: (.*),/.exec(l)[1],ASSERT(o,g,c))return[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:a,email:s},totalPrice:h,priceCurrency:m,checkinTime:c,checkoutTime:d,reservationStatus:"http://schema.org/ReservationConfirmed",reservationId:p,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:o,telephone:i,address:g}}]}}).call();