System.register([],(function(t){"use strict";return{execute:function(){var e=function(){var t;var e;var i=true;var o=0;var n,r={};var u;var l;var c;var a=150;function f(t){var e=t.getBoundingClientRect();var i=document.documentElement;var o=document.defaultView;var n=document.body;var r=i.clientTop||n.clientTop||0,u=i.clientLeft||n.clientLeft||0,l=o.pageYOffset||i.scrollTop||n.scrollTop,c=o.pageXOffset||i.scrollLeft||n.scrollLeft,a=e.top+l-r,f=e.left+c-u;return{top:a,left:f,width:e.width,height:e.height,bottom:a+e.height,right:f+e.width}}function s(t){var e=[t];var i=t.getAttribute("id");var o=Array.prototype.slice.call(document.querySelectorAll('label[for="'+i+'"]:not(.visuallyhidden)'));e=e.concat(o);var n={top:1e6,left:1e6,bottom:-1e4,right:-1e4};for(var r=0,u=e.length;r<u;r++){var l=f(e[r]);n.top=Math.min(n.top,l.top);n.left=Math.min(n.left,l.left);n.bottom=Math.max(n.bottom,l.bottom);n.right=Math.max(n.right,l.right)}n.width=n.right-n.left;n.height=n.bottom-n.top;return n}function d(t,e,i){t.addEventListener(e,i,true)}function m(){if(!i){clearTimeout(u);clearTimeout(l);l=setTimeout(h,10)}}function h(){e.classList.remove("FlyingFocus-visible");i=true;clearTimeout(c)}function v(){clearTimeout(l);clearTimeout(c);var o=i?0:a/1e3;e.style.transitionDuration=e.style.WebkitTransitionDuration=o+"s";t=0;c=setTimeout(g,100);if(i){e.classList.add("FlyingFocus-visible");i=false}}function g(){var e=p(n);if(e.top!==r.top||e.left!==r.left||e.width!==r.width||e.height!==r.height){r=e;t=0}else{t++}if(t<3){c=setTimeout(g,100)}else{c=setTimeout(g,1e3)}}function p(t){if(i){return}var o=s(t);if(o.top!==r.top||o.left!==r.left||o.width!==r.width||o.height!==r.height){e.style.left=o.left+"px";e.style.top=o.top+"px";e.style.width=o.width+"px";e.style.height=o.height+"px"}return o}function y(t){if(document&&document.getElementById("FlyingFocus"))return;if(t){e=t}else{e=document.createElement("div");document.body.appendChild(e)}e.id="FlyingFocus";d(document.documentElement,"keydown",(function(t){if(t.keyCode<65){o=new Date}}));d(document,"focusin",(function(t){u=setTimeout((function(){var e=t.target;if(e.id==="FlyingFocus"){return}var u=new Date;if(i&&u-o>100){return}v();r=p(e);n=e}),1)}));d(document,"focusout",(function(t){return m()}));d(document.documentElement,"mousedown",(function(t){if(t.detail){h()}}));d(document.documentElement,"touchstart",(function(t){if(t.detail){h()}}));d(window,"resize",(function(){return p(n)}))}return{init:y}}();var i=function(){e.init();console.log("Swiss Re UI helpers loaded")};var o=t("g",i)}}}));