(function(){ if(window.__v2qs2)return;window.__v2qs2=1; function on(){try{return localStorage.getItem('v2qs')==='1';}catch(e){return false;}} function full(o){if(!o||!o.tb)return false;var n=0;String(o.tb).split(';').forEach(function(r){if(r&&r.split(':').length>=4)n++;});return n>=2;} function best(){ try{ var lim='';try{lim=(typeof dDate!=='undefined'&&dDate)?dDate:((typeof rDate!=='undefined'&&rDate)?rDate:'');}catch(e){} var b=null,bd=''; (allDaily||[]).forEach(function(r){ if(!r||!r.date)return;if(lim&&r.date>lim)return; (r.items||[]).forEach(function(it){var o=it&&it.t&&window.v2Dec?v2Dec(it.t):null;if(o&&o._m==='v2q'&&full(o)&&r.date>=bd){b=it.t;bd=r.date;}}); }); return b?{t:b,d:bd}:null; }catch(e){return null;} } var gi=Storage.prototype.getItem; Storage.prototype.getItem=function(k){ try{ if(this===window.localStorage&&(k==='nds_v2q_last'||k==='nds_v2q_last_d')&&window.myDeptType==='vung2'&&on()){ var b=best();if(b)return k==='nds_v2q_last'?b.t:b.d; } }catch(e){} return gi.apply(this,arguments); }; })();