(function(){"use strict";function n(n){function s(s,h){var rt,ut,p=s==window,l=h&&h.message!==undefined?h.message:undefined,g,k,d,tt,nt,w,b,it,ft,et,at;if(h=n.extend({},n.blockUI.defaults,h||{}),!h.ignoreIfBlocked||!n(s).data("blockUI.isBlocked")){if(h.overlayCSS=n.extend({},n.blockUI.defaults.overlayCSS,h.overlayCSS||{}),rt=n.extend({},n.blockUI.defaults.css,h.css||{}),h.onOverlayClick&&(h.overlayCSS.cursor="pointer"),ut=n.extend({},n.blockUI.defaults.themedCSS,h.themedCSS||{}),l=l===undefined?h.message:l,p&&t&&e(window,{fadeOut:0}),l&&typeof l!="string"&&(l.parentNode||l.jquery)&&(g=l.jquery?l[0]:l,k={},n(s).data("blockUI.history",k),k.el=g,k.parent=g.parentNode,k.display=g.style.display,k.position=g.style.position,k.parent&&k.parent.removeChild(g)),n(s).data("blockUI.onUnblock",h.onUnblock),d=h.baseZ,tt=f||h.forceIframe?n('<iframe class="blockUI" style="z-index:'+d+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+h.iframeSrc+'"><\/iframe>'):n('<div class="blockUI" style="display:none"><\/div>'),nt=h.theme?n('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+d+++';display:none"><\/div>'):n('<div class="blockUI blockOverlay" style="z-index:'+d+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"><\/div>'),h.theme&&p?(b='<div class="blockUI '+h.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(d+10)+';display:none;position:fixed">',h.title&&(b+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(h.title||"&nbsp;")+"<\/div>"),b+='<div class="ui-widget-content ui-dialog-content"><\/div>',b+="<\/div>"):h.theme?(b='<div class="blockUI '+h.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(d+10)+';display:none;position:absolute">',h.title&&(b+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(h.title||"&nbsp;")+"<\/div>"),b+='<div class="ui-widget-content ui-dialog-content"><\/div>',b+="<\/div>"):b=p?'<div class="blockUI '+h.blockMsgClass+' blockPage" style="z-index:'+(d+10)+';display:none;position:fixed"><\/div>':'<div class="blockUI '+h.blockMsgClass+' blockElement" style="z-index:'+(d+10)+';display:none;position:absolute"><\/div>',w=n(b),l&&(h.theme?(w.css(ut),w.addClass("ui-widget-content")):w.css(rt)),h.theme||nt.css(h.overlayCSS),nt.css("position",p?"fixed":"absolute"),(f||h.forceIframe)&&tt.css("opacity",0),it=[tt,nt,w],ft=p?n("body"):n(s),n.each(it,function(){this.appendTo(ft)}),h.theme&&h.draggable&&n.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"}),et=v&&(!n.support.boxModel||n("object,embed",p?null:s).length>0),o||et){if(p&&h.allowBodyStretch&&n.support.boxModel&&n("html,body").css("height","100%"),(o||!n.support.boxModel)&&!p)var ot=r(s,"borderTopWidth"),st=r(s,"borderLeftWidth"),ht=ot?"(0 - "+ot+")":0,ct=st?"(0 - "+st+")":0;n.each(it,function(n,t){var i=t[0].style,r,u;i.position="absolute";n<2?(p?i.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+h.quirksmodeOffsetHack+') + "px"'):i.setExpression("height",'this.parentNode.offsetHeight + "px"'),p?i.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):i.setExpression("width",'this.parentNode.offsetWidth + "px"'),ct&&i.setExpression("left",ct),ht&&i.setExpression("top",ht)):h.centerY?(p&&i.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),i.marginTop=0):!h.centerY&&p&&(r=h.css&&h.css.top?parseInt(h.css.top,10):0,u="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+r+') + "px"',i.setExpression("top",u))})}if(l&&(h.theme?w.find(".ui-widget-content").append(l):w.append(l),(l.jquery||l.nodeType)&&n(l).show()),(f||h.forceIframe)&&h.showOverlay&&tt.show(),h.fadeIn){var lt=h.onBlock?h.onBlock:u,vt=h.showOverlay&&!l?lt:u,yt=l?lt:u;h.showOverlay&&nt._fadeIn(h.fadeIn,vt);l&&w._fadeIn(h.fadeIn,yt)}else h.showOverlay&&nt.show(),l&&w.show(),h.onBlock&&h.onBlock();c(1,s,h);p?(t=w[0],i=n(h.focusableElements,t),h.focusInput&&setTimeout(a,20)):y(w[0],h.centerX,h.centerY);h.timeout&&(at=setTimeout(function(){p?n.unblockUI(h):n(s).unblock(h)},h.timeout),n(s).data("blockUI.timeout",at))}}function e(r,u){var o,s=r==window,e=n(r),l=e.data("blockUI.history"),a=e.data("blockUI.timeout"),f;a&&(clearTimeout(a),e.removeData("blockUI.timeout"));u=n.extend({},n.blockUI.defaults,u||{});c(0,r,u);u.onUnblock===null&&(u.onUnblock=e.data("blockUI.onUnblock"),e.removeData("blockUI.onUnblock"));f=s?n("body").children().filter(".blockUI").add("body > .blockUI"):e.find(">.blockUI");u.cursorReset&&(f.length>1&&(f[1].style.cursor=u.cursorReset),f.length>2&&(f[2].style.cursor=u.cursorReset));s&&(t=i=null);u.fadeOut?(o=f.length,f.stop().fadeOut(u.fadeOut,function(){--o==0&&h(f,l,u,r)})):h(f,l,u,r)}function h(t,i,r,u){var f=n(u);if(!f.data("blockUI.isBlocked")){if(t.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),i&&i.el&&(i.el.style.display=i.display,i.el.style.position=i.position,i.parent&&i.parent.appendChild(i.el),f.removeData("blockUI.history")),f.data("blockUI.static")&&f.css("position","static"),typeof r.onUnblock=="function")r.onUnblock(u,r);var e=n(document.body),o=e.width(),s=e[0].style.width;e.width(o-1).width(o);e[0].style.width=s}}function c(i,r,u){var f=r==window,o=n(r),e;(i||(!f||t)&&(f||o.data("blockUI.isBlocked")))&&(o.data("blockUI.isBlocked",i),f&&u.bindEvents&&(!i||u.showOverlay))&&(e="mousedown mouseup keydown keypress keyup touchstart touchend touchmove",i?n(document).bind(e,u,l):n(document).unbind(e,l))}function l(r){var u,f;if(r.type==="keydown"&&r.keyCode&&r.keyCode==9&&t&&r.data.constrainTabKey){var e=i,s=!r.shiftKey&&r.target===e[e.length-1],o=r.shiftKey&&r.target===e[0];if(s||o)return setTimeout(function(){a(o)},10),!1}if(u=r.data,f=n(r.target),f.hasClass("blockOverlay")&&u.onOverlayClick)u.onOverlayClick(r);return f.parents("div."+u.blockMsgClass).length>0?!0:f.parents().children().filter("div.blockUI").length===0}function a(n){if(i){var t=i[n===!0?i.length-1:0];t&&t.focus()}}function y(n,t,i){var u=n.parentNode,f=n.style,e=(u.offsetWidth-n.offsetWidth)/2-r(u,"borderLeftWidth"),o=(u.offsetHeight-n.offsetHeight)/2-r(u,"borderTopWidth");t&&(f.left=e>0?e+"px":"0");i&&(f.top=o>0?o+"px":"0")}function r(t,i){return parseInt(n.css(t,i),10)||0}var t,i;n.fn._fadeIn=n.fn.fadeIn;var u=n.noop||function(){},f=/MSIE/.test(navigator.userAgent),o=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),p=document.documentMode||0,v=n.isFunction(document.createElement("div").style.setExpression);n.blockUI=function(n){s(window,n)};n.unblockUI=function(n){e(window,n)};n.growlUI=function(t,i,r,u){var f=n('<div class="growlUI"><\/div>'),e,o;t&&f.append("<h1>"+t+"<\/h1>");i&&f.append("<h2>"+i+"<\/h2>");r===undefined&&(r=3e3);e=function(t){t=t||{};n.blockUI({message:f,fadeIn:typeof t.fadeIn!="undefined"?t.fadeIn:700,fadeOut:typeof t.fadeOut!="undefined"?t.fadeOut:1e3,timeout:typeof t.timeout!="undefined"?t.timeout:r,centerY:!1,showOverlay:!1,onUnblock:u,css:n.blockUI.defaults.growlCSS})};e();o=f.css("opacity");f.mouseover(function(){e({fadeIn:0,timeout:3e4});var t=n(".blockMsg");t.stop();t.fadeTo(300,1)}).mouseout(function(){n(".blockMsg").fadeOut(1e3)})};n.fn.block=function(t){if(this[0]===window)return n.blockUI(t),this;var i=n.extend({},n.blockUI.defaults,t||{});return this.each(function(){var t=n(this);i.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){n.css(this,"position")=="static"&&(this.style.position="relative",n(this).data("blockUI.static",!0));this.style.zoom=1;s(this,t)})};n.fn.unblock=function(t){return this[0]===window?(n.unblockUI(t),this):this.each(function(){e(this,t)})};n.blockUI.version=2.66;n.blockUI.defaults={message:"<h1>Please wait...<\/h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};t=null;i=[]}typeof define=="function"&&define.amd&&define.amd.jQuery?define(["jquery"],n):n(jQuery)})();var TranslationTable={},Enums={},AjaxRunning=0,AppUtils=function(){function c(n){var t;t=n.dialogId?$("<div />",{id:n.dialogId}):$("<div />");t.html('<img src="/Content/images/time_animation_trans.gif" />');let i=t.dialog({height:n.height,width:n.width,position:{my:"center",at:"center"},title:n.title,modal:!0,create:function(){var n=$(this).dialog("widget");$(".ui-icon-closethick",n).html("c").addClass("li")},open:function(){if($(this).closest(".ui-dialog").find(".ui-dialog-titlebar-close").removeClass("ui-dialog-titlebar-close").addClass("close").css("color","black").css("padding-top","4px").html("X"),typeof dialogLoaded=="function"){dialogLoaded();try{delete window.dialogLoaded}catch(n){window.dialogLoaded=undefined}}},close:function(){$(this).remove();typeof n.closeDialog=="function"&&n.closeDialog.call()}});$.ajax({url:n.url,type:n.type==="POST"?n.type:"GET",data:n.data,cache:!1}).done(function(n){t.html(n);$("form",t).submit(function(){return!1});let u=$(document).scrollTop()-50,r=(window.innerHeight-i.height())/2+u;r<0&&(r=0);i.parent().css("top",r)})}function l(){$(".content_note:hidden").parent().show("fast");$(".hidden-note:visible").hide();$("a.toggle-notes").text(labelMoreNotes+" »");$("a.tool-toggle-notes").attr("value","true");$("a.tool-toggle-notes").text(n)}function a(){$(".content_note:visible").parent().hide("fast");$("a.tool-toggle-notes").attr("value","false");$("a.tool-toggle-notes").text(t)}function v(){$(".js--content-abrogated").parent().show("fast");$("a.tool-toggle-deletedsegments").text(i);$("a.tool-toggle-deletedsegments").attr("value","true")}function y(){$(".js--content-abrogated").parent().hide("fast");$("a.tool-toggle-deletedsegments").text(r);$("a.tool-toggle-deletedsegments").attr("value","false")}function p(){$(".instructions-article-note").parent().hide("fast");$(".instructions-article-content").show("fast");$("a.tool-toggle-instructions").text(u);$("a.tool-toggle-instructions").attr("value","true")}function w(){$(".instructions-article-content").hide("fast");$(".instructions-article-note").parent().show("fast");$("a.tool-toggle-instructions").attr("value","false");$("a.tool-toggle-instructions").text(f)}function b(){$(".practic-answer").show("fast");$("a.tool-toggle-answers").text(s);$("a.tool-toggle-answers").attr("value","true");$(".question-icon").attr("src","/Content/images/HideTable.png")}function k(){$(".practic-answer").hide("fast");$("a.tool-toggle-answers").text(h);$("a.tool-toggle-answers").attr("value","false");$(".question-icon").attr("src","/Content/images/ShowTable.png")}function d(){$("span.page-number-row").show();$("span.page-num-dash").show();$("a.tool-toggle-pagenumber").text(e);$("a.tool-toggle-pagenumber").attr("value","true")}function g(){$("span.page-number-row").hide();$("span.page-num-dash").hide();$("a.tool-toggle-pagenumber").text(o);$("a.tool-toggle-pagenumber").attr("value","false")}function nt(n){n?($(".lnk-plain-view-toggle").attr("id","normal"),$(".articleIcons").show(),$(".line-bottom").removeClass("line-bottom-off"),$(".content_note,.iuscomment-footnote-text").removeClass("note-clear"),$(".content_note_clear").remove(),$(".content_note > a").show(),$(".more-notes-link").show(),$(".lnk-plain-view-text").text(enablePlainViewTxt)):($(".lnk-plain-view-toggle").attr("id","plain"),$(".articleIcons").hide(),$(".line-bottom").addClass("line-bottom-off"),$(".content_note,.iuscomment-footnote-text").addClass("note-clear"),$(".content_note > a").each(function(n,t){$(t).after('<span class="content_note_clear">'+$(t).html()+"<\/span>");$(t).hide()}),$(".more-notes-link").hide(),$(".lnk-plain-view-text").text(disablePlainViewTxt))}function tt(n){var i,t,r,u;window.getSelection().removeAllRanges();i=document.getElementById(n);t=document.createRange();t.selectNode(i);window.getSelection().addRange(t);try{r=document.execCommand("copy");u=r?"successful":"unsuccessful";console.log("Copy command was "+u)}catch(f){console.log("Oops, unable to copy")}window.getSelection().removeAllRanges()}function it(n){var t,i,r;if(window.clipboardData&&window.clipboardData.setData)return clipboardData.setData("Text",n);if(document.queryCommandSupported&&document.queryCommandSupported("copy")){t=document.createElement("textarea");t.textContent=n;t.style.position="fixed";document.body.appendChild(t);t.select();try{return i=document.execCommand("copy"),r=i?"successful":"unsuccessful",console.log("Copy command was "+r),i}catch(u){return console.warn("Copy to clipboard failed.",u),!1}finally{document.body.removeChild(t)}}}var n="",t="",i="",r="",u="",f="",e="",o="",s="",h="";return{init:function(c,l,a,v,y,p,w,b,k,d,g,nt){t=c;n=l;r=a;i=v;f=y;u=p;o=w;e=b;enablePlainViewTxt=k;disablePlainViewTxt=d;h=g;s=nt},openDialog:function(n){c(n)},displaySettingShowNotes:function(){l()},displaySettingHideNotes:function(){a()},displaySettingShowAbrogations:function(){v()},displaySettingHideAbrogations:function(){y()},displaySettingShowInstructions:function(){p()},displaySettingHideInstructions:function(){w()},displaySettingShowPageNum:function(){d()},displaySettingHidePageNum:function(){g()},togglePlainView:function(n){nt(n)},displaySettingShowAnswers:function(){b()},displaySettingHideAnswers:function(){k()},copyToClipboard:function(n){it(n)},copyToClipboard_ByElementId:function(n){tt(n)},executePostLoadFunctions:function(){GetPopups()},blockOnReady:function(n){$(function(){n instanceof jQuery?n.block():$(n).block()})},unblockOnReady:function(n){$(function(){n instanceof jQuery?n.unblock():$(n).unblock()})}}}();$.blockUI.defaults.css={width:"100%",top:"100px",left:"50%",textAlign:"center",border:"none"};$.blockUI.defaults.overlayCSS={backgroundColor:"#F5F2E9",opacity:.6,border:"none"};$.blockUI.defaults.message='<img src="/Content/images/time_animation_trans.gif" height="30" width="30" />';$(document).ajaxSuccess(function(n,t){if(t.responseText.indexOf("success")>=0&&t.responseText.indexOf("false")>=0&&t.responseText.indexOf("serverError")>=0&&t.responseText.indexOf("eventType")>=0){var i=$.parseJSON(t.responseText);window.location.href="/CustomMessage/Index/?EventType="+i.eventType;return}})