function ed(){this.Init()}v("AdfNavigationHistoryAgent",ed);v("AdfNavigationHistoryAgent",ed);z.l(ed);ed.da=function(){this.Vqa="@";this.mL="!";v("AdfNavigationHistoryAgent.STATE_MARKER",ed.mL);this.COa=this.mL.length};v("AdfNavigationHistoryAgent.InitClass",ed.da);ed.prototype.Init=function(){ed.f.Init.call(this);this.IYa=0};z.a("AdfNavigationHistoryAgent.prototype.Init",{Init:ed.prototype.Init});ed.O=function(){ed.Qi==k&&(ed.Qi=new dd);return ed.Qi};ed.getInstance=ed.O;
v("AdfNavigationHistoryAgent.getInstance",ed.O);ed.prototype.WC=function(a,b){this.OA=this.jua=a;this.qr=l;var d=k,e=this.Nc().location.search;e&&0<e.length&&(d=e);this.Mo=this.O9=d;b&&(this.Mo=b)};ed.prototype.initializeNavigation=ed.prototype.WC;z.a("AdfNavigationHistoryAgent.prototype.initializeNavigation",{WC:ed.prototype.WC});ed.prototype.bv=function(){return l==this.qr};ed.prototype.isNavigationInitialized=ed.prototype.bv;z.a("AdfNavigationHistoryAgent.prototype.isNavigationInitialized",{bv:ed.prototype.bv});
ed.prototype.gS=da("fO");z.a("AdfNavigationHistoryAgent.prototype.setFacesPath",{gS:ed.prototype.gS});ed.prototype.z1=function(a,b,d){this.OA=a;b=""==b?n:b;b==n&&this.O9!=n&&(b="?");this.Mo=b;this.Tm=n;if(d!=k&&d!=n&&d==this.rca){this.P1(b,l);this.rca=this.sca=this.IY=k;var e=this.Hi();e.anchor!=n&&(this.Tm=e.anchor,this.Rz(e,this.Tm))}d||this.iq(a,b)};ed.prototype.setCurrentPage=ed.prototype.z1;z.a("AdfNavigationHistoryAgent.prototype.setCurrentPage",{z1:ed.prototype.z1});
ed.prototype.P1=function(a,b){var d=this.Hi(),e=d.id;d.Qp!=a&&(this.Mo=a,this.Eq(d.fD,e,a,d.anchor,b))};ed.prototype.setQueryString=ed.prototype.P1;z.a("AdfNavigationHistoryAgent.prototype.setQueryString",{P1:ed.prototype.P1});ed.prototype.m2=function(a){this.ZF=a;a=this.Hi();a.e2?this.Nc().setTimeout(ed.DTa,100):this.Zd(a)};ed.prototype.startTrackingURI=ed.prototype.m2;z.a("AdfNavigationHistoryAgent.prototype.startTrackingURI",{m2:ed.prototype.m2});ed.prototype.bq=function(a){this.LW=a;hd(this)};
z.a("AdfNavigationHistoryAgent.prototype.setPageId",{bq:ed.prototype.bq});ed.prototype.Bb=ca();ed.prototype.dispose=ed.prototype.Bb;z.a("AdfNavigationHistoryAgent.prototype.dispose",{Bb:ed.prototype.Bb});ed.prototype.v3=r("fO");z.a("AdfNavigationHistoryAgent.prototype.GetFacesPath",{v3:ed.prototype.v3});ed.prototype.JT=function(a,b){var d=this.Hi();return d.id!=a||d.Qp!=b?(this.nt(n,a,b,n,p),l):p};z.a("AdfNavigationHistoryAgent.prototype.SetViewIdOnURI",{JT:ed.prototype.JT});
ed.prototype.iq=function(a,b){return this.JT(a,b)};z.a("AdfNavigationHistoryAgent.prototype.AddHistoryEntry",{iq:ed.prototype.iq});
ed.prototype.so=function(a,b){var d=n,e=p,f=this.Nc().location.href,g=f.indexOf("#");0<=g&&f.indexOf(ed.mL,g+1)!=g+1&&(this.Tm=decodeURIComponent(f.substring(g+1)),this.Ewa&&this.QE(this.LW,this.OA,this.Mo,this.Tm),e=l);if(!e){e=this.Hi();if(this.bv()&&(a==n&&(a=e.id,b=e.Qp),f=("?"==b||b==n)&&("?"==this.Mo||this.Mo==n),a!=this.OA||!f&&b!=this.Mo))d=a,f=b,g=e.fD,!this.ZF||d==this.IY&&f==this.sca?d=n:(this.IY=d,this.sca=f,this.rca=this.IYa++,this.ZF.oDa(d,f,this.rca,g),d={id:this.IY,Qp:this.sca});d==
n&&e.anchor!=this.Tm&&(this.Tm=e.anchor,this.Rz(e,this.Tm))}return d};z.a("AdfNavigationHistoryAgent.prototype.ValidateCurrentView",{so:ed.prototype.so});ed.prototype.Zd=function(a){this.K1a=l;a==n&&(a=this.Hi());this.Tm=a.anchor;hd(this);a.e2||(this.Tm=k);this.so()};z.a("AdfNavigationHistoryAgent.prototype.StartTrackingUriImpl",{Zd:ed.prototype.Zd});
ed.prototype.Hi=function(){var a=this.Nc(),b={};b.Qp=this.O9;b.id=this.jua;var a=a.location.href,d=a.indexOf("#");if(0<=d){var e=a.indexOf(ed.mL,d+1);e==d+1?(a=a.substring(e+ed.COa),0<a.length&&(a=decodeURIComponent(a),a=a.split(ed.Vqa),d=a.length,1<=d&&""!==a[0]&&(b.fD=a[0]),2<=d&&""!==a[1]&&(b.id=a[1]),3<=d&&""!==a[2]&&(b.Qp=a[2]),4<=d&&""!==a[3]&&(b.anchor=a[3]))):(b.anchor=decodeURIComponent(a.substring(d+1)),b.e2=l)}return b};
z.a("AdfNavigationHistoryAgent.prototype.GetViewInfoFromBrowserURI",{Hi:ed.prototype.Hi});ed.prototype.Nc=function(){return F.c.R()};z.a("AdfNavigationHistoryAgent.prototype.GetDomWindow",{Nc:ed.prototype.Nc});ed.prototype.Us=function(){return F.c.w()};z.a("AdfNavigationHistoryAgent.prototype.GetDomDocument",{Us:ed.prototype.Us});ed.prototype.Eq=function(a,b,d,e,f){this.nt(a,b,d,e,f)};z.a("AdfNavigationHistoryAgent.prototype.SetQueryStringImpl",{Eq:ed.prototype.Eq});ed.prototype.ala=r("OA");
z.a("AdfNavigationHistoryAgent.prototype.GetCurrentViewId",{ala:ed.prototype.ala});ed.prototype.$ka=r("Mo");z.a("AdfNavigationHistoryAgent.prototype.GetCurrentQueryParams",{$ka:ed.prototype.$ka});ed.prototype.$z=t(l);z.a("AdfNavigationHistoryAgent.prototype.UsesHashForTrackingNavigation",{$z:ed.prototype.$z});ed.prototype.Rz=function(a,b){var d="#";b!=n&&(d+=encodeURIComponent(b));jd(this,d);a.e2||this.nt(this.LW,this.OA,this.Mo,this.Tm,l)};
z.a("AdfNavigationHistoryAgent.prototype.NavigateToSavedAnchorImpl",{Rz:ed.prototype.Rz});ed.prototype.nt=function(a,b,d,e,f){this.Ewa=l;this.$z()&&(b==this.jua&&(b=k),d==this.O9&&(d=k));a=[a,b,d,e];b="";d=p;for(e=a.length-1;0<=e;e--)a[e]!=n&&(b=a[e]+b,d=l),d&&0!=e&&(b=ed.Vqa+b);b="#"+ed.mL+encodeURIComponent(b);f?jd(this,b):this.Nc().location.hash=b};z.a("AdfNavigationHistoryAgent.prototype.UpdateHash",{nt:ed.prototype.nt});
function jd(a,b){var d=a.Nc().location.href+"",e=d.indexOf("#"),d=-1==e?d:d.substring(0,e);a.Nc().location.replace(d+b)}ed.prototype.bF=function(a,b,d,e){this.nt(a,b,d,e,l)};z.a("AdfNavigationHistoryAgent.prototype.UpdateInitialValues",{bF:ed.prototype.bF});ed.prototype.QE=function(a,b,d,e){this.nt(a,b,d,e,l)};z.a("AdfNavigationHistoryAgent.prototype.RestoreValuesAfterAnchorNavigation",{QE:ed.prototype.QE});
function hd(a){if(a.K1a){var b=a.bv()&&a.$z()&&!a.Ewa;b||(b=a.Hi(),b=a.Mo!=b.Qp||a.LW!=b.fD||a.Tm!=b.anchor||a.OA!=b.id);b&&a.bF(a.LW,a.OA,a.Mo,a.Tm)}}ed.DTa=function(){ed.O().Zd(n)};ed.prototype.tha=function(){this.so();return this.IY!=n};z.a("AdfNavigationHistoryAgent.prototype.isWaitingForServer",{tha:ed.prototype.tha});