(function(){return function(e,t,n){var r=Scanner.fromMessage(e);r.setLocale(t);var a,i,o,s,g,x,p,d,c,l,m,h,u=r.getSpan(),f=n.isCancellation?"Cancelled":"Confirmed";p=u.innerCapture(regExpFormatted(/\1\s?:?\s(\d+)/,n.reservationIdPrefix),1),a=u.nextText(n.underPersonNamePrefix).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1\s(.+)/,n.underPersonNamePrefix),1);var P=(""+u.nextText(n.hotelNamePrefix).nextTag("table5").nextAnyTag("td").nextAnyTag("td").nextAnyTag("td").tagContents()).replace(/\n/gm," ").replace(/\s+/gm," ").match(/(.+)\s<(.+?)>\s(.+)/);if(P&&4===P.length){o=P[1],g=P[2],x=P[3];var T=r.getDetachedSpan(x).innerAddress();(""+T).length&&(x=T)}s=u.next(n.hotelPhonePrefix).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1\s:\s(.+)/,n.hotelPhonePrefix),1),s&&s.exists()||(s=r.getSpan().next(n.hotelNamePrefix2).nextPhoneNumber()),d=u.nextText(n.modifyReservationUrlPrefix).nextLink();var C=u.nextText(n.dateTimesPrefix).parentAnyTag("table").allInnerTags("td6").filter(function(e){return(""+e.tagContents()).length>0}).map(function(e){return e.tagContents()});c=r.getDetachedSpan(C[2]+" "+C[5]).innerDate(),l=r.getDetachedSpan(C[4]+" "+C[6]).innerDate();var v=u.nextText(n.pricePrefix).nextAnyTag("td").tagContents().innerCapture(/(\D)([\d\,\.]+)/);if(v&&v!==r.getNullSpan()?(h=v[1],m=v[2]):(v=u.innerCapture(regExpFormatted(/\1\s(\D)\s?([\d\,\.]+)/,n.pricePrefix)),v&&3===v.length?(h=v[1],m=v[2]):(v=u.innerCapture(regExpFormatted(/\1\s?([\d\,\.]+)\s(\D)/,n.pricePrefix)))&&3===v.length&&(h=v[1],m=v[2])),ASSERT(a,o,c))return[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:a,email:i},totalPrice:m,priceCurrency:h,checkinTime:c,checkoutTime:l,modifyReservationUrl:d,reservationStatus:"http://schema.org/Reservation"+f,reservationId:p,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:o,url:g,telephone:s,address:x}}]}}).call();