// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,r){if(!e||!t||!r)return CONTINUE;var a=Scanner.fromMessage(e);a.setLocale(t);var n,o,s,i,p,c,m,g,h,l;return s=a.getDetachedSpan("1"),l=a.getSpan().innerCapture(regExpFormatted(/\1\s+(.*)\./,r.reference),1),o=a.getSpan().innerCapture(regExpFormatted(/\1 "?([^;"]*)"?\s*\2/,r.restaurant,r.restaurantPostFix),1).trim(),n=(""+a.getSpan().nextText("[td1]").collapseToEnd().withEnd(a.getSpan().nextText(",").getStart())).replace(/\n/g,"").trim(),ASSERT(s,o,n)?[{"@context":"http://schema.org","@type":"http://schema.org/FoodEstablishmentReservation",partySize:s,reservationId:l,reservationStatus:"http://schema.org/ReservationCancelled",reservationFor:{"@type":"http://schema.org/FoodEstablishment",name:o,url:i,telephone:c,address:m},startTime:p,bookingAgent:{"@type":"http://schema.org/Organization",name:"Bookatable",url:"http://www.bookatable.com/"},underName:{"@type":"http://schema.org/Person",name:n},cancelReservationUrl:h,modifyReservationUrl:g}]:CONTINUE}}).call();