(function(a){wpWordCount={settingsWestern:{strip:/<[a-zA-Z\/][^<>]*>/g,clean:/[0-9.(),;:!?%#$¿'"_+=\\/-]+/g,count:/\S\s+/g},settingsAsian:{clean:/[，！？；：（）【】［］。「」﹁﹂“”、·《》…—～〈〉『』〔〕〖〗〘〙〚〛〟]+/g,count:/[^\u0000-\u007F]/g},block:0,wc:function(d){var e=this,c=a(".word-count"),b=0;if(e.block){return}e.block=1;setTimeout(function(){if(d){d=d.replace(e.settingsWestern.strip," ").replace(/&nbsp;|&#160;/gi," ");d=d.replace(e.settingsAsian.clean,"");d=d.replace(e.settingsAsian.count,function(){b++;return""});d=d.replace(e.settingsWestern.clean,"");d.replace(e.settingsWestern.count,function(){b++})}c.html(b.toString());setTimeout(function(){e.block=0},2000)},1)}};a(document).bind("wpcountwords",function(c,b){wpWordCount.wc(b)})}(jQuery));
