"use strict";define([],function(){return{bind:function(){new MutationObserver(function(e){e.forEach(function(e){"childList"===e.type&&e.addedNodes.forEach(function(n){if($(n).hasClass("message")&&($(n).attr("role","alert"),$(n).prop("tabindex",$(n).prev(".inputForm").find("input").prop("tabindex"))),$(n).hasClass("fancybox-wrap")){var e=new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&$(n).focus()})},{rootMargin:"0px",threshold:.5});null!=document.querySelector(".fancybox-wrap")&&e.observe(document.querySelector(".fancybox-wrap"))}})})}).observe(document.body,{childList:!0,subtree:!0})}}});