new ReverseTemplateList([new ReverseTemplate("cs.bestwestern.com-de",function(e){return/Reservierungsbest\xe4tigung|Reservierungsinformationen/.test(e.subject)},function(e){var t={};return t.emailTitelConfirmation=/Reservierungsbest\xe4tigung|Reservierungsinformationen/,t.reservationId=/Reservierungs\-Best\xe4tigungsnummer\: (.+)/,t.guestName=/Zusammenfassung der Reservierung - (.+)/,t.checkInDate="Anreise:",t.checkOutDate="Abreise:",t.price="Gesamtaufenthalt:",t.emailTitelCancelConfirmation=/Stornierung/,loadHelper("cs.bestwestern.com-skeleton.js")(e,"en_US",t)},"0/1/2/3/4/5/6/90/122/900","SGff2b5b6e"),new ReverseTemplate("cs.bestwestern.com-en",function(e){return/^Best Western - (?:Canceled )?Reservation (?:Notification|Confirmation)$/.test(e.subject)},function(e){if(int(e.epoch)<1388534400)return CONTINUE;if(/^Best Western - (?:Canceled )?Reservation (?:Notification|Confirmation)$/.test(e.subject)){var t=Scanner.fromMessage(e);t.setLocale("en_US");var n,r,a,s,i,o,c,u,m,l,d,g;/^Best Western - Canceled/.test(e.subject)&&(g="Cancelled"),i=t.getSpan().innerCapture(/(?:Confirmation|Cancellation) [Nn]umber:\s+(\d+)/,1),r=t.getSpan().nextText("Total Stay:").nextAnyTag("td").innerCapture(/($<price>[\d,.]+)\s+($<currency>[A-Z]{3})/),a=r?r.$price:null,s=r?r.$currency:null,n=t.getSpan().innerCapture(/Reservation Summary - (.+)\n/,1),o=t.getSpan().nextText("Check-in:").nextDate(),c=t.getSpan().nextText("Check-out:").nextDate();var p=t.getSpan().nextText("BEST WESTERN").parentAnyTag("td").tagContents().innerCapture(/($<name>BEST WESTERN .+)\n($<address>[^]+)\nPhone: ($<phone>.*)/);if(p&&(m=p.$name,d=p.$address,l=p.$phone),ASSERT(o,c,d))return[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:n},totalPrice:a,priceCurrency:s,checkinTime:o,checkoutTime:c,reservationStatus:"http://schema.org/Reservation"+(g||"Confirmed"),reservationId:i,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:m,url:u,telephone:l,address:d}}]}},"0/1/2/3/4/5/6/90/122/901","SG62878a98"),new ReverseTemplate("cs.bestwestern.com-fr",function(e){return/Best Western \- Confirmation de la r\xe9servation/.test(e.subject)||/Best Western \- Avis d'annulation de la r\xe9servation/.test(e.subject)},function(e){var t={};return t.emailTitelConfirmation=/Best Western \- Confirmation de la r\xe9servation/,t.reservationId=/(?:Num\xe9ro de confirmation de la r\xe9servation\:|Num\xe9ro d'annulation \:) (.+)/,t.guestName=/Synth\xe8se de la r\xe9servation \- (.+)/,t.checkInDate="Arriv\xe9e :",t.checkOutDate="D\xe9part :",t.price="Total s\xe9jour :",t.emailTitelCancelConfirmation=/Best Western \- Avis d'annulation de la r\xe9servation/,loadHelper("cs.bestwestern.com-skeleton.js")(e,"en_US",t)},"0/1/2/3/4/5/6/90/122/902","SG86cdeb30")]);