(function(){return function(e,r,t){var a=Scanner.fromMessage(e);a.setLocale(r);var i,n,p,l,o,g,m,d=[],u=[];p=a.getSpan().innerCapture(regExpFormatted(/\1(.*?)(\n|\[)/,t.reference),1).trim(),l=a.getSpan().innerCapture(regExpFormatted(/\1(.*)/,t.total),1),o=l.innerCapture(/([\d,\.]+)/,1),g=l.innerCapture(/([A-Z]{3})/,1);var s,h,v=1===a.getSpan().allInnerTags("table4").length;a.getSpan().nextText(t.header).exists()?(s=2,h="td3",n=a.getSpan().next(t.info).parentTag("table3").allInnerTags("tr3")):(s=0,h="td4",n=a.getSpan().next(t.info).nextTag("table4").allInnerTags("tr4"));for(var T=a.getSpan().next(t.passenger).nextTag(h).tagContents().split("\n"),c=s;c<n.length-1;c++){var S,f=n[c].allInnerTags(h),C={};!v&&f.length<4||(leginfo=f[0].tagContents().innerCapture(/([A-Z0-9]{2})(\d{3,4}) -/),C.airlineCode=leginfo[1],C.flightNumber=leginfo[2],m=f[2].tagContents().trim().split(/\n/)[0],S=f[0].innerDate(),C.departureTime=f[1].innerDate(),C.arrivalTime=C.departureTime.nextDate(),C.departureAirport=a.getSpan().withInterval(C.departureTime.getEnd(),C.departureTime.next("\n").getStart()).trim(),C.arrivalAirport=a.getSpan().withInterval(C.arrivalTime.getEnd(),C.arrivalTime.next("\n").getStart()).trim(),C.departureTime=a.getDetachedSpan(S+" "+C.departureTime),C.arrivalTime=a.getDetachedSpan(S+" "+C.arrivalTime),ASSERT(C.departureTime,C.arrivalTime,C.arrivalAirport,C.departureAirport,C.flightNumber,C.airlineCode)&&d.push(C))}for(var A=0;A<d.length;A++)for(var x=0;x<T.length;x++){var y=d[A],b={"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:"Norwegian",airlineCode:y.airlineCode,flightNumber:y.flightNumber,departureAirportFuzzy:y.departureAirport,departureAirportCode:y.departureAirportCode,departureTime:y.departureTime,arrivalAirportFuzzy:y.arrivalAirport,arrivalAirportCode:y.arrivalAirportCode,arrivalTime:y.arrivalTime},underName:{"@type":"http://schema.org/Person",name:T[x]},checkinUrl:"",reservationId:p,reservationStatus:"http://schema.org/ReservationConfirmed",totalPrice:o,priceCurrency:g,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:i,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:"",seatingType:m}}};u.push(b)}if(u.length)return u}}).call();