(function(){return function(e,t,r){var a=Scanner.fromMessage(e);a.setLocale(t);var n,i,o,c,s,p,h,m,d,g,x,l,u=a.getSpan(),v=r.isConfirmation?"Confirmed":"Cancelled",f=[],S=u.nextText(r.reservationIdPrefix).withEnd(u.nextText(r.pricePrefix).getEnd()),P=a.getSpan().innerCapture(regExpFormatted(/\1\s(\d+)/,r.reservationIdPrefix),1);c=getFuzzyDate(a.getDetachedSpan(""+S.innerDate())),i=(""+S).match(/(.+)-/)[1].trim();var E=u.nextText(r.totalPricePrefix).withEnd(u.nextText(r.paymentPrefix).getStart()).innerCapture(regExpFormatted(/\s([\d,.-]+)\s/,r.totalPricePrefix),1).trim();if(ASSERT(i,c)&&f.push({"@context":"http://schema.org","@type":"http://schema.org/EventReservation",name:n,totalPrice:E,reservationId:P,priceCurrency:"",reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:"",ticketToken:d,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:g,seatSection:x,seatRow:l}},reservationFor:{"@type":"http://schema.org/Event",eventStatus:"http://schema.org/Event"+v,name:i,url:o,startDate:c,endDate:s,location:{"@type":"http://schema.org/Place",name:p,telephone:m,address:h}}}),f.length>0)return f}}).call();