function $_global_core(){if("undefined"==typeof g_all_modules)g_all_modules={};g_all_modules["core.js"]={version:{rmj:16,rmm:0,rup:20711,rpr:12004}};typeof spWriteProfilerMark=="function"&&spWriteProfilerMark("perfMarkBegin_core.js");SPAnimation={};SPAnimation.g_Curves=new Array(7);SPAnimation.g_Curves[0]=new SPCurve(0,0,0,0,0,0);SPAnimation.g_Curves[1]=new SPCurve(1,1,0,0,0,0);SPAnimation.g_Curves[2]=new SPCurve(2,2,0,0,0,0);SPAnimation.g_Curves[3]=new SPCurve(3,3,.1,.9,.2,1);SPAnimation.g_Curves[4]=new SPCurve(4,3,.42,0,1,1);SPAnimation.g_Curves[5]=new SPCurve(5,3,0,0,.58,1);SPAnimation.g_Curves[6]=new SPCurve(6,3,.42,0,.58,1);SPKeyFrame.prototype={type:0,curveID:0,startTime:0,endTime:0,startValue:0,endValue:0,relativeTo:0,operationType:0};SPAnimation.Attribute={PositionX:1,PositionY:2,Height:3,Width:4,Opacity:5};SPAnimation.ID={Basic_Show:0,Basic_SlowShow:1,Basic_Fade:2,Basic_Move:3,Basic_Size:4,Content_SlideInFadeInRight:5,Content_SlideInFadeInRightInc:6,Content_SlideOutFadeOutRight:7,Content_SlideInFadeInLeft:8,Content_SlideInFadeInLeftInc:9,SmallObject_SlideInFadeInTop:10,SmallObject_SlideInFadeInLeft:11,Test_Instant:12,Test_Hold:13,Basic_Opacity:14,Basic_QuickShow:15,Basic_QuickFade:16,Content_SlideInFadeInGeneric:17,Basic_StrikeThrough:18,SmallObject_SlideInFadeInBottom:19,SmallObject_SlideOutFadeOutBottom:20,Basic_QuickSize:21};SPAnimation.g_Animations=new Array(22);SPAnimation.g_Animations[SPAnimation.ID.Basic_Show]=new Animation(SPAnimation.ID.Basic_Show,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,367,0,1,1,0)]);SPAnimation.g_Animations[SPAnimation.ID.Basic_SlowShow]=new Animation(SPAnimation.ID.Basic_SlowShow,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,700,0,1,1,0)]);SPAnimation.g_Animations[SPAnimation.ID.Basic_QuickShow]=new Animation(SPAnimation.ID.Basic_QuickShow,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,167,0,1,1,0)]);SPAnimation.g_Animations[SPAnimation.ID.Basic_Fade]=new Animation(SPAnimation.ID.Basic_Fade,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,367,1,0,1,0)]);SPAnimation.g_Animations[SPAnimation.ID.Basic_QuickFade]=new Animation(SPAnimation.ID.Basic_QuickFade,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,167,1,0,1,0)]);SPAnimation.g_Animations[SPAnimation.ID.Basic_Move]=new Animation(SPAnimation.ID.Basic_Move,[new SPKeyFrame(SPAnimation.Attribute.PositionX,3,0,367,null,0,1,1),new SPKeyFrame(SPAnimation.Attribute.PositionY,3,0,367,null,0,1,1)]);SPAnimation.g_Animations[SPAnimation.ID.Basic_Size]=new Animation(SPAnimation.ID.Basic_Size,[new SPKeyFrame(SPAnimation.Attribute.Width,3,0,367,null,0,1,1),new SPKeyFrame(SPAnimation.Attribute.Height,3,0,367,null,0,1,1)]);SPAnimation.g_Animations[SPAnimation.ID.Basic_QuickSize]=new Animation(SPAnimation.ID.Basic_QuickSize,[new SPKeyFrame(SPAnimation.Attribute.Width,3,0,167,null,0,1,1),new SPKeyFrame(SPAnimation.Attribute.Height,3,0,167,null,0,1,1)]);SPAnimation.g_Animations[SPAnimation.ID.Content_SlideInFadeInRight]=new Animation(SPAnimation.ID.Content_SlideInFadeInRight,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,367,0,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionX,0,0,1,null,-100,0,1),new SPKeyFrame(SPAnimation.Attribute.PositionX,3,1,367,null,0,0,1)]);SPAnimation.g_Animations[SPAnimation.ID.Content_SlideInFadeInRightInc]=new Animation(SPAnimation.ID.Content_SlideInFadeInRightInc,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,367,0,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionX,3,0,367,null,100,0,1)]);SPAnimation.g_Animations[SPAnimation.ID.Content_SlideOutFadeOutRight]=new Animation(SPAnimation.ID.Content_SlideOutFadeOutRight,[new SPKeyFrame(SPAnimation.Attribute.Opacity,0,0,1,1,0,1,0)]);SPAnimation.g_Animations[SPAnimation.ID.Content_SlideInFadeInLeft]=new Animation(SPAnimation.ID.Content_SlideInFadeInLeft,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,367,0,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionX,0,0,1,null,100,0,1),new SPKeyFrame(SPAnimation.Attribute.PositionX,3,1,367,null,0,0,1)]);SPAnimation.g_Animations[SPAnimation.ID.Content_SlideInFadeInLeftInc]=new Animation(SPAnimation.ID.Content_SlideInFadeInLeftInc,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,367,0,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionX,3,0,367,null,-100,0,1)]);SPAnimation.g_Animations[SPAnimation.ID.SmallObject_SlideInFadeInTop]=new Animation(SPAnimation.ID.SmallObject_SlideInFadeInTop,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,167,0,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionY,0,0,1,null,-40,0,1),new SPKeyFrame(SPAnimation.Attribute.PositionY,3,1,167,null,0,0,1)]);SPAnimation.g_Animations[SPAnimation.ID.SmallObject_SlideInFadeInLeft]=new Animation(SPAnimation.ID.SmallObject_SlideInFadeInLeft,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,167,0,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionX,0,0,1,null,40,0,1),new SPKeyFrame(SPAnimation.Attribute.PositionX,3,1,167,null,0,0,1)]);SPAnimation.g_Animations[SPAnimation.ID.Test_Instant]=new Animation(SPAnimation.ID.Test_Instant,[new SPKeyFrame(SPAnimation.Attribute.PositionX,0,0,367,null,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionY,0,0,367,null,1,1,0)]);SPAnimation.g_Animations[SPAnimation.ID.Test_Hold]=new Animation(SPAnimation.ID.Test_Hold,[new SPKeyFrame(SPAnimation.Attribute.PositionX,1,0,367,null,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionY,1,0,367,null,1,1,0)]);SPAnimation.g_Animations[SPAnimation.ID.Basic_Opacity]=new Animation(SPAnimation.ID.Basic_Opacity,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,367,null,1,1,0)]);SPAnimation.g_Animations[SPAnimation.ID.Content_SlideInFadeInGeneric]=new Animation(SPAnimation.ID.Content_SlideInFadeInGeneric,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,367,0,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionX,3,0,367,null,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionY,3,0,367,null,1,1,0)]);SPAnimation.g_Animations[SPAnimation.ID.Basic_StrikeThrough]=new Animation(SPAnimation.ID.Basic_StrikeThrough,[new SPKeyFrame(SPAnimation.Attribute.Width,3,0,167,null,0,1,1)]);SPAnimation.g_Animations[SPAnimation.ID.SmallObject_SlideInFadeInBottom]=new Animation(SPAnimation.ID.SmallObject_SlideInFadeInBottom,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,167,0,1,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionY,0,0,1,null,40,0,1),new SPKeyFrame(SPAnimation.Attribute.PositionY,3,1,167,null,0,0,1)]);SPAnimation.g_Animations[SPAnimation.ID.SmallObject_SlideOutFadeOutBottom]=new Animation(SPAnimation.ID.SmallObject_SlideOutFadeOutBottom,[new SPKeyFrame(SPAnimation.Attribute.Opacity,2,0,167,1,0,1,0),new SPKeyFrame(SPAnimation.Attribute.PositionY,0,0,1,null,0,0,1),new SPKeyFrame(SPAnimation.Attribute.PositionY,3,1,167,null,40,0,1)]);SPAnimation.g_AnimationEngine=function(){return null}();SPAnimation.Logging=window.location.search.indexOf("AnimationLogging=1")!=-1;SPAnimation.g_AnimationWSA=null;SPAnimation.DATAID_SPANIMATION=9423;SPAnimation.g_AnimationThrottleCutoffFPS=11;SPAnimation.g_AnimationThrottleNumInstance=3;!IsNullOrUndefined(window.sessionStorage)&&IsNullOrUndefined(window.sessionStorage.SPAnimationEnabled)&&TrySetProperty(window.sessionStorage,"SPAnimationEnabled",1);!IsNullOrUndefined(window.localStorage)&&IsNullOrUndefined(window.localStorage.SPAnimationEnabled)&&TrySetProperty(window.localStorage,"SPAnimationEnabled",1);SPAnimation.Settings={};SPAnimation.Settings.EnableAnimation=function(){TrySetProperty(window.sessionStorage,"SPAnimationEnabled",1);TrySetProperty(window.localStorage,"SPAnimationEnabled",1);typeof UpdateAnimationUserControl!="undefined"&&UpdateAnimationUserControl(false)};SPAnimation.Settings.DisableAnimation=function(){TrySetProperty(window.localStorage,"SPAnimationEnabled",0);typeof UpdateAnimationUserControl!="undefined"&&UpdateAnimationUserControl(false)};SPAnimation.Settings.DisableSessionAnimation=function(){TrySetProperty(window.sessionStorage,"SPAnimationEnabled",0);typeof UpdateAnimationUserControl!="undefined"&&UpdateAnimationUserControl(false)};SPAnimation.Settings.IsAnimationEnabled=function(){var a=IsNullOrUndefined(window.sessionStorage)?false:window.sessionStorage.SPAnimationEnabled==1,b=IsNullOrUndefined(window.localStorage)?false:window.localStorage.SPAnimationEnabled==1;return a&&b};UpdateAnimationStateFromQuery();SPAnimation.State=SPAnimation_State;SPAnimation.Object=SPAnimation_Object;AnimationEngine.prototype={AnimationQueue:new Array(0),sharedTimer:null,sharedCancelTimer:null,frameInterval:1e3/60,resetInterval:3e4,sharedTimerRefs:0,conflictTable:new Array(0),currentAnimationIndex:-1,temporaryIDGenerator:0};AnimationEngine.prototype.LocalStepper=function(){SPAnimation.g_AnimationEngine.StepAllAnimations()};AnimationEngine.prototype.LocalStopper=function(){SPAnimation.g_AnimationEngine.StopEngine()};AnimationEngine.prototype.StartEngine=function(){if(this.sharedTimer!=null||this.sharedCancelTimer!=null||this.sharedTimerRefs!=0)return;this.sharedTimer=window.setInterval(AnimationEngine.prototype.LocalStepper,this.frameInterval);this.sharedCancelTimer=window.setTimeout(AnimationEngine.prototype.LocalStopper,this.resetInterval);this.sharedTimerRefs=0;SPAnimation.g_TelemetryObject.Start()};AnimationEngine.prototype.StopEngine=function(){SPAnimation.g_TelemetryObject.Stop();if(this.sharedCancelTimer!=null){window.clearTimeout(this.sharedCancelTimer);this.sharedCancelTimer=null}if(this.sharedTimer!=null){window.clearInterval(this.sharedTimer);this.sharedTimer=null}this.sharedTimerRefs=0;this.conflictTable=new Array(0)};AnimationEngine.prototype.StartAnimation=function(a){this.AnimationQueue[this.sharedTimerRefs++]=a};AnimationEngine.prototype.StopAnimation=function(b){for(var a=0;athis.duration||i>1){d=c;j=true}k&&SPAnimation.g_AnimationEngine.CheckForConflictingAnimations(f,a);this.SetStyle(a,f,d)}else{f=this.element;b=this.startValue.GetAttribute(a);h=this.targetValue;c=h.GetAttribute(a);if(IsNullOrUndefined(b)){b=GetCurrentAttributeValue(this.element,a);this.startValue.SetAttribute(a,b)}if(isNaN(b)){SPAnimation.g_TelemetryObject.LogData("Unexpected: bogus start value for element "+String(this.element.id)+", attribute "+String(a));d=c}else d=b+i*(c-b);if(g>this.duration||i>1){d=c;j=true;SPAnimation.g_TelemetryObject.LogData("done")}k&&SPAnimation.g_AnimationEngine.CheckForConflictingAnimations(this.element,a);this.SetStyle(a,this.element,d)}}this.fIsExecuting=true;if(j){this.StopAnimation();if(this.finishFunc!=null){SPAnimation.g_TelemetryObject.LogData("calling fnishfunc");this.finishFunc(this.extraData)}}};AnimationUnit.prototype.PositionFunction=function(c,d,e){var a=0,b=SPAnimation.g_Curves[e];switch(b.type){case 0:a=1;break;case 1:a=c0)for(var m=this.logDataIndex,a=0;a";l+=this.logData[a]}if(this.perfDataIndex>0){j=Number.MAX_VALUE;i=Number.MIN_VALUE;var d=this.perfDataIndex;for(a=0;ai)i=this.perfData[a];e+=this.perfData[a];if(a!=0)k+=", ";k+=this.perfData[a]}if(d>1)e/=d-1;e=Math.round(e*100)/100;for(a=0;a1)c/=d-1;c=Math.sqrt(c);c=Math.round(c*100)/100;h=this.perfDataIndex/f*1e3;h=Math.round(h)}var b=new Array(9);b[0]=f;b[1]=h;b[2]=j;b[3]=i;b[4]=e;b[5]=c;b[6]=k;b[7]=l;b[8]=this.numUnits;return b};AnimationTelemetry.prototype.CalculateAndShowStatistics=function(){var a=this.CalculateStatistics();SPAnimation.g_LastAnimationTelemetryData=a;this.ShowAnimationStats(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8]);typeof ExecuteOrDelayUntilScriptLoaded=="function"&&ExecuteOrDelayUntilScriptLoaded(function(){var b=GetAnimationWSA();WSAEnabled()&&!IsNullOrUndefined(b)&&b.addToStreamDw(SPAnimation.DATAID_SPANIMATION,Number(SPAnimation.Settings.IsAnimationEnabled()),a[0],a[1],a[2],a[3],Math.round(a[4]),Math.round(a[5]),a[8])},"SP.core.js");if(!IsNullOrUndefined(window.sessionStorage))if(a[1]=SPAnimation.g_AnimationThrottleNumInstance){SPAnimation.Settings.DisableSessionAnimation();TrySetProperty(window.sessionStorage,"SPAnimationThrottleCounter",0)}}else TrySetProperty(window.sessionStorage,"SPAnimationThrottleCounter",0)};AnimationTelemetry.prototype.ShowAnimationStats=function(g,s,v,u,r,k,q,t,h){this.animationIndex++;var b=String(this.animationIndex);if(typeof DeveloperDashboard!="undefined"&&typeof DeveloperDashboard.PostMsg!="undefined"){var a=typeof Strings!="undefined"&&typeof Strings.STS!="undefined",f=a&&typeof Strings.STS.L_DevDashAnimation_Duration!="undefined"?Strings.STS.L_DevDashAnimation_Duration:"Duration",n=a&&typeof Strings.STS.L_DevDashAnimation_FPS!="undefined"?Strings.STS.L_DevDashAnimation_FPS:"FPS",p=a&&typeof Strings.STS.L_DevDashAnimation_Min!="undefined"?Strings.STS.L_DevDashAnimation_Min:"Min",o=a&&typeof Strings.STS.L_DevDashAnimation_Max!="undefined"?Strings.STS.L_DevDashAnimation_Max:"Max",m=a&&typeof Strings.STS.L_DevDashAnimation_Avg!="undefined"?Strings.STS.L_DevDashAnimation_Avg:"Average",j=a&&typeof Strings.STS.L_DevDashAnimation_Stddev!="undefined"?Strings.STS.L_DevDashAnimation_Stddev:"Standard Dev",l=a&&typeof Strings.STS.L_DevDashAnimation_NumUnits!="undefined"?Strings.STS.L_DevDashAnimation_NumUnits:"#Units",i=a&&typeof Strings.STS.L_DevDashAnimation_AllFrames!="undefined"?Strings.STS.L_DevDashAnimation_AllFrames:"All Frames:",d=a&&typeof Strings.STS.L_DevDashAnimation_Header!="undefined"?Strings.STS.L_DevDashAnimation_Header:"Animation",c=a&&typeof Strings.STS.L_DevDashAnimation_Millisec!="undefined"?Strings.STS.L_DevDashAnimation_Millisec:"ms",e="
"+d+" "+b+"
"+f+""+n+""+p+""+o+""+m+""+j+""+l+"
"+String(g)+c+""+String(s)+""+String(v)+c+""+String(u)+c+""+String(r)+c+""+String(k)+""+String(h)+"
"+i+q+"
"+t+"
";DeveloperDashboard.PostMsg("MS.AnimationTelemetry","AddAnimationData",e)}};SPAnimation.g_TelemetryObject=new AnimationTelemetry;SPAnimation.g_LastAnimationTelemetryData=null;SPAnimationUtility={};SPAnimationUtility.BasicAnimator={};SPAnimationUtility.BasicAnimator.FadeIn=function(a,c,d){if(a==null)return;SetOpacity(a,0);if(a.style.display=="none")a.style.display="";if(a.style.visibility=="hidden")a.style.visibility="";var b=new SPAnimation.State;b.SetAttribute(SPAnimation.Attribute.Opacity,1);var e=new SPAnimation.Object(SPAnimation.ID.Basic_QuickShow,0,a,b,c,d);e.RunAnimation()};SPAnimationUtility.BasicAnimator.FadeOut=function(a,c,d){if(a==null)return;var b=new SPAnimation.State;b.SetAttribute(SPAnimation.Attribute.Opacity,0);var e=new SPAnimation.Object(SPAnimation.ID.Basic_QuickFade,0,a,b,c,d);e.RunAnimation()};SPAnimationUtility.BasicAnimator.Move=function(a,c,d,e,f){if(a==null)return;var g=c==null?pxToNum(a.style.left):c,h=d==null?pxToNum(a.style.top):d,b=new SPAnimation.State;b.SetAttribute(SPAnimation.Attribute.PositionX,g);b.SetAttribute(SPAnimation.Attribute.PositionY,h);var i=new SPAnimation.Object(SPAnimation.ID.Basic_Move,0,a,b,e,f);i.RunAnimation()};SPAnimationUtility.BasicAnimator.StrikeThrough=function(a,h,l,m){if(a==null)return;var r=SPAnimationUtility.BasicAnimator.GetTopOffset(a),q=SPAnimationUtility.BasicAnimator.GetLeftOffset(a),s=SPAnimationUtility.BasicAnimator.GetRightOffset(a),d=a.offsetWidth,g=a.offsetHeight;if(h==null)h=d;var f=document.createElement("div"),e=document.createElement("div");e.style.overflow="hidden";var b=document.createElement("div");b.style.overflow="hidden";var i=a.cloneNode(true);i.style.textDecoration="line-through";e.appendChild(i);var c=a.cloneNode(true);b.appendChild(c);f.appendChild(b);f.appendChild(e);a.parentNode.appendChild(f);a.style.visibility="hidden";SPAnimationUtility.BasicAnimator.PositionAbsoluteExact(f,r,q,g,d);var p=8;SPAnimationUtility.BasicAnimator.PositionAbsoluteExact(e,0,0,g,p);SPAnimationUtility.BasicAnimator.PositionAbsoluteExact(b,0,0,g,d);SPAnimationUtility.BasicAnimator.PositionAbsoluteExact(i,0,0,g,d);SPAnimationUtility.BasicAnimator.PositionAbsoluteExact(c,0,0,g,d);if(!fRightToLeft){b.style.left=c.style.left="";b.style.right=c.style.right="0px"}else{b.style.right=c.style.right="";b.style.left=c.style.left="0px"}var k=new SPAnimation.State;k.SetAttribute(SPAnimation.Attribute.Width,d-h);var o=new SPAnimation.Object(SPAnimation.ID.Basic_StrikeThrough,0,b,k,null,m);o.RunAnimation();var j=new SPAnimation.State;j.SetAttribute(SPAnimation.Attribute.Width,h);var n=new SPAnimation.Object(SPAnimation.ID.Basic_StrikeThrough,0,e,j,function(){a.style.textDecoration="line-through";a.style.visibility="";a.parentNode.removeChild(f);l!=null&&l()},m);n.RunAnimation()};SPAnimationUtility.BasicAnimator.PositionAbsolute=function(a){if(a==null)return;var e=SPAnimationUtility.BasicAnimator.GetTopOffset(a),d=fRightToLeft?SPAnimationUtility.BasicAnimator.GetRightOffset(a):SPAnimationUtility.BasicAnimator.GetLeftOffset(a),c=a.offsetWidth==0?a.parentNode.offsetWidth:a.offsetWidth,b=a.offsetHeight;SPAnimationUtility.BasicAnimator.PositionAbsoluteExact(a,e,d,b,c)};SPAnimationUtility.BasicAnimator.PositionRelative=function(a){if(a==null)return;SPAnimationUtility.BasicAnimator.PositionRelativeExact(a,0,0,null,null)};SPAnimationUtility.BasicAnimator.PositionAbsoluteExact=function(a,e,d,b,c){if(a==null)return;a.style.position="absolute";SPAnimationUtility.BasicAnimator.PositionElement(a,e,d,b,c)};SPAnimationUtility.BasicAnimator.PositionRelativeExact=function(a,e,d,b,c){if(a==null)return;a.style.position="relative";SPAnimationUtility.BasicAnimator.PositionElement(a,e,d,b,c)};SPAnimationUtility.BasicAnimator.ResetPosition=function(a){if(a==null)return;a.style.position=a.style.top=a.style.left=""};SPAnimationUtility.BasicAnimator.GetLeftOffset=function(a){if(a==null)return 0;var b=a.offsetLeft;while(a.offsetParent!=null){a=a.offsetParent;if(SPAnimationUtility.BasicAnimator.IsPositioned(a)&&!(browseris.firefox&&a.tagName.toUpperCase()=="TD"))break;b+=a.offsetLeft}return b};SPAnimationUtility.BasicAnimator.GetTopOffset=function(a){if(a==null)return 0;var b=a.offsetTop;while(a.offsetParent!=null){a=a.offsetParent;if(SPAnimationUtility.BasicAnimator.IsPositioned(a)&&!(browseris.firefox&&a.tagName.toUpperCase()=="TD"))break;b+=a.offsetTop}return b};SPAnimationUtility.BasicAnimator.IsPositioned=function(a){var b=Boolean(window.getComputedStyle)?window.getComputedStyle(a,null):a.currentStyle;return b.position=="relative"||b.position=="absolute"};SPAnimationUtility.BasicAnimator.GetDefaultCloneId=function(a){return a.id+"_clone"};SPAnimationUtility.BasicAnimator.CloneElement=function(a,k,l,n,g,p,m){if(a==null)return null;if(a.id!=null&&a.id.indexOf("_clone")!=-1)return a;var j=SPAnimationUtility.BasicAnimator.GetDefaultCloneId(a),b=document.getElementById(j);if(b==null){b=document.createElement("div");if(p)b.style.zIndex="-100";var h=SPAnimationUtility.BasicAnimator.GetWindowScrollPosition(),q=h.x,r=h.y,i=SPAnimationUtility.BasicAnimator.IsPositioned(a),d=g?SPAnimationUtility.BasicAnimator.GetTopOffset(a):a.offsetTop;if(a.parentNode!=null&&a.parentNode.offsetTop>d)d=a.parentNode.offsetTop;if(!i)d-=r;var f=null;if(!m){f=fRightToLeft?SPAnimationUtility.BasicAnimator.GetRightOffset(a):g?SPAnimationUtility.BasicAnimator.GetLeftOffset(a):a.offsetLeft;if(!i)f-=q}var e=a.offsetWidth==0?a.parentNode.offsetWidth:a.offsetWidth;if(n)e=e+1;var o=a.offsetHeight==0?a.parentNode.offsetHeight:a.offsetHeight;SPAnimationUtility.BasicAnimator.PositionAbsoluteExact(b,d,f,o,e);var c=a.innerHTML.replace(/(\s+)id=(["])([^"]*)(["])/g,"$1");c=c.replace(/(\s+)id=(['])([^']*)(['])/g,"$1");if(browseris.ie8standard)c=c.replace(/(\s+)id=([^\s<>]*)([\s>])/g,"$1$3");b.innerHTML=c;b.className=a.className;b.id=j;a.style.visibility="hidden";k&&SetOpacity(a,0);if(l)a.parentNode.insertBefore(b,a);else a.parentNode.appendChild(b)}return b};SPAnimationUtility.BasicAnimator.CommonResize=function(a,b,c,f,g,e){if(a==null)return;if(!IsNullOrUndefined(b)&&(a.style.height==null||a.style.height==""))a.style.height=String(a.clientHeight)+"px";if(!IsNullOrUndefined(c)&&(a.style.width==null||a.style.width==""))a.style.width=String(a.clientWidth)+"px";var d=new SPAnimation.State;!IsNullOrUndefined(b)&&d.SetAttribute(SPAnimation.Attribute.Height,b);!IsNullOrUndefined(c)&&d.SetAttribute(SPAnimation.Attribute.Width,c);var h=new SPAnimation.Object(e,0,a,d,f,g);h.RunAnimation()};SPAnimationUtility.BasicAnimator.Resize=function(d,b,c,a,e){SPAnimationUtility.BasicAnimator.CommonResize(d,b,c,a,e,SPAnimation.ID.Basic_Size)};SPAnimationUtility.BasicAnimator.QuickResize=function(d,b,c,a,e){SPAnimationUtility.BasicAnimator.CommonResize(d,b,c,a,e,SPAnimation.ID.Basic_QuickSize)};SPAnimationUtility.BasicAnimator.ResizeContainerAndFillContent=function(a,b,g,h){if(a==null||b==null)return;var i=a.style.zIndex,f=a.style.position,j=a.style.left,k=a.style.top;a.style.zIndex=String(1);a.style.position="absolute";a.style.left="0px";a.style.top="0px";a.style.visibility="hidden";if(!h)b.insertBefore(a,b.firstChild);else b.appendChild(a);var c=document.createElement("div");c.style.height="0px";c.style.width="0px";b.insertBefore(c,a);var d=a.clientHeight,e=a.clientWidth;SPAnimationUtility.BasicAnimator.Resize(c,d,e,function(){b.removeChild(c);a.style.left=j;a.style.top=k;a.style.zIndex=i;a.style.position=f;SPAnimationUtility.BasicAnimator.FadeIn(a,g,null)},null)};SPAnimationUtility.BasicAnimator.GetRightOffset=function(a){return document.body.offsetWidth-a.offsetWidth-SPAnimationUtility.BasicAnimator.GetLeftOffset(a)};SPAnimationUtility.BasicAnimator.PositionElement=function(a,e,b,c,d){if(!IsNullOrUndefined(e))a.style.top=String(e)+"px";if(!IsNullOrUndefined(b))fRightToLeft?a.style.right=String(b)+"px":a.style.left=String(b)+"px";if(!IsNullOrUndefined(d))a.style.width=String(d)+"px";if(!IsNullOrUndefined(c))a.style.height=String(c)+"px"};SPAnimationUtility.BasicAnimator.GetWindowScrollPosition=function(){var a=0,b=0,c=document.getElementById("s4-workspace");if(c!=null){b=c.scrollTop;a=c.scrollLeft}else{b=window.pageYOffset;a=window.pageXOffset}if(IsNullOrUndefined(b))b=0;if(IsNullOrUndefined(a))a=0;return{x:a,y:b}};SPAnimationUtility.RowAddInfo=function(){};SPAnimationUtility.RowMoveInfo=function(){};SPAnimationUtility.TableAnimator=SPAnimUtil_TableAnimator;SPAnimUtil_TableAnimator.prototype={tableElement:null,tbody:null,headerRow:null,footer:null,fAnimatable:false,topOffset:0,leftOffset:0,headerRowHeight:0,itemRowHeight:0,headerColWidths:null,itemColWidths:null};SPAnimUtil_TableAnimator.prototype.AnimatePaging=function(b,c,g){this.IncrementRefCount();var f=this.tableElement.parentNode.style.overflow;this.tableElement.parentNode.style.overflow="hidden";SetOpacity(this.tableElement,0);var a=this.tbody,h=a.nextSibling;h.style.display="";this.footer=c;SetOpacity(this.footer,0);this.footer.style.display="";a.parentNode.removeChild(a);var d=new SPAnimation.State;d.SetAttribute(SPAnimation.Attribute.Opacity,1);var k=new SPAnimation.Object(SPAnimation.ID.Basic_QuickShow,0,c,d,null,null);k.RunAnimation();var i=b?100:-100;SPAnimationUtility.BasicAnimator.PositionRelativeExact(this.tableElement,null,i,null,null);var j=this,e=new SPAnimation.State;e.SetAttribute(SPAnimation.Attribute.Opacity,1);var l=new SPAnimation.Object(b?SPAnimation.ID.Content_SlideInFadeInLeftInc:SPAnimation.ID.Content_SlideInFadeInRightInc,0,this.tableElement,e,function(){j.ResetPagingAnimation(f);g()},null);l.RunAnimation()};SPAnimUtil_TableAnimator.prototype.ResetPagingAnimation=function(a){var b=this.DecrementRefCount();if(b==0){SPAnimationUtility.BasicAnimator.ResetPosition(this.footer);this.tableElement.parentNode.style.overflow=a}};SPAnimUtil_TableAnimator.prototype.AnimateSort=function(g,b,f){this.PrepareForSortAnimation(g,b);for(var e=15,c=b.rows.length,a=0;a "+STSHtmlEncode(Strings.STS.L_Loading_Text)+"";return addNotification(b,a)};NotificationEngine.prototype={Initialized:false,Notifications:undefined,Containers:undefined,Initialize:undefined,AddNotification:undefined,AddContainer:undefined,DisposeNotification:undefined,SetExpireTimer:undefined,RetireNotificationInternal:undefined};(function(){var d=null,b=-1;NotificationEngine.prototype.Initialize=function(){if(this.Initialized)return;this.Notifications={};this.Containers={};this.Initialized=true};NotificationEngine.prototype.Reset=function(){var a,c;for(c in this.Containers){a=this.Containers[c];a.Dispose();a.UnblockUpdatesInternal()}var d=b;b=-1;window.clearInterval(d)};NotificationEngine.prototype.AddNotification=function(b,a){var c=this.Containers[b];a.container=c;this.Notifications[a.id]=a};NotificationEngine.prototype.AddContainer=function(a){this.Containers[a.id]=a};NotificationEngine.prototype.DisposeNotification=function(a){if(this.Notifications[a.id]!=null){delete this.Notifications[a.id];delete a}};NotificationEngine.prototype.SetExpireTimer=function(d,c){var e=new Date;d.expires=e.valueOf()+c;if(b==-1)b=window.setInterval(function(){a().RetireNotificationInternal()},750)};NotificationEngine.prototype.RetireNotificationInternal=function(){var i=new Date,h=i.valueOf(),e=true,d,c,a,f=[];for(d in this.Notifications){c=this.Notifications[d];if(c.expires!=null)if(h>c.expires)f.push(c);else e=false}while(f.length>0){c=f.shift();a=c.container;a.RemoveNotification(c);a.pendingUpdate=true}for(d in this.Containers){a=this.Containers[d];if(a.items.length>0)e=false;if(Boolean(a.pendingUpdate)){a.Update();delete a.pendingUpdate}}if(e){var g=b;b=-1;window.clearInterval(g)}};SPNotification.prototype={id:undefined,elm:undefined,strHtml:undefined,strTooltip:undefined,bSticky:undefined,bIsAdd:undefined,bNoAnimate:undefined,bHidden:undefined,onclickHandler:undefined,container:undefined,extraData:undefined,expires:undefined,ariaLiveAttribute:undefined};SPNotification.prototype.Initialize=function(f,j,i,g,d,h,e){var c="notification_"+String(getUniqueIndex()),b=document.createElement("span");b.id=c;this.id=c;this.bIsAdd=true;this.elm=b;this.strHtml=j;this.extraData=h;this.bSticky=i;this.strTooltip=g;this.onclickHandler=d;this.bHidden=false;this.ariaLiveAttribute=e;a().AddNotification(f,this)};SPNotification.prototype.Show=function(a){if(Boolean(a)==true)this.bNoAnimate=true;this.container.AddNotification(this)};SPNotification.prototype.Hide=function(a){if(Boolean(a)==true)this.bNoAnimate=true;this.container.RemoveNotification(this)};SPNotificationContainer.prototype={id:undefined,element:undefined,bIsShown:undefined,bIsBlocked:undefined,nDisposalState:undefined,nNotificationLayer:25,nDisplayDuration:7e3,nMaxNotifications:20,events:undefined,items:undefined,pending:undefined,blockedUpdates:undefined};SPNotificationContainer.prototype.Initialize=function(f,d,e,b){this.id=f;this.element=d;this.events=new Array(g_SPNotificationEventID_Count);this.bIsShown=false;this.nNotificationLayer=e;this.bIsBlocked=false;this.items=[];this.pending=[];this.blockedUpdates=[];this.nDisposalState=0;var c=this;this.items.add=function(a){this.push(a);c.FireEvent(SPNotifications.EventID.OnNotificationCountChanged)};this.items.remove=function(d){var a,b;for(a=0,b=this.length;a0)return;this.nDisposalState=1;this.Clear()};SPNotificationContainer.prototype.AddNotification=function(b){var d,e;for(d=0,e=this.items.length;d=0;b--){var a=c[b];if(!Boolean(a)||!a.bIsAdd)continue;if(Boolean(d))a.bNoAnimate=true;this.RemoveNotification(a)}};SPNotificationContainer.prototype.GetCount=function(){return this.items.length};SPNotificationContainer.prototype.GetHiddenCount=function(){var b=0,a,d,c=this.items;for(a=0,d=c.length;ag_SPNotificationEventID_Count)throw"Invalid eventId "+String(a)+". ContainerId: "+String(this.id);if(this.events[a]!=null){var b=this.events[a];Array.prototype.shift.call(arguments);b.apply(null,arguments)}};SPNotificationContainer.prototype.Show=function(){if(this.bIsShown)return;this.bIsShown=true;var a=this;this.FireEvent(SPNotifications.EventID.OnShow,function(){a.Update();return true})};SPNotificationContainer.prototype.Hide=function(){if(!this.bIsShown)return;this.bIsShown=false;while(this.element.hasChildNodes())this.element.removeChild(this.element.firstChild);var a=this;this.FireEvent(SPNotifications.EventID.OnHide,function(){if(a.nDisposalState==0){a.UnblockUpdatesInternal();a.Update()}else if(a.nDisposalState==1){a.nDisposalState=2;a.FireEvent(SPNotifications.EventID.OnDisposing)}return true})};SPNotificationContainer.prototype.BlockUpdatesInternal=function(a){if(a.nNotificationLayer>this.nNotificationLayer||a.id==this.id)return;var b,d,c=false;for(b=0,d=this.blockedUpdates.length;b0){var a=this.blockedUpdates.shift();a.bIsBlocked=false;while(a.pending.length>0){var b=a.pending.shift();b()}a.Update()}};var e=function(a,j){var b=a.elm,e=a.onclickHandler,f=a.strTooltip,i=a.bNoAnimate,h=function(){e!=null&&e();removeNotification(b.id,i);return false};b.className="ms-trcnoti-base";!a.bNoAnimate&&SetOpacity(b,0);var c=document.createElement("div");c.className="ms-trcnoti-bg";AttachEvent("click",h,c);var d=document.createElement("div");d.className=j;c.appendChild(d);b.appendChild(c);if(Boolean(f))b.title=f;b.setAttribute("role","alert");if(Boolean(a.ariaLiveAttribute)&&Boolean(a.container)){var g=a.container.element;Boolean(g)&&g.setAttribute("aria-live",a.ariaLiveAttribute)}return d},c=function(a,f,d,c){var g=a.elm;if(a.bNoAnimate||IsAccessibilityFeatureEnabled())c(a);else{var b=new SPAnimation.State;b.SetAttribute(SPAnimation.Attribute.Opacity,d);var e=new SPAnimation.Object(f,0,g,b,c,a);e.RunAnimation()}};function f(d){var a=document.createElement("div"),c=document.createElement("div"),b=document.createElement("div");a.className="ms-trcnoti-border";c.className="ms-fullWidth";b.className="ms-trcnoti-host ms-fullWidth";c.appendChild(b);a.appendChild(c);d.appendChild(a);return{ctr:d,root:a,host:b}}function i(){var c=document.createElement("div");c.className="ms-trcnoti-ctr";document.body.appendChild(c);var a=f(c);a.root.id="js-trcnoti-ct";a.host.id="js-trcnoti-host";a.root.style.display="none";var b=document.createElement("div");b.id="ms-trcnoti-ovrflw";b.className="ms-trcnoti-ovrflw ms-trcnoti-bg";a.host.parentNode.appendChild(b);a.ovrflw=b;return a}function j(){var a=document.getElementById("notificationArea");if(a==null){a=document.createElement("div");a.id="notificationArea";var b=document.getElementById("contentBox");if(null!=b)b.appendChild(a);else document.body.appendChild(a)}a.style.display="none";var c=f(a);return c}function g(){if(g_standardNotiCt!=null)return g_standardNotiCt;var d=j(),a=d.ctr,b=d.host;g_standardNotiCt=new SPNotificationContainer(SPNotifications.ContainerID.Basic,b,50);var f=function(a){var b=e(a,"ms-trcnoti-toast");b.innerHTML=a.strHtml},i=function(b){a.style.display="none";b()},k=function(b){a.setAttribute("aria-live","polite");a.setAttribute("aria-relevant","all");a.style.display="block";b()},g=function(a,e){f(a);var d=a.elm;d.style.top="0px";b.appendChild(d);c(a,SPAnimation.ID.SmallObject_SlideInFadeInTop,1,e)},h=function(b,a){c(b,SPAnimation.ID.Basic_Fade,0,a)};g_standardNotiCt.SetEventHandler(SPNotifications.EventID.OnHide,i);g_standardNotiCt.SetEventHandler(SPNotifications.EventID.OnShow,k);g_standardNotiCt.SetEventHandler(SPNotifications.EventID.OnDisplayNotification,g);g_standardNotiCt.SetEventHandler(SPNotifications.EventID.OnRemoveNotification,h);return g_standardNotiCt}function h(){var g=i(),q=g.ctr,f=g.root,b=g.ovrflw,d=g.host,a=new SPNotificationContainer(SPNotifications.ContainerID.Status,d,75,3);function j(g,e,f){var d=document.createElement("span"),b=document.createElement("a"),a=document.createElement("img"),c=document.createElement("a");b.href="#";c.className="ms-core-defaultFont ms-textLarge";b.className="ms-imnlink";b.onclick=function(){IMNImageOnClick(event);return false};a.id=g+"_imn,type=sip";a.setAttribute("name","imnmark");a.className="ms-imnImg";a.title="";a.border=0;a.src="/_layouts/15/images/blank.gif?rev=47";a.alt=Strings.STS.L_NoPresenceInformation;a.width="12px";a.height="12px";a.style.verticalAlign="middle";a.style.marginRight="0px";a.setAttribute("sip",f);c.innerHTML=e;b.appendChild(a);d.appendChild(b);d.appendChild(c);return d}var h=function(h){var q=e(h,"ms-trcnoti-status"),m=h.strHtml,b=h.extraData,k=document.createElement("div"),d=document.createElement("div"),a=document.createElement("div");d.className="ms-trcnoti-body";k.className="ms-trcnoti-gfx";a.className="ms-trcnoti-txt ms-core-defaultFont ms-trc-noti-title";if(b.img!=null){var i=document.createElement("img");i.src=b.img;if(browseris.ie){i.removeAttribute("width");i.removeAttribute("height")}k.appendChild(i)}if(b.sip!=null)if(browseris.ie5up){var p=j(h.id,m,b.sip);a.appendChild(p);for(var g=p.getElementsByTagName("img"),c=0,r=g.length;c0){b.style.display="block";b.innerHTML=StBuildParam(Strings.STS.L_NotificationsAndNMore,c);b.onclick=function(){a.ShowAllNotifications();b.style.display="none";return false}}else b.style.display="none"},m=function(){document.body.removeChild(q)};a.SetEventHandler(SPNotifications.EventID.OnShow,p);a.SetEventHandler(SPNotifications.EventID.OnHide,o);a.SetEventHandler(SPNotifications.EventID.OnDisplayNotification,l);a.SetEventHandler(SPNotifications.EventID.OnRemoveNotification,n);a.SetEventHandler(SPNotifications.EventID.OnNotificationCountChanged,k);a.SetEventHandler(SPNotifications.EventID.OnDisposing,m);g_statusNotiCt=a}addNotification=function(f,e,d,b,c){var a=new SPNotification(SPNotifications.ContainerID.Basic,f,e,d,b);a.Show(c);return a.id};removeNotification=function(d,c){var b=a().Notifications[d];Boolean(b)&&b.Hide(c)};function a(){if(d===null){g_NotificationEngine=new NotificationEngine;d=g_NotificationEngine;g();h()}return d}NotificationEngine.GetInstance=a})();cGCMinimumWidth=400;cGCMinimumHeight=200;cGCMaxGCResizeCount=10;glGCObjectHeight=0;glGCObjectWidth=0;glGCResizeCounter=0;objGCGlobal=null;checkNewEcbFlights(null);WSS_MENUITEMSEQUENCE_REPLY=100;WSS_MENUITEMSEQUENCE_VIEWPROPERTIES=200;WSS_MENUITEMSEQUENCE_EDITPROPERTIES=220;WSS_MENUITEMSEQUENCE_EDITSERIESITEM=230;WSS_MENUITEMSEQUENCE_EDITINOIS=260;WSS_MENUITEMSEQUENCE_EDITINAPPLICATION=260;WSS_MENUITEMSEQUENCE_OPENFOLDER=270;WSS_MENUITEMSEQUENCE_CHECKINCHECKOUT=300;WSS_MENUITEMSEQUENCE_DISCARDCHECKOU=310;WSS_MENUITEMSEQUENCE_PUBLISHITEM=320;WSS_MENUITEMSEQUENCE_CANCELPUBLISH=330;WSS_MENUITEMSEQUENCE_EXPORTCONTACT=350;WSS_MENUITEMSEQUENCE_SENDMENU=400;WSS_MENUITEMSEQUENCE_GOTOSOURCEITEM=440;WSS_MENUITEMSEQUENCE_DOCTRANMENU=500;WSS_MENUITEMSEQUENCE_DOWNLOADORIGINAL=550;WSS_MENUITEMSEQUENCE_VERSIONS=800;WSS_MENUITEMSEQUENCE_MODERATEITEM=850;WSS_MENUITEMSEQUENCE_WORKFLOWS=900;WSS_MENUITEMSEQUENCE_ADDTOMYLINKS=1e3;WSS_MENUITEMSEQUENCE_ADDTOCATEGORY=1050;WSS_MENUITEMSEQUENCE_SUBSCRIBE=1100;WSS_MENUITEMSEQUENCE_DISCUSS=1130;WSS_MENUITEMSEQUENCE_PUBLISHBACK=1140;WSS_MENUITEMSEQUENCE_CREATEDWS=1140;WSS_MENUITEMSEQUENCE_MANAGEPERMISSIONS=1160;WSS_MENUITEMSEQUENCE_CUSTOMIZENEWBUTTON=1170;WSS_MENUITEMSEQUENCE_DELETEITEM=1180;WSS_MENUITEMSEQUENCE_DELETEDOCITEM=1190;WSS_MENUITEMSEQUENCE_MOVECOPYITEM=1200;WSS_MENUITEMSEQUENCE_ACTIVATESOLUTION=1210;WSS_MENUITEMSEQUENCE_DEACTIVATESOLUTION=1220;WSS_MENUITEMSEQUENCE_UPGRADESOLUTION=1230;WSS_MENUITEMSEQUENCE_ENCRYPTITEM=1240;setNewEcbCmdSequence();g_menuLaunchPoint=null;ecbManager={callOutPar:null,DismissECB:function(){var c={};if(ecbManager.callOutPar!=null){var e=itemTable;c.callOut=true;OutItem(c);ecbManager.callOutPar=null;itemTable=e}var d=window.event,a=null;if(d!=null)a=Boolean(d.srcElement)?d.srcElement:d.target;while(a!=null&&a.tagName!="TR")a=a.parentNode;var b=null;if(a!=null&&itemTable!=null){b=itemTable;while(b!=null){if(b==a)break;b=b.parentNode}}if(b==null){c.callOut=false;OutItem(c)}}};ecbItems="ECBItems";SYSTEM_ACCOUNT_ID=1073741823;_ContextForShowingShareDialog=null;resetItemGlobals();seqCompare=function(a,b){return Number(a.seq)Number(b.seq)?1:0};_spBodyOnLoadFunctions.push(InitFullScreenMode);filterTable=null;bIsFilterMenuShown=false;bIsFilterDataLoaded=false;filterImageCell=null;currentFilterMenu=null;loadingFilterMenu=null;ctxFilter=null;bIsFilterKeyPress=false;filterStr=null;strFieldName="";bMenuLoadInProgress=false;strFilteredValue=null;bIsMultiFilter=false;fnOnFilterMouseOut=null;if(typeof String.prototype.trim=="undefined")String.prototype.trim=function(){return this.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};if(typeof Object.create==="undefined")Object.create=function(b){function a(){}a.prototype=b;return new a};if(typeof Object.keys==="undefined")Object.keys=function(c){var b=[];for(var a in c)c.hasOwnProperty(a)&&b.push(a);return b};RibbonBlock.prototype={initialTabId:null,buildMinimized:true,initStarted:false,initialTabSelectedByUser:false,launchedByKeyboard:false};kfnDisableEvent=new Function("return false");g_menuHtc_lastMenu=null;g_uniqueNumber=0;g_MenuEndOfDOM=false;ElementPosition_InitializePrototype();MenuTag_InitializePrototype();MMU_chDelim=",";MMU_chDelimEnc="%2c";MMU_postbackPrefix="javascript:__doPostBack(";MMU_chDelim2="%";MMU_chDelim2Enc="%25";MHash_InitializePrototype();ParseContext_InitializePrototype();MMU_reDelimEnc=new RegExp(MMU_chDelimEnc,"g");MMU_reDelim2Enc=new RegExp(MMU_chDelim2Enc,"g");MMU_reDelimDec=new RegExp(MMU_chDelim,"g");MMU_reDelim2Dec=new RegExp(MMU_chDelim2,"g");g_MMU_HighlightedEcbTable=null;g_MMU_HighlightedEcbTableOpen=null;g_MMU_OpenTimeoutHandle=null;g_MMU_theFormActionAtPageLoad=null;g_MMU_Form0ActionAtPageLoad=null;g_MMU_Form0ActionAtPreMenuOpen=null;g_MMU_RequestTimeoutTimeoutHandle=null;_AddSilverlightWebPartPopupUI_InitializePrototype();_ConfigSilverlightWebpartPopupUI_InitializePrototype();_launchNotificationId=null;_tenantAppData=null;if(typeof Accessibility=="undefined"){Accessibility={__namespace:true};Accessibility_module_def()}if(typeof DOM_afterglass=="undefined"){DOM_afterglass={__namespace:true};DOM_afterglass_module_def()}GetAncestor=DOM_afterglass.GetAncestor;GetAncestorByTagNames=DOM_afterglass.GetAncestorByTagNames;GetParentLinkFromEvent=DOM_afterglass.GetParentLinkFromEvent;GetPosition=DOM_afterglass.GetPosition;GetSelectedElement=DOM_afterglass.GetSelectedElement;IsContained=DOM_afterglass.IsContained;IsEventRightClickOnAnchor=DOM_afterglass.IsEventRightClickOnAnchor;IsEventTargetAnchor=DOM_afterglass.IsEventTargetAnchor;if(typeof ListModule_afterglass=="undefined"){ListModule_afterglass={__namespace:true};ListModule_afterglass_module_def()}_ListHeaderMenu_OnMouseDown=ListModule.Util.headerMenuMouseDown;CountSelectedItems=ListModule.Util.countSelectedItems;CountTotalItems=ListModule.Util.countTotalItems;CreateAjaxMenu=ListModule.Util.createAjaxMenu;CtxFromElement=ListModule.Util.ctxFromElement;FetchEcbInfo=ListModule.Util.fetchEcbInfo;FindSTSMenuTable=ListModule.Util.findSTSMenuTable;FocusRow=ListModule.Util.focusRow;GetEcbDivFromEcbTd=ListModule.Util.getEcbDivFromEcbTd;GetEcbTdFromRow=ListModule.Util.getEcbTdFromRow;GetItemRowCbx=ListModule.Util.getItemRowCbx;getFilterValueFromUrl=ListModule.Util.getFilterValueFromUrl;GetLastSelectableRowIdx=ListModule.Util.getLastSelectableRowIdx;GetRootFolder=ListModule.Util.getRootFolder;GetRootFolder2=ListModule.Util.getRootFolder2;GetUrlWithNoSortParameters=ListModule.Util.getUrlWithNoSortParameters;GroupNameFromRow=ListModule.Util.groupNameFromRow;GroupStringFromGroupName=ListModule.Util.groupStringFromGroupName;ItemHasiid=ListModule.Util.itemHasIid;ItemIsCurrentlySelected=ListModule.Util.itemIsCurrentlySelected;ItemIsCurrentlyVisible=ListModule.Util.itemIsCurrentlyVisible;ItemIsSelectable=ListModule.Util.itemIsSelectable;OnItemSelectionChanged=ListModule.Util.onItemSelectionChanged;SelectListItem=ListModule.Util.selectListItem;SetFocusOnRowDelayed=ListModule.Util.setFocusOnRowDelayed;ShowECBMenuForTr=ListModule.Util.showEcbMenuForTr;ToggleItemRowSelection2=ListModule.Util.toggleItemRowSelection2;UpdateCtxLastSelectableRow=ListModule.Util.updateCtxLastSelectableRow;UpdateSelectAllCbx=ListModule.Util.updateSelectAllCbx;_OnFocusFilter=ListModule.Util.onFocusFilter;FindCtxImg=ListModule.Util.findCtxImg;ShowCtxImg=ListModule.Util.showCtximg;RemoveCtxImg=ListModule.Util.removeCtxImg;PositionCtxImg=ListModule.Util.positionCtxImg;List_CreateCtxImg_Helper=ListModule.Util.createCtxImg_Helper;FilterFieldV3=ListModule.Util.FilterField;RegisterOnItemSelectionChangedHandler=ListModule.Util.registerOnItemSelectionChangedHandler;UnregisterOnItemSelectionChangedHandler=ListModule.Util.unregisterOnItemSelectionChangedHandler;DocumentType={Invalid:0,Word:1,Excel:2,PowerPoint:3,OneNote:4,ExcelForm:5,Folder:6,SuiteExtensionApp:7,Visio:8,Max:9};DocumentInformation.prototype={type:undefined,idToken:undefined,imgSrc:undefined,imgAlt:undefined,textLabel:undefined};c_newdocWOPIID="js-newdocWOPI-";c_newDocDivHtml=['','{3}','

{6}

'].join("");c_onClickCreateDoc="CalloutManager.closeAll(); OpenPopUpPageWithTitle("{0}&TemplateType={1}", OnCloseDialogNavigate); return false;";c_newDocCalloutWidth=parseInt(typeof Strings!="undefined"?Strings.STS.L_NewDocumentCalloutSize:"");NewDocumentInfo=InitializeNewDocumentInfo();g_lastLaunchPointIIDClicked=null;usedCalloutIDs={};generateUniqueCalloutIDFromBaseID=function(a){if(typeof usedCalloutIDs[a]!=="number"){usedCalloutIDs[a]=0;return a}else{++usedCalloutIDs[a];return a+"_"+String(usedCalloutIDs[a])}};Callout_OnOpeningCallback=function(b,f){var d=b.getLaunchPoint(),h=GetAncestorByTagNames(d,["TR"]),a=GetEcbTdFromRow(h),c=null;if(a!=null)c=GetEcbDivFromEcbTd(a);else{a=GetAncestorByTagNames(d,["TD"]);c=m$(a).find("div.ms-vb.itx")[0]}var g=c.getAttribute("CTXName"),e=GenerateCtx(g_ctxDict[g],f);e.CurrentCallout=b;SPClientRenderer.Render(b.getContentElement(),e)};GenerateCtx=function(f,i){var g="ctx"+f.ctxId+"Callout",a=g_ctxDict[g];a={};for(var b in f)if(b!=="OnPostRender"&&b!=="OnPreRender")a[b]=f[b];a.BaseViewID="Callout";a.Templates=SPClientTemplates.TemplateManager.GetTemplates(a);g_ctxDict[g]=a;for(var h=getItemIdxByID(a.ListData.Row,i),e=a.ListSchema.Field,d=null,c=0;c1)if(!confirm(typeof Strings!="undefined"?Strings.STS.L_CheckoutConfirm:""))return;SP.DebugLogger.Write(e+"_ItemCount",SP.DebugLogger.LoggingLevel.Interesting,f.toString());if((Flighting.VariantConfiguration.IsExpFeatureClientEnabled(134)||Flighting.VariantConfiguration.IsExpFeatureClientEnabled(160))&&Boolean(b.ctx.RealHttpRoot)){g=new SP.ExceptionHandlingScope(b.cctx);k=g.startScope();l=new SP.RemoteWeb(b.cctx,b.ctx.HttpRoot);k.dispose()}for(n in i){SP.QoS.WriteStart(e+"Start");j=i[n];b.CheckoutItem(j.id,j.fsObjType,l)}if(f>0){var o=typeof Strings!="undefined"?Strings.STS.L_Notification_CheckOut:"",m=addNotification(o,true);b.cctx.executeQueryAsync(function(){a(b,g,e,f,c);if(typeof b.rgehs!="undefined"){removeNotification(m);b.ShowErrorDialog(RefreshOnDialogClose,g)}else RefreshPage(SP.UI.DialogResult.OK)},function(h,d){a(b,g,e,f,c,d);removeNotification(m);typeof b.rgehs!="undefined"&&b.ShowErrorDialog(null,g)})}};_DiscardCheckoutSelectedItems=function(f){f=FixupCtx(f);var b=f.clvp;b.EnsureChangeContext();var i=GetSelectedItemsDict(f),e=_CountDictionary(i),j,n,l=null,h=null,k=null,c=d("DiscardCheckOut",f);if(e<=0){SP.QoS.WriteStart(c+"Start");SP.QoS.WriteFailure(c+"Failure_NoItemsSelected");SP.DebugLogger.Write(c+"ItemCount",SP.DebugLogger.LoggingLevel.Interesting,e.toString());return}else if(e>1)if(!confirm(typeof Strings!="undefined"?Strings.STS.L_DiscardCheckoutConfirm:""))return;SP.DebugLogger.Write(c+"_ItemCount",SP.DebugLogger.LoggingLevel.Interesting,e.toString());if((Flighting.VariantConfiguration.IsExpFeatureClientEnabled(134)||Flighting.VariantConfiguration.IsExpFeatureClientEnabled(160))&&Boolean(b.ctx.RealHttpRoot)){h=new SP.ExceptionHandlingScope(b.cctx);k=h.startScope();l=new SP.RemoteWeb(b.cctx,b.ctx.HttpRoot);k.dispose()}for(n in i){SP.QoS.WriteStart(c+"Start");j=i[n];b.DiscardCheckoutItem(j.id,j.fsObjType,l)}var o=typeof Strings!="undefined"?Strings.STS.L_Notification_DiscardCheckOut:"",m=addNotification(o,true);b.cctx.executeQueryAsync(function(){a(b,h,c,e,g);if(typeof b.rgehs!="undefined"){removeNotification(m);b.ShowErrorDialog(RefreshOnDialogClose)}else RefreshPage(SP.UI.DialogResult.OK)},function(f,d){a(b,h,c,e,g,d);removeNotification(m);typeof b.rgehs!="undefined"&&b.ShowErrorDialog()})};_CheckinSelectedItems=function(f){f=FixupCtx(f);var b=f.clvp;b.EnsureChangeContext();var e=[],l=GetSelectedItemsDict(f),i=_CountDictionary(l),q,r,n=null,j=null,m=null,c=d("CheckIn",f);if(i<=0){SP.QoS.WriteStart(c+"Start");SP.QoS.WriteFailure(c+"Failure_NoItemsSelected");SP.DebugLogger.Write(c+"ItemCount",SP.DebugLogger.LoggingLevel.Interesting,i.toString());return}var g,k=null;if(Boolean(b.ctx.RealHttpRoot)&&(k=ListModule.Util.makeMountedFolderQueryStrParams(false,false))!=null)g=b.ctx.RealHttpRoot;else g=b.ctx.HttpRoot;e.push(g);g[g.length-1]!="/"&&e.push("/");e.push("_layouts/15/checkin.aspx?List=");e.push(b.ctx.listName);e.push("&IsBulk=1");k!=null&&e.push(k);var o=function(g){if((Flighting.VariantConfiguration.IsExpFeatureClientEnabled(134)||Flighting.VariantConfiguration.IsExpFeatureClientEnabled(160))&&Boolean(b.ctx.RealHttpRoot)){j=new SP.ExceptionHandlingScope(b.cctx);m=j.startScope();n=new SP.RemoteWeb(b.cctx,b.ctx.HttpRoot);m.dispose()}var f,d;for(f in l){SP.QoS.WriteStart(c+"Start");d=l[f];b.CheckinItem(d.id,d.fsObjType,g,n)}SP.DebugLogger.Write(c+"ItemCount",SP.DebugLogger.LoggingLevel.Interesting,i.toString());var k=typeof Strings!="undefined"?Strings.STS.L_Notification_CheckIn:"",e=addNotification(k,true);b.cctx.executeQueryAsync(function(){a(b,j,c,i,h);if(typeof b.rgehs!="undefined"){removeNotification(e);b.ShowErrorDialog(RefreshOnDialogClose)}else RefreshPage(SP.UI.DialogResult.OK)},function(f,d){a(b,j,c,i,h,d);removeNotification(e);typeof b.rgehs!="undefined"&&b.ShowErrorDialog()})},p=function(a,c){if(a==SP.UI.DialogResult.OK)b.EnsureEcbInfo(o,"fnCheckinWithEcb",c,null);else RefreshPage(a)};OpenPopUpPage(e.join(""),p)};_DeleteSelectedItemsCore=function(e,j,m,v,t){e=FixupCtx(e);var f=j.length,b=e.clvp;b.EnsureChangeContext();var r=null,k=null,o=null,i=d("DeleteItems",e);if(ContainsRecurrenceItem(j))return;if(f<=0){SP.QoS.WriteStart(i+"Start");SP.QoS.WriteFailure(i+"Failure_NoItemsSelected");SP.DebugLogger.Write(i+"ItemCount",SP.DebugLogger.LoggingLevel.Interesting,f.toString());return}if(!Boolean(t)){var h=typeof Strings!="undefined"?Strings.STS.L_STSRecycleConfirm_Text:"";if(!Boolean(e.RecycleBinEnabled)||e.ExternalDataList)h=typeof Strings!="undefined"?Strings.STS.L_STSDelConfirm_Text:"";if(e.overrideDeleteConfirmation!=null)h=e.overrideDeleteConfirmation;if(Boolean(e.HasRelatedCascadeLists)&&e.CascadeDeleteWarningMessage!=null)h=e.CascadeDeleteWarningMessage+h;if(Boolean(e.HasRelatedCascadeLists)&&e.listTemplate==171){var l=false,g=0;if(e.inGridMode){var w=window[g_SPGridInitInfo[e.view].controllerId];for(g=0;g0){var x=typeof Strings!="undefined"?Strings.STS.L_Notification_Delete:"",s=addNotification(x,true);b.cctx.executeQueryAsync(function(){a(b,k,i,f,c);if(typeof b.rgehs!="undefined"){if(b.rgehs.length==1&&b.rgehs[0].get_serverErrorCode()==SP.ClientErrorCodes.redirect){GoToPage(b.rgehs[0].get_serverErrorValue());return}removeNotification(s);b.ShowErrorDialog(m)}else m!=null&&m()},function(e,d){a(b,k,i,f,c,d);removeNotification(s);typeof b.rgehs!="undefined"&&b.ShowErrorDialog(v)})}}})();(function(){var a=function(b,d,a){var c="s4-dlg-err-itm";if(!d){c="s4-dlg-err-firstitm";a.push(SP.Res.dlgTitleError)}var e=b.get_errorMessage();a.push('
');if(typeof b.itmContext!="undefined")try{a.push('
');a.push(b.itmContext.get_item("FileLeafRef"));a.push("
")}catch(f){a.push("
")}a.push('
');a.push(e);a.push("
");a.push("")};_CLVPShowErrorDialog=function(d,f,e){var k,b=[],g=null,c=false;if((Flighting.VariantConfiguration.IsExpFeatureClientEnabled(134)||Flighting.VariantConfiguration.IsExpFeatureClientEnabled(160))&&Boolean(e))if(e.get_hasException()){a(e,c,b);c=true}for(k in d.rgehs){var i=d.rgehs[k];if(i.get_hasException())if(!(d.ctx.listTemplate==171&&i.get_serverErrorCode()==-2147024809)){a(i,c,b);c=true}}if(c){b.push("
")}var j=b.join("");if(j.length>0){var h=document.createElement("DIV");h.className="s4-dlg-err";h.innerHTML=j;var l={html:h,title:typeof Strings!="undefined"?Strings.STS.L_ErrorDialog_Title:"",dialogReturnValueCallback:f},m=new SP.UI.ModalDialog.showModalDialog(l);g=document.getElementById("ms-OKBtnDismissDlg");Boolean(g)&&g.focus()}else typeof f=="function"&&f();d.rgehs=[]}})();g_FP_nextId=1;c_fpContainerID="DeltaPlaceHolderSearchArea";c_maxFaces=4;ExecuteOrDelayUntilScriptLoaded(function(){SP.SOD.executeFunc("mquery.js","m$",bindSharingEventsForFacePile)},"core.js");g_ClipboardControl=null;g_IsClipboardControlValid=false;(function(){window.FollowingDocument=function(){ExecuteOrDelayUntilScriptLoaded(function(){var b=SP.ScriptHelpers.getDocumentQueryPairs(),c,e,f,d;for(var a in b)if(a.toLowerCase()=="followdocument")c=b[a];else if(a.toLowerCase()=="itemid")e=b[a];else if(a.toLowerCase()=="listid")f=b[a];else if(a.toLowerCase()=="docname")d=decodeURI(b[a]);c!=null&&c=="1"&&f!=null&&e!=null&&d!=null&&SP.SOD.executeFunc("followingcommon.js","FollowDocumentFromEmail",function(){FollowDocumentFromEmail(e,f,d)})},"SP.init.js")};window.FollowingCallout=function(){var b=54,a=55;if(typeof SPClientTemplates==="undefined"||SPClientTemplates===null||typeof APD_InAssetPicker==="function"&&APD_InAssetPicker())return;var d=function(c,d){if(!(window.OffSwitch==null||OffSwitch.IsActive("b9530760-4111-42c9-9af1-b7bbdfd33b9e"))){SP.SOD.executeFunc("followingcommon.js","PrepareYammerEnvironment",function(){PrepareYammerEnvironment(null)});window.DocLibCalloutPostToYammer=function(b){var a=function(){PostSelectedDocToYammer(b)};if(typeof PostSelectedDocToYammer==="undefined"||typeof PostSelectedDocToYammer===null)SP.SOD.executeFunc("followingcommon.js","PostSelectedDocToYammer",a);else a()}}if(c.ListTemplateType==700||typeof isSharedWithUsView=="function"&&isSharedWithUsView())typeof myDocsActionsMenuPopulator!="undefined"&&myDocsActionsMenuPopulator(c,d);else CalloutOnPostRenderTemplate(c,d);var e=c.CurrentItem;if(typeof e==="undefined"||e===null)return;var g=false,f=getViewCtxFromCalloutCtx(c);if(typeof f!="undefined"&&Boolean(f))g=f.BaseViewID==b||f.BaseViewID==a||typeof isSharedWithUsView=="function"&&isSharedWithUsView();if(e.FSObjType==0&&!g&&!Boolean(c.RealHttpRoot)&&(!Flighting.VariantConfiguration.IsExpFeatureClientEnabled(134)||!IsMountPoint(e)))if(!(window.OffSwitch==null||OffSwitch.IsActive("b9530760-4111-42c9-9af1-b7bbdfd33b9e"))&&SP!=null&&typeof SP.YammerSwitch!="undefined"&&SP.YammerSwitch!=null&&typeof SP.YammerSwitch.IsEnabled!="undefined"&&Boolean(SP.YammerSwitch.IsEnabled))d.addAction(new CalloutAction({text:Strings.STS.L_CalloutPostAction,tooltip:Strings.STS.L_CalloutPostAction_Tooltip,onClickCallback:function(){var a=GetCalloutFromRenderCtx(c);!(typeof a==="undefined"||a===null)&&a.close();DocLibCalloutPostToYammer(c)}}));else(!Flighting.VariantConfiguration.IsExpFeatureClientEnabled(424)||window.groupContextData==null)&&window.IsSPSocialSwitchEnabled&&IsSPSocialSwitchEnabled()&&d.addAction(new CalloutAction({text:Strings.STS.L_CalloutFollowAction,tooltip:Strings.STS.L_CalloutFollowAction_Tooltip,onClickCallback:function(){var a=GetCalloutFromRenderCtx(c);!(typeof a==="undefined"||a===null)&&a.close();_WriteDocEngagement("Documents_CalloutFollowClick","OneDrive_CalloutFollowClick");SP.SOD.executeFunc("followingcommon.js","FollowSelectedDocument",function(){FollowSelectedDocument(c)})}}))},c=function(e){var c={};c.BaseViewID="Callout";c.ListTemplateType=e;c.Templates={};c.Templates.Footer=function(e){var f=true,c=getViewCtxFromCalloutCtx(e);if(typeof c!="undefined"&&Boolean(c))f=c.BaseViewID!=b&&c.BaseViewID!=a&&(typeof isGroupsSharedWithUsView!="function"||!isGroupsSharedWithUsView());return CalloutRenderFooterTemplate(e,d,f)};SPClientTemplates.TemplateManager.RegisterTemplateOverrides(c)};typeof SP.UI.Group==="undefined"&&c(101);SP.SOD.executeFunc("mydocs.js","myDocsActionsMenuPopulator",function(){c(700)})}})();typeof NotifyScriptLoadedAndExecuteWaitingJobs=="function"&&NotifyScriptLoadedAndExecuteWaitingJobs("core.js");typeof spWriteProfilerMark=="function"&&spWriteProfilerMark("perfMarkEnd_core.js")}var SPAnimation;function SPCurve(b,a,c,e,d,f){this.ID=b;this.type=a;this.x1=c;this.y1=e;this.x2=d;this.y2=f}function SPKeyFrame(h,e,c,f,d,g,b,a){this.type=h;this.curveID=e;this.startTime=c;this.endTime=f;this.startValue=d;this.endValue=g;this.relativeTo=b;this.operationType=a}function Animation(a,b){this.ID=a;this.keyFrames=b}function UpdateAnimationStateFromQuery(){var a=window.location.href,b=a!=null&&a.indexOf("Animation=0")!=-1,c=a!=null&&a.indexOf("Animation=1")!=-1;b&&SPAnimation.Settings.DisableAnimation();c&&SPAnimation.Settings.EnableAnimation()}function AnimationEngine(){this.AnimationQueue=new Array(0);this.sharedTimer=null;this.sharedCancelTimer=null;this.frameInterval=1e3/60;this.resetInterval=3e4;this.sharedTimerRefs=0;this.conflictTable=new Array(0);this.currentAnimationIndex=-1;this.temporaryIDGenerator=0}function SPAnimation_State(){this.Index=0;this.Data=new Array(0)}function SPAnimation_Object(a,f,e,b,c,d){this.Initialize(a,f,e,b,c,d)}function AnimationUnit(d,e,c,a,b){this.Initialize(d,e,c,a,b)}function AnimationTelemetry(){this.perfData=new Array(0);this.logData=new Array(0);this.perfDataIndex=0;this.logDataIndex=0;this.animationIndex=0;this.startTime=null;this.duration=null;this.numAddedUnits=0}function GetCurrentAttributeValue(b,c){var a=0;switch(c){case 1:if(fRightToLeft)a=parseInt(b.style.right.replace("px",""));else a=parseInt(b.style.left.replace("px",""));break;case 2:a=parseInt(b.style.top.replace("px",""));break;case 3:a=parseInt(b.style.height.replace("px",""));break;case 4:a=parseInt(b.style.width.replace("px",""));break;case 5:a=GetOpacity(b)}return a}function TrySetProperty(b,c,d){var a=false;if(b!=null)try{b[c]=d;a=true}catch(e){}return a}function B1(a){return a*a*a}function B2(a){return 3*a*a*(1-a)}function B3(a){return 3*a*(1-a)*(1-a)}function B4(a){return(1-a)*(1-a)*(1-a)}function BezierFunction(d,b,e,c,a){return 0*B4(a)+b*B3(a)+c*B2(a)+1*B1(a)}function GetAnimationWSA(){if(typeof SPAnimation.g_AnimationWSA=="undefined"||!Boolean(SPAnimation.g_AnimationWSA))if(SP)if(SP.BWsaClient!=null){var a=GetWSA();SPAnimation.g_AnimationWSA=a;SPAnimation.g_AnimationWSA.createStream(SPAnimation.DATAID_SPANIMATION,1,8,200)}return SPAnimation.g_AnimationWSA}var SPAnimationUtility;function SPAnimUtil_TableAnimator(a){this.tableElement=a;this.fAnimatable=false;this.Initialize()}function SiteLogoImagePageUpdate(a,b){a.src=b.ImageUrl;a.alt=b.AlternateText}function SearchAreaPageUpdate(c,b){var a=c.getElementsByTagName("select")[0];a.options[0].value=b.Site.value;a.options.length>1&&a.remove(1);if(b.List.isValid){a.options[1]=new Option(b.List.text,b.List.value);a.selectedIndex=1}else a.selectedIndex=0;if(typeof searchAreaUrl!="undefined")searchAreaUrl=b.SearchAreaUrl}var IsMenuShown,ChevronContainer,itemTableDeferred,imageCell,onKeyPress,downArrowText,currentEditMenu,currentItemID,currentItemAppName,currentItemProgId,currentItemIcon,currentItemOpenControl,currentItemOpenApp,currentItemFileUrl,currentItemFSObjType,currentItemContentTypeId,currentItemCheckedOutUserId,currentItemCheckoutExpires,currentItemModerationStatus,currentItemUIString,currentItemCheckedoutToLocal,bIsCheckout,currentItemCanModify,currentItemPermMaskH,currentItemPermMaskL,currentItemEvtType,currentItemIsEventsExcp,currentItemIsEventsDeletedExcp,currentItemIsMountPoint,g_MaximumSelectedItemsAllowed,g_CustomActionDialogHandlers,g_CustomActionDialogHandlerId,g_RevertToClassicMessageId,g_ExpGroupWPState,DocOpen,hoverTR,ecbTD;function RowOnHover(b,c){var g=b.getAttribute("iid"),f=CtxFromRow(b);if(CountSelectedItems(f)>1&&ItemIsCurrentlySelected(f,g,b)){ecbTD=null;hoverTR=null;for(var e=0;e=0?ShowCalloutMenuForTr(d,b,c):true}function ShowCalloutMenuForTr(c,d,b){var a=false;EnsureScriptFunc("callout.js","Callout",function(){a=ShowCalloutMenuForTrInner(c,d,b)});return a}function ShowCalloutMenuForTrInner(i,a,h){var d=Flighting.VariantConfiguration.IsExpFeatureClientEnabled(162);if(IsEventRightClickOnAnchor(a)&&!d)return true;var c=GetAncestor(i,"TR"),f=GetEcbTdFromRow(c),b=GetEcbDivFromEcbTd(f),e=GetEcbAffordanceDivFromRow(c);if(b==null)return true;if(d&&a.type=="contextmenu"&&a.target!=null)e=a.target.nodeName.toUpperCase()=="IMG"?a.target.parentNode:a.target;h&&SingleItemSelectByElement(c,false);var g=GetAttributeFromItemTable(b,"ItemId","Id");OpenCallout(e,a,b,g);return false}function FIsMouseCursorInsideElement(a,c){if(a==null||c==null||a.clientX==null||a.clientY==null||a.clientX==0||a.clientY==0)return false;var b=c.getBoundingClientRect();return b.left<=a.clientX&&b.right>=a.clientX&&b.top<=a.clientY&&b.bottom>=a.clientY?true:false}var ProtocolCommand,phManager;function CBSelectedValues(b,a){this.strList=b;this.fAllChecked=a}function CBSelectedValues_InitializePrototype(){CBSelectedValues.prototype.strList="";CBSelectedValues.prototype.fAllChecked=false}var _groupCollapse,bGridViewPresent,_fV4Calendar,_spCustomNavigateHierarchy,g_ExtensionNotSupportCheckoutToLocal,g_ExtensionDefaultForRead,bValidSearchTerm,ListCtrlObj,fListControl,fListErrorShown,fNewDoc,fNewDoc2,fNewDoc3,SPDesignerDownloadUrl,SPDesignerProgID;function CtxRgiid(b,a){this.ctx=b;this.rgiid=a}function CtxRgiid_InitializePrototype(){CtxRgiid.prototype={ctx:undefined,rgiid:undefined}}function FilterNoteField(b,g,i,o){if(o!=13)return;event.returnValue=false;var a=window.location.href,m=/&Paged=TRUE&p_[^&]*&PageFirstRow=[^&]*/gi;a=a.replace(m,"");var f=Nav.getUrlKeyValue("View",true);if(f==""){a=StURLSetVar2(a,"View",b);f=b}var e;if(b.toUpperCase()!=f.toUpperCase()){var k=escapeProperly(b);if(k.toUpperCase()!=f.toUpperCase()){var p=/\?[^?]*/i;e=a.indexOf("?");if(e!=-1)a=a.replace(p,"?View="+b);else a=a+"?View="+b}}var c=a.match(new RegExp("FilterField([0-9]+)="+g));if(c==null){e=a.indexOf("?");if(e!=-1)a=a+"&";else a=a+"?";var d=0,h;do{d++;h=a.match(new RegExp("FilterField"+String(d)+"=[^&]*&FilterValue"+String(d)+"=[^&]*"))}while(h!=null);a=a+"FilterField"+String(d)+"="+g+"&FilterValue"+String(d)+"="+escapeProperly(i);a=a.replace("Filter=1&","")}else{var n=parseInt(c[1]),l=a.match(new RegExp("&FilterValue"+String(n)+"=[^&]*")),q="&"+c[0]+l[0],j="&FilterField"+c[1]+"="+g+"&FilterValue"+c[1]+"="+escapeProperly(i);a=a.replace(q,j);a=a.replace("Filter=1&","")}window.location.href=STSPageUrlValidation(a)}function _SelectField(k,m){var a=ajaxNavigate.get_href(),i=ajaxNavigate.get_hash(),b=false,e=/\#.*/i;a=a.replace(e,"");var h=Nav.getUrlKeyValue("View",true),g=Nav.getUrlKeyValue("PageView",true),j=Nav.getUrlKeyValue("ID",true),f=Nav.getUrlKeyValue("ContentTypeId",true);if(k.toUpperCase()!=h.toUpperCase()){var c=escapeProperly(k);if(c.toUpperCase()!=h.toUpperCase()){e=/\?[^?]*/i;var l=a.indexOf("?");if(l!=-1)a=a.replace(e,"?View="+c);else a=a+"?View="+c;b=true}}if(!b&&Nav.getUrlKeyValue("SelectedID")!=""){var d=/&SelectedID=[^&]*/gi;a=a.replace(d,"");d=/\?SelectedID=[^&]*&?/;a=a.replace(d,"?")}a=a+"&SelectedID=";a=a+m;if(b&&g!="")a=a+"&PageView="+g;if(j!="")a=a+"&ID="+j;if(f!="")a=a+"&ContentTypeId="+f;if(i!="")a=a+i;_SubmitFormPost(a);return false}function getSortQueryParam(b){if(b==null||b=="")return"";var c="",a;a=b.match(new RegExp("SortField=[^&]*&SortDir=[^&]*"));if(a!=null)c=a[0];return c}function _FilterField(d,b,a,c){return FilterFieldV3(d,b,a,c,"",false)}function _SetControlValue(b,c){var a=document.getElementById(b);if(a!=null)a.value=c}function SetSearchView(){if(typeof bValidSearchTerm!="undefined")bValidSearchTerm=true}function GroupCollapse(){return typeof _groupCollapse!="undefined"&&_groupCollapse}function HandleFilter(c,a,b){if(FV4UI()){EnsureScriptParams("inplview","inplview.HandleFilterReal",c,a,b);return}_SubmitFormPost(a)}function _SubmitFormPost(a,d,c){if(typeof MSOWebPartPageFormName!="undefined"){var b=document.forms[MSOWebPartPageFormName];if(null!=b)if(d!=undefined&&d==true||typeof b.onsubmit=="undefined"||b.onsubmit==null||b.onsubmit()!=false){typeof window.WebForm_OnSubmit=="function"&&window.WebForm_OnSubmit();if(ajaxNavigate.get_search().match(new RegExp("[?&]IsDlg=1"))!=null)a+=a.indexOf("?")==-1?"?IsDlg=1":"&IsDlg=1";if(FV4UI())try{var e=SP.Ribbon.PageManager.get_instance().get_ribbon().get_selectedTabId();if(Boolean(e)){a=StURLSetVar2(a,"InitialTabId",escapeProperly(e));a=StURLSetVar2(a,"VisibilityContext","WSSTabPersistence")}}catch(f){}if(c!=undefined&&c==true){a=DemoteIntoFormBody(b,a,"owsfileref");a=DemoteIntoFormBody(b,a,"NextUsing")}b.action=STSPageUrlValidation(a);b.method="POST";if(isPortalTemplatePage(a))b.target="_top";!bValidSearchTerm&&_ClearSearchTerm("");b.submit()}}}function DemoteIntoFormBody(e,c,b){var d=Nav.getUrlKeyValue(b,false,c);if(d.length>0){var a=document.createElement("INPUT");if(a!=null){a.setAttribute("type","hidden");a.setAttribute("id",b);a.setAttribute("name",b);a.setAttribute("value",d);e.appendChild(a);return RemoveUrlKeyValue(b,c)}}return c}function _RefreshPageTo(b,c,a){EnsureScript("inplview",typeof inplview,null,true);inplview.RefreshPageTo(b,c,a)}var g_varSkipRefreshOnFocus;function RefreshOnFocus(){(typeof g_varSkipRefreshOnFocus=="undefined"||!Boolean(g_varSkipRefreshOnFocus))&&_RefreshPage(1)}function RefreshOnFocusForOneRow(){RefreshOnFocus()}function DisableRefreshOnFocus(){g_varSkipRefreshOnFocus=1}function SetWindowRefreshOnFocus(){window.onbeforeunload=DisableRefreshOnFocus;window.onfocus=RefreshOnFocus}function _GoToPageRelative(a){if(a.substr(0,4)!="http"&&a.substr(0,1)!="/"){var b=RemoveParametersFromUrl(window.location.href),c=b.lastIndexOf("/");if(c>0)a=b.substring(0,c+1)+a}GoToPage(a)}function CallSuiteExtensionControlFactory(a,f,c,d,e){if(IsFileExtensionControlsSupported())if(typeof SuiteExtensions=="object"&&typeof SuiteExtensions.ControlFactory=="function"&&typeof SuiteExtensions.ControlType=="function")if(typeof SuiteExtensions.ControlFactory.CreateControl=="function"&&typeof SuiteExtensions.ControlType.Edit=="number"){var b=SuiteExtensions.ControlFactory.CreateControl(c,SuiteExtensions.ControlType.Edit);if(b!=null){b.httpRoot=d;b.itemUrl=e;b.updateElement(a);if(IsFileHandlerForAllNonOfficeFilesSupported()){a.editHref="";a.removeAttribute("isEdit");a.removeAttribute("App");itemTable=FindSTSMenuTable(a,"CTXName");itemTable!=null&&itemTable.removeAttribute("App")}}}}function EnterFolderAjax(g,b,e,i){var a=GetCurrentCtx();if(!Boolean(a))return;g!=null&&CancelEvent(g);if(a.clvp!=null){if(Boolean(a.RealCtx)){a=a.RealCtx;a.RealCtx=null;typeof SaveCurrentContextInfo=="function"&&SaveCurrentContextInfo(a)}var j=b;b=Boolean(b)?unescapeProperly(b):"";var c=null;if(Boolean(e)){var h=e.indexOf("?");if(h>=0)e=e.substring(h+1);c=MountPointInfo.createByQueryString(e);a.mountPointUrl=c.getMountPointUrl();a.rootFolder="";a.clvp.rootFolder="";a.hasRootFolder=false;a.RealHttpRoot=a.HttpRoot}else{if(Boolean(i)){c=MountPointInfo.createByContext(a);if(c.isInitProperly){var d=c.rootFolder;if(d!=""&&d.indexOf(b)==0||b!=""&&b.indexOf(d)==0)if(d.length>b.length)c.decrementMinorLevel();else d.length':' : '}function e(){return Flighting.VariantConfiguration.IsExpFeatureClientEnabled(424)&&window.groupContextData!=null?"":b(f(),"",false)}function b(b,e,c){var d="EnterFolderAjax(event, '"+URI_Encoding.encodeURIComponent(e)+"', '', "+String(c)+");",a=''+STSHtmlEncode(b)+"";return a}function g(){return Boolean(a.RealHttpRoot)}this.RenderBreadCrumb=function(){var a;if(Flighting.VariantConfiguration.IsExpFeatureClientEnabled(424)&&window.groupContextData!=null)a=document.getElementById("groupDobLibBreadCrumb");else a=document.getElementById("DeltaPlaceHolderPageTitleInTitleArea");a!=null&&EnsureScript("inplview",typeof inplview,function(){var c=j.render();if(Flighting.VariantConfiguration.IsExpFeatureClientEnabled(424)&&window.groupContextData!=null){var b=document.getElementById("groupDocLibPivotBox");if(b!=null)if(Boolean(c))b.style.display="none";else b.style.display=""}a.innerHTML=c})};this.render=function(){if(d==null&&Boolean(_spPageContextInfo))d=_spPageContextInfo.serverRequestPath;var l=i(),o=g(),v="",n=MountPointInfo.createByContext(a),k=-1;if(!Boolean(l)||l==c()||l.indexOf(c())!=0)return e();var j=l.substring(c().length);if(j.length==0||j[0]!="/")return e();j=j.substring(1);k=j.lastIndexOf("/");var m,r,p,q,s=false;if(k<=0||o&&n.getMinorLevel()==0){if(Boolean(window.OverrideBreadcrumbRoot))m=Strings.STS.L_GroupFilesCommand;else m=f();p="";r=k>0?j.substring(k+1):j;q=l;if(o&&n.isInitProperly){j=n.mpPrefix.substring(_spPageContextInfo.webServerRelativeUrl.length+1);var u=j.split("/"),t=u.length;if(t>=2)m=u[t-2];p=n.mpPrefix.substring(0,n.mpPrefix.lastIndexOf("/"));q=""}}else{r=j.substring(k+1);j=j.substring(0,k);k=j.lastIndexOf("/");m=j.substring(k+1);k=l.lastIndexOf("/");p=l.substring(0,k);q=l;s=o}return b(m,p,s)+h()+b(r,q,o)}}function _EnterFolder(c){var b,a,e=new URI(ajaxNavigate.get_href()),f=new URI(c);b=e.getQueryParameter("RootFolder");a=f.getQueryParameter("RootFolder");if(!Boolean(a))a="";if(!Boolean(b))b="";var d=a!=null&&a.length>0&&a.charAt(0)=="/"&&a.length0)for(var b=0;b0?[].slice.call(d):[],i=document.getElementsByTagName("link").length>0?[].slice.call(document.getElementsByTagName("link")):[],c=document.head.querySelectorAll("head>script[src^='/_layouts']"),e=Boolean(c)?[].slice.call(c):[],g=getUnique([].concat.apply([],[f,h,i,e]));RemoveDOMNodes(g);var b=a.bodyNodesBeforeOnePageNavigation;Boolean(b)&&RemoveDOMNodes([].slice.call(b))}function clearBodyDOMElements(){var a=document.body.childNodes.length>0?[].slice.call(document.body.childNodes):[];a.length>0&&RemoveDOMNodes(a)}function clearDOMElementsBeforeFallback(){var a=document.childNodes.length>0?[].slice.call(document.childNodes):[];a.length>0&&RemoveDOMNodes(a)}function prefetchCallback(g,l,k,f){var b=true,c={};try{if(g==200){mark("EUPL.OnePage.Prefetch.End");var d=undefined,a=JSON.parse(l),h=undefined;if(Boolean(a)){var e=Boolean(a.NewExperienceRendering);if(Boolean(a.ViewMetadata)){h=a.ViewMetadata.Id;b=!e;c={shouldRenderNewExperience:e};if(e){var i=Boolean(a.ShouldLoadSPFramework),j=Boolean(a.SPFrameworkClientInfo);b=b||i&&!j;c.ShouldLoadSPFramework=i}}d=JSON.parse(a.PageContextInfo);if(Boolean(h))d.viewId=h}if(!b){displayPageContent(true,f);updatePageContext(d,f);k(d);SP.QoS.WriteSuccess("ClassicToModernOnePageNavigation_Success")}}else{SP.QoS.WriteFailure("ClassicToModernOnePageNavigation_FailureHttpStatus",{prefetchStatus:g});c["prefetch failure"]=g}}catch(m){SP.QoS.WriteFailure("ClassicToModernOnePageNavigation_FailureException",{exception:m.toString()});c.exception=m.toString();b=true}b&&fallbackToNormalNavigation(f.fallbackUrl,c)}function updatePageContext(a,b){if(!(window.OffSwitch==null||OffSwitch.IsActive("33A53C67-7F66-418D-836D-AB0CE62123BA"))&&typeof a!=="undefined"){window._spPageContextInfo=a;if(isItemsScope())if(isSPListLightSpeed())if(isWebpack())loadResourcesFromModern(b,"updatePageContextForLightSpeed",function(b){b(a)});else require([mapModuleName("odsp-next/roots/splist/SPListLightSpeed",b)],function(c){var b=c.updatePageContextForLightSpeed;b&&b(a)});else if(!(window.OffSwitch==null||OffSwitch.IsActive("E3AC56EF-E1BB-4760-B7D9-0A07F48298BD"))){var c=getSplistEntryModule();c==="odsp-next/roots/splist/SPList-IS"&&require([mapModuleName(c,b)],function(c){var b=c.updatePageContextForClassicOnePage;b&&b(a)})}}}function isWebpack(){return!(window.OffSwitch==null||OffSwitch.IsActive("DB2D39E3-45A8-4DA7-8BF9-DED05F2D330F"))&&window._spModuleLink.manifestName==="SPListWebPack"}function loadResourcesFromModern(b,d,c){if(!Boolean(b.resources))b.resources={};var a=b.resources[d];if(!Boolean(a))a=b.resources[d]={};if(Boolean(a.value))c(a.value);else a.callback=c}function fixUpBrowserLocation(a){if(Boolean(window.history)&&Boolean(window.history.pushState)&&Boolean(window.history.replaceState)){var b=window.location.href;window.history.replaceState({onepageInfo:"ClassicPageBeforeNavigatingToModernPage",originalNavUrl:a.fallbackUrl},"ClassicPageBeforeNavigatingToModernPage",b);window.history.pushState({onepageInfo:"ModernPageFromClassicPage",urlBeforeNavigation:b},"ModernPageFromClassicPage",a.newBrowserLocation)}else fallbackToNormalNavigation(a.fallbackUrl,{"window.history":Boolean(window.history)})}function fallbackToNormalNavigation(a,d){if(!(window.OffSwitch==null||OffSwitch.IsActive("88105407-2855-45BC-90F1-E3C26E98DB79")))clearDOMElementsBeforeFallback();else clearBodyDOMElements();SP.QoS.WriteUserEngagement("ClassicToModernOnePageNavigation_FallbackToNormalNavigation",{reason:d,location:Boolean(a)?a.split("/"):undefined});if(Boolean(window.history)&&Boolean(window.history.pushState)&&Boolean(window.history.replaceState)){var b=window.history.state.urlBeforeNavigation;Boolean(b)&&window.history.replaceState({onepageInfo:"BeforeFallbackToNormalNavigation"},"BeforeFallbackToNormalNavigation",b)}var c=window.OffSwitch==null||OffSwitch.IsActive("57AC0D40-DEBB-4EEF-AA45-3E6EC93FF6B5")?5e3:1e3;if(Boolean(a))if(!(window.OffSwitch==null||OffSwitch.IsActive("791F30E4-53FE-44CA-81DB-CC0CD010BFC9")))window.location.href=a;else window.setTimeout(function(){window.location.href=a},c)}function applyStylesForOnePageNavigation(a){var b=window.__themeState__;b.registeredStyles=[];mark("before require theme code");if(isWebpack())loadResourcesFromModern(a,"loadStyles",function(e){var c=a.resolvedToBeRegisteredStyles;b.loadStyles=undefined;if(Boolean(c)&&c.length>0){for(var d=0;d0){for(var d=0;d0){for(var d=0;d0){for(var d=0;dthis.length)a=this.length;return this.substring(a-b.length,a)===b}}function doPrepareWorkBeforeOnePageNav(a){clearAllDOMElements(a);clearEventHandlers();spinnerOnload(a);createMetaNodes();applyStylesForOnePageNavigation(a);!(window.OffSwitch==null||OffSwitch.IsActive("DB2D39E3-45A8-4DA7-8BF9-DED05F2D330F"))&&applyStringPolyfill();GCBeforeOnePageNavigation(a)}function doPrepareWorkBeforeOnePageNavForFasterOnePage(a){clearAllDOMElements(a);displayPageContent(false,a);clearEventHandlers();createMetaNodes();!(window.OffSwitch==null||OffSwitch.IsActive("DB2D39E3-45A8-4DA7-8BF9-DED05F2D330F"))&&applyStringPolyfill();GCBeforeOnePageNavigation(a);window.__odsp_culture=a.__odsp_culture;if(a.__odspSriHashes)window.__odspSriHashes=a.__odspSriHashes}function bootModernApp(a){try{doPrepareWorkBeforeOnePageNavForFasterOnePage(a);applyStylesAndBoot(a)}catch(b){fallbackToNormalNavigation(a.fallbackUrl,{exception:b.toString()})}}function runModernAppPrefetchForFasterOnePage(a){mark("EUPL.OnePage.Prefetch.Start");var b=window._spPageContextInfo;if(Boolean(a.startPrefetch)&&Boolean(a)&&Boolean(a.targetListUrl))a.startPrefetch({inputPageContextInfo:{webAbsoluteUrl:b.webAbsoluteUrl,webTemplate:b.webTemplate,listBaseTemplate:101,listUrl:a.targetListUrl},onePagePrefetchCompleteCallback:function(c,d,b){prefetchCallback(c,d,b,a)}});else fallbackToNormalNavigation(a.fallbackUrl,{startPrefetch:Boolean(a.startPrefetch),targetListUrl:Boolean(a.targetListUrl)})}function preloadModernApp(){var a=window.__onePageContext;if(Boolean(a))loadModernAppInternalForFasterOnePage(a);else window.__onePageContextReady=function(a){loadModernAppInternalForFasterOnePage(a)}}function checkRequireJSLoaded(){return typeof require!=="undefined"&&Boolean(require)&&typeof require==="function"&&Boolean(require.version)&&Boolean(require.config)}function checkSPModuleLoader(){return typeof spModuleLoader!=="undefined"}function checkLoadThemableStyles(){var a=Boolean(window.__themeState__);a&&SP.QoS.WriteUserEngagement("LoadThemableStyles_Before_OnePage");return!(window.OffSwitch==null||OffSwitch.IsActive("43CD91E9-E92F-4B07-B4CD-078A917FD612"))&&a}function cleanRequireJS(){window["require"]=window.requirejs=window.define=undefined}function cleanFabricGlobals(){if(typeof __globalSettings__!=="undefined")window.__globalSettings__=__globalSettings__=undefined;if(typeof __stylesheet__!=="undefined")window.__stylesheet__=__stylesheet__=undefined}function loadRequireJS(b,c){if(Boolean(b)&&!Boolean(getMarkTime("EUPL.OnePage.LoadRequireJS.Start"))){mark("EUPL.OnePage.LoadRequireJS.Start");cleanRequireJS();var a=document.createElement("script");a.type="text/javascript";a.src=b;a.onload=a.onreadystatechange=function(){if(!Boolean(a.readyState)||/loaded|complete/.test(a.readyState)){mark("EUPL.OnePage.LoadRequireJS.End");checkRequireJSLoaded()&&c();a.onload=a.onreadystatechange=null;a=undefined}};document.head.insertBefore(a,document.head.firstChild)}}function setLoadStylesOverride(a){if(!Boolean(window.__themeState__))window.__themeState__={theme:undefined,lastStyleElement:undefined,registeredStyles:[]};window.__themeState__.loadStyles=function(c,b){a.resolvedToBeRegisteredStyles.push(b)}}function mapModuleName(a,b){var c=a;if(Boolean(b)&&Boolean(b.moduleNameMapping)&&Boolean(a)&&Boolean(b.moduleNameMapping[a]))c=b.moduleNameMapping[a];return c}function getFeatureOverrides(){var a=GetCookie("FeatureOverrides_disableFeatures"),c=Boolean(a)?a.split(","):[],b=GetCookie("FeatureOverrides_enableFeatures"),d=Boolean(b)?b.split(","):[];return{disabledOverrideFeatures:c,enabledOverrideFeatures:d}}function isSPListLightSpeed(){var a="1484",b=getFeatureOverrides();return Flighting.VariantConfiguration.IsExpFeatureClientEnabled(1484)&&b.disabledOverrideFeatures.indexOf(a)<0||b.enabledOverrideFeatures.indexOf(a)>=0}function isItemsScope(){var a="851",b=getFeatureOverrides(),d=Flighting.VariantConfiguration.IsExpFeatureClientEnabled(851)&&b.disabledOverrideFeatures.indexOf(a)<0||b.enabledOverrideFeatures.indexOf(a)>=0,c=window.OffSwitch==null||OffSwitch.IsActive("3D2DB2F7-3E4D-4B7A-B902-FF284D08EDD0");return d&&!c}function isIEDisabledForItemsScope(){return!(window.OffSwitch==null||OffSwitch.IsActive("E4E318FE-335A-4662-8343-5158D4DBE29E"))&&Boolean(_spPageContextInfo.IsIEDisabledForItemsScope)}function getSplistEntryModule(){var a="odsp-next/SPList";return isItemsScope()&&!isIEDisabledForItemsScope()?isSPListLightSpeed()?"odsp-next/roots/splist/SPListLightSpeed":"odsp-next/roots/splist/SPList-IS":"odsp-next/SPList"}function loadModernAppInternalForFasterOnePage(a,c){if(c||!checkRequireJSLoaded()&&!checkSPModuleLoader()&&!checkLoadThemableStyles()){var b=function(){setLoadStylesOverride(a);var b=a.requireConfig;if(Boolean(b)&&!Boolean(getMarkTime("EUPL.OnePage.requireConfig.Start"))){mark("EUPL.OnePage.requireConfig.Start");b()}if(isWebpack()){loadResourcesFromModern(a,"ONEPAGE_GLOBALS",function(b){a.modernGlobalWhiteList=b});loadResourcesFromModern(a,"startPrefetch",function(b){a.startPrefetch=b;Boolean(a.startPrefetchLoadedCallBack)&&a.startPrefetchLoadedCallBack(a)})}else require([mapModuleName("odsp-next/dataSources/item/odb/ListViewDataPrefetch",a)],function(b){a.modernGlobalWhiteList=b.ONEPAGE_GLOABLS;a.startPrefetch=b.startPrefetch;Boolean(a.startPrefetchLoadedCallBack)&&a.startPrefetchLoadedCallBack(a)});if(isWebpack())loadResourcesFromModern(a,"SPListBoot",function(b){a.boot=b;Boolean(a.spListBootLoadedCallBack)&&a.spListBootLoadedCallBack(a)});else{var c=getSplistEntryModule();require([mapModuleName(c,a)],function(b){a.boot=b.SPListBoot;Boolean(a.spListBootLoadedCallBack)&&a.spListBootLoadedCallBack(a)})}};loadRequireJS(a.requireJSPath,b)}}function partialFixPageContext(a){_spPageContextInfo.listTitle=undefined;_spPageContextInfo.listid=undefined;_spPageContextInfo.listUrl=a.listUrl;_spPageContextInfo.viewId=SP.Guid.get_empty().toString("B");_spPageContextInfo.serverRedirectedUrl=undefined}function performModernOnePageNavigationForFasterOnePage(c){SP.QoS.WriteStart("ClassicToModernOnePageNavigation_Start");mark("EUPL.OnePageNavigation.Start");var a=window.__onePageContext;if(Boolean(a)){a.fallbackUrl=c.currentTarget.href;var b=GetOnePageNavUrl(c.currentTarget.getAttribute("href"));a.targetListUrl=b.listUrl;a.newBrowserLocation=b.newBrowserLocation;a.classicGlobalWhiteList=a.classicGlobalWhiteList=["fallbackToNormalNavigation","displayPageContent","SP","URI","BrowserStorage","unescapeProperly","OnePageUtil","updatePageContext","GetCookie","GetCookieEx","getFeatureOverrides","isSPListLightSpeed","isItemsScope","isIEDisabledForItemsScope","getSplistEntryModule","GCGivenGlobals","applyStylesAndBoot","isWebpack","loadResourcesFromModern","CancelEvent","prefetchCallback","clearBodyDOMElements","clearDOMElementsBeforeFallback","RemoveDOMNodes","__stylesheet__","__globalSettings__","mapModuleName","OffSwitch","Flighting","executeSuiteNav","executeSuiteNavImpl","executeSuiteNavOnce"];partialFixPageContext(b);var d=a.requireJSPath;fixUpBrowserLocation(a);clearAsyncTimer();if(Boolean(getMarkTime("EUPL.OnePage.requireConfig.Start"))){if(Boolean(a.startPrefetch))runModernAppPrefetchForFasterOnePage(a);else a.startPrefetchLoadedCallBack=runModernAppPrefetchForFasterOnePage;if(Boolean(a.boot))bootModernApp(a);else a.spListBootLoadedCallBack=bootModernApp}else{a.startPrefetchLoadedCallBack=runModernAppPrefetchForFasterOnePage;a.spListBootLoadedCallBack=bootModernApp;cleanFabricGlobals();loadModernAppInternalForFasterOnePage(a,true)}return CancelEvent(c)}else fallbackToNormalNavigation(a.fallbackUrl,{onePageContext:Boolean(a)});return true}function GetOnePageNavUrl(a){var b=undefined,c=new URI(a),e=a.toLowerCase().indexOf("/forms/"),f=/\/Lists\/.*(\/[^/]*?\.aspx)/i,d=f.test(a)?a.match(f)[1]:undefined;if(e>=0)b=a.substring(0,e);else if(Boolean(d)){if(["/newform.aspx","/editform.aspx","/dispform.aspx"].indexOf(d.toLowerCase())<0)b=a.substring(0,a.indexOf(d))}else if(a.toLowerCase().indexOf(".aspx")==-1)b=a;var g=c.getQueryAsObject(),h=c.getPath();if(Boolean(h))g.viewpath=h;c.setQueryFromObject(g);return{listUrl:Boolean(b)?URI.decodeURIComponent(b.replace(/\/+$/,"")):undefined,newBrowserLocation:c.getString()}}function spinnerOnload(a){window.setTimeout(b,1e3);function b(){var b=document.getElementById("notificationArea");if(Boolean(b))try{b.parentNode.removeChild(b)}catch(e){}b=document.createElement("div");b.id="notificationArea";b.setAttribute("style","min-width: 140px; z-index: 400; position: absolute; right: 16px;");var d='"Segoe UI Light", "Segoe UI", Tahoma, Helvetica, Arial, sans-serif';b.innerHTML=" "+(typeof a.workingOnIt!="undefined"?a.workingOnIt:"")+"";document.body.appendChild(b);b=document.getElementById("notificationArea");var c=[].slice.call(b.children).reduce(function(b,a){return b+a.offsetWidth},0);b.style.top=String(window.innerHeight*(1-.618))+"px";b.style.left=String(Math.max(10,(window.innerWidth-c)/2))+"px"}}function spinnerOffload(){var a=document.getElementById("notificationArea");if(Boolean(a))try{a.parentNode.removeChild(a)}catch(b){}}function UseDialogsForNewItem(a){var b=GetCtxFromFormUrl(a),d=new URI(a),c=d.getQueryParameter("Type");return Boolean(b)&&c=="1"}var g_useDialogAlwaysList;function UseDialogsForFormsPages(b){if(Boolean(b)){var d=new URI(b),a=d.getLastPathSegment();if(Boolean(a)){a=a.toLowerCase();for(var c=0;c";a.send(d);return a.status==200&&a.responseText.indexOf("true")!=0}function FSupportCheckoutToLocal(a){var c=true;if(a==null||a=="")return false;a=a.toLowerCase();for(var b=0,b=0;b0)b=d}var a=ajaxNavigate.getParam("ServerFilter");if(typeof a!="undefined"&&null!=a&&a.length>0){a=a.replace(/-/g,"&").replace(/&&/g,"-");var f=Nav.getUrlKeyValue("RootFolder",true,a),e=Nav.getUrlKeyValue("RootFolder",true);if(""==f&&""!=e)a+="&RootFolder="+e;var c=new URI(b,{disableEncodingDecodingForLegacyCode:true});c.setFragment("");c.setQuery(a);return c.getString()}return b}function SetFocusBack(e){if(e==0||focusAcc!=null&&focusAcc.focusInCLVPTab!=null&&focusAcc.focusInCLVPTab!=true){var a=null;if(focusAcc!=null&&focusAcc.elem!=null)a=focusAcc.elem;if(a!=null&&a.tagName!="A"){var d=a.getElementsByTagName("A"),b=d.length;if(b>0)a=d[b-1]}if(a!=null&&typeof a.setActive!="undefined")try{if(a.setActive!=null)a.setActive();else a.focus!=null&&a.focus()}catch(f){}else if(ListModule.Settings.SupportsRibbon&&focusAcc!=null&&focusAcc.fromRibbon){var c=SP.Ribbon.PageManager.get_instance();c.get_ribbon()!=null&&c.restoreFocusToRibbon()}focusAcc=null}}function _RefreshPage(a){var b=function(){typeof SetFocusBack=="function"&&SetFocusBack(a)};if(a==1)_SubmitFormPost(_CorrectUrlForRefreshPageSubmitForm());else EnsureScript("inplview",typeof InitAllClvps,b)}function AJAXRefreshView(a,b){if(a==null||!(typeof a.fakeEvent=="boolean"&&a.fakeEvent||typeof a.csrAjaxRefresh=="boolean"&&a.csrAjaxRefresh||typeof a.fromRibbon=="boolean"&&a.fromRibbon))_RefreshPage(b);else EnsureScriptFunc("SP.UI.Dialog.js","SP.UI.DialogResult.OK",function(){b==SP.UI.DialogResult.OK&&EnsureScriptParams("inplview","inplview.HandleRefreshView",a)})}function AJAXRefreshViewOnDialogClose(a){AJAXRefreshView(a,SP.UI.DialogResult.OK)}function RefreshOnDialogClose(){_RefreshPage(SP.UI.DialogResult.OK)}function OpenPopUpPageWithDialogOptions(c){var d=function(){var a=SP.UI.ModalDialog.showModalDialog(c)},b;try{b=typeof SP.UI.ModalDialog.showModalDialog}catch(e){b="undefined"}EnsureScript("SP.UI.Dialog.js",b,d);var a=window.event;if(a!=null)if(a.stopPropagation!=null)a.stopPropagation();else a.cancelBubble=true}function AdjustUrlForRootFolder(c){var a=GetCurrentCtx(),b=new URI(c);if(a!=null&&SupportAjaxFolderNav(a)){b.setQueryParameter("SaveLocation",Boolean(a.rootFolder)?a.rootFolder:a.listUrlDir);return b.getString()}return c}function OpenPopUpPageWithTitle(a,b,e,c,d){a=AdjustUrlForRootFolder(a);var f={url:a,args:null,title:d,dialogReturnValueCallback:b,width:e,height:c};OpenPopUpPageWithDialogOptions(f)}function ShowErrorDialogCore(d,b,e,f){var a;if(Boolean(f))a=b;else a="
"+b+"
";a=a+"
";var c=document.createElement("DIV");c.innerHTML=a;var g={html:c,title:d,dialogReturnValueCallback:e},h=function(){var b=new SP.UI.ModalDialog.showModalDialog(g),a=document.getElementById("js-OKBtnDismissDlg");Boolean(a)&&a.focus()};EnsureScript("SP.UI.Dialog.js",typeof SP.UI.ModalDialog.showModalDialog,h)}function SetupAndOpenDialogForCustomAction(a,j,g,i){if(typeof a=="undefined"||a==null||a.length==0)return;var d=a.indexOf("//",0),b=-1;if(d==-1)b=a.indexOf("/",0);else b=a.indexOf("/",d+2);var h="";if(b==-1)b=a.length-1;h=a.substring(0,b);var f={url:a,args:null,title:i,dialogReturnValueCallback:CustomActionDialogCloseCallback,width:j,height:g},k=EnsureScriptParams("SP.UI.Dialog.js","SP.UI.ModalDialog.showModalDialog",f),e=g_CustomActionDialogHandlerId,c=function(a){if(typeof a.data=="undefined"||typeof a.data==null||a.data!="CloseCustomActionDialogRefresh"&&a.data!="CloseCustomActionDialogNoRefresh")return;if(typeof a.origin=="undefined"||typeof a.origin==null)return;var c=function(){var b=SP.UI.ModalDialog.get_childDialog();if(a.data=="CloseCustomActionDialogRefresh")b.close(0);else b.close(1)},b;try{b=typeof SP.UI.ModalDialog.get_childDialog}catch(a){b="undefined"}EnsureScript("SP.UI.Dialog.js",b,c);a.data=="CloseCustomActionDialogNoRefresh"&&RemoveCustomActionDialogPostMessageHandler(e)};g_CustomActionDialogHandlers[g_CustomActionDialogHandlerId]=c;g_CustomActionDialogHandlerId++;if(typeof window.addEventListener!="undefined")window.addEventListener("message",c,false);else typeof window.attachEvent!="undefined"&&window.attachEvent("onmessage",c)}function CustomActionDialogCloseCallback(a){a==0&&RefreshOnDialogClose()}function RemoveCustomActionDialogPostMessageHandler(b){var a=g_CustomActionDialogHandlers[b];if(typeof a=="function"){if(typeof window.removeEventListener!="undefined"&&typeof window.removeEventListener!=null)window.removeEventListener("message",a,false);else typeof window.detachEvent!="undefined"&&typeof window.detachEvent!=null&&window.detachEvent("onmessage",a);delete g_CustomActionDialogHandlers[b]}}function _OpenPopUpPage(d,a,c,b){OpenPopUpPageWithTitle(d,a,c,b,null)}function _RemoveQueryStringsAndHash(a){if(Boolean(a)){var b=a.indexOf("#");if(b>=0)a=a.substr(0,b);b=a.indexOf("?");if(b>=0)a=a.substr(0,b)}return a}function _GoToCreateNewPage(){SP.QoS.WriteStart("WexGoToCreateNewPage_Start");_SendCreateNewCSRPageAjaxPost(function(a){if(IsXhrAborted(a)){SP.QoS.WriteFailure("WexGoToCreateNewPage_FailureAborted");_OpenDefaultCreateWebPageDialog();return}else if(IsXhrReady(a)&&(a.status<200||a.status>=300)){SP.QoS.WriteFailure("WexGoToCreateNewPage_FailureHttpStatus",{xhrStatus:a.status});_OpenDefaultCreateWebPageDialog();return}else if(IsXhrReady(a)){var b;try{b=JSON.parse(a.responseText)}catch(d){}if(b==null||!b.hasOwnProperty("d")||!b.d.hasOwnProperty("AbsoluteUrl")){SP.QoS.WriteFailure("WexGoToCreateNewPage_FailureInvalidJson",{json:a.responseText,xhrStatus:a.status});_OpenDefaultCreateWebPageDialog();return}var c=b.d.AbsoluteUrl+"?Mode=Edit";SP.QoS.WriteSuccess("WexGoToCreateNewPage_Success");GoToPage(c,true)}});return}function _SendCreateNewCSRPageAjaxPost(b){var c=Nav.combineUrl(_spPageContextInfo.webServerRelativeUrl,"/_api/sitepages/pages?$select=AbsoluteUrl"),d=JSON.stringify({__metadata:{type:"SP.Publishing.SitePage"}}),a=new XMLHttpRequest;a.open("POST",c,true);a.setRequestHeader("Content-type","application/json;odata=verbose");a.setRequestHeader("accept","application/json;odata=verbose");a.setRequestHeader("Connection","Keep-alive");a.setRequestHeader("x-requestdigest",document.forms[MSOWebPartPageFormName].__REQUESTDIGEST.value);a.setRequestHeader("cache-control","no-cache");a.setRequestHeader("DataServiceVersion","3.0");a.onreadystatechange=function(){Boolean(b)&&b(a)};a.send(d)}function _OpenDefaultCreateWebPageDialog(){_OpenCreateWebPageDialog(GetLayoutsPageUrl(_spPageContextInfo.webServerRelativeUrl,"createwebpage.aspx"))}function _OpenCreateWebPageDialog(a){if(!Boolean(a)&&typeof _spPageContextInfo!="undefined"&&_spPageContextInfo.webServerRelativeUrl!=null){a=_spPageContextInfo.webServerRelativeUrl;if(a.charAt(a.length-1)!="/")a=a+"/";a=a+"_layouts/15/createwebpage.aspx"}var b=ajaxNavigate.get_href();b=_RemoveQueryStringsAndHash(b);a=StURLSetVar2(a,"Url",escapeProperly(b));if(FV4UI()){var c={};commonModalDialogOpen(a,c,null,null)}else GoToPage(a)}function _EditLink2(a,b){var c=function(){var d=GetGotoLinkUrl(a);if(d==null)return false;var c=window["ctx"+String(b)];if(c!=null&&c.clvp!=null&&UseDialogsForFormsWithCtx(c)){var e=c.clvp;PreventDefaultNavigation();e.ShowPopup(d);return false}GoToLinkOrDialogNewWindow(a);return false};EnsureScript("inplview",typeof inplview,c)}function EditLink(a,b){if(FV4UI())EditLink2(a,b);else GoToLink(a)}function _GoBack(a){window.location.href=unescapeProperly(Nav.getSource(a))}function _ReplyItem(a,b,d,c){if(b.length>=504)alert(Strings.STS.L_ReplyLimitMsg_Text);else{a+="?Threading="+b;a+="&Guid="+d;a+="&Subject="+c;GoToPage(a)}}function GoBacktoCurrentIssue(a,b){a+="?ID="+b;GoToPage(a)}function _ExportToDatabase(c,d,e,b){if(g_expDatabase==null){var a=GetCookie("databaseBtnText");if(a!=null&&a!="0")try{g_expDatabase=new ActiveXObject("SharePoint.ExportDatabase")}catch(f){return}else if(a==null)GetDataBaseInstalled();else return}if(g_expDatabase!=null&&typeof g_expDatabase.DoExport!="undefined")if(browseris.ie5up&&browseris.win32)try{g_expDatabase.SiteUrl=makeAbsUrl(c);g_expDatabase.ListID=d;g_expDatabase.ViewID=e;g_expDatabase.DoExport(b)}catch(f){alert(Strings.STS.L_ExportDBFail_Text);return}else alert(Strings.STS.L_NoWSSClient_Text)}function _ExportList(a){var b=typeof navigator.msProtocols=="function"&&navigator.msProtocols.excel;!b&&g_ssImporterObj==null&&EnsureSSImporter();if(!b&&g_ssImporterObj==null)(g_fSSImporter||GetCookie("EnsureSSImporter")==null)&&EnsureSSImporter(true);if(IsSupportedMacBrowser()){if(g_fSSImporter!=null&&typeof g_ssImporterObj.IqyExportEnabled!="undefined"&&g_ssImporterObj.IqyExportEnabled&&typeof g_ssImporterObj.IqyExport!="undefined"){var c=g_ssImporterObj.IqyExport(makeAbsUrl(a));if(!c)window.location.href=STSPageUrlValidation(makeAbsUrl(a))}else if(confirm(Strings.STS.L_ExportListSpreadsheet_Text))window.location.href=STSPageUrlValidation(makeAbsUrl(a))}else if(b||g_fSSImporter!=false&&typeof g_ssImporterObj.IqyImportEnabled!="undefined"&&g_ssImporterObj.IqyImportEnabled()||confirm(Strings.STS.L_ExportListSpreadsheet_Text))window.location.href=STSPageUrlValidation(makeAbsUrl(a))}function ExportDiagram(l,e,k,f,h,g){if(g_objDiagramLaunch==null){var a=GetCookie("digInstalled");if(a!=null&&a!="0")try{g_objDiagramLaunch=new ActiveXObject("DiagramLaunch.DiagramLauncher")}catch(m){return}else if(a==null)GetDiagramLaunchInstalled();else return}if(g_objDiagramLaunch!=null&&typeof g_objDiagramLaunch.CreateDiagram!="undefined")try{var c="",i=l,d=g,b=e,j=k;g_objDiagramLaunch.CreateDiagram(c,i,d,b,f,h,j)}catch(m){alert(Strings.STS.L_DiagramLaunchFail_Text)}}function OpenTasks(g,a,f,b,e,d){var c="ms-project:ost|u|"+g+"|l|"+a+"|i|"+f+"|n|"+b+"|v|"+e+"|g|"+d;window.location.href=c}function CatchListCreateError(){alert(Strings.STS.L_EditInGrid_Text);fListErrorShown=true;return false}function RegisterTouchOverride(a,b){if(a.getAttribute("hasTouchHandler")!="true")if(window.navigator.msMaxTouchPoints!=null&&window.navigator.msMaxTouchPoints>0){AttachEvent("MSPointerDown",function(a){a.target.setAttribute("pointerType",a.pointerType.toString())},a);a.setAttribute("hasTouchHandler","true")}else if(document.documentElement!=null&&"ontouchstart"in document.documentElement){AttachEvent("touchstart",function(a){if(b(a)){a.preventDefault!=null&&a.preventDefault();a.stopPropagation!=null&&a.stopPropagation()}},a);a.setAttribute("hasTouchHandler","true")}}function EnsureListControl(){if(!fListControl){fListErrorShown=false;if(browseris.ie5up&&browseris.win32){var b='try{ ListCtrlObj = new ActiveXObject("ListNet.ListNet"); if (ListCtrlObj) fListControl = true;} catch (e){ fListControl = false;};',a=new Function(b);a()}else{window.onerror=CatchListCreateError;ListCtrlObj=new ActiveXObject("ListNet.ListNet");if(ListCtrlObj!=null)fListControl=true}}ListCtrlObj=null;return fListControl}function IsVoteOK(a){if(1==a)alert(Strings.STS.L_NoQuestion_Text);else if(2==a)alert(Strings.STS.L_NoVoteAllowed_Text);else return true;return false}function hasHighChar(b){for(var a=0,a=0;a127)return true;return false}function _ClearSearchTerm(a){if(typeof MSOWebPartPageFormName!="undefined"){var c=document.forms[MSOWebPartPageFormName];if(null!=c)if(a!=null){var b=c["SearchString"+a];if(b!=null)b.value=""}}bValidSearchTerm=true}function _SubmitSearchRedirect(b){var a=document.forms.frmSiteSearch;if(a==null)if(typeof MSOWebPartPageFormName!="undefined")a=document.forms[MSOWebPartPageFormName];if(a!=null){var e;if(typeof a.elements.SearchString!="undefined")e=a.elements.SearchString;var c=e.value.trim();if(c===Strings.STS.L_SharepointSearch_Text||c==="")return false;b=b+"?k="+escapeProperly(c);var f=a.elements.SearchScope;if(f!=null){var d=f.value;if(Boolean(d))b=b+"&u="+escapeProperly(d)}window.location.href=b}return false}function ShowGridUrlInHTML(a){if(a.indexOf("?")>0)a=a+"&";else a=a+"?";a=a+"ShowInGrid=HTML";return a}function LoadGroupAndSiteLinkingBanners(){Flighting.VariantConfiguration.IsExpFeatureClientEnabled(527)&&ModuleLink.loadManifest("GroupLinking","groupLinking",function(){require(["odsp-next/roots/GroupLinking"],function(a){a.instantiateBanners()})})}function SearchOnBodyLoad(){var a=document.getElementById("idSearchString");if(a!=null&&(a.value.trim()===Strings.STS.L_SharepointSearch_Text||a.value.trim()===""))a.className="ms-sharepointsearchtext"}function SearchOnBlur(){var a=document.getElementById("idSearchString");if(a!=null&&a.value.trim()===""){a.value=Strings.STS.L_SharepointSearch_Text;a.className="ms-sharepointsearchtext"}}function SearchOnFocus(){var a=document.getElementById("idSearchString");if(a!=null&&a.value.trim()===Strings.STS.L_SharepointSearch_Text){a.value="";a.className="ms-searchtext"}}function SubmitSearch(){_SubmitSearchForView("")}function _SubmitSearchForView(e){var a=document.forms[0],c="SearchString"+e,d=a.elements[c].value;if(""==d){alert(Strings.STS.L_Enter_Text);a.elements[c].focus()}else{var b;b=RemovePagingArgs(a.action);if(typeof bGridViewPresent!="undefined"&&bGridViewPresent)b=ShowGridUrlInHTML(b);a.action=b;a.submit()}}function IsKeyDownSubmit(a){if(a!=null){var c,b;if(browseris.ie){c=a.keyCode;b=Number(a.altKey||a.ctrlKey)}else{c=a.which;b=typeof a.modifers!="undefined"&&typeof a.ALT_MASK!="undefined"&&typeof a.CONTROL_MASK!="undefined"?a.modifers&(a.ALT_MASK|a.CONTROL_MASK):0}if(c==13&&!Boolean(b))return true}return false}function SearchViewKeyDown(a){IsKeyDownSubmit(event)&&_SubmitSearchForView(a)}function SearchKeyDown(b,a){if(IsKeyDownSubmit(b)){_SubmitSearchRedirect(a);return false}return true}function SearchKeyDownGoSearch(a){if(IsKeyDownSubmit(a)){typeof GoSearch!="undefined"&&GoSearch();return false}return true}function _AlertAndSetFocus(b,a){a.focus();a.select();window.alert(b)}function _AlertAndSetFocusForDropdown(b,a){a.focus();window.alert(b)}function setElementValue(c,b){var a=document.getElementsByName(c)[0];if(a==null)return false;a.value=b;return true}function GetMultipleSelectedText(a){var c="";if(a!=null)for(var e=a.options.length,d=true,b=0;b=0;d--)if(g_ExpGroupWPState.ageStack[d]!=null){var b=g_ExpGroupWPState.ageStack[d];if(a==ExpGroupMaxWP){DeleteCookie(ExpGroupCookiePrefix+b);break}else if(g_ExpGroupTable[b]==null){a++;if(a>1)c+=escapeProperly(ExpGroupCookieDelimiter);c+=escapeProperly(b)}else if(g_ExpGroupTable[b].count==0)DeleteCookie(ExpGroupCookiePrefix+b);else if(a1)c+=escapeProperly(ExpGroupCookieDelimiter);c+=escapeProperly(b)}}if(a==0)DeleteCookie(ExpGroupWPListName);else document.cookie=c}function ExpGroupRenderCookieForWebPart(a){if(!g_ExpGroupTable[a].ageStack)return;for(var d=ExpGroupCookiePrefix+a+"=",e=true,c=g_ExpGroupTable[a].ageStack.length-1;c>=0;c--)if(g_ExpGroupTable[a].ageStack[c]!=null){var f=g_ExpGroupTable[a].ageStack[c],b="";if(!e)b+=escapeProperly(ExpGroupCookieDelimiter);b+=escapeProperly(f);if(d.length+b.length<=ExpGroupMaxCookieLength){d+=b;e=false}}document.cookie=d+";"}function ExpDataViewGroupOnPageLoad(){ExpGroupOnPageLoad("PageLoad")}function ExpGroupOnPageLoad(a){var b=document.getElementById("GroupByColFlag");if(b!=null){if(typeof g_ExpGroupNeedsState!="undefined")g_ExpGroupNeedsState=true;ExpGroupParseCookie(a)}}function ExpGroupParseCookie(a){var d=GetCookie(ExpGroupWPListName);if(d==null)return;if(typeof g_ExpGroupParseStage!="undefined")g_ExpGroupParseStage=true;for(var e=d.split(ExpGroupCookieDelimiter),c=e.length-1;c>=0;c--){var b=e[c];LRUCache_Add(g_ExpGroupWPState,b);if(g_ExpGroupTable[b]==null)document.getElementById("GroupByCol"+b)!=null&&ExpGroupParseCookieForWebPart(b,a)}if(typeof g_ExpGroupParseStage!="undefined")g_ExpGroupParseStage=false;if(Boolean(a)&&g_ExpGroupXSLTQueue.length>0)ExpGroupFetchData(g_ExpGroupXSLTQueue.shift(),a);else!Boolean(a)&&g_ExpGroupCAMLQueue.length>0&&ExpGroupFetchData(g_ExpGroupCAMLQueue.shift(),a)}function ExpGroupParseCookieForWebPart(c,f){var n=GetCookie(ExpGroupCookiePrefix+c);if(n==null)return;var o=n.split(ExpGroupCookieDelimiter),e,b;g_ExpGroupTable[c]=new LRUCache;for(b=o.length-1;b>=0;b--){e=o[b];LRUCache_Add(g_ExpGroupTable[c],e)}var d=[],q=document.getElementById("GroupByCol"+c).parentNode,j=q.getElementsByTagName("TBODY");for(b=0;b5&&c.id.substr(0,5)=="group")break}var b=c;while(b!=null){b=b.parentNode;if(b!=null&&b.tagName=="TABLE")break}var d=null;if(b!=null){d=b.lastChild;if(d!=null&&d.tagName=="TBODY")d=d.lastChild;if(d!=null&&d.tagName=="TR"&&d.lastChild!=null)d=d.lastChild}for(var a,g=0;g5&&a.id.substr(0,5)=="group"){var v=parseInt(a.id.slice(5));if(v<=w)return}b=a;while(b!=null){b=b.parentNode;if(b==c)break}if(b==c)continue;if(a.id!=null&&a.id.substring(0,5)=="group")f=i;if(a.id!=null&&a.id.substring(0,8)=="footer"+q)f=i;if(i!="none"&&a!=e&&a.tagName=="IMG"&&a.src!=null){var p="/_layouts/15/images/plus.gif",n="/_layouts/15/images/minus.gif";if(a.getAttribute("src")==h||a.src.slice(a.src.length-p.length)==p)f="none";else if(a.getAttribute("src")==r||a.src.slice(a.src.length-n.length)==n)f=""}if(a.tagName==c.tagName&&a.id!="footer")a.style.display=f;if(a.tagName=="TABLE"&&d==null||a==d)break}}function SzExtension(a){var c=new String(a),b=/^.*\.([^\.]*)$/;return c.replace(b,"$1").toLowerCase()}function SzServer(a){var c=new String(a),b=/^([^:]*):\/\/([^\/]*).*$/;return c.replace(b,"$1://$2")}var v_stsOpenDoc,v_strStsOpenDoc;function NavigateParentOrSelf(b,a){NavigateParentOrSelfCore(a,b.target=="_top")}function NavigateParentOrSelfCore(a,b){if(b&&typeof window.frameElement!="undefined"&&window.frameElement!=null&&typeof window.frameElement.navigateParent!="undefined")window.frameElement.navigateParent(a);else Nav.navigate(a)}function NavigateElementHref(a){Boolean(a.href)&&Nav.navigate(a.href)}function StsOpenEnsureEx(a){if(v_stsOpenDoc==null||v_strStsOpenDoc!=a)if(window.ActiveXObject!=null||"ActiveXObject"in window)try{v_stsOpenDoc=new ActiveXObject(a);v_strStsOpenDoc=a}catch(b){v_stsOpenDoc=null;v_strStsOpenDoc=null}return v_stsOpenDoc}function _DispDocItem(b,a){_WriteDocEngagement("Documents_DisplayDocumentItem","OneDrive_DisplayDocumentItem");return _DispDocItemEx(b,"FALSE","FALSE","FALSE",a)}function _DispDocItemExWithServerRedirect(d,c,j,g,i,f,k,a){_WriteDocEngagement("Documents_OpenAttachmentClick","OneDrive_OpenAttachmentClick");var e=a!=null&&a!="",h=IsClientAppInstalled(f,null,d)&&HasRights(16,0)||SzExtension(d.href)=="pdf";if(e){a=a.substring(1);e=a!=""}if(e)if(k=="1"||!h){_WriteDocEngagement("Documents_OpenAttachmentInBrowser","OneDrive_OpenAttachmentInBrowser");var b=a;b=AddInfoPathParametersToUrl(b,f,d,DocOpen.BROWSER);b=AddSourceToUrl(b);if(ajaxNavigate.get_search().match(new RegExp("[?&]IsDlg=1"))!=null)typeof window.frameElement.navigateParent!="undefined"&&window.frameElement.navigateParent(b);else if(c.shiftKey||c.ctrlKey)return true;else NavigateParentOrSelf(d,b);c.cancelBubble=true;c.returnValue=false;return false}return DispDocItemExWithEvent(d,c,j,g,i,f)}var _lightboxImageExtensions,_lightboxVideoExtensions;function _shouldOpenInLightbox(a){var b,c;if(window.OffSwitch==null||OffSwitch.IsActive("bfdd46d0-6599-4289-b288-ce09934941bb")||browseris.ie8down)return false;if((c=a.indexOf("?"))!==-1)a=a.substring(0,c);b=a.split(".").pop().toUpperCase();return _lightboxImageExtensions.indexOf(b)!==-1||_lightboxVideoExtensions.indexOf(b)!==-1}function _openInLightbox(a){if(Boolean(history.state)&&Boolean(history.state.lightbox))return;EnsureScriptFunc("SP.js","SP.Utilities.Utility",function(){var b=new URI(ajaxNavigate.get_href()).getQueryAsObject(),c=!(window.OffSwitch==null||OffSwitch.IsActive("EA88F22A-E74E-4315-BCC9-14F41AA20A67")),d=!(window.OffSwitch==null||OffSwitch.IsActive("07A79629-CE2D-40FD-93FB-769702276A82"))?decodeURIComponent(a):decodeURI(a);a=SP.Utilities.Utility.getLayoutsPageUrl("Lightbox.aspx?url="+encodeURIComponent(c?d:a));if(Boolean(b.GroupId))a+="&GroupId="+encodeURIComponent(b.GroupId)+"&GroupSiteUrl="+(Boolean(b.GroupSiteUrl)?encodeURIComponent(b.GroupSiteUrl):"");EnsureScriptFunc("SP.UI.Dialog.js","SP.UI.MediaLightbox",function(){SP.UI.MediaLightbox.show({lightboxUrl:a});Boolean(history.pushState)&&history.pushState({lightbox:true},null,a)})})}function _DispDocItemEx(e,c,a,b,d){return DispDocItemExWithEvent(e,null,c,a,b,d)}function DispDocItemExWithEvent(g,f,l,p,r,c,m,q){var h;itemTable=FindSTSMenuTable(g,"CTXName");if(!browseris.ie&&!browseris.msEdge&&!IsSupportedMacBrowser()&&!IsSupportedNPApiBrowserOnWin()){_WriteDocEngagement("Documents_OpenDocumentUnsupportedBrowser","OneDrive_OpenDocumentUnsupportedBrowser");if(browseris.ie)event.cancelBubble=false;h=g.href;if(ajaxNavigate.get_search().match(new RegExp("[?&]IsDlg=1"))!=null)typeof window.frameElement.navigateParent!="undefined"&&window.frameElement.navigateParent(h);else Nav.navigate(h);return false}var a,b,e=true,i="",s=document.getElementById("FileDialogViewTable");if(s!=null){_WriteDocEngagement("Documents_OpenDocumentClickInFileDialog2","OneDrive_OpenDocumentClickInFileDialog2");if(browseris.ie){event.cancelBubble=false;event.returnValue=false}return true}var k=Boolean(g.getAttribute("isEdit"));b=itemTable!=null?GetAttributeFromItemTable(itemTable,"Url","ServerUrl"):"";if(b==null||b==""){if(k)b=g.editHref;if(!Boolean(b))b=g.href}else b=SzServer(g.href)+b;var d=itemTable!=null?GetAttributeFromItemTable(itemTable,"App",null):"",j=SzExtension(b),o=k&&HasRights(0,4)&&!FDefaultOpenForReadOnly(j)&&(!Boolean(currentItemCheckedOutUserId)||currentItemCheckedOutUserId==ctx.CurrentUserId);if(!Boolean(d))d=g.getAttribute("App");if(phManager.ShouldTryProtocolHandler(d)){_WriteDocEngagement("Documents_OpenDocumentWithProtocolHandlerIE10PlusStart","OneDrive_OpenDocumentWithProtocolHandlerIE10PlusStart");navigator.msLaunchUri(phManager.CreateProtocolHandlerUrl(d,b,o?ProtocolCommand.Edit:ProtocolCommand.View,null,true),function(){PHSucceed(d,true);_WriteDocEngagement("Documents_OpenDocumentWithProtocolHandlerIE10PlusSuccess","OneDrive_OpenDocumentWithProtocolHandlerIE10PlusSuccess")},function(){PHSucceed(d,false);_WriteDocEngagement("Documents_OpenDocumentWithProtocolHandlerIE10PlusFailure","OneDrive_OpenDocumentWithProtocolHandlerIE10PlusFailure");n()});return CancelMyEvent(false,a,f,true)}if(l==="TRUE"&&_shouldOpenInLightbox(b)){_WriteDocEngagement("Documents_OpenDocumentWithLightbox","OneDrive_OpenDocumentWithLightbox");_openInLightbox(b);return CancelMyEvent(false,a,f,true)}return n();function n(){if(m!=null&&!(k&&(q||browseris.chrome||!(window.OffSwitch==null||OffSwitch.IsActive("855C3AE1-A63D-41F1-B713-721B65620BE7"))&&phManager.Win7IE11()))&&!(Boolean(ctx)&&Boolean(ctx.IRMEnabled))){m();return CancelMyEvent(false,a,f,true)}phManager.SetProtocolHandlerEnabled(d,null);if(Boolean(d)&&phManager.IsProtocolHandlerEnabled(d))if(d!=null&&d!=""){_WriteDocEngagement("Documents_OpenDocumentWithProtocolHandler","OneDrive_OpenDocumentWithProtocolHandler");window.location.href=phManager.CreateProtocolHandlerUrl(d,b,o?ProtocolCommand.Edit:ProtocolCommand.View,null,true);return CancelMyEvent(false,a,f,true)}try{b=decodeURI(b)}catch(v){_WriteDocDebugLog("Documents_OpenDocumentWithActiveXDecodeFailure","Documents_OpenDocumentWithActiveXDecodeFailure",SP.DebugLogger.LoggingLevel.Interesting,v)}if(currentItemProgId==null&&itemTable!=null)currentItemProgId=GetAttributeFromItemTable(itemTable,"Type","HTMLType");if(currentItemProgId!=null)i=currentItemProgId;if(FDefaultOpenForReadOnly(j)){if(c.indexOf("SharePoint.OpenDocuments")>=0)c="SharePoint.OpenDocuments.3"}else if(!FSupportCheckoutToLocal(j))c="";if(currentItemCheckedOutUserId==null&&itemTable!=null&&typeof itemTable.COUId=="string")currentItemCheckedOutUserId=itemTable.COUId;if(currentItemCheckedoutToLocal==null&&itemTable!=null)currentItemCheckedoutToLocal=GetAttributeFromItemTable(itemTable,"COut","IsCheckedoutToLocal ");if(currentItemCheckedOutUserId!=null&¤tItemCheckedOutUserId!=""&¤tItemCheckedOutUserId==ctx.CurrentUserId&&(c==""||c.indexOf("SharePoint.OpenDocuments")>=0)&&FSupportCheckoutToLocal(j)||c=="SharePoint.OpenDocuments")c="SharePoint.OpenDocuments.3";var s=2;if(c!=""&&HasRights(16,0)){if(c.indexOf(".3")>=0)s=3;a=StsOpenEnsureEx2(c);if(a==null&&s==3){c=c.replace(".3",".2");a=StsOpenEnsureEx2(c);s=2}}if(a!=null)if(s==2||itemTable==null&¤tItemCheckedOutUserId==null||ctx.isVersions==1&&(itemTable==null||typeof itemTable.isMostCur!="string"||itemTable.isMostCur=="0")){try{_WriteDocEngagement("Documents_OpenDocumentWithO11ClientStart","OneDrive_OpenDocumentWithO11ClientStart");if(currentItemCheckedOutUserId!=null&¤tItemCheckedOutUserId!=""&&(currentItemCheckedOutUserId==ctx.CurrentUserId||ctx.CurrentUserId==null))if(currentItemCheckedoutToLocal=="1"){alert(Strings.STS.L_OpenDocumentLocalError_Text);e=false}else e=typeof a.EditDocument2!="undefined"&&a.EditDocument2(window,b,i);else e=typeof a.ViewDocument2!="undefined"&&a.ViewDocument2(window,b,i);_WriteDocEngagement("Documents_OpenDocumentWithO11ClientSuccess","OneDrive_OpenDocumentWithO11ClientSuccess")}catch(v){_WriteDocEngagement("Documents_OpenDocumentWithO11ClientFailure","OneDrive_OpenDocumentWithO11ClientFailure");_WriteDocDebugLog("Documents_OpenDocumentWithO11ClientFailure","OneDrive_OpenDocumentWithO11ClientFailure",SP.DebugLogger.LoggingLevel.Interesting,v);e=false}if(e)window.onfocus=RefreshOnNextFocus}else{_WriteDocEngagement("Documents_OpenDocumentWithActiveXStart","OneDrive_OpenDocumentWithActiveXStart");var n=0;if(currentItemCheckedOutUserId!="")if(currentItemCheckedOutUserId!=ctx.CurrentUserId&&ctx.CurrentUserId!=null)n=1;else if(currentItemCheckedoutToLocal==null||currentItemCheckedoutToLocal!="1")n=2;else n=4;else if(!HasRights(0,4)||FDefaultOpenForReadOnly(j))n=1;else if(ctx.isForceCheckout==true)n=3;try{if(k)e=typeof a.EditDocument3!="undefined"&&a.EditDocument3(window,b,false,i);else e=typeof a.ViewDocument3!="undefined"&&a.ViewDocument3(window,b,n,i);_WriteDocEngagement("Documents_OpenDocumentWithActiveXSuccess","OneDrive_OpenDocumentWithActiveXSuccess")}catch(v){_WriteDocEngagement("Documents_OpenDocumentWithActiveXFailure","OneDrive_OpenDocumentWithActiveXFailure");_WriteDocDebugLog("Documents_OpenDocumentWithActiveXFailure","OneDrive_OpenDocumentWithActiveXFailure",SP.DebugLogger.LoggingLevel.Interesting,v);e=false}if(e){var t=typeof a.PromptedOnLastOpen!="undefined"&&a.PromptedOnLastOpen();if(t)window.onfocus=RefreshOnNextFocus;else SetWindowRefreshOnFocus()}}else if(currentItemCheckedoutToLocal=="1"){_WriteDocEngagement("Documents_OpenDocumentLocalError","OneDrive_OpenDocumentLocalError");alert(Strings.STS.L_OpenDocumentLocalError_Text)}if(a==null||!e){if(l=="TRUE"&&p=="TRUE"&&r=="TRUE"){_WriteDocEngagement("Documents_OpenDocumentWithHtmlTransformService","OneDrive_OpenDocumentWithHtmlTransformService");if(itemTable==null)return e;if(browseris.ie){event.cancelBubble=true;event.returnValue=false}else if(IsSupportedMacBrowser()||IsSupportedFirefoxOnWin()){typeof f.preventDefault!="undefined"&&f.preventDefault();typeof f.stopPropagation!="undefined"&&f.stopPropagation()}var u=new Function("return "+itemTable.getAttribute("CTXName")+".HttpRoot;");h=u()+"/_layouts/15/htmltrverify.aspx?doc="+escapeProperly(b);if(ajaxNavigate.get_search().match(new RegExp("[?&]IsDlg=1"))!=null)typeof window.frameElement.navigateParent!="undefined"&&window.frameElement.navigateParent(h);else GoToPage(h)}else if(ajaxNavigate.get_search().match(new RegExp("[?&]IsDlg=1"))!=null){_WriteDocEngagement("Documents_OpenDocumentDownloadFromDialog","OneDrive_OpenDocumentDownloadFromDialog");typeof window.frameElement.navigateParent!="undefined"&&window.frameElement.navigateParent(g.href)}else{_WriteDocEngagement("Documents_OpenDocumentDownload","OneDrive_OpenDocumentDownload");Nav.navigate(g.href)}return false}return CancelMyEvent(e,a,f)}}function CancelMyEvent(b,e,a,d){if(browseris.ie){if(event!=null){event.cancelBubble=true;event.returnValue=false}}else if(IsSupportedMacBrowser()||IsSupportedNPApiBrowserOnWin())return c(true);if(!(window.OffSwitch==null||OffSwitch.IsActive("D05C06F8-4F27-450A-B726-A1F8971EFFF3"))&&typeof a.preventDefault!=="undefined")return c(b);return b;function c(c){if(d||e!=null&&b){typeof a.preventDefault!="undefined"&&a.preventDefault();typeof a.stopPropagation!="undefined"&&a.stopPropagation()}return!(window.OffSwitch==null||OffSwitch.IsActive("3144BEEF-26ED-4696-B2F8-213B27CE8CBE"))?c:true}}function DispDocItemEx2(b,c,l,j,k,s,m,d,f){var a,v=false,o=f!=null&&f!="",e=IsClientAppInstalled(d,null,b)&&HasRights(16,0),h=!IsNullOrUndefined(b.getAttribute("isEdit"));function p(){_WriteDocEngagement("Documents_OpenDocumentInWac","OneDrive_OpenDocumentInWac");a=f;a=AddInfoPathParametersToUrl(a,d,b,DocOpen.BROWSER);a=AddSourceToUrl(a);if(a.toLowerCase().indexOf("doc.aspx")!==-1||a.toLowerCase().indexOf("wopiframe.aspx")!==-1)a=addWopiPerfMarkForTarget(a,null,"DocLibClassicUI");if(h){var e=new URI(a);e.setQueryParameter("action","edit");a=e.getString()}if(ajaxNavigate.get_search().match(new RegExp("[?&]IsDlg=1"))!=null)typeof window.frameElement.navigateParent!="undefined"&&window.frameElement.navigateParent(a);else if(c.shiftKey||c.ctrlKey)return true;else NavigateParentOrSelf(b,a);c.cancelBubble=true;c.returnValue=false;typeof c.preventDefault!="undefined"&&c.preventDefault();typeof c.stopPropagation!="undefined"&&c.stopPropagation();return false}if(SzExtension(b.href).indexOf("pdf")!=-1){var g=b,r=h&&Boolean(g.editHref)?g.editHref:g.href;g.href=r;Nav.navigate(r);_WriteDocEngagement("Documents_OpenDocumentPDF","OneDrive_OpenDocumentPDF");return false}if(o){itemTable=FindSTSMenuTable(b,"CTXName");var i=itemTable!=null?GetAttributeFromItemTable(itemTable,"App",null):"";if(!Boolean(i))i=b.getAttribute("App");var u=!e&&(browseris.ie10standardUp||browseris.msEdge||browseris.chrome)&&Boolean(i)&&(m=="0"||h)&&HasRights(0,32);if(!u&&(m=="1"&&!(e&&h&&HasRights(0,32))||!e))return p();else if(e)if(d==""||d.indexOf("SharePoint.OpenDocuments")>=0)return DispDocItemExWithEvent(b,c,l,j,k,s);else{!ViewDoc(b.href,d)&&editDocumentWithProgIDNoUI(b.href,currentItemProgId,d,"0",ctx.HttpRoot,"0",i,n,n,!(window.OffSwitch==null||OffSwitch.IsActive("89FAE607-622F-4DBE-9180-9C7B55A95BDB")));var q=StsOpenEnsureEx2(d),t=!(window.OffSwitch==null||OffSwitch.IsActive("7A4E1FB0-63F5-48DC-A4CB-E115ED16BBAA"))?Boolean(q):undefined;_WriteDocEngagement("Documents_OpenDocumentInClientWithWacInstalled","OneDrive_OpenDocumentInClientWithWacInstalled");return CancelMyEvent(false,q,c,t)}}function n(){a=f;a=AddInfoPathParametersToUrl(a,d,b,-1);a=AddSourceToUrl(a);if(ajaxNavigate.get_search().match(new RegExp("[?&]IsDlg=1"))!=null)typeof window.frameElement.navigateParent!="undefined"&&window.frameElement.navigateParent(a);else NavigateParentOrSelf(b,a)}return DispDocItemExWithEvent(b,c,l,j,k,d,o?p:null,e)}function DispDocItemExWithOutContext(o,n,e,a,d,i,g,m,k,b,h,j,f,c,l){DispEx(o,n,e,a,d,i,g,m,k,b,h,j,f,c,l)}function AddSourceToUrl(a){var c=a.toLowerCase().indexOf("/wopiframe.aspx?")>0,b=a.toLowerCase().indexOf("/doc.aspx?")>0;if(c||b){document.cookie="WOPISessionContext="+Nav.getSource()+";path=/;";if(c)a=a.replace(/\/_layouts\/WopiFrame.aspx\?/,"/_layouts/15/WopiFrame.aspx?");if(b)a=a.replace(/\/_layouts\/Doc.aspx\?/,"/_layouts/15/Doc.aspx?");return a}else{var d=Nav.getSource(),e=a.length+d.length;if(e>1950)return a;else{var f=a.indexOf("?")>=0?"&":"?";return a+f+"Source="+d}}}function IsInfoPathProgId(a){return a!=null&&(a.startsWith("SharePoint.OpenXMLDocuments")||a.startsWith("SharePoint.OpenXmlDocuments"))?true:false}function AddInfoPathParametersToUrl(b,d,f,c){if(IsInfoPathProgId(d)){var e=IsClientAppInstalled(d,null,f)&&HasRights(16,0),g=b.indexOf("?")>=0?"&":"?",a=b+g+"ClientInstalled="+String(e);if(c!=-1)a=a+"&DefaultItemOpen="+String(c);return a.length>1950?b:a}else return b}function _VerifyFolderHref(a,d,m,l,f,j,b,c){var h=d.button==Sys.UI.MouseButton.rightButton,k=GetRedirectedHref(a.href,f,j,b,c,false,h,a),i=b!=null&&b!=""&&c!=null&&c.length>1;if(i){if(Boolean(a.getAttribute("isEdit")))a.editHref=a.href;if(!(b=="OneNote.Notebook"&&f=="0"))a.href=k;else{var e=GetCurrentCtx(a);if(e!=null&&typeof getHostUrl=="function"){var g=ListItemDataFromId(e,a.parentNode.id);if(g!=null)a.href=getHostUrl(e.HttpRoot)+g.FileRef}}d.cancelBubble=true;d.returnValue=true;DetachEvent("mousedown",VerifyFolderHref,a)}return false}function _VerifyHref(a,d,c,f,b){var j=+new Date,g=d.button==Sys.UI.MouseButton.rightButton,i=GetRedirectedHref(a.href,c,f,null,b,false,g,a),h=b!=null&&b.length>1,e=IsClientAppInstalled(f,null,a)&&HasRights(16,0);if(h){if(c=="1"&&!(e&&!IsNullOrUndefined(a.getAttribute("isEdit")))||!e){if(Boolean(a.getAttribute("isEdit")))a.editHref=a.href;if(c=="1")a.href=i;d.cancelBubble=true;d.returnValue=true}DetachEvent("mousedown",VerifyHref,a)}return false}function GetSourceDocId(d){var a=unescape(d);if(Boolean(a)){var b=a.indexOf("sourcedoc="),c=a.substring(b).indexOf("&"),e=c==-1?a.substring(b):a.substring(b,b+c);return escape(e)}return null}function GetRedirectedHref(c,k,e,f,b,g,j,h){var d=b!=null&&b!=""&&(!g||f!=null&&f!=""),i=IsClientAppInstalled(e,null,h)&&HasRights(16,0);if(d){b=b.substring(1);d=b!=""}var a=c;if(d)if(g||k=="1"||!i){a=b;if(!IsInfoPathProgId(e)&&c.indexOf("?")<0&&j)if(Flighting.VariantConfiguration.IsExpFeatureClientEnabled(69))a=c+"?Web=1";else if(GetUrlKeyValue("sourcedoc",true,b,true)!=""||GetUrlKeyValue("d",true,b,true)!="")a=b;else a=StURLSetVar2(c,"Web","1");else if(Nav.getUrlKeyValue("Web",true,c,true)=="1")a=c;else{a=AddInfoPathParametersToUrl(a,e,h,DocOpen.BROWSER);a=AddSourceToUrl(a)}a=STSPageUrlValidation(a)}return a}function _DispEx(p,a,h,e,g,k,c,o,m,b,j,l,i,f,d){try{_WriteDocEngagement("Documents_OpenDocumentClick","OneDrive_OpenDocumentClick");WriteSearchClickLog(a);if(a.shiftKey||a.ctrlKey){_WriteDocEngagement("Documents_OpenDocumentClickInNewWindowOrTab","OneDrive_OpenDocumentClickInNewWindowOrTab");return true}var n=document.getElementById("FileDialogViewTable");if(n!=null){a.cancelBubble=false;a.returnValue=false;_WriteDocEngagement("Documents_OpenDocumentClickInFileDialog","OneDrive_OpenDocumentClickInFileDialog");return true}if(typeof ctx=="undefined"||ctx==null)ctx=new ContextInfo;CtxSetCurrentUserId(l);if(i=="1")CtxSetIsForceCheckout(true);else CtxSetIsForceCheckout(false);currentItemCheckedOutUserId=j;currentItemCheckedoutToLocal=f;currentItemProgId=m;if(d!=null&&d!=""){SetCurrentPermMaskFromString(d,null);if(c=="0"&&!HasRights(0,32))c="1"}a.cancelBubble=true;if(b!=null&&b!="")b=b.substring(1);return DispDocItemEx2(p,a,h,e,g,k,c,o,b)}catch(q){_WriteDocEngagement("Documents_OpenDocumentClickFailure","OneDrive_OpenDocumentClickFailure");_WriteDocDebugLog("Documents_OpenDocumentClickFailure","OneDrive_OpenDocumentClickFailure",SP.DebugLogger.LoggingLevel.Interesting,q);throw q;}}function IsClientAppInstalled(c,e,b){if(e!=null&&phManager.IsProtocolHandlerEnabled(e,true))return true;if(!(window.OffSwitch==null||OffSwitch.IsActive("860BFCE4-DE4A-476E-8FCE-8F7A5A0E17E4"))&&Boolean(ctx)&&Boolean(ctx.IRMEnabled))return true;if(b!=null){itemTable=FindSTSMenuTable(b,"CTXName");var a=itemTable!=null?GetAttributeFromItemTable(itemTable,"App",null):"";if(!Boolean(a))a=b.getAttribute("App");if(Boolean(a)&&phManager.IsProtocolHandlerEnabled(a,true))return true}var d=null;if(c!="")d=StsOpenEnsureEx2(c);return d!=null}function ViewDoc(d,c){var a=StsOpenEnsureEx2(c),b=false;if(a!=null)try{b=typeof a.ViewDocument2!="undefined"&&a.ViewDocument2(window,d)}catch(e){b=false}return b}function _PortalPinToMyPage3(a,c,b){a.action=c+"_vti_bin/portalapi.aspx?Cmd=PinToMyPage";if(typeof a.ReturnUrl!="undefined")a.ReturnUrl.value=window.location.href;if(typeof a.ListViewUrl!="undefined"&&typeof a.ListViewUrl.value!="undefined")a.ListViewUrl.value=MakeMtgInstanceUrl(a.ListViewUrl.value,b);a.submit()}function _PortalPinToMyPage(a,g,e,f,b,d,h,c){a.action=g+"_vti_bin/portalapi.aspx?Cmd=PinToMyPage";SetFieldValue(a,"ReturnUrl",window.location.href);SetFieldValue(a,"ListViewUrl",MakeMtgInstanceUrl(d,e));SetFieldValue(a,"ListTitle",f);SetFieldValue(a,"ListDescription",b);SetFieldValue(a,"BaseType",h);SetFieldValue(a,"ServerTemplate",c);a.submit()}function SetFieldValue(c,b,d){var a=c[b];if(a==null){a=document.createElement("INPUT");a.setAttribute("type","hidden");a.setAttribute("name",b);c.appendChild(a)}a.value=d}function _MoveToViewDate(b,a,c){var d=function(){var d;if(Boolean(c))d=SP.UI.ApplicationPages.CalendarInstanceRepository.lookupInstance(c);else d=SP.UI.ApplicationPages.CalendarInstanceRepository.firstInstance();if(d!=null)if(a!=null)typeof d.moveToViewType!="undefined"&&d.moveToViewType(a);else typeof d.moveToDate!="undefined"&&d.moveToDate(b)};if(FV4UI()&&typeof _fV4Calendar!="undefined"&&_fV4Calendar)AjaxCalendarCall(d);else MoveToViewDatePostBack(b,a)}function MoveToViewDatePostBack(c,b){var a=window.location.href;if(c!=null)a=StURLSetVar2(a,"CalendarDate",escapeProperly(c));if(b!=null)a=StURLSetVar2(a,"CalendarPeriod",b);_SubmitFormPost(a,true)}function AjaxCalendarCall(b){var a;try{a=typeof SP.UI.ApplicationPages.CalendarInstanceRepository}catch(c){a="undefined"}EnsureScript("SP.js",a,b)}function _MoveToDate(a,b){_MoveToViewDate(a,null,b)}function MoveToToday(){_MoveToViewDate("",null)}function MoveView(a){_MoveToViewDate(null,a)}function _ClickDay(a){_MoveToDate(a)}function GetIframe(){return null}function _GetMonthView(c){var b=window.location.href,a=document.getElementById("ExpandedWeeksId");if(a!=null){a.value=c;_SubmitFormPost(b,true)}}function NewItemDT(a,c,b){if(a==null)return;if(b!=null)a=StURLSetVar2(a,"CalendarTime",b);if(c!=null)a=StURLSetVar2(a,"CalendarDate",c);_NewItem(a)}function ClickTime(b,a){NewItemDT(b,null,a)}function NewItemDay(b,a){NewItemDT(b,a,null)}function ScrollToAnchorInInnerScrollPane(k,h,j){try{var l=document.getElementById(k),b=document.getElementById(l[h].value);if(typeof b=="undefined"||b==null)throw"";var d=b.parentNode.previousSibling;if(typeof d!="undefined"&&d!=null){var e=d.previousSibling;if(typeof e!="undefined"&&e!=null)b=e;else b=d}else throw"";}catch(o){for(var f=null,i=document.anchors.length,g=0;g=0){f=true;o=d.options[d.selectedIndex].innerText}for(a=0;a20)p=true;if(!f||i==o){l+='";f=true;j=b;r=k;m=a}else l+='";g++}}var t=' ondblclick="HandleOptDblClick()" onkeydown="HandleOptKeyDown()"',e="";if(p)e='';else e+=' style="position:absolute;z-index:2;left:'+String(z)+"px;top:"+String(A)+'px" size="'+String(g<=8?g:8)+'"'+(g==1?'multiple="true"':"")+' onfocusout="OptLoseFocus(this)">'+l+"";d.outerHTML=e;var y=document.getElementById(C);if(m!=0||c[1]!="0")y.value=r;else y.value="0";return m!=0||c[1]!="0"?j:""}function _OptLoseFocus(a){var b=a.getAttribute("ctrl"),c=b!=null?b:"",d=document.getElementById(c);a.selectedIndex>=0&&_SetCtrlFromOpt(d,a);a.style.display="none"}function SetCtrlMatch(b,a){var c=b.getAttribute("optHid"),e=c!=null?c:"",d=document.getElementById(e);d.value=a.options[a.selectedIndex].value;if(d.value!="0")b.match=a.options[a.selectedIndex].innerText;else b.match=""}function _SetCtrlFromOpt(a,b){var c=a.getAttribute("optHid"),d=c!=null?c:"",e=document.getElementById(d);e.value=b.options[b.selectedIndex].value;a.value=b.options[b.selectedIndex].innerText;if(b.options[b.selectedIndex].value==0)a.match="";else a.match=a.value;typeof a.onValueSetFromPicker=="function"&&a.onValueSetFromPicker()}function HandleOptDblClick(){var a=event.srcElement,b=a.getAttribute("ctrl"),d=b!=null?b:"",c=document.getElementById(d);_SetCtrlFromOpt(c,a);SetCtrlMatch(c,a);a.style.display="none"}function HandleOptKeyDown(){var a=event.srcElement,b=a.getAttribute("ctrl"),c=b!=null?b:"",d=document.getElementById(c),e=event.keyCode;switch(e){case 13:case 9:_SetCtrlFromOpt(d,a);event.returnValue=false;a.style.display="none";return}return}function CommitInlineEditChange(tr,cancel){if(tr.cells.length>0){var c=tr.cells[0];if(c.width=="1%")eval(cancel==true?c.firstChild.lastChild.href:c.firstChild.firstChild.href);else if(tr.cells.length>1){c=tr.cells[1];if(c.width=="1%")eval(cancel==true?c.firstChild.lastChild.href:c.firstChild.firstChild.href)}}}function InlineEditNextTR(tr,nextTr,element,down){var inlineEditString;if(nextTr!=null){_inlineEditString=tr.getAttribute("automode")+"#";var index=null;while(element!=null&&element.nodeType==1&&element.getAttribute("automode")==null){var siblingCount=0,sibling=element.previousSibling;while(sibling!=null){siblingCount++;sibling=sibling.previousSibling}if(index==null)index=String(siblingCount);else index=String(siblingCount)+","+index;element=element.parentNode}_inlineEditString+=index;var tab=nextTr;while(tab!=null&&tab.tagName!="TABLE")tab=tab.parentNode;if(tab!=null&&nextTr!=null&&nextTr.getAttribute("iid")!=null){inlineEditString=tab.getAttribute("inlineedit");if(inlineEditString!=null){inlineEditString=inlineEditString.replace("{@ID}","{"+IdFromRow(nextTr)+"}");inlineEditString=inlineEditString.replace("__cancel;","__commit;dvt_inlineedit={"+_inlineEditString+"};");eval(inlineEditString)}}else if(down==true&&nextTr!=null)if(nextTr.cells.length>0){inlineEditString=null;var c=nextTr.cells[0];if(c.width=="1%")inlineEditString=c.firstChild.href;else if(nextTr.cells.length>1){c=nextTr.cells[1];if(c.width=="1%")inlineEditString=c.firstChild.href}if(inlineEditString!=null){inlineEditString=inlineEditString.replace("__cancel;","__commit;dvt_inlineedit={"+_inlineEditString+"};");eval(inlineEditString)}}}}function HandleInlineEditKeyDown(c){var d=event.srcElement;if(d.tagName!="INPUT")return;var e=event.keyCode,a=c.parentNode,b;switch(e){case 27:CommitInlineEditChange(a,true);break;case 38:b=a.previousSibling;InlineEditNextTR(a,b,d);break;case 13:case 40:b=a.nextSibling;InlineEditNextTR(a,b,d,true)}if(window.event!=null)window.event.cancelBubble=true;else c!=null&&typeof c.stopPropagation!="undefined"&&c.stopPropagation()}function EnsureSelectElement(b,c){var a=document.getElementById(c);if(a==null){a=document.createElement("SELECT");b.parentNode.appendChild(a);a.outerHTML='';FilterChoice(a,b,b.value,"")}else{a.parentNode.removeChild(a);b.parentNode.appendChild(a)}return document.getElementById(c)}function HandleKey(){var j=event.keyCode,b=event.srcElement,c=b.value,g=b.getAttribute("opt"),i=g!=null?g:"",a=EnsureSelectElement(b,i),d=false,f,e;switch(j){case 8:if(c.length>0)c=c.substr(0,c.length-1);d=true;break;case 16:case 17:case 18:return;case 9:case 16:case 17:case 18:return;case 13:f=b.value.toLocaleLowerCase();var h=typeof b.match=="string"?b.match:"";e=h.toLocaleLowerCase();if(e.indexOf(f)!=0)b.match=FilterChoice(a,b,b.value,"");if(a.style.display!="none"){b.value=b.match;a.style.display="none";event.returnValue=false}return;case 27:a.style.display="none";event.returnValue=false;return;case 38:if(a.style.display!="none"){if(a.selectedIndex>0)a.selectedIndex=a.selectedIndex-1;else a.selectedIndex=a.options.length-1;SetCtrlMatch(b,a);event.returnValue=false}return;case 40:if(a.style.display!="none"&&a.selectedIndex',c=String.format(Strings.STS.L_MessageClassicHomepageBackToModern,d,""),b="",a=String.format(Strings.STS.L_MessageClassicHomepageRevert,b,"");g_RevertToClassicMessageId=addStatus(c,a,true);setStatusPriColor(g_RevertToClassicMessageId,"gray")}function RevertToClassic(){var f=confirm(Strings.STS.L_ConfirmRevertToClassicHomepage),a;if(f){SP.QoS.WriteStart("RevertToClassicHomepage_Start");a=SP.ClientContext.get_current();var b=a.get_web();a.load(b);a.executeQueryAsync(function(){var j=b.get_welcomePage(),h=b.get_classicWelcomePage();if(!h)c(null,null,"ClassicWelcomePage property not found");else{var i=b.get_serverRelativeUrl(),f=i+"/"+j,g=b.getFileByServerRelativeUrl(f);a.load(g);a.executeQueryAsync(function(){var j=f.split("/"),m=g.get_name(),l=Strings.STS.L_ModernizedHomepagePrefix+"-"+m;j[j.length-1]=l;var k=j.join("/");g.moveTo(k);a.executeQueryAsync(function(){var c=b.getFileByServerRelativeUrl(h);a.load(c);a.executeQueryAsync(function(){c.moveTo(f);a.executeQueryAsync(function(){b.set_classicWelcomePage("");b.update();a.executeQueryAsync(function(){SP.QoS.WriteSuccess("RevertToClassicHomepage_Success");a.executeQueryAsync(function(){window.location.href=i+"/"+b.get_welcomePage()},e(c,h,g,f))},e(c,h,g,f))},d(g,f,true))},d(g,f,true))},c)},c)}},c)}function e(f,b,g,e){return function(h,i){f.moveTo(b);a.executeQueryAsync(d(g,e,false));c(h,i,null)}}function d(e,b,d){return function(f,g){d&&c(f,g,null);e.moveTo(b);a.executeQueryAsync()}}function c(g,a,e){removeStatus(g_RevertToClassicMessageId);var d='',c=String.format(Strings.STS.L_ErrorRevertToClassicHomepageInstructions,d,""),f=addStatus(Strings.STS.L_ErrorRevertToClassicHomepage,c,true);setStatusPriColor(f,"red");var b="RevertToClassicHomepage_Fail";if(a)SP.QoS.WriteFailure(b,{message:a.get_message(),stackTrace:a.get_stackTrace()});else SP.QoS.WriteFailure(b,{message:e})}}function NavigateHttpFolder(a,h,c){if(!Boolean(c))c=(Boolean(_spPageContextInfo)?_spPageContextInfo.webAbsoluteUrl:"")+"/_layouts/15/webdav.aspx";if("/"==a.charAt(0))a=window.location.protocol+"//"+window.location.host+a;httpFolderTarget=h;httpFolderSource=a;var b=new IframeWorker("explorerViewFrame"),f=b.getFrame();if(Flighting.VariantConfiguration.IsExpFeatureClientEnabled(167)&&f==null&&_spPageContextInfo!=null)d();else NavigateHttpFolderCore();function e(){var a;if(Boolean(_spPageContextInfo)&&Boolean(_spPageContextInfo.currentUICultureName))a=_spPageContextInfo.currentUICultureName;else a="en-us";var e=''+STSHtmlEncode(Strings.STS.L_ExplorerViewPersistCookiePrivacyStatementLink)+"",d="
"+STSHtmlEncode(Strings.STS.L_ExplorerViewPersistCookieConfirm_Text)+"
"+e+"
",c=document.createElement("DIV");c.innerHTML=d;var f={html:c,title:STSHtmlEncode(Strings.STS.L_ExplorerViewPersistCookieDialogTitle),dialogReturnValueCallback:function(a){Boolean(a)&&NavigateHttpFolderCore()}};SP.SOD.execute("sp.ui.dialog.js","SP.UI.ModalDialog.showModalDialog",f);var b=document.getElementById("js-CancelBtnDismissDlg");b!=null&&b.focus()}function d(){RegisterSod("SPO.Identity.js","/_layouts/15/SPO.Identity.js");EnsureScript("SPO.Identity.js",typeof SPO,function(){g()})}function g(){if(typeof SPO.Identity.SPOIdentityHelper.doesSessionSupportIssuingWebDavCookies=="function")EnsureScriptFunc("SP.js","SP.ClientContext",function(){var a=SP.ClientContext.get_current(),d=SPO.Identity.SPOIdentityHelper.doesSessionSupportIssuingWebDavCookies(a);a.executeQueryAsync(function(){if(d.get_value()){b.createAndAppendFrame(c);b.checkFrameLoaded(e,ShowExplorerViewError);return}else NavigateHttpFolderCore()},function(){NavigateHttpFolderCore()})});else NavigateHttpFolderCore()}}function GetIFrameDoc(b){var a=null;if(typeof b.contentDocument!="undefined")a=b.contentDocument;if(a==null&&null!=b.contentWindow)a=b.contentWindow.document;if(a==null)a=b.ownerDocument;return a}var IframeWorker;function NavigateHttpFolderIfSupported(c,b){if(b=="_blank")if(SupportsNavigateHttpFolder()){var f=Flighting.VariantConfiguration.IsExpFeatureClientEnabled(392),a=(Boolean(_spPageContextInfo)?_spPageContextInfo.webAbsoluteUrl:"")+"/_layouts/15/webdav.aspx",e=GetCurrentCtx();if(f&&Boolean(e)){SP.QoS.WriteStart("GetWebDavUrl_Start");var d=SP.ClientContext.get_current(),i=d.get_web(),h=i.get_lists().getById(e.listName),g=h.getWebDavUrl(c);d.executeQueryAsync(function(){var e=g.get_value();if(Boolean(e)){SP.QoS.WriteSuccess("GetWebDavUrl_Success");var d=new URI(e);d.setPath("/_layouts/15/webdav.aspx");a=d.getString();d.setPath("/_layouts/15/openinexplorer.aspx");d.setQueryParameter("aspxUrl",a);d.setQueryParameter("target",b);d.setQueryParameter("source",e);window.open(d.getString(),"","menubar=no,toolbar=no,location=no,status=no,resizable=yes,height=450,width=400");return}else{SP.QoS.WriteFailure("GetWebDavUrl_Fail");e=c;NavigateHttpFolder(c,b,a)}},function(){SP.QoS.WriteFailure("GetWebDavUrl_Fail");NavigateHttpFolder(c,b,a)})}else NavigateHttpFolder(c,b,a)}else alert(Strings.STS.L_WebFoldersError_Text);else alert(Strings.STS.L_NoExplorerView_Text)}function AutoIndexForRelationshipsConfirmation(){var a=Strings.STS.L_Lookup_AutoIndexForRelationships_Confirm_Text;return confirm(a)}function SetHomePage2(c){if(!window.confirm(SP.Res.confirmWelcomePage))return;var d=new SP.ClientContext(undefined),b=d.get_web().get_rootFolder(),a="";if(c.length>0){a=_spPageContextInfo.serverRequestPath;a=unescapeProperly(a);a=a.substr(c.length);if(a.indexOf("/")==0)a=a.substr(1)}b.set_welcomePage(a);b.update();var e=STSHtmlEncode(SP.Res.sending),f=addNotification(e,true);d.executeQueryAsync(function(){removeNotification(f);addNotification(STSHtmlEncode(SP.Res.pageIsSiteHomePage),false)},null)}function SetHomePage(b){var a=function(){SetHomePage2(b)};if(typeof SP!="undefined")EnsureScript("SP.js",typeof SP.ClientContext,a);else EnsureScript("SP.js",typeof SP,a)}function TryCopyStringToClipboard(b){if(typeof window.clipboardData!="undefined"&&typeof window.clipboardData.setData!="undefined")window.clipboardData.setData("Text",b);else if(typeof netscape!="undefined"&&typeof Components!="undefined"){netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");var d=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);if(d==null)return false;d.data=b;var a=Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if(a==null||typeof a.addDataFlavor=="undefined"||typeof a.setTransferData=="undefined")return false;a.addDataFlavor("text/unicode");a.setTransferData("text/unicode",d,b.length*2);var e=Components.interfaces.nsIClipboard,c=Components.classes["@mozilla.org/widget/clipboard;1"].getService(e);if(c==null||typeof c.setData=="undefined")return false;c.setData(a,null,e.kGlobalClipboard)}return true}function CopyStringToClipboard(b){var a=false;try{a=TryCopyStringToClipboard(b)}catch(c){a=false}!a&&alert(SP.Res.clipboardNoAccess)}function CopyPageAddressToClipboard(){CopyStringToClipboard(window.location.href)}function showViewSelector(b,a,d){if(b==null)b=window.event;CancelEvent(b);a=EnsureValidPositioningElement(b,a);if(a!=null&&a.className=="ms-csrlistview-viewselectormenu")a=a.parentNode;var e=function(){SP.Application.UI.ViewSelectorMenuBuilder.showMenu(a,d)},c;try{c=typeof SP.Application.UI.ViewSelectorMenuBuilder.showMenu}catch(f){c="undefined"}EnsureScript("SP.js",c,e)}function EnsureValidPositioningElement(d,c){if(c!=null)return c;var b=GetEventSrcElement(d),a=b;while(a!=null&&a.tagName!="BODY"){if(a.tagName=="TD"&&(a.className=="ms-viewselector"||a.className=="ms-viewselectorhover"))return a;a=a.parentNode}return b}function EnsureCheckoutAndChangeLayoutModeToEdit(e,d,g){var a,c=function(){EnsureScriptParams("browserScript","browserScript.MSOLayout_ChangeLayoutMode",g)},f=function(){var g=a!=null?a.get_item("CheckoutUser"):null;if(!g){if(confirm(Strings.STS.L_ConfirmCheckout_Text)){var b=new SP.ClientContext(undefined),f=b.get_web().get_lists().getById(new SP.Guid(e));a=f.getItemById(d);a.get_file().checkOut();b.executeQueryAsync(c,null)}}else c()},h=function(){var b=new SP.ClientContext(undefined),c=b.get_web().get_lists().getById(new SP.Guid(e));a=c.getItemById(d);b.load(a,"CheckoutUser");b.executeQueryAsync(f,null)},b;try{b=typeof SP.ClientContext}catch(i){b="undefined"}EnsureScript("SP.js",b,h)}function _ChangeLayoutMode(a,b){EnsureScriptParams("browserScript","browserScript.MSOLayout_ChangeLayoutMode",a,b)}function OpenWebPartMenuFromLink(a,b,c,d){OpenWebPartMenu(a,b,c,d,false)}function OpenWebPartMenu(a,b,c,d,e){EnsureScriptParams("browserScript","browserScript.MSOWebPartPage_OpenMenu",a,b,c,d,e);return true}function UpdateWebPartMenuFocus(a,d,c){if(a!=null)a.className=d;var b=null;if(a!=null&&a.childNodes!=null){b=a.childNodes[0];if(b!=null&&b.tagName=="SPAN")b.className=c}}function _WebPartMenuKeyboardClick(c,a,b,d){EnsureScriptParams("browserScript","browserScript.MSOMenu_KeyboardClick",c,a,b,d)}function _ShowToolPane2Wrapper(a,b,c){EnsureScriptParams("browserScript","browserScript.MSOTlPn_ShowToolPane2Wrapper",a,b,c)}function ChangeWebPartPageView(a){EnsureScriptParams("browserScript","browserScript.MSOLayout_ToggleView",a)}function _SetupFixedWidthWebParts(){EnsureScriptParams("browserScript","browserScript.MSOWebPartPage_SetupFixedWidthWebParts")}function EnsureSelectionHandlerOnFocusDeferred(d,c,b){var a=c;while(a.tagName!="TABLE")a=a.parentNode;EnsureSelectionHandlerDeferred(d,a,b)}function EnsureSelectionHandlerDeferred(n,g,k){var d=window["ctx"+String(k)];if(!FV4UI()||d==null){g.onmouseover=null;return}if(d.BaseViewID=="MapView"&&(IsStrNullOrEmpty(g.className)||g.className.indexOf("ms-mapviewtable")==-1))return;ctxInitItemState(d);var e=g.querySelector(".ms-selectall-span");if(e!=null){$addHandler(e,"keydown",function(a){if(a.keyCode==Sys.UI.Key.space||a.keyCode==Sys.UI.Key.enter){ClkElmt(e);e.focus();a.preventDefault()}});$addHandler(e,"mousedown",function(){e.style.outline="none"});$addHandler(e,"mouseup",function(){e.style.outline="";e.firstChild.focus()})}for(var l=g.rows,h=0;h0){b=a.cells[0];var c=b.querySelector(".s4-itm-cbx");if(c!=null){if(!j)c.checked=false;if(typeof c._setup=="undefined"||!Boolean(c._setup)){c._setup=true;var i=TooltipOfRow(a);if(i!=null)if(Flighting.VariantConfiguration.IsExpFeatureClientEnabled(169))c.setAttribute("aria-label",i);else c.title=i;c.onblur=HideItemCbx;c.onfocus=DisplayItemCbx;c.onclick=ToggleItemRowSelection;b.onclick=ToggleItemRowSelection;if(c.nodeName=="DIV"){$addHandler(b,"keydown",function(b,a){return function(c){if(c.keyCode==Sys.UI.Key.space||c.keyCode==Sys.UI.Key.enter){ToggleItemRowSelection(c,b);a.focus()}}}(a,b));$addHandler(b,"mousedown",function(a){return function(){a.style.outline="none"}}(b));$addHandler(b,"mouseup",function(a){return function(){a.style.outline=""}}(b))}}if(a.getAttribute("automode")==null)a.onclick=SingleItemSelect}UpdateAutoMode(a);AddSpaceToEmptyTDs(a);AddBorderToLastCell(a)}}}d.TableMouseoverHandler=g.onmouseover;g.onmouseover=null;AddKeyDownEventHandler(g,k)}function AddKeyDownEventHandler(a,c){if(a.nodeName.toUpperCase()!="TABLE")return;var b=window["ctx"+String(c)];if(IsStrNullOrEmpty(a.className)||b.BaseViewID=="MapView"&&a.className.indexOf("ms-mapviewtable")==-1||b.BaseViewID!="MapView"&&a.className.indexOf("ms-listviewtable")==-1)return;if(a.getAttribute("handleDeleteInit")==null){a.setAttribute("handleDeleteInit","true");$addHandler(a,"keydown",function(a){OnListViewKeyDown(a,c)})}}function OnListViewKeyDown(a,b){var d=GetListContextFromContextNumber(String(b));if(d==null)return;if(d.inGridMode&&PageMinimized()){if(a.ctrlKey&&!a.altKey&&!a.shiftKey&&a.keyCode==="E".charCodeAt(0)){parent.postMessage("ClosingGrid","*");if(window.event!=null)window.event.cancelBubble=true;else a!=null&&a.stopPropagation()}return}var e=a.keyCode,c=a.shiftKey||a.ctrlKey;if(IsCallOutOn())return;switch(e){case Sys.UI.Key.del:HandleItemDelete(a,b);break;case Sys.UI.Key.up:SelectNextRow(b,-1,c,a);break;case Sys.UI.Key.down:SelectNextRow(b,1,c,a);break;case Sys.UI.Key.enter:if(IsEventTargetAnchor(a))return;if(a.target!=null&&!IsStrNullOrEmpty(a.target.className)&&a.target.className.indexOf("ms-lstItmLinkAnchor")>=0)OpenCallOutOrECB(b,a);else ListItem_Open(b,a)}}function OpenCallOutOrECB(e,b){var c=GetListContextFromContextNumber(String(e));if(c==null)return true;var a=b.target,d=DoesListUseCallout(c),f=GetAncestor(a,"TR"),g=IdFromRow(f);if(IsStrNullOrEmpty(g))return true;if(d)ShowCalloutMenuForTr(a,b,true);else ShowECBMenuForTr(a.parentNode,b);return true}function ListItem_Open(c,d){var a=GetListContextFromContextNumber(String(c));if(a==null)return false;var b=GetLastSelectedRow(a);if(b==null)return false;if(a.ListSchema.IsDocLib)OpenDocItem(d,a,b);else OpenListItem(b,c);return true}function OpenDocItem(i,g,b){var a=GetListItemDataFromTrInternal(g,b),c=b,h=GetEcbTdFromRow(b),f=GetEcbDivFromEcbTd(h);if(f!=null)c=f.querySelector("a.ms-draggable");if(c==null)c=b;var e=IsNullOrUndefined(a)?null:b.querySelector('A[IsFolder="TRUE"]');if(!IsNullOrUndefined(e))GoToLink(e);else{var d=g.ListSchema;DispEx(c,i,"TRUE","FALSE",a["File_x0020_Type.url"],a["File_x0020_Type.progid"],d.DefaultItemOpen,a["HTML_x0020_File_x0020_Type.File_x0020_Type.mapcon"],a.HTML_x0020_File_x0020_Type,a["serverurl.progid"],Boolean(a.CheckoutUser)?a.CheckoutUser[0].id:"",d.Userid,d.ForceCheckout,a.IsCheckedoutToLocal,a.PermMask)}}function OpenListItem(b,c){var a=b.querySelector('a[class*="ms-listlink"]');if(a==null)return;EditLink2(a,c)}function GetListItemDataFromTr(a){if(a==null)return null;var b=GetListContextFromTr(a);return b==null?null:GetListItemDataFromTrInternal(b,a)}function GetListItemDataFromTrInternal(b,a){if(b==null||a==null)return null;var c=IdFromRow(a);return ListItemDataFromId(b,c)}function GetListContextFromTr(a){if(a==null)return null;var b=a.getAttribute("iid");if(IsStrNullOrEmpty(b))return null;var c=b.split(",");return c.length<=2?null:GetListContextFromContextNumber(c[0])}function GetListContextFromContextNumber(a){return window["ctx"+a]}function ListItemDataFromId(c,d){if(c==null||d==null||c.ListData==null)return null;var a=c.ListData.Row;if(a==null)return null;for(var e=a.length,b=0;b0){var d='tr[iid="'+b+'"]';a=document.querySelector(d);if(a!=null&&a.getAttribute("automode")!=null)a=null}return a}function GetIndexFromIID(a,c){if(c==null)return-1;var e=c.split(",")[1],d=0;if(a!=null&&a.ListData!=null&&a.ListData.Row!=null){var f=a.ListData.Row;d=f.length;for(var b=0;b0&&SelectRowByIID(b,d)}}function EnsureKeyBoardHandlersRegistered(a){if(a==null)return;if(a.ListData==null||a.ListData.Row==null||a.ListData.Row[0]==null)return;var b=GenerateIIDForListItem(a,a.ListData.Row[0]),d=GetTrFromIID(b);if(d==null)return;var c=GetAncestor(d,"TABLE");if(c==null)return;AddKeyDownEventHandler(c,b.split(",")[0])}function MakeDefaultSelectionForListView(a){if(a==null)return;EnsureKeyBoardHandlersRegistered(a);if(a.ListData!=null&&a.ListData.Row!=null&&a.ListData.Row[0]!=null){var b=GetTrFromIID(GenerateIIDForListItem(a,a.ListData.Row[0]));if(b==null)return;while(b!=null){if(b.className.indexOf("s4-wpcell")>=0||b.className.indexOf("s4-wpActive")>=0)break;b=b.parentNode}if(b==null)return;EnsureScriptParams("ribbon","SelectWp",b)}if(a.LastSelectedItemIID!=null&&a.LastSelectedItemIID.length>0){var e=GetTrFromIID(a.LastSelectedItemIID);if(e!=null){SingleItemSelectByElement(e,false);return}}var c=a.LastRowIndexSelected;if(c==null)c=0;else{if(a.ListData!=null&&a.ListData.Row!=null)var d=a.ListData.Row.length;if(c>=d)c=d==0?-1:d-1}a.LastRowIndexSelected=null;c!=-1&&SelectRowByIndex(a,c,false)}function GetNextRow(d,e){var a=null;if(d!=null&&d.nodeName.toLowerCase()!="tr")return null;if(e==1){a=d.nextSibling;if(a==null){var b=d.parentNode.nextSibling;if(b!=null&&b.tagName=="TABLE")b=b.nextSibling;if(b!=null&&b.tagName=="TBODY")a=b.firstChild}}else if(e==-1){a=d.previousSibling;if(a==null){var c=d.parentNode.previousSibling;if(c!=null&&c.tagName=="TABLE")c=c.previousSibling;if(c!=null&&c.tagName=="TBODY")a=c.lastChild}}if(a!=null){var f=a.getAttribute("iid");return f!=null&&f.length>0?a:GetNextRow(a,e)}return a}function HandleItemDelete(d,c){var b=window["ctx"+String(c)],a=GetLastSelectedRowIndex(b);if(a==-1)a=0;b.LastRowIndexSelected=a;EnsureScriptParams("inplview","inplview.DeleteSelectedItems",b);return false}function GetItemRow2(b){var a=b;while(a!=null&&a.nodeType==1&&a.tagName!="BODY"&&a.getAttribute("iid")==null){if(typeof a.parentNode=="undefined"||a.parentNode==null||typeof a.parentNode.tagName=="undefined"){a=null;break}a=a.parentNode}return a!=null&&a.nodeType==1&&a.tagName=="TR"?a:null}function GetItemRow(a){if(a==null)a=window.event;var b=GetEventSrcElement(a);return GetItemRow2(b)}function TooltipOfRow(e){for(var d=e.cells,b=0,b=0;b2)return""+f[1]}return null}function GetInnerAriaLabel(b){var c=b.querySelector(".ms-listlink"),a=null;if(c!=null)a=c.getAttribute("aria-label");return typeof a!=="undefined"&&a!==null?a:GetInnerText(b)}function AlertCheckOut(){alert(Strings.STS.L_MustCheckout_Text)}function UpdateAutoModeImage(a){if(a==null)a=window.event;if(a!=null){var b=a.srcElement!=null?a.srcElement:a.currentTarget;if(b!=null&&b.tagName=="A")if(a.type=="blur")RemoveCssClassFromElement(b,"ms-inlineEditLink");else a.type=="focus"&&AddCssClassToElement(b,"ms-inlineEditLink")}}function AddAutoModeTag(f,e,g){var a=document.createElement("A");SetEvent("blur",UpdateAutoModeImage,a);SetEvent("focus",UpdateAutoModeImage,a);var c=e;while(c.tagName!="TABLE")c=c.parentNode;if(f.getAttribute("requiresCheckout")!=null)SetEvent("click",AlertCheckOut,a);else{var d=c.getAttribute("inlineedit");if(d!=null)a.href=d.replace("{@ID}","{"+IdFromRow(e)+"}")}var b=document.createElement("IMG");b.className="s4-itm-inlineedit";b.src=g;b.border=0;b.alt=Strings.STS.L_Edit_Text;a.appendChild(b);f.appendChild(a)}function GetEcbAffordanceDivFromRow(a){return a==null?null:a.querySelector("div.ms-list-itemLink")}function UpdateAutoMode(b){if(b!=null){var c=CtxFromRow(b);if(c==null||typeof c.InlineEdit=="undefined"||!Boolean(c.InlineEdit))return;if(b.cells!=null&&b.cells.length>0){var a=b.cells[0];if(a.innerHTML==""&&a.width=="1%"){if(a.getAttribute("requiresCheckout")==null)a.onclick=ClickToEdit;AddAutoModeTag(a,b,"/_layouts/15/images/edititem.gif?rev=47")}else if(b.cells.length>1){a=b.cells[1];if(a.innerHTML==""&&a.width=="1%"){if(a.getAttribute("requiresCheckout")==null)a.onclick=ClickToEdit;AddAutoModeTag(a,b,"/_layouts/15/images/edititem.gif?rev=47")}}}}}function ClickToEdit(a){var c=GetItemRow(a);if(c!=null&&c.cells.length>1){var e=c.cells[1],d=e.firstChild;if(d!=null){var b=d.firstChild;if(b!=null&&b.tagName=="IMG")b.src="/_layouts/15/images/spinnyrefresh.gif?rev=47"}}if(window.event!=null)window.event.cancelBubble=true;else a!=null&&a.stopPropagation()}function HideItemCbx(b){if(b==null)b=window.event;var c=GetItemRow(b),a=GetItemRowCbx(c);if(a!=null&&a.tagName=="INPUT"){a.style.top="";a.style.position="";a.onmouseout=null}}function DisplayItemCbx(b){if(b==null)b=window.event;var c=GetItemRow(b),a=GetItemRowCbx(c);if(a!=null&&a.tagName=="INPUT"){a.style.top="0px";a.style.position="relative";a.onmouseout=HideItemCbx}}function Log(b){var a=document.createElement("DIV");a.innerHTML=b;document.body.appendChild(a)}function _ToggleAllItems(a,b,c){IsFullNameDefined("CUI.PMetrics.perfMark")&&CUI.PMetrics.perfMark(CUI.PMarker.perfWSSSelectOrDeselectAllStart);if(a==null)a=window.event;MenuHtc_hide();ToggleAllItems2(b,c,b.checked);if(window.event!=null)window.event.cancelBubble=true;else a.stopPropagation();IsFullNameDefined("CUI.PMetrics.perfMark")&&CUI.PMetrics.perfMark(CUI.PMarker.perfWSSSelectOrDeselectAllEnd);return false}function ToggleAllItems2(b,f,g){var a=window["ctx"+String(f)];if(a==null){b.checked=false;return}if(a.inGridMode){SPGridToggleAllItems(a);return}var c=b;while(c.tagName!="TABLE")c=c.parentNode;var e=c.rows,d=CountTotalItems(a);if(d==0){b.checked=false;return}if(g){if(d>g_MaximumSelectedItemsAllowed){b.checked=false;alert(Strings.STS.L_BulkSelection_TooManyItems);SP.DebugLogger.Write("FailureSelectAll",SP.DebugLogger.LoggingLevel.Interesting,Strings.STS.L_BulkSelection_TooManyItems);return}SelectAllItems(a,e)}else DeselectAllItems(a,e,true)}function SelectAllItems(a,b){if(a==null||b==null)return;for(var e=a.LastSelectableRowIdx,c=1;cb?c:b;if(!i.ctrlKey)if(CountSelectedItems(a)>0){var d=e;while(d.tagName!="TABLE")d=d.parentNode;for(var h=d.rows,f=0;f1)d=true}if(d&&!k)if(CountSelectedItems(b)>0)for(var h=c==null?null:c.querySelectorAll("tr[class*='s4-itm-selected']"),m=h==null?0:h.length,i=0;i0&&DeselectAllItems(a,d.rows,false)}function callOpenBreadcrumbMenu(a,g,j,i,c,d,e,f,m,n,h,k){IsFullNameDefined("CUI.PMetrics.perfMark")&&CUI.PMetrics.perfMark(CUI.PMarker.perfWSSBreadcrumbStart);if(a==null)a=window.event;a.cancelBubble=true;typeof a.stopPropagation!="undefined"&&a.stopPropagation();var l=function(){SP.UI.PopoutMenu.createPopoutMenuInstanceAndLaunch(g,j,i,c,d,e,f,m,n,h,k)},b;try{b=typeof SP.UI.PopoutMenu.createPopoutMenuInstanceAndLaunch}catch(o){b="undefined"}EnsureScript("SP.js",b,l);IsFullNameDefined("CUI.PMetrics.perfMark")&&CUI.PMetrics.perfMark(CUI.PMarker.perfWSSBreadcrumbEnd)}function AddSpaceToEmptyTDs(b){var c;if(browseris.ie7down&&b!=null){if(b.getAttribute("addEmptySpace")==null)b.setAttribute("addEmptySpace","true");else return;for(c=0;c0){if(browseris.ie7down)a[0].className+="";var b=a[a.length-1];if(b!=null)if(b.className!="")b.className+=" ms-vb-lastCell";else b.className="ms-vb-lastCell"}c.setAttribute("setEdgeBorder","true")}function AddGallery_TypeOf(c){if(c!=null){var b=typeof c;if(b=="object")if(b.constructor!=null){var a=c.constructor.toString(),d=a.indexOf(" "),e=a.indexOf("("),f=a.substr(d+1,e-d-1);return f}return b}return null}function IsLanguageSupportedInSilverlight(a){return a==1025||a==1037||a==1054||a==1081?false:true}function IsSilverlightInstalled(b){if(typeof b=="undefined")b=null;var a=false,l=null;try{var f=null,k=false;if(window.ActiveXObject!=null)try{f=new ActiveXObject("AgControl.AgControl");if(b===null)a=true;else if(typeof f.IsVersionSupported!="undefined"&&f.IsVersionSupported(b))a=true;f=null}catch(m){k=true}else k=true;if(k){var j=typeof navigator.plugins!="undefined"?navigator.plugins["Silverlight Plug-In"]:null;if(j!=null)if(b===null)a=true;else{var i=typeof j.description=="string"?j.description:"";if(i==="1.0.30226.2")i="2.0.30226.2";var c=i.split(".");while(c.length>3)c.pop();while(c.length<4)c.push(0);var e=b.split(".");while(e.length>4)e.pop();var d,h,g=0;do{d=parseInt(e[g]);h=parseInt(c[g]);g++}while(g",e="";for(var f in b){a.push(d);a.push(b[f]);a.push(e)}}return a.join("")}function StURLNormalize(a){if(a.substr(0,2)=="\\\\"||a.substr(0,2)=="//")a="file:"+a;if(a.substr(0,5)=="file:")a=a.replace(/\\/g,"/");return a}function QuickLaunchInitDroppable(){if(Boolean(g_QuickLaunchControlIds)){for(var a=[],c=0;c0&&EnsureScriptParams("DragDrop.js","InitMenuItemAsDroppable",a)}}var g_listItemCache;function GetListItemByIID(b){if(typeof g_listItemCache[b]!=="undefined")return g_listItemCache[b];var d=GetCtxRgiidFromIid(b),a=d.ctx,e=d.rgiid[1];if(typeof a==="undefined"||a===null||typeof a.ListData==="undefined"||a.ListData===null||typeof a.ListData.Row==="undefined"||a.ListData.Row===null)throw"Error: ctx ListData could not be found";for(var c=0;c";var d="",e=String.format(Encoding.HtmlEncode(a),b,d),f=addStatus("",e,false,true);setStatusPriColor(f,"blue")}}function ProcessDLPStatus(){if(!IsPageRenderedInDialog()&&(Flighting.VariantConfiguration.IsExpFeatureClientEnabled(103)||Flighting.VariantConfiguration.IsExpFeatureClientEnabled(306))&&document.cookie.indexOf("mobile=1")==-1&&document.location.href.indexOf("mobile=1")==-1){var a="";GetRESTValueFromCurrentSite("/Web/DataLeakagePreventionStatusInfo",function(a,e){var d="",b="";if(Boolean(a)&&Boolean(a.d)){var c=false;if(Flighting.VariantConfiguration.IsExpFeatureClientEnabled(103)){var i=a.d.ContainsConfidentialInfo,g=a.d.ContainsConfidentialInfoLearnMoreUrl;if(Boolean(i)){RenderDLPStatusBar(Strings.STS.L_DLPLite_StatusBar_SiteWithConfidentialInfo_Text,g);c=true}}if(Flighting.VariantConfiguration.IsExpFeatureClientEnabled(306)){var h=a.d.ExternalSharingTipsEnabled,f=a.d.ExternalSharingTipsLearnMoreUrl;if(Boolean(h)){RenderDLPStatusBar(Strings.STS.L_DLPLite_StatusBar_SiteShareableWithExternalUsers_Text,f);c=true}}c&&LogRUMExtendedAction("DLPLiteBannersRendered",0,null,+new Date,0)}else if(Boolean(e)){d="UnexpectedError";b=e}else{d="UnexpectedError";b="JSON data not in expected format: dataObj.d.DataLeakagePreventionStatusInfo"}Boolean(b)&&SP.SOD.executeFunc("sp.core.js","SP.SimpleLogger",function(){var a=GetSimpleLogger();if(a==null)return;var c={EventType:d,Message:b};a.WriteLog("DLPLite",c)})})}}function GetLayoutsPageUrl(c,f,a){var e=!c.endsWith("/")?"/":"",d=[c,e,_spPageContextInfo.layoutsUrl,"/",f],b=new URI(d.join(""));Boolean(a)&&b.setQuery(a);return b.getString()}function GetAdvancedPermissionPageUrl(d,b,c){var a=[];if(Boolean(b)){a.push("?List=",b);Boolean(c)&&a.push("&obj=",b,",",c,",LISTITEM")}return GetLayoutsPageUrl(d,"user.aspx",a.join(""))}var _searchClickLogTerm,_searchClickLogSeq;function WriteSearchClickLog(f){try{var c=GetItemRow(f),a=CtxFromRow(c),e=c.getAttribute("iid"),b=GetIndexFromIID(a,e)+a.ListData.FirstRow,d=typeof a.completedSearchTerm!="undefined"&&a.completedSearchTerm!=null;if(typeof a.ListTemplateType!="undefined"&&d){if(_searchClickLogTerm!=a.completedSearchTerm){_searchClickLogSeq=0;_searchClickLogTerm=a.completedSearchTerm}if(a.ListTemplateType==700)SP.QoS.WriteUserEngagement("OneDriveInPlaceSearchItemClick",{index:b,seq:_searchClickLogSeq++});else SP.QoS.WriteUserEngagement("SitesInPlaceSearchItemClick",{index:b,seq:_searchClickLogSeq++})}}catch(g){}}function CanSupportRoamingApps(){return BrowserDetection.userAgent.win&&!BrowserDetection.userAgent.armProcessor&&(BrowserDetection.userAgent.ie||BrowserDetection.userAgent.firefox3up||BrowserDetection.userAgent.chrome)}function DisplayCreateListDialog(f){var h="createList_control",e="createList_progBar",d="createList_createButton",c="createList_nameInput",b="createList_nameError",a,i=function(k){PreventDefaultNavigation(k);var i=document.getElementById(c+"_onetidIOFile"),h;if(Boolean(i))h=i.value.trim();var g=document.getElementById(b);if(Boolean(g))if(!Boolean(h)){setInnerText(g,Strings.STS.L_SPClientRequiredValidatorError);g.style.display="";a.autoSize()}else{setInnerText(g,"");g.style.display="none";a.autoSize();var j=document.getElementById(e);CSSUtil.RemoveClass(j,"ms-hide");document.getElementById(d).disabled=true;Boolean(f)&&f(h)}},g=function(){var g=document.createElement("form");g.id="ms-creatlistdialog-root";var k={createListControlId:h,progressBarId:e,loadingCirlceImage:"/_layouts/15/images/loadingcirclests16.gif?rev=47",createButtonId:d,text_fileName:Encoding.HtmlEncode(Strings.STS.L_FileName_Text),text_requiredField:Encoding.HtmlEncode(Strings.STS.L_RequiredField_Tooltip),listNameInputId:c,listNameErrorId:b,text_createButton:Encoding.HtmlEncode(Strings.STS.L_CreateButtonCaption),text_cancelButton:Encoding.HtmlEncode(Strings.STS.L_CancelButtonCaption)},j="{%version 2.0}

{=text_fileName} *

",f=new Renderer;f.SetTemplate("main",j);f.RegisterHandler("createBtn_click",i);f.RegisterHandler("cancelBtn_click",function(){a.close(SP.UI.DialogResult.cancel)});g.innerHTML=f.Render("main",k);return g};EnsureScriptFunc("SP.UI.Dialog.js","SP.UI.ModalDialog.showModalDialog",function(){var b=g(),c={html:b,title:Encoding.HtmlEncode(Strings.STS.L_CreateList_Text),autoSize:true,autoSizeStartWidth:450};a=new SP.UI.ModalDialog.showModalDialog(c)})}function DeleteListWithRedirect(c,b){!Boolean(c);var a=Boolean(b)?b:"NoSource";a=a+"_DeleteList_";DeleteListWithREST(c,function(){SP.QoS.WriteSuccess(a+"Success");if(Flighting.VariantConfiguration.IsExpFeatureClientEnabled(401))STSNavigate(GetLayoutsPageUrl(_spPageContextInfo.webAbsoluteUrl,"group.aspx"));else STSNavigate(_spPageContextInfo.webAbsoluteUrl)},function(b){SP.QoS.WriteFailure(a+"Failure");var d=Strings.STS.L_DragDropNotWorkingErrorTitle,c="";if(Boolean(b)&&Boolean(b.responseText))c=b.responseText;ShowErrorDialogCore(d,c)});return false}function DeleteListWithREST(e,a,b){if(confirm(Strings.STS.L_DeleteList_Confirmation))if(Boolean(e)&&Boolean(_spPageContextInfo)&&Boolean(_spPageContextInfo.webAbsoluteUrl)){var f=SP.UI.Notify.showLoadingNotification(true),g=_spPageContextInfo.webAbsoluteUrl+"/_api/web/Lists/GetById(id='"+e+"')/Recycle",c=function(d){var c=new XMLHttpRequest;c.open("POST",g,true);c.onload=function(){if(c.status===200)Boolean(a)&&a();else Boolean(b)&&b(c);SP.UI.Notify.removeNotification(f)};c.setRequestHeader("accept","application/json; odata=verbose");c.setRequestHeader("Content-Type","application/json;odata=verbose");c.setRequestHeader("x-requestdigest",d);c.send()},d=GetRequestDigest(_spPageContextInfo.webAbsoluteUrl,c);Boolean(d)&&c(d)}else throw"DeleteListWithREST(): listId is null";}var _lastRequestDigestUpdate,_requestDigest,_updateInterval;function GetRequestDigest(c,b){if(!Boolean(_lastRequestDigestUpdate)){var a=document.getElementsByName("__REQUESTDIGEST")[0];if(typeof _spPageContextInfo!="undefined"&&typeof _spPageContextInfo.updateFormDigestPageLoaded!="undefined"&&a!=null&&a.tagName.toLowerCase()=="input"&&a.type.toLowerCase()=="hidden"&&Boolean(a.value)){_lastRequestDigestUpdate=_spPageContextInfo.updateFormDigestPageLoaded;_requestDigest=document.forms[MSOWebPartPageFormName].__REQUESTDIGEST.value}else _lastRequestDigestUpdate=new Date}var d=new Date;if(d.getTime()-_lastRequestDigestUpdate.getTime()>=_updateInterval||!Boolean(_requestDigest)){UpdateRequestDigest(c,b);return null}return _requestDigest}function UpdateRequestDigest(c,b){var d=new Date,a=new XMLHttpRequest;a.open("POST",c+"/_api/contextinfo",true);a.setRequestHeader("Content-Type","application/json;odata=verbose");a.setRequestHeader("Accept","application/json; odata = verbose");a.onload=function(){if(a.status===200){var c=JSON.parse(a.responseText);_requestDigest=c.d.GetContextWebInformation.FormDigestValue;_lastRequestDigestUpdate=new Date;Boolean(b)&&b(_requestDigest)}};a.send()}function CreatePanel(h){ClosePanel();if(!(window.OffSwitch==null||OffSwitch.IsActive("42A482A3-3F3B-4CC4-BA83-5C1A5D56F1E1")))O365Shell&&O365Shell.FlexPane&&O365Shell.FlexPane.CloseFlexPaneForProvider&&O365Shell.FlexPane.CloseFlexPaneForProvider("Settings");var f=document.createElement("DIV");f.id="ms-OldPanel-PanelBackdrop";f.className="ms-OldPanel-PanelBackdrop";f.onclick=ClosePanel;document.body.appendChild(f);var e=document.createElement("DIV");e.id="ms-OldPanel-PanelContainer";e.className="ms-OldPanel-PanelContainer";e.style.height="calc(100% - 50px)";var g=document.createElement("IFRAME");g.className="ms-OldPanel-Frame";g.src=h;if(SP.Res)g.title=SP.Res.PanelTitle;e.appendChild(g);var d=document.createElement("DIV");d.id="ms-OldPanel-CloseButton";d.className="ms-OldPanel-CloseButton";SP.Res&&d.setAttribute("aria-label",SP.Res.ClosePanel);d.onclick=ClosePanel;var c=document.createElement("SPAN");c.id="ms-OldPanel-CloseButtonOuterSpan";c.style.padding="8px";c.style.width="16px";c.style.height="16px";c.style.display="inline-block";var a=document.createElement("SPAN");a.id="ms-OldPanel-CloseButtonInnerSpan";a.className="s4-clust";a.style.width="16px";a.style.height="16px";a.style.overflow="hidden";a.style.position="relative";a.style.display="inline-block";var b=document.createElement("IMG");b.id="ms-OldPanel-CloseButtonImage";b.className="ms-dlgCloseBtnImg";b.alt=Strings.STS.L_OldPanel_CloseText;b.src="/_layouts/15/images/fgimg.png?rev=44";b.style.left="0px";b.style.top="-645px";b.style.position="absolute";a.appendChild(b);c.appendChild(a);d.appendChild(c);e.appendChild(d);document.body.appendChild(e)}function ClosePanel(){var b=document.getElementById("ms-OldPanel-PanelContainer");b!==null&&b!==undefined&&document.body.removeChild(b);var a=document.getElementById("ms-OldPanel-PanelBackdrop");a!==null&&a!==undefined&&document.body.removeChild(a)}var g_NotificationEngine,g_notiExpireTimerId,g_standardNotiCt,g_statusNotiCt,SPNotifications,g_SPNotificationEventID_Count,addNotification,removeNotification;function NotificationEngine(){this.Initialize()}function SPNotification(c,g,f,d,a,e,b){this.Initialize(c,g,f,d,a,e,b)}function SPNotificationContainer(d,a,c,b){this.Initialize(d,a,c,b)}function SPStatusNotificationData(c,d,a,b){this.txt=c;this.dt=d;this.img=a;this.sip=b}function addSharingNotification(h,i,b,e,d,c,f){var a;if(e)a=STSHtmlEncode(Strings.STS.L_SharingNotificationAccessRequestsMode);else if(d)a=STSHtmlEncode(Strings.STS.L_SharingNotificationGuestLink);else if(c)a=STSHtmlEncode(Strings.STS.L_SharingNotificationExternalUsers);else if(b!==null&&b.length>0)a=STSHtmlEncode(StBuildParam(Strings.STS.L_SharingNotificationPrefixText,b.join(Strings.STS.L_SharingNotificationUserSeparator)));else a=STSHtmlEncode(Strings.STS.L_SharingNotificationEmptyText);if(f)parent.postMessage("success:"+a,"*");else{var g=new SPStatusNotificationData("",a,i,null),j=new SP.UI.Notify.Notification(SPNotifications.ContainerID.Status,STSHtmlEncode(h),false,null,null,g,"assertive");window.setTimeout(function(){j.Show(false)},200)}}var cGCMinimumWidth,cGCMinimumHeight,cGCMaxGCResizeCount,glGCObjectHeight,glGCObjectWidth,glGCResizeCounter;function GCComputeSizing(e){if(TestGCObject(e)){var g=document.documentElement.currentStyle.direction=="rtl",h=typeof document.compatMode!="undefined"&&document.compatMode=="BackCompat",d=h?document.documentElement.scrollWidth:document.documentElement.clientWidth,f=h?document.documentElement.scrollHeight:document.documentElement.clientHeight,b=0,c=0;if(g){b=-180;c=120}else{b=32;c=-2}var a=e.parentNode;while(a!=document.body){b+=a.offsetLeft;c+=a.offsetTop;a=a.offsetParent;if(a==null)break;if(g)if(a.offsetLeft>0)break}b+=e.parentNode.offsetLeft;c+=e.parentNode.offsetTop;glGCObjectHeight=f-c;if(glGCObjectHeight>f)glGCObjectHeight=f;if(glGCObjectHeightd)glGCObjectWidth=d;if(glGCObjectWidth0){var b=c.split(" ");if(b!=null&&b.length>1&&b[b.length-1]=="itx")return true}return false}function DeferredOnItem(b){var a=itemTableDeferred;if(a!=null){MenuHtc_hide();OnItem(a);if(IsAjaxMenu(a))CreateAjaxMenu(b);else CreateMenu(b);return false}return undefined}function EndDeferItem(){var a=itemTableDeferred;if(a!=null){itemTableDeferred=null;var c=a.tagName=="TABLE";if(c){a.onmouseout=null;a.onclick=null;a.oncontextmenu=null}else{var b=a.parentNode;b.onmouseout=null;b.onclick=null;b.oncontextmenu=null}}}function GetLastChildElement(b){for(var a=b.childNodes.length-1;a>=0;a--)if(b.childNodes[a].nodeType==1)return b.childNodes[a];return null}function CreateHiddenCtxMenu(b,a){return List_CreateCtxImg_Helper(b,a,false)}function CreateCtxImg(b,a){return List_CreateCtxImg_Helper(b,a,true)}function IsInCtxImg(a){while(a!=null&&a.tagName!="TD"&&a.tagName!="BODY"&&a.className.indexOf("s4-ctx")==-1)a=a.parentNode;return a!=null&&a.className.indexOf("s4-ctx")!=-1?a:null}function OnItemDeferCall(h){if(!IsMenuEnabled())return false;if(IsMenuOn()){StartDeferItem(h);return false}if(itemTable==h)return undefined;itemTable!=null&&OutItem();itemTable=h;currentItemID=GetAttributeFromItemTable(itemTable,"ItemId","Id");var c=itemTable.tagName=="TABLE",k=new Function("setupMenuContextName('"+itemTable.getAttribute("CTXName")+"');");k();var g=currentCtx,j=IsAjaxMenu(itemTable);if(c){if(browseris.nav6up)itemTable.className="ms-selectedtitlealternative";else itemTable.className="ms-selectedtitle";if(j)itemTable.className=itemTable.className+" itx"}var a=itemTable.parentNode;while(a.tagName!="TD"&&a.tagName!="BODY")a=a.parentNode;var b=null;if(!c)if(g.IsClientRendering!=true)b=CreateCtxImg(a,OutItem);var d=j?CreateAjaxMenu:CreateMenu;if(c){itemTable.onclick=d;itemTable.oncontextmenu=d}else{var i=false;if(b!=null)if(b.onclick==null)b.onclick=d;else i=true;if(!i)a.oncontextmenu=d;else if(b!=null)a.oncontextmenu=b.onclick}if(c)itemTable.onmouseout=OutItem;else if(a.getAttribute("IsECB")!="TRUE"||itemTable.onmouseover!=null)a.onmouseout=OutItem;if(c){var f;f=GetFirstChildElement(GetFirstChildElement(itemTable));if(f!=null)imageCell=GetLastChildElement(f);if(g.listTemplate==200){if(itemTable.getAttribute("menuType")=="Orphaned")downArrowText=Strings.STS.L_Reschedule_Text}else downArrowText=Strings.STS.L_Edit_Text;var e=GetFirstChildElement(imageCell);e.src=g.imagesPath+"menudark.gif";e.alt=downArrowText;e.style.visibility="visible";imageCell.className="ms-menuimagecell"}return false}function OutItem(b){var a=null;if(b!=null&&typeof b.callOut!="undefined"&&Boolean(b.callOut)&&typeof ecbManager!="undefined"&&typeof ecbManager.callOutPar!="undefined"&&ecbManager.callOutPar!=null)a=ecbManager.callOutPar;if(!IsMenuOn()&&(itemTable!=null||a!=null)){var d=itemTable!=null&&itemTable.tagName=="TABLE";if(d){if(IsAjaxMenu(itemTable))itemTable.className="ms-unselectedtitle itx";else itemTable.className="ms-unselectedtitle";itemTable.onclick=null;itemTable.oncontextmenu=null;itemTable.onmouseout=null}else{if(a==null)a=GetAncestorByTagNames(itemTable,["TD","TH"]);if(a!=null&&a.getAttribute!=null&&a.getAttribute("IsCallout")=="TRUE")if(typeof CalloutManager==="object"&&typeof calloutManager!="undefined"&&typeof calloutManager.containsOneCalloutOpen=="function"&&calloutManager.containsOneCalloutOpen(a)){ecbManager.callOutPar=a;return true}var c=null;if(b==null)b=window.event;if(b!=null){c=typeof b.toElement!="undefined"&&b.toElement!=null?b.toElement:b.relatedTarget;if(a!=null&&c!=null&&IsContained(c,a))return true}if(a!=null){a.onclick=null;a.oncontextmenu=null;a.onmouseout=null;RemoveCtxImg(a)}}if(d&&imageCell!=null){GetFirstChildElement(imageCell).style.visibility="hidden";imageCell.className=""}resetExecutionState()}return undefined}function IsMenuOn(){if(!IsMenuShown)return false;var a=false;if(isDocLibContextMenu)a=ContextMenu.IsOpen();else a=MenuHtc_isOpen(currentEditMenu);if(!a)IsMenuShown=false;return a}function _PopMenuFromChevron(a){IsFullNameDefined("CUI.PMetrics.perfMark")&&CUI.PMetrics.perfMark(CUI.PMarker.perfWSSFilterSortStart);if(a==null)a=window.event;var g=Boolean(a.srcElement)?a.srcElement:a.target;if(a!=null)if(Boolean(a.target))g_menuLaunchPoint=a.target;else if(Boolean(a.srcElement))g_menuLaunchPoint=a.srcElement;if(g_menuLaunchPoint!=null){while(g_menuLaunchPoint.tagName!="A"&&g_menuLaunchPoint.tagName!="BODY")g_menuLaunchPoint=g_menuLaunchPoint.parentNode;g_menuLaunchPoint.setAttribute("aria-expanded","true")}var c=g.parentNode;while(c.tagName!="TD"&&c.tagName!="TH"&&c.tagName!="BODY")c=c.parentNode;var d,b;if(c.tagName=="TD"){d=c.getElementsByTagName("DIV");var f=null;for(b=0;b=0&&c>=0){a={};a.clientX=b;a.clientY=c}return CreateMenuEx(f,itemTable,a)}function AddSendSubMenu(k,r,a,p,q){var y=Boolean(a.CurrentSelectedItems>1),l=[];l.Copy=Strings.STS.L_SubmitFileCopyWarning_Text;l.Move=Strings.STS.L_SubmitFileMoveWarning_Text;l.Link=Strings.STS.L_SubmitFileLinkWarning_Text;var d=Strings.STS.L_Send_Text,C=GetAttributeFromItemTable(itemTable,"Url","ServerUrl"),f,n,i;if(currentItemFileUrl!=null){n=unescapeProperly(currentItemFileUrl);if(!(window.OffSwitch==null||OffSwitch.IsActive("587EBAE9-3F96-405E-B02F-E1BE9A756777"))&&ShouldCallEncodeURIComponent()){f=encodeURIComponent(currentItemFileUrl);f=encodeScriptQuote(f)}else f=escapeProperly(n);i=SzExtension(n);if(i!=null&&i!="")i=i.toLowerCase()}var u=itemTable.getAttribute("SRed"),x=itemTable.getAttribute("DefaultIO");if(x=="0"&&!HasRights(0,32))x="1";var t=currentItemProgId!="SharePoint.WebPartPage.Document"&&!Boolean(a.RealHttpRoot)&&HasDownloadRights(u)&&i!="aspx",s=currentItemFSObjType!="1"&&a.listBaseType==1&&HasDownloadRights(u);if(!t&&!s)return;if(!isDocLibContextMenu){var e=null;if(!Boolean(a.RealHttpRoot)){e=CASubM(k,d,"","",String(WSS_MENUITEMSEQUENCE_SENDMENU));CUIInfo(e,"SendTo",["SendTo","PopulateSendToMenu"]);e.IsSubMenu=true;e.id="ID_Send";e.style.display="none"}var c;if(t){if(typeof a.SendToLocationName!="undefined"&&a.SendToLocationName!=null&&a.SendToLocationName!=""&&typeof a.SendToLocationUrl!="undefined"&&a.SendToLocationUrl!=null&&a.SendToLocationUrl!=""){var b="Nav.navigate('"+a.HttpRoot+"/_layouts/15/copy.aspx?SourceUrl="+f+"&FldUrl="+escapeProperly(a.SendToLocationUrl);b=AddSourceToUrl(b)+"')";c=CAMOpt(e,a.SendToLocationName,b,"");CUIInfo(c,"SendToRecommendedLocation",["SendToRecommendedLocation"])}if(typeof itemTable.getAttribute("HCD")!="undefined"&&itemTable.getAttribute("HCD")=="1"){d=Strings.STS.L_ExistingCopies_Text;b="Nav.navigate('"+a.HttpRoot+"/_layouts/15/updatecopies.aspx?SourceUrl="+f;b=AddSourceToUrl(b)+"')";var g=a.imagesPath+"existingLocations.gif";c=CIMOpt(e,d,b,g);c.id="ID_ExistingCopies";CUIInfo(c,"SendToExistingCopies",["SendToExistingCopies"])}}}if(!Boolean(a.RealHttpRoot)){if(isNewEcb&&!currentItemIsMountPoint&&!Boolean(a.RealHttpRoot)&&Flighting.VariantConfiguration.IsExpFeatureClientEnabled(329)&&a.listTemplate==700)AddMoveCopyMenuItem(k,r,a,p,q);else if(!y&&!hasFolderSelected(a)){d=Strings.STS.L_OtherLocation_Text;if(isNewEcb)d=Strings.STS.L_Copy_Text;b="NavigateToSendToOtherLocationV4(event, '"+a.HttpRoot+"/_layouts/15/copy.aspx?SourceUrl="+f;b=AddSourceToUrl(b)+"')";g=a.imagesPath+"sendOtherLoc.gif";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(p,q,"ID_OtherLocation",d,b,g,String(WSS_MENUITEMSEQUENCE_COPY));else{if(isNewEcb)c=InsertMenuOption(k,r,d,b,g,String(WSS_MENUITEMSEQUENCE_COPY));else c=CAMOpt(e,d,b,g);c.id="ID_OtherLocation";CUIInfo(c,"SendToOtherLocation",["SendToOtherLocation"])}if(typeof a.OfficialFileNames=="string"&&a.OfficialFileNames!=""){var o=a.OfficialFileNames.split("__HOSTSEPARATOR__");if(o!=null)for(var m=0;m0)for(var j=c.substring(h+1,c.length).toLowerCase(),f=false,a=0;a=504)a="alert('"+Strings.STS.L_ReplyLimitMsg_Text+"')";else{a="Nav.navigate('"+b.newFormUrl+"&Threading="+escapeProperly(itemTable.getAttribute("Ordering"))+"&Guid="+escapeProperly(itemTable.getAttribute("ThreadID"))+"&Subject="+escapeProperly(itemTable.getAttribute("Subject"));a=AddSourceToUrl(a)+"')"}d=b.imagesPath+"reply.gif";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(g,h,"ID_Reply",c,a,d,String(WSS_MENUITEMSEQUENCE_REPLY));else{if(isNewEcb)e=InsertMenuOption(f,i,c,a,d,String(WSS_MENUITEMSEQUENCE_REPLY));else e=CAMOpt(f,c,a,d,null,String(WSS_MENUITEMSEQUENCE_REPLY));e.id="ID_Reply"}}AddSharedNamespaceMenuItems(f,i,b,g,h);var m=itemTable.getAttribute("CId");if(m!=null&&m.indexOf("0x0106")==0&&HasRights(16,0)){c=Strings.STS.L_ExportContact_Text;a="Nav.navigate('"+b.HttpPath+"&Cmd=Display&CacheControl=1&List="+b.listName+"&ID="+currentItemID+"&Using="+escapeProperly(b.listUrlDir)+"/vcard.vcf')";d=b.imagesPath+"exptitem.gif";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(g,h,"ID_ExportContact",c,a,d,String(WSS_MENUITEMSEQUENCE_EXPORTCONTACT));else{if(isNewEcb)e=InsertMenuOption(f,i,c,a,d,String(WSS_MENUITEMSEQUENCE_EXPORTCONTACT));else e=CAMOpt(f,c,a,d,null,String(WSS_MENUITEMSEQUENCE_EXPORTCONTACT));CUIInfo(e,"ExportContact",["ExportContact"]);e.id="ID_ExportContact"}}!isNewEcb&&CAMSep(f);b.verEnabled==1&&AddVersionsMenuItem(f,i,b,j,g,h);if(HasRights(0,4)&&b.isModerated==true&&HasRights(0,16)&&HasRights(0,135168)&&b.listBaseType!=4&¤tItemID.indexOf(".0.")<0){c=Strings.STS.L_ModerateItem_Text;a="NavigateToApproveRejectAspx(event, '"+b.HttpRoot+"/_layouts/15/approve.aspx?List="+b.listName+"&ID="+n;a=AddSourceToUrl(a)+"')";d=b.imagesPath+"apprj.gif";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(g,h,"ID_ModerateItem",c,a,d,String(WSS_MENUITEMSEQUENCE_MODERATEITEM));else{if(isNewEcb)e=InsertMenuOption(f,i,c,a,d,String(WSS_MENUITEMSEQUENCE_MODERATEITEM));else e=CAMOpt(f,c,a,d,null,String(WSS_MENUITEMSEQUENCE_MODERATEITEM));CUIInfo(e,"Moderate",["Moderate"]);e.id="ID_ModerateItem"}}!isNewEcb&&CAMSep(f);var k=Number(b.SiteTemplateId)===64&&Number(b.listTemplate)===100&&(window.OffSwitch==null||OffSwitch.IsActive("E5476C60-BE39-4AD0-B185-AB24370E049E"));!k&&AddWorkflowsMenuItem(f,i,b,g,h);var l=typeof _spPageContextInfo!="undefined"&&_spPageContextInfo!=null&&_spPageContextInfo.alertsEnabled;if(currentItemID.indexOf(".0.")<0&&HasRights(128,0)&&!b.ExternalDataList&&l&&!currentItemIsMountPoint&&!k){c=Strings.STS.L_Subscribe_Text;a="NavigateToSubNewAspxV4(event, '"+b.HttpRoot+"', 'List="+b.listName+"&ID="+currentItemID+"')";d="";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(g,h,"ID_Subscribe",c,a,d,String(WSS_MENUITEMSEQUENCE_SUBSCRIBE));else{if(isNewEcb)e=InsertMenuOption(f,i,c,a,d,String(WSS_MENUITEMSEQUENCE_SUBSCRIBE));else e=CAMOpt(f,c,a,d,null,String(WSS_MENUITEMSEQUENCE_SUBSCRIBE));e.id="ID_Subscribe";CUIInfo(e,"Subscribe",["Subscribe"])}}if(l||!b.ExternalDataList&&HasRights(0,4))!isNewEcb&&CAMSep(f);!k&&AddManagePermsMenuItem(f,i,b,b.listName,currentItemID,g,h);if(currentItemID.indexOf(".0.")<0&&HasRights(0,8)&&!currentItemIsEventsExcp){if(b.listBaseType==4)c=Strings.STS.L_DeleteResponse_Text;else c=Strings.STS.L_DeleteItem_Text;a="DeleteListItem()";d=b.imagesPath+"delitem.gif";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(g,h,"ID_DeleteItem",c,a,d,String(WSS_MENUITEMSEQUENCE_DELETEITEM));else{if(isNewEcb)e=InsertMenuOption(f,i,c,a,d,String(WSS_MENUITEMSEQUENCE_DELETEITEM));else e=CAMOpt(f,c,a,d,null,String(WSS_MENUITEMSEQUENCE_DELETEITEM));e.id="ID_DeleteItem";CUIInfo(e,"Delete",["Delete"])}}var o=currentItemProgId!=null&¤tItemProgId!="";if(currentItemFSObjType=="1"&&!o&&HasRights(0,4)&&b.ContentTypesEnabled&&b.listTemplate!=108){c=Strings.STS.L_CustomizeNewButton_Text;a="Nav.navigate('"+b.HttpRoot+"/_layouts/15/ChangeContentTypeOrder.aspx?List="+b.listName+"&RootFolder="+j;a=AddSourceToUrl(a)+"')";d="";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(g,h,"ID_CustomizeNewButton",c,a,d,String(WSS_MENUITEMSEQUENCE_CUSTOMIZENEWBUTTON));else{if(isNewEcb)e=InsertMenuOption(f,i,c,a,d,String(WSS_MENUITEMSEQUENCE_CUSTOMIZENEWBUTTON));else e=CAMOpt(f,c,a,d,null,String(WSS_MENUITEMSEQUENCE_CUSTOMIZENEWBUTTON));CUIInfo(e,"ChangeNewButton",["ChangeNewButton"]);e.id="ID_CustomizeNewButton"}}_ContextForShowingShareDialog=b;a="DisplaySharingDialogFromEcb('"+currentItemID+"')";c=Strings.STS.L_Share_Text;if(isDocLibContextMenu)InsertItemToContextMenuDefinition(g,h,"ID_Share",c,a,d,String(WSS_MENUITEMSEQUENCE_SHARE));else{e=InsertMenuOption(f,i,c,a,d,String(WSS_MENUITEMSEQUENCE_SHARE));e.id="ID_Share"}}function ReplaceUrlTokens(d,e,h){var c;if(d==null||d==""){d="";return d}if(currentItemID!=null)d=d.replace(/{ItemId}/g,currentItemID);var a=null,b=null,f=d.indexOf("?");if(-1!=f&&f+21950)a=a.replace(/{Source}/g,"");else a=a.replace(/{Source}/g,g);return null==a?b:b+a}var SYSTEM_ACCOUNT_ID;function UseCustomAction(c,a,f,g,j,k,e,d,h){var b=false,i=true;if(a!=null){a=a.toLowerCase();if(c=="FileType")b=j==a.toLowerCase();else if(c=="ProgId")b=k==a.toLowerCase();else if(c=="ContentType")b=e!=null&&e.indexOf(a.toLowerCase())==0;else if(c=="List")if(null!=d&&d==a)b=true;else if(null!=h&&h==a)b=true}if(b)i=!HasRights(f,g)||IsTrimmedBySystem(f,g);return b&&!i}function InsertFeatureMenuItems(A,L,b,H,J){!isNewEcb&&CAMSep(A);var k=GetAttributeFromItemTable(itemTable,"Ext","FileType"),l=GetAttributeFromItemTable(itemTable,"Type","HTMLType"),i=GetAttributeFromItemTable(itemTable,"CId","ContentTypeId"),o=null,m=null,s=ecbItems,E=Boolean(b.CurrentSelectedItems>1);if(b!=null){o=String(b.listTemplate);if(null!=b.listName&&00?j:null;a.FromTenantApp=false;if(j!=null&&j.length>0)w[j]=true;h.push(a)}var x=GetTenantAppData();if(x!=null){var z=x.apps;for(e=0;e0)c="addWopiPerfMarkEx(null, 1,'"+t+"'); "+c}if(c!=null){var n="";if(isNewEcb)if(IsWopiViewAction(a))if(B)n="none";var y="ID_CA_"+a.Title;if(isDocLibContextMenu)InsertItemToContextMenuDefinition(H,J,y,a.Title,c,a.ImageUrl,String(a.Sequence),"display:"+n);else{var D=a.ImageUrl==null?null:ReplaceUrlTokens(a.ImageUrl,b);p=InsertMenuOption(A,L,a.Title,c,D,String(a.Sequence));p.id=y;if(n!="")p.style.display=n}}}}function HandleWopiActions(b){if(!isNewEcb)return false;for(var c=false,a=0;a1)){var s=currentItemCheckedOutUserId==String(SYSTEM_ACCOUNT_ID)&&a.CurrentUserId!=String(SYSTEM_ACCOUNT_ID),d,c,b,e;if(a.listBaseType==1)if(isNewEcb)c=Strings.STS.L_Properties_Text;else c=Strings.STS.L_ViewProperties_Text;else if(a.listBaseType==4)c=Strings.STS.L_ViewResponse_Text;else c=Strings.STS.L_ViewItem_Text;var h="";if(currentItemContentTypeId!=null&¤tItemContentTypeId!="")h="&ContentTypeID="+currentItemContentTypeId;var g="&";if(a.displayFormUrl.indexOf("?")==-1)g="?";var j=a.displayFormUrl+g+"ID="+currentItemID+h;j=AddSourceToUrl(j)+q;if(301==a.listTemplate)b="EditItem('"+j+"')";else if(!(window.OffSwitch==null||OffSwitch.IsActive("86DB236A-5802-4DB0-827E-D824B57BE657")))b="EditItem2(event, '"+STSScriptEncode(j)+"')";else b="EditItem2(event, '"+j+"')";var f;if(a.listBaseType==1)f="ID_ViewProperties";else f="ID_ViewItem";var n="",o=HasRights(0,4)&&!s&&!currentItemIsEventsDeletedExcp;if(o)if(isNewEcb&&a.listBaseType==1)n="none";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(k,l,f,c,b,e,String(WSS_MENUITEMSEQUENCE_VIEWPROPERTIES),"display:"+n);else{if(isNewEcb)d=InsertMenuOption(i,m,c,b,e,String(WSS_MENUITEMSEQUENCE_VIEWPROPERTIES));else d=CAMOpt(i,c,b,e,null,String(WSS_MENUITEMSEQUENCE_VIEWPROPERTIES));CUIInfo(d,"ViewProperties",["ViewProperties"]);d.id=f;d.style.display=n}if(o){if(a.listBaseType==1)if(isNewEcb)c=Strings.STS.L_Rename_Text;else c=Strings.STS.L_EditProperties_Text;else if(a.listBaseType==4)c=Strings.STS.L_EditResponse_Text;else c=Strings.STS.L_EditItem_Text;g="&";if(a.editFormUrl.indexOf("?")==-1)g="?";if(a.listBaseType==1){b="EditItemWithCheckoutAlert(event, '"+a.editFormUrl+g+"ID="+currentItemID+h;b=AddSourceToUrl(b)+q+"',"+String(bIsCheckout)+",'"+currentItemCheckedoutToLocal+"','"+STSScriptEncode(currentItemFileUrl)+"','"+a.HttpRoot+"')"}else if(FV4UI())if(!(window.OffSwitch==null||OffSwitch.IsActive("86DB236A-5802-4DB0-827E-D824B57BE657")))b="EditItem2(event, '"+STSScriptEncode(a.editFormUrl)+g+"ID="+currentItemID+h+"')";else b="EditItem2(event, '"+a.editFormUrl+g+"ID="+currentItemID+h+"')";else{b="EditItem('"+a.editFormUrl+g+"ID="+currentItemID+h;b=AddSourceToUrl(b)+"')"}e=a.imagesPath+"edititem.gif";if(a.listBaseType==1)f="ID_EditProperties";else f="ID_EditItem";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(k,l,f,c,b,e,String(WSS_MENUITEMSEQUENCE_EDITPROPERTIES));else{if(isNewEcb)d=InsertMenuOption(i,m,c,b,e,String(WSS_MENUITEMSEQUENCE_EDITPROPERTIES));else d=CAMOpt(i,c,b,e,null,String(WSS_MENUITEMSEQUENCE_EDITPROPERTIES));d.id=f;CUIInfo(d,"EditProperties",["EditProperties"])}if(a.listBaseType==1)if(isNewEcb){c=Strings.STS.L_Properties_Text;f="ID_ViewProperties";if(Flighting.VariantConfiguration.IsExpFeatureClientEnabled(250))b="EditItem('"+j+"')";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(k,l,f,c,b,e,String(WSS_MENUITEMSEQUENCE_VIEWPROPERTIES));else{d=InsertMenuOption(i,m,c,b,e,String(WSS_MENUITEMSEQUENCE_VIEWPROPERTIES));d.id=f}}if(a.listTemplate==106&¤tItemID.indexOf(".0.")>0){var t=currentItemID.indexOf(".0."),p=currentItemID.substr(0,t);c=Strings.STS.L_EditSeriesItem_Text;if(!(window.OffSwitch==null||OffSwitch.IsActive("86DB236A-5802-4DB0-827E-D824B57BE657")))b="EditItem2(event, '"+STSScriptEncode(a.editFormUrl)+g+"ID="+p+h;else b="EditItem2(event, '"+a.editFormUrl+g+"ID="+p+h;b=AddSourceToUrl(b)+"')";e=a.imagesPath+"recurrence.gif";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(k,l,"ID_EditSeriesItem",c,b,e,String(WSS_MENUITEMSEQUENCE_EDITSERIESITEM));else{if(isNewEcb)d=InsertMenuOption(i,m,c,b,e,String(WSS_MENUITEMSEQUENCE_EDITSERIESITEM));else d=CAMOpt(i,c,b,e,null,String(WSS_MENUITEMSEQUENCE_EDITSERIESITEM));CUIInfo(d,"EditSeriesItem",["EditSeriesItem"]);d.id="ID_EditSeriesItem"}}}}}function AddSolutionsCatalogMenuItems(d,c,i,a,b){if(HasRights(0,4))if(currentItemFSObjType!="1"){var g=true,e=GetAttributeFromItemTable(itemTable,"Url",null);if(e.length>4){var k=e.substr(e.length-4).toLowerCase();if(k==".wsp"){var f=GetAttributeFromItemTable(itemTable,"SolutionHash",null),j=GetAttributeFromItemTable(itemTable,"Hash",null),l=GetAttributeFromItemTable(itemTable,"SolutionItemID",null),h=GetAttributeFromItemTable(itemTable,"Status",null),m=GetAttributeFromItemTable(itemTable,"id",null);if(f!="")if(h=="")AddSolutionMenuActivate(d,c,a,b);else if(f==j){g=false;AddSolutionMenuDeactivate(d,c,a,b)}else AddSolutionMenuUpgrade(d,c,a,b)}}g&&AddSolutionMenuDelete(d,c,i,a,b)}}function AddSolutionMenuHelper(g,j,b,i,c,d,e,h){var a,f="if(event){event.currentItemID="+currentItemID+';}RunSolutionOperation(event, "'+i+'")';if(isNewEcb)a=InsertMenuOption(g,j,b,f,c,String(d));else a=CAMOpt(g,b,f,c,null,String(d));CUIInfo(a,e,[e]);a.id=h}function AddSolutionMenuActivate(e,d,a,b){if(typeof window.SPUserCanManageSolutions=="boolean"&&window.SPUserCanManageSolutions==true)if(isDocLibContextMenu){var c="if(event){event.currentItemID="+currentItemID+';}RunSolutionOperation(event, "ACT")';InsertItemToContextMenuDefinition(a,b,"ID_ActivateSolution",Strings.STS.L_ActivateSolution_Text,c,"",String(WSS_MENUITEMSEQUENCE_ACTIVATESOLUTION))}else AddSolutionMenuHelper(e,d,Strings.STS.L_ActivateSolution_Text,"ACT","",WSS_MENUITEMSEQUENCE_ACTIVATESOLUTION,"ActivateSolution","ID_ActivateSolution")}function AddSolutionMenuDeactivate(e,d,a,b){if(typeof window.SPUserCanManageSolutions=="boolean"&&window.SPUserCanManageSolutions==true)if(isDocLibContextMenu){var c="if(event){event.currentItemID="+currentItemID+';}RunSolutionOperation(event, "DEA")';InsertItemToContextMenuDefinition(a,b,"ID_DeactivateSolution",Strings.STS.L_DeactivateSolution_Text,c,"",String(WSS_MENUITEMSEQUENCE_DEACTIVATESOLUTION))}else AddSolutionMenuHelper(e,d,Strings.STS.L_DeactivateSolution_Text,"DEA","",WSS_MENUITEMSEQUENCE_DEACTIVATESOLUTION,"DeactivateSolution","ID_DeactivateSolution")}function AddSolutionMenuUpgrade(e,d,a,b){if(typeof window.SPUserCanManageSolutions=="boolean"&&window.SPUserCanManageSolutions==true)if(isDocLibContextMenu){var c="if(event){event.currentItemID="+currentItemID+';}RunSolutionOperation(event, "UPG")';InsertItemToContextMenuDefinition(a,b,"ID_UpgradeSolution",Strings.STS.L_UpgradeSolution_Text,c,"",String(WSS_MENUITEMSEQUENCE_UPGRADESOLUTION))}else AddSolutionMenuHelper(e,d,Strings.STS.L_UpgradeSolution_Text,"UPG","",WSS_MENUITEMSEQUENCE_UPGRADESOLUTION,"UpgradeSolution","ID_UpgradeSolution")}function AddSolutionMenuDelete(h,k,c,i,j){var b,g;currentItemFileUrl=GetAttributeFromItemTable(itemTable,"Url","ServerUrl");if(currentItemFileUrl!=null)g=escapeProperly(unescapeProperly(currentItemFileUrl));var d=Strings.STS.L_DeleteDocItem_Text,f="false";if(typeof itemTable.getAttribute("CSrc")!="undefined"&&itemTable.getAttribute("CSrc")!=null&&itemTable.getAttribute("CSrc")!="")f="true";var a;if((Flighting.VariantConfiguration.IsExpFeatureClientEnabled(134)||Flighting.VariantConfiguration.IsExpFeatureClientEnabled(160))&&Boolean(c.RealHttpRoot))a="DeleteDocLibItemCSOM('"+currentItemID+"', "+f+")";else a="DeleteDocLibItem('"+c.HttpPath+"&Cmd=Delete&List="+c.listName+"&ID="+currentItemID+"&owsfileref="+g+"&NextUsing="+Nav.getSource()+"',"+f+")";var e=c.imagesPath+"delitem.gif";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(i,j,"ID_DeleteDocItem",d,a,e,"310");else{if(isNewEcb)b=InsertMenuOption(h,k,d,a,e,"310");else b=CAMOpt(h,d,a,e,null,"310");b.id="ID_DeleteDocItem";CUIInfo(b,"Delete",["Delete"])}}function RunSolutionOperation(a,g){if(a==null&&!IsContextSet())return;var b=currentCtx!=null?currentCtx:typeof a.currentCtx=="object"?a.currentCtx:null,e=currentItemID!=null?currentItemID:typeof a.currentItemID=="string"?a.currentItemID:"";if(b==null)return;var f=b.listUrlDir,i=Nav.getSource(),c=f+"/Forms/Activate.aspx?Op="+g+"&ID="+e+"&Source="+i;if(b.listBaseType==1)c=c+GetRootFolder(b);var h=function(){},j=function(){var a={url:c,args:null,width:650,height:450,dialogReturnValueCallback:h},b=SP.UI.ModalDialog.showModalDialog(a)},d;try{d=typeof SP.UI.ModalDialog.showModalDialog}catch(k){d="undefined"}EnsureScript("SP.UI.Dialog.js",d,j)}function AddDocLibMenuItems(e,g,a,h,i){if(typeof window.Custom_AddDocLibMenuItems!="undefined")if(window.Custom_AddDocLibMenuItems(e,a))return;var j=Boolean(ctx.CurrentSelectedItems>1),t=GetRootFolder(a),d,c,b,f;if(currentItemIsMountPoint==null)currentItemIsMountPoint=IsSelectedItemMountPoint(a);AddSharedNamespaceMenuItems(e,g,a,h,i);var k;if(currentItemFileUrl!=null)if(ShouldCallEncodeURIComponent()){k=encodeURIComponent(currentItemFileUrl);if(!(window.OffSwitch==null||OffSwitch.IsActive("6BA2FDF8-BFCE-44AF-BCDC-DA55BB740F7E")))k=k.replace(/'/g,"\\u0027")}else k=escapeProperly(unescapeProperly(currentItemFileUrl));var o=itemTable.getAttribute("SRed"),l=currentItemCheckedOutUserId==String(SYSTEM_ACCOUNT_ID)&&a.CurrentUserId!=String(SYSTEM_ACCOUNT_ID);if(HasRights(0,4)&&HasRights(16,0)&&!l&&HasDownloadRights(o)&&!j&&!currentItemIsMountPoint&&!(isNewEcb&&_shouldOpenInLightbox(currentItemFileUrl)))if(!Boolean(a.isWebEditorPreview)&&a.listBaseType==1)if(a.listTemplate!=119){setDocType();if(currentItemAppName!=""&¤tItemOpenControl!="")if(!(a.IsAppWeb&¤tItemProgId==SPDesignerProgID)){c="";if(currentItemAppName!=" ")if(isNewEcb)c=StBuildParam(Strings.STS.L_OpenIn_Text,currentItemAppName);else c=StBuildParam(Strings.STS.L_EditIn_Text,currentItemAppName);else{var r=StsOpenEnsureEx2(currentItemOpenControl+".3");if(r!=null)if(isNewEcb)c=Strings.STS.L_OpenInApplication_Text;else c=Strings.STS.L_EditInApplication_Text}if(c!=""){if(Boolean(a.RealHttpRoot)&¤tItemFileUrl.length>0&¤tItemFileUrl.charAt(0)=="/")currentItemFileUrl=getHostUrl(a.HttpRoot)+currentItemFileUrl;b="editDocumentWithProgID2('"+STSScriptEncode(currentItemFileUrl)+"', '"+currentItemProgId+"', '"+currentItemOpenControl+"', '"+String(bIsCheckout)+"', '"+a.HttpRoot+"', '"+currentItemCheckedoutToLocal+"', '"+currentItemOpenApp+"')";f=a.imagesPath+currentItemIcon;if(isDocLibContextMenu)InsertItemToContextMenuDefinition(h,i,"ID_EditIn_"+currentItemAppName,c,b,f,String(WSS_MENUITEMSEQUENCE_EDITINAPPLICATION));else{if(isNewEcb)d=InsertMenuOption(e,g,c,b,f,String(WSS_MENUITEMSEQUENCE_EDITINAPPLICATION));else d=CAMOpt(e,c,b,f,null,String(WSS_MENUITEMSEQUENCE_EDITINAPPLICATION));d.id="ID_EditIn_"+currentItemAppName;if(!isNewEcb)d.style.cssText="display:none";CUIInfo(d,"EditDocument",["EditDocument"])}}}}if(isNewEcb&&!j){if(_shouldOpenInLightbox(currentItemFileUrl)){c=Strings.STS.L_OpenInApplication_Text;b='_openInLightbox("'+currentItemFileUrl+'");';f="";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(h,i,"ID_OPENINLIGHTBOX",c,b,f,String(WSS_MENUITEMSEQUENCE_EDITINAPPLICATION));else{d=InsertMenuOption(e,g,c,b,f,String(WSS_MENUITEMSEQUENCE_EDITINAPPLICATION));d.id="ID_OPENINLIGHTBOX"}}if(currentItemFSObjType=="1"&¤tItemProgId===""){c=Strings.STS.L_OpenInApplication_Text;var n=itemTable.querySelector('a[class*="ms-listlink"]');if(isDocLibContextMenu&&Boolean(n)){b="Nav.navigate('"+n.href+"');";InsertItemToContextMenuDefinition(h,i,"ID_OpenFolder",c,b,"",String(WSS_MENUITEMSEQUENCE_OPENFOLDER))}}_ContextForShowingShareDialog=a;b="DisplaySharingDialogFromEcb('"+currentItemID+"')";c=Strings.STS.L_Share_Text;if(isDocLibContextMenu)InsertItemToContextMenuDefinition(h,i,"ID_Share",c,b,f,String(WSS_MENUITEMSEQUENCE_SHARE));else{d=InsertMenuOption(e,g,c,b,f,String(WSS_MENUITEMSEQUENCE_SHARE));d.id="ID_Share"}b="DisplaySharingDialogFromEcb('"+currentItemID+"', 1); SP.QoS.WriteUserEngagement('SharingUserClickedGetLinkContextMenuItem');";c=Strings.STS.L_GetLink_Text;if(isDocLibContextMenu)InsertItemToContextMenuDefinition(h,i,"ID_GetLink",c,b,f,String(WSS_MENUITEMSEQUENCE_GETLINK));else{d=InsertMenuOption(e,g,c,b,f,String(WSS_MENUITEMSEQUENCE_GETLINK));d.id="ID_GetLink"}SP.QoS.WriteStart("SharingAddedGetLinkContextMenuItem")}!currentItemIsMountPoint&&!isNewEcb&&CAMSep(e);if(HasRights(0,4)&&!currentItemIsMountPoint)if(j&&!hasFolderSelected(a)||!j&¤tItemFSObjType!="1")a.listBaseType==1&&AddCheckinCheckoutMenuItem(e,g,a,k,h,i);(a.verEnabled==1||a.isModerated)&&!j&¤tItemFSObjType!="1"&&!currentItemIsMountPoint&&AddVersionsMenuItem(e,g,a,k,h,i);if(HasRights(0,4)&&!currentItemIsMountPoint&&!Boolean(a.RealHttpRoot))if(a.isModerated==true&&HasRights(0,16)&&((currentItemModerationStatus==String(2)||!a.EnableMinorVersions)&¤tItemCheckedOutUserId==""||currentItemFSObjType=="1")){c=Strings.STS.L_ModerateItem_Text;b="NavigateToApproveRejectAspx(event, '"+a.HttpRoot+"/_layouts/15/approve.aspx?List="+a.listName+"&ID="+currentItemID;b=AddSourceToUrl(b)+GetRootFolder(a)+"')";f=a.imagesPath+"apprj.gif";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(h,i,"ID_ModerateItem",c,b,f,String(WSS_MENUITEMSEQUENCE_MODERATEITEM));else{if(isNewEcb)d=InsertMenuOption(e,g,c,b,f,String(WSS_MENUITEMSEQUENCE_MODERATEITEM));else d=CAMOpt(e,c,b,f,null,String(WSS_MENUITEMSEQUENCE_MODERATEITEM));CUIInfo(d,"Moderate",["Moderate"]);d.id="ID_ModerateItem"}}!currentItemIsMountPoint&&!isNewEcb&&CAMSep(e);if(!currentItemIsMountPoint&&!Boolean(a.RealHttpRoot)){!j&&AddWorkflowsMenuItem(e,g,a,h,i);(!isNewEcb||currentItemFSObjType=="1")&&AddMoveCopyMenuItem(e,g,a,h,i)}if(currentItemFSObjType!="1"){if(a.PortalUrl!=null&&!Boolean(a.RealHttpRoot)&&!j){c=Strings.STS.L_AddToMyLinks_Text;b="Portal_Tasks('PinToMyPage')";f="";if(!isDocLibContextMenu){if(isNewEcb)d=InsertMenuOption(e,g,c,b,f,String(WSS_MENUITEMSEQUENCE_ADDTOMYLINKS));else d=CAMOpt(e,c,b,f,null,String(WSS_MENUITEMSEQUENCE_ADDTOMYLINKS));CUIInfo(d,"AddToMyLinks",["AddToMyLinks"]);d.id="ID_AddToMyLinks";d.style.display="none"}}}else a.listBaseType==1&&HasRights(16,0)&&!Boolean(a.RealHttpRoot)&&!j&&AddWorkOfflineMenuItem(e,g,a,currentItemFileUrl,h,i);if(HasRights(128,0)&&typeof _spPageContextInfo!="undefined"&&_spPageContextInfo!=null&&typeof _spPageContextInfo.alertsEnabled=="boolean"&&_spPageContextInfo.alertsEnabled&&!j){c=Strings.STS.L_Subscribe_Text;b="NavigateToSubNewAspxV4(event, '"+a.HttpRoot+"', 'List="+a.listName+"&ID="+currentItemID+"')";f="";if(!isDocLibContextMenu){if(isNewEcb)d=InsertMenuOption(e,g,c,b,f,String(WSS_MENUITEMSEQUENCE_SUBSCRIBE));else d=CAMOpt(e,c,b,f,null,String(WSS_MENUITEMSEQUENCE_SUBSCRIBE));CUIInfo(d,"Subscribe",["Subscribe"]);d.id="ID_Subscribe";d.style.display="none"}}if(currentItemFSObjType!="1"&&!currentItemIsMountPoint){AddSendSubMenu(e,g,a,h,i);if(!Boolean(a.RealHttpRoot)){AddGotoSourceItemMenuItem(e,g,a,itemTable,currentItemFSObjType,h,i);AddDocTransformSubMenu(e,a)}}!currentItemIsMountPoint&&!isNewEcb&&CAMSep(e);AddManagePermsMenuItem(e,g,a,a.listName,currentItemID,h,i);if(HasRights(0,8)&&!l&&!currentItemIsMountPoint){c=Strings.STS.L_DeleteDocItem_Text;var m="false";if(typeof itemTable.getAttribute("CSrc")!="undefined"&&itemTable.getAttribute("CSrc")!=null&&itemTable.getAttribute("CSrc")!="")m="true";if((Flighting.VariantConfiguration.IsExpFeatureClientEnabled(134)||Flighting.VariantConfiguration.IsExpFeatureClientEnabled(160))&&Boolean(a.RealHttpRoot))b="DeleteDocLibItemCSOM('"+currentItemID+"', "+m+")";else b="DeleteDocLibItem('"+a.HttpPath+"&Cmd=Delete&List="+a.listName+"&ID="+currentItemID+"&owsfileref="+k+"&NextUsing="+Nav.getSource()+"',"+m+")";b+="; if (typeof CalloutManager !== 'undefined' && Boolean(CalloutManager) && Boolean(CalloutManager.closeAll)) CalloutManager.closeAll()";f=a.imagesPath+"delitem.gif";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(h,i,"ID_DeleteDocItem",c,b,f,String(WSS_MENUITEMSEQUENCE_DELETEDOCITEM));else{if(isNewEcb)d=InsertMenuOption(e,g,c,b,f,String(WSS_MENUITEMSEQUENCE_DELETEDOCITEM));else d=CAMOpt(e,c,b,f,null,String(WSS_MENUITEMSEQUENCE_DELETEDOCITEM));d.id="ID_DeleteDocItem";CUIInfo(d,"Delete",["Delete"])}}if(HasRights(0,4)&¤tItemFSObjType=="1"&&a.ContentTypesEnabled&&a.listTemplate!=108&&!currentItemIsMountPoint&&!j){c=Strings.STS.L_CustomizeNewButton_Text;b="Nav.navigate('"+a.HttpRoot+"/_layouts/15/ChangeContentTypeOrder.aspx?List="+a.listName+"&RootFolder="+k;b=AddSourceToUrl(b)+"')";f="";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(h,i,"ID_CustomizeNewButton",c,b,f,String(WSS_MENUITEMSEQUENCE_CUSTOMIZENEWBUTTON));else{if(isNewEcb)d=InsertMenuOption(e,g,c,b,f,String(WSS_MENUITEMSEQUENCE_CUSTOMIZENEWBUTTON));else d=CAMOpt(e,c,b,f,null,String(WSS_MENUITEMSEQUENCE_CUSTOMIZENEWBUTTON));CUIInfo(d,"ChangeNewButton",["ChangeNewButton"]);d.id="ID_CustomizeNewButton"}}if(Boolean(a.ListSchema)&&Boolean(a.ListSchema.RmsSupportedExtensions)){var s=itemTable.getAttribute("ext").toLowerCase(),p=a.ListSchema.RmsSupportedExtensions.toLowerCase().split(","),q=p.indexOf(s)>-1;q&&Flighting.VariantConfiguration.IsExpFeatureClientEnabled(524)&&HasRights(0,4)&&!currentItemIsMountPoint&&!j&&!l&¤tItemFSObjType!="1"&&a.listBaseType==1&&AddEncryptMenuItem(e,g,a,k,h,i)}}var _ContextForShowingShareDialog;function DisplaySharingDialogFromEcb(a,b){if(_ContextForShowingShareDialog!=null){typeof CalloutManager!=="undefined"&&Boolean(CalloutManager)&&Boolean(CalloutManager.closeAll)&&CalloutManager.closeAll();DisplaySharingDialogForListItem(_ContextForShowingShareDialog,a,b)}}function AddManagePermsMenuItem(g,e,a,d,f,b,c){if(!HasRights(0,131072)||currentItemIsEventsExcp||a.ExternalDataList||currentItemEvtType==5)return;AddSharedWithMenuItem(g,e,a,d,f,b,c)}function AddAdvancedPermissionsMenuItem(f,i,e,j,k,g,h){var b=Strings.STS.L_MngPerms_Text,d="_NavigateToManagePermsPage('"+e.HttpRoot+"', '"+e.listName+"', '"+currentItemID+"');",c=e.imagesPath+"permissions16.png";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(g,h,"ID_AdvPerms",b,d,c,String(WSS_MENUITEMSEQUENCE_MANAGEPERMISSIONS));else{var a;if(isNewEcb)a=InsertMenuOption(f,i,b,d,c,String(WSS_MENUITEMSEQUENCE_MANAGEPERMISSIONS));else a=CAMOpt(f,b,d,c,null,String(WSS_MENUITEMSEQUENCE_MANAGEPERMISSIONS));a.id="ID_AdvPerms";CUIInfo(a,"AdvancedPermissions",["AdvancedPermissions"])}}function AddSharedWithMenuItem(j,o,a,n,p,k,l){var c=Strings.STS.L_SharedWithDialogTitle,i="",h="";if(Boolean(a.ListData))for(var m in a.ListData.Row){var g=a.ListData.Row[m];if(g.ID==currentItemID){i=g.FSObjType;h=g.HTML_x0020_File_x0020_Type;break}}var f="DisplaySharedWithDialogCore('{0}','{1}','{2}',{3},{4},'{5}','{6}', '{7}', '{8}', '{9}');";f=String.format(f,a.HttpRoot,n,p,false,false,i,h,false,a.RealHttpRoot);var e="EnsureScriptFunc('sharing.js', 'DisplaySharedWithDialogCore', function () { "+f+" })",d=a.imagesPath+"permissions16.png";if(isDocLibContextMenu)!IsOneDrive(a)&&InsertItemToContextMenuDefinition(k,l,"ID_MngPerms",c,e,d,String(WSS_MENUITEMSEQUENCE_MANAGEPERMISSIONS));else{var b;if(isNewEcb)b=InsertMenuOption(j,o,c,e,d,String(WSS_MENUITEMSEQUENCE_MANAGEPERMISSIONS));else b=CAMOpt(j,c,e,d,null,String(WSS_MENUITEMSEQUENCE_MANAGEPERMISSIONS));b.id="ID_MngPerms";CUIInfo(b,"ManagePermissions",["ManagePermissions"]);if(isNewEcb&&IsOneDrive(a))b.style.display="none"}}function AddGotoSourceItemMenuItem(f,l,k,g,i,h,j){if(i!="1"){var b=g.getAttribute("CSrc");if(typeof b!="undefined"&&b!=null&&b!=""){var c=Strings.STS.L_GoToSourceItem_Text,e="NavigateToSourceItem(event, '"+STSScriptEncode(b)+"')",d=k.imagesPath+"goToOriginal.gif";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(h,j,"ID_GoToSourceItem",c,e,d,String(WSS_MENUITEMSEQUENCE_GOTOSOURCEITEM));else{var a;if(isNewEcb)a=InsertMenuOption(f,l,c,e,d,String(WSS_MENUITEMSEQUENCE_GOTOSOURCEITEM));else a=CAMOpt(f,c,e,d,null,String(WSS_MENUITEMSEQUENCE_GOTOSOURCEITEM));a.id="ID_GoToSourceItem";CUIInfo(a,"GotoSourceItem",["GotoSourceItem"])}}}}function CheckoutSingleItemFromECB(a,b){if((Flighting.VariantConfiguration.IsExpFeatureClientEnabled(134)||Flighting.VariantConfiguration.IsExpFeatureClientEnabled(160))&&Boolean(a.RealHttpRoot))EnsureScriptParams("inplview","inplview.CheckoutSelectedItems",a);else EnsureScriptParams("inplview","inplview.CheckOutSingleItem",a,b)}function CheckoutItemFromECB(a,b){if(a.CurrentSelectedItems>1)EnsureScriptParams("inplview","inplview.CheckoutSelectedItems",a);else EnsureScriptParams("inplview","inplview.CheckOutSingleItem",a,b)}function AddCheckinCheckoutMenuItem(f,j,a,g,h,i){var e,c,d,b;if(!HasRights(0,4))return;if(currentItemCheckedOutUserId==String(SYSTEM_ACCOUNT_ID)&&a.CurrentUserId!=String(SYSTEM_ACCOUNT_ID))return;if(Flighting.VariantConfiguration.IsExpFeatureClientEnabled(424)&&window.groupContextData!=null)return;if(currentItemCheckedOutUserId==null)currentItemCheckedOutUserId=itemTable.getAttribute("COUId");if(currentItemCheckedOutUserId!=""){if(currentItemCheckedOutUserId==a.CurrentUserId||a.CurrentUserId==null||HasRights(0,256)){c=Strings.STS.L_Checkin_Text;if(!FV4UI())b="NavigateToCheckinAspx('"+a.HttpRoot+"', 'List="+a.listName+"&FileName="+g+"')";else b="CheckInSingleItemFromECB(event, currentCtx, itemTable)";d=a.imagesPath+"checkin.gif";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(h,i,"ID_Checkin",c,b,d,String(WSS_MENUITEMSEQUENCE_CHECKINCHECKOUT));else{if(isNewEcb)e=InsertMenuOption(f,j,c,b,d,String(WSS_MENUITEMSEQUENCE_CHECKINCHECKOUT));else e=CAMOpt(f,c,b,d,null,String(WSS_MENUITEMSEQUENCE_CHECKINCHECKOUT));e.id="ID_Checkin";CUIInfo(e,"CheckIn",["CheckIn"])}c=Strings.STS.L_DiscardCheckou_Text;b="UnDoCheckOutwithNotification('"+a.HttpRoot+"', '"+g+"', currentCtx, '"+STSScriptEncode(currentItemID)+"')";d=a.imagesPath+"unchkout.gif";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(h,i,"ID_DiscardCheckou",c,b,d,String(WSS_MENUITEMSEQUENCE_DISCARDCHECKOU));else{if(isNewEcb)e=InsertMenuOption(f,j,c,b,d,String(WSS_MENUITEMSEQUENCE_DISCARDCHECKOU));else e=CAMOpt(f,c,b,d,null,String(WSS_MENUITEMSEQUENCE_DISCARDCHECKOU));e.id="ID_DiscardCheckou";CUIInfo(e,"DiscardCheckOut",["DiscardCheckOut"])}}}else if(typeof g_disableCheckoutInEditMode=="undefined"||!g_disableCheckoutInEditMode){c=Strings.STS.L_Checkout_Text;currentItemOpenControl==""&&setDocType();var p="",n=itemTable.getAttribute("SRed");if(HasDownloadRights(n)){if(!FV4UI())b="CheckoutDocument('"+a.HttpRoot+"', '"+g+"', '"+p+"')";else b="CheckoutSingleItemFromECB(currentCtx, itemTable)";d=a.imagesPath+"checkout.gif";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(h,i,"ID_Checkout",c,b,d,String(WSS_MENUITEMSEQUENCE_CHECKINCHECKOUT));else{if(isNewEcb)e=InsertMenuOption(f,j,c,b,d,String(WSS_MENUITEMSEQUENCE_CHECKINCHECKOUT));else e=CAMOpt(f,c,b,d,null,String(WSS_MENUITEMSEQUENCE_CHECKINCHECKOUT));e.id="ID_Checkout";CUIInfo(e,"CheckOut",["CheckOut"])}}if(currentItemModerationStatus==null)currentItemModerationStatus=GetAttributeFromItemTable(itemTable,"MS","MStatus");if(a.EnableMinorVersions){if(currentItemUIString==null)currentItemUIString=GetAttributeFromItemTable(itemTable,"UIS","UIString");var o=parseInt(currentItemUIString)%512,k=null;if((currentItemModerationStatus==String(1)||currentItemModerationStatus==String(3))&&a.isModerated||!a.isModerated&&o!=0){c=Strings.STS.L_PublishItem_Text;if(Boolean(a.RealHttpRoot)&&(k=ListModule.Util.makeMountedFolderQueryStrParams(true,false))!=null)b="PublishMajorVersion(event, '"+a.RealHttpRoot+"', 'List="+a.listName+"&FileName="+g+"&Publish=true"+k+"')";else b="PublishMajorVersion(event, '"+a.HttpRoot+"', 'List="+a.listName+"&FileName="+g+"&Publish=true')";d=a.imagesPath+"pubmajor.gif";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(h,i,"ID_PublishItem",c,b,d,String(WSS_MENUITEMSEQUENCE_PUBLISHITEM));else{if(isNewEcb)e=InsertMenuOption(f,j,c,b,d,String(WSS_MENUITEMSEQUENCE_PUBLISHITEM));else e=CAMOpt(f,c,b,d,null,String(WSS_MENUITEMSEQUENCE_PUBLISHITEM));CUIInfo(e,"Publish",["Publish"]);e.id="ID_PublishItem"}}else{var m,l=false;if(!a.isModerated||currentItemModerationStatus==String(0)){c=Strings.STS.L_UnPublishItem_Text;m="ID_UnPublishItem";d=a.imagesPath+"unpub.gif"}else{c=Strings.STS.L_CancelPublish_Text;m="ID_CancelPublish";d=a.imagesPath+"unapprv.gif";l=true}if(Boolean(a.RealHttpRoot)&&(k=ListModule.Util.makeMountedFolderQueryStrParams(true,false))!=null)b="UnPublish('"+a.RealHttpRoot+"', 'FileName="+g+"&UnPublish=true"+k+"',"+String(l)+")";else b="UnPublish('"+a.HttpRoot+"', 'FileName="+g+"&UnPublish=true',"+String(l)+")";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(h,i,m,c,b,d,String(WSS_MENUITEMSEQUENCE_CANCELPUBLISH));else{if(isNewEcb)e=InsertMenuOption(f,j,c,b,d,String(WSS_MENUITEMSEQUENCE_CANCELPUBLISH));else e=CAMOpt(f,c,b,d,null,String(WSS_MENUITEMSEQUENCE_CANCELPUBLISH));if(l)CUIInfo(e,"CancelApproval",["CancelApproval"]);else CUIInfo(e,"Unpublish",["Unpublish"]);e.id=m}}}}}function AddWorkflowsMenuItem(h,k,c,i,j){if(HasRights(0,4)&&!c.ExternalDataList&&window.groupContextData==null){var g=GetAttributeFromItemTable(itemTable,"CId","ContentTypeId");if(g==null||g.substr(0,8)!="0x010801"){var d=c.imagesPath+"workflows.png",e,f=(""+currentItemID).indexOf(".0.");if(f>0)e=currentItemID.substr(0,f);else e=currentItemID;var a="Nav.navigate('"+c.HttpRoot+"/_layouts/15/Workflow.aspx?ID="+e+"&List="+c.listName;a=AddSourceToUrl(a)+"')";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(i,j,"ID_Workflows",Strings.STS.L_Workflows_Text,a,d,String(WSS_MENUITEMSEQUENCE_WORKFLOWS));else{var b;if(isNewEcb)b=InsertMenuOption(h,k,Strings.STS.L_Workflows_Text,a,d,String(WSS_MENUITEMSEQUENCE_WORKFLOWS));else b=CAMOpt(h,Strings.STS.L_Workflows_Text,a,d,null,String(WSS_MENUITEMSEQUENCE_WORKFLOWS));CUIInfo(b,"ViewWorkflows",["ViewWorkflows"]);b.id="ID_Workflows"}}}}function AddMoveCopyMenuItem(d,g,c,e,f){if(Flighting.VariantConfiguration.IsExpFeatureClientEnabled(329)&&c.listTemplate==700){var b="SP.SOD.execute('movecopy.js','LaunchMoveCopyDialogWithContextId',"+c.ctxId+")",a;if(isDocLibContextMenu)InsertItemToContextMenuDefinition(e,f,"ID_MoveCopy",Strings.STS.L_MoveCopy_MenuItemTitle,b,"",String(WSS_MENUITEMSEQUENCE_MOVECOPYITEM));else{if(isNewEcb)a=InsertMenuOption(d,g,Strings.STS.L_MoveCopy_MenuItemTitle,b,"",String(WSS_MENUITEMSEQUENCE_MOVECOPYITEM));else a=CAMOpt(d,Strings.STS.L_MoveCopy_MenuItemTitle,b,"",null,String(WSS_MENUITEMSEQUENCE_MOVECOPYITEM));CUIInfo(a,"MoveCopy",["MoveCopy"]);a.id="ID_MoveCopy"}}}function AddEncryptMenuItem(e,h,d,i,f,g){var a,b=Strings.STS.L_Encrypt_Text,c="NavigateToFileIRMAspx(event, '"+d.HttpRoot+"', 'list="+d.listName+"&ID="+currentItemID+"&FileLevel=true')";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(f,g,"ID_Encrypt",b,c,"",String(WSS_MENUITEMSEQUENCE_ENCRYPTITEM));else{if(isNewEcb)a=InsertMenuOption(e,h,b,c,"",String(WSS_MENUITEMSEQUENCE_ENCRYPTITEM));else a=CAMOpt(e,b,c,"",null,String(WSS_MENUITEMSEQUENCE_ENCRYPTITEM));CUIInfo(a,"Encrypt",["Encrypt"]);a.id="ID_Encrypt"}}function AddWorkspaceMenuItem(d,h,c,f,g){var a,b,e=GetAttributeFromItemTable(itemTable,"SUrl","SourceUrl");if(e!=null&&e!=""&&e!="%20"){if(HasRights(0,135168)){b="Nav.navigate('"+c.HttpRoot+"/_layouts/15/publishback.aspx?list="+c.listName+"&item="+currentItemID+GetRootFolder(c)+"')";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(f,g,"ID_PublishBack",Strings.STS.L_PublishBack_Text,b,"",String(WSS_MENUITEMSEQUENCE_PUBLISHBACK));else{if(isNewEcb)a=InsertMenuOption(d,h,Strings.STS.L_PublishBack_Text,b,"",String(WSS_MENUITEMSEQUENCE_PUBLISHBACK));else a=CAMOpt(d,Strings.STS.L_PublishBack_Text,b,"",null,String(WSS_MENUITEMSEQUENCE_PUBLISHBACK));CUIInfo(a,"PublishBack",["PublishBack"]);a.id="ID_PublishBack"}}}else if(HasRights(0,8388608)&&HasRights(0,135168)&&HasRights(0,67108864)){b="Nav.navigate('"+c.HttpRoot+"/_layouts/15/createws.aspx?list="+c.listName+"&item="+currentItemID+GetRootFolder(c)+"')";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(f,g,"ID_CreateDWS",Strings.STS.L_CreateDWS_Text,b,"",String(WSS_MENUITEMSEQUENCE_CREATEDWS));else{if(isNewEcb)a=InsertMenuOption(d,h,Strings.STS.L_CreateDWS_Text,b,"",String(WSS_MENUITEMSEQUENCE_CREATEDWS));else a=CAMOpt(d,Strings.STS.L_CreateDWS_Text,b,"",null,String(WSS_MENUITEMSEQUENCE_CREATEDWS));CUIInfo(a,"CreateDocumentWorkspace",["CreateDocumentWorkspace"]);a.id="ID_CreateDWS"}}}function AddVersionsMenuItem(i,m,a,h,k,l){if(currentItemID!=null){var j=currentItemID.toString();if(j.indexOf(".0.")>=0)return}var f=currentItemID;if(currentItemIsEventsExcp)if(currentItemID.indexOf(".")!=-1)f=currentItemID.split(".")[0];if(!HasRights(0,64))return;var d=Strings.STS.L_Versions_Text,c,g=null;if(Boolean(a.RealHttpRoot)&&(g=ListModule.Util.makeMountedFolderQueryStrParams(false,false))!=null)c="NavigateToVersionsAspxV4(event, '"+a.RealHttpRoot+"', 'list="+a.listName+"&ID="+f+"&FileName="+h+g+"')";else c="NavigateToVersionsAspxV4(event, '"+a.HttpRoot+"', 'list="+a.listName+"&ID="+f+"&FileName="+h+"')";var e=a.imagesPath+"versions.gif",b;if(isDocLibContextMenu)(!Flighting.VariantConfiguration.IsExpFeatureClientEnabled(254)||!_shouldOpenInLightbox(currentItemFileUrl))&&InsertItemToContextMenuDefinition(k,l,"ID_Versions",d,c,e,String(WSS_MENUITEMSEQUENCE_VERSIONS));else{if(isNewEcb)b=InsertMenuOption(i,m,d,c,e,String(WSS_MENUITEMSEQUENCE_VERSIONS));else b=CAMOpt(i,d,c,e,null,String(WSS_MENUITEMSEQUENCE_VERSIONS));CUIInfo(b,"ViewVersions",["ViewVersions"]);b.id="ID_Versions";if(Flighting.VariantConfiguration.IsExpFeatureClientEnabled(254)&&_shouldOpenInLightbox(currentItemFileUrl))b.style.display="none"}}function AddWorkOfflineMenuItem(i,l,a,m,j,k){var f=GetStssyncData("documents",Strings.STS.L_WorkOffline_Text,a.imagesPath+"tbsprsht.gif",a.imagesPath);if(f!=null){var b=f.BtnText,e=f.BtnImagePath;if(b!=null){var h="";if(typeof a.SiteTitle=="string"&&a.SiteTitle!=null)h=STSScriptEncode(a.SiteTitle);var g="";if(typeof a.ListTitle=="string"&&a.ListTitle!=null)g=STSScriptEncode(a.ListTitle);var d="javascript:ExportHailStorm('documents','"+a.HttpRoot+"','"+STSScriptEncode(a.listName)+"','"+STSScriptEncode(h)+"','"+g+"','"+STSScriptEncode(a.listUrlDir)+"','','"+STSScriptEncode(unescapeProperly(a.listUrlDir))+"'";d+=",'"+STSScriptEncode(unescapeProperly(m))+"','"+currentItemID+"')";if(isDocLibContextMenu)InsertItemToContextMenuDefinition(j,k,"ID_WorkOffline",b,d,e,null);else{var c;if(isNewEcb)c=InsertMenuOption(i,l,b,d,e);else c=CAMOpt(i,b,d,e);CUIInfo(c,"ConnectFolderToClient",["ConnectFolderToClient"]);c.id="ID_WorkOffline"}}}}function AddVersionMenuItems(b,a){typeof AddVersionMenuItemsCore=="function"&&AddVersionMenuItemsCore(b,a)}function NavigateToApproveRejectAspx(b,a){if(FV4UI())ShowInPopUI(b,currentCtx,a);else Nav.navigate(a)}function PublishMajorVersion(d,b,c){var a=b+"/_layouts/15/Checkin.aspx?"+c;a=AddSourceToUrl(a);if(FV4UI())ShowInPopUI(d,currentCtx,a);else SubmitFormPost(a)}function _NavigateToSubNewAspx(b,c){var a=b+"/_layouts/15/SubNew.aspx?"+c;a=AddSourceToUrl(a);Nav.navigate(a)}function NavigateToSubNewAspxV4(d,b,c){var a=b+"/_layouts/15/SubNew.aspx?"+c;a=AddSourceToUrl(a);if(FV4UI())ShowInPopUI(d,currentCtx,a);else Nav.navigate(a)}function NavigateToVersionsAspx(b,c){var a=b+"/_layouts/15/Versions.aspx?"+c;a=AddSourceToUrl(a);Nav.navigate(a)}function NavigateToVersionsAspxV4(d,b,c){var a=b+"/_layouts/15/Versions.aspx?"+c;a=AddSourceToUrl(a);if(FV4UI())ShowInPopUI(d,currentCtx,a);else Nav.navigate(a)}function NavigateToFileIRMAspx(d,b,c){var a=b+"/_layouts/15/rms.aspx?"+c;a=AddSourceToUrl(a);if(FV4UI())ShowInPopUI(d,currentCtx,a);else SubmitFormPost(a)}function NavigateToSendToOtherLocationV4(b,a){if(FV4UI())ShowInPopUI(b,currentCtx,a);else Nav.navigate(a)}function UnDoCheckOutwithNotification(a,e,c,d){var b=UnDoCheckOut(a,e,c,d);if(b){var f=Strings.STS.L_Notification_DiscardCheckOut;addNotification(f,true)}}function UnDoCheckOut(b,c,a){var d=null;if(!confirm(Strings.STS.L_UndoCheckoutWarning_Text))return false;if((Flighting.VariantConfiguration.IsExpFeatureClientEnabled(134)||Flighting.VariantConfiguration.IsExpFeatureClientEnabled(160))&&Boolean(a.RealHttpRoot))EnsureScriptParams("inplview","inplview.DiscardCheckoutSelectedItems",a);else NavigateToCheckinAspx(b,"FileName="+c+"&DiscardCheckout=true");return true}function UnPublish(c,d,b){var a=Strings.STS.L_UnPublishWarning_Text;if(b)a=Strings.STS.L_CancleApproval_TEXT;if(!confirm(a))return;NavigateToCheckinAspx(c,d)}function NavigateToCheckinAspx(b,c){var a=b+"/_layouts/15/Checkin.aspx?"+c;a=AddSourceToUrl(a);SubmitFormPost(a)}function _NavigateToManagePermsPage(a,c,b){NavigateToManagePermsPageEx(a,c,b,false)}function NavigateToManagePermsPageEx(c,b,d,f){var e=",LISTITEM",a=c+"/_layouts/15/User.aspx?obj="+b+","+d+e+"&List="+b;a=AddSourceToUrl(a);if(f)typeof window.frameElement.navigateParent=="function"&&window.frameElement.navigateParent(a);else Nav.navigate(a)}function NavigateToSourceItem(e,a){var d=a.match(/[^\/]*\/\/[^\/]*/g),c=d[0];a=escapeProperly(a);var b=c+"/_layouts/15/copyutil.aspx?GoToDispForm=1&Use=url&ItemUrl="+a;b=AddSourceToUrl(b);Nav.navigate(b)}function setDocType(){var b=GetAttributeFromItemTable(itemTable,"Icon","DocIcon"),a=Boolean(b)?b.split("|"):[];currentItemIcon=a[0];currentItemAppName=a[1];currentItemOpenControl=a[2];currentItemOpenApp=a[3]==null?"":a[4]==null?a[3]:a[3]+"|"+a[4];currentItemProgId=GetAttributeFromItemTable(itemTable,"Type","HTMLType")}function DeleteListItem(){if(!IsContextSet())return;var b=currentCtx,e=currentItemID,c=Strings.STS.L_STSRecycleConfirm_Text;if(!Boolean(b.RecycleBinEnabled)||b.ExternalDataList)c=Strings.STS.L_STSDelConfirm_Text;if(Boolean(b.HasRelatedCascadeLists)&&b.CascadeDeleteWarningMessage!=null)c=b.CascadeDeleteWarningMessage+c;if(confirm(c)){var g=Strings.STS.L_Notification_Delete,f=addNotification(g,true),a=b.clvp;if(b.ExternalDataList&&a!=null){a.DeleteItemCore(e);a.pendingItems=[];typeof a.cctx.executeQueryAsync!="undefined"&&a.cctx.executeQueryAsync(function(){if(a.rgehs!=null&&typeof a.rgehs.length=="number"){if(a.rgehs.length==1&&a.rgehs[0].get_serverErrorCode()==SP.ClientErrorCodes.redirect){GoToPage(a.rgehs[0].get_serverErrorValue());return}removeNotification(f);a.ShowErrorDialog(RefreshOnDialogClose)}else RefreshPage(SP.UI.DialogResult.OK)},function(){removeNotification(f);typeof a.rgehs!="undefined"&&a.ShowErrorDialog(function(){})})}else{var d=b.HttpPath+"&Cmd=Delete&List="+b.listName+"&ID="+e+"&NextUsing="+Nav.getSource();if(null!=currentItemContentTypeId)d+="&ContentTypeId="+currentItemContentTypeId;SubmitFormPost(d)}}}function DeleteDocLibItem(a,d){if(!IsContextSet())return;var b=currentCtx;if(Boolean(b.CurrentSelectedItems>=1))EnsureScriptParams("inplview","inplview.DeleteSelectedItems",b);else{var c=GenerateDeleteConfirmationMessage(d);if(confirm(c)){if(currentItemFSObjType=="1"&¤tItemContentTypeId!=null)a+="&ContentTypeId="+currentItemContentTypeId;var e=Strings.STS.L_Notification_Delete;addNotification(e,true);SubmitFormPost(a,false,true)}}}function DeleteDocLibItemCSOM(d,c){if(!IsContextSet())return;var a=currentCtx;if(Boolean(a.CurrentSelectedItems>1))EnsureScriptParams("inplview","inplview.DeleteSelectedItems",a);else{var b=GenerateDeleteConfirmationMessage(c);confirm(b)&&EnsureScriptParams("inplview","inplview.DeleteSelectedItemsCore",a,[d],RefreshOnDialogClose,null,true)}}function GenerateDeleteConfirmationMessage(c){var b=currentCtx,a;if(currentItemFSObjType=="1")if(currentItemContentTypeId!=null&¤tItemContentTypeId.substr(0,8).toLowerCase()=="0x0120d5")a=Boolean(b.RecycleBinEnabled)?Strings.STS.L_STSRecycleConfirm2_Text:Strings.STS.L_STSDelConfirm2_Text;else a=Boolean(b.RecycleBinEnabled)?Strings.STS.L_STSRecycleConfirm1_Text:Strings.STS.L_STSDelConfirm1_Text;else if(currentItemIsMountPoint){a=Strings.STS.L_RemoveMountPointConfirmation;SP.QoS.WriteStart("RemoveMountPoint_ECB_SingleMountPoint")}else a=Boolean(b.RecycleBinEnabled)?Strings.STS.L_STSRecycleConfirm_Text:Strings.STS.L_STSDelConfirm_Text;if(Boolean(b.HasRelatedCascadeLists)&&b.CascadeDeleteWarningMessage!=null)a=b.CascadeDeleteWarningMessage+a;if(c&¤tItemFSObjType!="1")a=Strings.STS.L_NotifyThisIsCopy_Text+a;return a}function EditMenuDefaultForOnclick(){if(!IsContextSet())return;var a=currentCtx;if(Boolean(a.isVersions))Nav.navigate(itemTable.getAttribute("verUrl"));else if(a.listTemplate==200){var b=currentItemID;MtgNavigate(b)}else EditListItem()}function EditListItem(){if(event.srcElement.tagName=="A"||event.srcElement.parentNode.tagName=="A")return;if(!IsContextSet())return;var b=currentCtx,c="&";if(b.editFormUrl.indexOf("?")==-1)c="?";var a=b.editFormUrl+c+"ID="+currentItemID;a=AddSourceToUrl(a);if(b.listBaseType==1)a=a+GetRootFolder(b);STSNavigate2(event,a)}function _DoNavigateToTemplateGallery(a,b){document.cookie="MSOffice_AWS_DefSaveLoc="+a;Nav.navigate(b)}function Portal_Tasks(j){if(!IsContextSet())return;var b=currentCtx,g=unescapeProperly(currentItemFileUrl),c=0,d=0;c=g.lastIndexOf("/");d=g.lastIndexOf(".");if(c<0||d<0||c>d)return;var i=g.substr(c+1,d-c-1),f="";c=b.HttpRoot.indexOf("://");if(c>0){d=b.HttpRoot.indexOf("/",c+3);if(d>0)f=b.HttpRoot.substring(0,d);else f=b.HttpRoot}var e="";if(currentItemFileUrl.charAt(0)=="/"||currentItemFileUrl.substr(0,3).toLowerCase()=="%2f")e=f+currentItemFileUrl;else e=currentItemFileUrl;var a="";if(setElementValue("ListViewURL",e)==false)a=a+"&ListViewURL="+escapeProperly(e);if(setElementValue("ListTitle",i)==false)a=a+"&ListTitle="+escapeProperly(i);if(setElementValue("ListDescription","")==false)a=a+"&ListDescription=";if(setElementValue("ReturnUrl",window.location.href)==false)a=a+"&ReturnUrl="+escapeProperly(window.location.href);if(b.PortalUrl.substr(0,4)!="http")b.PortalUrl=f+b.PortalUrl;var h=b.PortalUrl+"_vti_bin/portalapi.aspx?cmd="+j;h=h+"&IconUrl="+b.imagesPath+currentItemIcon+a;SubmitFormPost(h)}function IsContextSet(){return currentCtx==null?false:typeof currentCtx.isExplictLogin=="boolean"&¤tCtx.isExplictLogin?true:currentCtx.HttpPath==null||currentItemID==null?false:true}function ChangeContentType(d){var b=document.getElementById(d),a=window.location.href,e=a.indexOf("?");if(a.indexOf("?")<=0)a=a+"?ContentTypeId="+b.value;else if(a.indexOf("&ContentTypeId=")<=0)a=a+"&ContentTypeId="+b.value;else{var c=/&ContentTypeId=[^&]*/i;a=a.replace(c,"&ContentTypeId="+b.value)}Nav.navigate(a)}function CIMSep(c,e){var a=CMSep();if(null==a)return null;for(var b=0;bNumber(e)){c.childNodes[b].parentNode.insertBefore(a,c.childNodes[b]);return a}}AChld(c,a);return a}function InsertMenuOption(f,e,b,d,c,a){return e!=null&&(a==null||Number(a)>WSS_MENUITEMSEQUENCE_ADVANCED)?CIMOpt(e,b,d,c,null,a):CIMOpt(f,b,d,c,null,a)}function InsertItemToContextMenuDefinition(c,b,h,f,g,i,e,d){if(!Boolean(c)&&!Boolean(b))return;if(d=="display:none")return;var a={seq:e,id:h,text:f,onclick:g,tooltip:f};if(Boolean(d))a.mstyle=d;if(Boolean(b)&&(e==null||Number(e)>WSS_MENUITEMSEQUENCE_ADVANCED))b.items.splice(locationOf(a,b.items,seqCompare)+1,0,a);else Boolean(c)&&c.items.splice(locationOf(a,c.items,seqCompare)+1,0,a)}function InsertSeparatorToContextMenuDefinition(a,d){var c={seq:d,separator:true},b=locationOf(c,a,seqCompare)+1;b>0&&b>1,g=e(f,c[a]);if(d-b<=1)return g==-1?a-1:a;switch(g){case-1:return locationOf(f,c,e,b,a);case 0:return a;case 1:return locationOf(f,c,e,a,d)}}var seqCompare;function AddSubMenu(b,a){if(a.items.length==0)return;else if(a.items.length==1)b.items.splice(locationOf(a.items[0],b.items,seqCompare)+1,0,a.items[0]);else b.items.splice(locationOf(a,b.items,seqCompare)+1,0,a)}function _TopHelpButtonClick(a){if(Flighting.VariantConfiguration.IsExpFeatureClientEnabled(37)){var b=document.getElementById("helppanelCntdiv");if(b!=null){LoadCssOnDemand("helppanel",LoadHelpPanelJs);return}}if(typeof navBarHelpOverrideKey!="undefined")return HelpWindowKey(navBarHelpOverrideKey);if(a!=null)HelpWindowKey(a);else HelpWindowKey("HelpHome")}function LoadHelpPanelJs(){EnsureScriptParams("helppanel.js","openHelpPanel")}function GetSPHelpUrl(d){var c,a;if(typeof d=="undefined")c="?Lcid="+Strings.STS.L_Language_Text;else c="?Lcid="+Strings.STS.L_Language_Text+d;var b;if(typeof ctx=="undefined"||ctx==null)if(typeof currentCtx!="undefined"&¤tCtx!=null)ctx=currentCtx;else if(typeof ctxFilter!="undefined"&&ctxFilter!=null)ctx=ctxFilter;if(typeof ctx!="undefined"&&ctx!=null&&typeof ctx.HttpRoot!="undefined"&&ctx.HttpRoot!=null){a=ctx.HttpRoot;if(a.charAt(a.length-1)!="/")a=a+"/";b=a+"_layouts/15/help.aspx"}if(b==null&&typeof _spPageContextInfo!="undefined"&&_spPageContextInfo!=null&&typeof _spPageContextInfo.webServerRelativeUrl!="undefined"&&_spPageContextInfo.webServerRelativeUrl!=null){a=_spPageContextInfo.webServerRelativeUrl;if(a.charAt(a.length-1)!="/")a=a+"/";b=a+"_layouts/15/help.aspx"}if(b==null)b="/_layouts/15/help.aspx";return b+c}function ShowHelpWindow(a){if(a!=null){var b=window.open(a,"STSHELP_15","height=500,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no,width=400");b.focus()}}function HelpWindowHelper(a){if(Flighting.VariantConfiguration.IsExpFeatureClientEnabled(37)&&a=="&Key=SPOADMIN"){var c=document.getElementById("helppanelCntdiv");if(c!=null){LoadCssOnDemand("helppanel",LoadHelpPanelJs);return}}if(SuiteLinksEmptyOrSuiteHelpLinkIsCached())GetSuiteLinks(null,function(b){SP.SOD.executeFunc("suitelinks.js","GetSPOHelpUrl",function(){var c=GetSPOHelpUrl(b,a);ShowHelpWindow(c)})});else{var b=GetSPHelpUrl(a);ShowHelpWindow(b)}}function _HelpWindowKey(a){if(a!==null&&a!=="")HelpWindowHelper("&Key="+a+"&ShowNav=true");else if(typeof navBarHelpOverrideKey!="undefined")HelpWindowHelper("&Key="+navBarHelpOverrideKey+"&ShowNav=true");else HelpWindowHelper("&Key=HelpHome&ShowNav=true")}function _HelpWindowUrl(a){HelpWindowHelper("&Url="+a)}function _HelpWindow(){HelpWindowKey("HelpHome")}function _ToggleFullScreenMode(){var a=HasCssClass(document.body,"ms-fullscreenmode");SetFullScreenMode(!a)}function SetFullScreenMode(c){var d=document.body,b=document.getElementById("fullscreenmode"),a=document.getElementById("exitfullscreenmode");if(d!=null){SetCookieEx("WSS_FullScreenMode",c,true,window);if(PageMinimized())c=true;if(c){AddCssClassToElement(d,"ms-fullscreenmode");if(b!=null&&a!=null){b.style.display="none";a.style.display=""}}else{RemoveCssClassFromElement(d,"ms-fullscreenmode");if(b!=null&&a!=null){b.style.display="";a.style.display="none"}}if("undefined"!=typeof document.createEvent&&"function"==typeof window.dispatchEvent){var e=document.createEvent("Event");e.initEvent("resize",false,false);window.dispatchEvent(e)}else"undefined"!=typeof document.createEventObject&&document.body.fireEvent("onresize");CallWorkspaceResizedEventHandlers()}}function FullScreenModeOnKeyDown(a){if(a==null)a=window.event;var b;if(a==null)return true;if(browseris.nav6up)b=a.which;else b=a.keyCode;a.altKey&&b==122&&_ToggleFullScreenMode();return true}function InitFullScreenMode(){AttachEvent("keydown",FullScreenModeOnKeyDown,document.body);SetFullScreenMode(GetCookieEx("WSS_FullScreenMode",window)=="true")}function EditSelectedImages(){if(!IsImgLibJssLoaded()){alert(Strings.STS.L_NotOurView_Text);return}_EditSelectedImages()}function DeleteImages(){if(!IsImgLibJssLoaded()){alert(Strings.STS.L_NotOurView_Text);return}_DeleteImages()}function SendImages(){if(!IsImgLibJssLoaded()){alert(Strings.STS.L_NotOurView_Text);return}_SendImages()}function DownloadImages(){if(!IsImgLibJssLoaded()){alert(Strings.STS.L_NotOurView_Text);return}_DownloadImages()}function MtgToggleTimeZone(){var b=document.getElementById("TimeZoneSection"),a=document.getElementById("TimeZoneLink");if(b.style.display=="none"){b.style.display="";a.innerHTML="<<";a.title=Strings.STS.L_HideTZ_Text;SetMtgCookie("MtgTimeZone","1","")}else{b.style.display="none";a.innerHTML=">>";a.title=Strings.STS.L_ShowTZ_Text;SetMtgCookie("MtgTimeZone","0","")}}function GetPageUrl(b){var a=undefined;if(b&&typeof g_webUrl!="undefined")a=g_webUrl;else if(typeof g_pageUrl!="undefined")a=g_pageUrl;return unescapeProperly(a)}function MtgNavigate(a){if(typeof g_instanceId!="undefined"&&a==g_instanceId)return;if(typeof g_fPageGlobal!="undefined")var c=!g_fPageGlobal;if(typeof g_thispagedata!="undefined")var b=g_thispagedata;window.location.href=GetPageUrl(c)+"?InstanceID="+a+"&"+b}function GoToMtgMove(d,c,b,a){window.location.href=d+"/movetodt.aspx?FromInstanceID="+c+"&FromInstanceDate="+escapeProperly(b)+"&FromInstanceDateISO="+escapeProperly(a)+"&Source="+escapeProperly(window.location.href)}function MtgKeep(b,c,a){confirm(Strings.STS.L_MtgKeepConfirm_Text)&&SubmitFormPost(b+"&Cmd=MtgKeep&List="+escapeProperly(c)+"&EditInstanceID="+a+"&NextUsing="+escapeProperly(window.location.href))}function MtgDelete(c,d,a){if(confirm(Strings.STS.L_MtgDeleteConfirm_Text)){var b=a==g_instanceId;SubmitFormPost(c+"&Cmd=MtgMove&List="+escapeProperly(d)+"&FromInstanceID="+a+"&ToInstanceID=-3&NextUsing="+escapeProperly(b?GetPageUrl(true):window.location.href))}}function SetMtgCookie(a,b,c){document.cookie=a+"="+b+";path="+c}function SetAsLastTabVisited(){typeof g_pageUrl!="undefined"&&typeof g_webUrl!="undefined"&&SetMtgCookie("MtgLastTabVisited",escapeProperly(unescapeProperly(g_pageUrl)),escapeProperlyCore(unescapeProperly(g_webUrl),true))}function MtgRedirect(){var a=GetCookie("MtgLastTabVisited");if(a==null)if(typeof g_webUrl!="undefined")a=g_webUrl;else a="../../";else a=escapeProperlyCore(a,true);window.location.href=a}function MakeMtgInstanceUrl(a,c){if(c!="undefined"&&c!=""){var b=a.indexOf("?");if(b==-1||a.indexOf("InstanceID=",b)==-1)a=a+(b==-1?"?":"&")+"InstanceID="+c}return a}var filterTable,bIsFilterMenuShown,bIsFilterDataLoaded,filterImageCell,currentFilterMenu,loadingFilterMenu,ctxFilter,bIsFilterKeyPress,filterStr,strFieldName,bMenuLoadInProgress,strFilteredValue,bIsMultiFilter,fnOnFilterMouseOut;function resetFilterMenuState(){if(bMenuLoadInProgress)return;bIsFilterMenuShown=false;bIsFilterDataLoaded=false;filterTable=null;filterImageCell=null;currentFilterMenu=null;loadingFilterMenu=null;ctxFilter=null;bIsFilterKeyPress=false;fnOnFilterMouseOut!=null&&fnOnFilterMouseOut();fnOnFilterMouseOut=null}function setupFilterMenuContext(a){ctxFilter=a}function IsFilterMenuOn(){var a=false;if(!bIsFilterMenuShown)return false;a=bMenuLoadInProgress||MenuHtc_isOpen(currentFilterMenu)||MenuHtc_isOpen(loadingFilterMenu);if(!a)bIsFilterMenuShown=false;return a}function IsFilterMenuEnabled(b){if(b==null)return true;var a=CtxFromElement(b);return a!=null&&typeof a.fullListSearch!="undefined"&&Boolean(a.fullListSearch)?false:true}function OnMouseOverFilterDeferCall(elm){if(!IsFilterMenuEnabled(elm))return false;if(IsFilterMenuOn()||bMenuLoadInProgress)return false;if(window.location.href.search(new RegExp("[\\?&]Filter=1"))!=-1)return false;if(typeof elm.FilterDisable!="undefined"&&elm.FilterDisable=="TRUE")return false;if(IsFieldNotFilterable(elm)&&IsFieldNotSortable(elm))return false;if(filterTable==elm)return true;filterTable!=null&&OnMouseOutFilter();filterTable=elm;var isTable=filterTable.tagName=="TABLE",curCtx;try{curCtx=eval("ctx"+filterTable.getAttribute("CtxNum"))}catch(e){}if(typeof curCtx=="undefined")return false;var createCtx=new Function("setupFilterMenuContext(ctx"+filterTable.getAttribute("CtxNum")+");");createCtx();if(isTable){filterTable.className="ms-selectedtitle";SetEvent("click",CreateFilterMenu,filterTable);SetEvent("contextmenu",CreateFilterMenu,filterTable);SetEvent("mouseout",OnMouseOutFilter,filterTable)}else{var par=filterTable.parentNode;SetEvent("click",CreateFilterMenu,par);SetEvent("contextmenu",CreateFilterMenu,par);SetEvent("mouseout",OnMouseOutFilter,par);CreateCtxImg(par,OnMouseOutFilter)}if(isTable){var titleParent=filterTable.childNodes[0],titleRow=titleParent.childNodes[0];filterImageCell=titleRow.childNodes[titleRow.childNodes.length-1];var filterArrow=filterImageCell.childNodes[0];filterArrow.src=ctxFilter.imagesPath+"menudark.gif";filterArrow.alt=Strings.STS.L_OpenMenu_Text;filterArrow.style.visibility="visible";if(IsElementRtl(filterTable)){filterImageCell.style.right=null;filterImageCell.style.left="1px"}else{filterImageCell.style.left=null;filterImageCell.style.right="1px"}filterImageCell.className="ms-menuimagecell"}return true}function OnMouseOutFilter(a){if(!IsFilterMenuOn()&&filterTable!=null&&!bMenuLoadInProgress){var c=filterTable.tagName=="TABLE",b=filterTable.parentNode;if(c||b==null){filterTable.className="ms-unselectedtitle";filterTable.onclick=null;filterTable.oncontextmenu=null;filterTable.onmouseout=null}else{if(a==null)a=window.event;if(a!=null){var d=typeof a.toElement!="undefined"&&a.toElement!=null?a.toElement:a.relatedTarget;if(b!=null&&d!=null&&IsContained(d,b))return}b.onclick=null;b.oncontextmenu=null;b.onmouseout=null;RemoveCtxImg(b);if(g_menuLaunchPoint!=null){g_menuLaunchPoint.setAttribute("aria-expanded","false");g_menuLaunchPoint.focus();g_menuLaunchPoint=null}}if(c&&filterImageCell!=null&&filterImageCell.childNodes.length>0){filterImageCell.childNodes[0].style.visibility="hidden";filterImageCell.className=""}resetFilterMenuState()}}function PopFilterMenu(a){var b;if(a==null)a=window.event;if(browseris.nav6up)b=a.which;else b=a.keyCode;if(!IsFilterMenuOn()&&(a.shiftKey&&b==13||a.altKey&&b==40)){var c=Boolean(a.srcElement)?a.srcElement:a.target;if(!IsFilterMenuEnabled(c))return true;var d=FindSTSMenuTable(c,"CTXNum");if(d==null)return false;OnMouseOverFilterDeferCall(d);CreateFilterMenu(a);return false}else return true}function CreateFilterMenu(a){if(filterTable==null||filterTable.tagName=="TABLE"&&filterImageCell==null)return true;var b=filterTable.tagName=="DIV"?filterTable.parentNode:filterTable,c=FindCtxImg(b);c!=null&&c.shown==false&&ShowCtxImg(c,true,b);if(a==null)a=window.event;bIsFilterMenuShown=true;if(a!=null)if(Boolean(a.target))g_menuLaunchPoint=a.target;else if(Boolean(a.srcElement))g_menuLaunchPoint=a.srcElement;window.origBodyOnClickHandler=document.body.onclick;window.document.body.onclick=null;currentFilterMenu=CMenu("filter_menu");loadingFilterMenu=CMenu("filter_menu_loading");currentFilterMenu.setAttribute("CompactMode","true");addSortMenuItems(currentFilterMenu,loadingFilterMenu);if(filterStr==null)addFilterMenuItems(currentFilterMenu,loadingFilterMenu);else addAdHocFilterMenuItems(currentFilterMenu,loadingFilterMenu);if(HasCssClass(b,"ms-headerCellStylePressed")||HasCssClass(b,"ms-headerCellStyleHover")){RemoveCssClassFromElement(b,"ms-headerCellStylePressed");RemoveCssClassFromElement(b,"ms-headerCellStyleHover");AddCssClassToElement(b,"ms-headerCellStyleMenuOpen")}a!=null&&a.stopPropagation!=null&&a.stopPropagation();return false}function IsFieldNotSortable(a){return a.getAttribute("Sortable")=="FALSE"||a.getAttribute("SortDisable")=="TRUE"||a.getAttribute("FieldType")=="MultiChoice"?true:false}function addSortMenuItems(b,a){if(IsFieldNotSortable(filterTable)){CAMOptFilter(b,a,Strings.STS.L_NotSortable_Text,"","",false,"fmi_ns");CAMSep(b);CAMSep(a);return}var e="",f="",d="",g=GetThemedLocalizedImageUrl("SortUpGlyph.png"),h=GetThemedLocalizedImageUrl("SortDownGlyph.png");if(filterStr==null){var c=ctxFilter.queryString;if(null==c||c=="")c=filterTable.getAttribute("SortFields");else{var z=Nav.getUrlKeyValue("SortField",true,c),w=filterTable.getAttribute("SortFields"),v=Nav.getUrlKeyValue("SortField",true,w);if(z!=v){c=SetUrlKeyValue("SortField",v,false,c);c=SetUrlKeyValue("SortDir",Nav.getUrlKeyValue("SortDir",true,w),false,c)}}var l=new URI(c,{disableEncodingDecodingForLegacyCode:true});if(l.getQuery().length>0)c=l.getQuery();var r=c.indexOf("&SortDir");if(r==-1){CAMOptFilter(b,a,Strings.STS.L_NotSortable_Text,"","",false,"fmi_ns");CAMSep(b);CAMSep(a);return}var q=c.indexOf("&",r+1),t=GetUrlWithNoSortParameters(c);t=RemovePagingArgs(t);l=new URI(t,{disableEncodingDecodingForLegacyCode:true});var k="?"+l.getQuery();if(k.length>1)k+="&";var C=k;if(q<0)q=c.length;k+=c.substr(0,r)+"&SortDir=Asc"+c.substr(q);l.setQuery(k);e="HandleFilter(event, '"+STSScriptEncode(l.getString())+"', 1);";k=C;k+=c.substr(0,r)+"&SortDir=Desc"+c.substr(q);l.setQuery(k);f="HandleFilter(event, '"+STSScriptEncode(l.getString())+"', 1);";if(e.indexOf("?")>=0)e.substr(e.indexOf("?")+1).indexOf("?")>=0;d=filterTable.getAttribute("FieldType");strFieldName=filterTable.getAttribute("Name")}else{var s=" ",j=filterStr.lastIndexOf(s);d=filterStr.substring(j+1);if(d.substring(0,2)=="x:")d=d.substring(2);var o=filterStr.substring(0,j);j=o.lastIndexOf(s);strFieldName=o.substring(j+1);if(strFieldName.substring(0,1)=="@")strFieldName=strFieldName.substring(1);o=filterStr.substring(0,j);j=o.lastIndexOf(s);if(j>0)strFieldName=o.substring(0,j);var B=filterTable.tagName=="TABLE",i=null;if(B){var y=filterTable.childNodes[0],A=y.childNodes[0],x=A.childNodes[0];i=x.childNodes[0];if(i.tagName=="TABLE"){var n=i.childNodes[0];n=n.childNodes[0];n=n.childNodes[1];i=n.childNodes[0]}}else i=filterTable.firstChild;if(i.tagName=="DIV")i=i.childNodes[0];var m=i.href;m=m.replace(/%20/g," ");if(m.indexOf("'ascending'")>0){e=m;f=m.replace("'ascending'","'descending'")}else{f=m;e=m.replace("'descending'","'ascending'")}}d=d.toLowerCase();if(d=="dateTime"){CAMOptFilter(b,a,Strings.STS.L_OldestOnTop_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_NewestOnTop_Text,f,h,true,"fmi_desc")}else if(d=="integer"||d=="number"||d=="currency"){CAMOptFilter(b,a,Strings.STS.L_SmallestOnTop_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_LargestOnTop_Text,f,h,true,"fmi_desc")}else if(d=="text"||d=="user"||d=="string"){CAMOptFilter(b,a,Strings.STS.L_AOnTop_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_ZOnTop_Text,f,h,true,"fmi_desc")}else if(d=="calculated"){var p=filterTable.getAttribute("ResultType");if(p=="Number"||p=="Currency"){CAMOptFilter(b,a,Strings.STS.L_SmallestOnTop_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_LargestOnTop_Text,f,h,true,"fmi_desc")}else if(p=="dateTime"){CAMOptFilter(b,a,Strings.STS.L_OldestOnTop_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_NewestOnTop_Text,f,h,true,"fmi_desc")}else if(p=="boolean"){CAMOptFilter(b,a,Strings.STS.L_Ascending_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_Descending_Text,f,h,true,"fmi_desc")}else{CAMOptFilter(b,a,Strings.STS.L_AOnTop_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_ZOnTop_Text,f,h,true,"fmi_desc")}}else if(d=="attachments"){CAMOptFilter(b,a,Strings.STS.L_BlanksOnTop_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_AttachmentsOnTop_Text,f,h,true,"fmi_desc")}else if(d=="lookup"){var u=filterTable.getAttribute("Name");if(u=="Last_x0020_Modified"||u=="Created_x0020_Date"){CAMOptFilter(b,a,Strings.STS.L_OldestOnTop_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_NewestOnTop_Text,f,h,true,"fmi_desc")}else{CAMOptFilter(b,a,Strings.STS.L_Ascending_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_Descending_Text,f,h,true,"fmi_desc")}}else{CAMOptFilter(b,a,Strings.STS.L_Ascending_Text,e,g,true,"fmi_asc");CAMOptFilter(b,a,Strings.STS.L_Descending_Text,f,h,true,"fmi_desc")}CAMSep(b);CAMSep(a)}function CAMOptFilter(h,g,d,f,c,b,e){var a;a=CAMOpt(h,d,f,c);a.id=e;if(!b){a.setAttribute("enabled","false");a.disabled=true}a=CAMOpt(g,d,f,c);a.id=e+"_p";if(!b){a.setAttribute("enabled","false");a.disabled=true}}function ShowFilterLoadingMenu(){!bIsFilterDataLoaded&&filterTable!=null&&FilterOMenu(loadingFilterMenu,filterTable)}function IsFieldNotFilterable(a){return a.getAttribute("Filterable")=="FALSE"||a.getAttribute("FilterDisable")=="TRUE"||a.getAttribute("FieldType ")=="Note"||a.getAttribute("FieldType ")=="URL"?true:false}function addFilteringDisabledMenuItem(a){FilterOMenu(a,filterTable);a._onDestroy=OnMouseOutFilter}function addFilterMenuItems(n,k){if(IsFieldNotFilterable(filterTable)){addFilteringDisabledMenuItem(n);return}var e=document.getElementById("FilterIframe"+filterTable.getAttribute("CtxNum"));if(e==null)return;var c=ctxFilter.queryString;if(null==c||c=="")c=e.getAttribute("FilterLink");(c==null||c=="")&&window.alert("Unexpected");if(c=="?"){var r=ajaxNavigate.getParam("InplviewHash"+ctxFilter.view);if(Boolean(r))c+=InplViewUtil.DecodeHashAsQueryString(r)}var h=escapeProperly(filterTable.getAttribute("Name"));strFilteredValue=null;var a="",d=0,b,f;do{d++;var s=false;b=c.match(new RegExp("FilterField"+String(d)+"=[^&#]*"));if(!Boolean(b))b=c.match(new RegExp("FilterFields"+String(d)+"=[^&#]*"));f=c.match(new RegExp("&FilterValue"+String(d)+"=[^&#]*"));if(!Boolean(f)){f=c.match(new RegExp("&FilterValues"+String(d)+"=[^&#]*"));s=true}if(b!=null&&f!=null){if(strFilteredValue==null){strFilteredValue=getFilterValueFromUrl(b.toString()+f.toString(),h);bIsMultiFilter=s}a=a+"&"+b.toString()+f.toString();var q=c.match(new RegExp("&FilterOp"+String(d)+"=[^&#]*"));if(q!=null)a=a+q.toString();var i=c.match(new RegExp("&FilterLookupId"+String(d)+"=[^&#]*"));if(i!=null)a=a+i.toString();var m=c.match(new RegExp("&FilterData"+String(d)+"=[^&#]*"));if(m!=null)a=a+m.toString();if(i!=null&&m==null&&strFilteredValue!=null){addFilteringDisabledMenuItem(n);return}}}while(null!=b);var p=strFilteredValue!=null,t=StBuildParam(Strings.STS.L_DontFilterBy_Text,filterTable.getAttribute("DisplayName")),u="javascript:HandleFilter(event, '"+STSScriptEncode(FilterFieldV3(ctxFilter.view,h,"",0,ctxFilter.queryString,true))+"')",l;if(p)l=GetThemedImageUrl("DeleteFilterGlyph.png");else l=GetThemedImageUrl("DisabledDeleteFilterGlyph.png");CAMOptFilter(n,k,t,u,l,p,"fmi_clr");var v=CAMOpt(k,Strings.STS.L_Loading_Text,"");v.setAttribute("enabled","false");setTimeout("ShowFilterLoadingMenu()",500);k._onDestroy=OnMouseOutFilter;b=c.match(new RegExp("MembershipGroupId=[^&]*"));if(b!=null)a=a+"&"+b.toString();b=c.match(new RegExp("InstanceID=[^&]*"));if(b!=null)a=a+"&"+b.toString();if(a!=null&&a.length>0){if(ctxFilter.overrideFilterQstring!=null&&ctxFilter.overrideFilterQstring.length>0)a="&"+ReconcileQstringFilters(a.substring(1),ctxFilter.overrideFilterQstring)}else if(ctxFilter.overrideFilterQstring!=null&&ctxFilter.overrideFilterQstring.length>0)a="&"+ctxFilter.overrideFilterQstring;var j="",g;if(ctxFilter!=null&&(g=ctxFilter.clvp)!=null&&g.rootFolder!=null&&g.rootFolder.length>0)j="&RootFolder="+URI_Encoding.encodeURIComponent(g.rootFolder);else{b=c.match(new RegExp("RootFolder=[^&]*"));if(b!=null)j="&"+b.toString()}var o="";b=a.match(new RegExp("OverrideScope=[^&]*"));if(ctxFilter!=null&&typeof ctxFilter.overrideScope!="undefined"&&b==null)o="&OverrideScope="+escapeProperlyCore(ctxFilter.overrideScope,false);if(browseris.safari){e.src="/_layouts/15/blank.htm";e.style.offsetLeft="-550px";e.style.offsetTop="-550px";e.style.border="0px";e.style.display="block"}e.src=ctxFilter.HttpRoot+"/_layouts/15/filter.aspx?ListId="+ctxFilter.listName+j+o+"&FieldInternalName="+h+"&ViewId="+ctxFilter.view+"&FilterOnly=1&Filter=1"+a;bMenuLoadInProgress=true}function _OnIframeLoad(){bMenuLoadInProgress=false;if(filterTable!=null&&filterTable.getAttribute("Name")!=null){var b=null;b=document.getElementById("FilterIframe"+filterTable.getAttribute("CtxNum"));if(b!=null){var c=GetIFrameDoc(b),e=filterTable.getAttribute("Name");if(c!=null){var h=c.getElementById("diidFilterCustomTable");if(h!=null&&(typeof b.contentWindow!="undefined"&&null!=b.contentWindow&&typeof b.contentWindow.CustomPopulateFilterMenu!="undefined"&&null!=b.contentWindow.CustomPopulateFilterMenu||typeof c.defaultView!="undefined"&&null!=c.defaultView&&typeof c.defaultView.CustomPopulateFilterMenu!="undefined"&&null!=c.defaultView.CustomPopulateFilterMenu))if(null!=b.contentWindow)b.contentWindow.CustomPopulateFilterMenu(currentFilterMenu,h,"FilterIframe"+filterTable.getAttribute("CtxNum"),ctxFilter.view,e);else c.defaultView.CustomPopulateFilterMenu(currentFilterMenu,h,"FilterIframe"+filterTable.getAttribute("CtxNum"),ctxFilter.view,e);else{var i=c.getElementById("diidFilter"+e);e=escapeProperly(e);if(i!=null){var k=i.childNodes.length;if(k>500)addFilterOptionMenuItem();else for(var d=i.childNodes,a=1;a",a),l=StBuildParam(Strings.STS.L_DontFilterBy_Text,strFieldName),i,e="",c,f;if(d0){f=b.lastIndexOf('"',c-1);if(f>0)e=b.substring(f+1,c)}}if(d==a-1)i=GetThemedImageUrl("DisabledDeleteFilterGlyph.png");else i=GetThemedImageUrl("DeleteFilterGlyph.png");var g;if(a>0){g=CAMOpt(currentFilterMenu,l,e,i);g.setAttribute("enabled",d==a-1?"false":"true");c=a;var m='