function lg(){}m("AdfInputSearchScoreUtils",lg);r.v(lg);lg.ga=function(){this.zCa=250;this.k3a=20;this.Aga=1;this.zga=2;this.yga=3;this.l2={};this.l2[this.Aga]=20;this.l2[this.zga]=40;this.l2[this.yga]=20;this.u1={};this.u1[this.Aga]=4;this.u1[this.zga]=4;this.u1[this.yga]=8};m("AdfInputSearchScoreUtils.InitClass",lg.ga);lg.xSa=function(a){for(var b,d=Number.MAX_SAFE_INTEGER,e=Object.keys(a),f=0,g=e.length;f<g;f++){var h=e[f],l=a[h].value;l<d&&(d=l,b=h)}return b};
m("AdfInputSearchScoreUtils.getMinScoredSuggestionKey",lg.xSa);lg.uVa=function(a,b){return a.sort(function(a,e){return b[e.key].value-b[a.key].value})};m("AdfInputSearchScoreUtils.sortPerScore",lg.uVa);lg.WVa=function(a,b,d){a=lg.oob(a,b);b=b.T$;lg.Nbb(b,a);var e=b[d];e?(lg.qhb(e,a),e.time=Date.now()):(e={},e.time=Date.now(),e.value=lg.k3a,b[d]=e)};m("AdfInputSearchScoreUtils.updateScores",lg.WVa);
lg.Nbb=function(a,b){for(var d=Object.keys(a),e=0,f=d.length;e<f;e++){var g=a[d[e]],h=lg.MKa(g.time,b);g.value-=lg.u1[h]}};lg.qhb=function(a,b){var d=lg.MKa(a.time,b);0>a.value&&(a.value=0);a.value+=lg.l2[d];a.value>lg.zCa&&(a.value=lg.zCa)};lg.MKa=function(a,b){if(a>=b.current)return lg.Aga;if(a>=b.wrb)return lg.zga;lg.yga};
lg.oob=function(a,b){var d=b.HUa?b.HUa:Date.now(),e=sessionStorage.getItem(a);return e?JSON.parse(e):(e={},e.current=Date.now(),e.wrb=d,sessionStorage.setItem(a,JSON.stringify(e)),b.HUa=e.current,e)};