// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var r,o,s,i,g,x,p,d,m,c=a.getSpan(),u="Bookatable",h="http://bookatable.com";if(s=c.innerCapture(regExpFormatted(/\1\s(.+),/,n.underPersonNamePrefix),1),m=c.next(n.partySizePrefix).nextAnyTag("td").tagContents(),i=c.next(n.restaurantNamePrefix).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1\s(.+)/,n.restaurantNamePrefix),1),x=c.next(n.restaurantPhonePrefix).nextAnyTag("td").tagContents(),p=c.next(n.restaurantAddressPrefix).nextAnyTag("td").parentAnyTag("table").allInnerTags("td4").reduce(function(e,t,n){return 1===n&&(e=e.tagContents()),e+" "+t.tagContents()}),o=c.nextText(n.cancelReservationUrlPrefix).nextLink(),d=a.getDetachedSpan(""+c.nextText(n.startDatePrefix).nextAnyTag("td").tagContents()+" "+c.nextText(n.startTimePrefix).nextAnyTag("td").tagContents()).innerDate(),r=c.innerCapture(regExpFormatted(/\1\s(.+)\./,n.reservationIdPrefix),1),ASSERT(i,d))return[{"@context":"http://schema.org","@type":"http://schema.org/FoodEstablishmentReservation",partySize:m,reservationId:r,reservationStatus:"http://schema.org/ReservationConfirmed",reservationFor:{"@type":"http://schema.org/FoodEstablishment",name:i,url:g,telephone:x,address:p},startTime:d,bookingAgent:{"@type":"http://schema.org/Organization",name:u,url:h},underName:{"@type":"http://schema.org/Person",name:s},cancelReservationUrl:o}]}}).call();