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