mustache_templates-8.x-1.0-beta4/modules/mustache_magic/js/message.min.js
modules/mustache_magic/js/message.min.js
!function(e,t){var n=["status","warning","error"],r=[],i=[],s=null,o=function(e,n,o){var u,a;if(!s)try{s=new t.Message}catch(e){if(console)return console.error("Failed to initialize message object."),""}for(;i.length>2;)s.remove(r.shift()),i.shift();return(a=o(n).trim()).length&&i.indexOf(a)<0&&(u=s.add(a,{type:e}),r.push(u),i.push(a),setTimeout(function(e){this.remove(e)}.bind(s,u),2e4)),""};e.registry.magic.message=function(e){for(var t={},r=0;r<n.length;r++)t[n[r]]=function(e){return o.bind(this,e)}.bind(this,n[r]);return t}}(mustacheSync,Drupal);