text: ui.checkTarget=function(t,e){return t.target.matches(e)},ui.isPlainObject=function(t){return!("object"!=typeof t||t.nodeType||null!=t&&t===t.window)&&!(t.constructor&&!Object.prototype.hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))},ui.extend=function(){var o={},n=!1,t=0,e=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(n=arguments[0],t++);for(var i=function(t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n&&"[object Object]"===Object.prototype.toString.call(t[e])?o[e]=ui.extend(!0,o[e],t[e]):o[e]=t[e])};t<e;t++){i(arguments[t])}return o},ui.isVisible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},ui.prevAll=function(t,e){for(;t=t.previousElementSibling;)e(t)},ui.nextAll=function(t,e){for(;t=t.nextElementSibling;)e(t)},ui.fadeIn=function(o,n){o.style.opacity=0,o.style.display=n.display||"block";var i=n.to?n.to:1;!function t(){var e=parseFloat(o.style.opacity)+.1;e<=i?(o.style.opacity=e,requestAnimationFrame(t)):"function"==typeof n.ondone&&n.ondone()}()},ui.fadeOut=function(e,o){e.style.opacity=1,function t(){(e.style.opacity-=.1)<0?(e.style.display="none","function"==typeof o.ondone&&o.ondone(e)):requestAnimationFrame(t)}()};