function Gf(){this.Init()}m("AdfRestRequestQueueManager",Gf);r.v(Gf);Gf.ga=function(){};m("AdfRestRequestQueueManager.InitClass",Gf.ga);Gf.prototype.Init=function(){Gf.h.Init.call(this);this.N6=[];this.DG=[]};r.a("AdfRestRequestQueueManager.prototype.Init",{Init:Gf.prototype.Init});Gf.eSa=function(a){var b=[];a=a.options;for(var d=0,e=a.length;d<e;d++)b.push(a[d].km);return b};m("AdfRestRequestQueueManager.getClientIdList",Gf.eSa);Gf.bUa=function(a){a.E5=!0};
m("AdfRestRequestQueueManager.markDead",Gf.bUa);Gf.prototype.first=function(){var a=Gf.XNa(this.DG);a||(a=Gf.XNa(this.N6));return a};r.a("AdfRestRequestQueueManager.prototype.first",{first:Gf.prototype.first});Gf.prototype.Ysa=function(){Gf.oja(this.DG);return 0!=this.DG.length};r.a("AdfRestRequestQueueManager.prototype.hasOutstandingPriorityRequests",{Ysa:Gf.prototype.Ysa});Gf.prototype.shift=function(){var a=Gf.HPa(this.DG);a||(a=Gf.HPa(this.N6));return a};
r.a("AdfRestRequestQueueManager.prototype.shift",{shift:Gf.prototype.shift});Gf.prototype.eua=function(a){this.Jlb=a};r.a("AdfRestRequestQueueManager.prototype.registerRequestQueuedListener",{eua:Gf.prototype.eua});Gf.prototype.push=function(a,b){u.Ya(a);var d=b[$a.aj],e;e=b[$a.qt];var f=Gf.NJa(this.DG,a,e);f||(f=Gf.NJa(this.N6,a,e));(e=f)?(e.options.push(b),d&&!e[$a.aj]&&(e.E5=!0,d=Gf.Vab(e),d.E5=!1,this.DG.push(d),d[$a.aj]=!0)):(e={},e.Au=a,e.options=[b],e[$a.aj]=d,(d?this.DG:this.N6).push(e),this.Jlb())};
r.a("AdfRestRequestQueueManager.prototype.push",{push:Gf.prototype.push});Gf.Vab=function(a){for(var b={},d=Object.keys(a),e=0;e<d.length;e++)b[d[e]]=a[d[e]];return b};Gf.oja=function(a){for(;0!=a.length&&a[0].E5;)a.shift()};Gf.NJa=function(a,b,d){for(var e=0;e<a.length;e++){var f=a[e];if(f.Au===b&&!f.E5){var g=f.options[0][$a.qt];if(g.method==d.method&&g.body==d.body)return f}}};Gf.XNa=function(a){Gf.oja(a);return a[0]};Gf.HPa=function(a){Gf.oja(a);return a.shift()};