text: /**
   * vue-global-events v1.2.1
   * (c) 2020 Damian Dulisz <damian.dulisz@gmail.com>, Eduardo San Martin Morote <posva13@gmail.com>
   * @license MIT
   */
  
  !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.VueGlobalEvents=t()}(this,function(){"use strict";var n;var i=/^[~!&]*/,r=/\W+/,s={"!":"capture","~":"once","&":"passive"};function o(e){var t=e.match(i)[0];return(null==n?n=/msie|trident/.test(window.navigator.userAgent.toLowerCase()):n)?-1<t.indexOf("!"):t.split("").reduce(function(e,t){return e[s[t]]=!0,e},{})}return{name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:Function,default:function(e){return!0}}},data:function(){return{isActive:!0}},activated:function(){this.isActive=!0},deactivated:function(){this.isActive=!1},render:function(e){return e()},mounted:function(){var i=this;this._listeners=Object.create(null),Object.keys(this.$listeners).forEach(function(t){var n=i.$listeners[t],e=function(e){i.isActive&&i.filter(e,n,t)&&n(e)};window[i.target].addEventListener(t.replace(r,""),e,o(t)),i._listeners[t]=e})},beforeDestroy:function(){var e=this;for(var t in e._listeners)window[e.target].removeEventListener(t.replace(r,""),e._listeners[t],o(t))}}});