YUI.add("autocomplete-filters-accentfold",function(t,r){var n=t.Text.AccentFold,o=t.Text.WordBreak,f=t.Array,u=t.Object;t.mix(t.namespace("AutoCompleteFilters"),{charMatchFold:function(t,r){if(!t)return r;var e=f.unique(n.fold(t).split(""));return f.filter(r,function(t){var r=n.fold(t.text);return f.every(e,function(t){return-1!==r.indexOf(t)})})},phraseMatchFold:function(r,t){return r?(r=n.fold(r),f.filter(t,function(t){return-1!==n.fold(t.text).indexOf(r)})):t},startsWithFold:function(r,t){return r?(r=n.fold(r),f.filter(t,function(t){return 0===n.fold(t.text).indexOf(r)})):t},subWordMatchFold:function(t,r){if(!t)return r;var e=o.getUniqueWords(n.fold(t));return f.filter(r,function(t){var r=n.fold(t.text);return f.every(e,function(t){return-1!==r.indexOf(t)})})},wordMatchFold:function(t,r){if(!t)return r;var e=o.getUniqueWords(n.fold(t));return f.filter(r,function(t){var r=f.hash(o.getUniqueWords(n.fold(t.text)));return f.every(e,function(t){return u.owns(r,t)})})}})},"patched-v3.18.4",{requires:["array-extras","text-accentfold","text-wordbreak"]});