// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,n,r){var t,a,i=loadHelper("clearifcontainstags.js"),l=loadHelper("stripurl.js"),s=e.replace(/\r?\n/gm," ").replace(/\s+/g," ");for(a=0;a<n.nameInSubject.length&&(!t||!t.exists());a++)t=r.getDetachedSpan(s).innerCapture(n.nameInSubject[a],1);if(!t.exists())for(a=0;a<n.nameInBody.length&&(!t||!t.exists());a++)t=r.getSpan().innerCapture(n.nameInBody[a],1);return t=i(r,t),t=l(t),t.trim()}}).call();