(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var r,s,i,o,c,g,p,u,l,x,m,d;r=a.getSpan().innerCapture(regExpFormatted(/(.*?)\s?\1/,n.underPersonNameSuffix),1),m="td4",r&&r.exists()||(r=a.getSpan().next(/Muchas gracias por realizar tu reserva en/).parentAnyTag("td").tagContents().innerCapture(/Muchas gracias por .+?>\s*[\n]+?(.+?) ,/i,1),x=!0),g=a.getSpan().innerCapture(regExpFormatted(/\1\s(\d+)/,n.reservationIdPrefix),1);var h=(""+a.getSpan().nextText(n.hotelNamePrefix).nextAnyTag("td").tagContents()).replace(/^\s*\n/gm,"").split("\n");s=h?h[0]:null,c=h?h[1]:null,i=h?h[2]:null,o=h?h[3]:null,o=a.getDetachedSpan(o).nextLink().toLocaleString(),i=i.match(/\+([\d\s]+)\s<?/)[1].trim(),p=a.getSpan().nextText(n.checkInDateTimePrefix).nextDate(),u=a.getSpan().nextText(n.checkOutDateTimePrefix).nextDate(),x===!0&&(m="td3");var S=a.getSpan().next(/Precio total de la estancia/).nextTag(m).tagContents().innerCapture(/\s?($<a>[\d,.]+)\s?($<b>\D)/);return l=S.$a?S.$a:null,d=S.$b?S.$b:null,ASSERT(r,s,p)?[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:r},totalPrice:l,priceCurrency:d,checkinTime:p,checkoutTime:u,reservationStatus:"http://schema.org/ReservationConfirmed",reservationId:g,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:s,telephone:i,address:c}}]:CONTINUE}}).call();