// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,n){var r=Scanner.fromMessage(e);r.setLocale(t);var a,i,o,s,c,p,g,x,m,h;return a=r.getSpan().innerCapture(regExpFormatted(/(.*?)\s?\1/,n.underPersonNameSuffix),1),p=r.getSpan().innerCapture(regExpFormatted(/\1\s(\d+)/,n.reservationIdPrefix),1),[i,c,o,s]=(""+r.getSpan().nextText(n.hotelNamePrefix).nextTag("td5").tagContents()).replace(/^\s*\n/gm,"").split("\n"),o=o.match(/(.*?)</)[1],g=r.getSpan().nextText(n.checkInDateTimePrefix).nextDate(),x=r.getSpan().nextText(n.checkOutDateTimePrefix).nextDate(),[,h,m]=r.getSpan().nextText(n.pricePrefix).nextTag("td4").tagContents().innerCapture(/\s?([\d,.]+)\s?(\D)/),ASSERT(a,i,g)?[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:a},totalPrice:m,priceCurrency:h,checkinTime:g,checkoutTime:x,reservationStatus:"http://schema.org/ReservationConfirmed",reservationId:p,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:i,telephone:o,address:c}}]:CONTINUE}}).call();