(function(n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("jquery")):"function"==typeof define&&define.amd?define("pnotify",["jquery"],n):n(jQuery)})(function(n){var f={dir1:"down",dir2:"left",push:"bottom",spacing1:25,spacing2:25,context:n("body")},t,i,r=n(window),u=function(){i=n("body");PNotify.prototype.options.stack.context=i;r=n(window);r.bind("resize",function(){t&&clearTimeout(t);t=setTimeout(function(){PNotify.positionAll(!0)},10)})};return PNotify=function(n){this.parseOptions(n);this.init()},n.extend(PNotify.prototype,{version:"2.1.0",options:{title:!1,title_escape:!1,text:!1,text_escape:!1,styling:"brighttheme",addclass:"",cornerclass:"",auto_display:!0,width:"300px",min_height:"16px",type:"notice",icon:!0,opacity:1,animation:"fade",animate_speed:"slow",position_animate_speed:500,shadow:!0,hide:!0,delay:8e3,mouse_reset:!0,remove:!0,insert_brs:!0,destroy:!0,stack:f},modules:{},runModules:function(n,t){var r;for(var i in this.modules)(r="object"==typeof t&&i in t?t[i]:t,"function"==typeof this.modules[i][n])&&this.modules[i][n](this,"object"==typeof this.options[i]?this.options[i]:{},r)},state:"initializing",timer:null,styles:null,elem:null,container:null,title_container:null,text_container:null,animating:!1,timerHide:!1,init:function(){var t=this;return this.modules={},n.extend(!0,this.modules,PNotify.prototype.modules),this.styles="object"==typeof this.options.styling?this.options.styling:PNotify.styling[this.options.styling],this.elem=n("<div />",{"class":"ui-pnotify "+this.options.addclass,css:{display:"none"},"aria-live":"assertive",mouseenter:function(){if(t.options.mouse_reset&&"out"===t.animating){if(!t.timerHide)return;t.cancelRemove()}t.options.hide&&t.options.mouse_reset&&t.cancelRemove()},mouseleave:function(){t.options.hide&&t.options.mouse_reset&&"out"!==t.animating&&t.queueRemove();PNotify.positionAll()}}),this.container=n("<div />",{"class":this.styles.container+" ui-pnotify-container "+("error"===this.options.type?this.styles.error:"info"===this.options.type?this.styles.info:"success"===this.options.type?this.styles.success:this.styles.notice),role:"alert"}).appendTo(this.elem),""!==this.options.cornerclass&&this.container.removeClass("ui-corner-all").addClass(this.options.cornerclass),this.options.shadow&&this.container.addClass("ui-pnotify-shadow"),!1!==this.options.icon&&n("<div />",{"class":"ui-pnotify-icon"}).append(n("<span />",{"class":!0===this.options.icon?"error"===this.options.type?this.styles.error_icon:"info"===this.options.type?this.styles.info_icon:"success"===this.options.type?this.styles.success_icon:this.styles.notice_icon:this.options.icon})).prependTo(this.container),this.title_container=n("<h4 />",{"class":"ui-pnotify-title"}).appendTo(this.container),!1===this.options.title?this.title_container.hide():this.options.title_escape?this.title_container.text(this.options.title):this.title_container.html(this.options.title),this.text_container=n("<div />",{"class":"ui-pnotify-text"}).appendTo(this.container),!1===this.options.text?this.text_container.hide():this.options.text_escape?this.text_container.text(this.options.text):this.text_container.html(this.options.insert_brs?String(this.options.text).replace(/\n/g,"<br />"):this.options.text),"string"==typeof this.options.width&&this.elem.css("width",this.options.width),"string"==typeof this.options.min_height&&this.container.css("min-height",this.options.min_height),PNotify.notices="top"===this.options.stack.push?n.merge([this],PNotify.notices):n.merge(PNotify.notices,[this]),"top"===this.options.stack.push&&this.queuePosition(!1,1),this.options.stack.animation=!1,this.runModules("init"),this.options.auto_display&&this.open(),this},update:function(t){var i=this.options;return this.parseOptions(i,t),this.options.cornerclass!==i.cornerclass&&this.container.removeClass("ui-corner-all "+i.cornerclass).addClass(this.options.cornerclass),this.options.shadow!==i.shadow&&(this.options.shadow?this.container.addClass("ui-pnotify-shadow"):this.container.removeClass("ui-pnotify-shadow")),!1===this.options.addclass?this.elem.removeClass(i.addclass):this.options.addclass!==i.addclass&&this.elem.removeClass(i.addclass).addClass(this.options.addclass),!1===this.options.title?this.title_container.slideUp("fast"):this.options.title!==i.title&&(this.options.title_escape?this.title_container.text(this.options.title):this.title_container.html(this.options.title),!1===i.title&&this.title_container.slideDown(200)),!1===this.options.text?this.text_container.slideUp("fast"):this.options.text!==i.text&&(this.options.text_escape?this.text_container.text(this.options.text):this.text_container.html(this.options.insert_brs?String(this.options.text).replace(/\n/g,"<br />"):this.options.text),!1===i.text&&this.text_container.slideDown(200)),this.options.type!==i.type&&this.container.removeClass(this.styles.error+" "+this.styles.notice+" "+this.styles.success+" "+this.styles.info).addClass("error"===this.options.type?this.styles.error:"info"===this.options.type?this.styles.info:"success"===this.options.type?this.styles.success:this.styles.notice),(this.options.icon!==i.icon||!0===this.options.icon&&this.options.type!==i.type)&&(this.container.find("div.ui-pnotify-icon").remove(),!1!==this.options.icon&&n("<div />",{"class":"ui-pnotify-icon"}).append(n("<span />",{"class":!0===this.options.icon?"error"===this.options.type?this.styles.error_icon:"info"===this.options.type?this.styles.info_icon:"success"===this.options.type?this.styles.success_icon:this.styles.notice_icon:this.options.icon})).prependTo(this.container)),this.options.width!==i.width&&this.elem.animate({width:this.options.width}),this.options.min_height!==i.min_height&&this.container.animate({minHeight:this.options.min_height}),this.options.opacity!==i.opacity&&this.elem.fadeTo(this.options.animate_speed,this.options.opacity),this.options.hide?i.hide||this.queueRemove():this.cancelRemove(),this.queuePosition(!0),this.runModules("update",i),this},open:function(){this.state="opening";this.runModules("beforeOpen");var n=this;return this.elem.parent().length||this.elem.appendTo(this.options.stack.context?this.options.stack.context:i),"top"!==this.options.stack.push&&this.position(!0),"fade"===this.options.animation||"fade"===this.options.animation.effect_in?this.elem.show().fadeTo(0,0).hide():1!==this.options.opacity&&this.elem.show().fadeTo(0,this.options.opacity).hide(),this.animateIn(function(){n.queuePosition(!0);n.options.hide&&n.queueRemove();n.state="open";n.runModules("afterOpen")}),this},remove:function(t){this.state="closing";this.timerHide=!!t;this.runModules("beforeClose");var i=this;return this.timer&&(window.clearTimeout(this.timer),this.timer=null),this.animateOut(function(){if(i.state="closed",i.runModules("afterClose"),i.queuePosition(!0),i.options.remove&&i.elem.detach(),i.runModules("beforeDestroy"),i.options.destroy&&null!==PNotify.notices){var t=n.inArray(i,PNotify.notices);-1!==t&&PNotify.notices.splice(t,1)}i.runModules("afterDestroy")}),this},get:function(){return this.elem},parseOptions:function(t,i){var e,r,f,u;for(this.options=n.extend(!0,{},PNotify.prototype.options),this.options.stack=PNotify.prototype.options.stack,e=[t,i],f=0;f<e.length;f++){if(r=e[f],"undefined"==typeof r)break;if("object"!=typeof r)this.options.text=r;else for(u in r)this.modules[u]?n.extend(!0,this.options[u],r[u]):this.options[u]=r[u]}},animateIn:function(n){this.animating="in";var t;t="undefined"!=typeof this.options.animation.effect_in?this.options.animation.effect_in:this.options.animation;"none"===t?(this.elem.show(),n()):"show"===t?this.elem.show(this.options.animate_speed,n):"fade"===t?this.elem.show().fadeTo(this.options.animate_speed,this.options.opacity,n):"slide"===t?this.elem.slideDown(this.options.animate_speed,n):"function"==typeof t?t("in",n,this.elem):this.elem.show(t,"object"==typeof this.options.animation.options_in?this.options.animation.options_in:{},this.options.animate_speed,n);this.elem.parent().hasClass("ui-effects-wrapper")&&this.elem.parent().css({position:"fixed",overflow:"visible"});"slide"!==t&&this.elem.css("overflow","visible");this.container.css("overflow","hidden")},animateOut:function(n){this.animating="out";var t;t="undefined"!=typeof this.options.animation.effect_out?this.options.animation.effect_out:this.options.animation;"none"===t?(this.elem.hide(),n()):"show"===t?this.elem.hide(this.options.animate_speed,n):"fade"===t?this.elem.fadeOut(this.options.animate_speed,n):"slide"===t?this.elem.slideUp(this.options.animate_speed,n):"function"==typeof t?t("out",n,this.elem):this.elem.hide(t,"object"==typeof this.options.animation.options_out?this.options.animation.options_out:{},this.options.animate_speed,n);this.elem.parent().hasClass("ui-effects-wrapper")&&this.elem.parent().css({position:"fixed",overflow:"visible"});"slide"!==t&&this.elem.css("overflow","visible");this.container.css("overflow","hidden")},position:function(n){var t=this.options.stack,u=this.elem,h,s,f,e,o;if(u.parent().hasClass("ui-effects-wrapper")&&(u=this.elem.css({left:"0",top:"0",right:"0",bottom:"0"}).parent()),"undefined"==typeof t.context&&(t.context=i),t){if("number"!=typeof t.nextpos1&&(t.nextpos1=t.firstpos1),"number"!=typeof t.nextpos2&&(t.nextpos2=t.firstpos2),"number"!=typeof t.addpos2&&(t.addpos2=0),h="none"===u.css("display"),!h||n){f={};switch(t.dir1){case"down":e="top";break;case"up":e="bottom";break;case"left":e="right";break;case"right":e="left"}n=parseInt(u.css(e).replace(/(?:\..*|[^0-9.])/g,""));isNaN(n)&&(n=0);"undefined"!=typeof t.firstpos1||h||(t.firstpos1=n,t.nextpos1=t.firstpos1);switch(t.dir2){case"down":o="top";break;case"up":o="bottom";break;case"left":o="right";break;case"right":o="left"}if(s=parseInt(u.css(o).replace(/(?:\..*|[^0-9.])/g,"")),isNaN(s)&&(s=0),"undefined"!=typeof t.firstpos2||h||(t.firstpos2=s,t.nextpos2=t.firstpos2),("down"===t.dir1&&t.nextpos1+u.height()>(t.context.is(i)?r.height():t.context.prop("scrollHeight"))||"up"===t.dir1&&t.nextpos1+u.height()>(t.context.is(i)?r.height():t.context.prop("scrollHeight"))||"left"===t.dir1&&t.nextpos1+u.width()>(t.context.is(i)?r.width():t.context.prop("scrollWidth"))||"right"===t.dir1&&t.nextpos1+u.width()>(t.context.is(i)?r.width():t.context.prop("scrollWidth")))&&(t.nextpos1=t.firstpos1,t.nextpos2+=t.addpos2+("undefined"==typeof t.spacing2?25:t.spacing2),t.addpos2=0),t.animation&&t.nextpos2<s)switch(t.dir2){case"down":f.top=t.nextpos2+"px";break;case"up":f.bottom=t.nextpos2+"px";break;case"left":f.right=t.nextpos2+"px";break;case"right":f.left=t.nextpos2+"px"}else"number"==typeof t.nextpos2&&u.css(o,t.nextpos2+"px");switch(t.dir2){case"down":case"up":u.outerHeight(!0)>t.addpos2&&(t.addpos2=u.height());break;case"left":case"right":u.outerWidth(!0)>t.addpos2&&(t.addpos2=u.width())}if("number"==typeof t.nextpos1)if(t.animation&&(n>t.nextpos1||f.top||f.bottom||f.right||f.left))switch(t.dir1){case"down":f.top=t.nextpos1+"px";break;case"up":f.bottom=t.nextpos1+"px";break;case"left":f.right=t.nextpos1+"px";break;case"right":f.left=t.nextpos1+"px"}else u.css(e,t.nextpos1+"px");(f.top||f.bottom||f.right||f.left)&&u.animate(f,{duration:this.options.position_animate_speed,queue:!1});switch(t.dir1){case"down":case"up":t.nextpos1+=u.height()+("undefined"==typeof t.spacing1?25:t.spacing1);break;case"left":case"right":t.nextpos1+=u.width()+("undefined"==typeof t.spacing1?25:t.spacing1)}}return this}},queuePosition:function(n,i){return t&&clearTimeout(t),i||(i=10),t=setTimeout(function(){PNotify.positionAll(n)},i),this},cancelRemove:function(){return this.timer&&window.clearTimeout(this.timer),"closing"===this.state&&(this.elem.stop(!0),this.state="open",this.animating="in",this.elem.css("height","auto").animate({width:this.options.width,opacity:this.options.opacity},"fast")),this},queueRemove:function(){var n=this;return this.cancelRemove(),this.timer=window.setTimeout(function(){n.remove(!0)},isNaN(this.options.delay)?0:this.options.delay),this}}),n.extend(PNotify,{notices:[],removeAll:function(){n.each(PNotify.notices,function(){this.remove&&this.remove(!1)})},positionAll:function(i){if(t&&clearTimeout(t),t=null,PNotify.notices&&PNotify.notices.length)n.each(PNotify.notices,function(){var n=this.options.stack;n&&(n.nextpos1=n.firstpos1,n.nextpos2=n.firstpos2,n.addpos2=0,n.animation=i)}),n.each(PNotify.notices,function(){this.position()});else{var r=PNotify.prototype.options.stack;r&&(delete r.nextpos1,delete r.nextpos2)}},styling:{brighttheme:{container:"brighttheme",notice:"brighttheme-notice",notice_icon:"brighttheme-icon-notice",info:"brighttheme-info",info_icon:"brighttheme-icon-info",success:"brighttheme-success",success_icon:"brighttheme-icon-success",error:"brighttheme-error",error_icon:"brighttheme-icon-error"},jqueryui:{container:"ui-widget ui-widget-content ui-corner-all",notice:"ui-state-highlight",notice_icon:"ui-icon ui-icon-info",info:"",info_icon:"ui-icon ui-icon-info",success:"ui-state-default",success_icon:"ui-icon ui-icon-circle-check",error:"ui-state-error",error_icon:"ui-icon ui-icon-alert"},bootstrap2:{container:"alert",notice:"",notice_icon:"icon-exclamation-sign",info:"alert-info",info_icon:"icon-info-sign",success:"alert-success",success_icon:"icon-ok-sign",error:"alert-error",error_icon:"icon-warning-sign"},bootstrap3:{container:"alert",notice:"alert-warning",notice_icon:"glyphicon glyphicon-exclamation-sign",info:"alert-info",info_icon:"glyphicon glyphicon-info-sign",success:"alert-success",success_icon:"glyphicon glyphicon-ok-sign",error:"alert-danger",error_icon:"glyphicon glyphicon-warning-sign"}}}),PNotify.styling.fontawesome=n.extend({},PNotify.styling.bootstrap3),n.extend(PNotify.styling.fontawesome,{notice_icon:"fa fa-exclamation-circle",info_icon:"fa fa-info",success_icon:"fa fa-check",error_icon:"fa fa-warning"}),document.body?u():n(u),PNotify}),function(n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("jquery"),require("pnotify")):"function"==typeof define&&define.amd?define("pnotify.buttons",["jquery","pnotify"],n):n(jQuery,PNotify)}(function(n,t){t.prototype.options.buttons={closer:!0,closer_hover:!0,sticker:!0,sticker_hover:!0,show_on_nonblock:!1,labels:{close:"Close",stick:"Stick"}};t.prototype.modules.buttons={myOptions:null,closer:null,sticker:null,init:function(t,i){var r=this;this.myOptions=i;t.elem.on({mouseenter:function(){!r.myOptions.sticker||t.options.nonblock&&t.options.nonblock.nonblock&&!r.myOptions.show_on_nonblock||r.sticker.trigger("pnotify_icon").css("visibility","visible");!r.myOptions.closer||t.options.nonblock&&t.options.nonblock.nonblock&&!r.myOptions.show_on_nonblock||r.closer.css("visibility","visible")},mouseleave:function(){r.myOptions.sticker_hover&&r.sticker.css("visibility","hidden");r.myOptions.closer_hover&&r.closer.css("visibility","hidden")}});this.sticker=n("<div />",{"class":"ui-pnotify-sticker",css:{cursor:"pointer",visibility:i.sticker_hover?"hidden":"visible"},click:function(){t.options.hide=!t.options.hide;t.options.hide?t.queueRemove():t.cancelRemove();n(this).trigger("pnotify_icon")}}).bind("pnotify_icon",function(){n(this).children().removeClass(t.styles.pin_up+" "+t.styles.pin_down).addClass(t.options.hide?t.styles.pin_up:t.styles.pin_down)}).append(n("<span />",{"class":t.styles.pin_up,title:i.labels.stick})).prependTo(t.container);(!i.sticker||t.options.nonblock&&t.options.nonblock.nonblock&&!i.show_on_nonblock)&&this.sticker.css("display","none");this.closer=n("<div />",{"class":"ui-pnotify-closer",css:{cursor:"pointer",visibility:i.closer_hover?"hidden":"visible"},click:function(){t.remove(!1);r.sticker.css("visibility","hidden");r.closer.css("visibility","hidden")}}).append(n("<span />",{"class":t.styles.closer,title:i.labels.close})).prependTo(t.container);(!i.closer||t.options.nonblock&&t.options.nonblock.nonblock&&!i.show_on_nonblock)&&this.closer.css("display","none")},update:function(n,t){this.myOptions=t;!t.closer||n.options.nonblock&&n.options.nonblock.nonblock&&!t.show_on_nonblock?this.closer.css("display","none"):t.closer&&this.closer.css("display","block");!t.sticker||n.options.nonblock&&n.options.nonblock.nonblock&&!t.show_on_nonblock?this.sticker.css("display","none"):t.sticker&&this.sticker.css("display","block");this.sticker.trigger("pnotify_icon");t.sticker_hover?this.sticker.css("visibility","hidden"):n.options.nonblock&&n.options.nonblock.nonblock&&!t.show_on_nonblock||this.sticker.css("visibility","visible");t.closer_hover?this.closer.css("visibility","hidden"):n.options.nonblock&&n.options.nonblock.nonblock&&!t.show_on_nonblock||this.closer.css("visibility","visible")}};n.extend(t.styling.brighttheme,{closer:"brighttheme-icon-closer",pin_up:"brighttheme-icon-sticker",pin_down:"brighttheme-icon-sticker brighttheme-icon-stuck"});n.extend(t.styling.jqueryui,{closer:"ui-icon ui-icon-close",pin_up:"ui-icon ui-icon-pin-w",pin_down:"ui-icon ui-icon-pin-s"});n.extend(t.styling.bootstrap2,{closer:"icon-remove",pin_up:"icon-pause",pin_down:"icon-play"});n.extend(t.styling.bootstrap3,{closer:"glyphicon glyphicon-remove",pin_up:"glyphicon glyphicon-pause",pin_down:"glyphicon glyphicon-play"});n.extend(t.styling.fontawesome,{closer:"fa fa-times",pin_up:"fa fa-pause",pin_down:"fa fa-play"})}),function(n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("jquery"),require("pnotify")):"function"==typeof define&&define.amd?define("pnotify.callbacks",["jquery","pnotify"],n):n(jQuery,PNotify)}(function(n,t){var i=t.prototype.init,r=t.prototype.open,u=t.prototype.remove;t.prototype.init=function(){this.options.before_init&&this.options.before_init(this.options);i.apply(this,arguments);this.options.after_init&&this.options.after_init(this)};t.prototype.open=function(){var n;this.options.before_open&&(n=this.options.before_open(this));!1!==n&&(r.apply(this,arguments),this.options.after_open&&this.options.after_open(this))};t.prototype.remove=function(n){var t;this.options.before_close&&(t=this.options.before_close(this,n));!1!==t&&(u.apply(this,arguments),this.options.after_close&&this.options.after_close(this,n))}}),function(n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("jquery"),require("pnotify")):"function"==typeof define&&define.amd?define("pnotify.confirm",["jquery","pnotify"],n):n(jQuery,PNotify)}(function(n,t){t.prototype.options.confirm={confirm:!1,prompt:!1,prompt_class:"",prompt_default:"",prompt_multi_line:!1,align:"right",buttons:[{text:"Ok",addClass:"",promptTrigger:!0,click:function(n,t){n.remove();n.get().trigger("pnotify.confirm",[n,t])}},{text:"Cancel",addClass:"",click:function(n){n.remove();n.get().trigger("pnotify.cancel",n)}}]};t.prototype.modules.confirm={container:null,prompt:null,init:function(t,i){this.container=n('<div style="margin-top:5px;clear:both;" />').css("text-align",i.align).appendTo(t.container);i.confirm||i.prompt?this.makeDialog(t,i):this.container.hide()},update:function(n,t){t.confirm?(this.makeDialog(n,t),this.container.show()):this.container.hide().empty()},afterOpen:function(n,t){t.prompt&&this.prompt.focus()},makeDialog:function(t,i){var f=!1,o=this,u,r,e;this.container.empty();i.prompt&&(this.prompt=n("<"+(i.prompt_multi_line?'textarea rows="5"':'input type="text"')+' style="margin-bottom:5px;clear:both;" />').addClass(t.styles.input+" "+i.prompt_class).val(i.prompt_default).appendTo(this.container));for(e in i.buttons){if(u=i.buttons[e],f?this.container.append(" "):f=!0,r=n('<button type="button" />').addClass(t.styles.btn+" "+u.addClass).text(u.text).appendTo(this.container).on("click",function(n){return function(){"function"==typeof n.click&&n.click(t,i.prompt?o.prompt.val():null)}}(u)),i.prompt&&!i.prompt_multi_line&&u.promptTrigger&&this.prompt.keypress(function(n){return function(t){13==t.keyCode&&n.click()}}(r)),t.styles.text&&r.wrapInner('<span class="'+t.styles.text+'"><\/span>'),t.styles.btnhover&&r.hover(function(n){return function(){n.addClass(t.styles.btnhover)}}(r),function(n){return function(){n.removeClass(t.styles.btnhover)}}(r)),t.styles.btnactive)r.on("mousedown",function(n){return function(){n.addClass(t.styles.btnactive)}}(r)).on("mouseup",function(n){return function(){n.removeClass(t.styles.btnactive)}}(r));if(t.styles.btnfocus)r.on("focus",function(n){return function(){n.addClass(t.styles.btnfocus)}}(r)).on("blur",function(n){return function(){n.removeClass(t.styles.btnfocus)}}(r))}}};n.extend(t.styling.jqueryui,{btn:"ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only",btnhover:"ui-state-hover",btnactive:"ui-state-active",btnfocus:"ui-state-focus",input:"",text:"ui-button-text"});n.extend(t.styling.bootstrap2,{btn:"btn",input:""});n.extend(t.styling.bootstrap3,{btn:"btn btn-default",input:"form-control"});n.extend(t.styling.fontawesome,{btn:"btn btn-default",input:"form-control"})}),function(n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("jquery"),require("pnotify")):"function"==typeof define&&define.amd?define("pnotify.desktop",["jquery","pnotify"],n):n(jQuery,PNotify)}(function(n,t){var i,r=function(n,t){return r="Notification"in window?function(n,t){return new Notification(n,t)}:"mozNotification"in navigator?function(n,t){return navigator.mozNotification.createNotification(n,t.body,t.icon).show()}:"webkitNotifications"in window?function(n,t){return window.webkitNotifications.createNotification(t.icon,n,t.body)}:function(){return null},r(n,t)};t.prototype.options.desktop={desktop:!1,fallback:!0,icon:null,tag:null};t.prototype.modules.desktop={tag:null,icon:null,genNotice:function(n,t){this.icon=null===t.icon?"http://sciactive.com/pnotify/includes/desktop/"+n.options.type+".png":!1===t.icon?null:t.icon;(null===this.tag||null!==t.tag)&&(this.tag=null===t.tag?"PNotify-"+Math.round(1e6*Math.random()):t.tag);n.desktop=r(n.options.title,{icon:this.icon,body:n.options.text,tag:this.tag});!("close"in n.desktop)&&"cancel"in n.desktop&&(n.desktop.close=function(){n.desktop.cancel()});n.desktop.onclick=function(){n.elem.trigger("click")};n.desktop.onclose=function(){"closing"!==n.state&&"closed"!==n.state&&n.remove()}},init:function(n,r){r.desktop&&(i=t.desktop.checkPermission(),0!==i?r.fallback||(n.options.auto_display=!1):this.genNotice(n,r))},update:function(n,t){0!==i&&t.fallback||!t.desktop||this.genNotice(n,t)},beforeOpen:function(n,t){0!==i&&t.fallback||!t.desktop||n.elem.css({left:"-10000px",display:"none"})},afterOpen:function(n,t){0!==i&&t.fallback||!t.desktop||(n.elem.css({left:"-10000px",display:"none"}),"show"in n.desktop&&n.desktop.show())},beforeClose:function(n,t){0!==i&&t.fallback||!t.desktop||n.elem.css({left:"-10000px",display:"none"})},afterClose:function(n,t){0!==i&&t.fallback||!t.desktop||(n.elem.css({left:"-10000px",display:"none"}),"close"in n.desktop&&n.desktop.close())}};t.desktop={permission:function(){"undefined"!=typeof Notification&&"requestPermission"in Notification?Notification.requestPermission():"webkitNotifications"in window&&window.webkitNotifications.requestPermission()},checkPermission:function(){return"undefined"!=typeof Notification&&"permission"in Notification?"granted"===Notification.permission?0:1:"webkitNotifications"in window?0==window.webkitNotifications.checkPermission()?0:1:1}};i=t.desktop.checkPermission()}),function(n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("jquery"),require("pnotify")):"function"==typeof define&&define.amd?define("pnotify.nonblock",["jquery","pnotify"],n):n(jQuery,PNotify)}(function(n,t){var f=/^on/,e=/^(dbl)?click$|^mouse(move|down|up|over|out|enter|leave)$|^contextmenu$/,o=/^(focus|blur|select|change|reset)$|^key(press|down|up)$/,s=/^(scroll|resize|(un)?load|abort|error)$/,r=function(t,i){var r;t=t.toLowerCase();document.createEvent&&this.dispatchEvent?(t=t.replace(f,""),t.match(e)?(n(this).offset(),r=document.createEvent("MouseEvents"),r.initMouseEvent(t,i.bubbles,i.cancelable,i.view,i.detail,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,i.relatedTarget)):t.match(o)?(r=document.createEvent("UIEvents"),r.initUIEvent(t,i.bubbles,i.cancelable,i.view,i.detail)):t.match(s)&&(r=document.createEvent("HTMLEvents"),r.initEvent(t,i.bubbles,i.cancelable)),r&&this.dispatchEvent(r)):(t.match(f)||(t="on"+t),r=document.createEventObject(i),this.fireEvent(t,r))},i,u=function(t,u,f){var e,s,o;t.elem.css("display","none");e=document.elementFromPoint(u.clientX,u.clientY);t.elem.css("display","block");s=n(e);o=s.css("cursor");"auto"===o&&"A"===e.tagName&&(o="pointer");t.elem.css("cursor","auto"!==o?o:"default");i&&i.get(0)==e||(i&&(r.call(i.get(0),"mouseleave",u.originalEvent),r.call(i.get(0),"mouseout",u.originalEvent)),r.call(e,"mouseenter",u.originalEvent),r.call(e,"mouseover",u.originalEvent));r.call(e,f,u.originalEvent);i=s};t.prototype.options.nonblock={nonblock:!1,nonblock_opacity:.2};t.prototype.modules.nonblock={myOptions:null,init:function(n,t){var r=this;this.myOptions=t;n.elem.on({mouseenter:function(t){r.myOptions.nonblock&&t.stopPropagation();r.myOptions.nonblock&&n.elem.stop().animate({opacity:r.myOptions.nonblock_opacity},"fast")},mouseleave:function(t){r.myOptions.nonblock&&t.stopPropagation();i=null;n.elem.css("cursor","auto");r.myOptions.nonblock&&"out"!==n.animating&&n.elem.stop().animate({opacity:n.options.opacity},"fast")},mouseover:function(n){r.myOptions.nonblock&&n.stopPropagation()},mouseout:function(n){r.myOptions.nonblock&&n.stopPropagation()},mousemove:function(t){r.myOptions.nonblock&&(t.stopPropagation(),u(n,t,"onmousemove"))},mousedown:function(t){r.myOptions.nonblock&&(t.stopPropagation(),t.preventDefault(),u(n,t,"onmousedown"))},mouseup:function(t){r.myOptions.nonblock&&(t.stopPropagation(),t.preventDefault(),u(n,t,"onmouseup"))},click:function(t){r.myOptions.nonblock&&(t.stopPropagation(),u(n,t,"onclick"))},dblclick:function(t){r.myOptions.nonblock&&(t.stopPropagation(),u(n,t,"ondblclick"))}})},update:function(n,t){this.myOptions=t}}})