function Ef(){this.Init()}m("AdfRestRequestQueueManager",Ef);r.v(Ef);Ef.ga=function(){};m("AdfRestRequestQueueManager.InitClass",Ef.ga);Ef.prototype.Init=function(){Ef.h.Init.call(this);this.N6=[];this.DG=[]};r.a("AdfRestRequestQueueManager.prototype.Init",{Init:Ef.prototype.Init});Ef.$Ra=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",Ef.$Ra);Ef.YTa=function(a){a.E5=!0};
m("AdfRestRequestQueueManager.markDead",Ef.YTa);Ef.prototype.first=function(){var a=Ef.SNa(this.DG);a||(a=Ef.SNa(this.N6));return a};r.a("AdfRestRequestQueueManager.prototype.first",{first:Ef.prototype.first});Ef.prototype.Vsa=function(){Ef.lja(this.DG);return 0!=this.DG.length};r.a("AdfRestRequestQueueManager.prototype.hasOutstandingPriorityRequests",{Vsa:Ef.prototype.Vsa});Ef.prototype.shift=function(){var a=Ef.CPa(this.DG);a||(a=Ef.CPa(this.N6));return a};
r.a("AdfRestRequestQueueManager.prototype.shift",{shift:Ef.prototype.shift});Ef.prototype.aua=function(a){this.Ilb=a};r.a("AdfRestRequestQueueManager.prototype.registerRequestQueuedListener",{aua:Ef.prototype.aua});Ef.prototype.push=function(a,b){u.Ya(a);var d=b[$a.Zi],e;e=b[$a.pt];var f=Ef.IJa(this.DG,a,e);f||(f=Ef.IJa(this.N6,a,e));(e=f)?(e.options.push(b),d&&!e[$a.Zi]&&(e.E5=!0,d=Ef.Sab(e),d.E5=!1,this.DG.push(d),d[$a.Zi]=!0)):(e={},e.zu=a,e.options=[b],e[$a.Zi]=d,(d?this.DG:this.N6).push(e),this.Ilb())};
r.a("AdfRestRequestQueueManager.prototype.push",{push:Ef.prototype.push});Ef.Sab=function(a){for(var b={},d=Object.keys(a),e=0;e<d.length;e++)b[d[e]]=a[d[e]];return b};Ef.lja=function(a){for(;0!=a.length&&a[0].E5;)a.shift()};Ef.IJa=function(a,b,d){for(var e=0;e<a.length;e++){var f=a[e];if(f.zu===b&&!f.E5){var g=f.options[0][$a.pt];if(g.method==d.method&&g.body==d.body)return f}}};Ef.SNa=function(a){Ef.lja(a);return a[0]};Ef.CPa=function(a){Ef.lja(a);return a.shift()};