(function(){return function(e,r,t){var a=Scanner.fromMessage(e);a.setLocale(r);var n,i,o,p=a.getSpan(),l=[];n=p.nextText(t.reference).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1(.+)/,t.reference),1);for(var m=n.next(t.name).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1\s(\w+)/,t.name),1),g=p.next(t.flightDetails_prefix);g!==a.getNullSpan();){var d,u,s,h,c,v,x,A="Monarch Airlines",C="ZB",T=g.parentAnyTag("table"),f=t.airportsName_regex.exec(T.nextAnyTag("td").tagContents());s=f[1].trim(),v=f[2];var y=T.nextAnyTag("td").nextAnyTag("td").tagContents();d=t.flightNumber_regex.exec(""+y)[1];var N=y.allInnerDates();u=combineDateAndTime(N[0],N[1]),c=combineDateAndTime(N[0],N[2]),l.push({airlineName:A,airlineCode:C,flightNumber:d,departureDateTime:u,departureAirport:s,departureAirportCode:h,arrivalDateTime:c,arrivalAirport:v,arrivalAirportCode:x}),g=g.next(t.flightDetails_prefix)}for(var D=[],i=p.nextText(t.checkIn).nextRegExp(/<(.+)>/).innerCapture(/<(.+)>/,1),F=0;F<l.length;F++){var T=l[F];o={"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:T.airlineName,airlineCode:T.airlineCode,flightNumber:T.flightNumber,departureAirportFuzzy:T.departureAirport,departureAirportCode:T.departureCode,departureTime:T.departureDateTime,arrivalAirportFuzzy:T.arrivalAirport,arrivalAirportCode:T.arrivalCode,arrivalTime:T.arrivalDateTime},underName:{"@type":"http://schema.org/Person",name:m},checkinUrl:i,reservationId:n.trim(),reservationStatus:"http://schema.org/ReservationConfirmed"}}return D.push(o),D.length>=1?D:CONTINUE}}).call();