var pingBizxUrl=function(g,b,f){if(g){var e=function(){var h=new Date();return h.getTime()};var d=e();var c=function(){var h=window,i=window&&window.opener;if(i&&i.document){h=i
}try{while(h&&h.name!="iframelearning"&&h.parent!=h){h=h.parent}}catch(j){console&&console.log(j)}return h};var a=function(){try{var h=c();var j=h&&h.document&&h.document.getElementById("pingBizxImage");
if(j){j.src=BIZX_PING_PARAMS.ServerPingURL+"&type=img&t="+e()}if(!f){if(typeof h!=="undefined"&&h!==null&&h.SFSessionTimeout){h.SFSessionTimeout.extendSession&&h.SFSessionTimeout.extendSession()
}if(typeof h!=="undefined"&&h!==null&&h.LMSSessionTimeoutManager){h.LMSSessionTimeoutManager.extendSession&&h.LMSSessionTimeoutManager.extendSession()}}}catch(i){console&&console.log(i)
}};return function(h){if(h===true){a();return}if(d!=null&&(e()-d)>b){d=e();a()}}}}(BIZX_PING_PARAMS.intergrationMode,BIZX_PING_PARAMS.ThresholdTime,BIZX_PING_PARAMS.isLoadLmsInBizXiFrame);
(function(a){pingBizxUrl&&pingBizxUrl(true);if(!a&&!CSRF_PARAMS["isApplied-injectToXhr"]){CSRF_PARAMS["isApplied-injectToXhr"]=true;XMLHttpRequest.prototype._openOriginal=XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open=function(){this.lmsURL=arguments[1]||"";this._openOriginal.apply(this,arguments)};XMLHttpRequest.prototype._send=XMLHttpRequest.prototype.send;
XMLHttpRequest.prototype.send=function(c){if(this.onsend!=null){this.onsend.apply(this,arguments)}var b=/\/session_ping.jsp$|\/admin\/logout.do$/i;if(!b.test(this.lmsURL)){pingBizxUrl&&pingBizxUrl()
}this._send.apply(this,arguments)}}})(BIZX_PING_PARAMS.isCsrfGuardEnabled);