(function(){return function(e,r,t){var a=Scanner.fromMessage(e);a.setLocale(r);var i,n=a.getSpan(),o=[],p=[],l=[];if(i=a.getSpan().nextText(t.reference).nextRegExp(/[A-Z0-9]{3,}/),i.previousOpeningTag("td4").exists())l=n.nextText(t.info).nextTag("table5").allInnerTagsFiltered("td5");else for(var m=n.nextText(t.info).parentAnyTag("table").allInnerTagsFiltered("td3"),u=2;u<m.length;u++)l.push(m[u]);for(var g=0;g<l.length;g+=2){var d=l[g],s=d.innerCapture(/([A-Z0-9]{2})(\d{3,4})/);d.airlineCode=s[1],d.flightNumber=s[2];var v=d.innerDate(),h=v.nextDate();d.departureAirport=d.innerCapture(regExpFormatted(/\1\s(.+)/,""+h),1).trim();var T=h.nextDate();d.arrivalAirport=d.innerCapture(regExpFormatted(/\1\s(.+)/,""+T),1).trim(),d.departureDateTime=combineDateAndTime(v,h),d.arrivalDateTime=combineDateAndTime(v,T),ASSERT(d.flightNumber,d.arrivalAirport,d.departureAirport,d.departureDateTime,d.arrivalDateTime)&&o.push(d)}for(var u=0;u<o.length;u++){var d=o[u];p.push({"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:"Norwegian",airlineCode:d.airlineCode,flightNumber:d.flightNumber,departureAirportFuzzy:d.departureAirport,departureTime:d.departureDateTime,arrivalAirportFuzzy:d.arrivalAirport,arrivalTime:d.arrivalDateTime},checkinUrl:"",reservationId:i,reservationStatus:"http://schema.org/ReservationConfirmed"})}if(p.length)return p}}).call();