// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,a){if(!e||!t||!a)return CONTINUE;var r=Scanner.fromMessage(e);r.setLocale(t);var n,s,o,l,c,i,d;return i=loadHelper("name.js")(e.subject,a,r),s=loadHelper("starttime.js")(a,r),ASSERT(i,s)?(c=loadHelper("address.js")(a,r),o=loadHelper("endtime.js")(a,r,s),[{"@context":"http://schema.org","@type":"http://schema.org/EventReservation",reservationStatus:"http://schema.org/Reservation"+(d||"Pending"),reservationFor:{url:l,"@type":"http://schema.org/SocialEvent",name:i,startDate:s,endDate:o,location:valid(n)?{"@type":"http://schema.org/Place",name:n,address:c}:c}}]):void 0}}).call();