define("qui/utils/PageVisibility",["qui/classes/DOM"],function(e){"use strict";var i,n;return i="hidden",n=new e({methods:{triggerChange:function(e){var t,d="visible",o="hidden",s={focus:d,focusin:d,pageshow:d,blur:o,focusout:o,pagehide:o};switch(e=e||window.event,t=e.type in s?s[e.type]:this[i]?"hidden":"visible"){case"hidden":n.fireEvent("hide");break;case"visible":n.fireEvent("visible")}}}}),i in document?document.addEventListener("visibilitychange",n.triggerChange):(i="mozHidden")in document?document.addEventListener("mozvisibilitychange",n.triggerChange):(i="webkitHidden")in document?document.addEventListener("webkitvisibilitychange",n.triggerChange):(i="msHidden")in document?document.addEventListener("msvisibilitychange",n.triggerChange):"onfocusin"in document?document.onfocusin=document.onfocusout=n.triggerChange:window.onpageshow=window.onpagehide=window.onfocus=window.onblur=n.triggerChange,void 0!==document[i]&&n.triggerChange({type:document[i]?"blur":"focus"}),n});
//# sourceMappingURL=PageVisibility.js.map