/*! ATOGOV - SPA 2025-03-18, Copyright (c) 2025 Australian Taxation Office */
!function(z){z.fn._fadeIn=z.fn.fadeIn;var H=function(){},e=document.documentMode||0,W=z.browser.msie&&(z.browser.version<8&&!e||e<8),j=z.browser.msie&&/MSIE 6.0/.test(navigator.userAgent)&&!e,B=(z.blockUI=function(e){o(window,e)},z.unblockUI=function(e){q(window,e)},z.growlUI=function(e,o,t,n){var i=z('
');e&&i.append(""+e+"
"),o&&i.append(""+o+"
"),t==undefined&&(t=3e3),z.blockUI({message:i,fadeIn:700,fadeOut:1e3,centerY:!1,timeout:t,showOverlay:!1,onUnblock:n,css:z.blockUI.defaults.growlCSS})},z.fn.block=function(e){return this.unblock({fadeOut:0}).each(function(){"static"==z.css(this,"position")&&(this.style.position="relative"),z.browser.msie&&(this.style.zoom=1),o(this,e)})},z.fn.unblock=function(e){return this.each(function(){q(this,e)})},z.blockUI.version=2.39,z.blockUI.defaults={message:"Please wait...
",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:"inherit"},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:50,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!1,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,applyPlatformOpacityRules:!0,onBlock:null,onUnblock:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg"},null),N=[];function o(e,i){var o,t,n,l,s,d,a,c,r,u,b=e==window,f=i&&i.message!==undefined?i.message:undefined,p=((i=z.extend({},z.blockUI.defaults,i||{})).overlayCSS=z.extend({},z.blockUI.defaults.overlayCSS,i.overlayCSS||{}),z.extend({},z.blockUI.defaults.css,i.css||{})),h=z.extend({},z.blockUI.defaults.themedCSS,i.themedCSS||{}),f=f===undefined?i.message:f,m=(b&&B&&q(window,{fadeOut:0}),f&&"string"!=typeof f&&(f.parentNode||f.jquery)&&(o=f.jquery?f[0]:f,t={},z(e).data("blockUI.history",t),t.el=o,t.parent=o.parentNode,t.display=o.style.display,t.position=o.style.position,t.parent)&&t.parent.removeChild(o),z(e).data("blockUI.onUnblock",i.onUnblock),i.baseZ),k=z.browser.msie||i.forceIframe?z(''):z(''),y=i.theme?z(''):z(''),g=i.theme&&b?'':i.theme?'':b?'':'',v=z(g),w=(f&&(i.theme?(v.css(h),v.addClass("ui-widget-content")):v.css(p)),i.theme||i.applyPlatformOpacityRules&&z.browser.mozilla&&/Linux/.test(navigator.platform)||y.css(i.overlayCSS),y.css("position",b?"fixed":"absolute"),(z.browser.msie||i.forceIframe)&&k.css("opacity",0),[k,y,v]),I=z(b?"body":e),x=(z.each(w,function(){this.appendTo(I)}),i.theme&&i.draggable&&z.fn.draggable&&v.draggable({handle:".ui-dialog-titlebar",cancel:"li"}),W&&(!z.boxModel||0 .blockUI"):z(".blockUI",e),n&&(B=N=null),o.fadeOut?(t.fadeOut(o.fadeOut),setTimeout(function(){d(t,l,o,e)},o.fadeOut)):d(t,l,o,e)}function d(e,o,t,n){e.each(function(e,o){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.parent&&o.parent.appendChild(o.el),z(n).removeData("blockUI.history")),"function"==typeof t.onUnblock&&t.onUnblock(n,t)}function P(e,o,t){var n,i=o==window,l=z(o);!e&&(i&&!B||!i&&!l.data("blockUI.isBlocked"))||(i||l.data("blockUI.isBlocked",e),!t.bindEvents)||e&&!t.showOverlay||(n="mousedown mouseup keydown keypress",e?z(document).bind(n,t,s):z(document).unbind(n,s))}function s(e){if(e.keyCode&&9==e.keyCode&&B&&e.data.constrainTabKey){var o=N,t=!e.shiftKey&&e.target===o[o.length-1],n=e.shiftKey&&e.target===o[0];if(t||n)return setTimeout(function(){Y(n)},10),!1}var i=e.data;return 0