/*
YUI 3.5.1 (build 22)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("highlight-base",function(h){var g=h.Array,e=h.Escape,d=h.Text.WordBreak,a=h.Lang.isArray,f={},c="(&[^;\\s]*)?",b={_REGEX:c+"(%needles)",_REPLACER:function(i,k,j){return k&&!(/\s/).test(j)?i:b._TEMPLATE.replace(/\{s\}/g,j);},_START_REGEX:"^"+c+"(%needles)",_TEMPLATE:'{s}',all:function(r,j,s){var p=[],o,m,n,l,q,k;if(!s){s=f;}o=s.escapeHTML!==false;q=s.startsWith?b._START_REGEX:b._REGEX;k=s.replacer||b._REPLACER;j=a(j)?j:[j];for(m=0,n=j.length;m