(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
"use strict";exports.VisibilityWatcher=exports.EVENT_VISIBLE_CHANGE=void 0;var _EventEmitter2=require(3),EVENT_VISIBLE_CHANGE=exports.EVENT_VISIBLE_CHANGE="vb-c",VisibilityWatcher=exports.VisibilityWatcher=function(i){function t(){require(2).classCallCheck(this,t);var i=require(2).possibleConstructorReturn(this,Object.getPrototypeOf(t).call(this));return i.visible=null,i.visibilityState="uninited",i}return require(2).inherits(t,i),require(2).createClass(t,[{key:"init",value:function(){function i(i){var e="visible"==(t.visibilityState=i);if(e!=t.visible){var s=t.visible;t.visible=e,t.emit(EVENT_VISIBLE_CHANGE,{last:s,visible:e})}}var t=this;return document.addEventListener("visibilitychange",function(){i(document.visibilityState)}),window.addEventListener("unload",function(){i("unload")}),i(document.visibilityState),this.init=function(){return t},t}}]),t}(_EventEmitter2.EventEmitter);


},{"2":2,"3":3}],2:[function(require,module,exports){
"use strict";exports.defineProperty=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},exports.inherits=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},exports.possibleConstructorReturn=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},exports.createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),exports.classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},exports.slicedToArray=function(){function e(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var u,a=e[Symbol.iterator]();!(n=(u=a.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{!n&&a["return"]&&a["return"]()}finally{if(o)throw i}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),exports.get=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var u=o.get;if(void 0!==u)return u.call(n)};


},{}],3:[function(require,module,exports){
"use strict";function addEventListener(e,t,n,r){if("string"==typeof t&&t&&(0,_utils.isFunc)(n)){var i,s;return e.hasOwnProperty("$$callbacks")||(e.$$callbacks={}),i=e.$$callbacks,(s=i[t])||(s=i[t]=[]),arrAdd(s,r?warpOnceFunc(n):n)}return!1}function arrAdd(e,t,n){return-1==e.indexOf(t)?(e[n?"unshift":"push"](t),!0):void 0}function emitEvent(e,t,n,r){var i,s;return e.hasOwnProperty("$$callbacks")&&(s=(i=e.$$callbacks)[t])?(n?n instanceof Array||(n=[n]):n=[],void 0===r&&(r=e),i[t]=s.reduce(function(e,t){return(0,_utils.isFunc)(t)&&-1!==t.apply(r,n)&&e.push(t),e},[])):!1}function removeEventListener(e,t,n){var r,i,s;return void 0===t?e.$$callbacks={}:(r=e.$$callbacks)&&(i=r[t])&&i&&(n?(s=i.indexOf(n))>-1&&(i[s]=null):r[t]=[]),e}function warpOnceFunc(e){return function(){return e.apply(this,arguments),-1}}exports.EventEmitter=void 0,exports.addEventListener=addEventListener,exports.emitEvent=emitEvent,exports.removeEventListener=removeEventListener;var _utils=require(4),EventEmitter=exports.EventEmitter=function(){function e(){require(2).classCallCheck(this,e)}return require(2).createClass(e,[{key:"on",value:function(e,t){var n=arguments.length<=2||void 0===arguments[2]?!1:arguments[2];return addEventListener(this,e,t,n),this}},{key:"once",value:function(e,t){return this.on(e,t,!0)}},{key:"off",value:function(e,t){return removeEventListener(this,e,t),this}},{key:"emit",value:function(e,t,n){return emitEvent(this,e,t,n),this}}]),e}();


},{"2":2,"4":4}],4:[function(require,module,exports){
"use strict";function forEach(r,t,n){if(isObj(r))if(void 0===n&&(n=r),r instanceof Array||r.hasOwnProperty("length"))for(var e=0,o=r.length;o>e;e++)t.call(n,r[e],e);else for(var i in r)r.hasOwnProperty(i)&&t.call(n,r[i],i);return r}function arrAdd(r,t,n){return-1==r.indexOf(t)?(r[n?"unshift":"push"](t),!0):void 0}function arrFind(r,t){var n=0,e=!0,o=!1,i=void 0;try{for(var a,s=r[Symbol.iterator]();!(e=(a=s.next()).done);e=!0){var f=a.value;if(t(f,n++))return f}}catch(u){o=!0,i=u}finally{try{!e&&s["return"]&&s["return"]()}finally{if(o)throw i}}}function arrFirst(r,t){var n=0,e=!0,o=!1,i=void 0;try{for(var a,s=r[Symbol.iterator]();!(e=(a=s.next()).done);e=!0){var f=a.value,u=t(f,n++);if(u)return u}}catch(c){o=!0,i=c}finally{try{!e&&s["return"]&&s["return"]()}finally{if(o)throw i}}}function arrRemove(r,t){var n=r.indexOf(t);return n>-1&&r.splice(n,1),-1!=n}function arrFilterMappedResult(r,t,n){var e=[],o=void 0;return forEach(r,function(r,n){(o=t.call(this,r,n))&&e.push(o)},n),e}function isFunc(r){return"function"==typeof r}function isObj(r){return r&&"object"==typeof r}function isStr(r){return"string"==typeof r}function noop(){}exports.forEach=forEach,exports.arrAdd=arrAdd,exports.arrFind=arrFind,exports.arrFirst=arrFirst,exports.arrRemove=arrRemove,exports.arrFilterMappedResult=arrFilterMappedResult,exports.isFunc=isFunc,exports.isObj=isObj,exports.isStr=isStr,exports.noop=noop;


},{}]},{},[1]);
