/*
* # Fomantic UI - 2.8.8
* https://github.com/fomantic/Fomantic-UI
* http://fomantic-ui.com/
*
* Copyright 2022 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
!function(A,e,D){"use strict";A.isFunction=A.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),A.fn.toast=function(w){var k,e=A(this),T=e.selector||"",x=(new Date).getTime(),I=[],P=w,O="string"==typeof P,M=[].slice.call(arguments,1);return e.each(function(){var t,o,a,s,p,i,f,c=A.isPlainObject(w)?A.extend(!0,{},A.fn.toast.settings,w):A.extend({},A.fn.toast.settings),l=c.className,m=c.selector,g=c.error,e=c.namespace,h=c.fields,n="."+e,v=e+"-module",r=A(this),b=c.context?A(c.context):A("body"),C=r.hasClass("toast")||r.hasClass("message")||r.hasClass("card"),u=this,y=C?r.data(v):D,d={initialize:function(){d.verbose("Initializing element"),d.has.container()||d.create.container(),(C||""!==c.message||""!==c.title||""!==d.get.iconClass()||c.showImage||d.has.configActions())&&("string"==typeof c.showProgress&&-1!==[l.top,l.bottom].indexOf(c.showProgress)||(c.showProgress=!1),d.create.toast(),c.closeOnClick&&(c.closeIcon||0",{class:c.position+" "+l.container+" "+(c.horizontal?l.horizontal:"")}))},toast:function(){t=A("
",{class:l.box});var e,n=d.get.iconClass();C?(o=c.cloneModule?r.clone().removeAttr("id"):r,f=o.find("> i"+d.helpers.toClass(l.close)),c.closeIcon=0"),e=A("",{class:l.content}),""!==n&&o.append(A("",{class:n+" "+l.icon})),c.showImage&&o.append(A("",{class:l.image+" "+c.classImage,src:c.showImage})),""!==c.title&&e.append(A("",{class:l.title,text:c.title})),e.append(A("",{class:l.message,html:d.helpers.escape(c.message,c.preserveHTML)})),o.addClass(c.class+" "+l.toast).append(e),o.css("opacity",c.opacity),c.closeIcon&&((f=A("",{class:l.close+" "+("string"==typeof c.closeIcon?c.closeIcon:"")})).hasClass(l.left)?o.prepend(f):o.append(f))),o.hasClass(l.compact)&&(c.compact=!0),o.hasClass("card")&&(c.compact=!1),a=o.find(".actions"),d.has.configActions()&&(0===a.length&&(a=A("",{class:l.actions+" "+(c.classActions||"")}).appendTo(o)),o.hasClass("card")&&!a.hasClass(l.attached)&&(a.addClass(l.extraContent),a.hasClass(l.vertical)&&(a.removeClass(l.vertical),d.error(g.verticalCard))),c.actions.forEach(function(e){var n=e[h.icon]?'':"",t=d.helpers.escape(e[h.text]||"",c.preserveHTML),o=d.helpers.deQuote(e[h.class]||""),s=e[h.click]&&A.isFunction(e[h.click])?e[h.click]:function(){};a.append(A("",{html:n+t,class:l.button+" "+o,click:function(){!1!==s.call(u,r)&&d.close()}}))})),a&&a.hasClass(l.vertical)&&o.addClass(l.vertical),0",{class:l.vertical+" "+l.attached+" "+(c.compact?l.compact:"")})),a.hasClass(l.left)?o.addClass(l.left).parent().addClass(l.left).prepend(a):o.parent().append(a)):a.hasClass(l.top)?(t.prepend(a),o.addClass(l.bottom)):(t.append(a),o.addClass(l.top))),r!==o&&(u=(r=o)[0]),0",{class:l.progress+" "+(c.classProgress||c.class),"data-percent":""}),c.classProgress||(o.hasClass("toast")&&!o.hasClass(l.inverted)?s.addClass(l.inverted):s.removeClass(l.inverted)),p=A("",{class:"bar "+(c.progressUp?"up ":"down ")+n}),s.addClass(c.showProgress).append(p),s.hasClass(l.top)?t.prepend(s):t.append(s),p.css("animation-duration",c.displayTime/1e3+"s")),(i=A("",{class:"wait "+n})).css("animation-duration",c.displayTime/1e3+"s"),i.appendTo(o)),c.compact&&(t.addClass(l.compact),o.addClass(l.compact),s&&s.addClass(l.compact)),c.newestOnTop?t.prependTo(d.get.container()):t.appendTo(d.get.container())}},bind:{events:function(){d.debug("Binding events to toast"),(c.closeOnClick||c.closeIcon)&&(c.closeIcon?f:o).on("click"+n,d.event.click),i&&i.on("animationend"+n,d.close),t.on("click"+n,m.approve,d.event.approve).on("click"+n,m.deny,d.event.deny)}},unbind:{events:function(){d.debug("Unbinding events to toast"),(c.closeOnClick||c.closeIcon)&&(c.closeIcon?f:o).off("click"+n),i&&i.off("animationend"+n),t.off("click"+n)}},animate:{show:function(e){e=A.isFunction(e)?e:function(){},c.transition&&d.can.useElement("transition")&&r.transition("is supported")&&(d.set.visible(),t.transition({animation:c.transition.showMethod+" in",queue:!1,debug:c.debug,verbose:c.verbose,duration:c.transition.showDuration,onComplete:function(){e.call(t,u),c.onVisible.call(t,u)}}))},close:function(e){e=A.isFunction(e)?e:function(){},d.debug("Closing toast"),!1!==c.onHide.call(t,u)?c.transition&&A.fn.transition!==D&&r.transition("is supported")?t.transition({animation:c.transition.hideMethod+" out",queue:!1,duration:c.transition.hideDuration,debug:c.debug,verbose:c.verbose,interval:50,onBeforeHide:function(e){e=A.isFunction(e)?e:function(){},""!==c.transition.closeEasing?t&&(t.css("opacity",0),t.wrap("").parent().hide(c.transition.closeDuration,c.transition.closeEasing,function(){t&&(t.parent().remove(),e.call(t))})):e.call(t)},onComplete:function(){e.call(t,u),c.onHidden.call(t,u),d.destroy()}}):d.error(g.noTransition):d.debug("onHide callback returned false, cancelling toast animation")},pause:function(){i.css("animationPlayState","paused"),p&&p.css("animationPlayState","paused")},continue:function(){i.css("animationPlayState","running"),p&&p.css("animationPlayState","running")}},has:{container:function(){return d.verbose("Determining if there is already a container"),0":">",'"':""","'":"'","`":"`"};return/[&<>"'`]/.test(e)?(e=e.replace(/&(?![a-z0-9#]{1,6};)/,"&")).replace(/[<>"'`]/g,function(e){return t[e]}):e}},can:{useElement:function(e){return A.fn[e]!==D||(d.error(g.noElement.replace("{element}",e)),!1)}},setting:function(e,n){if(d.debug("Changing setting",e,n),A.isPlainObject(e))A.extend(!0,c,e);else{if(n===D)return c[e];A.isPlainObject(c[e])?A.extend(!0,c[e],n):c[e]=n}},internal:function(e,n){if(A.isPlainObject(e))A.extend(!0,d,e);else{if(n===D)return d[e];d[e]=n}},debug:function(){!c.silent&&c.debug&&(c.performance?d.performance.log(arguments):(d.debug=Function.prototype.bind.call(console.info,console,c.name+":"),d.debug.apply(console,arguments)))},verbose:function(){!c.silent&&c.verbose&&c.debug&&(c.performance?d.performance.log(arguments):(d.verbose=Function.prototype.bind.call(console.info,console,c.name+":"),d.verbose.apply(console,arguments)))},error:function(){c.silent||(d.error=Function.prototype.bind.call(console.error,console,c.name+":"),d.error.apply(console,arguments))},performance:{log:function(e){var n,t;c.performance&&(t=(n=(new Date).getTime())-(x||n),x=n,I.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:u,"Execution Time":t})),clearTimeout(d.performance.timer),d.performance.timer=setTimeout(d.performance.display,500)},display:function(){var e=c.name+":",t=0;x=!1,clearTimeout(d.performance.timer),A.each(I,function(e,n){t+=n["Execution Time"]}),e+=" "+t+"ms",T&&(e+=" '"+T+"'"),(console.group!==D||console.table!==D)&&0 img.image, > .image > img",icon:"> i.icon",input:'input:not([type="hidden"]), textarea, select, button, .ui.button, ui.dropdown',approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel"},fields:{class:"class",text:"text",icon:"icon",click:"click"},onShow:function(){},onVisible:function(){},onClick:function(){},onHide:function(){},onHidden:function(){},onRemove:function(){},onApprove:function(){},onDeny:function(){}},A.extend(A.easing,{easeOutBounce:function(e,n,t,o,s){return(n/=s)<1/2.75?o*(7.5625*n*n)+t:n<2/2.75?o*(7.5625*(n-=1.5/2.75)*n+.75)+t:n<2.5/2.75?o*(7.5625*(n-=2.25/2.75)*n+.9375)+t:o*(7.5625*(n-=2.625/2.75)*n+.984375)+t},easeOutCubic:function(e){return--e*e*e+1}})}(jQuery,window,void document);